Closed OlegNovosad closed 2 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.
Done updating the doc. Thanks for reporting!
There is an incorrect comment in step 5 in the codelab Adding AdMob ads to a Flutter app .
while it should be:
Same applies to all unit types in this step.