UnityAdPlugins
UnityAdPlugins
UnityAdPlugins
CHECK
• Make sure that your game is switched to ANDROID PLATFORM
Learning outcome
• Integrating the Google Mobile Ads Unity plugin into an
app, which you will do here, is the first step toward
displaying AdMob ads and earning revenue.
• Once the integration is complete, you can choose an ad
format (such as native or rewarded video) to get
detailed implementation steps.
Prerequisites
• https://github.com/googleads/googleads-mobile-unity/releases
• Download Unity ad plugin from assets option
Import the
Mobile Ads
Unity plugin
...
using GoogleMobileAds.Api;
...
public class GoogleMobileAdsDemoScript :
MonoBehaviour
{
public void Start()
{
// Initialize the Google Mobile Ads SDK.
MobileAds.Initialize(initStatus => { });
}
}
Select an ad format
• Link:
https://developers.google.com/admob/unity/banner
Native
• Native is a component-based ad format that gives you
the freedom to customize the way assets such as
headlines and calls to action are presented in their
apps.
• By choosing fonts, colors, and other details for yourself,
you can create natural, unobtrusive ad presentations
that can add to a rich user experience
• Link:
https://developers.google.com/admob/unity/native-advanced-unified
Rewarded
• Rewarded video ads are full-screen video ads that users
have the option of watching in full in exchange for in-
app rewards
• Link:
https://developers.google.com/admob/unity/rewarded
END