GADAdLoader fails to load banner ads that have a fluid size - internal error

338 views
Skip to first unread message

Jérémy Goldschmidt

unread,
Jun 19, 2019, 4:23:19 PM6/19/19
to Google Mobile Ads SDK Developers
Hi there,

   I try to fetch ads using the GADAdLoader with ads of types

[.nativeCustomTemplate, .dfpBanner]

   It works well with standard and custom sizes

   NSValueFromGADAdSize(kGADAdSizeMediumRectangle),
   
NSValueFromGADAdSize(GADAdSizeFromCGSize(.init(width: 300, height: 600)))


   When I add fluid size NSValueFromGADAdSize(kGADAdSizeFluid), the result is an internal error in 
   
public func adLoader(_ adLoader: GADAdLoader, didFailToReceiveAdWithError error: GADRequestError)

Error receiving ad for loader <GADAdLoader: 0x283d79ac0>: Error Domain=com.google.admob Code=11 "Request Error: Internal error." UserInfo={NSLocalizedDescription=Request Error: Internal error.}


   However the result is properly sent by Ad Manager As I could see in Charles Proxy (HTTP Response code 200)

    I expect to receive something in 

func adViewDidReceiveAd(_ bannerView: GADBannerView)


   so as to display and attached the bannerView to the view hierarchy.

   I work in a simple UIViewController and have instantiated a simple UIView with a frame to the self.view.

Questions.
Is is possible to use bannerView with GADAdLoader AND fluid sizes ?

Thank you

Mobile Ads SDK Forum Advisor Prod

unread,
Jun 20, 2019, 3:12:17 AM6/20/19
to jgolds...@lapresse.ca, google-adm...@googlegroups.com
Hi Jeremy,

Thank you for reaching out to us.

For us to investigate further, could you please provide us your project (or at least a test project) where the issue is reproducible so we could check it on our end as well? Please use "Reply Privately to Author" option to share the details privately.

Regards,
Teejay Pimentel
Mobile Ads SDK Team

ref:_00D1U1174p._5001UBoIrA:ref

Jérémy Goldschmidt

unread,
Jun 26, 2019, 9:59:02 AM6/26/19
to Google Mobile Ads SDK Developers
Hi,

   I posted privately a sample project that shows the problem, did you have a chance to look at it ?
   Thank you.

Mobile Ads SDK Forum Advisor Prod

unread,
Jun 26, 2019, 11:30:31 PM6/26/19
to jgolds...@lapresse.ca, google-adm...@googlegroups.com
Hi Jeremy,

It seems that my email didn't went through. I already checked your project file and raised it to our Engineering team to get more insight on this. I'll update this thread for any feedback.

Jérémy Goldschmidt

unread,
Jun 27, 2019, 12:30:08 AM6/27/19
to Google Mobile Ads SDK Developers
Hi Teejay,

   I didn't receive any email unfortunately.
   I am glad to know our request is beeing proceed by engineering team and we'll wait to know how to proceed with our implementation.

Regards,
Reply all
Reply to author
Forward
0 new messages