Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
danieldai opened this issue Apr 13, 2022 · 6 comments
Closed

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

danieldai opened this issue Apr 13, 2022 · 6 comments

Comments

@danieldai
Copy link

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

@BytesZero
Copy link
Member

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

@danieldai
Copy link
Author

类似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
Copy link
Member

请链接官方文档哦

@danieldai
Copy link
Author

@BytesZero
Copy link
Member

收到

@BytesZero
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants