Skip to content

Integrate DT Exchange with Mediation

This guide explains how to utilize the Google Mobile Ads SDK to load and present ads from DT Exchange (formerly Fyber) through mediation. It provides instructions on integrating DT Exchange into the mediation configuration of a Godot app and integrating the DT Exchange SDK and adapter.

This document is based on:

Supported integrations and ad formats

The AdMob mediation adapter for DT Exchange has the following capabilities:

Integration
Bidding
Waterfall
Formats
Banner
Interstitial
Rewarded
Rewarded Interstitial
Native

Prerequisites

Step 1: Set up DT Exchange

We recommend following the tutorial for Android or iOS, as it will be the same for both.

Step 2: Configure mediation settings for your AdMob ad unit

We recommend following the tutorial for Android or iOS, as it will be the same for both.

Step 3: Import the DT Exchange SDK plugin

  1. Download the plugin for Android.
  2. Extract the .zip file. Inside, you will find a dtexchange folder.
  3. Copy the contents of the dtexchange folder and paste them into the Android plugin folder at res://addons/admob/android/bin/.

The DT Exchange adapter is already included in the standard iOS plugin download. If you followed the iOS Installation guide, you should already have the necessary files (poing-godot-admob-dtexchange.gdip and related frameworks) in your res://ios/plugins/ directory.

Step 4: Enable the plugin

Make sure to enable Dtexchange in Project Settings (under Admob > Android > Mediation > Dtexchange).

Make sure to check both Ad Mob and Ad Mob Dt Exchange under the Plugins list in your iOS Export Presets (as well as entering your AdMob App ID in the Plists config).

Step 5: Optional steps (Regulatory Settings)

DT Exchange allows passing GDPR consent choices to their SDK via either a boolean consent flag or an IAB consent string.

To pass boolean GDPR consent, use the following code:

DTExchange.set_gdpr_consent(true)
DTExchange.SetGDPRConsent(true);

To pass the GDPR IAB consent string, use the following code:

DTExchange.set_gdpr_consent_string("your_iab_consent_string")
DTExchange.SetGDPRConsentString("your_iab_consent_string");

CCPA (US Privacy String)

To comply with CCPA, you can set the IAB US Privacy string. The following sample code shows how to pass this information to the DT Exchange SDK:

DTExchange.set_ccpa_string("1---")
DTExchange.SetCCPAString("1---");