setSameAppKeyEnabled method

Future<void> setSameAppKeyEnabled(
  1. bool isEnabled
)

Set whether the Google Mobile Ads SDK Same App Key is enabled (iOS only).

The value set persists across app sessions. The key is enabled by default. This is a no-op on Android. More documentation on same app key is available at https://developers.google.com/admob/ios/global-settings#same_app_key.

Implementation

Future<void> setSameAppKeyEnabled(bool isEnabled) {
  if (defaultTargetPlatform == TargetPlatform.iOS) {
    return instanceManager.setSameAppKeyEnabled(isEnabled);
  } else {
    return Future.value();
  }
}