ads_toolkit, alias ads) for agent access, or client.ads in the SDKs. These operations use the same saved campaign groups, seller allocations, store permissions and delivery services as the workspace Ads page.
Connections and permissions
Connect a dedicated Ads app to each store in Marketplaces → Store → Ads app. A catalog connection alone does not authorize advertising. Connection approval happens in the marketplace’s authorization screen. API keys never contain marketplace app secrets.
Grant
ads:approve explicitly; default keys omit it. Existing keys need the selected Ads scopes enabled in API Keys settings. User-bound CLI credentials also require the signed-in user’s current organization and store permissions. Agent execution grants must explicitly include Ads read, draft and approval permissions for the selected stores. Adding a toolkit does not grant those permissions. Agent lifecycle actions require human approval and cannot bypass it with an approval override.
Available advertising
Callads.listAccounts() first. Coverage includes every marketplace, with a concrete limitation for unavailable providers. Paid Ads currently supports Shopee and Lazada. TikTok Shop product, video and LIVE analytics remain separate from TikTok paid Ads authorization.
Shopee supports Product Ads automatic bidding, Product GMV Max target ROAS, Shop GMV Max automatic or target ROAS, and eligible manual keyword Product Ads. Lazada supports Sponsored Max Store automatic bidding, target ROAS/ROI and maximum CPC. Use the returned adFormats, publishable and biddingStrategies; marketplace eligibility and app permissions are checked again when publishing.
The current API does not expose general editing, resuming or deleting arbitrary external campaigns. Stops pause campaigns created by the selected saved plans and cancel queued launches. Budget or bidding changes require a new draft and approval. These operations do not claim complete Seller Center feature parity.
Draft, approve and verify
One campaign group can deploy to multiple exact stores. Each deployment specifies its own marketplace format, currency, bid strategy, daily allocation and total approved limit. Product formats map the shared OmniCommerce product IDs to exact listings in each store. Store formats advertise the store. Campaign group UUIDs, plan UUIDs and external marketplace campaign IDs are different identities.approve queues durable delivery for the saved schedule; it does not mean the marketplace has verified publication. Preserve all returned planIds and read getPlans until the targets have terminal outcomes. Follow nextOffset to read further store or target details. stop requests verified pauses; retry resumes recoverable failed delivery without recreating verified targets. An ambiguous create remains a reconciliation issue rather than being retried blindly.
Money inputs are decimal strings. A product format’s dailyBudget is per product; the store dailyLimit must cover the full allocation. Schedules use marketplace calendar days and span at most 30 days. Product selections support up to 5,000 IDs. Store selections have no arbitrary 20-store draft limit. Lifecycle batches accept up to 50 campaign or plan UUIDs, trim and deduplicate them, and return ordered per-target outcomes. Provider read batches are bounded separately as documented in OpenAPI.
Approved limits constrain OmniCommerce allocations. Marketplace overdelivery or changes made outside OmniCommerce can affect settled spend. Fund advertising through the marketplace’s own billing account; these APIs do not charge a seller’s card or top up ad credit.
Reports
getSyncStatus returns pending, completed and failed outcomes for every requested job. Read live provider performance with getPerformance, or persisted normalized metrics with getReports. Shopee reports identify campaigns and stores; Lazada Sponsored Max overview rows are store-attributed and must not be allocated to individual ads. Currencies and attribution bases stay separate. Missing metrics remain null; ROAS is attributed sales divided by spend when both are known and spend is positive. Reports can revise after conversions arrive.
Python and CLI
BothOmni and AsyncOmni expose ads with snake_case methods:
--dry-run to inspect the request before sending it. Keep API keys outside source files.
Operations
Saved agent and automation configurations can still call the original names for the individual campaign and performance readers.
The developer API uses dedicated
/api/v1/ads operations, rather than invoking assistant tools. Read the generated OpenAPI contract for request schemas and response statuses. HTTP acceptance and ok describe request handling; inspect data.success, counts and ordered results for partial failures.