Then I added this code to my app:
ConsentDebugSettings debugSettings = new ConsentDebugSettings
.Builder(this)
.setDebugGeography(ConsentDebugSettings
.DebugGeography
.DEBUG_GEOGRAPHY_EEA)
.addTestDeviceHashedId("xxx")
.build();
ConsentRequestParameters params = new ConsentRequestParameters
.Builder()
.setTagForUnderAgeOfConsent(false)
.setConsentDebugSettings(debugSettings)
.build();
consentInformation = UserMessagingPlatform.getConsentInformation(this);
consentInformation.requestConsentInfoUpdate(
this,
params,
new ConsentInformation.OnConsentInfoUpdateSuccessListener() {
@Override
public void onConsentInfoUpdateSuccess() {
// The consent information state was updated.
// You are now ready to check if a form is available.
if (consentInformation.isConsentFormAvailable()) {
loadForm();
}
else {
// Richtigen Context zuweisen
Context context = getApplicationContext();
// CharSequence mit Text für den Toast erstellen
CharSequence toastText = "No Form Available";
// Anzeigedauer festlegen: LENGTH_SHORT oder LENGTH_LONG
int duration = Toast.LENGTH_LONG;
// Toast erstellen und anzeigen
Toast toast = Toast.makeText(context, toastText, duration);
toast.show();
}
}
},
new ConsentInformation.OnConsentInfoUpdateFailureListener() {
@Override
public void onConsentInfoUpdateFailure(FormError formError) {
// Handle the error.
// Richtigen Context zuweisen
Context context = getApplicationContext();
// CharSequence mit Text für den Toast erstellen
CharSequence toastText = "Error";
// Anzeigedauer festlegen: LENGTH_SHORT oder LENGTH_LONG
int duration = Toast.LENGTH_LONG;
// Toast erstellen und anzeigen
Toast toast = Toast.makeText(context, toastText, duration);
toast.show();
}
});
However, I always end up getting the toast "Error" landing in onConsentInfoUpdateFailure(FormError formError) independet from testing on my mobile phone or in the virtual device with and without debug settings (I am in europe btw).
Am I missing something?
Thanks,
Mario
Hello Mario,
Thank you for reaching out to us.
For us to check this on our end, could you please provide the following details via Reply privately to author option or send it directly to mobileads...@gmail.com? Kindly inform us on this thread if you sent it directly to the email provided.
Regards,
|
||||||
Hello Mario,
Thank you for reaching out to us.
For us to check this on our end, could you please provide the following details via Reply privately to author option or send it directly to mobileadstesting99@gmail.com? Kindly inform us on this thread if you sent it directly to the email provided.
|
||||||
|
||||||
Hi Mario Schleep,
I am currently looking into the issue. I will let you know when I have any further questions or updates.
Feel free to reach out if you have anything new to share.
Hi Igor,
Thank you for reaching out to us.
The previous publisher root of the issue is that WebPropertyCode is unchecked which prevents us from being able to fetch their implied GVL vendors for the TCFv2 message and return a message to be shown. If this is not your root cause, can you provide us the following details below so that we can further check this? You can provide the following details via Reply privately to author option or directly provide it to the link below.
If the file(s) you are looking to share are less than 25mb in total you can attach them to this case on your next reply. If you are having trouble attaching your file to this case or if your file(s) are larger than 25mb, you can share your files with me by performing the following steps:
1. Navigate to
2. Fill out all fields, and attach your file(s).
3. Please reply back on this thread when you have uploaded your file(s). Please do not share this link.
Regards,
|
||||||
--
---
You received this message because you are subscribed to the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-admob-ads-sdk/34cb08a3-a969-4c65-beef-1a8aeb657c81n%40googlegroups.com.