Admob Ads Part-1
Introduction
In this video, we take the first step in integrating Admob Ads into your mobile game using Mobile Monetization Pro.
You'll learn how to:
-
Set up your Admob account.
-
Configure Admob SDK in Unity.
-
Integrate and test ads.
Admob Ads Initializer
Fields | Info |
---|---|
UseGDPRConsent | Enable or disable GDPR consent support. |
AndroidBannerId | Android AdMob Banner Ad Unit ID. |
AndroidInterstitalId | Android AdMob Interstitial Ad Unit ID. |
AndroidRewardedId | Android AdMob Rewarded Video Ad Unit ID. |
AndroidNativeId | Android AdMob Native Ad Unit ID. |
AndroidAppOpenId | Android AdMob App Open Ad Unit ID. |
AndroidRewardedInterstitialID | Android AdMob Rewarded Interstitial Ad Unit ID. |
IOSBannerId | iOS AdMob Banner Ad Unit ID. |
IOSInterstitalId | iOS AdMob Interstitial Ad Unit ID. |
IOSRewardedId | iOS AdMob Rewarded Video Ad Unit ID. |
IOSNativeId | iOS AdMob Native Ad Unit ID. |
IOSAppOpenId | iOS AdMob App Open Ad Unit ID. |
IOSRewardedInterstitialID | iOS AdMob Rewarded Interstitial Ad Unit ID. |
ShowBannerAdsInStart | Automatically show banner ads when the game starts. |
ChooseBannerPosition | Choose where the banner ad should be displayed. |
UseAdaptiveBannerSize | Enable support for adaptive banners based on screen orientation. |
UseCustomAdaptiveBannerWidth | Enable to manually set the width for adaptive banners. |
CustomAdaptiveBannerWidth | Specify a custom width for adaptive banners (only used if UseCustomAdaptiveBannerWidth is true). |
AdaptiveBannerAdSizeOptions | Select which screen orientations to support for adaptive banners. |
BannerAdSize | Set the standard banner ad size if adaptive is not used. |
EnableTimedInterstitalAds | Enable to automatically show interstitial ads after a time interval. |
InterstitialAdIntervalSeconds | Time interval (in seconds) to wait before showing an interstitial ad again. |
ResetInterstitalAdTimerOnRewardedAd | Reset interstitial ad timer after showing a interstitial ad. |
AppOpensToCheckBeforeShowingAppOpenAd | Number of app opens to check before showing an AppOpen Ad. |
DelayShowAppOpenAd | Delay in seconds before showing an AppOpen Ad after the game starts. |
Admob Ads Manager
Fields | Info |
---|---|
DebugAdInspector | Enable or disable the debugging of Ad Inspector. |
AdInspectorButton | Button to open Ad Inspector for debugging. |
ShowBannerAdButton | Button to show the banner ad. |
ImageToUseToDisplayNativeAd | Image used to display the native ad. |
ShowRewardedInterstial | If true, shows a rewarded interstitial ad. |
RewardedButton | Button associated with the rewarded ad. |
script | Script attached to the button that will call the selected function. |
scriptName | Name of the script associated with the button. |
functionNames | List of function names to call from the script. |
selectedFunctionIndex | Index of the selected function from the list. |
ActionButtonsToInvokeInterstitalAds | Buttons that trigger the interstitial ads. |
rewardedButtons | List of buttons that will trigger rewarded ads. |