savya #14

Merged
savya merged 108 commits from savya into main 2026-07-07 09:55:51 +02:00
Showing only changes of commit 70b8dd2b95 - Show all commits

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