Amazon Publisher Services

This article is for publishers who want to use the DT FairBid SDK to load and display ads from Amazon Publisher Services (APS).

APS currently supports the following ad types:

  • Banner

  • Interstitial

  • Rewarded

To integrate APS as a mediated ad network with DT:

Step 1: Retrieve APS Information

Before retrieving your APS information, complete the following tasks to create APS ad unit inventory to mediate with DT. For more information about how to create APS inventory, see the APS Portal documentationarrow-up-right.

  • Create an APS account.

circle-info

Amazon Publisher Services (APS) is an invitation-only program. To create an APS account, request an invitationarrow-up-right from APS. Once approved, APS sends an invitation with instructions on creating your APS account.

  • Add your app to the APS Portal.

  • Add Slots for your app.

  • Update your App-ads.txt file to include the APS Portal.

Once you have created APS inventory, locate the following information in the APS Portal. This information is required later in Step 2 to set up APS as a DT mediated network.

APS INFO
DESCRIPTION
RETRIEVAL INSTRUCTIONS

Price Point Mapping

CSV file containing ad unit pricing.

Download CSV file. For more information about where to find the file, see the APS Portal documentationarrow-up-right.

UUID

Unique ID assigned to your APS ad slot.

For more information about how to locate UUIDs, see the APS Portal documentation on UUIDsarrow-up-right.

Step 2: Add APS as a Mediated Network

Before you add APS as a DT mediated network:

  • Ensure that you have access to the APS Portal information you retrieved in Step 1.

  • Add your App using the DT Console.

  • Ensure that you set up a DT Placement for each APS ad type you want to mediate with DT.

To add APS as a DT mediated network:

  1. Log in to the DT Consolearrow-up-right, and click App Management.

  2. Set up APS as a mediated network for your app using the APS Price Point CSV file you downloaded in Step 1.

circle-info

DT uses the price point mapping across your entire account. If you update your price points in APS, ensure that you upload an updated CSV file in the DT Console.

  1. For each Placement that you want to mediate with DT, create an ad network instance for APS with the following settings:

    • Use the APS UUID you retrieved in Step 1 as the Instance ID.

    • Turn off the Auto CPM function. For more information about how to turn off Auto CPM, see Auto CPM. For more information about how to add instances to a Placement, see Setting Up Instances.

Step 3: Initialize the APS SDK

Initialize the APS SDK within your app so that DT can mediate your APS inventory:

Initializing the APS SDK on Android

The following process is recommended for initializing the APS SDK in either Java or Kotlin implementations on the Android platform.

  1. Start DT FairBid SDK with your DT APP_ID.

  1. Start the APS SDK with the APP_KEY configured on your APS Portal.

  1. Create an object that implements the SlotLoader interface, and register it to DT FairBid SDK with APSAdapter.slotLoader.

  2. Implement a Banner ad callback to trigger whenever you call Banner.show(placementId, activity) for a placement configured with an APS instance in the waterfall.

  1. Implement an Interstitial ad callback to trigger whenever you call Interstitiat.request(placementId) for a placement configured with an APS instance in the waterfall.

  1. Implement a Rewarded ad callback to trigger whenever you call Rewarded.request(placementId) for a placement configured with an APS instance in the waterfall.

  1. Create an object that implements the DTBAdCallback.

  2. Implement the onSuccess callback, and extract the following parameters and pass them back to FairBid via APSAdapter.setBidInfo(slotUUID, encodedPricePoints, bidInfo):

    • Encoded price points

    • Bid info

  1. (Optional) Implement the onFailure callback to receive error messages when APS cannot fill a slot.

Example: Android Implementation

Step 4: Add the APS SDK to your Integration

To integrate the APS SDK, follow the instructions on the Supported Networks page.

Step 5: Test Your Integration

Use the DT Test Suite to verify that you have set up your app properly for FairBid mediation. The DT Test Suite is available for Android, iOS, and Unity apps. For more information about using the DT Test Suite, see Test Suite.

Last updated