Android Question My Admob does not receive any banner

Alberto Michelis

Well-Known Member
Licensed User
Hi, using the test banner code:
B4X:
        BannerAd.Initialize2("BannerAd", "ca-app-pub-3940256099942544/6300978xxx", BannerAd.SIZE_SMART_BANNER)
it works ok
Using my code nothing happens and I get the ErrorCode=0
' ERROR_CODE_INTERNAL_ERROR
' Something happened internally; For instance, an invalid response was received from the ad server.
' Constant Value: 0
Please see pic
Im using Id Application in the Manifest and the BlockId in the banner
What am I dong wrong?
 

Attachments

Last edited:

asales

Well-Known Member
Licensed User
...and the BlockId in the banner
What is the "BlockId"?

Test my example and use your code, to see if the problem remains:
 

Alberto Michelis

Well-Known Member
Licensed User
This is the id of the block of banners you set in admob web:
ca-app-pub-3940256099942544/6300978xxx
the second in the picture

will try with your example
 

Alberto Michelis

Well-Known Member
Licensed User
@asales , thanks for your example, Ive modify it to use my app id, using the test unit id works ok, but when I change it to my unit id I get
"Error code 1 The ad request was invalid; For instance, the ad unit ID was incorrect."
But Im using the unit ID supplied by google Admob page (like I show in the pic of my first post)
Is there anything else I have to do besides create a unit and get its id?
 

asales

Well-Known Member
Licensed User
Check if that is the same code showed in the ads list. Click in the button beside the code to copy the string.

banner2.jpg
 

sorex

Expert
Licensed User
make sure there isn't a trailing space or hidden space from copy pasting.

also how long has it been that you created the banner placement?

it could take up to a day if your admob profile is new.
 

Alberto Michelis

Well-Known Member
Licensed User
One is very old and the other is from yesterday...
It is just to create de Unit? or you have to set any other thing to, mey be choose the type of propaganda and so on?
 

AnandGupta

Well-Known Member
Licensed User
I think you may have to wait a while.

Regards,

Anand
 

Alberto Michelis

Well-Known Member
Licensed User
Well... searching and searching in the AdMob web, suddenly I click on Payment... there says that if you dont set a payment account AdMobs will not send you any banner.
Now Im receiving Error 3 that means: The ad request was successful, but no ad was returned due To lack of ad inventory.
Will wait and let you know.
 

sorex

Expert
Licensed User
that's normal. after a while they will show up if there is an ad for your region.
 
Top