Mediation AdMob - san-sdk/sample GitHub Wiki
If you plan to use the SAN SDK to load and display ads from Admob via mediation, use this article for integration instructions and information unique to the ad network.
Admob currently supports the following ad formats.
SAN Formats | Admob Ad Formats |
---|---|
Banner | Banner |
Interstitial | Interstitial |
Rewarded Video | Rewarded Video |
Native | Native |
open your project and update the app module’s build.gradle
to have the following repositories
and dependencies
:
repositories {
// ... other project repositories
mavenCentral()// SAN mediation sdk
}
//...
dependencies {
// ... other project dependencies
implementation "com.myadsget:mediation-admob:21.1.0.0"// SAN mediation sdk
}
Add the admob key to meta-data in
<application
...>
<meta-data
android:name="com.google.android.gms.ads.APPLICATION_ID"
android:value="your admob App ID" />
</application>
If you need to use NativeAd, You should use SANNativeAdRenderer , which has been adapted to adpaters' native advertising requirements.
SAN version need >=3.13.9.1
SAN Version:3.13.9.1
Admob Version:21.1.0
Admob Version:21.1.0
- Support Android 12
SAN Version:3.12.6.1
Admob Version:20.4.0
SAN Version:3.3.0.1
Admob Version:20.2.0
- Support Test Suite
SAN Version:3.2.0.5
Admob Version:20.2.0
SAN Version:1.3.0.+
Admob Version:20.2.0