Difference between revisions of "Monetization"
Line 29: | Line 29: | ||
= Unity IAP = | = Unity IAP = | ||
− | The kit provides a coins shop with in-app purchasable packs of coins using Unity IAP. In order to enable Unity IAP in your project, please follow [https://docs.unity3d.com/Manual/UnityIAPSettingUp.html this guide]. | + | The kit provides a coins shop with in-app purchasable packs of coins using Unity IAP. In order to enable Unity IAP in your project, please follow [https://docs.unity3d.com/Manual/UnityIAPSettingUp.html this guide]. |
The Unity IAP integration provided by the kit needs to be enabled by you. In order to do so, the first thing you need to do is to install the '''In App Purchasing''' package from the Package Manager: | The Unity IAP integration provided by the kit needs to be enabled by you. In order to do so, the first thing you need to do is to install the '''In App Purchasing''' package from the Package Manager: | ||
https://wiki.gamevanilla.com/images/common/unity_iap_package.png | https://wiki.gamevanilla.com/images/common/unity_iap_package.png | ||
+ | |||
+ | Once the package has been imported in your project, please follow these steps: | ||
* In the '''Services''' window, select '''In-App Purchasing'''. | * In the '''Services''' window, select '''In-App Purchasing'''. |
Latest revision as of 02:55, 2 May 2022
Unity AdsThe kit provides a rewarded ad button in the level scene that allows the player to earn some extra coins after completely watching an ad provided by Unity Ads. Please make sure to become familiar with how Unity Ads works by reading this guide first. The Unity Ads integration provided by the kit needs to be enabled by you. In order to do so, the first thing you need to do is to install the Advertisement package from the Package Manager:
Then, you need to add the UNITY_ADS preprocessor define to your Scripting Define Symbols in your Player Settings:
Then, you need to enable the Ads service from your Project Settings. Make sure the service is set as ON and, during development, enable the test mode option. The unique game identifiers for iOS and Android will be automatically retrieved by Unity:
There are several settings related to Unity Ads that you also need to set from the Puzzle Match Kit editor (Tools/Puzzle Match Kit/Editor). Go to the Game settings tab and open the Monetization sub-tab. In the Rewarded ad section you can find the following settings:
Unity IAPThe kit provides a coins shop with in-app purchasable packs of coins using Unity IAP. In order to enable Unity IAP in your project, please follow this guide. The Unity IAP integration provided by the kit needs to be enabled by you. In order to do so, the first thing you need to do is to install the In App Purchasing package from the Package Manager:
Once the package has been imported in your project, please follow these steps:
The Store id needs to be exactly the same identifier you use in your store (App Store, Google Play, etc.), while the rest of the fields are only visual. Please note you will need to have previously defined your available in-app purchasable items in the store/s of your choice (for more details, please follow this guide). IMPORTANT: Even if the latest versions of Unity provide a built-in IAP package, you still need to perform the previous configuration manually. You can read more about why this is needed here. Also, and specifically for Android, you can track verified transactions in Unity Analytics by performing the following steps:
Please note that, in order to be able to test in-app purchases on Android, you will need to upload your .APK to Google Play (for example, to the closed alpha channel) and test on your mobile phone. A direct build from Unity will not work. |