单击横幅广告时的 AdMob 事件

AdMob event when Banner ad is clicked

我在我的 iOS 应用中集成了 AdMob 横幅广告 made for kids。应用程序被 App Store 审核流程拒绝,并显示以下消息:

You have selected the Kids category for your app, but it includes links out of the app or engages in commerce without first obtaining parental permission. Specifically, your app includes advertisements that, when tapped, take the user to a web page or the App Store.

我已经集成了家长控制,但无法确定从哪里启动家长控制。 我检查了一些方法来处理 GADBannerViewDelegate class 中横幅视图 GADBannerView 的点击,但没有任何方法。有以下委托方法

-(void)adViewWillLeaveApplication:(GADBannerView *)bannerView;

但是这个方法只是通知它会离开应用程序-我不能return NO或者在这里写任何东西来限制它离开应用程序。

任何人都可以帮助我找到阻止应用在需要时打开 GADBannerView 的方法吗?

您可以尝试其他方法:

  1. 您可以将广告定位到儿童:

    GADRequest *request = [GADRequest request];
    [request tagForChildDirectedTreatment:YES];
    
  2. 您可以在应用程序的开头实施家长控制。如果通过,则展示广告,如果不通过,则不展示广告。

For purposes of the Children's Online Privacy Protection Act (COPPA), there is a setting called tagForChildDirectedTreatment.

这里有一个link描述了方法的使用。

基本上你可以这样做:

  • tagForChildDirectedTreatment 设置为 YES 表示您希望您的内容被视为 child-directed 以符合 COPPA 的目的。
  • tagForChildDirectedTreatment 设置为 NO 以表明您不希望您的内容被视为 child-directed 以符合 COPPA 的目的。
  • 如果您不想表明您希望根据 COPPA 如何处理您的内容,请不要设置 tagForChildDirectedTreatment

您还必须遵守 App Store 指南。这是对您的情况很重要的引述:

Apps in the Kids Category may not include behavioral advertising (e.g. the advertiser may not serve ads based on the user’s activity), and any contextual ads must be appropriate for young audiences. You should also pay particular attention to privacy laws around the world relating to the collection of data from children online. Be sure to review the Privacy section of these guidelines for more information.

有关这方面的简短灵感,请查看 Apple 的这份指南。 https://developer.apple.com/app-store/parental-gates/

你可以做什么: 将 tagForChildDirectedTreatment 设置为 YES。不要跟踪孩子的用户数据。请注意您展示的广告类型。

如果您希望您的应用属于 child 类别,则不能显示将 child 从应用中删除的添加。但是如果你首先要求 parental permission 你可以做到这一点。为此,您可以根据家长许可的答案添加或不添加横幅 view/other 广告。

编辑: 也许这可以作为添加打开之前的检查 safari/app store:

func application(_ app: UIApplication, open url: URL, options: [UIApplicationOpenURLOptionsKey : Any] = [:]) -> Bool {

    //check the url that opens. 
    //present parental control
    //return true or false /open or reject opening safari/app store
}