22 July 2019
Important AdMob and other ad plugin changes
It seems that all of our news lately has been wrapped around Google, and so it is again. AdMob has update their libraries again, and in doing so, created a breaking change. Your app’s App Id previously was only needed at the time you initialized the plugin. Google is now looking for it inside the AndroidManifest.XML
file. If you wish to use AdMob as well as Appodeal (since it includes AdMob), you must add this to your build.settings
:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
settings = { android = { applicationChildElements = { [[ <meta-data android:name="com.google.android.gms.ads.APPLICATION_ID" android:value="[YOUR_ADMOB_APP_ID]"/> -- replace with your app id. See: https://goo.gl/fQ2neu ]], } }, plugins = { ["plugin.admob"] = { publisherId = "com.coronalabs" }, }, } |
Simply replace the [YOUR_ADMOB_APP_ID]
with your actual App ID inside the quotes and with out the square brackets.
In addition, many of you are still referencing the old legacy AdMob plugin since it was a dependency for many other ad plugins. Please look through your build.settings and remove any references to:
["plugin.google.play.services"]
If you do not remove this, your build will fail and you should get an error message in your console using the latest builds.
You should make these changes before your next attempt to build for Android. See the AdMob implementation documentation for more details.
Sorry, the comment form is closed at this time.