Skip to content

[interactive_media_ads] Adds support for companion ads - #9260

Merged
auto-submit[bot] merged 46 commits into
flutter:mainfrom
bparrishMines:companion_ads
Jun 11, 2025
Merged

[interactive_media_ads] Adds support for companion ads#9260
auto-submit[bot] merged 46 commits into
flutter:mainfrom
bparrishMines:companion_ads

Conversation

@bparrishMines

@bparrishMinesbparrishMines commented May 16, 2025

Copy link
Copy Markdown
Contributor

Fixesflutter/flutter#153446

Adds CompanionAdSlot and AdDisplayContainer(companionAds).

Pre-Review Checklist

If you need help, consider asking for advice on the #hackers-new channel on Discord.

Footnotes

  1. Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling. 23

@bparrishMines
bparrishMines marked this pull request as ready for review June 3, 2025 18:03
Comment threadpackages/interactive_media_ads/lib/src/ios/ios_companion_ad_slot.dart Outdated
Comment threadpackages/interactive_media_ads/lib/src/ios/ios_companion_ad_slot.dart Outdated

/// The height of the companion slot.
///
/// Returns `null` when [isFluid] returns true;

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.

Having this be comment-enforced rather than type-enforced isn't ideal; all the uses of these end up doing force-unwraps. What about using a sealed class called something like CompanionAdSize, with subclasses CompanionAdSizeFixed and ...Fluid, where the former has non-nullable width and height fields, and the latter is empty? Then this class can have a non-nullable size (instead of width, height, and isFluid), and usage will get full type safety as to whether or not there is a width and height.

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

Good suggestion. I added the lib/src/platform_interface/ad_companion_ad_slot_size.dart file with the sealed classes.

@stuartmorgan-gstuartmorgan-g 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

@bparrishMinesbparrishMines added the autosubmit Merge PR when tree becomes green via auto submit App label Jun 11, 2025
@auto-submit
auto-submitBot merged commit d24b32f into flutter:mainJun 11, 2025
@bparrishMines
bparrishMines deleted the companion_ads branch June 11, 2025 18:26
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jun 12, 2025
github-merge-queueBot pushed a commit to flutter/flutter that referenced this pull request Jun 12, 2025
flutter/packages@0b322a2...6d3aaf4
2025-06-11 stuartmorgan@google.com Roll Flutter master to
824868f (flutter/packages#9416)
2025-06-11 10687576+bparrishMines@users.noreply.github.com
[interactive_media_ads] Adds support for companion ads
(flutter/packages#9260)
If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages-flutter-autoroll
Please CC flutter-ecosystem@google.com on the revert to ensure that a
human
is aware of the problem.
To file a bug in Flutter:
https://github.com/flutter/flutter/issues/new/choose
To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622
Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Ortes pushed a commit to Ortes/packages that referenced this pull request Jun 25, 2025
Fixesflutter/flutter#153446
Adds `CompanionAdSlot` and `AdDisplayContainer(companionAds)`.
## Pre-Review Checklist
[^1]: Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling.
mboetger pushed a commit to mboetger/flutter that referenced this pull request Jul 21, 2025
flutter/packages@0b322a2...6d3aaf4
2025-06-11 stuartmorgan@google.com Roll Flutter master to
824868f (flutter/packages#9416)
2025-06-11 10687576+bparrishMines@users.noreply.github.com
[interactive_media_ads] Adds support for companion ads
(flutter/packages#9260)
If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages-flutter-autoroll
Please CC flutter-ecosystem@google.com on the revert to ensure that a
human
is aware of the problem.
To file a bug in Flutter:
https://github.com/flutter/flutter/issues/new/choose
To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622
Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
vashworth pushed a commit to vashworth/packages that referenced this pull request Jul 30, 2025
Fixesflutter/flutter#153446
Adds `CompanionAdSlot` and `AdDisplayContainer(companionAds)`.
## Pre-Review Checklist
[^1]: Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling.
creatorpiyush pushed a commit to creatorpiyush/packages that referenced this pull request Jun 10, 2026
Fixesflutter/flutter#153446
Adds `CompanionAdSlot` and `AdDisplayContainer(companionAds)`.
## Pre-Review Checklist
[^1]: Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling.
bisor0627 pushed a commit to bisor0627/packages that referenced this pull request Jun 19, 2026
Fixesflutter/flutter#153446
Adds `CompanionAdSlot` and `AdDisplayContainer(companionAds)`.
## Pre-Review Checklist
[^1]: Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling.
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autosubmitMerge PR when tree becomes green via auto submit Appfederated: all_changesPR that contains changes for all packages for a federated plugin changep: interactive_media_adsPlugin for IMA SDKplatform-androidplatform-ios

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[interactive_media_ads] Support companion ad formats for audio ads

2 participants

@bparrishMines@stuartmorgan-g