Introduction to API key verification
API licensing keys enable Unity to verify purchases by validating purchase postbacks from your app’s platform store. To ensure campaign accuracy, the recommended best practice is to integrate API keys for each of your Android apps.
The name for these API licensing keys depends on your app’s platform. Refer to the following platform-specific names for the API key associated with your app:
Platform | API key |
---|---|
iOS | Private API key |
Android | License key |
The recommended best practice is to integrate an API licensing key for all apps using Unity monetization or User Acquisition. Integrating API keys improves monetization and campaign performance because it improves the accuracy of valuing user quality and enables you to more effectively bid for quality users.
IAP verification
If you use Unity Ads to monetize and have IAP (In-app Purchase) events in your game, the recommended best practice is to integrate with API keys from the Google Play store. Providing API keys helps your future campaigns perform better. The keys also enable advertisers to valuate your users more highly, which potentially leads to more valuable impressions for your app.
For this feature to work, you need to integrate the Unity Ads SDK and ensure that your app uses Unity Ads version 3.7.1 or later. To stay current, always use the latest version of the SDK.
Note: Initialize the Unity Ads SDK early in the runtime lifecycle, preferably at app start, to prevent errors.
For instructions on how to locate your API keys from the Apple App Store or the Google Play store, refer to Locate API keys.