We’re excited to announce the v2.3.0 release of the Google Mobile Ads Unity Plugin! The new release brings support for AdMob in-app purchase ads to the Unity game engine. You can grab the updated Unity package on GitHub.
In-app purchase (IAP) ads are interstitial ads that display offers for your in-app products. They allow users to make purchases directly from within your app as part of your normal ad flow.
Note: The plugin currently only supports IAP ads on Android. iOS support is not yet available.
Before integrating IAP ads into your app, make sure you’ve set up an IAP house ad campaign and created an IAP house ad. You should also install the plugin as explained in the AdMob Unity Quick Start guide.
Once you’ve set up your campaign, there are five steps to integrate IAP ads:
AndroidManifest.xml
<!--<uses-permission android:name="com.android.vending.BILLING"/> -->
IInAppPurchaseHandler
OnInAppPurchaseFinished
result.FinishPurchase()
IsValidPurchase
AndroidPublicKey { get; }
InterstitialAd.SetInAppPurchaseHandler
That’s it!
If you have any questions, please drop by our forum.