Update campaigns
PATCH {{baseUrl}}/ad_accounts/:ad_account_id/campaigns
This endpoint is currently in beta and not available to all apps. Learn more.
Update multiple ad campaigns based on campaignids.
Note:
- The values for 'lifetimespendcap' and 'dailyspend_cap' are microcurrency amounts based on the currency field set in the advertiser's profile. (e.g. USD)
Microcurrency is used to track very small transactions, based on the currency field set in the advertiser's profile. A microcurrency unit is one one-millionth of the standard unit of currency selected in the advertiser's profile (e.g. a microdollar is $0.000001.)
Request Body
{"0"=>{"id"=>"549755885175", "ad_account_id"=>"549755885175", "name"=>"ACME Tools", "status"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "lifetime_spend_cap"=>1432744744, "daily_spend_cap"=>1432744744, "order_line_id"=>"549755885175", "tracking_urls"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "start_time"=>1580865126, "end_time"=>1644023526, "is_campaign_budget_optimization"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "is_flexible_daily_budgets"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "default_ad_group_budget_in_micro_currency"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "is_automated_campaign"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "objective_type"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}, "1"=>{"id"=>"549755885175", "ad_account_id"=>"549755885175", "name"=>"ACME Tools", "status"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "lifetime_spend_cap"=>1432744744, "daily_spend_cap"=>1432744744, "order_line_id"=>"549755885175", "tracking_urls"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "start_time"=>1580865126, "end_time"=>1644023526, "is_campaign_budget_optimization"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "is_flexible_daily_budgets"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "default_ad_group_budget_in_micro_currency"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "is_automated_campaign"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "objective_type"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"items":[{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}]}