DFPBannerView request sent twice even though bannerView.load(request) is called only once

42 views
Skip to first unread message

Ravi Sankar

unread,
May 21, 2018, 4:31:19 PM5/21/18
to Google Mobile Ads SDK Developers
Hi,

I have a view controller which displays two dfp banners of two different sizes. The request made for the second banner view is always sent twice, however this is visible only from Charles proxy, if  I put a breakpoint at the line which calls load(request) it is called only once. I am using 'Google-Mobile-Ads-SDK', '7.30.0'. 

Thanks,
Ravi

mobileadssdk-a...@google.com

unread,
May 22, 2018, 2:22:38 AM5/22/18
to Ravi Sankar, Google Mobile Ads SDK Developers
Hi Ravi,

I run our BannerExample app on my end and captured the Charles logs, however, I'm only getting 1 Ad request for every load() executed. This does not include the succeeding Ad requests that were triggered for some duration because the sample Ad Unit's Refresh rate is enabled.

I tested this for both 7.30.0 and 7.31.0 versions and I didn't encounter the behavior you mentioned. That said, could you test your Ad Unit Id with our sample app and see if you can replicate the behavior you described?

For us to check on our end, could you provide to us privately the following information using the Reply privately to author option?
  • Ad Unit Id in question
  • Charles logs you've captured where you saw 2 Ad requests for 1 load() call
  • Sample project or code snippets of your implementation 
Regards,
Ivan Bautista
Mobile Ads SDK Team

Ravi Sankar

unread,
May 22, 2018, 3:55:03 AM5/22/18
to Google Mobile Ads SDK Developers
Hi Ivan,

Thanks for replying. I have also tried the sample app and it works fine and I have dfp banner ads in other screens of the app which are all sending only one request. This issue is particular to one screen where I am loading two dfpbanners and making request. From the code if I put a breakpoint I could see it is being called only once for each request but in Charles proxy I could the request for the second banner view is sent twice. Also if I make only one request from that screen by commenting the first one the request is only sent once. I have now added a delay of 1 second before sending the second request which has helped in fixing the issue. 

Thanks
Ravi

mobileadssdk-a...@google.com

unread,
May 22, 2018, 6:56:58 AM5/22/18
to Ravi Sankar, Google Mobile Ads SDK Developers
Hi Ravi,

Thank you for confirming that it is working properly in our sample app on your end. 

That said, I tested again and now modified our BannerExample app to load 2 BannerViews in 1 screen and the ads were loaded with exactly 1 Ad Request for each Banner Ad. 

If you can provide to us the following information privately (using the Reply privately to author option) then these information will help us figure out the root cause of the issue on your end.
Reply all
Reply to author
Forward
0 new messages