Сообщение о согласии не появляется

Я использую firebase_admob с пакетом admob_consent. Я не вижу сообщения о согласии. Я получаю следующие строки в терминале.

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

Сообщение о согласии появляется только в странах ЕС? Потому что я из Индии.

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();
Другие вопросы по тегам