Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which of the MobileAdTargetingInfo properties of Flutter Firebase AdMob package do I need for release?

I want to know when using firebase_admob, do I need this code? If so, when releasing an app, what should I write for keywords, contentUrl, and testDevices? I mean, when releasing an app, testDevices is even necessary?

  MobileAdTargetingInfo targetingInfo = MobileAdTargetingInfo(
      keywords: <String>['flutterio', 'beautiful apps'],
      contentUrl: 'https://flutter.io',
      birthday: DateTime.now(),
      childDirected: false,
      designedForFamilies: false,
      gender: MobileAdGender.male, // or MobileAdGender.female, MobileAdGender.unknown
      testDevices: <String>[], // Android emulators are considered test devices
    );
like image 674
Daibaku Avatar asked Dec 03 '18 09:12

Daibaku


1 Answers

this information is used to show ad to users.

You should use keywords related to your application. Ex: if Your application is related to hospital then you can use medicine as your key words.

you can add you web site url if you develop any web site for particular application as contentUrl .

testDevices is a Id of you device in which you are tested. if you want to test your application in real device then you must add test device id because it help you to avoid ad mob bane.

like image 127
Viren V Varasadiya Avatar answered Oct 14 '22 02:10

Viren V Varasadiya