廣告有請求,但是沒有展示。

86 views
Skip to first unread message

Dev us

unread,
Aug 21, 2014, 4:33:26 AM8/21/14
to google-adm...@googlegroups.com
廣告有請求,但是沒有展示。這是怎麼回事。

Eric Leichtenschlag

unread,
Aug 21, 2014, 3:16:39 PM8/21/14
to google-adm...@googlegroups.com
iOS or Android? Banner or interstitial ad? What does your code look like?

On Thursday, August 21, 2014 1:33:26 AM UTC-7, Dev us wrote:
廣告有請求,但是沒有展示。這是怎麼回事。

Dev us

unread,
Aug 21, 2014, 8:40:04 PM8/21/14
to google-adm...@googlegroups.com
for android,Banner .
my code:

adview=new AdView(this);
   adview.setAdUnitId(AD_UNIT_ID);
   adview.setAdSize(AdSize.MEDIUM_RECTANGLE);
   linear.addView(adview);
   AdRequest adRequest = new AdRequest.Builder().build();  
   adview.loadAd(adRequest);


在 2014年8月22日星期五UTC+8上午3时16分39秒,Eric Leichtenschlag写道:

Eric Leichtenschlag

unread,
Aug 22, 2014, 1:08:05 PM8/22/14
to google-adm...@googlegroups.com
Ok. If the request fails, you should get a logging message in LogCat with an error code.

If the code is 0, it's hard to tell what happened since it's an internal error.
If it iss 1, your ad unit ID is probably an invalid format (referenced incorrectly).
If it is 2, it's a network connection error.
If it is 3, then there was no inventory. Also check LogCat for a message that says "To get test ads on this device, call AdRequest.Builder.addTestDevice("012345abcdef");" That will be your test device ID. Add that into your code to see if you can get test ads back.

A common problem I've seen related to error code 3 is your ad unit specified type "Interstitial" when you created it in apps.admob.com, but you're requesting a banner. Double check the settings of your ad unit on apps.admob.com. If you see a setting for "Interstitial timeout" but not a setting for "Refresh rate", then you have an interstitial ad unit and that's why you can't get banner ads back with it.

Thanks,
Eric

Dev us

unread,
Aug 22, 2014, 9:54:47 PM8/22/14
to google-adm...@googlegroups.com
oh my god,is 3。

test ad Normal。

But how was the real ad



在 2014年8月21日星期四UTC+8下午4时33分26秒,Dev us写道:
廣告有請求,但是沒有展示。這是怎麼回事。

Eric Leichtenschlag

unread,
Aug 25, 2014, 2:06:55 PM8/25/14
to google-adm...@googlegroups.com
Test ads work but live ads won't if you're using an interstitial ad unit with a banner request. Double check your ad unit settings or your curernt ad unit, or try creating a new ad unit with type "Banner".

Thanks,
Eric
Reply all
Reply to author
Forward
0 new messages