feat(keywords): expose AutotargetingSettings*FieldNames on keywords get#416
Merged
Conversation
Add `--autotargeting-settings-brand-options-field-names` (`AutotargetingBrandOptionsFieldEnum`: `WithoutBrands`, `WithAdvertiserBrand`, `WithCompetitorsBrand`) and `--autotargeting-settings-categories-field-names` (`AutotargetingCategoriesFieldEnum`: `Exact`, `Narrow`, `Alternative`, `Accessory`, `Broader`) to `direct keywords get` for the separate WSDL `*FieldNames` request parameters declared by `KeywordsGetRequest`. Mirrors the Wave 1 sitelinks pattern (#403) and the #412 feeds PR: each flag parses CSV via `parse_csv_strings`, rejects empty input with `click.UsageError`, and only injects the WSDL key into the payload when non-empty. Removes the corresponding rows from `NESTED_FIELDNAMES_EXCLUSIONS` so `test_every_nested_fieldnames_param_has_cli_option` now enforces both flags. Adds dry-run tests for payload, default-omission, `--help` visibility, and empty-CSV rejection per flag. Same two enum types are reused on `direct adgroups get` per #405; sample values and help wording stay consistent for follow-up parity. Closes #413. Co-Authored-By: Claude Opus 4.7 <[email protected]>
Owner
Author
|
@claude review. Focus on critical issues: bugs, security vulnerabilities, logical errors, data loss risks, performance problems. Do NOT nitpick style, naming conventions, minor formatting, or subjective preferences — only flag issues that could break functionality or cause real harm in production. |
|
Claude finished @axisrow's task in 1m 59s —— View job Claude PR Review
Scope: critical-only review (bugs, security, logic, data loss, performance). Style/naming nits skipped per request. VerdictNo critical issues found. Ready to merge from a correctness standpoint. What I verified
Non-blocking observations (not critical)
|
Resolve conflicts with #415 (feeds): keep both feeds.get and keywords.get *FieldNames additions in CHANGELOG, NESTED_FIELDNAMES_EXCLUSIONS, and dry-run tests.
axisrow
added a commit
that referenced
this pull request
May 28, 2026
axisrow
added a commit
that referenced
this pull request
May 28, 2026
axisrow
added a commit
that referenced
this pull request
May 28, 2026
Resolve conflicts with #415 #416 #417 #418 #419 #420: keep all six previously-merged CHANGELOG entries (feeds/keywords/creatives/clients/ agencyclients/adgroups) and place the campaigns BREAKING CHANGES block at the end of Unreleased. Drop the already-removed NESTED_FIELDNAMES_EXCLUSIONS rows. Update the surviving legacy `-fields` test fixtures to the new `-field-names` form, while keeping one explicit rejection test for `--text-campaign-fields` (the old name).
axisrow
added a commit
that referenced
this pull request
May 28, 2026
Resolve conflicts with #415 #416 #417 #418 #419 #420 #421: keep all six previously-merged CHANGELOG entries (feeds/keywords/creatives/clients/ agencyclients/adgroups), the campaigns BREAKING CHANGES block, and add the bidmodifiers entry as a separate 'Additional features' block. Drop already-removed NESTED_FIELDNAMES_EXCLUSIONS rows. Append bidmodifiers tests after the canonical campaigns block in test_dry_run.py.
This was referenced May 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
--autotargeting-settings-brand-options-field-names(AutotargetingBrandOptionsFieldEnum:WithoutBrands,WithAdvertiserBrand,WithCompetitorsBrand) and--autotargeting-settings-categories-field-names(AutotargetingCategoriesFieldEnum:Exact,Narrow,Alternative,Accessory,Broader) todirect keywords get.parse_csv_strings, reject empty input withclick.UsageError, only inject the WSDL key when non-empty (Yandex falls back to server-side defaults otherwise).NESTED_FIELDNAMES_EXCLUSIONS.The same two enum types resurface on
direct adgroups getper #405 — sample values and help wording stay consistent for follow-up parity.Closes #413. Second PR in Wave 2 milestone 0.3.14.
Test plan
pytest tests/test_api_coverage.py::test_every_nested_fieldnames_param_has_cli_option— passes after row removal.pytest tests/test_dry_run.py -k keywords_get— 5 new tests pass.pytest tests/test_api_coverage.py tests/test_cli.py tests/test_comprehensive.py— 68 tests pass.direct keywords get --help | grep autotargeting— both flags visible.🤖 Generated with Claude Code