Android Question My Admob does not receive any banner

Alberto Michelis

Well-Known Member
Licensed User
Longtime 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

  • 1.png
    1.png
    45.2 KB · Views: 359
Last edited:

asales

Expert
Licensed User
Longtime User
...and the BlockId in the banner
What is the "BlockId"?

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

Alberto Michelis

Well-Known Member
Licensed User
Longtime 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
 
Upvote 0

Alberto Michelis

Well-Known Member
Licensed User
Longtime 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?
 
Upvote 0

asales

Expert
Licensed User
Longtime 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
 
Upvote 0

sorex

Expert
Licensed User
Longtime 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.
 
Upvote 0

Alberto Michelis

Well-Known Member
Licensed User
Longtime 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?
 
Upvote 0

AnandGupta

Expert
Licensed User
Longtime User
I think you may have to wait a while.

Regards,

Anand
 
Upvote 0

Alberto Michelis

Well-Known Member
Licensed User
Longtime 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.
 
Upvote 0

sorex

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