Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Invalid unknown request error: Cannot determine request type. Is this ad unit id correct?

After updating to "new abMob", it appears to have this problem... use this code, but nothing displays:

adView = new AdView(this, AdSize.BANNER, "pub-xxxxxxxxxxxxxxxx");

and got warning:

Invalid unknown request error: Cannot determine request type. Is your ad unit id correct?

What's wrong? Using android emulator, admob 6.4.1

like image 300
user2843366 Avatar asked Feb 22 '26 12:02

user2843366


1 Answers

In my case, the ad unit id was incorrect in AdMob app management section! There was a ~ instead of / in the id. I fixed it by viewing the GoogleService info plist and found the correct unit id.

Change:

ca-app-pub-XXXXXXXXXX~XXXXXXXXXX

to:

ca-app-pub-XXXXXXXXXX/XXXXXXXXXX
like image 114
Abdalrahman Shatou Avatar answered Feb 24 '26 00:02

Abdalrahman Shatou



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!