API Reference
Facebook LoginGETLogin dialog
Campaigns

List the campaign's ad sets

GET/v27.0/{campaign_id}/adsets
Base URL: https://meta-ads.mimicr.dev · provider: https://graph.facebook.com

Ad sets of the campaign. Requires ads_read or ads_management and a role on the ad account.

Authorization

Bearer token in the Authorization: Bearer <token> header. See Authentication.

Path parameters

campaign_idstringrequired

ID of the campaign.

Example: "120200539998049712"

Query parameters

fieldsstring

Comma-separated fields to return, with Graph field expansion: a,b{c,d},e.limit(5). Without it, only id (and a few default fields on some nodes) is returned. An unknown field returns (#100) Tried accessing nonexisting field.

limitinteger

Maximum items per page (default 25).

afterstring

Cursor of paging.cursors.after: the page after.

beforestring

Cursor of paging.cursors.before: the page before.

effective_statusstring

JSON array of effective statuses to return, e.g. ["ACTIVE","PAUSED"]. DELETED and ARCHIVED objects are only returned when listed here.

Responses

200OK.
dataobject[]
Show child attributes
idstring

ID of the object.

account_idstring

ID of the ad account, without the act_ prefix.

campaign_idstring

ID of the campaign.

campaignobject

The parent campaign (id).

Show child attributes
idstring

ID of the object.

account_idstring

ID of the ad account, without the act_ prefix.

namestring

Name of the object.

objectivestring

Campaign objective: OUTCOME_APP_PROMOTION, OUTCOME_AWARENESS, OUTCOME_ENGAGEMENT, OUTCOME_LEADS, OUTCOME_SALES or OUTCOME_TRAFFIC.

OUTCOME_APP_PROMOTIONOUTCOME_AWARENESSOUTCOME_ENGAGEMENTOUTCOME_LEADSOUTCOME_SALESOUTCOME_TRAFFIC
statusstring

Status set by the advertiser: ACTIVE, PAUSED, DELETED or ARCHIVED.

ACTIVEARCHIVEDDELETEDPAUSED
configured_statusstring

Same as status.

ACTIVEARCHIVEDDELETEDPAUSED
effective_statusstring

Effective status, derived from the object's own status and its parents'. DELETED and ARCHIVED objects are hidden from edges unless the effective_status filter includes them.

ACTIVEARCHIVEDDELETEDIN_PROCESSPAUSEDWITH_ISSUES
buying_typestring

Buying type: AUCTION (default). RESERVED (reach and frequency) is not simulated.

special_ad_categoriesstring[]

Special ad categories of the campaign: NONE, EMPLOYMENT, HOUSING, CREDIT, ISSUES_ELECTIONS_POLITICS, ONLINE_GAMBLING_AND_GAMING or FINANCIAL_PRODUCTS_SERVICES.

special_ad_categorystring

The first special ad category, or NONE.

daily_budgetstring

Daily budget in the minor unit of the account currency (cents for BRL). Written as an integer, read back as a numeric string.

lifetime_budgetstring

Lifetime budget in the minor unit of the account currency. Requires end_time on ad sets.

budget_remainingstring

Remaining budget (today's for a daily budget), in the minor unit, as a numeric string.

bid_strategystring

Bid strategy: LOWEST_COST_WITHOUT_CAP, LOWEST_COST_WITH_BID_CAP, COST_CAP or LOWEST_COST_WITH_MIN_ROAS.

COST_CAPLOWEST_COST_WITHOUT_CAPLOWEST_COST_WITH_BID_CAPLOWEST_COST_WITH_MIN_ROAS
is_adset_budget_sharing_enabledboolean

Whether ad sets may share up to 20% of their budget. Required when the campaign has no campaign budget (v24.0+).

spend_capstring

Spend cap in the minor unit. 922337203685478 removes it.

created_timestring<date-time>

Time the object was created, ISO 8601 in the ad account time zone (2026-11-05T14:25:17-0300).

updated_timestring<date-time>

Time the object was last updated, ISO 8601 in the ad account time zone.

start_timestring<date-time>

Read-only: the earliest start time of the campaign's ad sets.

stop_timestring<date-time>

Read-only: the latest end time of the campaign's ad sets, when all have one.

issues_infoobject[]

Issues that keep the object from delivering (error_code, error_summary, error_message, level).

smart_promotion_typestring

Smart promotion type of the campaign.

source_campaign_idstring

ID of the campaign this one was copied from, or 0.

namestring

Name of the object.

statusstring

Status set by the advertiser: ACTIVE, PAUSED, DELETED or ARCHIVED.

ACTIVEARCHIVEDDELETEDPAUSED
configured_statusstring

Same as status.

ACTIVEARCHIVEDDELETEDPAUSED
effective_statusstring

Effective status: the ad set's own status, or CAMPAIGN_PAUSED when its campaign is paused.

ACTIVEARCHIVEDCAMPAIGN_PAUSEDDELETEDIN_PROCESSPAUSEDWITH_ISSUES
daily_budgetstring

Daily budget in the minor unit of the account currency (cents for BRL). Written as an integer, read back as a numeric string.

lifetime_budgetstring

Lifetime budget in the minor unit of the account currency. Requires end_time on ad sets.

budget_remainingstring

Remaining budget (today's for a daily budget), in the minor unit, as a numeric string.

billing_eventstring

What the ad set is charged for. Click-to-WhatsApp requires IMPRESSIONS.

APP_INSTALLSCLICKSIMPRESSIONSLINK_CLICKSLISTING_INTERACTIONNONEOFFER_CLAIMSPAGE_LIKESPOST_ENGAGEMENTPURCHASETHRUPLAY
optimization_goalstring

What the ad set optimizes delivery for. It must be compatible with the campaign objective.

33 values
ADVERTISER_SILOED_VALUEAD_RECALL_LIFTAPP_INSTALLSAPP_INSTALLS_AND_OFFSITE_CONVERSIONSAUTOMATIC_OBJECTIVECONVERSATIONSDERIVED_EVENTSENGAGED_PAGE_VIEWSENGAGED_USERSEVENT_RESPONSESIMPRESSIONSIN_APP_VALUELANDING_PAGE_VIEWSLEAD_GENERATIONLINK_CLICKSMEANINGFUL_CALL_ATTEMPTMESSAGING_APPOINTMENT_CONVERSIONMESSAGING_DEEP_CONVERSATION_AND_FOLLOWMESSAGING_PURCHASE_CONVERSIONNONEOFFSITE_CONVERSIONSPAGE_LIKESPOST_ENGAGEMENTPROFILE_AND_PAGE_ENGAGEMENTPROFILE_VISITQUALITY_CALLQUALITY_LEADREACHREMINDERS_SETSUBSCRIBERSTHRUPLAYVALUEVISIT_INSTAGRAM_PROFILE
bid_strategystring

Bid strategy: LOWEST_COST_WITHOUT_CAP, LOWEST_COST_WITH_BID_CAP, COST_CAP or LOWEST_COST_WITH_MIN_ROAS.

COST_CAPLOWEST_COST_WITHOUT_CAPLOWEST_COST_WITH_BID_CAPLOWEST_COST_WITH_MIN_ROAS
bid_amountinteger

Bid cap or target cost in the minor unit. Required with LOWEST_COST_WITH_BID_CAP and COST_CAP.

targetingobject

The audience of the ad set. See Targeting.

Show child attributes
geo_locationsobject

Locations to target. Required.

Show child attributes
countriesstring[]

ISO-2 country codes.

regionsobject[]

Regions as {key}.

citiesobject[]

Cities as {key, radius, distance_unit}; radius 10–50 mi or 17–80 km.

custom_locationsobject[]

Points with a radius: {latitude, longitude, radius, distance_unit} or {address_string, radius}; radius 1–80 km or 0.63–50 mi; up to 200 items.

Show child attributes
latitudenumber

Latitude of the point.

longitudenumber

Longitude of the point.

radiusnumber

Radius around the point.

distance_unitstring

kilometer or mile (default).

address_stringstring

Address, instead of coordinates.

location_typesstring[]

home and/or recent.

age_mininteger

Minimum age, 13 or more (default 18). With Advantage+ audience only 18 to 25.

age_maxinteger

Maximum age, up to 65.

gendersinteger[]

[1] men, [2] women. Omit for all.

targeting_automationobject

Advantage+ audience settings.

Show child attributes
advantage_audienceinteger

1 lets Meta expand the audience (Advantage+ audience), 0 keeps it. Must be set explicitly on create when the audience is constrained.

individual_settingobject

Per-dimension automation settings (age, gender, device).

publisher_platformsstring[]

Platforms: facebook, instagram, messenger, audience_network.

facebook_positionsstring[]

Facebook placements.

instagram_positionsstring[]

Instagram placements.

messenger_positionsstring[]

Messenger placements. story is dropped since v26.0.

device_platformsstring[]

mobile and/or desktop.

connected_tvdesktopmobile
flexible_specobject[]

Detailed targeting. In Mimicr it is stored, not resolved.

exclusionsobject

Excluded detailed targeting. Stored, not resolved.

custom_audiencesobject[]

Custom audiences. Custom audiences are not simulated (501).

interestsobject[]

Interests. Stored, not resolved.

promoted_objectobject

The object the ad set promotes (Page, WhatsApp number, pixel…).

Show child attributes
page_idstring

ID of the Page. Required for WhatsApp and lead generation ad sets.

whatsapp_phone_numberstring

WhatsApp number (digits) the ads open a chat with. Must be the Page's number.

whats_app_business_phone_number_idstring

Phone number ID of the WhatsApp Business account.

pixel_idstring

ID of the dataset (pixel) for conversion optimization.

custom_event_typestring

Conversion event to optimize for (PURCHASE, LEAD, …).

29 values
ACHIEVEMENT_UNLOCKEDADD_PAYMENT_INFOADD_TO_CARTADD_TO_WISHLISTAD_IMPRESSIONCOMPLETE_REGISTRATIONCONTACTCONTENT_VIEWCUSTOMIZE_PRODUCTD2_RETENTIOND7_RETENTIONDONATEFIND_LOCATIONINITIATED_CHECKOUTLEADLEVEL_ACHIEVEDLISTING_INTERACTIONMESSAGING_CONVERSATION_STARTED_7DOTHERPURCHASERATESCHEDULESEARCHSERVICE_BOOKING_REQUESTSPENT_CREDITSSTART_TRIALSUBMIT_APPLICATIONSUBSCRIBETUTORIAL_COMPLETION
application_idstring

ID of the app for app promotion.

destination_typestring

Where people go after clicking: WEBSITE, APP, MESSENGER, WHATSAPP, INSTAGRAM_DIRECT, ON_AD, …

start_timestring<date-time>

Start time of the ad set. Defaults to now. It can't change after the ad set started.

end_timestring<date-time>

End time of the ad set. Required with a lifetime budget; 0 or empty means ongoing with a daily budget.

pacing_typestring[]

["standard"] (default) or ["day_parting"] with adset_schedule.

adset_scheduleobject[]

Delivery schedule (day parting). Only with lifetime budgets; minutes on the hour, at least one hour apart.

Show child attributes
start_minuteinteger

Start minute of the day (0–1439), on the hour.

end_minuteinteger

End minute of the day; 1440 is the end of the day.

daysinteger[]

Days of the week, 0 (Sunday) to 6.

timezone_typestring

USER or ADVERTISER.

is_adset_budget_sharing_enabledboolean

Whether ad sets may share up to 20% of their budget. Required when the campaign has no campaign budget (v24.0+).

daily_min_spend_targetstring

Daily minimum spend target in the minor unit (stored).

attribution_specobject[]

Conversion attribution windows (event_type, window_days).

created_timestring<date-time>

Time the object was created, ISO 8601 in the ad account time zone (2026-11-05T14:25:17-0300).

updated_timestring<date-time>

Time the object was last updated, ISO 8601 in the ad account time zone.

review_feedbackstring

Review feedback of the ad set.

issues_infoobject[]

Issues that keep the object from delivering (error_code, error_summary, error_message, level).

learning_stage_infoobject

Learning phase of the ad set.

pagingobject

Cursor-based paging. next is absent on the last page and repeats every query param of the request, access_token included.

Show child attributes
cursorsobject
Show child attributes
beforestring

Cursor of the first item of the page.

afterstring

Cursor of the last item of the page.

nextstring

URL of the next page.

previousstring

URL of the previous page.

400Error in the Graph envelope.
errorobjectrequired
Show child attributes
messagestringrequired

Description of the error.

Example: "(#100) The parameter special_ad_categories is required"
typestringrequired

OAuthException for most codes (the Marketing API uses it for validation too), GraphMethodException for unknown objects, FacebookApiException for transient errors. In Mimicr, routes outside the integration core answer MimicrNotSimulated with HTTP 501.

Example: "OAuthException"
codeintegerrequired

Error code (100 invalid parameter, 190 invalid token, 200 permission, 2635 deprecated version, 613/17/80004 rate limits, …).

Example: 100
error_subcodeinteger

Error subcode with more detail (1885272 budget too low, 463 token expired, …).

Example: 1885272
is_transientboolean

Whether retrying the same request may succeed. Present on every Marketing API error; true for codes 1 and 2.

error_user_titlestring

Title of the error, to show to people.

error_user_msgstring

Message of the error, to show to people.

error_dataobject

Extra data. blame_field_specs lists the params that caused a validation error.

Show child attributes
blame_field_specsstring[][]
fbtrace_idstringrequired

Internal support identifier of the request.

Example: "AbCdEf12345"