![]() ![]() See In-App Purchase Overview for detailed instructions on how to set up IAP house ads in your AdMob account. ![]() Make sure you request an in-house IAP ad by setting the correct adUnitId when creating the InterstitialAd. ![]() ![]() Pass in the above implementation of IInAppPurchaseHandler to InterstitialAd.SetInAppPurchaseHandler.AndroidPublicKey - return the public key for your Android app, which you obtain from the Google Play console.IsValidPurchase - check the SKU against valid SKUs and return true if this purchase is valid.OnInAppPurchaseFinished - here you credit the user with the purchase, and then call result.FinishPurchase() to finish the transaction.You need to define the following methods: See GoogleMobileAdsDemoScript.cs for an implementation example. Create a class that implements the IInAppPurchaseHandler interface.In the AndroidManifest.xml in Assets/Plugins/Android/GoogleMobileAds/Plugin, uncomment the following line to enable billing permissions: ->.Once you’ve set up your campaign, there are five steps to integrate IAP ads: You should also install the plugin as explained in the AdMob Unity Quick Start guide. iOS support is not yet available.īefore integrating IAP ads into your app, make sure you’ve set up an IAP house ad campaign and created an IAP house ad. Note: The plugin currently only supports IAP ads on Android. They allow users to make purchases directly from within your app as part of your normal ad flow. In-app purchase (IAP) ads are interstitial ads that display offers for your in-app products. You can grab the updated Unity package on GitHub. 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. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |