API Reference
Ad groups

Get ad groups

GET/open_api/v1.3/adgroup/get/
Base URL: https://tiktok-ads.mimicr.dev · provider: https://business-api.tiktok.com

Use this endpoint to get ad groups. Arrays and objects go in the query as JSON. Deleted ad groups (and those of deleted campaigns) are hidden unless filtering.primary_status is STATUS_ALL.

Authorization

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

Headers

Access-Tokenstringrequired

Authorized access token, sent in this header (not Authorization: Bearer). Marketing API tokens never expire.

Query parameters

advertiser_idstringrequired

Advertiser ID.

fieldsstring[]

Fields to return, as a JSON array (["ad_id","secondary_status"]). If not set, all fields are returned.

exclude_field_types_in_responsestring[]

Types of fields to remove from the response, as a JSON array. Allowed value: NULL_FIELD (fields with null values).

filteringobject

Filters, as a JSON object. Mimicr applies campaign_ids, adgroup_ids (up to 100), adgroup_name, primary_status (default STATUS_NOT_DELETE), secondary_status, objective_type, optimization_goal, promotion_type, billing_events and creation_filter_start_time/creation_filter_end_time.

pagenumber

Current page number. Default value: 1. Value range: ≥ 1.

page_sizenumber

Page size.

Responses

200Response envelope {code, message, request_id, data}. code 0 (message "OK") is success. Validation and business errors also come with HTTP 200 and a non-zero code: check code, not the HTTP status.
codenumber

Return code. 0 means success; see the return codes appendix for the others.

messagestring

Return message: OK on success, otherwise the error description.

request_idstring

The log ID of the request, which uniquely identifies it (also sent in the X-Tt-Logid header).

dataobject

Returned data.

Show child attributes
listobject[]

Data list. The returned fields are generated based on the fields field in the request parameters. If not specified in the request, all fields are returned by default.

Show child attributes
advertiser_idstring

Advertiser ID.

campaign_idstring

Campaign ID.

campaign_namestring

The name of the campaign that the ad group belongs to.

adgroup_idstring

Ad group ID.

adgroup_namestring

Ad group name.

create_timestring

The time at which the ad group was created, in the format of "YYYY-MM-DD HH:MM:SS".

modify_timestring

The time at which the ad group was modified, in the format of "YYYY-MM-DD HH:MM:SS".

promotion_typestring

Promotion type (Optimization location). You can decide where you'd like to promote your products using this field. For value definitions, see Enumeration - Promotion Type.

promotion_target_typestring

The promotion type for Lead Generation objective.

INSTANT_PAGEEXTERNAL_WEBSITEUNSET
promotion_website_typestring

TikTok Instant Page type in the ad group.

UNSETTIKTOK_NATIVE_PAGE
pixel_idstring

Pixel ID. Only applicable for landing pages.

optimization_eventstring

Conversion event for the ad group. See Conversion events for more.

placement_typestring

The placement strategy that decides where your ads will be shown. Enum values: PLACEMENT_TYPE_AUTOMATIC (Automatic placement), PLACEMENT_TYPE_NORMAL (Select placement).

PLACEMENT_TYPE_AUTOMATICPLACEMENT_TYPE_NORMAL
placementsstring[]

The apps where you want to deliver your ads. For enum values, see Enumeration - Placement.

comment_disabledboolean

Whether to disable comments on ads in the ad group.

video_download_disabledboolean

Whether to disable downloading videos from ads in the ad group.

share_disabledboolean

Whether to disable sharing of ads in the ad group to third-party platforms.

auto_targeting_enabledboolean

Whether to enable automated targeting.

location_idsstring[]

IDs of the targeted locations. Location ids from TikTok's Location IDs list (Brazil is 3469034). A country together with one of its states is refused as overlapping.

zipcode_idsstring[]

Zip code IDs or postal code IDs of the targeted locations.

languagesstring[]

Codes of the languages that you want to target. For the list of languages codes supported, see Enumeration - Language Code.

genderstring

Gender that you want to target. Enum values: GENDER_FEMALE,GENDER_MALE,GENDER_UNLIMITED

GENDER_FEMALEGENDER_MALEGENDER_UNLIMITED
age_groupsstring[]

Age groups you want to target. For enum values, see Enumeration - Age Group.

spending_powerstring

Spending power that you want to target. Enum values: ALL, HIGH. If it is set to HIGH, you can target high spending users who typically spend more on purchases on TikTok ads than average users.

ALLHIGH
household_incomestring[]

Household income that you want to target. Enum values: TOP5(Top 5% of ZIP codes), TOP10(Top 10% of ZIP codes), TOP10_25(Top 10% -25% of ZIP codes), TOP25_50(Top 25% - 50% of ZIP codes).

TOP5TOP10TOP10_25TOP25_50
audience_idsstring[]

A list of audience IDs.

excluded_audience_idsstring[]

A list of excluded audience ID.

interest_category_idsstring[]

IDs of general interest keywords that you want to use to target audiences.

interest_keyword_idsstring[]

IDs of additional interest keywords that you want to use to target audiences.

actionsobject[]

A list of targeting behavioral category objects.

operating_systemsstring[]

Device operating systems that you want to target. Only one value is allowed. Enum: ANDROID, IOS

ios14_quota_typestring

Whether the campaign will be counted against the iOS 14 dedicated campaign quota. Enum: OCCUPIED, UNOCCUPIED. For non-R&F campaigns, when ios14_targeting is IOS14_PLUS, this field is automatically set to OCCUPIED.

