2D Racing Multiplayer Game Template
  • 🌟Welcome
  • Getting Started
    • ⚡Import The Template
    • đŸ•šī¸Build Project
    • 📂Project Structure
  • Customization
    • 🏁Add New Race Map ( Classic Mode )
    • đŸšĻAdd New Race Map ( Multiplayer Mode )
    • đŸŽī¸Add New Car
    • đŸĒ™Set Cars Price
    • 💾Save System
    • 💰Monetization ( Admob + Unity IAP )
      • 🔷Ads Manager
      • 🔷Reward Free Coins
    • đŸ’ģPlayFab
    • 📃GDPR
    • đŸŽĩAudio System
    • ✨Lighting Effect
  • 🌠UI Animation
  • đŸĨˆSet Race Lap
  • ⌛Set Countdown Return To Room Lobby
  • đŸ’ļReward System ( Multiplayer Mode )
  • Other Informations
    • 📓Changelogs
    • â˜Žī¸Contact
Powered by GitBook
On this page
  • 🔷 Setup Admob
  • 🔷 Setup Unity IAP
  1. Customization

Monetization ( Admob + Unity IAP )

PreviousSave SystemNextAds Manager

Last updated 3 months ago

🔷 Setup Admob

For setup Admob, you can try to check this guide.

  1. Create your Admob account follow this link.

  2. Register you Android app or IOS app on Admob dashboard follow this link.

  3. Create Ad Units for each ad type ( banner, interstitial, rewarded video ) on your Admob app.

  4. In the Unity editor, select Assets -> Google Mobile Ads -> Settings from the menu.

  5. Replace the current Ads App ID with your Ads App ID.

  6. In the Unity editor, open main menu scene -> select Ads Manager gameobject.

  7. Replace these ID Ads test with your ID Ads type ( banner, interstitial, rewarded video ) on your Admob app.

  8. All Done For Setup Admob.

🔷 Setup Unity IAP

For setup Unity IAP, you can try to check this guide.

  1. Open Services General Settings window by select menu edit -> Project Settings -> Services and link the project to Unity Services.

  2. Select In-App Purchasing below Services menu -> turn on In-App Purchases.

  3. Complete setup in In-App Purchases Window.

  4. 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.

  5. In Unity editor, select Services menu -> In-App Purchasing -> IAP Catalog.

  6. Replace the ID product on IAP Catalog same as the ID product you created on Google Play Console or Apple Store Connect.

  7. Open main menu scene -> select button remove ads -> select the ID product you changed on IAP Catalog Window.

  8. Select button unlock cars -> select the ID product you changed on IAP Catalog Window.

  9. Open IAP Manager script -> Change the ID product same as The ID product on IAP Catalog Window.

  10. All done for setup Unity IAP.

💰
Note: The Ads App ID on the picture just is an ID Ads test, so replace it with your Ads App ID.
Note: The current Inter Ads ID, Reward Ads ID and Banner Ads ID are all using ID Ads Test.
Services General Settings Window.
In-App Purchases Window.
IAP Catalog Window.
Button Remove Ads.
Button Unlock Cars.
IAP Manager Script.