← KorGE Admob
Authors:
Tags:
dependencies:
- https://github.com/korlibs/korge-monetization/tree/v0.1.2/korge-admob##975013c1e333f9d0a289d2e905ca37a29e60fd52
Adds support for https://admob.google.com/.
Supports
KorGE 4.0.0
Usage
In build.gradle.kts
:
korge {
androidPermission("INTERNET")
androidManifestApplicationChunk(
"<meta-data android:name=\"com.google.android.gms.ads.APPLICATION_ID\" android:value=\"ca-app-pub-3395905965441916~3606887124\" />"
)
}
In your fun main() = Korge {
:
val admob = AdmobCreate(views, testing = true)
admob.bannerPrepare(
Admob.Config(
id = "ca-app-pub-3395905965441916/9312372956"
)
)
admob.bannerShow()