Skip to content

chore(ads): remove campaign tree, creatives, catalogs, Ad Library and Google keyword, asset and recommendation methods - #47

Merged
alihesari merged 3 commits into
mainfrom
chore/remove-ads-objects
Nov 23, 2026
Merged

alihesari merged 3 commits into
mainfrom
chore/remove-ads-objects

Conversation

@alihesari

@alihesari alihesari commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

What changed

The SDK now matches the trimmed /v1/ads API surface.

  • client.ads: removed account_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, library and ad_library, plus the unused _duplicate helper.
  • 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 and query remain.
  • Models only those methods returned are removed, along with their exports from fopost and fopost.models.
  • Unchanged: ads.create, bulk_set_status on /v1/ads/status, the /v1/ads/{id} methods, audiences, lead forms, leads, insights, pixels, conversions and the rest of the kept surface. AdProvider.capabilities is a plain dict, so there were no capability fields to drop.
  • README method table and Google Ads example updated; CHANGELOG has the entries under Unreleased. No version bump.

Tested

  • uv run pytest: 243 passed
  • uv run ruff check . and uv run ruff format --check .: clean
  • uv run mypy: no issues

Merge after fopost/fopost chore/ads-trim is deployed.

…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.
@alihesari
alihesari merged commit 65b972a into main Nov 23, 2026
4 checks passed
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