flutteradmobgoogle-mobile-ads

How to use keywords in google mobile ads in flutter


I want to using keywords in google mobile ads but its not working. Ads showing but there is no related advertisement

     static BannerAd createBannerAd() {
    BannerAd ad = new BannerAd(
      adUnitId: getBannerAdId,
      size: AdSize.banner,
      request: AdRequest(keywords: Constants.fuelKeywords),
      listener: AdListener(
        onAdLoaded: (Ad ad) => print('Ad loaded.'),
        onAdFailedToLoad: (Ad ad, LoadAdError error) {
          print('Ad failed to load: $error');
          ad.dispose();
        },
        onAdOpened: (Ad ad) => print('Ad opened.'),
        onAdClosed: (Ad ad) => print('Ad closed.'),
        onApplicationExit: (Ad ad) => print('Left application.'),
      ),
    );

    return ad;
  }

Solution

  • As far as I know, the package doesn't support using keywords to better tailor ads. There are however settings to change ads that should be for kids as well as setting different maturity ratings for ads such as E, T, M, etc. in a similar way to how video games are rated.