Create ad groups

POST {{baseUrl}}/ad_accounts/:ad_account_id/ad_groups

This endpoint is currently in beta and not available to all apps. Learn more.

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 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.) - Ad groups belong to ad campaigns. Some types of campaigns (e.g. budget optimization) have limits on the number of ad groups they can hold. If you exceed those limits, you will get an error message.

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, "bid_strategy_type"=>"AUTOMATIC_BID", "budget_type"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "start_time"=>5686848000, "end_time"=>5705424000, "targeting_spec"=>{"nostrud72"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "ex_a6"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "elit1"=>{"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>"}}}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;items&quot;:[{&quot;data&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;exceptions&quot;:[{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}]},{&quot;data&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;exceptions&quot;:[{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}]}]}