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

加入个性化广告控制参数 #21

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

加入个性化广告控制参数 #21

danieldai opened this issue Apr 13, 2022 · 11 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

这是穿山甲的文档链接 https://www.csjplatform.com/supportcenter/26234

@BytesZero
Copy link
Member

收到

@hhgz9527
Copy link
Contributor

hhgz9527 commented Sep 9, 2022

#35

这个应该可以帮助到你。

@BytesZero
Copy link
Member

其实我没有理解这个 API 的作用,如果关闭广告在 Flutter 层关闭即可

@danieldai
Copy link
Author

这个api是配置不再根据手机的id等信息,个性化推荐广告。比如现在的个性化广告系统检测到用户在京东浏览过某商品,用户在使用别的app时,也显示该用户在京东浏览过的商品或者相关商品。关闭个性化广告后就不进行这个关联推荐了,但是还是显示广告。

@BytesZero
Copy link
Member

那这就理解了,安排

@danieldai
Copy link
Author

FlutterAds/flutter_qq_ads#20 腾讯的广告插件也新增了相关的API

@BytesZero
Copy link
Member

@danieldai @hhgz9527
2.7.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

3 participants