network_typesstring[]

Network types that you want to target. For enum values, see Enumeration - Connection Type.

device_price_rangesnumber[]

Targeting device price range. 10000 means 1000+. The numbers must be in multiples of 50. Important: The upper limit you set will be added by 50 and the resulting new number will be used as the actual upper limit for device targeting. The actual upper limit is shown in the ad group settings in TikTok Ads Manager.

brand_safety_typestring

Brand safety type.

NO_BRAND_SAFETYEXPANDED_INVENTORYSTANDARD_INVENTORYLIMITED_INVENTORYTHIRD_PARTY
inventory_filter_enabledboolean

Inventory filtering (filtering security videos, hides unsafe videos), valid only for the PLACEMENT_TIKTOK placement. Optional values are: true to filter, false not to filter.

budget_modestring

Budget mode. If Campaign Budget Optimization is enabled, BUDGET_MODE_INFINITE will be returned. For more information about budget modes, see Budget.

budgetnumber

Ad group budget.

scheduled_budgetnumber

Scheduled ad budget for next day. A value not equal to 0 means the scheduled budget is set and the value represents the budget; a value equals to 0 means the scheduled budget is not set.

schedule_typestring

The schedule type can be either SCHEDULE_START_END or SCHEDULE_FROM_NOW. If you choose SCHEDULE_START_END, you need to specify a start time and an end time. If you choose SCHEDULE_FROM_NOW, you only need to specify a start time.

schedule_start_timestring

Ad delivery start time (UTC+0), in the format of YYYY-MM-DD HH:MM:SS. Mimicr rejects a start more than 12 hours in the past.

schedule_end_timestring

Ad delivery end time (UTC+0), in the format of YYYY-MM-DD HH:MM:SS.

daypartingstring

"Ad delivery arrangement, in the format of a string that consists of 48 x 7 characters. Each character is mapped to a 30-minute timeframe from Monday to Sunday. Each character can be set to either 0 or 1. 1 represents delivery in the 30-minute timeframe, and 0 stands for non-delivery in the 30-minute timeframe. In Mimicr the slots follow the advertiser time zone.

optimization_goalstring

The measurable results that you'd like to drive your ads with. For enum values, see Enumeration - Optimization Goal.

frequencynumber

Frequency, together with frequency_schedule, controls how often people see your ad (only available for REACH ads).

frequency_schedulenumber

Frequency_schedule, together with frequency, controls how often people see your ad (only available for REACH ads). See frequency fields for more.

bid_typestring

Bidding strategy that determines how the system manages your cost per result, spends your budget, and how it delivers ads. See Enumeration - Bidding Strategy.

bid_pricenumber

Bid price. The average cost per result that you want to achieve (for Cost Cap bidding strategy).

conversion_bid_pricenumber

Where you can set a target cost per conversion for oCPM(Optimized Cost per Mille).

deep_bid_typestring

Bidding strategy for in-app events. For enum values and their descriptions, see Enumeration - Deep-level Bidding Strategy.

bid_display_modestring

How you calculate and measure Cost per View.

click_attribution_windowstring

Click-through window for the ad group. This attribution window is the time between when a person clicks your ad and then takes an action.

OFFONE_DAYSEVEN_DAYSFOURTEEN_DAYSTWENTY_EIGHT_DAYS
engaged_view_attribution_windowstring

Engaged view-through window for the ad group. This attribution window is the time after someone watches at least 6 seconds of your video ad that a conversion is counted.

ONE_DAYSEVEN_DAYS
view_attribution_windowstring

View-through window for the ad group. This attribution window is the time between when a person views your ad and then takes an action.

OFFONE_DAYSEVEN_DAYS
attribution_event_countstring

Event count (Statistic type) for the ad group. The way that people's actions are counted after only viewing or clicking an ad.

UNSETEVERYONCE
billing_eventstring

Billing event. To learn about the enum values, see Enumerations - Billing Event.

pacingstring

You can choose between PACING_MODE_SMOOTH and PACING_MODE_FAST. For PACING_MODE_SMOOTH, the budget is allocated evenly within the scheduled time. PACING_MODE_FAST would consume budget and produce results as soon as possible. In Mimicr it is enforced as documented (Missing required field(s): pacing.) unless the homologation toggle lenientRequiredFields is on, which defaults it to PACING_MODE_SMOOTH.

operation_statusstring

Operation status.

ENABLEDISABLEFROZEN
secondary_statusstring

Ad group status(secondary status). For enum values, see Enumeration - Ad Group Status - Secondary Status.

is_hfssboolean

Whether the promoted content is HFSS (High Fat, Salt, Sugar) Product/Brand.

creative_material_modestring

The strategy that your creatives will be delivered.

CUSTOMDYNAMICSMART_CREATIVE
is_new_structureboolean

Whether the campaign is a new structure.

skip_learning_phaseboolean

Whether to skip the learning stage.

page_infoobject

Pagination information.

Show child attributes
pagenumber

Current page number. Default value: 1. Value range: ≥ 1.

page_sizenumber

Paging Size.

total_numbernumber

Total number of results.

total_pagenumber

Total pages of results.

501The route or feature is documented by TikTok but outside Mimicr's integration core: code 40014 with HTTP 501.
codeinteger

Return code. 0 means success; see the return codes appendix for the others.

messagestring

Return message: OK on success, otherwise the error description.

request_idstring

The log ID of the request, which uniquely identifies it (also sent in the X-Tt-Logid header).