Child directed made

This commit is contained in:
Savya Bikram Shah
2026-06-05 18:33:56 +05:45
parent 220d651cfb
commit 70b8dd2b95

View File

@@ -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 })