| name | mediation |
| description | Create and maintain mediation network plugins (e.g., AppLovin, Vungle, Meta, IronSource) across Godot, C#, Android, and iOS. |
Mediation Network Development & Maintenance Guide
This guide outlines the architecture and step-by-step instructions for adding or maintaining AdMob mediation adapters (e.g., Meta, IronSource, Vungle, AppLovin) within the Godot AdMob Editor Plugin.
🏗️ Architecture Overview
Mediation integration consists of native Android/iOS libraries, GDScript/C# interface wrappers, and editor export configurations:
┌────────────────────────────────┐
│ Game Project │
└───────────────┬────────────────┘
│ (API Calls)
▼
┌─────────────────────────────────────────────────────────────┐
│ Godot Addon │
│ - AppLovin.gd (GDScript Wrapper) │
│ - AppLovin.cs (C# Parity Wrapper) │
│ - project_settings_service.gd (registers settings) │
│ - export_plugins (copies AARs/XCFrameworks) │
└──────────────────────┬──────────────────────────────┬───────┘
│ (JNI / Android Bridge) │ (Objective-C++ / iOS Bridge)
▼ ▼
┌──────────────────────────────┐ ┌──────────────────────────────┐
│ Android Library │ │ iOS Framework │
│ - PoingGodotAdMobAppLovin.kt │ │ - PoingGodotAdMobAppLovin.mm │
│ - play-services-ads-applovin │ │ - AppLovinAdapterTarget │
│ - AppLovin SDK (AAR) │ │ - AppLovin SDK (XCFramework) │
└──────────────────────────────┘ └──────────────────────────────┘
🛠️ Step-by-Step Implementation Guide
1. Editor Settings Registration
Add the setting to project_settings_service.gd:
SettingDefinition.new(ANDROID_MEDIATION_PREFIX + "network_name", TYPE_BOOL, false)