FlutterAds / flutter_qq_ads

🔥🔥🔥 Flutter 广告插件 -- 优量汇 、广点通、腾讯广告(支持开屏、插屏、激励视频、Banner、信息流、视频贴片)
https://pub.dev/packages/flutter_qq_ads
MIT License
107 stars 17 forks source link

加入个性化广告控制开关 #20

Closed danieldai closed 1 year ago

danieldai commented 2 years ago

现在APP在国内应用市场上架时会检查app是否有个性化广告功能,如果有的话需要app提供配置开关,让用户能够关闭个性化广告。对于Flutter开发的APP,需要在Flutter代码中能够对此进行控制。

BytesZero commented 2 years ago

来个具体的文档说明是哪个参数哦

danieldai commented 2 years ago

类似personalized这样的参数 https://github.com/gstory0404/flutter_tencentad/blob/master/lib/flutter_tencentad.dart

///
  /// # SDK注册初始化
  ///
  /// [androidId] androidId 必填
  ///
  /// [iosId] iosId 必填
  ///
  /// [channelId] channelId 渠道id [FlutterTencentadChannel]
  ///
  /// [personalized] personalized 是否开启个性化广告 [FlutterTencentadPersonalized]
  ///
  static Future<bool> register({
    required String androidId,
    required String iosId,
    int? personalized,
    bool? debug,
    int? channelId,
  }) async {
    return await _channel.invokeMethod("register", {
      "androidId": androidId,
      "iosId": iosId,
      "debug": debug ?? false,
      "channelId": channelId ?? FlutterTencentadChannel.other,
      "personalized": personalized ?? FlutterTencentadPersonalized.show,
    });
  }
BytesZero commented 2 years ago

请链接官方文档哦

danieldai commented 2 years ago

这是优量汇的文档 https://developers.adnet.qq.com/doc/android/union/union_personal_recommend

BytesZero commented 2 years ago

收到

BytesZero commented 1 year ago

已更新 v2.6.0,具体看源码示例