Getting adViewWillLeaveApplication delegate callbacks when ads are simply loading

146 views
Skip to first unread message

Todd Huss

unread,
Nov 24, 2015, 2:31:58 PM11/24/15
to Google Mobile Ads SDK Developers
We're using the 7.5.2 SDK. When running ads served directly via DFP we get a bunch of callbacks to the adViewWillLeaveApplication delegate even though the user didn't tap anything. Everything works fine but we're logging events to our analytics that the user tapped the ad even though the user didn't.

Confirmed that in the GADBannerView adNetworkClassName is nil so the ads are coming directly via dfp. We do however see an error right afterwards on the console that "LaunchServices: ERROR: There is no registered handler for URL scheme moat-bridge" which I'm guessing is some erroneous javascript in the creative but we can't control the creative many of our advertisers give us.

I would think though that we shouldn't get the delegate callback unless the javascript is successfully able to open a url scheme. Maybe the DFP SDK is forgetting to check canOpenURL before making the delegate callback?

Thanks,
Todd

Veer Arjun Busani

unread,
Nov 24, 2015, 3:07:25 PM11/24/15
to Google Mobile Ads SDK Developers
Hey Todd,

As per the documentation for GADBannerView - 

adNetworkClassName 
Returns nil while the latest ad request is in progress or if the latest ad request failed. For both standard and mediated Google AdMob ads, this method returns "GADMAdapterGoogleAdMobAds". For ads fetched via mediation custom events, this method returns @"GADMAdapterCustomEvents".

 
If adNetworkClassName is returning nil, it might be because no ads were loaded. Also were you able to reproduce the same issue using our sample app? If so do you mind sending us your Ad unit ID for us to try and replicate the issue? 

Thanks

Veer Arjun Busani
Mobile Ads SDK Team

Todd Huss

unread,
Nov 24, 2015, 6:06:38 PM11/24/15
to google-adm...@googlegroups.com, Google Mobile Ads SDK Developers
Hi Veer,

Yep, I can reproduce adViewWillLeaveApplication getting called while ads load with the sample app.   The creative shouldn’t be trying to open an unrecognized scheme but the DFP SDK also shouldn’t be calling adWillLeaveApplication without a call to canOpenUrl first.

Here’s a modified version of the sample app to reproduce with our ad unit id:


Here’s a gist of the sample app modified to repro the problem:


Thanks,
Todd


--

---
You received this message because you are subscribed to a topic in the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-admob-ads-sdk/ExhDfBX7ncA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-admob-ads...@googlegroups.com.
To post to this group, send email to google-adm...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Todd Huss

unread,
Dec 18, 2015, 4:53:51 PM12/18/15
to Google Mobile Ads SDK Developers
Any word on this? I created the sample app as request... we're still seeing the issue with the latest AdMob sdk.

Thanks,
Todd


On Tuesday, November 24, 2015 at 3:06:38 PM UTC-8, Todd Huss wrote:
Hi Veer,

Yep, I can reproduce adViewWillLeaveApplication getting called while ads load with the sample app.   The creative shouldn’t be trying to open an unrecognized scheme but the DFP SDK also shouldn’t be calling adWillLeaveApplication without a call to canOpenUrl first.

Here’s a modified version of the sample app to reproduce with our ad unit id:


Here’s a gist of the sample app modified to repro the problem:


Thanks,
Todd


On Tue, Nov 24, 2015 at 12:07 PM, Veer Arjun Busani <mobileadssdk-advisor+veer@google.com> wrote:

Hey Todd,

As per the documentation for GADBannerView - 

adNetworkClassName 
Returns nil while the latest ad request is in progress or if the latest ad request failed. For both standard and mediated Google AdMob ads, this method returns "GADMAdapterGoogleAdMobAds". For ads fetched via mediation custom events, this method returns @"GADMAdapterCustomEvents".

 
If adNetworkClassName is returning nil, it might be because no ads were loaded. Also were you able to reproduce the same issue using our sample app? If so do you mind sending us your Ad unit ID for us to try and replicate the issue? 

Thanks

Veer Arjun Busani
Mobile Ads SDK Team

On Tuesday, November 24, 2015 at 2:31:58 PM UTC-5, Todd Huss wrote:
We're using the 7.5.2 SDK. When running ads served directly via DFP we get a bunch of callbacks to the adViewWillLeaveApplication delegate even though the user didn't tap anything. Everything works fine but we're logging events to our analytics that the user tapped the ad even though the user didn't.

Confirmed that in the GADBannerView adNetworkClassName is nil so the ads are coming directly via dfp. We do however see an error right afterwards on the console that "LaunchServices: ERROR: There is no registered handler for URL scheme moat-bridge" which I'm guessing is some erroneous javascript in the creative but we can't control the creative many of our advertisers give us.

I would think though that we shouldn't get the delegate callback unless the javascript is successfully able to open a url scheme. Maybe the DFP SDK is forgetting to check canOpenURL before making the delegate callback?

Thanks,
Todd

--

---
You received this message because you are subscribed to a topic in the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-admob-ads-sdk/ExhDfBX7ncA/unsubscribe.
To unsubscribe from this group and all its topics, 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.

Andrew Brogdon (Mobile Ads SDK Team)

unread,
Dec 21, 2015, 12:44:18 PM12/21/15
to Google Mobile Ads SDK Developers
Hi Todd,

I've filed a bug against the iOS SDK engineering team. Once we hear back from them, I'll reply here with more information.

Thanks!

- Ram
Reply all
Reply to author
Forward
0 new messages