Create campaigns
POST {{baseUrl}}/ad_accounts/:ad_account_id/campaigns
This endpoint is currently in beta and not available to all apps. Learn more.
Create multiple new campaigns. Every campaign has its own campaignid and houses one or more ad groups, which contain one or more ads. For more, see Set up your campaign.
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"=>{"objective_type"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "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"=>{"objective_type"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "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":[{"data":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"exceptions":[{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}]},{"data":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"exceptions":[{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}]}]}