Skip to content

LevelPlay Ads Setup Part-1

Introduction

In this video, you'll learn how to integrate LevelPlay ads into your Unity mobile game. We will cover the following key concepts:

  • Setting up LevelPlay: Learn how to create an account and set up your project in LevelPlay.
  • Integrating LevelPlay SDK: A step-by-step guide on adding the LevelPlay SDK to your Unity project.
  • Ad formats: Understand the different types of ads available (banner ads, interstitials, rewarded videos) and how to implement each one.
  • Testing on android and iOS: We will test the game on both Android and iOS device.

By the end of the video, you'll have a fully functional ad setup in your game.

LevelPlay Ads Initializer

alt text

Fields Info
UseGDPRConsentFlag to indicate whether to use GDPR consent before loading ads.
AndroidAppKeyThe app key for the Android platform.
AndroidBannerAdUnitIDThe ad unit ID for displaying banner ads on Android.
AndroidInterstitialAdUnitIdThe ad unit ID for displaying interstitial ads on Android.
AndroidRewardedAdUnitIdThe ad unit ID for displaying rewarded ads on Android.
iOSAppKeyThe app key for the iOS platform.
iOSBannerAdUnitIDThe ad unit ID for displaying banner ads on iOS.
iOSInterstitialAdUnitIdThe ad unit ID for displaying interstitial ads on iOS.
iOSRewardedAdUnitIdThe ad unit ID for displaying rewarded ads on iOS.
ShowBannerAdsInStartFlag to indicate whether to show banner ads at the start of the game.
EnableTimedInterstitalAdsFlag to indicate whether interstitial ads should be shown after a time interval.
InterstitialAdIntervalSecondsThe interval duration in seconds to wait before showing a timed interstitial ad.
ResetInterstitalAdTimerOnRewardedAdFlag to indicate whether the interstitial ad timer should be reset when a rewarded ad is shown.

LevelPlay Ads Manager

alt text

Fields Info
ShowBannerAdButtonButton to show banner ad when clicked.
RewardedButtonButton to show rewarded video when clicked.
scriptScript that contains the functions to be invoked.
scriptNameName of the script associated with the functions.
functionNamesList of function names that can be invoked from the script.
selectedFunctionIndexIndex of the currently selected function to invoke.
UIButtonsToShowInterstitalAdsList of buttons that show interstitial ads when clicked.
rewardedButtonsList of rewarded buttons that trigger rewarded video ads.