文档

支持

LevelPlay SDK - Android

APS migration guide

Migrate to APS Ad Units APIs with LevelPlay for Android, utilizing the Ad Units APIs for existing APS integrations.
阅读时间1 分钟最后更新于 1 天前

重要
The following documentation discusses products or services (“Third-party Products”) not developed, owned, or operated by Unity. This information might be outdated or incomplete and is provided for your convenience. Your use of any Third-party Product is subject to its own terms. Unity makes no warranties regarding these products and isn't liable for any damages or losses arising from their use, including issues related to content, advertising, or materials from Third-party providers.
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

注意
Before you download the CSV file, make any necessary changes to your configuration. You can always return to your APS account to make further changes.
  1. Go to your APS account.
  2. Download the CSV configuration file for the relevant application.

Update the APS settings on the LevelPlay platform

  1. Go to the instance page for your app in the LevelPlay platform.
  2. Update the APS settings by uploading your CSV configuration file.
  3. Select Replace.
The APS app settings page interface will refresh.

Update APS data in LevelPlay dashboard

Some of the APS data fields are automatically populated. However, you must manually perform the following steps:
  1. Complete the following fields for each slot name:
  • UUID
  • APS Format
  • Size
注意
To obtain this information, refer to the APS site.
  1. Select SAVE.

Add the APS adapter to your build

  1. Ensure that the following Maven URL exists in your
    build.gradle
    script of your app module:
repositories { mavenCentral()}
  1. Add the adapter's Maven name to your
    build.gradle
    script of your app module:
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'}
For more details on APS integration, refer to the APS Resources for Android.

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
    setNetworkData
    to share the APS bid info with LevelPlay.