Create campaigns
POST {{baseUrl}}/ad_accounts/:ad_account_id/campaigns
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 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"=>{"objective_type"=>"WEB_CONVERSION", "status"=>{"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"=>"AWARENESS", "status"=>{"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"}]}]}