Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,20 @@ All notable changes to `fopost` are documented here.
articles), the `Blog*` models and `BLOG_*` constants, `ArticlePublishedPayload`, and
`article.published` from the webhook event names. The API no longer serves them; articles
are ordinary posts. `client.blogs` is unchanged.
- **Breaking:** the ads campaign tree, creatives, product catalogs and the Ad Library:
`ads.account_tree`, create, get, update, delete and duplicate for campaigns, ad sets and
network ads, `ads.creatives`, `create_creative`, `get_creative`, `delete_creative`, every
catalog, product, feed, feed upload and product set method, `ads.library` and
`ads.ad_library`, with the models only they returned (`AdAccountTree`, `AdCampaign`,
`AdCampaignNode`, `AdSet`, `AdSetNode`, `NetworkAd`, `AdCreative`, `ProductCatalog`,
`ProductCatalogsResult`, `CatalogProduct`, `CatalogProductsPage`, `CatalogBatchResult`,
`ProductFeed`, `ProductFeedUpload`, `ProductSet`, `AdLibraryEntry`, `AdLibraryPage`). The
API no longer serves them. `ads.create`, `ads.bulk_set_status` and the `/v1/ads/{id}`
methods are unchanged.
- **Breaking:** from `client.ads.google`, keywords, keyword ideas and metrics, search terms,
negative keyword lists, assets, asset groups, recommendations and the optimization score,
with their `Google*` models. Bid strategies, the ad schedule, Local Services leads,
conversions and `query` remain.

## 0.4.0 - 2026-10-18

