Problem loading consent form: "UserMessagingPlatform: Invalid response from server."

460 views
Skip to first unread message

Mario Schleep

unread,
Jul 12, 2021, 10:20:01 AM7/12/21
to Google Mobile Ads SDK Developers

Hi all,

unfortunately I can't get it done that the form shows.
What I did:
  • link funding choices to admob
  • added ump to build.gradle
  • added the app ID to android manifest
  • set up a dialog for the app in admob and activated it for the app

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


Mobile Ads SDK Forum Advisor

unread,
Jul 12, 2021, 11:09:14 PM7/12/21
to mario....@gmail.com, google-adm...@googlegroups.com

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.

  • Sample App with minimum modification
  • Steps made that returning the error

Regards,

Google Logo
Princess Pamela Pineda
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2KbWbG:ref

Mario Schleep

unread,
Jul 26, 2021, 11:16:04 AM7/26/21
to Google Mobile Ads SDK Developers
Hi,

Sorry, because of private reasons I was not able to answer. Could you please tell me how to provide the app? I am not possible to send or attach an zipped file.

Thanks and regards,
Mario
mobileadssdk schrieb am Dienstag, 13. Juli 2021 um 05:09:14 UTC+2:

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.

Mobile Ads SDK Forum Advisor

unread,
Jul 26, 2021, 3:08:10 PM7/26/21
to mario....@gmail.com, google-adm...@googlegroups.com
Hi Mario,

You can send either a zip file or a link to where you have the app stored. To mobileads...@gmail.com and reference this post so that we know exactly which thread this is for. At the same time if you can include any steps you have seen that can help to reproduce the issue.

Regards,
Google Logo
William Pescherine
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2KbWbG:ref

Mobile Ads SDK Forum Advisor

unread,
Jul 28, 2021, 3:28:14 AM7/28/21
to mario....@gmail.com, google-adm...@googlegroups.com
Hi Mario,

I work along with Princess and William. Allow me to assist you in this.

I've checked your code implementation, and can confirm that it is aligned on our implementation document. Could you please check your funding choices account, and make sure the Ads for EU configuration it set to personalised? Once configured, kindly try your app again. Please do note that it sometimes takes time for the new form or an edit to be published.

Please let me know how it goes after doing the suggestion above.

Regards,
Google Logo
Teejay Wennie Pimentel
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2KbWbG:ref

Mario Schleep

unread,
Aug 10, 2021, 3:54:25 PM8/10/21
to Google Mobile Ads SDK Developers
Hi,
do you have any further advice for me as the last suggestion did not work?

Thanks and best wishes,
Mario

Mario Schleep

unread,
Aug 11, 2021, 5:01:40 PM8/11/21
to Google Mobile Ads SDK Developers
Sorry, in case Teejay did not get my answer, I probably should give more detail.

I cannot log int funding choices, I always get redirected to admob. However, in my admob settings ads for EU configuration it set to personalise. Therefore, I could not change anything and the behavior of the app did not change.

Regards,
Mario

Mobile Ads SDK Forum Advisor

unread,
Aug 12, 2021, 2:01:28 PM8/12/21
to mario....@gmail.com, google-adm...@googlegroups.com

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.

 



ref:_00D1U1174p._5004Q2KbWbG:ref

Mobile Ads SDK Forum Advisor

unread,
Jun 28, 2022, 3:40:00 PM6/28/22
to mario....@gmail.com, google-adm...@googlegroups.com
Hi Mario,

My name is Chris and I will be assisting with this investigation. I will take a look and keep you updated on my findings.

Best,

???????Chris

ref:_00D1U1174p._5004Q2KbWbG:ref

Igor Ya

unread,
Sep 11, 2022, 7:31:05 PM9/11/22
to Google Mobile Ads SDK Developers
Hello! 
Was the error resolved? I have the same situation.

--------------------------------------------------------------------------------------------------------------------------------------------------------------------

When using:
ConsentDebugSettings debugSettings = new ConsentDebugSettings.Builder(this)
.setDebugGeography(ConsentDebugSettings.DebugGeography.DEBUG_GEOGRAPHY_EEA)
.addTestDeviceHashedId("890CA9.....................7DEBB")
.build();

onConsentInfoUpdateFailure - formError.getErrorCode() = 1   "Invalid response from server.""

--------------------------------------------------------------------------------------------------------------------------------------------------------------------

When using:
ConsentDebugSettings debugSettings = new ConsentDebugSettings.Builder(this)
.setDebugGeography(ConsentDebugSettings.DebugGeography.DEBUG_GEOGRAPHY_NOT_EEA)
.addTestDeviceHashedId("890CA9.....................7DEBB")
.build();

consentInformation.getConsentStatus() = NOT_REQUIRED

-------------------------------------------------------------------------------------------------------------------------------------------------------------------

The problem is in  DEBUG_GEOGRAPHY_EEA ?  
Help to solve.

вівторок, 28 червня 2022 р. о 22:40:00 UTC+3 mobileadssdk пише:

Mobile Ads SDK Forum Advisor

unread,
Sep 13, 2022, 2:40:49 AM9/13/22
to yaliond...@gmail.com, google-adm...@googlegroups.com

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.

  • Sample app project
  • Steps to replicate
  • App id

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

https://docs.google.com/forms/d/e/1FAIpQLSfkAiXMeYP-fw1W3Z-tT9uwmATEKO5X6S-th0gR2ezdKaaqfg/viewform?usp=pp_url&entry.400550049=Mobile+Ads+SDK&entry.460850823=5004Q00002KbWbGQAV&entry.80707362=00072434

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,

Google Logo
Princess Pamela
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2KbWbG:ref
Message has been deleted

Igor Ya

unread,
Sep 13, 2022, 6:59:12 AM9/13/22
to Google Mobile Ads SDK Developers
Hello! 
The problem was the configuration of the account. 
Thank you for your help.

Luitgardus Say

unread,
Sep 13, 2022, 7:42:12 AM9/13/22
to Igor Ya, Google Mobile Ads SDK Developers

--

---
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.
Reply all
Reply to author
Forward
0 new messages