Smart Banner ad is coming back as {0, 0} in iOS app when i debug.

31 views
Skip to first unread message

Paul H

unread,
Mar 4, 2014, 1:19:32 PM3/4/14
to google-adm...@googlegroups.com
I've setup some DFP ads with success. I'm now trying to get a Smart Banner to show up.

Im getting the following info when trying to debug: 
adViewDidReceiveAd: { adUnitID => /29796277/SmartBannerIPAD, size => {0, 0} }

My ad is serving successfully but coming back as 0,0 in size 

I have 2 creatives setup with the defined sizes for ipAd landscape and portrait in this doc:
https://developers.google.com/mobile-ads-sdk/docs/admob/smart-banners

Any help on this appreciated. 

Eric Leichtenschlag

unread,
Mar 12, 2014, 12:55:13 PM3/12/14
to google-adm...@googlegroups.com
HI Paul,

Can you share the code you're using to request the banner and log that statement? If you look at the kGADAdSizeSmartBannerPortrait constant's size, it will show 0's because the width/height of the device hasn't been calculated yet. But assuming you're logging that statement inside of your adViewDidReceiveAd method, the size should already have been determined.

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