initGoogleAds method

Future<void> initGoogleAds()

Implementation

Future<void> initGoogleAds() async {
  AdBase? adBase = NavigationService.getAdBase();
  if (adBase == null) {
    dog.e("AdBase is Null");
    return;
  }
  try {
    await MobileAds.instance.initialize();
    AdInitInfo.initNetwork("google");
  } catch (e) {
    dog.e(e, title: "Google Init Error");
  }
  dog.i("Google Sdk Init Successfully");
}