Android Question FirebaseAdMob - ca-app-pub in IAd

so27

Active Member
Licensed User
Longtime User
Hello,

I have a question about the ca-app-pub numbers. The first number is clear to me. This is the number to my app in AdMob. But as a number in the IAd?

B4X:
 BannerAd.Initialize2("BannerAd", "ca-app-pub-394025xxxxxxxxxxx/xxxxxxxxxxxxxxx", BannerAd.SIZE_SMART_BANNER) ' The number of my app. OK!

[...]

   IAd.Initialize("iad", "ca-app-pub-3940256099942544/1033173712") ' What's the number? Where can I find the correct number here?
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
Each id is unique to a specific type of ad:

SS-2017-09-28_16.20.22.png
 
Upvote 0

so27

Active Member
Licensed User
Longtime User
So I can omit this line if I only want the banner ads (line 1)?
 
Upvote 0

Computersmith64

Well-Known Member
Licensed User
Longtime User
So I can omit this line if I only want the banner ads (line 1)?
Yes - although unless you have millions of impressions per day, you will struggle to make money with banner ads. Interstitials have a much better return...

- Colin.
 
Upvote 0
Top