Hey, I’m making an Android game using Unity.
I have this public variable:
public bool consentForPersonalizedAds;
I’ve created a consent panel myself for personalized ads with two buttons:
Button Yes: To show personalized ads (consentForPersonalizedAds = true)
Button No: To not show personalized ads (consentForPersonalizedAds = false)
I’ve downloaded the latest ‘Google Mobile Ads Unity Plugin v9.2.0’ from:
Now to my question.
How can I give to the ‘Google Mobile Ads Unity Plugin’ the consent value for showing or not showing personalized ads?
In the old Google Mobile Ads Unity Plugin versions I did it like that:
request = new AdRequest.Builder()
.AddExtra("npa", "1") // This indicates non-personalized ads .Build();
I haven’t found a solution in the documentation.
I really appreciate any help. Thanks.