API and MCP
Everything AdPilotPro knows, from your code or your AI
Read campaign, keyword and search-term performance, and create or pause automation rules, with a personal token or by connecting Claude or another MCP client to your account.
Quickstart
- Create a token in Settings → API. Copy it when it is shown; it is not shown again.
- Find the profile (marketplace) you want to work with:Terminal
curl "https://api-staging.adpilotpro.com/amazon-ads/profiles" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN" - Ask for data with its
profileId:Terminalcurl "https://api-staging.adpilotpro.com/analytics/account-overview?profileId=<profileId>" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN" - Or skip the code and connect your AI.
Authentication
Send a token in the Authorization header: Authorization: Bearer adp_…. Requests go to https://api-staging.adpilotpro.com over HTTPS.
- Read only tokens can call every
GETendpoint below and the previews. - Read and write tokens can also create, change, pause and delete rules, and take the same actions as the app: approve placement recommendations, approve queued negatives, promote harvested keywords, run a rule now and launch Campaign Architect plans. They can also make hand edits: bids and states of keywords, targets and ad groups, campaign budgets and states, and negative keywords, up to 50 items per call. Those change Amazon straight away.
- Tokens act as you and only see the Amazon profiles you have connected. Revoke one in Settings → API and it stops working at once.
Endpoints not listed here are not available to tokens and answer 403. Nothing here edits bids, budgets, keywords or campaigns on Amazon directly: changes go through rules, which run on their schedule with the same safety checks and history as rules you create in the app.
Rate limits
Each plan includes a daily quota per account, shared by all of its tokens. Quotas reset at 00:00 UTC.
| Plan | REST requests / day | MCP tool calls / day |
|---|---|---|
| Starter | 1,000 | 200 |
| Growth | 10,000 | 1,000 |
| Scale | 50,000 | 5,000 |
| Enterprise | 200,000 | 20,000 |
A chat session with an AI assistant makes about 30 to 60 tool calls, so Starter covers several sessions a day. Amazon data refreshes once a day, so a script that polls every hour fits comfortably in the REST quota.
Every REST response carries X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset. Over the limit you get 429 with Retry-After in seconds; over MCP the tool returns an error that says when the quota resets. Current usage is in Settings → API.
Connect your AI (MCP)
The AdPilotPro MCP server lets your own Claude, Cursor or Grok subscription read your account, set up rules and act on recommendations for you. ChatGPT only works on some plans, as set out below. It exposes 68 read tools and 52 write tools, the same endpoints listed below. Sign-in uses OAuth: you approve the app once on an AdPilotPro consent screen.
https://api-staging.adpilotpro.com/mcpClaude Code
claude mcp add --transport http adpilotpro https://api-staging.adpilotpro.com/mcpThen run /mcp, pick adpilotpro and choose Authenticate. Your browser opens the AdPilotPro consent screen.
Claude (web and desktop)
Customize → Connectors → + Add → Add custom connector. Paste the URL, click Add, then Connect. Every Claude plan can connect; the Free plan allows one custom connector. On Team and Enterprise, an owner adds it under Organization settings first, then you click Connect.
ChatGPT
Check your ChatGPT plan first. Business, Enterprise and Edu can read and change your account. On Business, an admin or owner adds it. On Enterprise and Edu, an admin or owner adds it or lets you add it. Pro can only read it. OpenAI doesn't list Free, Go or Plus, so on those plans use Claude instead.
On the ChatGPT website: Plugins → + → Add custom MCP server. Name it AdPilotPro, paste the URL under Connection, set authentication to OAuth, tick the box and click Create as a plugin. Then type @ in a chat and pick AdPilotPro.
Cursor
Add the server to ~/.cursor/mcp.json, then open Cursor Settings → MCP and click Connect to sign in.
{ "mcpServers": { "adpilotpro": { "url": "https://api-staging.adpilotpro.com/mcp" } }}Grok
In the xAI API, add AdPilotPro as a remote MCP tool with the server URL and a personal token in the Authorization header.
Other clients
Clients without OAuth can send a personal token instead:
claude mcp add --transport http adpilotpro https://api-staging.adpilotpro.com/mcp \ --header "Authorization: Bearer adp_…"A read-only token only lists the read tools. Every write tool is marked destructive, so your AI asks before it runs one, and the result says exactly what changed. Each tool call counts once against the MCP quota; listing tools is free.
Errors
Errors share one shape:
{ "error": { "code": "QUOTA_EXCEEDED", "message": "Daily API request quota of 1000 reached. It resets at 2026-11-03T00:00:00.000Z." } }400invalid parameters; the message names the field.401missing, unknown or revoked token.403endpoint not public, read-only token on a write, a profile you do not own, or no paid plan.404the rule or entity does not exist for you.429daily quota reached.
Account
/meThe account the token belongs to. Use it to check a token.
curl "https://api-staging.adpilotpro.com/me" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN"/amazon-ads/profilesList the Amazon Ads profiles (one per marketplace) connected to the account. Start here: every other tool needs a profileId.
curl "https://api-staging.adpilotpro.com/amazon-ads/profiles" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN"/analytics/account-overviewSpend, sales, ACoS, ROAS and orders for a profile with deltas against the previous period. Pass the profileId returned by list_profiles; you only see profiles you own.
Parameters
| Name | In | Type |
|---|---|---|
| profileId* | query | string |
| date_range | query | "7d" | "14d" | "30d" | "60d" | "90d" | "custom" |
| from | query | string |
| to | query | string |
| comparison_period | query | "previous_period" | "year_over_year" | "none" |
curl "https://api-staging.adpilotpro.com/analytics/account-overview?profileId=<profileId>" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN"/dashboardDashboard summary for a profile: KPIs, trend and top movers over a date range.
Parameters
| Name | In | Type |
|---|---|---|
| profileId* | query | string |
| period | query | number |
| fromDate | query | string |
| toDate | query | string |
| selectedKpis | query | string |
curl "https://api-staging.adpilotpro.com/dashboard?profileId=<profileId>" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN"/dashboard/data-rangeEarliest and latest dates that have metrics for a profile. Use it to pick valid date ranges.
Parameters
| Name | In | Type |
|---|---|---|
| profileId* | query | string |
curl "https://api-staging.adpilotpro.com/dashboard/data-range?profileId=<profileId>" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN"/rules-opportunities/insightsOptimization insights across bids, budgets, negatives and harvesting for a profile.
Parameters
| Name | In | Type |
|---|---|---|
| profileId* | query | string |
| region* | query | "NA" | "EU" |
| fromDate | query | string |
| toDate | query | string |
curl "https://api-staging.adpilotpro.com/rules-opportunities/insights?profileId=<profileId>®ion=<region>" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN"/audit/resultsLatest account audit result (scores and findings).
Parameters
| Name | In | Type |
|---|---|---|
| profileId* | query | string |
curl "https://api-staging.adpilotpro.com/audit/results?profileId=<profileId>" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN"/audit/audit-logUnified activity log: rule executions plus Amazon change history for a profile.
Parameters
| Name | In | Type |
|---|---|---|
| profileId* | query | string |
| entityType | query | "AD" | "AD_GROUP" | "CAMPAIGN" | "KEYWORD" | "NEGATIVE_KEYWORD" | "PRODUCT_TARGETING" | "THEME" |
| entityId | query | string |
| changeType | query | "BID_AMOUNT" | "BUDGET_AMOUNT" | "DEFAULT_BID_AMOUNT" | "END_DATE" | "IN_BUDGET" | "NAME" | "PLACEMENT_GROUP" | "PORTFOLIO" | "SMART_BIDDING_STRATEGY" | "START_DATE" | "STATUS" | "CREATED" | "RULE_BASED_BUDGET_VALUE" | "IS_PREMIUM_BID_ENABLED" | "PORTFOLIO_ID" | "BUDGET_DOCUMENT_VERSION" | "IS_PROCESSING" | "APPLICABLE_RULE_NAME" | "APPLICABLE_RULE_ID" | "CREATION_DATE" | "AUTO_TARGETED" |
| changeTypes | query | string |
| campaignIds | query | string |
| campaignId | query | string |
| adGroupId | query | string |
| fromDate | query | string |
| toDate | query | string |
| limit | query | integer |
| offset | query | integer |
curl "https://api-staging.adpilotpro.com/audit/audit-log?profileId=<profileId>" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN"Performance
/campaigns/List campaigns for a profile. Set withMetrics=true for spend, sales and ACoS.
Parameters
| Name | In | Type |
|---|---|---|
| profileId | query | string |
| campaignId | query | string |
| period | query | integer |
| fromDate | query | string |
| toDate | query | string |
| withMetrics | query | string | boolean |
curl "https://api-staging.adpilotpro.com/campaigns/" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN"/campaigns/{campaignId}One campaign's settings (budget, bidding strategy, state).
Parameters
| Name | In | Type |
|---|---|---|
| campaignId* | path | string |
curl "https://api-staging.adpilotpro.com/campaigns/<campaignId>" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN"/campaigns/metricsDaily or aggregated metrics per campaign.
Parameters
| Name | In | Type |
|---|---|---|
| profileId* | query | string |
| campaignId | query | string |
| period | query | integer |
| startDate | query | string |
| endDate | query | string |
curl "https://api-staging.adpilotpro.com/campaigns/metrics?profileId=<profileId>" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN"/ad-groups/Ad groups with metrics and child target counts.
Parameters
| Name | In | Type |
|---|---|---|
| profileId* | query | string |
| campaignId | query | string |
| campaignIds | query | string |
| period | query | string |
| fromDate | query | string |
| toDate | query | string |
curl "https://api-staging.adpilotpro.com/ad-groups/?profileId=<profileId>" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN"/keywords/Keywords with bids and metrics. Filter by campaignId or adGroupId and page with limit/offset.
Parameters
| Name | In | Type |
|---|---|---|
| profileId* | query | string |
| adGroupId | query | string |
| campaignId | query | string |
| adGroupIds | query | string |
| stateFilter | query | string |
| period | query | number |
| limit | query | integer |
| offset | query | integer |
| cursor | query | string |
curl "https://api-staging.adpilotpro.com/keywords/?profileId=<profileId>" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN"/keywords/negativeNegative keywords on a profile.
Parameters
| Name | In | Type |
|---|---|---|
| profileId | query | string |
| adGroupId | query | string |
| campaignId | query | string |
curl "https://api-staging.adpilotpro.com/keywords/negative" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN"/targeting/Keywords and product targets in one list, with metrics.
Parameters
| Name | In | Type |
|---|---|---|
| profileId* | query | string |
| campaignId | query | string |
| adGroupId | query | string |
| targetingType | query | "keyword" | "product-target" |
| fromDate | query | string |
| toDate | query | string |
| period | query | number |
| page | query | number |
| limit | query | number |
| search | query | string |
| impressionsMin | query | number |
| impressionsMax | query | number |
| clicksMin | query | number |
| clicksMax | query | number |
| costMin | query | number |
| costMax | query | number |
| purchases7dMin | query | number |
| purchases7dMax | query | number |
| sales7dMin | query | number |
| sales7dMax | query | number |
| acosMin | query | number |
| acosMax | query | number |
| roasMin | query | number |
| roasMax | query | number |
curl "https://api-staging.adpilotpro.com/targeting/?profileId=<profileId>" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN"/product-targets/Product (ASIN and category) targets with metrics.
Parameters
| Name | In | Type |
|---|---|---|
| profileId* | query | string |
| campaignIds | query | string |
| adGroupIds | query | string |
curl "https://api-staging.adpilotpro.com/product-targets/?profileId=<profileId>" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN"/product-ads/Advertised products (ASIN/SKU) with metrics.
Parameters
| Name | In | Type |
|---|---|---|
| profileId* | query | string |
| campaignIds | query | string |
| adGroupIds | query | string |
| campaignType | query | "SPONSORED_PRODUCTS" | "SPONSORED_BRANDS" | "SPONSORED_DISPLAY" |
| period | query | string |
| fromDate | query | string |
| toDate | query | string |
curl "https://api-staging.adpilotpro.com/product-ads/?profileId=<profileId>" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN"/search-terms/Customer search terms with aggregated metrics.
Parameters
| Name | In | Type |
|---|---|---|
| profileId* | query | string |
| campaignId | query | string |
| adGroupId | query | string |
| period | query | string |
| fromDate | query | string |
| toDate | query | string |
curl "https://api-staging.adpilotpro.com/search-terms/?profileId=<profileId>" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN"/dayparting/hourly-metricsHour-by-weekday metrics matrix for dayparting analysis on a profile.
Parameters
| Name | In | Type |
|---|---|---|
| profileId* | query | integer |
| campaignId | query | string |
| campaignIds | query | string |
| startDate | query | string |
| endDate | query | string |
curl "https://api-staging.adpilotpro.com/dayparting/hourly-metrics?profileId=<profileId>" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN"Opportunities
/keyword-harvesting/opportunitiesConverting search terms worth adding as keywords, from the harvesting engine.
Parameters
| Name | In | Type |
|---|---|---|
| profileId* | query | string |
| status | query | string |
| sourceMatchType | query | string |
| minOrders | query | integer |
| maxAcos | query | number |
| fromDate | query | string |
| toDate | query | string |
curl "https://api-staging.adpilotpro.com/keyword-harvesting/opportunities?profileId=<profileId>" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN"/keyword-harvesting/wasted-spendSearch terms spending without converting, most expensive first. Candidates for negation rules.
Parameters
| Name | In | Type |
|---|---|---|
| profileId* | query | string |
| campaignIds | query | string |
| from | query | string |
| to | query | string |
| limit | query | integer |
| minClicks | query | integer |
| minSpend | query | number |
curl "https://api-staging.adpilotpro.com/keyword-harvesting/wasted-spend?profileId=<profileId>" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN"/keyword-harvesting/graduation-candidatesConverting search terms in discovery campaigns that are worth promoting to exact match.
Parameters
| Name | In | Type |
|---|---|---|
| profileId* | query | string |
| campaignIds | query | string |
| from | query | string |
| to | query | string |
| limit | query | integer |
| minOrders | query | integer |
curl "https://api-staging.adpilotpro.com/keyword-harvesting/graduation-candidates?profileId=<profileId>" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN"/budgets/recommendationsCampaigns that run out of budget and suggested budgets. Apply one with update_campaign.
curl "https://api-staging.adpilotpro.com/budgets/recommendations" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN"/budgets/opportunity-patternsPer-campaign budget use over the last N days: how often and how early each campaign runs out. Set opportunitiesOnly=true for just the ones losing sales.
Parameters
| Name | In | Type |
|---|---|---|
| profileId* | query | string |
| days | query | integer |
| opportunitiesOnly | query | "true" | "false" |
curl "https://api-staging.adpilotpro.com/budgets/opportunity-patterns?profileId=<profileId>" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN"Bid rules
/rules/bid/Bid rules on a profile with their state and schedule.
Parameters
| Name | In | Type |
|---|---|---|
| profileId | query | string |
| region | query | "NA" | "EU" | "FE" |
| ruleState | query | "ENABLED" | "PAUSED" | "ARCHIVED" |
| includeArchived | query | boolean |
| campaignId | query | string |
curl "https://api-staging.adpilotpro.com/rules/bid/" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN"/rules/bid/{ruleId}One bid rule with its associated and available campaigns.
Parameters
| Name | In | Type |
|---|---|---|
| ruleId* | path | string |
| action | query | "trigger" | "pause" | "resume" | "archive" |
| profileId | query | string |
| region | query | "NA" | "EU" | "FE" |
curl "https://api-staging.adpilotpro.com/rules/bid/<ruleId>" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN"/rules/bid/metricsMetric names a bid rule condition may use. Read this before create_bid_rule.
curl "https://api-staging.adpilotpro.com/rules/bid/metrics" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN"/rules/bid/audit-logBid changes made by rules on a profile.
Parameters
| Name | In | Type |
|---|---|---|
| profileId* | query | string |
| startDate | query | string |
| endDate | query | string |
| limit | query | integer |
| offset | query | integer |
| action | query | string |
| ruleId | query | string |
| ruleName | query | string |
curl "https://api-staging.adpilotpro.com/rules/bid/audit-log?profileId=<profileId>" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN"/rules/bid/{ruleId}/execution-logsRun history of one bid rule.
Parameters
| Name | In | Type |
|---|---|---|
| ruleId* | path | string |
| startDate | query | string |
| endDate | query | string |
| status | query | "SUCCESS" | "FAILED" | "SKIPPED" |
| limit | query | integer |
| offset | query | integer |
curl "https://api-staging.adpilotpro.com/rules/bid/<ruleId>/execution-logs" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN"/rules/bid/Create a bid rule. It changes bids on its own schedule once enabled, through the guarded rule engine. Runs on its own once enabled: check the list tool first and tune an existing rule rather than adding one that overlaps it.
JSON body
| Name | In | Type |
|---|---|---|
| name* | body | string |
| adjustmentMode | body | "ACOS_FORMULA" | "PERCENTAGE" |
| bidFloor | body | number | null |
| bidCeiling | body | number | null |
| targetAcos | body | number |
| targetAcosSource | body | "rule" |
| currentAcos | body | number | null |
| maxAdjustment | body | integer |
| adjustment* | body | object |
| evaluationStrategy | body | "ALL" | "ANY" |
| conditions* | body | object[] |
| lookbackMode | body | "SINCE_LAST_ADJUSTMENT" | "LAST_X_DAYS" |
| lookbackDays | body | number |
| initialLookbackDays | body | integer |
| maxLookbackDays | body | integer | null |
| autoExpand | body | boolean |
| schedule* | body | object |
| profileId* | body | string |
| region* | body | "NA" | "EU" | "FE" |
| ruleState | body | "ENABLED" | "PAUSED" | "ARCHIVED" |
curl -X POST "https://api-staging.adpilotpro.com/rules/bid/" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN" \ -H "Content-Type: application/json" \ -d '{ … }'/rules/bid/dry-runPreview what a draft bid rule would change if it ran now: each keyword and target, its current and new bid, and the conditions it met. Takes create_bid_rule's body plus campaignIds. Changes nothing.
JSON body
| Name | In | Type |
|---|---|---|
| name* | body | string |
| adjustmentMode | body | "ACOS_FORMULA" | "PERCENTAGE" |
| bidFloor | body | number | null |
| bidCeiling | body | number | null |
| targetAcos | body | number |
| targetAcosSource | body | "rule" |
| currentAcos | body | number | null |
| maxAdjustment | body | integer |
| adjustment* | body | object |
| evaluationStrategy | body | "ALL" | "ANY" |
| conditions* | body | object[] |
| lookbackMode | body | "SINCE_LAST_ADJUSTMENT" | "LAST_X_DAYS" |
| lookbackDays | body | number |
| initialLookbackDays | body | integer |
| maxLookbackDays | body | integer | null |
| autoExpand | body | boolean |
| schedule* | body | object |
| profileId* | body | string |
| region* | body | "NA" | "EU" | "FE" |
| ruleState | body | "ENABLED" | "PAUSED" | "ARCHIVED" |
| campaignIds* | body | string[] |
curl -X POST "https://api-staging.adpilotpro.com/rules/bid/dry-run" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN" \ -H "Content-Type: application/json" \ -d '{ … }'/rules/bid/{ruleId}Update a bid rule, or run it now, pause, resume or archive it with action=trigger|pause|resume|archive. To change settings, read the rule with get_bid_rule, then send only the fields that change in body; conditions, adjustment and schedule each replace the stored value whole, so send the full list or object. An action needs no body and ignores one. action=trigger changes bids on Amazon straight away.
Parameters
| Name | In | Type |
|---|---|---|
| ruleId* | path | string |
| action | query | "trigger" | "pause" | "resume" | "archive" |
| profileId | query | string |
| region | query | "NA" | "EU" | "FE" |
JSON body
| Name | In | Type |
|---|---|---|
| name | body | string |
| adjustmentMode | body | "ACOS_FORMULA" | "PERCENTAGE" |
| bidFloor | body | number | null |
| bidCeiling | body | number | null |
| targetAcos | body | number |
| targetAcosSource | body | "rule" |
| currentAcos | body | number | null |
| maxAdjustment | body | integer |
| adjustment | body | object |
| evaluationStrategy | body | "ALL" | "ANY" |
| conditions | body | object[] |
| lookbackMode | body | "SINCE_LAST_ADJUSTMENT" | "LAST_X_DAYS" |
| lookbackDays | body | number |
| initialLookbackDays | body | integer |
| maxLookbackDays | body | integer | null |
| autoExpand | body | boolean |
| schedule | body | object |
curl -X PATCH "https://api-staging.adpilotpro.com/rules/bid/<ruleId>" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN" \ -H "Content-Type: application/json" \ -d '{ … }'/rules/bid/{ruleId}/execution-logs/statsSuccess, failure and skip counts plus keywords adjusted across one bid rule's runs.
Parameters
| Name | In | Type |
|---|---|---|
| ruleId* | path | string |
curl "https://api-staging.adpilotpro.com/rules/bid/<ruleId>/execution-logs/stats" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN"/rules/bid/{ruleId}Delete a bid rule. Bids it already changed stay as they are.
Parameters
| Name | In | Type |
|---|---|---|
| ruleId* | path | string |
curl -X DELETE "https://api-staging.adpilotpro.com/rules/bid/<ruleId>" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN"/rules/bid/{ruleId}/associateAttach campaigns to a bid rule.
Parameters
| Name | In | Type |
|---|---|---|
| ruleId* | path | string |
JSON body
| Name | In | Type |
|---|---|---|
| campaignIds* | body | string[] |
| profileId* | body | string |
| region* | body | "NA" | "EU" | "FE" |
curl -X POST "https://api-staging.adpilotpro.com/rules/bid/<ruleId>/associate" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN" \ -H "Content-Type: application/json" \ -d '{ … }'/rules/bid/{ruleId}/disassociateDetach campaigns from a bid rule.
Parameters
| Name | In | Type |
|---|---|---|
| ruleId* | path | string |
JSON body
| Name | In | Type |
|---|---|---|
| campaignIds* | body | string[] |
| profileId* | body | string |
| region* | body | "NA" | "EU" | "FE" |
curl -X POST "https://api-staging.adpilotpro.com/rules/bid/<ruleId>/disassociate" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN" \ -H "Content-Type: application/json" \ -d '{ … }'Budget rules
/budgets/app-rules/unifiedBudget rules on a profile.
Parameters
| Name | In | Type |
|---|---|---|
| profileId* | query | string |
| region* | query | "NA" | "EU" | "FE" |
| campaignId | query | string |
curl "https://api-staging.adpilotpro.com/budgets/app-rules/unified?profileId=<profileId>®ion=<region>" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN"/budgets/app-rules/{id}One budget rule.
Parameters
| Name | In | Type |
|---|---|---|
| id* | path | string |
curl "https://api-staging.adpilotpro.com/budgets/app-rules/<id>" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN"/budgets/app-rules/Create a budget rule (PERFORMANCE raises or lowers budgets on conditions, SCHEDULE sets them by time). Runs on its own once enabled: check the list tool first and tune an existing rule rather than adding one that overlaps it.
JSON body
| Name | In | Type |
|---|---|---|
| name* | body | string |
| notes | body | string | null |
| profileId* | body | string |
| region* | body | string |
| ruleMode* | body | "PERFORMANCE" | "SCHEDULE" |
| conditions | body | object[] |
| evaluationStrategy | body | "ALL" | "ANY" |
| lookbackMode* | body | "SINCE_LAST_ADJUSTMENT" | "LAST_X_DAYS" |
| lookbackDays | body | integer | null |
| initialLookbackDays | body | integer | null |
| maxLookbackDays | body | integer | null |
| adjustment* | body | object |
| schedule* | body | object |
| ruleState | body | "ENABLED" | "PAUSED" | "ARCHIVED" |
| campaignIds | body | string[] |
curl -X POST "https://api-staging.adpilotpro.com/budgets/app-rules/" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN" \ -H "Content-Type: application/json" \ -d '{ … }'/budgets/app-rules/dry-runPreview what a draft budget rule would change if it ran now: each campaign, its current and new daily budget, and why. Takes create_budget_rule's body; campaignIds is required. Changes nothing.
JSON body
| Name | In | Type |
|---|---|---|
| name* | body | string |
| notes | body | string | null |
| profileId* | body | string |
| region* | body | string |
| ruleMode* | body | "PERFORMANCE" | "SCHEDULE" |
| conditions | body | object[] |
| evaluationStrategy | body | "ALL" | "ANY" |
| lookbackMode* | body | "SINCE_LAST_ADJUSTMENT" | "LAST_X_DAYS" |
| lookbackDays | body | integer | null |
| initialLookbackDays | body | integer | null |
| maxLookbackDays | body | integer | null |
| adjustment* | body | object |
| schedule* | body | object |
| ruleState | body | "ENABLED" | "PAUSED" | "ARCHIVED" |
| campaignIds | body | string[] |
curl -X POST "https://api-staging.adpilotpro.com/budgets/app-rules/dry-run" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN" \ -H "Content-Type: application/json" \ -d '{ … }'/budgets/app-rules/{id}Update a budget rule. Pause or enable it by setting ruleState.
Parameters
| Name | In | Type |
|---|---|---|
| id* | path | string |
JSON body
| Name | In | Type |
|---|---|---|
| name | body | string |
| notes | body | string | null |
| ruleMode | body | "PERFORMANCE" | "SCHEDULE" |
| conditions | body | object[] |
| evaluationStrategy | body | "ALL" | "ANY" |
| lookbackMode | body | "SINCE_LAST_ADJUSTMENT" | "LAST_X_DAYS" |
| lookbackDays | body | integer | null |
| initialLookbackDays | body | integer | null |
| maxLookbackDays | body | integer | null |
| adjustment | body | object |
| schedule | body | object |
| ruleState | body | "ENABLED" | "PAUSED" | "ARCHIVED" |
| campaignIds | body | string[] |
curl -X PATCH "https://api-staging.adpilotpro.com/budgets/app-rules/<id>" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN" \ -H "Content-Type: application/json" \ -d '{ … }'/budgets/app-rules/{id}Delete a budget rule.
Parameters
| Name | In | Type |
|---|---|---|
| id* | path | string |
curl -X DELETE "https://api-staging.adpilotpro.com/budgets/app-rules/<id>" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN"/budgets/app-rules/{id}/associationsAttach campaigns to a budget rule.
Parameters
| Name | In | Type |
|---|---|---|
| id* | path | string |
JSON body
| Name | In | Type |
|---|---|---|
| campaignIds* | body | string[] |
| profileId* | body | string |
| region* | body | string |
curl -X POST "https://api-staging.adpilotpro.com/budgets/app-rules/<id>/associations" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN" \ -H "Content-Type: application/json" \ -d '{ … }'/budgets/app-rules/{id}/runRun a budget rule now instead of waiting for its schedule. Changes budgets on Amazon straight away.
Parameters
| Name | In | Type |
|---|---|---|
| id* | path | string |
curl -X POST "https://api-staging.adpilotpro.com/budgets/app-rules/<id>/run" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN"Negation rules
/negative-keyword-rules/Negative keyword rules on a profile.
Parameters
| Name | In | Type |
|---|---|---|
| profileId | query | string |
| enabledOnly | query | boolean |
curl "https://api-staging.adpilotpro.com/negative-keyword-rules/" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN"/negative-keyword-rules/{id}One negation rule with its recent executions.
Parameters
| Name | In | Type |
|---|---|---|
| id* | path | string |
curl "https://api-staging.adpilotpro.com/negative-keyword-rules/<id>" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN"/negative-keyword-rules/{id}/diagnosticsWhy a negation rule did or did not negate anything.
Parameters
| Name | In | Type |
|---|---|---|
| id* | path | string |
curl "https://api-staging.adpilotpro.com/negative-keyword-rules/<id>/diagnostics" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN"/negative-keyword-rules/dry-runPreview which search terms a draft negation rule would negate. Changes nothing.
JSON body
| Name | In | Type |
|---|---|---|
| profileId* | body | string |
| thresholdMode* | body | "static" |
| staticClicksThreshold | body | integer |
| conditions | body | object[] |
| evaluationStrategy | body | "ALL" | "ANY" |
| minClicksBeforeNegate | body | integer | null |
| lookbackDays | body | integer |
| maxOrders | body | integer |
| negateScope | body | "source_campaigns" | "all_rule_campaigns" |
| matchType | body | "negativeExact" | "negativePhrase" |
| maxNegationsPerCycle | body | integer |
| ruleId | body | string |
| totalCampaignCount | body | integer |
| campaignIds* | body | string[] |
curl -X POST "https://api-staging.adpilotpro.com/negative-keyword-rules/dry-run" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN" \ -H "Content-Type: application/json" \ -d '{ … }'/negative-keyword-rules/Create a negation rule. Use triggerAction=recommend to queue negatives for approval (list_queued_negatives) instead of applying them. Runs on its own once enabled: check the list tool first and tune an existing rule rather than adding one that overlaps it.
JSON body
| Name | In | Type |
|---|---|---|
| profileId* | body | string |
| name* | body | string |
| enabled | body | boolean |
| thresholdMode* | body | "static" |
| staticClicksThreshold | body | integer |
| conditions | body | object[] |
| evaluationStrategy | body | "ALL" | "ANY" |
| minClicksBeforeNegate | body | integer | null |
| maxNegationsPerCycle | body | integer |
| lookbackDays | body | integer |
| maxOrders | body | integer |
| triggerAction* | body | "auto_apply" | "recommend" |
| matchType | body | "negativeExact" | "negativePhrase" |
| negateScope | body | "source_campaigns" | "all_rule_campaigns" |
| campaignIds* | body | string[] |
curl -X POST "https://api-staging.adpilotpro.com/negative-keyword-rules/" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN" \ -H "Content-Type: application/json" \ -d '{ … }'/negative-keyword-rules/{id}Replace a negation rule's settings and campaigns.
Parameters
| Name | In | Type |
|---|---|---|
| id* | path | string |
JSON body
| Name | In | Type |
|---|---|---|
| name | body | string |
| enabled | body | boolean |
| thresholdMode | body | "static" |
| staticClicksThreshold | body | integer |
| conditions | body | object[] |
| evaluationStrategy | body | "ALL" | "ANY" |
| minClicksBeforeNegate | body | integer | null |
| maxNegationsPerCycle | body | integer |
| lookbackDays | body | integer |
| maxOrders | body | integer |
| triggerAction | body | "auto_apply" | "recommend" |
| matchType | body | "negativeExact" | "negativePhrase" |
| negateScope | body | "source_campaigns" | "all_rule_campaigns" |
| campaignIds | body | string[] |
curl -X PUT "https://api-staging.adpilotpro.com/negative-keyword-rules/<id>" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN" \ -H "Content-Type: application/json" \ -d '{ … }'/negative-keyword-rules/{id}/enabledPause or resume a negation rule.
Parameters
| Name | In | Type |
|---|---|---|
| id* | path | string |
JSON body
| Name | In | Type |
|---|---|---|
| enabled* | body | boolean |
curl -X PATCH "https://api-staging.adpilotpro.com/negative-keyword-rules/<id>/enabled" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN" \ -H "Content-Type: application/json" \ -d '{ … }'/negative-keyword-rules/{id}Delete a negation rule. Negatives it added stay in place.
Parameters
| Name | In | Type |
|---|---|---|
| id* | path | string |
curl -X DELETE "https://api-staging.adpilotpro.com/negative-keyword-rules/<id>" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN"/amazon-ads/recommendations/negative-keywordsNegatives that negation rules in recommend mode queued for approval (status PENDING by default), with the search term's spend and why it qualified.
Parameters
| Name | In | Type |
|---|---|---|
| profileId* | query | string |
| status | query | "PENDING" | "ACCEPTED" | "REJECTED" |
curl "https://api-staging.adpilotpro.com/amazon-ads/recommendations/negative-keywords?profileId=<profileId>" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN"/amazon-ads/recommendations/negative-keywords/{recommendationId}/acceptApprove one queued negative from list_queued_negatives. Adds the negative keyword (or negative ASIN) on Amazon straight away.
Parameters
| Name | In | Type |
|---|---|---|
| recommendationId* | path | string |
curl -X POST "https://api-staging.adpilotpro.com/amazon-ads/recommendations/negative-keywords/<recommendationId>/accept" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN"/amazon-ads/recommendations/negative-keywords/bulk-acceptApprove up to 50 queued negatives at once. Adds them on Amazon straight away and reports each one that failed.
JSON body
| Name | In | Type |
|---|---|---|
| recommendationIds* | body | string[] |
curl -X POST "https://api-staging.adpilotpro.com/amazon-ads/recommendations/negative-keywords/bulk-accept" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN" \ -H "Content-Type: application/json" \ -d '{ … }'/amazon-ads/recommendations/negative-keywords/{recommendationId}/rejectReject one queued negative so it leaves the queue. Changes nothing on Amazon.
Parameters
| Name | In | Type |
|---|---|---|
| recommendationId* | path | string |
curl -X POST "https://api-staging.adpilotpro.com/amazon-ads/recommendations/negative-keywords/<recommendationId>/reject" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN"/amazon-ads/recommendations/negative-keywords/bulk-rejectReject up to 200 queued negatives. Changes nothing on Amazon.
JSON body
| Name | In | Type |
|---|---|---|
| recommendationIds* | body | string[] |
curl -X POST "https://api-staging.adpilotpro.com/amazon-ads/recommendations/negative-keywords/bulk-reject" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN" \ -H "Content-Type: application/json" \ -d '{ … }'Harvesting rules
/keyword-harvesting-rules/Keyword harvesting rules on a profile.
Parameters
| Name | In | Type |
|---|---|---|
| profileId | query | string |
| enabledOnly | query | boolean |
curl "https://api-staging.adpilotpro.com/keyword-harvesting-rules/" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN"/keyword-harvesting-rules/{id}One harvesting rule with its recent executions.
Parameters
| Name | In | Type |
|---|---|---|
| id* | path | string |
curl "https://api-staging.adpilotpro.com/keyword-harvesting-rules/<id>" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN"/keyword-harvesting-rules/Create a harvesting rule that promotes converting search terms to keywords. Runs on its own once enabled: check the list tool first and tune an existing rule rather than adding one that overlaps it.
JSON body
| Name | In | Type |
|---|---|---|
| profileId* | body | string |
| region* | body | "NA" | "EU" |
| name* | body | string |
| enabled | body | boolean |
| conditions* | body | object[] |
| evaluationStrategy | body | "ALL" | "ANY" |
| sourceCampaignIds* | body | string[] |
| destinationCampaignId* | body | string |
| matchType | body | "EXACT" |
| triggerAction* | body | "auto_apply" | "recommend" |
| lookbackDays | body | integer |
| negateInSourceOnGraduate | body | boolean |
| maxPromotionsPerCycle | body | integer |
| schedule* | body | object |
curl -X POST "https://api-staging.adpilotpro.com/keyword-harvesting-rules/" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN" \ -H "Content-Type: application/json" \ -d '{ … }'/keyword-harvesting-rules/dry-runPreview which search terms a draft harvesting rule would promote or queue now: target campaign, match type and bid for each, and the terms it would skip. Takes create_harvesting_rule's body. Changes nothing.
JSON body
| Name | In | Type |
|---|---|---|
| profileId* | body | string |
| region* | body | "NA" | "EU" |
| name* | body | string |
| enabled | body | boolean |
| conditions* | body | object[] |
| evaluationStrategy | body | "ALL" | "ANY" |
| sourceCampaignIds* | body | string[] |
| destinationCampaignId* | body | string |
| matchType | body | "EXACT" |
| triggerAction* | body | "auto_apply" | "recommend" |
| lookbackDays | body | integer |
| negateInSourceOnGraduate | body | boolean |
| maxPromotionsPerCycle | body | integer |
| schedule* | body | object |
curl -X POST "https://api-staging.adpilotpro.com/keyword-harvesting-rules/dry-run" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN" \ -H "Content-Type: application/json" \ -d '{ … }'/keyword-harvesting-rules/{id}Replace a harvesting rule's settings and source campaigns.
Parameters
| Name | In | Type |
|---|---|---|
| id* | path | string |
JSON body
| Name | In | Type |
|---|---|---|
| name | body | string |
| enabled | body | boolean |
| conditions | body | object[] |
| evaluationStrategy | body | "ALL" | "ANY" |
| sourceCampaignIds | body | string[] |
| destinationCampaignId | body | string |
| matchType | body | "EXACT" |
| triggerAction | body | "auto_apply" | "recommend" |
| lookbackDays | body | integer |
| negateInSourceOnGraduate | body | boolean |
| maxPromotionsPerCycle | body | integer |
| schedule | body | object |
curl -X PUT "https://api-staging.adpilotpro.com/keyword-harvesting-rules/<id>" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN" \ -H "Content-Type: application/json" \ -d '{ … }'/keyword-harvesting-rules/{id}/enabledPause or resume a harvesting rule.
Parameters
| Name | In | Type |
|---|---|---|
| id* | path | string |
JSON body
| Name | In | Type |
|---|---|---|
| enabled* | body | boolean |
curl -X PATCH "https://api-staging.adpilotpro.com/keyword-harvesting-rules/<id>/enabled" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN" \ -H "Content-Type: application/json" \ -d '{ … }'/keyword-harvesting-rules/{id}Delete a harvesting rule.
Parameters
| Name | In | Type |
|---|---|---|
| id* | path | string |
curl -X DELETE "https://api-staging.adpilotpro.com/keyword-harvesting-rules/<id>" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN"/keyword-harvesting-rules/{id}/recommendationsKeywords a harvesting rule in recommend mode queued for approval. Each row's id is an executionId for approve_harvesting_rule_queue.
Parameters
| Name | In | Type |
|---|---|---|
| id* | path | string |
curl "https://api-staging.adpilotpro.com/keyword-harvesting-rules/<id>/recommendations" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN"/keyword-harvesting-rules/{id}/recommendations/approveApprove up to 50 queued harvesting rule items by executionIds. Creates the keywords (and any negatives the rule adds) on Amazon straight away.
Parameters
| Name | In | Type |
|---|---|---|
| id* | path | string |
JSON body
| Name | In | Type |
|---|---|---|
| executionIds* | body | string[] |
curl -X POST "https://api-staging.adpilotpro.com/keyword-harvesting-rules/<id>/recommendations/approve" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN" \ -H "Content-Type: application/json" \ -d '{ … }'Harvesting
/keyword-harvesting/schedule-statusWhether scheduled harvesting is set up on a profile and when it runs.
Parameters
| Name | In | Type |
|---|---|---|
| profileId* | query | string |
curl "https://api-staging.adpilotpro.com/keyword-harvesting/schedule-status?profileId=<profileId>" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN"/keyword-harvesting/promoted-performanceHow keywords promoted from search terms have performed since promotion.
Parameters
| Name | In | Type |
|---|---|---|
| profileId* | query | string |
curl "https://api-staging.adpilotpro.com/keyword-harvesting/promoted-performance?profileId=<profileId>" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN"/keyword-harvesting/audit-logHarvesting actions on a profile: promotions, dismissals and runs, newest first.
Parameters
| Name | In | Type |
|---|---|---|
| profileId* | query | string |
| from | query | string |
| to | query | string |
curl "https://api-staging.adpilotpro.com/keyword-harvesting/audit-log?profileId=<profileId>" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN"/keyword-harvesting/opportunities/{opportunityId}/promotePromote one opportunity from list_harvesting_opportunities to a keyword. Creates the keyword on Amazon straight away; pass targetCampaignId, targetAdGroupId, matchType and customBid to choose where and at what bid.
Parameters
| Name | In | Type |
|---|---|---|
| opportunityId* | path | string |
JSON body
| Name | In | Type |
|---|---|---|
| campaignId | body | string |
| adGroupId | body | string |
| matchType | body | "EXACT" | "PRODUCT_TARGET" |
| bid | body | number |
| targetCampaignId | body | string |
| targetAdGroupId | body | string |
| customBid | body | number |
curl -X POST "https://api-staging.adpilotpro.com/keyword-harvesting/opportunities/<opportunityId>/promote" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN" \ -H "Content-Type: application/json" \ -d '{ … }'/keyword-harvesting/opportunities/bulk-promotePromote several opportunities to keywords at once. Creates the keywords on Amazon straight away.
JSON body
| Name | In | Type |
|---|---|---|
| opportunityIds | body | string[] |
| promotions | body | object[] |
| targetCampaignId | body | string |
| targetAdGroupId | body | string |
| customBid | body | number |
| useRealtime | body | boolean |
curl -X POST "https://api-staging.adpilotpro.com/keyword-harvesting/opportunities/bulk-promote" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN" \ -H "Content-Type: application/json" \ -d '{ … }'/keyword-harvesting/opportunities/{opportunityId}/dismissDismiss one harvesting opportunity so it stops being suggested. Changes nothing on Amazon.
Parameters
| Name | In | Type |
|---|---|---|
| opportunityId* | path | string |
curl -X POST "https://api-staging.adpilotpro.com/keyword-harvesting/opportunities/<opportunityId>/dismiss" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN"/keyword-harvesting/opportunities/bulk-dismissDismiss up to 100 harvesting opportunities. Changes nothing on Amazon.
JSON body
| Name | In | Type |
|---|---|---|
| opportunityIds* | body | string[] |
| reason | body | string |
curl -X POST "https://api-staging.adpilotpro.com/keyword-harvesting/opportunities/bulk-dismiss" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN" \ -H "Content-Type: application/json" \ -d '{ … }'/keyword-harvesting/run-nowQueue a harvesting run on a profile now instead of waiting for the schedule.
JSON body
| Name | In | Type |
|---|---|---|
| profileId* | body | string |
curl -X POST "https://api-staging.adpilotpro.com/keyword-harvesting/run-now" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN" \ -H "Content-Type: application/json" \ -d '{ … }'/keyword-harvesting/harvest-campaignLook for new opportunities in one MANUAL campaign with broad or phrase keywords. Finds opportunities only; promoting them is a separate step.
JSON body
| Name | In | Type |
|---|---|---|
| campaignId* | body | string |
| profileId* | body | string |
| thresholds | body | object |
curl -X POST "https://api-staging.adpilotpro.com/keyword-harvesting/harvest-campaign" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN" \ -H "Content-Type: application/json" \ -d '{ … }'Dayparting rules
/dayparting-rules/Dayparting rules on a profile.
Parameters
| Name | In | Type |
|---|---|---|
| profileId | query | string |
| region | query | "NA" | "EU" | "FE" |
| campaignId | query | string |
| page | query | integer |
| limit | query | integer |
curl "https://api-staging.adpilotpro.com/dayparting-rules/" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN"/dayparting-rules/{ruleId}One dayparting rule.
Parameters
| Name | In | Type |
|---|---|---|
| ruleId* | path | string |
curl "https://api-staging.adpilotpro.com/dayparting-rules/<ruleId>" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN"/dayparting-rules/Create a dayparting rule that pauses campaigns or adjusts bids by hour. Runs on its own once enabled: check the list tool first and tune an existing rule rather than adding one that overlaps it. A campaign can be in only one dayparting rule, so for different bid changes at different times (e.g. -50% overnight, +15% at peak) use one Adjust-bid Schedule rule and give each manualWindows entry its own direction and deltaPct (windows without them use the rule's); overlapping windows must make the same change.
curl -X POST "https://api-staging.adpilotpro.com/dayparting-rules/" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN" \ -H "Content-Type: application/json" \ -d '{ … }'/dayparting-rules/{ruleId}Update, pause or resume a dayparting rule. On an Adjust-bid Schedule rule each manualWindows entry may carry its own direction and deltaPct; send the full window list.
Parameters
| Name | In | Type |
|---|---|---|
| ruleId* | path | string |
JSON body
| Name | In | Type |
|---|---|---|
| name | body | string |
| campaignIds | body | string[] |
| redZoneAcos | body | number |
| minSpend | body | number | null |
| minClicks | body | integer | null |
| lookbackPeriod | body | integer |
| ruleState | body | "ENABLED" | "PAUSED" | "ARCHIVED" |
| bidDecreasePct | body | number | null |
| bidIncreasePct | body | number | null |
| minDataDays | body | integer |
| bidFloor | body | number | null |
| bidCeiling | body | number | null |
| cvrThreshold | body | number | null |
| cvrDirection | body | "BELOW" | "ABOVE" | null |
| manualWindows | body | object[] |
| conditions | body | object[] |
| evaluationStrategy | body | "ALL" | "ANY" |
curl -X PATCH "https://api-staging.adpilotpro.com/dayparting-rules/<ruleId>" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN" \ -H "Content-Type: application/json" \ -d '{ … }'/dayparting-rules/{ruleId}Delete a dayparting rule.
Parameters
| Name | In | Type |
|---|---|---|
| ruleId* | path | string |
curl -X DELETE "https://api-staging.adpilotpro.com/dayparting-rules/<ruleId>" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN"/dayparting-rules/{ruleId}/campaignsCampaigns attached to one dayparting rule.
Parameters
| Name | In | Type |
|---|---|---|
| ruleId* | path | string |
| profileId* | query | string |
| region* | query | "NA" | "EU" | "FE" |
curl "https://api-staging.adpilotpro.com/dayparting-rules/<ruleId>/campaigns?profileId=<profileId>®ion=<region>" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN"/dayparting-rules/{ruleId}/execution-logsRun history of one dayparting rule.
Parameters
| Name | In | Type |
|---|---|---|
| ruleId* | path | string |
| limit | query | integer |
| offset | query | integer |
| eventType | query | "PAUSE" | "RESUME" | "BID_INCREASE" | "BID_DECREASE" | "BID_RESTORE" | "BID_APPLY_FAILED" | "SKIPPED_INSUFFICIENT_DATA" | "SKIPPED_CONFLICTING_RULE" | "SKIPPED_UNSUPPORTED_CAMPAIGN_TYPE" |
curl "https://api-staging.adpilotpro.com/dayparting-rules/<ruleId>/execution-logs" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN"/dayparting-rules/audit-logPauses, resumes and bid changes made by dayparting rules on a profile.
Parameters
| Name | In | Type |
|---|---|---|
| profileId* | query | string |
| startDate | query | string |
| endDate | query | string |
| limit | query | integer |
| offset | query | integer |
| action | query | string |
| ruleId | query | string |
| ruleName | query | string |
curl "https://api-staging.adpilotpro.com/dayparting-rules/audit-log?profileId=<profileId>" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN"/dayparting-rules/campaigns-data-availabilityHow many days of hourly data each campaign has, so you know which campaigns a rule can act on.
Parameters
| Name | In | Type |
|---|---|---|
| profileId* | query | string |
curl "https://api-staging.adpilotpro.com/dayparting-rules/campaigns-data-availability?profileId=<profileId>" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN"/dayparting-rules/preview-windowsPreview the hours a draft Performance dayparting rule would act in. Changes nothing.
JSON body
| Name | In | Type |
|---|---|---|
| profileId* | body | string |
| region | body | "NA" | "EU" | "FE" |
| triggerType | body | "PERFORMANCE" | "SCHEDULE" |
| campaignIds* | body | string[] |
| conditions* | body | object[] |
| evaluationStrategy | body | "ALL" | "ANY" |
| targetAcosSource | body | "rule" |
| targetAcos | body | number |
| bufferPercentage | body | number |
| lookbackPeriod | body | integer |
| actionMode | body | "PAUSE_RESUME" | "BID_ADJUST" |
| bidAdjustDirection | body | "INCREASE" | "DECREASE" |
| bidDeltaPct | body | number |
| minDataDays | body | integer |
curl -X POST "https://api-staging.adpilotpro.com/dayparting-rules/preview-windows" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN" \ -H "Content-Type: application/json" \ -d '{ … }'/dayparting-rules/{ruleId}/associateAttach campaigns to a dayparting rule.
Parameters
| Name | In | Type |
|---|---|---|
| ruleId* | path | string |
JSON body
| Name | In | Type |
|---|---|---|
| campaignIds* | body | string[] |
| profileId* | body | string |
| region* | body | "NA" | "EU" | "FE" |
curl -X POST "https://api-staging.adpilotpro.com/dayparting-rules/<ruleId>/associate" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN" \ -H "Content-Type: application/json" \ -d '{ … }'/dayparting-rules/{ruleId}/disassociateDetach campaigns from a dayparting rule. On an Adjust bid rule their bids go back to normal on Amazon.
Parameters
| Name | In | Type |
|---|---|---|
| ruleId* | path | string |
JSON body
| Name | In | Type |
|---|---|---|
| campaignIds* | body | string[] |
| profileId* | body | string |
| region* | body | "NA" | "EU" | "FE" |
curl -X POST "https://api-staging.adpilotpro.com/dayparting-rules/<ruleId>/disassociate" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN" \ -H "Content-Type: application/json" \ -d '{ … }'/dayparting-rules/{ruleId}/executeRun a dayparting rule now. Pauses, resumes or adjusts bids on Amazon straight away.
Parameters
| Name | In | Type |
|---|---|---|
| ruleId* | path | string |
curl -X POST "https://api-staging.adpilotpro.com/dayparting-rules/<ruleId>/execute" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN"/dayparting-rules/{ruleId}/revert-allPut every bid an Adjust bid dayparting rule has changed back to normal on Amazon.
Parameters
| Name | In | Type |
|---|---|---|
| ruleId* | path | string |
curl -X POST "https://api-staging.adpilotpro.com/dayparting-rules/<ruleId>/revert-all" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN"/dayparting-rules/{ruleId}/campaigns/{campaignId}/pausePause one campaign on a dayparting rule now. Pauses it on Amazon straight away.
Parameters
| Name | In | Type |
|---|---|---|
| ruleId* | path | string |
| campaignId* | path | string |
JSON body
| Name | In | Type |
|---|---|---|
| dayOfWeek* | body | "SUNDAY" | "MONDAY" | "TUESDAY" | "WEDNESDAY" | "THURSDAY" | "FRIDAY" | "SATURDAY" |
| startHour* | body | integer |
| endHour* | body | integer |
| avgAcos* | body | number |
| reason | body | string |
curl -X POST "https://api-staging.adpilotpro.com/dayparting-rules/<ruleId>/campaigns/<campaignId>/pause" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN" \ -H "Content-Type: application/json" \ -d '{ … }'/dayparting-rules/{ruleId}/campaigns/{campaignId}/resumeResume one campaign a dayparting rule paused. Enables it on Amazon straight away.
Parameters
| Name | In | Type |
|---|---|---|
| ruleId* | path | string |
| campaignId* | path | string |
curl -X POST "https://api-staging.adpilotpro.com/dayparting-rules/<ruleId>/campaigns/<campaignId>/resume" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN"Dayparting analysis
/dayparting/weekly-hourly-metricsOne week of spend, sales and ACoS by weekday and hour, as on the dayparting heatmap. weekStart is a YYYY-MM-DD date.
Parameters
| Name | In | Type |
|---|---|---|
| profileId* | query | integer |
| weekStart* | query | string |
curl "https://api-staging.adpilotpro.com/dayparting/weekly-hourly-metrics?profileId=<profileId>&weekStart=<weekStart>" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN"/dayparting/red-zone-savingsEstimated weekly spend in hours whose ACoS is above the threshold you pass. Narrow it with campaignIds and fromDate/toDate.
Parameters
| Name | In | Type |
|---|---|---|
| profileId* | query | integer |
| campaignIds | query | string |
| threshold* | query | number |
| redZoneMultiplier | query | number |
| fromDate | query | string |
| toDate | query | string |
curl "https://api-staging.adpilotpro.com/dayparting/red-zone-savings?profileId=<profileId>&threshold=<threshold>" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN"/dayparting/cumulative-savingsSpend saved by dayparting rules on a profile so far.
Parameters
| Name | In | Type |
|---|---|---|
| profileId* | query | integer |
| campaignIds | query | string |
| fromDate | query | string |
| toDate | query | string |
curl "https://api-staging.adpilotpro.com/dayparting/cumulative-savings?profileId=<profileId>" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN"/dayparting/account-execution-summaryWhat dayparting rules did each day between startDate and endDate.
Parameters
| Name | In | Type |
|---|---|---|
| profileId* | query | string |
| startDate* | query | string |
| endDate* | query | string |
curl "https://api-staging.adpilotpro.com/dayparting/account-execution-summary?profileId=<profileId>&startDate=<startDate>&endDate=<endDate>" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN"/dayparting/hourly-metrics-availabilityWhich dates have hourly data on a profile and where the gaps are.
Parameters
| Name | In | Type |
|---|---|---|
| profileId* | query | integer |
curl "https://api-staging.adpilotpro.com/dayparting/hourly-metrics-availability?profileId=<profileId>" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN"/dayparting/report-email-ingestionsWhether the seller has set up hourly data, which dayparting needs: the hourly reports AdPilotPro has received, newest first. If none arrived in the last few days, walk them through the one-time setup: in Amazon Ads → Measurement & reporting → Reporting, create a report with the Campaign template, Sponsored Products, columns Date, Hour, Campaign ID, Campaign name, Impressions, Clicks, Total cost, Purchases, Sales, a Last 7 days date range, scheduled Daily, and send it to their private report address, which they copy from AdPilotPro under Dayparting → Automated Report Ingestion. The address is never returned here.
Parameters
| Name | In | Type |
|---|---|---|
| profileId* | query | string |
| limit | query | integer |
curl "https://api-staging.adpilotpro.com/dayparting/report-email-ingestions?profileId=<profileId>" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN"Direct edits
/direct-edits/keywordsChange the bid and/or state (ENABLED or PAUSED) of up to 50 keywords on one profile. Changes them on Amazon straight away and reports each keyword that failed. A bid rule on the same keyword may change the bid again on its next run. The new bid also becomes dayparting's base bid; inside an active Adjust-bid window it goes to Amazon without that window's raise until the next window starts. For a problem that will happen again, propose a rule instead of, or as well as, this edit.
JSON body
| Name | In | Type |
|---|---|---|
| profileId* | body | string |
| changes* | body | object[] |
curl -X POST "https://api-staging.adpilotpro.com/direct-edits/keywords" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN" \ -H "Content-Type: application/json" \ -d '{ … }'/direct-edits/product-targetsChange the bid and/or state of up to 50 product (ASIN or category) targets on one profile. Changes them on Amazon straight away. The new bid also becomes dayparting's base bid; inside an active Adjust-bid window it goes to Amazon without that window's raise until the next window starts. For a problem that will happen again, propose a rule instead of, or as well as, this edit.
JSON body
| Name | In | Type |
|---|---|---|
| profileId* | body | string |
| changes* | body | object[] |
curl -X POST "https://api-staging.adpilotpro.com/direct-edits/product-targets" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN" \ -H "Content-Type: application/json" \ -d '{ … }'/direct-edits/campaigns/{campaignId}Set a campaign's daily budget and/or state (ENABLED or PAUSED). Changes it on Amazon straight away. Use it to apply a suggestion from list_budget_recommendations; a budget rule may change the budget again on its schedule. For a problem that will happen again, propose a rule instead of, or as well as, this edit.
Parameters
| Name | In | Type |
|---|---|---|
| campaignId* | path | string |
JSON body
| Name | In | Type |
|---|---|---|
| profileId* | body | string |
| dailyBudget | body | number |
| state | body | "ENABLED" | "PAUSED" |
curl -X POST "https://api-staging.adpilotpro.com/direct-edits/campaigns/<campaignId>" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN" \ -H "Content-Type: application/json" \ -d '{ … }'/direct-edits/ad-groups/{adGroupId}Set an ad group's default bid and/or state. Changes it on Amazon straight away. For a problem that will happen again, propose a rule instead of, or as well as, this edit.
Parameters
| Name | In | Type |
|---|---|---|
| adGroupId* | path | string |
JSON body
| Name | In | Type |
|---|---|---|
| profileId* | body | string |
| defaultBid | body | number |
| state | body | "ENABLED" | "PAUSED" |
curl -X POST "https://api-staging.adpilotpro.com/direct-edits/ad-groups/<adGroupId>" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN" \ -H "Content-Type: application/json" \ -d '{ … }'/direct-edits/negative-keywordsAdd up to 50 negative keywords (EXACT or PHRASE) to a campaign, or to one of its ad groups with adGroupId. Adds them on Amazon straight away; ones Amazon already holds are skipped. For a problem that will happen again, propose a rule instead of, or as well as, this edit.
JSON body
| Name | In | Type |
|---|---|---|
| profileId* | body | string |
| campaignId* | body | string |
| adGroupId | body | string |
| keywords* | body | object[] |
curl -X POST "https://api-staging.adpilotpro.com/direct-edits/negative-keywords" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN" \ -H "Content-Type: application/json" \ -d '{ … }'Placements
/placements/recommendationsPending placement recommendations: per campaign, the top-of-search, product-page and rest-of-search adjustments AdPilotPro suggests and why.
Parameters
| Name | In | Type |
|---|---|---|
| profileId* | query | string |
curl "https://api-staging.adpilotpro.com/placements/recommendations?profileId=<profileId>" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN"/placements/recommendations/countHow many placement recommendations are waiting.
Parameters
| Name | In | Type |
|---|---|---|
| profileId* | query | string |
curl "https://api-staging.adpilotpro.com/placements/recommendations/count?profileId=<profileId>" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN"/placements/resultsSales and spend before and after each placement change, with an outcome per change and changes still collecting data.
Parameters
| Name | In | Type |
|---|---|---|
| profileId* | query | string |
curl "https://api-staging.adpilotpro.com/placements/results?profileId=<profileId>" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN"/placements/campaigns/{campaignId}/change-previewBefore a placement change: how many keywords, targets and ad groups a keywordChangePercent would rebid, and how many days bid rules wait afterwards. Changes nothing.
Parameters
| Name | In | Type |
|---|---|---|
| campaignId* | path | string |
| profileId* | query | string |
curl "https://api-staging.adpilotpro.com/placements/campaigns/<campaignId>/change-preview?profileId=<profileId>" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN"/placements/recommendations/{id}/approveApprove a placement recommendation. Sets the placement adjustments on Amazon straight away; pass percents to approve with different values.
Parameters
| Name | In | Type |
|---|---|---|
| id* | path | string |
JSON body
| Name | In | Type |
|---|---|---|
| profileId* | body | string |
| percents | body | object |
| keywordChangePercent | body | integer |
| bidRuleWaitDays | body | integer |
curl -X POST "https://api-staging.adpilotpro.com/placements/recommendations/<id>/approve" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN" \ -H "Content-Type: application/json" \ -d '{ … }'/placements/recommendations/{id}/dismissDismiss a placement recommendation. Changes nothing on Amazon.
Parameters
| Name | In | Type |
|---|---|---|
| id* | path | string |
JSON body
| Name | In | Type |
|---|---|---|
| profileId* | body | string |
curl -X POST "https://api-staging.adpilotpro.com/placements/recommendations/<id>/dismiss" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN" \ -H "Content-Type: application/json" \ -d '{ … }'/placements/campaigns/{campaignId}/changeSet a campaign's placement adjustments without a recommendation, optionally moving keyword bids by keywordChangePercent. Changes them on Amazon straight away. expectedCurrentPercents must be the campaign's current adjustments, so a change made from a stale view is refused.
Parameters
| Name | In | Type |
|---|---|---|
| campaignId* | path | string |
JSON body
| Name | In | Type |
|---|---|---|
| profileId* | body | string |
| percents* | body | object |
| keywordChangePercent* | body | integer |
| expectedCurrentPercents* | body | object |
| bidRuleWaitDays | body | integer |
curl -X POST "https://api-staging.adpilotpro.com/placements/campaigns/<campaignId>/change" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN" \ -H "Content-Type: application/json" \ -d '{ … }'Campaign Architect
/campaign-architect-v4/runsCampaign Architect runs on a profile, newest first.
Parameters
| Name | In | Type |
|---|---|---|
| profileId* | query | string |
| limit | query | integer |
| offset | query | integer |
curl "https://api-staging.adpilotpro.com/campaign-architect-v4/runs?profileId=<profileId>" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN"/campaign-architect-v4/runs/{runId}One Campaign Architect run: its status, the keyword review and the campaign plan.
Parameters
| Name | In | Type |
|---|---|---|
| runId* | path | string |
| profileId* | query | string |
curl "https://api-staging.adpilotpro.com/campaign-architect-v4/runs/<runId>?profileId=<profileId>" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN"/campaign-architect-v4/runs/{runId}/executionProgress of an approved plan being created on Amazon, campaign by campaign.
Parameters
| Name | In | Type |
|---|---|---|
| runId* | path | string |
| profileId* | query | string |
curl "https://api-staging.adpilotpro.com/campaign-architect-v4/runs/<runId>/execution?profileId=<profileId>" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN"/campaign-architect-v4/runsStart a Campaign Architect run for a product. It researches keywords and drafts a plan; nothing is created on Amazon until launch_campaign_architect_plan.
JSON body
| Name | In | Type |
|---|---|---|
| profileId* | body | string |
| mode* | body | "new_product" | "restructure" |
| goal* | body | "launch" | "grow" | "profit" |
| dailyBudget* | body | number |
| breakEvenAcos* | body | number |
| price* | body | number |
| countryCode* | body | string |
| product* | body | object |
| competitorAsins* | body | string[] |
| productTargets* | body | object[] |
| brandTerms* | body | string[] |
| sellerNote | body | string |
| autoSuggestedLow | body | object |
| productTargetingSuggestedLow | body | number |
curl -X POST "https://api-staging.adpilotpro.com/campaign-architect-v4/runs" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN" \ -H "Content-Type: application/json" \ -d '{ … }'/campaign-architect-v4/runs/{runId}/continueFinish the keyword review (include or exclude keywords) so the run builds its campaign plan.
Parameters
| Name | In | Type |
|---|---|---|
| runId* | path | string |
| profileId* | query | string |
JSON body
| Name | In | Type |
|---|---|---|
| include* | body | string[] |
| exclude* | body | string[] |
curl -X POST "https://api-staging.adpilotpro.com/campaign-architect-v4/runs/<runId>/continue?profileId=<profileId>" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN" \ -H "Content-Type: application/json" \ -d '{ … }'/campaign-architect-v4/runs/{runId}/planSave edits to a draft campaign plan. Changes nothing on Amazon.
Parameters
| Name | In | Type |
|---|---|---|
| runId* | path | string |
| profileId* | query | string |
JSON body
| Name | In | Type |
|---|---|---|
| campaigns* | body | object[] |
curl -X PUT "https://api-staging.adpilotpro.com/campaign-architect-v4/runs/<runId>/plan?profileId=<profileId>" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN" \ -H "Content-Type: application/json" \ -d '{ … }'/campaign-architect-v4/runs/{runId}/executeApprove a plan and create its campaigns on Amazon. Set startPaused=true to create them paused.
Parameters
| Name | In | Type |
|---|---|---|
| runId* | path | string |
| profileId* | query | string |
JSON body
| Name | In | Type |
|---|---|---|
| nameLabel* | body | string |
| startPaused | body | boolean |
curl -X POST "https://api-staging.adpilotpro.com/campaign-architect-v4/runs/<runId>/execute?profileId=<profileId>" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN" \ -H "Content-Type: application/json" \ -d '{ … }'/campaign-architect-v4/runs/{runId}/execution/undoPause every campaign a Campaign Architect run created.
Parameters
| Name | In | Type |
|---|---|---|
| runId* | path | string |
| profileId* | query | string |
curl -X POST "https://api-staging.adpilotpro.com/campaign-architect-v4/runs/<runId>/execution/undo?profileId=<profileId>" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN"Notifications
/notificationsAdPilotPro notifications (rule runs, alerts, recommendations). Filter with unreadOnly, types and profileIds.
Parameters
| Name | In | Type |
|---|---|---|
| limit | query | number |
| offset | query | number |
| unreadOnly | query | string |
| read | query | string |
| types | query | string |
| profileIds | query | string |
| sort | query | "newest" | "oldest" |
curl "https://api-staging.adpilotpro.com/notifications" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN"/notifications/countNumber of unread notifications.
curl "https://api-staging.adpilotpro.com/notifications/count" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN"/notificationsMark one notification (notificationId) or all of them (markAll=true) as read.
JSON body
| Name | In | Type |
|---|---|---|
| notificationId | body | string |
| markAll | body | boolean |
| types | body | "ANALYSIS_COMPLETE" | "ANALYSIS_FAILED" | "AUTO_APPLY_COMPLETE" | "CAMPAIGN_ALERT" | "BUDGET_ALERT" | "SYSTEM_ANNOUNCEMENT" | "BID_RULE_EXECUTED" | "BID_RULE_FAILED" | "BID_RULE_SKIPPED" | "BUDGET_RULE_EXECUTED" | "BUDGET_RULE_FAILED" | "BUDGET_RULE_SKIPPED" | "DAYPARTING_PAUSE_SUCCESS" | "DAYPARTING_RESUME_SUCCESS" | "DAYPARTING_EXECUTION_FAILED" | "DAYPARTING_WEEKLY_REMINDER" | "DAYPARTING_DATA_AVAILABLE" | "SPEND_THRESHOLD_75" | "SPEND_THRESHOLD_90" | "SPEND_THRESHOLD_100" | "OPPORTUNITY_DETECTED" | "ARCHITECT_DAILY_SUMMARY" | "AMAZON_CONSENT_EXPIRING" | "AMAZON_RECONNECT_REQUIRED" | "ARCHITECT_RETRIGGER_REVIEW"[] |
| profileIds | body | string[] |
curl -X PUT "https://api-staging.adpilotpro.com/notifications" \ -H "Authorization: Bearer $ADPILOTPRO_TOKEN" \ -H "Content-Type: application/json" \ -d '{ … }'