adsONorOFf method

Future adsONorOFf()

Implementation

Future adsONorOFf() async {
  await MobileAds.instance.initialize();
  MobileAds.instance.updateRequestConfiguration(
      RequestConfiguration(
          testDeviceIds: ["5942A1FFAF2C3820410ECA17A74E68C5"]));
  FacebookAudienceNetwork.init(
      testingId: "19451924-a4ac-44fd-a2ba-c51cf5fb6a94",
    iOSAdvertiserTrackingEnabled: true
  );

  String data = await admodelData();
  admodel = Admodel.fromJson(jsonDecode(data));
  await initPlatformState();
  return await PluginCodelabPlatform.instance.adsONorOFf();
}