Skip to content

feat: update API sources and regenerate#16998

Merged
noahdietz merged 3 commits intogoogleapis:mainfrom
noahdietz:librarianops-generateall-20260507T210113Z
May 8, 2026
Merged

feat: update API sources and regenerate#16998
noahdietz merged 3 commits intogoogleapis:mainfrom
noahdietz:librarianops-generateall-20260507T210113Z

Conversation

@noahdietz
Copy link
Copy Markdown
Contributor

@noahdietz noahdietz commented May 7, 2026

Update googleapis to the latest commit and regenerate all client libraries.

Important: I disabled warning as errors for docs in google-ads-admanager due to an "unexpected indentation" warning.

@noahdietz noahdietz requested review from a team as code owners May 7, 2026 21:24
@snippet-bot
Copy link
Copy Markdown

snippet-bot Bot commented May 7, 2026

Here is the summary of changes.

You are about to add 69 region tags.

This comment is generated by snippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, add snippet-bot:force-run label or use the checkbox below:

  • Refresh this comment

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces several new services and client methods for the Google Ads Ad Manager API, including support for labels, linked devices, and batch operations for applications, CMS metadata keys, and labels. It also adds necessary transport and interceptor implementations for these new services. My review identified several issues in the sample code provided in the docstrings, where single objects were incorrectly assigned to repeated fields, and noted minor typos in docstring descriptions.

Comment on lines +1136 to +1141
requests = admanager_v1.CreateApplicationRequest()
requests.parent = "parent_value"

request = admanager_v1.BatchCreateApplicationsRequest(
parent="parent_value",
requests=requests,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

The sample code incorrectly assigns a single CreateApplicationRequest object to the requests field, which is defined as a repeated field (list). This will cause a TypeError at runtime. It should be initialized as a list of requests.

Suggested change
requests = admanager_v1.CreateApplicationRequest()
requests.parent = "parent_value"
request = admanager_v1.BatchCreateApplicationsRequest(
parent="parent_value",
requests=requests,
requests = [
admanager_v1.CreateApplicationRequest(parent="parent_value")]
request = admanager_v1.BatchCreateApplicationsRequest(
parent="parent_value",
requests=requests,

Comment on lines +1386 to +1387
parent="parent_value",
)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

The sample code for batch_update_applications is missing the required requests argument in the BatchUpdateApplicationsRequest initialization.

Suggested change
parent="parent_value",
)
request = admanager_v1.BatchUpdateApplicationsRequest(parent="parent_value",
requests=[admanager_v1.UpdateApplicationRequest()],

timeout: Union[float, object] = gapic_v1.method.DEFAULT,
metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
) -> application_service.BatchArchiveApplicationsResponse:
r"""/ API to batch archive ``Application`` objects.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

Typo in docstring: there is a leading / before "API".

        r"""API to batch archive Application objects."""

timeout: Union[float, object] = gapic_v1.method.DEFAULT,
metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
) -> application_service.BatchUnarchiveApplicationsResponse:
r"""/ API to batch unarchive ``Application`` objects.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

Typo in docstring: there is a leading / before "API".

        r"""API to batch unarchive Application objects."""

Comment on lines +1113 to +1119
requests.parent = "parent_value"
requests.label.types = ['CREATIVE_WRAPPER']

request = admanager_v1.BatchCreateLabelsRequest(
parent="parent_value",
requests=requests,
)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

The sample code incorrectly assigns a single CreateLabelRequest object to the requests field, which is a repeated field. This will result in a TypeError at runtime. It should be a list of requests.

Suggested change
requests.parent = "parent_value"
requests.label.types = ['CREATIVE_WRAPPER']
request = admanager_v1.BatchCreateLabelsRequest(
parent="parent_value",
requests=requests,
)
requests = [admanager_v1.CreateLabelRequest(
parent="parent_value",
label=admanager_v1.Label(types=['CREATIVE_WRAPPER']))]
request = admanager_v1.BatchCreateLabelsRequest(
parent="parent_value",
requests=requests,

Comment on lines +1355 to +1360

# Initialize request argument(s)
requests = admanager_v1.UpdateLabelRequest()
requests.label.types = ['CREATIVE_WRAPPER']

request = admanager_v1.BatchUpdateLabelsRequest(
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

The sample code incorrectly assigns a single UpdateLabelRequest object to the requests field, which is a repeated field. This will result in a TypeError at runtime. It should be a list of requests.

Suggested change
# Initialize request argument(s)
requests = admanager_v1.UpdateLabelRequest()
requests.label.types = ['CREATIVE_WRAPPER']
request = admanager_v1.BatchUpdateLabelsRequest(
requests = [admanager_v1.UpdateLabelRequest(
label=admanager_v1.Label(types=['CREATIVE_WRAPPER']))]
request = admanager_v1.BatchUpdateLabelsRequest(
parent="parent_value",
requests=requests,

@noahdietz noahdietz changed the title chore: update googleapis and regenerate feat: update API sources and regenerate May 7, 2026
@noahdietz noahdietz enabled auto-merge (squash) May 7, 2026 22:48
parthea pushed a commit that referenced this pull request May 8, 2026
Proposal to further configure gemini assistance on the repo in the
following ways:
* disable `have_fun` to keep feedback concise
* disable posting the help message, it's not particularly useful when we
have public docs
* run code review and include draft PRs
* (the big one) attempt to limit the scope of review, excluding what I
think would be GAPIC generate client libraries

Context: Gemini posted comments to auto-generated code in #16998, which
we will not address, and I'd like to reduce noise / save some compute.
@noahdietz noahdietz disabled auto-merge May 8, 2026 16:10
@noahdietz noahdietz enabled auto-merge (squash) May 8, 2026 16:10
@noahdietz noahdietz merged commit cef659d into googleapis:main May 8, 2026
31 checks passed
@noahdietz noahdietz deleted the librarianops-generateall-20260507T210113Z branch May 8, 2026 16:26
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.

2 participants