question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error when clicking live ad on IOS device

See original GitHub issue

I’m receiving an error when clicking a live ad that links to an app download on IOS:

2021-03-05 00:02:44.657511+0000 App[96689:5293609] [Process] 0x117825c18 - [pageProxyID=31, webPageID=32, PID=96702] WebPageProxy::didFailProvisionalLoadForFrame: frameID = 8, domain = NSURLErrorDomain, code = -999

The click doesn’t take the user to the app page.

My symptoms started at the beginning of February when I updated my app info.plist to have: <key>SKAdNetworkItems</key> <array> <dict> <key>SKAdNetworkIdentifier</key> <string>cstr6suwn9.skadnetwork</string> </dict> </array>

as per the admob guidelines

My app revenue immediately plummeted and all clicks were being removed. I couldn’t find any issues when testing with test ads. It’s only when admob support asked me to record a charles session with live ads that I stumbled upon it. I suspect adding the SKAdNetworkIdentifier to the plist increased the frequency of app download ads to make it worse, but isn’t the issue itself.

Expected behavior Clicking an app download link inside a banner ad should take you to the app store page for that ad.

Ionic:

Ionic CLI : 6.12.3 Ionic Framework : @ionic/angular 5.5.4 @angular-devkit/build-angular : 0.1102.1 @angular-devkit/schematics : 11.2.1 @angular/cli : 11.2.1 @ionic/angular-toolkit : 2.3.3

Cordova:

Cordova CLI : 10.0.0 Cordova Platforms : ios 6.1.1 Cordova Plugins : no whitelisted plugins (0 plugins total)

Capacitor: @capacitor/cli: 2.4.6 @capacitor/core: 2.4.6 @capacitor/ios: 2.4.6 @capacitor-community/admob: 1.3.1

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
rdlabocommented, May 19, 2021

I’m sorry I couldn’t solve this problem. We released v3 today, so we hope you’ll give it a try. And if you have any problems, please open a new issue. Thank you.

0reactions
kevinainleywalkercommented, Mar 6, 2021

Thanks @rdlabo .

Banner is the ad type. Unfortunately I’m yet to see a test mode banner ad that links to an app download so I could only replicate outside of test mode.

My setup code for my example app:

export class AppComponent {
  private bannerConfig: AdOptions;  
  constructor(platform: Platform) {
    platform.ready().then(() => {
      this.bannerConfig = {
        adId: 'my app id',
        position: AdPosition.TOP_CENTER,
        adSize: AdSize.SMART_BANNER,
        isTesting: false
      };
      this.createBanner();
    });
  }
  public async createBanner(): Promise<void> {
    await AdMob.initialize({ requestTrackingAuthorization: true }).catch(e => {
      console.log(e)
      return;
    });
    AdMob.showBanner(this.bannerConfig).catch(e => {
      console.log(e)
    });
  }
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

Google Admob live ads not showing in iOS 11 on real device
I get the error message below for the banner ad and interstitial ad: "adView:didFailToReceiveAdWithError: Request Error: No ad to show.” I'll ...
Read more >
Control personalized ads on the App Store, Apple News, and ...
Go to System Preferences and click Security & Privacy. Select the Privacy tab. Select Apple Advertising in the side bar. Mac window showing ......
Read more >
Can not show ads on real iOS device. Working on Xcode ...
I am trying to implement Admob for my iOS app. The form loads on the Xcode simulator devices. I am located in the...
Read more >
Common reasons for ads not showing - Google AdMob Help
Use the following guide to understand common reasons why apps show few or no ads. If you're still having issues, use the Can't...
Read more >
How to Fix Instagram Crashing - Small Business - Chron.com
Crashes are especially common when the iOS and Android platforms make major updates to their operating systems and release new phone versions.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found