Last updated:
0 purchases
gtads sigmob
GTAds Sigmob广告支持插件 #
📢 相关插件 #
sigmobad Sigmob广告本体,内部已集成无需额外引入,配置相关查看插件说明
GTAds 聚合广告插件,必须引入
使用 #
pubspec.yaml #
//广告基础库 必须引入
gtads: ^1.2.0
//Sigmob广告
gtads_sigmob: ^1.2.0
copied to clipboard
引入 #
import 'package:gtads_sigmob/gtads_sigmob.dart';
copied to clipboard
使用 #
仅需通过以下方法插入广告至聚合插件,无需关注具体广告的调用
//参数依次为 别名、andorid app Id、ios app Id
GTAds.addProvider([
GTAdsSigmobProvider(
//广告别名 唯一
alias: _alias,
//andorid app id
androidId: '6878',
//ios app id
iosId: '6877',
//andorid app key
androidAppKey: '8ebc1fd1c27e650c',
//ios app key
iosAppKey: 'eccdcdbd9adbd4a7')
]);
copied to clipboard
设置userid #
GTAdsSigmobProvider? provider =
GTAds.getProvider(_alias) as GTAdsSigmobProvider?;
provider?.setUserId("123");
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.