【问题标题】:Consent message not showing up同意消息未显示
【发布时间】:2021-06-05 03:19:14
【问题描述】:

我正在使用带有 admob_consent 包的 firebase_admob。我看不到同意消息。 我在终端中得到以下线路。

I/UserMessagingPlatform(10516): Use new ConsentDebugSettings.Builder().addTestDeviceHashedId("E044C97978FC060327A4C4F01EE86A88") to set this as a debug device. D/UserMessagingPlatform(10516): Stored info not exists: IDFA_freqCapNumViews D/UserMessagingPlatform(10516): Stored info not exists: IABTCF_TCString D/UserMessagingPlatform(10516): Stored info not exists: IABTCF_AddtlConsent

是否仅在欧盟国家/地区弹出同意消息? 因为我来自印度。

【问题讨论】:

    标签: flutter firebase-admob gdprconsentform admob-cookieconsent


    【解决方案1】:

    是的,同意仅显示在欧盟。对于测试,您可以使用以下代码:

    ConsentDebugSettings debugSettings = new ConsentDebugSettings.Builder(this)
                .setDebugGeography(ConsentDebugSettings
                        .DebugGeography
                        .DEBUG_GEOGRAPHY_EEA)
                .addTestDeviceHashedId("E044C97978FC060327A4C4F01EE86A88")
                .build();
    
    // Google CMP implementation:
    ConsentRequestParameters params = new ConsentRequestParameters
            .Builder()
            .setTagForUnderAgeOfConsent(false)
            .setConsentDebugSettings(debugSettings)
            .build();
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2012-08-03
      • 2015-02-12
      • 1970-01-01
      • 1970-01-01
      • 2016-03-29
      • 2017-05-16
      相关资源
      最近更新 更多