AppLovin / AppLovin-MAX-Unity-Plugin

110 stars 31 forks source link

[GoogleCmpAdapter] Failed to request consent info with error #328

Closed dreamcodestudio closed 3 months ago

dreamcodestudio commented 4 months ago

MAX Plugin Version

6.1.0

Unity Version

2020.3.34f1

Device/Platform Info

Android 13, Samsung A52

Current Behavior

AppLovin logging:

[GoogleCmpAdapter] Initializing with SDK Version: null, consentStatus: 0, consentFormAvailable: false
[GoogleCmpAdapter] Failed to request consent info with error: com.google.android.ump.FormError@c740bed

Debugger Info:

Expected Behavior

For GDPR users, showing Google Consent form

How to Reproduce

Implementing instructions by documentation: https://dash.applovin.com/documentation/mediation/unity/getting-started/terms-and-privacy-policy-flow

Additional Info

Reproduced in VPN mode or Debug User Geography = GDPR

ertugrulerdogan commented 4 months ago

We also have the same problem.

osamaraza24 commented 4 months ago

we are also facing the same problem if anyone has a fix kindly mention it here

santoshbagadi commented 4 months ago

Would you mind enabling verbose logs and sharing the logs for the full session where you are seeing the issue

osamaraza24 commented 4 months ago

2024-01-10 22:49:32.588 1691-2473/? I/ActivityTaskManager: START u0 {flg=0x10000000 cmp=com.tiltingpoint.bigwolf.narcosfactory/com.applovin.mediation.MaxDebuggerActivity} from uid 10666 2024-01-10 22:49:33.032 16806-17230/? D/AppLovinSdk: [GoogleCmpAdapter] Initializing with SDK Version: null, consentStatus: 0, consentFormAvailable: false 2024-01-10 22:49:33.036 16806-17230/? D/AppLovinSdk: [MediationDebuggerListAdapter] ========== MEDIATION DEBUGGER ========== ========== APP INFO ========== Dev Build - false Test Mode - disabled Target SDK - 33 ========== MAX ========== SDK Version - 12.1.0 Plugin Version - Max-Unity-6.1.2 Ad Review Version - 5.0.7 Unity Version - 2022.3.13f1 ========== PRIVACY ========== Age Restricted User - true Has User Consent - false "Do Not Sell" - false Consent Flow Enabled - true Privacy Policy - https://bigwolf.com/privacy-policy/ Terms of Service - https://bigwolf.com/terms-of-use/ ========== CMP (CONSENT MANAGEMENT PLATFORM) ========== CMP Name - No value set CMP SDK ID - No value set CMP SDK Version - No value set IABTCF_gdprApplies - No value set IABTCF_TCString - No value set IABTCF_AddtlConsent - No value set ========== NETWORK CONSENT STATUSES ========== Amazon Ad Marketplace - false Amazon Publisher Services - false AppLovin - false BidMachine - false Chartboost - false Criteo Bidding - false DT Exchange - false Facebook - false Google Ad Manager - false Google AdMob - false HyprMX - false InMobi - false ironSource - false Liftoff Monetize - false LINE - false Maio - false Mintegral - false MobileFuse - false myTarget - false Nend - false Ogury - false Pangle - false Smaato - false Unity Ads - false Verve - false Yandex - false

osamaraza24 commented 4 months ago

is this helpful? @santoshbagadi

osamaraza24 commented 4 months ago

I have created a message on the AdMob dashboard and updated GDPR settings,but only see default popup on game WhatsApp Image 2024-01-09 at 20 22 20_3e5703f4

osamaraza24 commented 4 months ago

Screenshot_20240105-221700 (1) this message appears on max debugger ,what is an exact issue we need to fixed?

osamaraza24 commented 4 months ago

Screenshot 2024-01-11 031834

santoshbagadi commented 4 months ago

How are you testing the CMP flow. Are you using VPN or the Debug Geography setting in the Integration Manager to test?

We'd need full verbose logs to investigate further. You can send them to santosh.bagadi@applovin.com

osamaraza24 commented 4 months ago

Using VPN UK region ,I tested with set test geographic location to gdpr but same issue happened

On Thu, Jan 11, 2024, 4:37 AM Santosh Bagadi @.***> wrote:

How are you testing the CMP flow. Are you using VPN or the Debug Geography setting in the Integration Manager to test?

We'd need full verbose logs to investigate further. You can send them to @.***

