Skip to content

Remove sunset BOM versions and update support link in README - #926

Open
pattersonlois wants to merge 2 commits into
googleads:mainfrom
pattersonlois:update-bom-and-support-link
Open

pattersonlois wants to merge 2 commits into
googleads:mainfrom
pattersonlois:update-bom-and-support-link

Conversation

@pattersonlois

@pattersonlois pattersonlois commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor
  • Derive google-ads-stubs-v* constraints dynamically from rootProject.subprojects in google-ads-bom/build.gradle (matching google-ads-codegen/build.gradle) and use project references for :google-ads and :google-ads-codegen, eliminating sunset v21/v22 stub references and duplicate v24 entries without manual upkeep on version additions or removals.
  • Replace the legacy ### Support forum link with ### Support (https://developers.google.com/google-ads/api/support) in README.md.

- Remove sunset v21 and v22 stub references and duplicate v24 entry in
  google-ads-bom/build.gradle.
- Replace the sunset Google Ads API forum link in README.md with the
  Google Ads API support page.
@pattersonlois
pattersonlois requested a review from a team as a code owner November 5, 2026 00:03
@pattersonlois
pattersonlois requested a review from a team as a code owner November 6, 2026 21:04
api "com.google.api-ads:google-ads-stubs-v22:${version}"
api "com.google.api-ads:google-ads-stubs-v23:${version}"
api "com.google.api-ads:google-ads-stubs-v24:${version}"
rootProject.subprojects

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'd prefer we keep this as-is. Each version addition or subtraction is a one-time event, so I'd rather just keep this as a static list, same as the root settings.gradle. If we instead go with this change, the dependency list becomes dynamic, which could lead to other problems.

If we're missing duplicates and sunset versions during code reviews, I'd prefer we just make a point of reminding reviewers to pay closer attention to this file.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I had cl/1015794471 for the second part with primordial, but I reverted it.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

dependencies {
// This makes this BOM inherit all dependency versions from the Google Cloud
// BOM. This version is determined based on the current used version of
// google-cloud-shared-dependencies.
api(platform("com.google.cloud:libraries-bom:26.81.0"))

// Add constraints for all of this project's artifacts.
constraints {
    rootProject.subprojects
            .findAll { it.name.startsWith("google-ads-stubs-v") }
            .each { api it }
    api project(":google-ads")
    api project(":google-ads-codegen")
    api "com.google.api-ads:google-ads-shadowjar:${version}"
}

}

Comment thread README.md

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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.

3 participants