Repository navigation
chore(ads): remove campaign tree, creatives, catalogs, Ad Library and Google keyword, asset and recommendation methods - #47
Merged
Conversation
…rary methods
The API no longer serves /v1/ads/accounts/{id}/tree, the campaign, ad set and
network ad objects, creatives, catalogs or the Ad Library. Their methods and the
models only they returned are removed. bulk_set_status, create and the
/v1/ads/{id} methods are unchanged.
…thods client.ads.google keeps bid strategies, the ad schedule, Local Services leads, conversions and query. Keywords, keyword ideas and metrics, search terms, negative keyword lists, assets, asset groups, recommendations and the optimization score are removed with their models.
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.
What changed
The SDK now matches the trimmed
/v1/adsAPI surface.client.ads: removedaccount_tree, create, get, update, delete and duplicate for campaigns, ad sets and network ads, the four creative methods, every catalog, product, feed, feed upload and product set method,libraryandad_library, plus the unused_duplicatehelper.client.ads.google: removed keywords, keyword ideas and metrics, search terms, negative keyword lists, assets, asset groups, recommendations (list, apply, dismiss) and the optimization score. Bid strategies, the ad schedule, Local Services leads, conversions andqueryremain.fopostandfopost.models.ads.create,bulk_set_statuson/v1/ads/status, the/v1/ads/{id}methods, audiences, lead forms, leads, insights, pixels, conversions and the rest of the kept surface.AdProvider.capabilitiesis a plain dict, so there were no capability fields to drop.Tested
uv run pytest: 243 passeduv run ruff check .anduv run ruff format --check .: cleanuv run mypy: no issuesMerge after fopost/fopost chore/ads-trim is deployed.