Exclude GMA Next-Gen SDK modules
Stay organized with collections
Save and categorize content based on your preferences.
In 2027, AdMob Mediation adapters transition to build against
GMA Next-Gen SDK. We recommend you
migrate to GMA Next-Gen SDK.
To continue using Google Mobile Ads SDK (Legacy) with AdMob Mediation
and avoid compile errors related to duplicate symbols,
exclude GMA Next-Gen SDK. This process prevents mediation
adapters from pulling GMA Next-Gen SDK as a dependency.
In your app-level build.gradle file, exclude the ads-mobile-sdk module
globally from all dependencies:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-12-03 UTC."],[],[]]