Expand Down
26 changes: 12 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -336,9 +336,9 @@ except FopostError as err:
| `contacts` | `list`, `get`, `create`, `update`, `delete`, `conversations`, `import_csv`, `list_fields`, `create_field`, `update_field`, `delete_field`, `conversation_analytics` |
| `broadcasts` | `list`, `get`, `create`, `update`, `delete`, `send`, `cancel`, `recipients` |
| `sequences` | `list`, `get`, `create`, `update`, `delete`, `enroll`, `unenroll`, `enrollments` |
| `ads` | `list`, `external`, `boostable`, `connections`, `sources`, `providers`, `authorize`, `delete_connection`, `boost`, `create`, `refresh`, `set_status`, `delete`, `audiences`, `create_audience`, `search_targeting`, `lead_forms`, `create_lead_form`, `leads`, `account_tree`, `create_campaign`, `get_campaign`, `update_campaign`, `delete_campaign`, `duplicate_campaign`, `create_ad_set`, `get_ad_set`, `update_ad_set`, `delete_ad_set`, `duplicate_ad_set`, `create_network_ad`, `get_network_ad`, `update_network_ad`, `delete_network_ad`, `duplicate_network_ad`, `bulk_set_status`, `creatives`, `create_creative`, `get_creative`, `delete_creative`, `get_audience`, `update_audience`, `delete_audience`, `add_audience_users`, `add_audience_companies`, `estimate_reach`, `insights`, `ad_insights`, `get_lead_form`, `archive_lead_form`, `leads_feed`, `lead_pages`, `subscribe_lead_page`, `unsubscribe_lead_page`, `goals`, `catalogs`, `create_catalog`, `get_catalog`, `update_catalog`, `delete_catalog`, `catalog_products`, `write_catalog_products`, `product_feeds`, `create_product_feed`, `delete_product_feed`, `feed_uploads`, `start_feed_upload`, `product_sets`, `create_product_set`, `update_product_set`, `delete_product_set`, `reach_frequency`, `create_reach_frequency`, `get_reach_frequency`, `reserve_reach_frequency`, `cancel_reach_frequency`, `library`, `partnership_creators`, `request_partnership`, `revoke_partnership`, `account_activity`, `labels`, `create_label`, `update_label`, `delete_label`, `apply_label`, `studies`, `create_study`, `get_study`, `delete_study`, `ios_campaign_limits`, `high_demand_periods`, `create_high_demand_period`, `delete_high_demand_period`, `value_rule_sets`, `create_value_rule_set`, `delete_value_rule_set`, `bid_pricing`, `supply_forecast`, `conversion_rules`, `create_conversion_rule`, `get_conversion_rule`, `update_conversion_rule`, `delete_conversion_rule`, `attach_conversion_rule`, `detach_conversion_rule`, `conversion_metrics`, `send_conversion_events`, `upload_conversions`, `send_conversions`, `conversion_batches`, `pixels`, `create_pixel`, `get_pixel`, `update_pixel`, `share_pixel`, `pixel_stats`, `event_match_quality`, `custom_conversions`, `create_custom_conversion`, `get_custom_conversion`, `update_custom_conversion`, `delete_custom_conversion` |
| `ads` | `list`, `external`, `boostable`, `connections`, `sources`, `providers`, `authorize`, `delete_connection`, `boost`, `create`, `refresh`, `set_status`, `delete`, `audiences`, `create_audience`, `search_targeting`, `lead_forms`, `create_lead_form`, `leads`, `bulk_set_status`, `get_audience`, `update_audience`, `delete_audience`, `add_audience_users`, `add_audience_companies`, `estimate_reach`, `insights`, `ad_insights`, `get_lead_form`, `archive_lead_form`, `leads_feed`, `lead_pages`, `subscribe_lead_page`, `unsubscribe_lead_page`, `goals`, `reach_frequency`, `create_reach_frequency`, `get_reach_frequency`, `reserve_reach_frequency`, `cancel_reach_frequency`, `partnership_creators`, `request_partnership`, `revoke_partnership`, `account_activity`, `labels`, `create_label`, `update_label`, `delete_label`, `apply_label`, `studies`, `create_study`, `get_study`, `delete_study`, `ios_campaign_limits`, `high_demand_periods`, `create_high_demand_period`, `delete_high_demand_period`, `value_rule_sets`, `create_value_rule_set`, `delete_value_rule_set`, `bid_pricing`, `supply_forecast`, `conversion_rules`, `create_conversion_rule`, `get_conversion_rule`, `update_conversion_rule`, `delete_conversion_rule`, `attach_conversion_rule`, `detach_conversion_rule`, `conversion_metrics`, `send_conversion_events`, `upload_conversions`, `send_conversions`, `conversion_batches`, `pixels`, `create_pixel`, `get_pixel`, `update_pixel`, `share_pixel`, `pixel_stats`, `event_match_quality`, `custom_conversions`, `create_custom_conversion`, `get_custom_conversion`, `update_custom_conversion`, `delete_custom_conversion` |
| `knowledge` | `list`, `create`, `update`, `delete`, `sync`, `search` |
| `ads` | `list`, `external`, `boostable`, `connections`, `sources`, `providers`, `authorize`, `delete_connection`, `boost`, `create`, `refresh`, `set_status`, `delete`, `audiences`, `create_audience`, `search_targeting`, `lead_forms`, `create_lead_form`, `leads`, `account_tree`, `create_campaign`, `get_campaign`, `update_campaign`, `delete_campaign`, `duplicate_campaign`, `create_ad_set`, `get_ad_set`, `update_ad_set`, `delete_ad_set`, `duplicate_ad_set`, `create_network_ad`, `get_network_ad`, `update_network_ad`, `delete_network_ad`, `duplicate_network_ad`, `bulk_set_status`, `creatives`, `create_creative`, `get_creative`, `delete_creative`, `get_audience`, `update_audience`, `delete_audience`, `add_audience_users`, `add_audience_companies`, `estimate_reach`, `insights`, `ad_insights`, `get_lead_form`, `archive_lead_form`, `leads_feed`, `lead_pages`, `subscribe_lead_page`, `unsubscribe_lead_page`, `bid_pricing`, `supply_forecast`, `conversion_rules`, `create_conversion_rule`, `get_conversion_rule`, `update_conversion_rule`, `delete_conversion_rule`, `attach_conversion_rule`, `detach_conversion_rule`, `conversion_metrics`, `send_conversion_events`, `upload_conversions`, `send_conversions`, `conversion_batches`, `pixels`, `create_pixel`, `get_pixel`, `update_pixel`, `share_pixel`, `pixel_stats`, `event_match_quality`, `custom_conversions`, `create_custom_conversion`, `get_custom_conversion`, `update_custom_conversion`, `delete_custom_conversion` |
| `ads` | `list`, `external`, `boostable`, `connections`, `sources`, `providers`, `authorize`, `delete_connection`, `boost`, `create`, `refresh`, `set_status`, `delete`, `audiences`, `create_audience`, `search_targeting`, `lead_forms`, `create_lead_form`, `leads`, `bulk_set_status`, `get_audience`, `update_audience`, `delete_audience`, `add_audience_users`, `add_audience_companies`, `estimate_reach`, `insights`, `ad_insights`, `get_lead_form`, `archive_lead_form`, `leads_feed`, `lead_pages`, `subscribe_lead_page`, `unsubscribe_lead_page`, `bid_pricing`, `supply_forecast`, `conversion_rules`, `create_conversion_rule`, `get_conversion_rule`, `update_conversion_rule`, `delete_conversion_rule`, `attach_conversion_rule`, `detach_conversion_rule`, `conversion_metrics`, `send_conversion_events`, `upload_conversions`, `send_conversions`, `conversion_batches`, `pixels`, `create_pixel`, `get_pixel`, `update_pixel`, `share_pixel`, `pixel_stats`, `event_match_quality`, `custom_conversions`, `create_custom_conversion`, `get_custom_conversion`, `update_custom_conversion`, `delete_custom_conversion` |
| `google_business` | `get_location`, `update_location`, `get_attributes`, `update_attributes`, `get_menus`, `replace_menus`, `get_services`, `replace_services`, `list_media`, `add_media`, `delete_media`, `list_place_actions`, `create_place_action`, `update_place_action`, `delete_place_action`, `get_verification_options`, `start_verification`, `complete_verification`, `get_performance`, `get_search_keywords`, `assign` |
| `blogs` | `list_blogs`, `list_articles`, `get_article`, `create_article`, `update_article`, `delete_article`, `list_products`, `update_product` |
| `validate` | `post`, `length`, `media`, `subreddit` |
Expand Down Expand Up @@ -459,27 +459,25 @@ Questions or a problem: [fopost.com/contact](https://fopost.com/contact).

### Google Ads

Campaigns, ad groups, ads, audiences and insights are on `client.ads` and dispatch by
connection. What only Google has is under `client.ads.google`:
Ads, audiences and insights are on `client.ads` and dispatch by connection. What only
Google has is under `client.ads.google`:

```python
keywords = client.ads.google.keywords(
strategies = client.ads.google.bid_strategies(
connection_id="c4d5e6f7-…",
customer_id="1234567890",
)

client.ads.google.create_keyword(
client.ads.google.create_bid_strategy(
workspace_id="7d2b8c11-…",
connection_id="c4d5e6f7-…",
customer_id="1234567890",
ad_group_id="1234567890~adGroup~77",
text="running shoes",
match_type="EXACT",
name="Target CPA",
type="TARGET_CPA",
target_minor=2500,
)
```

Also `keyword_ideas`, `keyword_metrics`, `search_terms`, `bid_strategies`,
`ad_schedule` and `set_ad_schedule`, the negative keyword lists, `assets` and
`asset_groups`, `local_services_leads`, the conversion methods, and `query` for a raw
read-only GAQL SELECT. Changes need the `publish` scope as well as `ads`; `customer_id`
has to name an account the connection's grant reaches.
Also `ad_schedule` and `set_ad_schedule`, `local_services_leads`, the conversion methods,
and `query` for a raw read-only GAQL SELECT. Changes need the `publish` scope as well as
`ads`; `customer_id` has to name an account the connection's grant reaches.
47 changes: 0 additions & 47 deletions src/fopost/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,23 +53,16 @@
ActivityEvent,
ActivityPage,
Ad,
AdAccountTree,
AdBusinessCenter,
AdCampaign,
AdCampaignNode,
AdComment,
AdCommentsPage,
AdConnection,
AdCreative,
AdIdentity,
AdInsights,
AdInsightsReport,
AdLibraryPage,
AdPixel,
AdPixelDetail,
AdProvider,
AdSet,
AdSetNode,
AdSource,
AiCreditBalance,
AiCredits,
Expand Down Expand Up @@ -169,21 +162,9 @@
FrequencyBest,
FrequencyWeek,
GoogleAdScheduleSlot,
GoogleAsset,
GoogleAssetGroup,
GoogleAssetLink,
GoogleAssetsResult,
GoogleBidStrategy,
GoogleConversionAction,
GoogleKeyword,
GoogleKeywordIdea,
GoogleLocalServicesLead,
GoogleOptimizationScore,
GoogleOptimizationScoreCampaign,
GoogleRecommendation,
GoogleRecommendationImpact,
GoogleSearchTerm,
GoogleSharedSet,
HashedConversionEvent,
InboxAccount,
InboxAccountRef,
Expand Down Expand Up @@ -242,7 +223,6 @@
MetricChangePage,
NativePost,
NativePostMetrics,
NetworkAd,
Page,
PageMeta,
PinterestBoard,
Expand Down Expand Up @@ -401,17 +381,10 @@
"ActivityEvent",
"ActivityPage",
"Ad",
"AdAccountTree",
"AdCampaign",
"AdCampaignNode",
"AdConnection",
"AdCreative",
"AdInsights",
"AdLibraryPage",
"AdProvider",
"AdInsightsReport",
"AdSet",
"AdSetNode",
"AdSource",
"AiCreditBalance",
"AiCredits",
Expand Down Expand Up @@ -475,7 +448,6 @@
"LeadsFeedPage",
"LeadsPage",
"MediaItem",
"NetworkAd",
"NotFoundError",
"PLATFORMS",
"POST_STATUSES",
Expand Down Expand Up @@ -588,38 +560,19 @@
"ValidatePostResult",
"Workspace",
"__version__",
"AdAccountTree",
"AdCampaign",
"AdCampaignNode",
"AdCreative",
"AdInsightsReport",
"AdSet",
"AdSetNode",
"BulkAdStatusResult",
"FeedLead",
"GoogleAdScheduleSlot",
"GoogleAsset",
"GoogleAssetGroup",
"GoogleAssetLink",
"GoogleAssetsResult",
"GoogleBidStrategy",
"GoogleConversionAction",
"GoogleKeyword",
"GoogleKeywordIdea",
"GoogleLocalServicesLead",
"GoogleOptimizationScore",
"GoogleOptimizationScoreCampaign",
"GoogleRecommendation",
"GoogleRecommendationImpact",
"GoogleSearchTerm",
"GoogleSharedSet",
"InsightsMetrics",
"InsightsRow",
"LeadFormDetail",
"LeadPage",
"LeadPageSubscription",
"LeadsFeedPage",
"NetworkAd",
"BidPricing",
"ConversionMetrics",
"ConversionRule",
Expand Down
Loading
Loading