Skip to content

feat: update API sources and regenerate - #19036

Merged
JoeWang1127 merged 1 commit into
mainfrom
update-sources-googleapis
Nov 10, 2026
Merged

JoeWang1127 merged 1 commit into
mainfrom
update-sources-googleapis

Conversation

@JoeWang1127

Copy link
Copy Markdown
Contributor

Update googleapis sources to a74d0502444d12c07abc7ed95f90ebb52950e918 and regenerate all libraries.

Debug Info

System Details

  • OS: Linux x86_64
  • Librarian version: v0.52.0

Commands Executed

  • librarian update sources.googleapis
  • librarian install
  • librarian generate --all
  • librarian tidy
  • git add .
  • git commit -m "feat: update API sources and regenerate"

@JoeWang1127
JoeWang1127 marked this pull request as ready for review November 10, 2026 14:38
@JoeWang1127
JoeWang1127 requested review from a team as code owners November 10, 2026 14:38

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

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.

Code Review

This pull request updates the Google Ads Ad Manager client library, adding several new services (such as AudienceSegmentCategoryService, ChangeEventService, ForecastAdjustmentService, ProposalService, TrafficForecastSegmentService, YieldGroupService, and YieldPartnerService) along with their corresponding transports, pagers, and types. It also extends existing services like CreativeService and LineItemCreativeAssociationService with new creation, update, and batch methods. Feedback on the changes identifies a critical issue in the REST base transport classes where the hash method returns a NotImplementedError instance instead of raising it, which will lead to a TypeError when hashed.

Comment on lines +97 to +98
def __hash__(self): # pragma: NO COVER
return NotImplementedError("__hash__ must be implemented.")

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 __hash__ method returns a NotImplementedError instance instead of raising it. In Python, returning an exception object from a method does not raise it; instead, it will cause a TypeError when hash() is called because the return value is not an integer. It should be raised using the raise keyword.

Suggested change
def __hash__(self): # pragma: NO COVER
return NotImplementedError("__hash__ must be implemented.")
def __hash__(self): # pragma: NO COVER
raise NotImplementedError("__hash__ must be implemented.")

Comment on lines +109 to +110
def __hash__(self): # pragma: NO COVER
return NotImplementedError("__hash__ must be implemented.")

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 __hash__ method returns a NotImplementedError instance instead of raising it. In Python, returning an exception object from a method does not raise it; instead, it will cause a TypeError when hash() is called because the return value is not an integer. It should be raised using the raise keyword.

Suggested change
def __hash__(self): # pragma: NO COVER
return NotImplementedError("__hash__ must be implemented.")
def __hash__(self): # pragma: NO COVER
raise NotImplementedError("__hash__ must be implemented.")

@snippet-bot

snippet-bot Bot commented Nov 10, 2026

Copy link
Copy Markdown

Here is the summary of changes.

You are about to add 152 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

@JoeWang1127
JoeWang1127 enabled auto-merge (squash) November 10, 2026 14:44
@JoeWang1127
JoeWang1127 merged commit b64a9e5 into main Nov 10, 2026
91 checks passed
@JoeWang1127
JoeWang1127 deleted the update-sources-googleapis branch November 10, 2026 15:21
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