Skip to content

Added AgeRestrictedTreatment flag#1455

Open
LTPhantom wants to merge 1 commit into
mainfrom
tfatFlag
Open

Added AgeRestrictedTreatment flag#1455
LTPhantom wants to merge 1 commit into
mainfrom
tfatFlag

Conversation

@LTPhantom

Copy link
Copy Markdown
Collaborator

Description

This PR adds support for the new AgeRestrictedTreatment (TFAT) API on RequestConfiguration across the Dart, Android (Standard GMA), Android (Next-Gen), and iOS layers.

Checklist

Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes ([x]).
This will ensure a smooth and quick review process. Updating the pubspec.yaml and changelogs is not required.

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • My PR includes unit or integration tests for all changed/updated/fixed behaviors (See Contributor Guide).
  • All existing and new tests are passing.
  • I updated/added relevant documentation (doc comments with ///).
  • The analyzer (flutter analyze) does not report any problems on my PR.
  • I read and followed the Flutter Style Guide.
  • I signed the CLA.
  • I am willing to follow-up on review comments in a timely manner.

Breaking Change

Does your PR require plugin users to manually update their apps to accommodate your change?

  • Yes, this is a breaking change (please indicate a breaking change in CHANGELOG.md and increment major revision).
  • No, this is not a breaking change.

@LTPhantom
LTPhantom requested review from luo86, malandr2 and thanvirm June 29, 2026 22:43
@LTPhantom
LTPhantom force-pushed the tfatFlag branch 2 times, most recently from ef00498 to db3e0c4 Compare June 30, 2026 00:33
@LTPhantom
LTPhantom marked this pull request as ready for review June 30, 2026 01:58
@ycv005

ycv005 commented Jun 30, 2026

Copy link
Copy Markdown

can we make null-safe reading the error message from other mediation adapter - 80cbcd0 & ycv005@22b403c

/** Wrapper for getRequestConfiguration. */
public RequestConfiguration getRequestConfiguration() {
return MobileAds.getRequestConfiguration();
public FlutterRequestConfiguration getRequestConfiguration() {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Curious: Why this function's return type and implementation are being updated? Why does the new AgeRestrictedTreatment flag necessitate this update?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The FlutterRequestConfiguration was needed when adding the next-gen support since some packages differ between Android SDKs. It seems the update escaped this method before so adding it here since the flag values travel through here.

@luo86 luo86 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM once Thanvir's comments are addressed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants