Skip to content

docs: add inline adaptive banner snippets for developer docs - #1498

Open
okorohelijah wants to merge 1 commit into
googleads:mainfrom
okorohelijah:add-recycle-banner-snippet-tags
Open

okorohelijah wants to merge 1 commit into
googleads:mainfrom
okorohelijah:add-recycle-banner-snippet-tags

Conversation

@okorohelijah

@okorohelijah okorohelijah commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

Adds a dedicated inline_adaptive_banner_snippets.dart file under example/lib/snippets/ containing region-tagged snippets for the upcoming banner recycling developer guide.

Region tags added:

  • track_positions — cache size, ad interval, and the position/size tracking maps
  • recycle_banner_ad — the recycling lookup logic using isMounted
  • create_banner_ad — inline adaptive ad creation with dynamic width
  • display_ads_in_list — rendering ads at intervals in a ListView.builder
  • dispose_ads — disposing all cached ads

Also tidies a few comments in multi_adaptive_inline_with_recycle_example.dart (no includecode tags in the sample, per review feedback).

@okorohelijah
okorohelijah force-pushed the add-recycle-banner-snippet-tags branch 2 times, most recently from 2a7f4de to cd538c4 Compare September 16, 2026 17:18
@okorohelijah
okorohelijah marked this pull request as ready for review September 16, 2026 18:02

@malandr2 malandr2 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.

Could you move the snippets you want to use in the developer doc to a dedicated inline_adaptive_banner_snippets.dart snippets file in https://github.com/googleads/googleads-mobile-flutter/tree/main/packages/google_mobile_ads/example/lib/snippets?

The sample code and snippets are separate by design. That way you don't have to fight with the EXCLUDE tags that can be distracting from the actual code

You can keep the comments changes but revert the includecode tags in this file

@okorohelijah
okorohelijah force-pushed the add-recycle-banner-snippet-tags branch from cd538c4 to a6a2d40 Compare September 16, 2026 20:48
@okorohelijah okorohelijah changed the title docs: add includecode region tags for banner recycling snippet docs: add inline adaptive banner snippets for developer docs Sep 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants