Mediation
AdMob · Google Ad Manager · AppLovin MAX
Already on AdMob, Ad Manager or AppLovin MAX? Add Trek as a mediation source — no changes to your existing ad code.
AdMob / Ad Manager (custom events)
| Platform | Install | Class name | Parameter |
|---|---|---|---|
| iOS | pod 'AotterTrekMediation/AdMob' / /GAM · SPM AotterTrekAdMobMediation | AotterTrekGADMediaAdapter | {"clientId":"…","adPlace":"<placeUid>"} |
| Android | com.aotter.android:trek-admob-mediation / trek-gam-mediation | see Android docs | same |
| Flutter | trek_gma_mediation | as iOS / Android | same |
iOS extras use AotterTrekGADMediationExtras (category, contentUrl, contentTitle). No fill maps to GADErrorNoFill; a clientId mismatch or missing place maps to GADErrorInvalidRequest.
AppLovin MAX
| Setting | Value |
|---|---|
| Adapter class | AotterTrekMAXMediationAdapter |
| App ID | Trek clientId |
| Placement ID | Trek placeUid |
| Formats | Native · Banner · MREC |
SupportThe MAX adapter is provided as-is and needs AotterTrekSDK 5.0.1+ on iOS.
Managing in the dashboard
Connect GAM, AdMob and AdSense under "Sources" and each keeps its own accounts, currency, timezone and settlement, so Trek revenue earned through mediation isn't double-counted. Google connections are simulated for now (issue 09).