Skip to content

Admob Ads Mediation Part-2

Introduction

In this video, we will be integrating Admob Ads Mediation into your mobile game using Mobile Monetization Pro.

You'll learn how to:

  • Set up your Admob account for Mediation.

  • Configure Admob SDK in Unity.

  • Integrate and test ads.

Admob Ads Initializer

alt text

Fields Info
UseGDPRConsentEnable or disable GDPR consent support.
AndroidBannerIdAndroid AdMob Banner Ad Unit ID.
AndroidInterstitalIdAndroid AdMob Interstitial Ad Unit ID.
AndroidRewardedIdAndroid AdMob Rewarded Video Ad Unit ID.
AndroidNativeIdAndroid AdMob Native Ad Unit ID.
AndroidAppOpenIdAndroid AdMob App Open Ad Unit ID.
AndroidRewardedInterstitialIDAndroid AdMob Rewarded Interstitial Ad Unit ID.
IOSBannerIdiOS AdMob Banner Ad Unit ID.
IOSInterstitalIdiOS AdMob Interstitial Ad Unit ID.
IOSRewardedIdiOS AdMob Rewarded Video Ad Unit ID.
IOSNativeIdiOS AdMob Native Ad Unit ID.
IOSAppOpenIdiOS AdMob App Open Ad Unit ID.
IOSRewardedInterstitialIDiOS AdMob Rewarded Interstitial Ad Unit ID.
ShowBannerAdsInStartAutomatically show banner ads when the game starts.
ChooseBannerPositionChoose where the banner ad should be displayed.
UseAdaptiveBannerSizeEnable support for adaptive banners based on screen orientation.
UseCustomAdaptiveBannerWidthEnable to manually set the width for adaptive banners.
CustomAdaptiveBannerWidthSpecify a custom width for adaptive banners (only used if UseCustomAdaptiveBannerWidth is true).
AdaptiveBannerAdSizeOptionsSelect which screen orientations to support for adaptive banners.
BannerAdSizeSet the standard banner ad size if adaptive is not used.
EnableTimedInterstitalAdsEnable to automatically show interstitial ads after a time interval.
InterstitialAdIntervalSecondsTime interval (in seconds) to wait before showing an interstitial ad again.
ResetInterstitalAdTimerOnRewardedAdReset interstitial ad timer after showing a interstitial ad.
AppOpensToCheckBeforeShowingAppOpenAdNumber of app opens to check before showing an AppOpen Ad.
DelayShowAppOpenAdDelay in seconds before showing an AppOpen Ad after the game starts.

Admob Ads Manager

alt text

Fields Info
DebugAdInspectorEnable or disable the debugging of Ad Inspector.
AdInspectorButtonButton to open Ad Inspector for debugging.
ShowBannerAdButtonButton to show the banner ad.
ImageToUseToDisplayNativeAdImage used to display the native ad.
ShowRewardedInterstialIf true, shows a rewarded interstitial ad.
RewardedButtonButton associated with the rewarded ad.
scriptScript attached to the button that will call the selected function.
scriptNameName of the script associated with the button.
functionNamesList of function names to call from the script.
selectedFunctionIndexIndex of the selected function from the list.
ActionButtonsToInvokeInterstitalAdsButtons that trigger the interstitial ads.
rewardedButtonsList of buttons that will trigger rewarded ads.