Hi Thom,
Thank you for contacting the Mobile Ads SDK support team.
You should request an update of the user's consent information at every app launch, using Update(). To give the GMA the consent value to show or not show personalized ads, you need to set the user's consent status using the privacy settings within the GMA Unity plugin, typically by implementing a consent flow where you ask the user for permission to collect and use their data for personalized ads, and then pass this consent flag to the SDK when requesting ads.
// After obtaining user consent:
bool consentForPersonalizedAds = true; // Set to true if user consented
bool consentForPersonalizedAds = false; // Set to false if user consented
// In your ad request code:
/// Ensures that privacy and consent information is up to date.
private void InitializeGoogleMobileAdsConsent()
{
Debug.Log("Google Mobile Ads gathering consent.");
_consentController.GatherConsent((string error) =>
{
if (error != null)
{
Debug.LogError("Failed to gather consent with error: " +
error);
}
else
{
Debug.Log("Google Mobile Ads consent updated: "
+ ConsentInformation.ConsentStatus);
}
if (_consentController.CanRequestAds)
{
InitializeGoogleMobileAds();
}
});
}
Also, refer to the Google Unity sample application as a reference for your implementation.
![]() |
Mobile Ads SDK Team |