Hi
The example for the firebaseadmob as described here uses two ids as defined in these statements
and
And this test add example works and adverts are received. However, why is the example using two different Unit Ids? Is it because you can have either or both of the two types of ads in the same activity?
After visitings apps.admob.com, created and linked my firebase app, I got provided with two ids.
One being an App Id with ca-app-pub-xxxxxxxxxxxxxxxx~xxxxxxxxxx, this one has ~
After creating an Ad Unit Id had an id like, ca-app-pub-xxxxxxxxxxxxxxxx/xxxxxxxxxx, this one with /
I had thought the App Id should be used on the BannerAdd.Initialize method and the ad unit id, used in the iad, initialize. However it seems this is not the case as my ads do not show, so instead I used the created Ad Unit Id from admob in both initialize statements and the ads are working.
The example for the firebaseadmob as described here uses two ids as defined in these statements
B4X:
BannerAd.Initialize2("BannerAd", "ca-app-pub-3940256099942544/6300978111", BannerAd.SIZE_SMART_BANNER)
and
B4X:
IAd.Initialize("iad", "ca-app-pub-3940256099942544/1033173712")
And this test add example works and adverts are received. However, why is the example using two different Unit Ids? Is it because you can have either or both of the two types of ads in the same activity?
After visitings apps.admob.com, created and linked my firebase app, I got provided with two ids.
One being an App Id with ca-app-pub-xxxxxxxxxxxxxxxx~xxxxxxxxxx, this one has ~
After creating an Ad Unit Id had an id like, ca-app-pub-xxxxxxxxxxxxxxxx/xxxxxxxxxx, this one with /
I had thought the App Id should be used on the BannerAdd.Initialize method and the ad unit id, used in the iad, initialize. However it seems this is not the case as my ads do not show, so instead I used the created Ad Unit Id from admob in both initialize statements and the ads are working.