googleads / admob-ads-in-flutter

Apache License 2.0
73 stars 36 forks source link

Incorrect comment in ads codelab for ad units #14

Closed OlegNovosad closed 2 years ago

OlegNovosad commented 3 years ago

There is an incorrect comment in step 5 in the codelab Adding AdMob ads to a Flutter app .

static String get rewardedAdUnitId {
    if (Platform.isAndroid) {
      return '<YOUR_ANDROID_INTERSTITIAL_AD_UNIT_ID>';
    } else if (Platform.isIOS) {
      return '<YOUR_ANDROID_INTERSTITIAL_AD_UNIT_ID>';
    } else {
      throw new UnsupportedError('Unsupported platform');
    }
}

while it should be:

static String get rewardedAdUnitId {
    if (Platform.isAndroid) {
      return '<YOUR_ANDROID_INTERSTITIAL_AD_UNIT_ID>';
    } else if (Platform.isIOS) {
      return '<YOUR_IOS_INTERSTITIAL_AD_UNIT_ID>';
    } else {
      throw new UnsupportedError('Unsupported platform');
    }
}

Same applies to all unit types in this step.

kunny commented 2 years ago

Done updating the doc. Thanks for reporting!