Update campaigns
PATCH {{baseUrl}}/ad_accounts/:ad_account_id/campaigns
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 set in the advertiser’s profile.
A microcurrency unit is 10-6 of the standard unit of currency selected in the advertiser’s profile.
Equivalency equations, using dollars as an example currency:
- $1 = 1,000,000 microdollars
- 1 microdollar = $0.000001
To convert between currency and microcurrency, using dollars as an example currency:
- To convert dollars to microdollars, mutiply dollars by 1,000,000
- To convert microdollars to dollars, divide microdollars by 1,000,000
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>"}}, "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>"}}}
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"}]}