Skip to main content

AdTrue AppLovin Adapter — Unity

Integrate AdTrue as a mediation ad source in your Unity app through AppLovin MAX.

Supported formats: Banner, MREC, Interstitial, Rewarded, Native

App Open is not supported. AppLovin MAX does not support the App Open ad format for custom network adapters.

Prerequisites

  • The AppLovin MAX Unity Plugin already integrated in your project — it bundles External Dependency Manager for Unity (EDM4U), which resolves the native adapter dependencies automatically

1. Import the Package

  1. Download AdTrueMaxAdapter-1.0.1.unitypackage
  2. In Unity, choose Assets → Import Package → Custom Package…, select the downloaded file and click Import

On the next build, EDM4U resolves the native dependencies automatically:

  • Android: com.adtrue.sdk:max-adapter from https://repo.adtrue.com/maven
  • iOS: pod AdTrueMaxAdapter from CocoaPods

2. Configure the MAX Custom Network

In the AppLovin MAX dashboard, add AdTrue as a Custom Network, then configure a Custom Adapter for each ad unit:

FieldValue
Network NameAdTrue Custom Adapter
Android Class Namecom.adtrue.sdk.adapter.max.AdTrueAdapter
iOS Class NameAdTrueAdapter
Placement / ParameterYour AdTrue ad unit ID

The same class name works for all supported ad formats. The adapter auto-detects the format from the MAX mediation request.

3. Load Ads

No extra C# code needed — ads flow through the standard MAX Unity SDK APIs as usual. See the AppLovin MAX Unity integration guide for the ad-loading APIs.

4. Debug Logging (Optional)

Enable verbose debug logging from the AdTrue adapter:

using AdTrue;

AdTrueMaxAdapter.SetDebug(true);

5. GDPR / TCF v2.0

The adapter automatically reads IAB TCF v2.0 consent from platform storage (SharedPreferences on Android, UserDefaults on iOS). If you integrate AppLovin's CMP (or any TCF-compliant CMP), no additional adapter code is required.

Troubleshooting

New ad units / waterfall changes don't take effect immediately: Changes to ad units or waterfall configuration in the MAX dashboard take 30–60 minutes to propagate. Wait before retesting.

EDM4U doesn't resolve the Android dependency: Run Assets → External Dependency Manager → Android Resolver → Force Resolve and confirm https://repo.adtrue.com/maven appears in the generated mainTemplate.gradle repositories.

iOS build fails to find AdTrueMaxAdapter: Make sure CocoaPods is installed and EDM4U's iOS Resolver is set to use a Podfile, then rebuild — the pod is published on CocoaPods trunk.

Ads never load / NO FILL (HTTP 204): A NO FILL response (204) means the waterfall has no eligible line item for the requesting app/device at that moment — this is expected behavior, not an error. Enable test ads if you're testing on a non-approved device — see Test Ads.

Documentation

Support

Contact your AdTrue account manager or email [email protected]