Google UMP: formError: Web view timed out.

672 views
Skip to first unread message

Daimy

unread,
Dec 8, 2023, 8:12:49 AM12/8/23
to Google Mobile Ads SDK Developers
Hello,

Currently we are implementing Google UMP in our Unity games. We are running into an issue which I hope you can help me with.

- I have internet
- I am able to load and view ads
- I am able to connect to our API through the client
- I live in Amsterdam, the Netherlands

But somehow the Google UMP doesn't want to load for me. We always get this error:

formError: Web view timed out.

I searched for this error but there is no explanation why it's popping up.

- My device: Samsung A21 with Android 11
- Platform: Unity
- We are using the latest Admob SDK version: v8.6.0

What I tried:
- Using another device, same error
- Switched my internet to another one but same issue
- Remove myself as test device, still same

Any guidance of why this occurs would be really helpful. 

Mobile Ads SDK Forum Advisor

unread,
Dec 8, 2023, 9:25:09 AM12/8/23
to stroev...@gmail.com, google-adm...@googlegroups.com

Hi Daimy,

Thank you for contacting the Mobile Ads SDK support team.

I will check with our team regarding your issue and one of my team members will reach out to you once we have an update on this. Meanwhile, your patience is highly appreciated.

This message is in relation to case "ref:!00D1U01174p.!5004Q02qXMmz:ref"

Thanks,
 
Google Logo Mobile Ads SDK Team


Mobile Ads SDK Forum Advisor

unread,
Dec 12, 2023, 3:59:04 AM12/12/23
to stroev...@gmail.com, google-adm...@googlegroups.com
Hello Daimy,

Thanks for reaching out.

This looks like a WebView (connection) instead of UMP SDK issue to me.

Are you able to reproduce it with our sample? If you do, can you provide the reproducing steps?


Regards,
Joshua

ref:!00D1U01174p.!5004Q02qXMmz:ref

Nguyen Thai Duong

unread,
Dec 18, 2023, 12:04:18 AM12/18/23
to Google Mobile Ads SDK Developers
Hello,

Currently we are implementing Google UMP in our apps. We are running into an issue which I hope you can help me with.


- I have internet
- I am able to load and view ads
- I live in Viet Nam


But somehow the Google UMP doesn't want to load for me. We always get this error:

formError: Web view timed out.

I searched for this error but there is no explanation why it's popping up.

- My device: Google Pixel 3XL with Android 12
- Platform: Android
- We are using the latest Admob SDK version.

Nguyen Thai Duong

unread,
Dec 18, 2023, 12:04:25 AM12/18/23
to google-adm...@googlegroups.com

Mobile Ads SDK Forum Advisor

unread,
Dec 18, 2023, 12:54:24 AM12/18/23
to 016861...@gmail.com, google-adm...@googlegroups.com

Hi,

Thank you for contacting the Mobile Ads SDK Support team.

I see that you have already raised this concern on another thread with the subject ‘Web view timed out’, and we have already responded there for this issue. To avoid multiple threads on the same issue, please take a look at that thread and continue the discussion on the same for further updates on the issue.
 

This message is in relation to case "ref:!00D1U01174p.!5004Q02r2LYw:ref"


Thanks,
 
Google Logo Mobile Ads SDK Team


Nguyen Thai Duong

unread,
Dec 18, 2023, 4:21:07 AM12/18/23
to Google Mobile Ads SDK Developers
Screenshot 2023-12-18 143950.pngScreenshot 2023-12-18 144554.png
Build.gradle
implementation("com.google.android.ump:user-messaging-platform:2.1.0")
implementation 'com.google.android.gms:play-services-ads:22.6.0'
This is my code. Please help me!

Vào lúc 12:54:24 UTC+7 ngày Thứ Hai, 18 tháng 12, 2023, Mobile Ads SDK Forum Advisor đã viết:

Nguyen Thai Duong

unread,
Dec 18, 2023, 6:11:07 AM12/18/23
to Google Mobile Ads SDK Developers
I also copy code from your project:
1. Add libraries: 
implementation 'com.google.android.gms:play-services-ads:22.6.0'
implementation 'com.google.android.ump:user-messaging-platform:2.1.0'
2. Create class: 
GoogleMobileAdsConsentManager.java
public void gatherConsent(
Activity activity, OnConsentGatheringCompleteListener onConsentGatheringCompleteListener) {
// For testing purposes, you can force a DebugGeography of EEA or NOT_EEA.
ConsentDebugSettings debugSettings = new ConsentDebugSettings.Builder(activity)
.setDebugGeography(ConsentDebugSettings.DebugGeography.DEBUG_GEOGRAPHY_EEA)
// Check your logcat output for the hashed device ID e.g.
// "Use new ConsentDebugSettings.Builder().addTestDeviceHashedId("ABCDEF012345")" to use
// the debug functionality.
.addTestDeviceHashedId("4F8BE3276EC63A3D168290FA11A23829")
.build();

ConsentRequestParameters params = new ConsentRequestParameters.Builder()
.setConsentDebugSettings(debugSettings)
.build();

// Requesting an update to consent information should be called on every app launch.
consentInformation.requestConsentInfoUpdate(
activity,
params,
() ->
UserMessagingPlatform.loadAndShowConsentFormIfRequired(
activity,
formError -> {
// Consent has been gathered.
onConsentGatheringCompleteListener.consentGatheringComplete(formError);
}),
requestConsentError ->
onConsentGatheringCompleteListener.consentGatheringComplete(requestConsentError)
);
}
3. SplashActivity.kt: 

googleMobileAdsConsentManager =
GoogleMobileAdsConsentManager.getInstance(applicationContext)
googleMobileAdsConsentManager?.gatherConsent(
this,
OnConsentGatheringCompleteListener { consentError: FormError? ->
if (consentError != null) {
// Consent not obtained in current session.
Log.d(
"LOG_TAG", String.format(
"%s: %s", consentError.errorCode, consentError.message
)
)
}
})
I added my device as device test, 
But it still show UMP form error: "4: Web view timed out."
Vào lúc 12:54:24 UTC+7 ngày Thứ Hai, 18 tháng 12, 2023, Mobile Ads SDK Forum Advisor đã viết:

Hi,

Reply all
Reply to author
Forward
0 new messages