Problems displaying DFP ads when validAdSizes is set

1,296 views
Skip to first unread message

Nathan Peles

unread,
May 28, 2015, 2:12:55 AM5/28/15
to google-adm...@googlegroups.com
Hi,

I am having some problems with loading DFP banner ads when I specify the "validAdSizes" property.

I would like to display 320x100 banners (kGADAdSizeLargeBanner) in my UITableView with a fallback to 320x50 banners (kGADAdSizeBanner) as sometimes there isn't enough of the large banners available.

If I request a single ad size (i.e. I don't set "validAdSize") my ads load fine in that specific size.

However when I set "validAdSizes" I am seeing the following errors happening sometimes:

<Google> Warning: mediated ad type is unknown or invalid. Resetting type to GADAdType banner with size: kGADAdSizeBanner.

Error Domain=com.google.ads Code=9 "Request Error: No ad to show from all configured ad networks."
UserInfo=0x7bba3020 {NSLocalizedDescription=Request Error: No ad to show from all configured ad networks.,
NSLocalizedFailureReason=Request Error: No ad to show from all configured ad networks.}

Also, sometimes I am seeing a 320x100 banner ad being returned as 320x50 - the ad content is definitely 320x100 but it displays cut-off in a 320x50 ad frame. I have set break points in my code on "adView:willChangeAdSizeTo:" and it is defintely being returned with bannerView.adSize = kGADAdSizeBanner even though the contents of the ad is a larger kGADAdSizeLargerBanner.

Does using "validAdSizes" work for requesting a kGADAdSizeLargerBanner with fallback to kGADAdSizeBanner?

Here is my code snippet:

- (DFPBannerView *)setupAd
{
    DFPBannerView *bannerView = [[DFPBannerView alloc] initWithAdSize:kGADAdSizeLargeBanner origin:frame.origin];
    bannerView.adSizeDelegate = self;

    // Add fallback banner sizes.
    bannerView.validAdSizes = @[ NSValueFromGADAdSize(kGADAdSizeLargeBanner), NSValueFromGADAdSize(kGADAdSizeBanner) ];
return bannerView;
}

Thanks,
Nathan

Ram Parameswaran (Mobile SDK Team)

unread,
May 28, 2015, 6:31:31 PM5/28/15
to google-adm...@googlegroups.com, nath...@gmail.com
Hi Nathan,

Making an ad request for a kGADAdSizeLargerBanner with valid ad sizes set to kGADAdSizeBanner and kGADAdSizeBanner should result in an ad request for either banner size. However, setting additional ad sizes shouldn't increase the the amount of requests that have a no fill response. Are you getting no fill responses when you don't set validAdSizes? 

For the problem where you are incorrect banner sizes, are you seeing this issue for different banners (different creative)? Would you be able to provide a Charles log for a request where you see this issue?

- Ram

Nathan Peles

unread,
May 29, 2015, 1:50:53 AM5/29/15
to google-adm...@googlegroups.com, nath...@gmail.com
Hi Ram,

I am seeing on different creative, but intermittently. Sometimes the creative is returned as 320x100 but then later on it will display as 320x50.

I tried recording some examples using Charles, but those ad were loaded over SSL, so there wasn't anything from the HTTP request/response visible in the Charles log.

I'll try to find an example where is over HTTP so I can send you some example logs.

Regards,
Nathan

Nathan Peles

unread,
May 29, 2015, 2:28:32 AM5/29/15
to google-adm...@googlegroups.com, nath...@gmail.com
Hi Ram,

Attached is an example Charles log file with the problem, plus two screenshots.

The first entry under "http://pubads.g.doubleclick.net:80" contains an example of a 320x100 request being returned the wrong size (the HTML is a 320x100 ad but the response headers report as 320x50).

Most of the time the ads display correctly (as 320x100 or 320x50 size) however sometimes I will see an ad appear as 320x50 with the ad contents cut off because it should have been returned as 320x100. Please see the attached screenshots for an example.

Thanks,
Nathan


On Friday, 29 May 2015 08:31:31 UTC+10, Ram Parameswaran (Mobile SDK Team) wrote:
320-50 banner ad displayed abnormally on app which requests 2 sizes.chls
screenshot-1.PNG
screenshot-2.PNG

Ram Parameswaran (Mobile SDK Team)

unread,
Jun 1, 2015, 6:56:10 PM6/1/15
to google-adm...@googlegroups.com, nath...@gmail.com
Hi Nathan, 

Would you be able to provide a link to one of your DFP line items with which you are seeing this issue?

- Ram

Nathan Peles

unread,
Jun 3, 2015, 1:19:53 AM6/3/15
to google-adm...@googlegroups.com, nath...@gmail.com
Hi Ram,

Attached are screenshots of our DFP settings - is this the correct information you're requesting?

Regards,
Nathan
image001.png
image002.png

Ram Parameswaran (Mobile SDK Team)

unread,
Jun 3, 2015, 10:03:43 PM6/3/15
to google-adm...@googlegroups.com, nath...@gmail.com
Can you provide the hyperlinks for those pages which correspond to the creatives where you are seeing the incorrect size issue. The screenshots you linked seem to be for a 320 x 100 creative.

- Ram

Nathan Peles

unread,
Jun 3, 2015, 11:24:46 PM6/3/15
to google-adm...@googlegroups.com, nath...@gmail.com
Do you mean hyperlinks to the advertisement HTML? The ads are being served from 3rd party ad networks via DFP - I can only see them using Charles to record to responses.

Ram Parameswaran (Mobile SDK Team)

unread,
Jun 4, 2015, 10:22:12 AM6/4/15
to google-adm...@googlegroups.com, nath...@gmail.com
The hyperlinks to the actual DFP front end web pages you took screenshots for. As mentioned before, they should correspond to the creatives you are seeing the incorrect size being reported. 

- Ram

Harish Lakhwani

unread,
Aug 3, 2018, 8:28:06 AM8/3/18
to Google Mobile Ads SDK Developers
Hi,

Have you got fixed this issue. I have also same issue that you faced.

mobileadssdk-a...@google.com

unread,
Aug 7, 2018, 3:21:00 PM8/7/18
to Harish Lakhwani, Google Mobile Ads SDK Developers
Hi Harish,

Can you provide a test app that reproduces this behavior?

- Ram

************************************************************************

This e-mail and all attachments are intended solely for use by the intended recipient and may contain confidential / proprietary information of KiwiTech, LLC, subject to important disclaimers and conditions including restrictions on the use, disclosure, transfer or export of such information. If you have received this message in error or are not the named recipient(s), please immediately notify the sender at the telephone number stated above or by reply e-mail and delete this e-mail from your computer

--

---
You received this message because you are subscribed to the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.
To post to this group, send email to google-admob-ads-sdk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-admob-ads-sdk/bfc766fb-3c1d-4189-87ee-ca2974510ec9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages