Child directed made
This commit is contained in:
@@ -31,7 +31,9 @@ namespace Darkmatter.Services.Ads
|
||||
|
||||
private bool _initialized;
|
||||
private bool _hasUserConsent = true;
|
||||
private bool _isChildDirected;
|
||||
// Coloring book is a child-directed app, so default to true. SetConsent can still
|
||||
// override if a consent flow later supplies a different value.
|
||||
private bool _isChildDirected = true;
|
||||
private CancellationTokenSource _lifetimeCts;
|
||||
|
||||
// App interruption state, fed by the Unity lifecycle messages below. A full-screen ad
|
||||
@@ -267,7 +269,9 @@ namespace Darkmatter.Services.Ads
|
||||
: TagForChildDirectedTreatment.Unspecified,
|
||||
TagForUnderAgeOfConsent = _hasUserConsent
|
||||
? TagForUnderAgeOfConsent.Unspecified
|
||||
: TagForUnderAgeOfConsent.True
|
||||
: TagForUnderAgeOfConsent.True,
|
||||
// Child-directed app: cap served ads at G-rated content.
|
||||
MaxAdContentRating = MaxAdContentRating.G
|
||||
};
|
||||
|
||||
if (catalog.TestDeviceIds is { Count: > 0 })
|
||||
|
||||
Reference in New Issue
Block a user