You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 13, 2022. It is now read-only.
Can someone please assist me with an issue I am having when using the .DEBUG_GEOGRAPHY_EEA
When I set the DebugGeography.DEBUG_GEOGRAPHY_NOT_EEA the requestConsentInfoUpdate returns successfully however if I then set it to .DEBUG_GEOGRAPHY_EEA the ConsentInfoUpdate fails.
This occurs on the real device below and on a simulated device.
Using Android Studio : compileSdkVersion 29
implementation 'com.google.android.ads.consent:consent-library:1.0.6'
Device : Samsung Galaxy J4 (android version 8.0.0)
The DEVICE_ID and pub-MY-ID would be replaced when running the app.
The code I am using is below:
// Geography appears as in EEA for test devices.
ConsentInformation.getInstance(this).setDebugGeography(DebugGeography.DEBUG_GEOGRAPHY_EEA);
// Geography appears as not in EEA for debug devices.
//ConsentInformation.getInstance(this).setDebugGeography(DebugGeography.DEBUG_GEOGRAPHY_NOT_EEA);
ConsentInformation consentInformation = ConsentInformation.getInstance(this);
String[] publisherIds = {"pub-MY-ID"};
consentInformation.requestConsentInfoUpdate(publisherIds, new ConsentInfoUpdateListener() {
@Override
public void onConsentInfoUpdated(ConsentStatus consentStatus) {
Log.d("consent"," User's consent status successfully updated. ");
}
@Override
public void onFailedToUpdateConsentInfo(String errorDescription) {
// User's consent status failed to update.
Log.d("consent"," User's consent status failed to update. ");
}
});
The text was updated successfully, but these errors were encountered:
Hello,
Can someone please assist me with an issue I am having when using the .DEBUG_GEOGRAPHY_EEA
When I set the DebugGeography.DEBUG_GEOGRAPHY_NOT_EEA the requestConsentInfoUpdate returns successfully however if I then set it to .DEBUG_GEOGRAPHY_EEA the ConsentInfoUpdate fails.
This occurs on the real device below and on a simulated device.
Using Android Studio : compileSdkVersion 29
implementation 'com.google.android.ads.consent:consent-library:1.0.6'
Device : Samsung Galaxy J4 (android version 8.0.0)
The DEVICE_ID and pub-MY-ID would be replaced when running the app.
The code I am using is below:
ConsentInformation.getInstance(this).addTestDevice("DEVICE-ID");
The text was updated successfully, but these errors were encountered: