flutter_qq_ads icon indicating copy to clipboard operation
flutter_qq_ads copied to clipboard

加入个性化广告控制开关

Open danieldai opened this issue 3 years ago • 5 comments

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

danieldai avatar Apr 13 '22 23:04 danieldai

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

BytesZero avatar Apr 15 '22 05:04 BytesZero

类似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,
    });
  }

danieldai avatar Apr 15 '22 05:04 danieldai

请链接官方文档哦

BytesZero avatar Apr 15 '22 08:04 BytesZero

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

danieldai avatar Apr 15 '22 08:04 danieldai

收到

BytesZero avatar Apr 15 '22 16:04 BytesZero

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

BytesZero avatar Aug 22 '23 11:08 BytesZero