Skip to content

Edit a campaign

PATCH /api/marketing/campaigns/{campaignId}

Only the fields present are sent to Meta; a null does not clear the previous value. daily_budget and lifetime_budget are still mutually exclusive. Requires the marketing:manage scope.

FieldTypeDescription
ad_account_idstringrequiredAd account that owns the campaign. Example: "act_123".
namestringoptional—
statusACTIVE · PAUSED · DELETED · ARCHIVEDoptional—
special_ad_categoriesNONE · EMPLOYMENT · HOUSING · CREDIT · ISSUES_ELECTIONS_POLITICS · ONLINE_GAMBLING_AND_GAMING · FINANCIAL_PRODUCTS_SERVICES[]optional—
daily_budgetnumberoptionalDaily budget in cents.
lifetime_budgetnumberoptionalLifetime budget in cents.
bid_strategyLOWEST_COST_WITHOUT_CAP · LOWEST_COST_WITH_BID_CAP · COST_CAP · LOWEST_COST_WITH_MIN_ROASoptional—
spend_capnumberoptionalSpend cap of the campaign, in cents.
start_timestringoptional—
stop_timestringoptional—
StatusDescriptionSchema
200—CampaignDto
Terminal window
curl -X PATCH https://api.neike.dev/api/marketing/campaigns/{campaignId} \
-H "x-neike-api-key: whk_live_…" \
-H "Content-Type: application/json" \
-d '{
"ad_account_id": "act_123"
}'
FieldTypeDescription
idstringrequiredExample: "120210000000000000".
namestringrequiredExample: "Tráfico · septiembre".
objectiveAPP_INSTALLS · BRAND_AWARENESS · CONVERSIONS · EVENT_RESPONSES · LEAD_GENERATION · LINK_CLICKS · LOCAL_AWARENESS · MESSAGES · OFFER_CLAIMS · OUTCOME_APP_PROMOTION · OUTCOME_AWARENESS · OUTCOME_ENGAGEMENT · OUTCOME_LEADS · OUTCOME_SALES · OUTCOME_TRAFFIC · PAGE_LIKES · POST_ENGAGEMENT · PRODUCT_CATALOG_SALES · REACH · STORE_VISITS · VIDEO_VIEWSoptional—
statusACTIVE · PAUSED · DELETED · ARCHIVEDoptional—
effective_statusstringoptionalEffective status computed by Meta (includes review statuses and those inherited from the account). It is read-only and has more values than status. Example: "PAUSED".
special_ad_categoriesNONE · EMPLOYMENT · HOUSING · CREDIT · ISSUES_ELECTIONS_POLITICS · ONLINE_GAMBLING_AND_GAMING · FINANCIAL_PRODUCTS_SERVICES[]optional—
buying_typeAUCTION · RESERVEDoptional—
daily_budgetstringoptionalDaily budget in cents. Example: "100000".
lifetime_budgetstringoptionalLifetime budget in cents. Example: "500000".
spend_capstringoptionalSpend cap in cents. Example: "1000000".
bid_strategyLOWEST_COST_WITHOUT_CAP · LOWEST_COST_WITH_BID_CAP · COST_CAP · LOWEST_COST_WITH_MIN_ROASoptional—
start_timestringoptionalExample: "2026-09-01T00:00:00-0300".
stop_timestringoptionalExample: "2026-09-30T23:59:59-0300".
created_timestringoptional—
updated_timestringoptional—