Admob

Martin

Active member
CX Code Contributor
3rd Party Module Dev
Tutorial Author
Joined
Jun 19, 2017
Messages
320
Hey all, I've quite some difficulties to get Admob working lately. Actually test ads work but I don't see real ones (yet)... Might due to the new app I published, so I might have to wait a little bit more but I see the requirements have changed a bit:

Check that you’re using the latest Google Mobile Ads SDK:
  • 18.1.0 or later for Android
(Cerberus still uses 15.0.1)
So actually I got it updated to 19.6.0 which is the latest (I can publish my changes if you're interested) but that didn't help.

Has anyone of you guys apps in the Google Play Store with working real ads?

edit: Ok I can confirm it still works, just needed some time. Might be worth an update at some point.
 
Last edited:

MikeHart

Administrator
Joined
Jun 19, 2017
Messages
2,815
Hi Martin, did you just replaced the SDK?

I remember back in the day when I had an app in the store that it would take some time the ads would show up.
 

Jimmy

Active member
3rd Party Module Dev
Tutorial Author
Joined
Jan 2, 2020
Messages
571
Glad it worked :) I would be happy to see an update as I'm interested in learning what AdMob is all about.
 

Martin

Active member
CX Code Contributor
3rd Party Module Dev
Tutorial Author
Joined
Jun 19, 2017
Messages
320
It works with the current Cerberus Version. But I think it's a good idea to update to the latest 19.6.0 which needs some internal changes. Will summarize it...
 

Martin

Active member
CX Code Contributor
3rd Party Module Dev
Tutorial Author
Joined
Jun 19, 2017
Messages
320
Ok here are the changes. Please note for the Android Manifest you will need to add something to Cerberus so it's correctly replaced. I mean that line:

Code:
#ANDROID_MANIFEST_APPLICATION+="<meta-data android:name=~qcom.google.android.gms.ads.APPLICATION_ID~q android:value=~qca-app-pub-XXXXXXXXXXXXXXXX~~XXXXXXXXXX~q />"

So you not only need the publisher ID but now the app ID as well in the manifest to make it work for 19.6.0. Personally I hacked it in by hand but I think for convinience it should be added as another precompiler thing?

Beside that we need some bigger changes anyway for those aab bundle files coming...
 

Attachments

  • Cerberus-Admob.zip
    3.4 KB · Views: 10
Top Bottom