googleads-consent-sdk-android icon indicating copy to clipboard operation
googleads-consent-sdk-android copied to clipboard

isRequestLocationInEeaOrUnknown() is failed

Open antonyuit opened this issue 6 years ago • 5 comments

I tried to request the location in Estonia (EEA) but the results were always "false" ConsentInformation.getInstance(context).isRequestLocationInEeaOrUnknown(); or "https://adservice.google.com/getconfig/pubvendors"

antonyuit avatar May 26 '18 19:05 antonyuit

i have the same issue...

CHXAIOGE avatar May 28 '18 02:05 CHXAIOGE

Yes, tried to do something like this:

val consentInformation = ConsentInformation.getInstance(this)
consentInformation.addTestDevice("<DEVICE_ID>")
consentInformation.debugGeography = DebugGeography.DEBUG_GEOGRAPHY_EEA
val publisherIds = arrayOf("<PUBLISHER_IDS>")
consentInformation.requestConsentInfoUpdate(publisherIds, object: ConsentInfoUpdateListener {
            override fun onFailedToUpdateConsentInfo(reason: String?) {
                Log.d(TAG, "reason=$reason")
            }

            override fun onConsentInfoUpdated(consentStatus: ConsentStatus?) {
                Log.d(TAG, "consentStatus " + consentStatus.toString() + "isEAA=${ConsentInformation.getInstance(applicationContext).isRequestLocationInEeaOrUnknown}")
            }

        })

But then it shows error in onFailedToUpdateConsentInfo:

Could not parse Event FE preflight response

raymondctc avatar May 28 '18 07:05 raymondctc

Did you manage to resolve this issue?

marchbold avatar Nov 06 '18 13:11 marchbold

I am also having this error.

Please Assist

idanasher avatar Nov 07 '18 08:11 idanasher

Hello , Did you solve this issue?

arpansharma7474 avatar Nov 21 '18 05:11 arpansharma7474