— Reply to this email directly, view it on GitHub https://github.com/AppLovin/AppLovin-MAX-Unity-Plugin/issues/328#issuecomment-1885927077, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIUKXFMI7JJHVOXZ7G6TRR3YN4QZZAVCNFSM6AAAAABBUZIFZSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBVHEZDOMBXG4 . You are receiving this because you commented.Message ID: @.***>

santoshbagadi commented 4 months ago

Do you mind trying to VPN to another country in EU (like FR). We've seen issues with VPN to UK not being detected by Google UMP SDK.

ducloc96 commented 4 months ago

I also have the same problem. I set Debug User Geography = GDPR to test but CMP not show

santoshbagadi commented 4 months ago

The debug geography setting only works in debug builds. Please make sure you are exporting a debug build to check

ducloc96 commented 4 months ago

Do you mean development build in unity? Screenshot 2024-01-11 100843

santoshbagadi commented 4 months ago

Yes, development build on Unity.

ertugrulerdogan commented 4 months ago

We managed to solve our issue. In our case it was caused by wrong AdMob appId configuration. Consent flow start to work as excepted after updating appIds with correct ones.

dreamcodestudio commented 4 months ago

We managed to solve our issue. In our case it was caused by wrong AdMob appId configuration. Consent flow start to work as excepted after updating appIds with correct ones.

You updated Admob ids config in Google admin panel or AppLovin > Integration Manager ?

Because in our case we not use separate AdMob network via AppLovin adapter.

ertugrulerdogan commented 4 months ago

You updated Admob ids config in Google admin panel or AppLovin > Integration Manager ?

Updated ids in the Applovin Integration Manager.

dreamcodestudio commented 4 months ago

@santoshbagadi Can we use Google UMP without integration AdMob like Mediated Network?

osamaraza24 commented 4 months ago

I can not access FR, i switched to Germany but same problem @santoshbagadi

dreamcodestudio commented 4 months ago

after add AdMob AppLovin in Integration Manager network: image

It's worked

But it's strange requirements, can you specify it in Unity documentation

osamaraza24 commented 4 months ago

after add AdMob AppLovin in Integration Manager network: image

It's worked

But it's strange requirements, can you specify it in Unity documentation

I have integrated Admob with the same latest as you mentioned but, I am not using Google Ad Manager, this should be an issue and how you are testing on the device ?, means I have not set the GDPR value on Debug User Geography. testing with VPN UK or Germany region, how did you test on the device or what location on VPN?

dreamcodestudio commented 4 months ago

after add AdMob AppLovin in Integration Manager network: image It's worked But it's strange requirements, can you specify it in Unity documentation

I have integrated Admob with the same latest as you mentioned but, I am not using Google Ad Manager, this should be an issue and how you are testing on the device ?, means I have not set the GDPR value on Debug User Geography. testing with VPN UK or Germany region, how did you test on the device or what location on VPN?

in last test i integrated only AdMob (without Google Ad Manager). VPN = off Debug User Geography = GDPR Unity Development Build = true

osamaraza24 commented 4 months ago

It worked for me on FR VPN only but it appears two time, I have enabled with applovin integration manager image and added this code if (sdkConfiguration.ConsentFlowUserGeography == MaxSdkBase.ConsentFlowUserGeography.Gdpr) { MaxSdk.CmpService.ShowCmpForExistingUser((error) => { if (error != null) { Debugger.LogProduction("AdsManager", "MaxSdkCallbacks.OnSdkInitializedEvent", "Error", error); } }); } is this appear two time because i called for existing users @santoshbagadi

santoshbagadi commented 4 months ago

Yes, the MaxSdk.CmpService.ShowCmpForExistingUser() should be called when a user requests to reset their consent. You'd need a button in your app's setting and when the user clicks it, you'd need to call this method to re-sow the CMP prompt

PalliativeX commented 3 months ago

In my case I cleared the game data after the install out of habit, which seems to clear some prefs required for the CMP (but that's only by default for non-GDPR, without VPN). The main issue was the setup of Admob Consent window (I was provided the Admob App key), which didn't show the CMP window with GDPR debug mode or German VPN. When I used my own setup, the issue resolved. Снимок экрана 2024-02-02 102757 image

Speaking about Applovin setup, I enabled MAX Terms and Privacy Policy flow, provided a Privacy Policy link and added AdMob to mediated networks (not sure that it will work without using it). image image