Monetization ( Admob + Unity IAP )
Last updated
Last updated
Create your Admob account follow this link.
Register you Android app or IOS app on Admob dashboard follow this link.
Create Ad Units for each ad type ( banner, interstitial, rewarded video ) on your Admob app.
In the Unity editor, select Assets -> Google Mobile Ads -> Settings from the menu.
Replace the current Ads App ID with your Ads App ID.
In the Unity editor, open main menu scene -> select Ads Manager gameobject.
Replace these ID Ads test with your ID Ads type ( banner, interstitial, rewarded video ) on your Admob app.
All Done For Setup Admob.
Open Services General Settings window by select menu edit -> Project Settings -> Services and link the project to Unity Services.
Select In-App Purchasing below Services menu -> turn on In-App Purchases.
Complete setup in In-App Purchases Window.
Go to your Google Play Console or Apple Store Connect and create new product at In-App Purchases section. Note: You can try to check this guide for Google Play Console and this guide for Apple Store Connect. Note: The ID product should follow like this structure com.yourcompanyname.yougamename.itemname , the example in this template com.blackknight.2dracinggame.removeads , this ID product will be used for remove ads item. And com.blackknight.2dracinggame.unlockallcars will be used for unlock cars item.
In Unity editor, select Services menu -> In-App Purchasing -> IAP Catalog.
Replace the ID product on IAP Catalog same as the ID product you created on Google Play Console or Apple Store Connect.
Open main menu scene -> select button remove ads -> select the ID product you changed on IAP Catalog Window.
Select button unlock cars -> select the ID product you changed on IAP Catalog Window.
Open IAP Manager script -> Change the ID product same as The ID product on IAP Catalog Window.
All done for setup Unity IAP.