Skip to content

feat: add generation of existing version of googleads resumable upload#17031

Open
viacheslav-rostovtsev wants to merge 2 commits into
googleapis:mainfrom
viacheslav-rostovtsev:dev/virost/feat/googleads-gapic-gen
Open

feat: add generation of existing version of googleads resumable upload#17031
viacheslav-rostovtsev wants to merge 2 commits into
googleapis:mainfrom
viacheslav-rostovtsev:dev/virost/feat/googleads-gapic-gen

Conversation

@viacheslav-rostovtsev
Copy link
Copy Markdown
Member

@viacheslav-rostovtsev viacheslav-rostovtsev commented May 11, 2026

This enables Resumable Upload ("Scotty") features generation for Google Ads "Simply" libraries only.

Briefly the changes consist of three parts:

  • The protocol implementation (and the error adapter)
  • The Rest-Resumable transport
  • The changes in the client for the service, including RPC generation changes and the addition of the new Rest-Resumable transport initialization.

Full description of the changes in the internal document go/cloudsdk-scotty-python-q226 .

@viacheslav-rostovtsev viacheslav-rostovtsev requested a review from a team as a code owner May 11, 2026 20:00
@google-cla
Copy link
Copy Markdown

google-cla Bot commented May 11, 2026

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

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 support for resumable uploads within the GAPIC generator, specifically targeting the Google Ads API. The changes include adding properties to the schema wrappers to identify resumable methods, updating client templates to handle binary streams, and implementing new transport templates to manage the resumable upload protocol and associated error handling. Feedback from the reviewer highlights significant architectural concerns regarding the hardcoding of Google Ads-specific logic, imports, and parameters into shared, general-purpose templates and schema wrappers. Additionally, the reviewer identified a bug where unit tests do not align with the current implementation, and suggested improvements for error handling by avoiding base exceptions and magic numbers.

Comment thread packages/gapic-generator/tests/unit/schema/wrappers/test_method.py Outdated
@googleapis googleapis deleted a comment from gemini-code-assist Bot May 11, 2026
@googleapis googleapis deleted a comment from gemini-code-assist Bot May 11, 2026
@googleapis googleapis deleted a comment from gemini-code-assist Bot May 11, 2026
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.

1 participant