-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Help with consent #447
Comments
Thank you for reporting this issue/advice. |
Hi dookeybre, Thank you for reaching out and providing the details of the issue you're encountering with GDPR consent implementation in the game using Huawei's Ads Kit. Firstly, can you check if the ads kit is active? Can you check out this demo implementation? AdsDemoManager |
Hi, Here is my full logic
My understanding is that when i run the game for the first time it should tell me that consentStatus is 'UNKNOWN' and when i show my custom dialog and choose either accept or decline that choice should be saved on server(or device, I don't understand completely) and next time when i open the game it should return either 'PERSONALIZED' or 'NON_PERSONALIZED'. When I use this code it always returns 'UNKNOWN' like I'm never settings users choice. Any help will mean a lot. |
Thanks for sharing your code with me @dookeybre. 😊 You should use the account kit with the ad kit (consent) together. And you can try this simple code block below. It's working. public void AcceptButtonClicked()
{
HMSAdsKitManager.Instance.SetConsentStatus(ConsentStatus.PERSONALIZED);
HMSAdsKitManager.Instance.RequestConsentUpdate();
Debug.Log($"[HMS] AdsDemoManager AcceptButtonClicked PERSONALIZED");
}
public void DeclineButtonClicked()
{
HMSAdsKitManager.Instance.SetConsentStatus(ConsentStatus.NON_PERSONALIZED);
HMSAdsKitManager.Instance.RequestConsentUpdate();
Debug.Log($"[HMS] AdsDemoManager DeclineButtonClicked NON_PERSONALIZED");
} |
Thank you for your reply, it is solved now. |
It was my pleasure to assist you. The |
Thank you for all your help. |
Thank you for using our repository! We're glad we could help solve your issue. If you found our repository helpful, please consider giving us a star ⭐ on GitHub: https://github.com/EvilMindDevs/hms-unity-plugin Your support helps us continue to improve our repository and provide valuable resources for others. |
Can anybody help me with implementing gdpr consent?
I have a problem that even tho i show consent dialog and use builder to set consent string, every time i enter my game OnConsentSuccess returns that isNeedConsent is
true
and consentStatus isUNKNOWN
.Here is the code for settings consent status:
and I call
SetHuaweiBuilder((int) NonPersonalizedAd.ALLOW_ALL);
orSetHuaweiBuilder((int) NonPersonalizedAd.ALLOW_NON_PERSONALIZED);
depending of the status returned in OnConsentSuccess or the choise user clicked in my custom consent screenThe text was updated successfully, but these errors were encountered: