Kod*_*ata 5 flutter firebase-admob
我想知道什么时候使用firebase_admob,我需要这个代码吗?如果是这样,在发布应用程序时,我应该为keywords、contentUrl、 和写什么testDevices?我的意思是,在发布应用程序时,testDevices甚至有必要吗?
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
);
Run Code Online (Sandbox Code Playgroud)
此信息用于向用户展示广告。
您应该使用与您的应用程序相关的关键字。例如:如果您的申请与医院有关,那么您可以使用医学作为关键字。
如果您为特定应用程序开发任何网站,则可以添加您的网站 url 作为contentUrl。
testDevices是您在其中进行测试的设备的 ID。如果您想在真实设备中测试您的应用程序,那么您必须添加测试设备 ID,因为它可以帮助您避免广告暴徒。
| 归档时间: |
|
| 查看次数: |
2673 次 |
| 最近记录: |