Google GPDR Consent. AdMob Error: IAB TCF v2.0 errors detected We've detected an issue on your IAB TC string on one or more of your sites or apps

只愿长相守 提交于 2021-02-17 19:11:20

问题


After implementing google UMP SDK to get consent for EU users I faced following error on AdMob (iOS and Android apps):

IAB TCF v2.0 errors detected We've detected an issue on your IAB TC string on one or more of your sites or apps. These errors may affect your ability to serve ads to European users. A detailed report is available for you on the EU user consent page.

In downloadable .csv file I see the following:

In official documentation troubleshooting guide looks following:

But there is no info how to do this through SDK.

Do you know how to fix this? As it looks like I loosing all traffic for EU users in this case.

Thank you.


回答1:


DISCLAIMER: this is just my experience "AS IS", maybe I'm missing some important details, then please let me know!

Also had this error after app update, and finally after few attempts it has disappeared. I'm not an expert in GDPR, just want to share my experience, maybe (hope) there is a better solution.

What I've tried (don't do this, it didn't removes AdMob error):

  • Disable personalize ads in AdMob console
  • Remove UMP lib and release an update
  • Remove ad units with errors and release an update

After every of this attempts I still got error message. I know it requires time to disappear, if no new errors comes, but after few days errors count was increasing, and even newly added ad units were in report, but I added them in app version without UMP lib. After reading some TCF strings docs, I realized that TCF strings still exist on user devices and AdMob uses them. After logging all default shared prefs I've got something like:

So, next I released an app update, with TCF strings cleanup on app launch:

private fun clearTcfData(context: Context) {
    val prefs = PreferenceManager.getDefaultSharedPreferences(context)
    val tcfKeys = prefs.all.keys.toList().filter { it.startsWith("IABTCF", true) }
    if (tcfKeys.isNotEmpty()) {
        prefs.edit {
            tcfKeys.forEach { remove(it) }
        }
    }
}

Then soon I saw less errors in TCF error report, and after about 10 days TCF error banner has disappeared. Also I enabled personalized ads again, cause this doesn't cause a problem. To sum up, solution that works for me is:

  • Replace UMP lib with old EU consent lib
  • Clear remaining TCF strings on app launch
  • Release and wait



回答2:


So think i found a problem with error 1.2. If user deselect grants Google consent to: Store and/or access information on a device (Purpose 1)

Ads will not display and that's the error. App will work without serving any ads.

"If consent is missing for Google for Purpose 1 in the TC string, Google will drop the ad request and no ads will be served."

https://support.google.com/admob/answer/9760862?hl=en



来源:https://stackoverflow.com/questions/64820777/google-gpdr-consent-admob-error-iab-tcf-v2-0-errors-detected-weve-detected-an

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!