Android Question AdMob in production

StefanoAccorsi

Member
Licensed User
Longtime User
Hi there. Please, as usual, excuse me for my "noobing" :)

This is the first time I'm tring to use AdMod and, obviously, the first time I'm tring to configure it in B4A.

I followed the tutorials, all went ok: now in my app (still not released!) I can see the test-ads-banner.

But ... how to switch to the "real one"?

I mean: I registered in Firebase as suggested, but there's a key or something I've to put in my app?

I mean something to substitute this line of code:

B4X:
BannerAd.Initialize2("BannerAd", "ca-app-pub-3940256099942544/6300978111", BannerAd.SIZE_SMART_BANNER)

anyway I can't find it in my Firebase control panel ...

(Manifest will follow: I'm not on that PC right now ...)

Thank you!
 

StefanoAccorsi

Member
Licensed User
Longtime User
Hi @Erel, I registered myself in admod. Then submitted the app in Play Store and waited for it to be deployed.

When published, I returned into admob site and created a new app ("monetize" section) linking it to my app freshly published in Play Store.
AdMod gave me two IDs: app-ID and another one ("ID unità pubblicitaria" I don't know how to translate it from italian ...)

The last one has a syntax like "ca-app-pub-nnnnnnnnnnnnnnnn/" so numbers then "/" then nothing else.

I used this one in the line of code above:

B4X:
BannerAd.Initialize2("BannerAd", "ca-app-pub-xxxxxxxxxxxxxxx/", BannerAd.SIZE_SMART_BANNER)

but no more banner ...

Thank you.
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
It doesn't look correct. It should look like the id in the first post.

Example:
SS-2016-08-19_08.02.08.png
 
Upvote 0

StefanoAccorsi

Member
Licensed User
Longtime User
It doesn't look correct. It should look like the id in the first post.

Example:
SS-2016-08-19_08.02.08.png

Thank you, you were right but the ID AdMod gives you while registering is somehow incomplete! Through the control panel I opened my app page and found the right code.
 
Upvote 0
Top