Publisher ID vs. MY_AD_UNIT_ID, AdMob, Android

ぃ、小莉子 提交于 2019-12-12 21:25:12

问题


i am confused.

  1. I created my AdMob account, with Publisher Id: pub-2fffdddcccyyyxxx
  2. I didn't add my app to AdMob yet, I would only test how it works
  3. 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);
  1. 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"?
  2. I tried two ways: "pub-2fffdddcccyyyxxx" from AdMob and "market://details?id=com.your.packagename"
  3. 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!


回答1:


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




回答2:


I Solve this problem follow this instructions link to tutorial



来源:https://stackoverflow.com/questions/19528998/publisher-id-vs-my-ad-unit-id-admob-android

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!