Create ad groups
POST {{baseUrl}}/ad_accounts/:ad_account_id/ad_groups
Create multiple new ad groups. All ads in a given ad group will have the same budget, bid, run dates, targeting, and placement (search, browse, other). For more information, click here.
Note: - 'bidinmicrocurrency' and 'budgetinmicrocurrency' should be expressed in microcurrency amounts based on the currency field set in the advertiser's profile.
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"=>{"billable_event"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "campaign_id"=>"626736533506", "name"=>"Ad Group For Pin: 687195905986", "status"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "budget_in_micro_currency"=>5000000, "bid_in_micro_currency"=>5000000, "optimization_goal_metadata"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "budget_type"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "start_time"=>5686848000, "end_time"=>5705424000, "targeting_spec"=>{"enim7"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "non__"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}, "lifetime_frequency_cap"=>100, "tracking_urls"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "auto_targeting_enabled"=>true, "placement_group"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "pacing_delivery_type"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "bid_strategy_type"=>"MAX_BID"}}
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"}]}]}