Ad Account Adsets
Updated: Apr 20, 2026
Copy for LLM
Due to the iOS 14.5 launch, changes have been made to this endpoint.
- Mobile App Custom Audiences for inclusion targeting is no longer supported for the
POST /{ad-account-id}/adsetsendpoint for iOS 14.5 SKAdNetwork campaigns. - New iOS 14.5 app install campaigns will no longer be able to use app connections targeting.
Reading
The adsets of this ad account
Example
GET /v25.0/act_<AD_ACCOUNT_ID>/adsets?fields=name%2Cid%2Cstatus HTTP/1.1 Host: graph.facebook.com
Try it in Graph API Explorer
If you want to learn how to use the Graph API, read our Using Graph API guide
Parameters
| Parameter | Description |
|---|---|
date_presetenum {TODAY, YESTERDAY, THIS_MONTH, LAST_MONTH, THIS_QUARTER, MAXIMUM, DATA_MAXIMUM, LAST_3D, LAST_7D, LAST_14D, LAST_28D, LAST_30D, LAST_90D, LAST_WEEK_MON_SUN, LAST_WEEK_SUN_SAT, LAST_QUARTER, LAST_YEAR, THIS_WEEK_MON_TODAY, THIS_WEEK_SUN_TODAY, THIS_YEAR} |
Predefine date range used to aggregate insights metrics
|
effective_statuslist<enum{ACTIVE, PAUSED, DELETED, PENDING_REVIEW, DISAPPROVED, PREAPPROVED, PENDING_BILLING_INFO, CAMPAIGN_PAUSED, ARCHIVED, ADSET_PAUSED, IN_PROCESS, WITH_ISSUES}> |
Effective status of adset
|
is_completedboolean |
Filter adset by completed status
|
time_range{‘since’:YYYY-MM-DD,’until’:YYYY-MM-DD} |
Date range used to aggregate insights metrics
since datetime
A date in the format of "YYYY-MM-DD", which means from the beginning midnight of that day.
until datetime
A date in the format of "YYYY-MM-DD", which means to the beginning midnight of the following day.
Show child parameters |
updated_sinceinteger |
Time since the Adset has been updated.
|
Fields
Reading from this edge will return a JSON formatted result:
{
"data": [],
"paging": {},
"summary": {}
}
data
A list of AdSet nodes.
paging
For more details about pagination, see the Graph API guide.
summary
Aggregated information about the edge, such as counts. Specify the fields to fetch in the summary param (like summary=__type__).
| Field | Description |
|---|---|
insightsEdge<AdsInsights> |
Analytics summary for all objects. Use nested parameters with this field.
insights.time_range({'until':'2018-01-01', 'since':'2017-12-12'}).time_increment(1) |
total_countunsigned int32 |
Total number of objects
default |
Error Codes
| Error Code | Description |
|---|---|
200 | Permissions error |
613 | Calls to this api have exceeded the rate limit. |
100 | Invalid parameter |
190 | Invalid OAuth 2.0 Access Token |
80004 | There have been too many calls to this ad-account. Wait a bit and try again. For more info, please refer to /docs/graph-api/overview/rate-limiting#ads-management. |
368 | The action attempted has been deemed abusive or is otherwise disallowed |
3018 | The start date of the time range cannot be beyond 37 months from the current date |
2500 | Error parsing graph query |
Creating
Mobile App Install CPA Billing will no longer be supported. The billing event cannot be App Install if the Optimization goal is App Install.
/act_{ad_account_id}/adsets
You can make a POST request to adsets edge from the following paths:
When posting to this edge, an AdSet will be created.
Example
POST /v25.0/act_<AD_ACCOUNT_ID>/adsets HTTP/1.1 Host: graph.facebook.com name=My+First+Adset&lifetime_budget=20000&start_time=2026-05-12T10%3A45%3A01-0700&end_time=2026-05-22T10%3A45%3A01-0700&campaign_id=%3CAD_CAMPAIGN_ID%3E&bid_amount=100&billing_event=LINK_CLICKS&optimization_goal=LINK_CLICKS&targeting=%7B%22facebook_positions%22%3A%5B%22feed%22%5D%2C%22geo_locations%22%3A%7B%22countries%22%3A%5B%22US%22%5D%7D%2C%22publisher_platforms%22%3A%5B%22facebook%22%2C%22audience_network%22%5D%7D&status=PAUSED
Try it in Graph API Explorer
If you want to learn how to use the Graph API, read our Using Graph API guide
Parameters
| Parameter | Description |
|---|---|
adlabelslist<Object> |
Specifies list of labels to be associated with this object. This field is optional
|
adset_schedulelist<Object> |
Ad set schedule, representing a delivery schedule for a single day
start_minute int64
A 0 based minute of the day representing when the schedule starts
required end_minute int64
A 0 based minute of the day representing when the schedule ends
required days list<int64>
Array of ints representing which days the schedule is active. Valid values are 0-6 with 0 representing Sunday, 1 representing Monday, ... and 6 representing Saturday.
required timezone_type enum {USER, ADVERTISER}Default value: USERShow child parameters |
attribution_speclist<JSON object> |
Conversion attribution spec used for attributing conversions for optimization. Supported window lengths differ by optimization goal and campaign objective.
event_type enum {CLICK_THROUGH, VIEW_THROUGH, ENGAGED_VIDEO_VIEW}required window_days int64required weight floatDefault value: 100Show child parameters |
automatic_manual_stateenum{UNSET, AUTOMATIC, MANUAL} |
automatic_manual_state
|
bid_amountinteger |
Bid cap or target cost for this ad set. The bid cap used in a lowest cost bid strategy is defined as the maximum bid you want to pay for a result based on your optimization_goal. The target cost used in a target cost bid strategy lets Facebook bid to meet your target on average and keep costs stable as you spend. If an ad level bid_amount is specified, updating this value will overwrite the previous ad level bid. Unless you are using Reach and Frequency, bid_amount is required if bid_strategy is set to LOWEST_COST_WITH_BID_CAP or COST_CAP.
The bid amount's unit is cents for currencies like USD, EUR, and the basic unit for currencies like JPY, KRW. The bid amount for ads with IMPRESSION or REACH as billing_event is per 1,000 occurrences, and has to be at least 2 US cents or more. For ads with other billing_events, the bid amount is for each occurrence, and has a minimum value 1 US cents. The minimum bid amounts of other currencies are of similar value to the US Dollar values provided.
|
bid_strategy enum{LOWEST_COST_WITHOUT_CAP, LOWEST_COST_WITH_BID_CAP, COST_CAP, LOWEST_COST_WITH_MIN_ROAS} |
Choose bid strategy for this ad set to suit your specific business goals.
Each strategy has tradeoffs and may be available for certain optimization_goals:LOWEST_COST_WITHOUT_CAP: Designed to get the most results for your budget based on
your ad set optimization_goal without limiting your bid amount. This is the best strategy
if you care most about cost efficiency. However with this strategy it may be harder to get
stable average costs as you spend. This strategy is also known as automatic bidding.
Learn more in Ads Help Center, About bid strategies: Lowest cost.LOWEST_COST_WITH_BID_CAP: Designed to get the most results for your budget based on
your ad set optimization_goal while limiting actual bid to your specified
amount. With a bid cap you have more control over your
cost per actual optimization event. However if you set a limit which is too low you may
get less ads delivery. If you select this, you must provide
a bid cap with the bid_amount field.
Note: during creation this bid strategy is set if you provide bid_amount only.
This strategy is also known as manual maximum-cost bidding.
Learn more in Ads Help Center, About bid strategies: Lowest cost.
Notes:
|
billing_eventenum{APP_INSTALLS, CLICKS, IMPRESSIONS, LINK_CLICKS, NONE, OFFER_CLAIMS, PAGE_LIKES, POST_ENGAGEMENT, THRUPLAY, PURCHASE, LISTING_INTERACTION} |
The billing event that this ad set is using: APP_INSTALLS: Pay when people install your app. CLICKS: Deprecated. IMPRESSIONS: Pay when the ads are shown to people. LINK_CLICKS: Pay when people click on the link of the ad. OFFER_CLAIMS: Pay when people claim the offer. PAGE_LIKES: Pay when people like your page. POST_ENGAGEMENT: Pay when people engage with your post. VIDEO_VIEWS: Pay when people watch your video ads for at least 10 seconds. THRUPLAY: Pay for ads that are played to completion, or played for at least 15 seconds. |
budget_schedule_specslist<JSON or object-like arrays> |
Initial high demand periods to be created with the ad set. Provide list of time_start, time_end,budget_value, and budget_value_type.For example, -F 'budget_schedule_specs=[{ "time_start":1699081200, "time_end":1699167600, "budget_value":100, "budget_value_type":"ABSOLUTE" }]' See High Demand Period for more details on each field. id int64time_start datetimetime_end datetimebudget_value int64budget_value_type enum{ABSOLUTE, MULTIPLIER}recurrence_type enum{ONE_TIME, WEEKLY}weekly_schedule list<JSON or object-like arrays>days list<int64>minute_start int64minute_end int64timezone_type stringShow child parameters Show child parameters |
budget_sourceenum{NONE, RMN} |
budget_source
|
budget_split_set_idnumeric string or integer |
budget_split_set_id
|
campaign_attributionenum{} |
campaign_attribution
|
campaign_idnumeric string or integer |
The ad campaign you wish to add this ad set to.
|
campaign_specCampaign spec |
Provide name, objective and buying_type for a campaign you want to create. Otherwise you need to provide campaign_id for an existing ad campaign. For example:-F 'campaign_spec={ "name": "Inline created campaign", "objective": "CONVERSIONS", "buying_type": "AUCTION" }' Please refer to the Outcome-Driven Ads Experiences mapping table to find new objectives and their corresponding destination types, optimization goals and promoted objects. |
contextual_bundling_specObject |
settings of Contextual Bundle to support ads serving in Facebook contextual surfaces
status enum{OPT_OUT, OPT_IN}Show child parameters |
cost_bidding_modeenum{VOLUME_FOCUSED, BALANCED, COST_FOCUSED} |
cost_bidding_mode
|
creative_sequencelist<numeric string or integer> |
Order of the adgroup sequence to be shown to users
|
daily_budgetint64 |
The daily budget defined in your account currency, allowed only for ad sets with a duration (difference between end_time and start_time) longer than 24 hours. Either daily_budget or lifetime_budget must be greater than 0.
|
daily_impsint64 |
Daily impressions. Available only for campaigns with buying_type=FIXED_CPM |
daily_min_spend_targetint64 |
Daily minimum spend target of the ad set defined in your account currency. To use this field, daily budget must be specified in the Campaign. This target is not a guarantee but our best effort.
|
daily_spend_capint64 |
Daily spend cap of the ad set defined in your account currency. To use this field, daily budget must be specified in the Campaign. Set the value to 922337203685478 to remove the spend cap.
|
destination_typeenum{WEBSITE, APP, MESSENGER, APPLINKS_AUTOMATIC, WHATSAPP, INSTAGRAM_DIRECT, FACEBOOK, MESSAGING_MESSENGER_WHATSAPP, MESSAGING_INSTAGRAM_DIRECT_MESSENGER, MESSAGING_INSTAGRAM_DIRECT_MESSENGER_WHATSAPP, MESSAGING_INSTAGRAM_DIRECT_WHATSAPP, SHOP_AUTOMATIC, ON_AD, ON_POST, ON_EVENT, ON_VIDEO, ON_PAGE, INSTAGRAM_PROFILE, FACEBOOK_PAGE, INSTAGRAM_PROFILE_AND_FACEBOOK_PAGE, INSTAGRAM_LIVE, FACEBOOK_LIVE, IMAGINE} |
Destination of ads in this Ad Set. Options include: Website, App, Messenger, INSTAGRAM_DIRECT, INSTAGRAM_PROFILE.
|
dsa_beneficiarystring |
dsa_beneficiary
|
dsa_payorstring |
dsa_payor
|
end_timedatetime |
End time, required when lifetime_budget is specified. e.g. 2015-03-12 23:59:59-07:00 or 2015-03-12 23:59:59 PDT. When creating a set with a daily budget, specify end_time=0 to set the set to be ongoing and have no end date. UTC UNIX timestamp
|
execution_optionslist<enum{validate_only, include_recommendations}> | Default value: Set
An execution setting validate_only: when this option is specified, the API call will not perform the mutation but will run through the validation rules against values of each field. include_recommendations: this option cannot be used by itself. When this option is used, recommendations for ad object's configuration will be included. A separate section recommendations will be included in the response, but only if recommendations for this specification exist.If the call passes validation or review, response will be {"success": true}. If the call does not pass, an error will be returned with more details. These options can be used to improve any UI to display errors to the user much sooner, e.g. as soon as a new value is typed into any field corresponding to this ad object, rather than at the upload/save stage, or after review.
|
existing_customer_budget_percentageint64 |
existing_customer_budget_percentage
|
frequency_control_specslist<Object> |
An array of frequency control specs for this ad set. Writes to this field are only available in ad sets where REACH and THRUPLAY are the performance goal.
event enum{IMPRESSIONS, VIDEO_VIEWS, VIDEO_VIEWS_2S, VIDEO_VIEWS_15S}
Event name, only IMPRESSIONS currently.
required interval_days integer
Interval period in days, between 1 and 90
(inclusive)
required max_frequency integer
The maximum frequency, between 1 and 90
(inclusive)
required type enum{NONE, CAP, TARGET}Show child parameters |
is_dc_follow_optimizedboolean |
is_dc_follow_optimized
|
is_dynamic_creative boolean |
Indicates the ad set must only be used for dynamic creatives. Dynamic creative ads can be created in this ad set. Defaults to false |
is_sac_cfca_terms_certifiedboolean |
is_sac_cfca_terms_certified
|
lifetime_budgetint64 |
Lifetime budget, defined in your account currency. If specified, you must also specify an end_time.Either daily_budget or lifetime_budget must be greater than 0.
|
lifetime_impsint64 |
Lifetime impressions. Available only for campaigns with buying_type=FIXED_CPM |
lifetime_min_spend_targetint64 |
Lifetime minimum spend target of the ad set defined in your account currency. To use this field, lifetime budget must be specified in the Campaign. This target is not a guarantee but our best effort.
|
lifetime_spend_capint64 |
Lifetime spend cap of the ad set defined in your account currency. To use this field, lifetime budget must be specified in the Campaign. Set the value to 922337203685478 to remove the spend cap.
|
max_budget_spend_percentageint64 |
max_budget_spend_percentage
|
min_budget_spend_percentageint64 |
min_budget_spend_percentage
|
multi_event_conversion_attribution_window_secondsint64 |
multi_event_conversion_attribution_window_seconds
|
multi_optimization_goal_weightenum{UNDEFINED, BALANCED, PREFER_INSTALL, PREFER_EVENT} |
multi_optimization_goal_weight
|
namestring |
Ad set name, max length of 400 characters.
required supports emoji |
optimization_goalenum{NONE, APP_INSTALLS, AD_RECALL_LIFT, ENGAGED_USERS, EVENT_RESPONSES, IMPRESSIONS, LEAD_GENERATION, QUALITY_LEAD, LINK_CLICKS, OFFSITE_CONVERSIONS, PAGE_LIKES, POST_ENGAGEMENT, QUALITY_CALL, REACH, LANDING_PAGE_VIEWS, VISIT_INSTAGRAM_PROFILE, ENGAGED_PAGE_VIEWS, VALUE, THRUPLAY, DERIVED_EVENTS, APP_INSTALLS_AND_OFFSITE_CONVERSIONS, CONVERSATIONS, IN_APP_VALUE, MESSAGING_PURCHASE_CONVERSION, MESSAGING_DEEP_CONVERSATION_AND_FOLLOW, SUBSCRIBERS, REMINDERS_SET, MEANINGFUL_CALL_ATTEMPT, PROFILE_VISIT, PROFILE_AND_PAGE_ENGAGEMENT, ADVERTISER_SILOED_VALUE, AUTOMATIC_OBJECTIVE, MESSAGING_APPOINTMENT_CONVERSION} |
What the ad set is optimizing for. APP_INSTALLS: Will optimize for people more likely to install your app.ENGAGED_USERS: Will optimize for people more likely to take a particular action in your app.EVENT_RESPONSES: Will optimize for people more likely to attend your event.IMPRESSIONS: Will show the ads as many times as possible.LEAD_GENERATION: Will optimize for people more likely to fill out a lead generation form.LINK_CLICKS: Will optimize for people more likely to click in the link of the ad.OFFER_CLAIMS: Will optimize for people more likely to claim the offer.OFFSITE_CONVERSIONS: Will optimize for people more likely to make a conversion in the sitePAGE_ENGAGEMENT: Will optimize for people more likely to engage with your page.PAGE_LIKES: Will optimize for people more likely to like your page.POST_ENGAGEMENT: Will optimize for people more likely to engage with your post.REACH: Optimize to reach the most unique users of each day or interval specified in frequency_control_specs.SOCIAL_IMPRESSIONS: Increase the number of impressions with social context. For example, with the names of one or more of the user's friends attached to the ad who have already liked the page or installed the app.VALUE: Will optimize for maximum total purchase value within the specified attribution window.THRUPLAY: Will optimize delivery of your ads to people are more likely to play your ad to completion, or play it for at least 15 seconds.AD_RECALL_LIFT: Optimize for people more likely to remember seeing your ads.VISIT_INSTAGRAM_PROFILE: Optimize for visits to the advertiser's instagram profile.
|
optimization_sub_eventenum{NONE, VIDEO_SOUND_ON, TRIP_CONSIDERATION, TRAVEL_INTENT, TRAVEL_INTENT_NO_DESTINATION_INTENT, TRAVEL_INTENT_BUCKET_01, TRAVEL_INTENT_BUCKET_02, TRAVEL_INTENT_BUCKET_03, TRAVEL_INTENT_BUCKET_04, TRAVEL_INTENT_BUCKET_05, POST_INTERACTION} |
Optimization sub event for a specific optimization goal (ex: Sound-On event for Video-View-2s optimization goal)
|
pacing_typelist<string> |
Defines the pacing type, standard by default or using ad scheduling |
promoted_objectObject |
The object this ad set is promoting across all its ads.
Required with certain campaign objectives. CONVERSIONS
optimization_goal is OFFSITE_CONVERSIONS
optimization_goal is LEAD_GENERATION, page_id needs to be passed as promoted_object.
Please refer to the Outcome-Driven Ads Experiences mapping table to find new objectives and their corresponding destination types, optimization goals and promoted objects. application_id int
The ID of a Facebook Application. Usually related to mobile or canvas games being promoted on Facebook for installs or engagement
pixel_id numeric string or integer
The ID of a Facebook conversion pixel. Used with offsite conversion campaigns.
custom_event_type enum{AD_IMPRESSION, RATE, TUTORIAL_COMPLETION, CONTACT, CUSTOMIZE_PRODUCT, DONATE, FIND_LOCATION, SCHEDULE, START_TRIAL, SUBMIT_APPLICATION, SUBSCRIBE, ADD_TO_CART, ADD_TO_WISHLIST, INITIATED_CHECKOUT, ADD_PAYMENT_INFO, PURCHASE, LEAD, COMPLETE_REGISTRATION, CONTENT_VIEW, SEARCH, SERVICE_BOOKING_REQUEST, MESSAGING_CONVERSATION_STARTED_7D, LEVEL_ACHIEVED, ACHIEVEMENT_UNLOCKED, SPENT_CREDITS, LISTING_INTERACTION, D2_RETENTION, D7_RETENTION, OTHER}
The event from an App Event of a mobile app,
not in the standard event list.
object_store_url URL
The uri of the mobile / digital store where an application can be bought / downloaded. This is platform specific. When combined with the "application_id" this uniquely specifies an object which can be the subject of a Facebook advertising campaign.
object_store_urls list<URL>
The vec of uri of the mobile / digital store where an application can be bought / downloaded. This is platform specific. When combined with the "application_id" this uniquely specifies an object which can be the subject of a Facebook advertising campaign.
offer_id numeric string or integer
The ID of an Offer from a Facebook Page.
page_id Page ID
The ID of a Facebook Page
product_catalog_id numeric string or integer
The ID of a Product Catalog. Used with
Dynamic Product Ads.
product_item_id numeric string or integer
The ID of the product item.
job_listing_id numeric string or integer
The ID of the marketplace job listing.
instagram_profile_id numeric string or integer
The ID of the instagram profile id.
product_set_id numeric string or integer
The ID of a Product Set within an Ad Set level Product
Catalog. Used with
Dynamic Product Ads.
event_id numeric string or integer
The ID of a Facebook Event
offline_conversion_data_set_id numeric string or integer
The ID of the offline dataset.
fundraiser_campaign_id numeric string or integer
The ID of the fundraiser campaign.
custom_event_str string
The event from an App Event of a mobile app,
not in the standard event list.
mcme_conversion_id numeric string or integer
The ID of a MCME conversion.
conversion_goal_id numeric string or integer
The ID of a Conversion Goal.
offsite_conversion_event_id numeric string or integer
The ID of a Offsite Conversion Event
boosted_product_set_id numeric string or integer
The ID of the Boosted Product Set within an Ad Set level Product
Catalog. Should only be present when the advertiser has
opted into Product Set Boosting.
lead_ads_form_event_source_type enum{inferred, meta_source, offsite_crm, offsite_web, onsite_crm, onsite_crm_single_event, onsite_clo_dep_aet, onsite_web, onsite_p2b_call, onsite_messaging, qualified_lead_file}
The event source of lead ads form.
lead_ads_custom_event_type enum{AD_IMPRESSION, RATE, TUTORIAL_COMPLETION, CONTACT, CUSTOMIZE_PRODUCT, DONATE, FIND_LOCATION, SCHEDULE, START_TRIAL, SUBMIT_APPLICATION, SUBSCRIBE, ADD_TO_CART, ADD_TO_WISHLIST, INITIATED_CHECKOUT, ADD_PAYMENT_INFO, PURCHASE, LEAD, COMPLETE_REGISTRATION, CONTENT_VIEW, SEARCH, SERVICE_BOOKING_REQUEST, MESSAGING_CONVERSATION_STARTED_7D, LEVEL_ACHIEVED, ACHIEVEMENT_UNLOCKED, SPENT_CREDITS, LISTING_INTERACTION, D2_RETENTION, D7_RETENTION, OTHER}
The event from an App Event of a mobile app,
not in the standard event list.
lead_ads_custom_event_str string
The event from an App Event of a mobile app,
not in the standard event list.
lead_ads_offsite_conversion_type enum{default, clo}
The offsite conversion type for lead ads
value_semantic_type enum {VALUE, MARGIN, LIFETIME_VALUE}
The semantic of the event value to be using for optimization
variation enum {OMNI_CHANNEL_SHOP_AUTOMATIC_DATA_COLLECTION, PRODUCT_SET_AND_APP, PRODUCT_SET_AND_IN_STORE, PRODUCT_SET_AND_OMNICHANNEL, PRODUCT_SET_AND_PHONE_CALL, PRODUCT_SET_AND_WEBSITE, PRODUCT_SET_AND_WEBSITE_AND_PHONE_CALL, PRODUCT_SET_WEBSITE_APP_AND_INSTORE}
Variation of the promoted object for a PCA ad
passback_pixel_id numeric string or integer
ID of the pixel used for tracking passback events
passback_application_id numeric string or integer
ID of the application used for tracking passback events
product_set_optimization enum{enabled, disabled}
Enum defining whether or not the ad should be optimized for the promoted product set
full_funnel_objective enum{OFFER_CLAIMS, PAGE_LIKES, EVENT_RESPONSES, POST_ENGAGEMENT, WEBSITE_CONVERSIONS, LINK_CLICKS, VIDEO_VIEWS, LOCAL_AWARENESS, PRODUCT_CATALOG_SALES, LEAD_GENERATION, BRAND_AWARENESS, STORE_VISITS, REACH, APP_INSTALLS, MESSAGES, OUTCOME_AWARENESS, OUTCOME_ENGAGEMENT, OUTCOME_LEADS, OUTCOME_SALES, OUTCOME_TRAFFIC, OUTCOME_APP_PROMOTION}
Enum defining the full funnel objective of the campaign
dataset_split_id numeric string or integer
ID of the dataset split used to perform additional optimization on the dataset
dataset_split_ids array<numeric string>
IDs of the dataset splits used to perform additional optimization on the dataset
lead_ads_selected_pixel_id numeric string or integer
The selected pixel id for lead ads conversion leads optimization
custom_attribution_source_ids array<numeric string>
IDs of the custom attribution sources used for tracking passback events
multi_event_product int64
Identifies which action-to-action product the advertiser is using
product_sales_channel enum {ONLINE, IN_STORE, OMNI}
ProductSalesChannel of the promoted object for Omni L3 DA SBLI ads
anchor_event_config JSON object
Configuration for anchor event in multi-event optimization campaigns
multi_event_conversion_info JSON object
Configuration for multi-event conversion info in CLO campaigns
live_video_destination string
The live video destination type for live video ads
smart_pse_enabled boolean
Whether Smart Product Set Expansion is enabled for this campaign.
smart_pse_setting enum{ENABLED, DISABLED}
Setting for Smart Product Set Expansion. Uses an enum instead of a boolean to avoid TAO null handling issues.
lead_ads_follow_up_event enum{whatsapp_conversations}
The selected lead follow-up event for lead ads campaigns.
omnichannel_object Objectapp array<JSON object>pixel array<JSON object>required onsite array<JSON object>Show child parameters whats_app_business_phone_number_id numeric string or integerwhatsapp_phone_number stringShow child parameters |
relative_valuefloat |
relative_value
|
rf_prediction_idnumeric string or integer |
Reach and frequency prediction ID
|
source_adset_idnumeric string or integer |
The source adset id that this ad is copied from (if applicable).
|
start_timedatetime |
The start time of the set, e.g. 2015-03-12 23:59:59-07:00 or 2015-03-12 23:59:59 PDT. UTC UNIX timestamp
|
statusenum{ACTIVE, PAUSED, DELETED, ARCHIVED} |
Only ACTIVE and PAUSED are valid for creation. The other statuses
can be used for update. If it is set to PAUSED, all its active ads
will be paused and have an effective status ADSET_PAUSED.
|
targetingTargeting object |
An ad set's targeting structure. "countries" is required. See targeting.
|
time_based_ad_rotation_id_blockslist<list<int64>> |
Specify ad creative that displays at custom date ranges in a campaign
as an array. A list of Adgroup IDs. The list of ads to display for each
time range in a given schedule. For example display first ad in Adgroup
for first date range, second ad for second date range, and so on. You
can display more than one ad per date range by providing more than
one ad ID per array. For example set
time_based_ad_rotation_id_blocks to [[1], [2, 3], [1, 4]]. On the
first date range show ad 1, on the second date range show ad 2 and ad 3
and on the last date range show ad 1 and ad 4. Use with
time_based_ad_rotation_intervals to specify date ranges.
|
time_based_ad_rotation_intervalslist<int64> |
Date range when specific ad creative displays during a campaign.
Provide date ranges in an array of UNIX timestamps where each
timestamp represents the start time for each date range. For example a
3-day campaign from May 9 12am to May 11 11:59PM PST can have three
date ranges, the first date range starts from May 9 12:00AM to
May 9 11:59PM, second date range starts from May 10 12:00AM to
May 10 11:59PM and last starts from May 11 12:00AM to May 11 11:59PM.
The first timestamp should match the campaign start time. The last
timestamp should be at least 1 hour before the campaign end time. You
must provide at least two date ranges. All date ranges must cover the
whole campaign length, so any date range cannot exceed campaign length.
Use with time_based_ad_rotation_id_blocks to specify ad creative for
each date range.
|
time_startdatetime |
Time start
|
time_stopdatetime |
Time stop
|
tune_for_categoryenum{NONE, EMPLOYMENT, HOUSING, CREDIT, ISSUES_ELECTIONS_POLITICS, ONLINE_GAMBLING_AND_GAMING, FINANCIAL_PRODUCTS_SERVICES} |
tune_for_category
|
value_rule_set_idnumeric string or integer |
Value Rule Set ID
|
value_rules_appliedboolean |
value_rules_applied
|
Return Type
This endpoint supports read-after-write and will read the node represented by id in the return type.
Struct {
id: numeric string,
success: bool,
}
Error Codes
| Error Code | Description |
|---|---|
100 | Invalid parameter |
200 | Permissions error |
2635 | You are calling a deprecated version of the Ads API. Please update to the latest version. |
368 | The action attempted has been deemed abusive or is otherwise disallowed |
2695 | The ad set creation reached its campaign group(ios14) limit. |
80004 | There have been too many calls to this ad-account. Wait a bit and try again. For more info, please refer to /docs/graph-api/overview/rate-limiting#ads-management. |
2641 | Your ad includes or excludes locations that are currently restricted |
190 | Invalid OAuth 2.0 Access Token |
900 | No such application exists. |
Updating
You can't perform this operation on this endpoint.
Deleting
This operation has been deprecated with Marketing API V8.
You can't perform this operation on this endpoint.