0.0.3 • Published 11 months ago

tauri-plugin-admob-api v0.0.3

Weekly downloads
-
License
-
Repository
-
Last release
11 months ago

Tauri Plugin admob

For now this is just a copy of admob-plus in the future I would like to refactor the code to be more Tauri friendly.

How to install

  1. Since google library uses different Kotlin version than Tauri you may need to add the following compiler arg: -Xskip-metadata-version-check
// src-tauri/gen/android/app/build.gradle.kts
kotlinOptions {
    // ...
    freeCompilerArgs += "-Xskip-metadata-version-check"
}
  1. Add your AdMob app ID, as identified in the AdMob web interface, to your app's AndroidManifest.xml. To do so, add a <meta-data> tag with android:name="com.google.android.gms.ads.APPLICATION_ID". You can find your app ID in the AdMob web interface. For android:value, insert your own AdMob app ID, surrounded by quotation marks.
<!-- ./src-tauri/gen/android/app/src/main/AndroidManifest.xml -->
<manifest>
    <application>
        <!-- Sample AdMob app ID: ca-app-pub-3940256099942544~3347511713 -->
        <meta-data
                android:name="com.google.android.gms.ads.APPLICATION_ID"
                android:value="ca-app-pub-xxxxxxxxxxxxxxxx~yyyyyyyyyy"/>
        <meta-data
                android:name="com.google.android.gms.ads.DELAY_APP_MEASUREMENT_INIT"
                android:value="true"/>
    </application>
</manifest>
  1. Install this plugin as any other Tauri plugin
0.0.3

11 months ago

0.0.2

11 months ago

0.0.1

11 months ago

0.0.0

11 months ago