i am confused.
- I created my AdMob account, with Publisher Id: pub-2fffdddcccyyyxxx
- I didn't add my app to AdMob yet, I would only test how it works
- I have been follow: https://developers.google.com/mobile-ads-sdk/docs/admob/fundamentals?hl=en#android
I added:
AdRequest adRequest = new AdRequest();
adRequest.addTestDevice(AdRequest.TEST_EMULATOR);
adRequest.addTestDevice("F08D35F3334039343254AD3A83ED11B5");
adView.loadAd(adRequest);
- Now, I really don't know what is MY_AD_UNIT_ID from https://developers.google.com/mobile-ads-sdk/docs/admob/fundamentals?hl=en#android Publisher Id or "market://details?id=com.your.packagename"?
- I tried two ways: "pub-2fffdddcccyyyxxx" from AdMob and "market://details?id=com.your.packagename"
- I always get the answer: Invalid unknown request error: Cannot determine request type. Is your ad unit id correct? D/webviewglue(16784): nativeDestroy view: 0x4d98e8 onFailedToReceiveAd(Invalid Ad request.)
What am I doing wrong? Do you have any idea?
Thanks for help!
I Solve this problem follow this instructions link to tutorial
you have to add an app--site to the admob console, then you will get the specific Publisher ID: for that specific app-site which refers to the MY_AD_UNIT_ID that you use in your actual program