sbugert / react-native-admob

A react-native component for Google AdMob banners
BSD 2-Clause "Simplified" License
1.13k stars 532 forks source link

Updating documentation - run errors #375

Open Northshoot opened 5 years ago

Northshoot commented 5 years ago

The documentation for configuration is a bit unclear.

In the text you refer to the https://developers.google.com/admob/ios/quick-start#import_the_mobile_ads_sdk for configuration, however, the example package does not follow the configuration in the link:

@import GoogleMobileAds;
…

@implementation AppDelegate

- (BOOL)application:(UIApplication *)application
    didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {

  // Initialize Google Mobile Ads SDK
  // Sample AdMob app ID: ca-app-pub-3940256099942544~1458002511
  [GADMobileAds configureWithApplicationID:@"YOUR_ADMOB_APP_ID"];
  return YES;
}

@end

So which one is it? Would rather not arbitrary test variations.

Moreover, in debug mode on the device I am getting following output:

 AdMob and Firebase are in use in this app, but are not linked. For analytics data consistency and integrity, it is highly recommended that you link your AdMob app to the corresponding Firebase app and re-download the GoogleServices-Info.plist file. See https://support.google.com/admob/answer/6383165 for more information.

Should we link AdMod or ignore?

khacnha commented 5 years ago

Me too. Can not find where to configure YOUR_ADMOB_APP_ID. Do not know errors can lead to Adsense account was suspended?