APS migration guide
Migrate to APS Ad Units APIs with LevelPlay for Android, utilizing the Ad Units APIs for existing APS integrations.
阅读时间1 分钟最后更新于 1 天前
This guide provides step-by-step instructions on integrating the Amazon Publisher Services (APS) network with LevelPlay, utilizing the Ad Units APIs for existing APS integrations.
Prerequisites
Minimum SDK version: 9.0.0+Verify and download your APS configuration
- Go to your APS account.
- Download the CSV configuration file for the relevant application.
Update the APS settings on the LevelPlay platform
- Go to the instance page for your app in the LevelPlay platform.
- Update the APS settings by uploading your CSV configuration file.
- Select Replace.
Update APS data in LevelPlay dashboard
Some of the APS data fields are automatically populated. However, you must manually perform the following steps:- Complete the following fields for each slot name:
- UUID
- APS Format
- Size
- Select SAVE.
Add the APS adapter to your build
- Ensure that the following Maven URL exists in your script of your app module:
build.gradle
repositories { mavenCentral()}
- Add the adapter's Maven name to your script of your app module:
build.gradle
For more details on APS integration, refer to the APS Resources for Android.dependencies { implementation 'com.unity3d.ads-mediation:aps-adapter:5.0.0' implementation 'com.amazon.android:aps-sdk:11.1.0+' implementation 'com.iabtcf:iabtcf-decoder:2.0.10'}
Init APS SDK
The APS network requires that you initialize both the ironSource and APS SDKs to display APS ads. Initialize the APS SDK as soon as your application is opened and before initializing the ironSource SDK. Use the APS App ID that you defined during APS setup.AdRegistration.getInstance(APS_APP_ID, this);//Where 'this' is an activity context.
Remove prior load logic
This adapter no longer requires sharing APS bid info with LevelPlay mediation. Remove the following code:- The loading of the APS ad request before each ad unit load.
- The calling of to share the APS bid info with LevelPlay.
setNetworkData