Skip to main content

Tiktok-Marketing full reference

This is the full reference documentation for the Tiktok-Marketing agent connector.

Supported entities and actions

The Tiktok-Marketing connector supports the following entities and actions.

EntityActions
AdvertisersList, Search
CampaignsList, Search
Ad GroupsList, Search
AdsList, Search
AudiencesList, Search
Creative Assets ImagesList, Search
Creative Assets VideosList, Search

Advertisers

Advertisers List

Get advertiser account information

Python SDK

await tiktok_marketing.advertisers.list(
advertiser_ids="<str>"
)

API

curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "advertisers",
"action": "list",
"params": {
"advertiser_ids": "<str>"
}
}'

Parameters

Parameter NameTypeRequiredDescription
advertiser_idsstringYesAdvertiser IDs (JSON array of strings)
pageintegerNoPage number
page_sizeintegerNoNumber of items per page
Response Schema

Records

Field NameTypeDescription
advertiser_idstring
namestring
addressnull | string
companynull | string
contacternull | string
countrynull | string
currencynull | string
descriptionnull | string
emailnull | string
industrynull | string
languagenull | string
license_nonull | string
license_urlnull | string
cellphone_numbernull | string
promotion_areanull | string
rejection_reasonnull | string
rolenull | string
statusnull | string
timezonenull | string
balancenumber
create_timeinteger
telephone_numbernull | string
display_timezonenull | string
promotion_center_provincenull | string
advertiser_account_typenull | string
license_citynull | string
brandnull | string
license_provincenull | string
promotion_center_citynull | string

Search and filter advertisers records powered by Airbyte's data sync. This often provides additional fields and operators beyond what the API natively supports, making it easier to narrow down results before performing further operations. Only available in hosted mode.

Python SDK

await tiktok_marketing.advertisers.search(
query={"filter": {"eq": {"address": "<str>"}}}
)

API

curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "advertisers",
"action": "search",
"params": {
"query": {"filter": {"eq": {"address": "<str>"}}}
}
}'

Parameters

Parameter NameTypeRequiredDescription
queryobjectYesFilter and sort conditions. Supports operators: eq, neq, gt, gte, lt, lte, in, like, fuzzy, keyword, not, and, or
query.filterobjectNoFilter conditions
query.sortarrayNoSort conditions
limitintegerNoMaximum results to return (default 1000)
cursorstringNoPagination cursor from previous response's meta.cursor
fieldsarrayNoField paths to include in results

Searchable Fields

Field NameTypeDescription
addressstringThe physical address of the advertiser.
advertiser_account_typestringThe type of advertiser's account (e.g., individual, business).
advertiser_idintegerUnique identifier for the advertiser.
balancenumberThe current balance in the advertiser's account.
brandstringThe brand name associated with the advertiser.
cellphone_numberstringThe cellphone number of the advertiser.
companystringThe name of the company associated with the advertiser.
contacterstringThe contact person for the advertiser.
countrystringThe country where the advertiser is located.
create_timeintegerThe timestamp when the advertiser account was created.
currencystringThe currency used for transactions in the account.
descriptionstringA brief description or bio of the advertiser or company.
display_timezonestringThe timezone for display purposes.
emailstringThe email address associated with the advertiser.
industrystringThe industry or sector the advertiser operates in.
languagestringThe preferred language of communication for the advertiser.
license_citystringThe city where the advertiser's license is registered.
license_nostringThe license number of the advertiser.
license_provincestringThe province or state where the advertiser's license is registered.
license_urlstringThe URL link to the advertiser's license documentation.
namestringThe name of the advertiser or company.
promotion_areastringThe specific area or region where the advertiser focuses promotion.
promotion_center_citystringThe city at the center of the advertiser's promotion activities.
promotion_center_provincestringThe province or state at the center of the advertiser's promotion activities.
rejection_reasonstringReason for any advertisement rejection by the platform.
rolestringThe role or position of the advertiser within the company.
statusstringThe current status of the advertiser's account.
telephone_numberstringThe telephone number of the advertiser.
timezonestringThe timezone setting for the advertiser's activities.
Response Schema
Field NameTypeDescription
dataarrayList of matching records
metaobjectPagination metadata
meta.has_morebooleanWhether additional pages are available
meta.cursorstring | nullCursor for next page of results
meta.took_msnumber | nullQuery execution time in milliseconds
data[].addressstringThe physical address of the advertiser.
data[].advertiser_account_typestringThe type of advertiser's account (e.g., individual, business).
data[].advertiser_idintegerUnique identifier for the advertiser.
data[].balancenumberThe current balance in the advertiser's account.
data[].brandstringThe brand name associated with the advertiser.
data[].cellphone_numberstringThe cellphone number of the advertiser.
data[].companystringThe name of the company associated with the advertiser.
data[].contacterstringThe contact person for the advertiser.
data[].countrystringThe country where the advertiser is located.
data[].create_timeintegerThe timestamp when the advertiser account was created.
data[].currencystringThe currency used for transactions in the account.
data[].descriptionstringA brief description or bio of the advertiser or company.
data[].display_timezonestringThe timezone for display purposes.
data[].emailstringThe email address associated with the advertiser.
data[].industrystringThe industry or sector the advertiser operates in.
data[].languagestringThe preferred language of communication for the advertiser.
data[].license_citystringThe city where the advertiser's license is registered.
data[].license_nostringThe license number of the advertiser.
data[].license_provincestringThe province or state where the advertiser's license is registered.
data[].license_urlstringThe URL link to the advertiser's license documentation.
data[].namestringThe name of the advertiser or company.
data[].promotion_areastringThe specific area or region where the advertiser focuses promotion.
data[].promotion_center_citystringThe city at the center of the advertiser's promotion activities.
data[].promotion_center_provincestringThe province or state at the center of the advertiser's promotion activities.
data[].rejection_reasonstringReason for any advertisement rejection by the platform.
data[].rolestringThe role or position of the advertiser within the company.
data[].statusstringThe current status of the advertiser's account.
data[].telephone_numberstringThe telephone number of the advertiser.
data[].timezonestringThe timezone setting for the advertiser's activities.

Campaigns

Campaigns List

Get campaigns for an advertiser

Python SDK

await tiktok_marketing.campaigns.list(
advertiser_id="<str>"
)

API

curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "campaigns",
"action": "list",
"params": {
"advertiser_id": "<str>"
}
}'

Parameters

Parameter NameTypeRequiredDescription
advertiser_idstringYesAdvertiser ID
pageintegerNoPage number
page_sizeintegerNoNumber of items per page
Response Schema

Records

Field NameTypeDescription
campaign_idstring
campaign_namestring
campaign_typestring
advertiser_idstring
budgetnumber
budget_modestring
secondary_statusstring
operation_statusnull | string
objectivenull | string
objective_typenull | string
budget_optimize_onnull | boolean
bid_typenull | string
deep_bid_typenull | string
optimization_goalnull | string
split_test_variablenull | string
is_new_structureboolean
create_timestring
modify_timestring
roas_bidnull | number
is_smart_performance_campaignnull | boolean
is_search_campaignnull | boolean
app_promotion_typenull | string
rf_campaign_typenull | string
disable_skan_campaignnull | boolean
is_advanced_dedicated_campaignnull | boolean
rta_idnull | string
campaign_automation_typenull | string
rta_bid_enablednull | boolean
rta_product_selection_enablednull | boolean

Meta

Field NameTypeDescription
page_infoobject

Search and filter campaigns records powered by Airbyte's data sync. This often provides additional fields and operators beyond what the API natively supports, making it easier to narrow down results before performing further operations. Only available in hosted mode.

Python SDK

await tiktok_marketing.campaigns.search(
query={"filter": {"eq": {"advertiser_id": 0}}}
)

API

curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "campaigns",
"action": "search",
"params": {
"query": {"filter": {"eq": {"advertiser_id": 0}}}
}
}'

Parameters

Parameter NameTypeRequiredDescription
queryobjectYesFilter and sort conditions. Supports operators: eq, neq, gt, gte, lt, lte, in, like, fuzzy, keyword, not, and, or
query.filterobjectNoFilter conditions
query.sortarrayNoSort conditions
limitintegerNoMaximum results to return (default 1000)
cursorstringNoPagination cursor from previous response's meta.cursor
fieldsarrayNoField paths to include in results

Searchable Fields

Field NameTypeDescription
advertiser_idintegerThe unique identifier of the advertiser associated with the campaign
app_promotion_typestringType of app promotion being used in the campaign
bid_typestringType of bid strategy being used in the campaign
budgetnumberTotal budget allocated for the campaign
budget_modestringMode in which the budget is being managed (e.g., daily, lifetime)
budget_optimize_onbooleanThe metric or event that the budget optimization is based on
campaign_idintegerThe unique identifier of the campaign
campaign_namestringName of the campaign for easy identification
campaign_typestringType of campaign (e.g., awareness, conversion)
create_timestringTimestamp when the campaign was created
deep_bid_typestringAdvanced bid type used for campaign optimization
is_new_structurebooleanFlag indicating if the campaign utilizes a new campaign structure
is_search_campaignbooleanFlag indicating if the campaign is a search campaign
is_smart_performance_campaignbooleanFlag indicating if the campaign uses smart performance optimization
modify_timestringTimestamp when the campaign was last modified
objectivestringThe objective or goal of the campaign
objective_typestringType of objective selected for the campaign
operation_statusstringCurrent operational status of the campaign
optimization_goalstringSpecific goal to be optimized for in the campaign
rf_campaign_typestringType of RF (reach and frequency) campaign being run
roas_bidnumberReturn on ad spend goal set for the campaign
secondary_statusstringAdditional status information of the campaign
split_test_variablestringVariable being tested in a split test campaign
Response Schema
Field NameTypeDescription
dataarrayList of matching records
metaobjectPagination metadata
meta.has_morebooleanWhether additional pages are available
meta.cursorstring | nullCursor for next page of results
meta.took_msnumber | nullQuery execution time in milliseconds
data[].advertiser_idintegerThe unique identifier of the advertiser associated with the campaign
data[].app_promotion_typestringType of app promotion being used in the campaign
data[].bid_typestringType of bid strategy being used in the campaign
data[].budgetnumberTotal budget allocated for the campaign
data[].budget_modestringMode in which the budget is being managed (e.g., daily, lifetime)
data[].budget_optimize_onbooleanThe metric or event that the budget optimization is based on
data[].campaign_idintegerThe unique identifier of the campaign
data[].campaign_namestringName of the campaign for easy identification
data[].campaign_typestringType of campaign (e.g., awareness, conversion)
data[].create_timestringTimestamp when the campaign was created
data[].deep_bid_typestringAdvanced bid type used for campaign optimization
data[].is_new_structurebooleanFlag indicating if the campaign utilizes a new campaign structure
data[].is_search_campaignbooleanFlag indicating if the campaign is a search campaign
data[].is_smart_performance_campaignbooleanFlag indicating if the campaign uses smart performance optimization
data[].modify_timestringTimestamp when the campaign was last modified
data[].objectivestringThe objective or goal of the campaign
data[].objective_typestringType of objective selected for the campaign
data[].operation_statusstringCurrent operational status of the campaign
data[].optimization_goalstringSpecific goal to be optimized for in the campaign
data[].rf_campaign_typestringType of RF (reach and frequency) campaign being run
data[].roas_bidnumberReturn on ad spend goal set for the campaign
data[].secondary_statusstringAdditional status information of the campaign
data[].split_test_variablestringVariable being tested in a split test campaign

Ad Groups

Ad Groups List

Get ad groups for an advertiser

Python SDK

await tiktok_marketing.ad_groups.list(
advertiser_id="<str>"
)

API

curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "ad_groups",
"action": "list",
"params": {
"advertiser_id": "<str>"
}
}'

Parameters

Parameter NameTypeRequiredDescription
advertiser_idstringYesAdvertiser ID
pageintegerNoPage number
page_sizeintegerNoNumber of items per page
Response Schema

Records

Field NameTypeDescription
adgroup_idstring
campaign_idstring
advertiser_idstring
adgroup_namestring
placement_typestring
placementsnull | array
budgetnumber
budget_modestring
secondary_statusstring
operation_statusstring
optimization_goalstring
bid_typenull | string
bid_pricenumber
promotion_typestring
creative_material_modestring
schedule_typestring
schedule_start_timestring
schedule_end_timestring
create_timestring
modify_timestring
gendernull | string
age_groupsnull | array
languagesnull | array
location_idsnull | array
audience_idsnull | array
excluded_audience_idsnull | array
interest_category_idsnull | array
interest_keyword_idsnull | array
pixel_idnull | string
deep_bid_typenull | string
deep_cpa_bidnumber
conversion_bid_pricenumber
billing_eventnull | string
pacingnull | string
daypartingnull | string
frequencynull | integer
frequency_schedulenull | integer
is_new_structureboolean
is_smart_performance_campaignnull | boolean
app_idnull | string
app_typenull | string
app_download_urlnull | string
optimization_eventnull | string
secondary_optimization_eventnull | string
conversion_windownull | string
comment_disablednull | boolean
video_download_disablednull | boolean
share_disablednull | boolean
auto_targeting_enablednull | boolean
is_hfssnull | boolean
search_result_enablednull | boolean
inventory_filter_enablednull | boolean
skip_learning_phasenull | boolean
brand_safety_typenull | string
brand_safety_partnernull | string
campaign_namenull | string
campaign_automation_typenull | string
bid_display_modenull | string
scheduled_budgetnull | number
category_idnull | string
feed_typenull | string
delivery_modenull | string
ios14_quota_typenull | string
spending_powernull | string
next_day_retentionnull | number
rf_purchased_typenull | string
rf_estimated_cprnull | number
rf_estimated_frequencynull | number
purchased_impressionnull | number
purchased_reachnull | number
actionsnull | array
network_typesnull | array
operating_systemsnull | array
device_model_idsnull | array
device_price_rangesnull | array
included_custom_actionsnull | array
excluded_custom_actionsnull | array
category_exclusion_idsnull | array
contextual_tag_idsnull | array
zipcode_idsnull | array
household_incomenull | array
isp_idsnull | array
schedule_infosnull | array
statistic_typenull | string
keywordsnull | string
adgroup_app_profile_page_statenull | string
automated_keywords_enablednull | boolean
smart_audience_enablednull | boolean
smart_interest_behavior_enablednull | boolean
vbo_windownull | string
deep_funnel_optimization_statusnull | string
deep_funnel_event_sourcenull | string
deep_funnel_event_source_idnull | string
deep_funnel_optimization_eventnull | string
custom_conversion_idnull | string
app_confignull | object

Meta

Field NameTypeDescription
page_infoobject

Search and filter ad groups records powered by Airbyte's data sync. This often provides additional fields and operators beyond what the API natively supports, making it easier to narrow down results before performing further operations. Only available in hosted mode.

Python SDK

await tiktok_marketing.ad_groups.search(
query={"filter": {"eq": {"adgroup_id": 0}}}
)

API

curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "ad_groups",
"action": "search",
"params": {
"query": {"filter": {"eq": {"adgroup_id": 0}}}
}
}'

Parameters

Parameter NameTypeRequiredDescription
queryobjectYesFilter and sort conditions. Supports operators: eq, neq, gt, gte, lt, lte, in, like, fuzzy, keyword, not, and, or
query.filterobjectNoFilter conditions
query.sortarrayNoSort conditions
limitintegerNoMaximum results to return (default 1000)
cursorstringNoPagination cursor from previous response's meta.cursor
fieldsarrayNoField paths to include in results

Searchable Fields

Field NameTypeDescription
adgroup_idintegerThe unique identifier of the ad group
adgroup_namestringThe name of the ad group
advertiser_idintegerThe unique identifier of the advertiser
budgetnumberThe allocated budget for the ad group
budget_modestringThe mode for managing the budget
campaign_idintegerThe unique identifier of the campaign
create_timestringThe timestamp for when the ad group was created
modify_timestringThe timestamp for when the ad group was last modified
operation_statusstringThe status of the operation
optimization_goalstringThe goal set for optimization
placement_typestringThe type of ad placement
promotion_typestringThe type of promotion
secondary_statusstringThe secondary status of the ad group
Response Schema
Field NameTypeDescription
dataarrayList of matching records
metaobjectPagination metadata
meta.has_morebooleanWhether additional pages are available
meta.cursorstring | nullCursor for next page of results
meta.took_msnumber | nullQuery execution time in milliseconds
data[].adgroup_idintegerThe unique identifier of the ad group
data[].adgroup_namestringThe name of the ad group
data[].advertiser_idintegerThe unique identifier of the advertiser
data[].budgetnumberThe allocated budget for the ad group
data[].budget_modestringThe mode for managing the budget
data[].campaign_idintegerThe unique identifier of the campaign
data[].create_timestringThe timestamp for when the ad group was created
data[].modify_timestringThe timestamp for when the ad group was last modified
data[].operation_statusstringThe status of the operation
data[].optimization_goalstringThe goal set for optimization
data[].placement_typestringThe type of ad placement
data[].promotion_typestringThe type of promotion
data[].secondary_statusstringThe secondary status of the ad group

Ads

Ads List

Get ads for an advertiser

Python SDK

await tiktok_marketing.ads.list(
advertiser_id="<str>"
)

API

curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "ads",
"action": "list",
"params": {
"advertiser_id": "<str>"
}
}'

Parameters

Parameter NameTypeRequiredDescription
advertiser_idstringYesAdvertiser ID
pageintegerNoPage number
page_sizeintegerNoNumber of items per page
Response Schema

Records

Field NameTypeDescription
ad_idstring
advertiser_idstring
campaign_idstring
campaign_namestring
adgroup_idstring
adgroup_namestring
ad_namestring
ad_textnull | string
ad_textsnull | array
ad_formatnull | string
secondary_statusstring
operation_statusnull | string
call_to_actionnull | string
call_to_action_idnull | string
landing_page_urlnull | string
landing_page_urlsnull | array
display_namenull | string
profile_image_urlnull | string
video_idnull | string
image_idsnull | array
image_modenull | string
is_aconull | boolean
is_new_structurenull | boolean
creative_typenull | string
creative_authorizednull | boolean
identity_idnull | string
identity_typenull | string
deeplinknull | string
deeplink_typenull | string
fallback_typenull | string
tracking_pixel_idnull | integer
impression_tracking_urlnull | string
click_tracking_urlnull | string
music_idnull | string
optimization_eventnull | string
vast_moat_enablednull | boolean
page_idnull | string
viewability_postbid_partnernull | string
viewability_vast_urlnull | string
brand_safety_postbid_partnernull | string
brand_safety_vast_urlnull | string
app_namenull | string
playable_urlnull | string
card_idnull | string
carousel_image_labelsnull | array
avatar_icon_web_urinull | string
campaign_automation_typenull | string
create_timestring
modify_timestring

Meta

Field NameTypeDescription
page_infoobject

Search and filter ads records powered by Airbyte's data sync. This often provides additional fields and operators beyond what the API natively supports, making it easier to narrow down results before performing further operations. Only available in hosted mode.

Python SDK

await tiktok_marketing.ads.search(
query={"filter": {"eq": {"ad_format": "<str>"}}}
)

API

curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "ads",
"action": "search",
"params": {
"query": {"filter": {"eq": {"ad_format": "<str>"}}}
}
}'

Parameters

Parameter NameTypeRequiredDescription
queryobjectYesFilter and sort conditions. Supports operators: eq, neq, gt, gte, lt, lte, in, like, fuzzy, keyword, not, and, or
query.filterobjectNoFilter conditions
query.sortarrayNoSort conditions
limitintegerNoMaximum results to return (default 1000)
cursorstringNoPagination cursor from previous response's meta.cursor
fieldsarrayNoField paths to include in results

Searchable Fields

Field NameTypeDescription
ad_formatstringThe format of the ad
ad_idintegerThe unique identifier of the ad
ad_namestringThe name of the ad
ad_textstringThe text content of the ad
adgroup_idintegerThe unique identifier of the ad group
adgroup_namestringThe name of the ad group
advertiser_idintegerThe unique identifier of the advertiser
campaign_idintegerThe unique identifier of the campaign
campaign_namestringThe name of the campaign
create_timestringThe timestamp when the ad was created
landing_page_urlstringThe URL of the landing page for the ad
modify_timestringThe timestamp when the ad was last modified
operation_statusstringThe operational status of the ad
secondary_statusstringThe secondary status of the ad
video_idstringThe unique identifier of the video
Response Schema
Field NameTypeDescription
dataarrayList of matching records
metaobjectPagination metadata
meta.has_morebooleanWhether additional pages are available
meta.cursorstring | nullCursor for next page of results
meta.took_msnumber | nullQuery execution time in milliseconds
data[].ad_formatstringThe format of the ad
data[].ad_idintegerThe unique identifier of the ad
data[].ad_namestringThe name of the ad
data[].ad_textstringThe text content of the ad
data[].adgroup_idintegerThe unique identifier of the ad group
data[].adgroup_namestringThe name of the ad group
data[].advertiser_idintegerThe unique identifier of the advertiser
data[].campaign_idintegerThe unique identifier of the campaign
data[].campaign_namestringThe name of the campaign
data[].create_timestringThe timestamp when the ad was created
data[].landing_page_urlstringThe URL of the landing page for the ad
data[].modify_timestringThe timestamp when the ad was last modified
data[].operation_statusstringThe operational status of the ad
data[].secondary_statusstringThe secondary status of the ad
data[].video_idstringThe unique identifier of the video

Audiences

Audiences List

Get custom audiences for an advertiser

Python SDK

await tiktok_marketing.audiences.list(
advertiser_id="<str>"
)

API

curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "audiences",
"action": "list",
"params": {
"advertiser_id": "<str>"
}
}'

Parameters

Parameter NameTypeRequiredDescription
advertiser_idstringYesAdvertiser ID
pageintegerNoPage number
page_sizeintegerNoNumber of items per page
Response Schema

Records

Field NameTypeDescription
audience_idnull | string
namenull | string
audience_typenull | string
cover_numnull | integer
is_validnull | boolean
is_expiringnull | boolean
is_creatornull | boolean
sharednull | boolean
calculate_typenull | string
create_timenull | string
expired_timenull | string

Meta

Field NameTypeDescription
page_infoobject

Search and filter audiences records powered by Airbyte's data sync. This often provides additional fields and operators beyond what the API natively supports, making it easier to narrow down results before performing further operations. Only available in hosted mode.

Python SDK

await tiktok_marketing.audiences.search(
query={"filter": {"eq": {"audience_id": "<str>"}}}
)

API

curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "audiences",
"action": "search",
"params": {
"query": {"filter": {"eq": {"audience_id": "<str>"}}}
}
}'

Parameters

Parameter NameTypeRequiredDescription
queryobjectYesFilter and sort conditions. Supports operators: eq, neq, gt, gte, lt, lte, in, like, fuzzy, keyword, not, and, or
query.filterobjectNoFilter conditions
query.sortarrayNoSort conditions
limitintegerNoMaximum results to return (default 1000)
cursorstringNoPagination cursor from previous response's meta.cursor
fieldsarrayNoField paths to include in results

Searchable Fields

Field NameTypeDescription
audience_idstringUnique identifier for the audience
audience_typestringType of audience
cover_numintegerNumber of audience members covered
create_timestringTimestamp indicating when the audience was created
is_validbooleanFlag indicating if the audience data is valid
namestringName of the audience
sharedbooleanFlag indicating if the audience is shared
Response Schema
Field NameTypeDescription
dataarrayList of matching records
metaobjectPagination metadata
meta.has_morebooleanWhether additional pages are available
meta.cursorstring | nullCursor for next page of results
meta.took_msnumber | nullQuery execution time in milliseconds
data[].audience_idstringUnique identifier for the audience
data[].audience_typestringType of audience
data[].cover_numintegerNumber of audience members covered
data[].create_timestringTimestamp indicating when the audience was created
data[].is_validbooleanFlag indicating if the audience data is valid
data[].namestringName of the audience
data[].sharedbooleanFlag indicating if the audience is shared

Creative Assets Images

Creative Assets Images List

Search creative asset images for an advertiser

Python SDK

await tiktok_marketing.creative_assets_images.list(
advertiser_id="<str>"
)

API

curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "creative_assets_images",
"action": "list",
"params": {
"advertiser_id": "<str>"
}
}'

Parameters

Parameter NameTypeRequiredDescription
advertiser_idstringYesAdvertiser ID
pageintegerNoPage number
page_sizeintegerNoNumber of items per page
Response Schema

Records

Field NameTypeDescription
image_idnull | string
formatnull | string
image_urlnull | string
heightnull | integer
widthnull | integer
signaturenull | string
sizenull | integer
material_idnull | string
is_carousel_usablenull | boolean
file_namenull | string
create_timenull | string
modify_timenull | string
displayablenull | boolean

Meta

Field NameTypeDescription
page_infoobject

Search and filter creative assets images records powered by Airbyte's data sync. This often provides additional fields and operators beyond what the API natively supports, making it easier to narrow down results before performing further operations. Only available in hosted mode.

Python SDK

await tiktok_marketing.creative_assets_images.search(
query={"filter": {"eq": {"create_time": "<str>"}}}
)

API

curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "creative_assets_images",
"action": "search",
"params": {
"query": {"filter": {"eq": {"create_time": "<str>"}}}
}
}'

Parameters

Parameter NameTypeRequiredDescription
queryobjectYesFilter and sort conditions. Supports operators: eq, neq, gt, gte, lt, lte, in, like, fuzzy, keyword, not, and, or
query.filterobjectNoFilter conditions
query.sortarrayNoSort conditions
limitintegerNoMaximum results to return (default 1000)
cursorstringNoPagination cursor from previous response's meta.cursor
fieldsarrayNoField paths to include in results

Searchable Fields

Field NameTypeDescription
create_timestringThe timestamp when the image was created.
file_namestringThe name of the image file.
formatstringThe format type of the image file.
heightintegerThe height dimension of the image.
image_idstringThe unique identifier for the image.
image_urlstringThe URL to access the image.
modify_timestringThe timestamp when the image was last modified.
sizeintegerThe size of the image file.
widthintegerThe width dimension of the image.
Response Schema
Field NameTypeDescription
dataarrayList of matching records
metaobjectPagination metadata
meta.has_morebooleanWhether additional pages are available
meta.cursorstring | nullCursor for next page of results
meta.took_msnumber | nullQuery execution time in milliseconds
data[].create_timestringThe timestamp when the image was created.
data[].file_namestringThe name of the image file.
data[].formatstringThe format type of the image file.
data[].heightintegerThe height dimension of the image.
data[].image_idstringThe unique identifier for the image.
data[].image_urlstringThe URL to access the image.
data[].modify_timestringThe timestamp when the image was last modified.
data[].sizeintegerThe size of the image file.
data[].widthintegerThe width dimension of the image.

Creative Assets Videos

Creative Assets Videos List

Search creative asset videos for an advertiser

Python SDK

await tiktok_marketing.creative_assets_videos.list(
advertiser_id="<str>"
)

API

curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "creative_assets_videos",
"action": "list",
"params": {
"advertiser_id": "<str>"
}
}'

Parameters

Parameter NameTypeRequiredDescription
advertiser_idstringYesAdvertiser ID
pageintegerNoPage number
page_sizeintegerNoNumber of items per page
Response Schema

Records

Field NameTypeDescription
video_idnull | string
video_cover_urlnull | string
formatnull | string
preview_urlnull | string
preview_url_expire_timenull | string
durationnull | number
heightnull | integer
widthnull | integer
bit_ratenull | number
signaturenull | string
sizenull | integer
material_idnull | string
allowed_placementsnull | array
allow_downloadnull | boolean
file_namenull | string
create_timenull | string
modify_timenull | string
displayablenull | boolean
fix_task_idnull | string
flaw_typesnull | array

Meta

Field NameTypeDescription
page_infoobject

Search and filter creative assets videos records powered by Airbyte's data sync. This often provides additional fields and operators beyond what the API natively supports, making it easier to narrow down results before performing further operations. Only available in hosted mode.

Python SDK

await tiktok_marketing.creative_assets_videos.search(
query={"filter": {"eq": {"create_time": "<str>"}}}
)

API

curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "creative_assets_videos",
"action": "search",
"params": {
"query": {"filter": {"eq": {"create_time": "<str>"}}}
}
}'

Parameters

Parameter NameTypeRequiredDescription
queryobjectYesFilter and sort conditions. Supports operators: eq, neq, gt, gte, lt, lte, in, like, fuzzy, keyword, not, and, or
query.filterobjectNoFilter conditions
query.sortarrayNoSort conditions
limitintegerNoMaximum results to return (default 1000)
cursorstringNoPagination cursor from previous response's meta.cursor
fieldsarrayNoField paths to include in results

Searchable Fields

Field NameTypeDescription
create_timestringTimestamp when the video was created.
durationnumberDuration of the video in seconds.
file_namestringName of the video file.
formatstringFormat of the video file.
heightintegerHeight of the video in pixels.
modify_timestringTimestamp when the video was last modified.
sizeintegerSize of the video file in bytes.
video_cover_urlstringURL for the cover image of the video.
video_idstringID of the video.
widthintegerWidth of the video in pixels.
Response Schema
Field NameTypeDescription
dataarrayList of matching records
metaobjectPagination metadata
meta.has_morebooleanWhether additional pages are available
meta.cursorstring | nullCursor for next page of results
meta.took_msnumber | nullQuery execution time in milliseconds
data[].create_timestringTimestamp when the video was created.
data[].durationnumberDuration of the video in seconds.
data[].file_namestringName of the video file.
data[].formatstringFormat of the video file.
data[].heightintegerHeight of the video in pixels.
data[].modify_timestringTimestamp when the video was last modified.
data[].sizeintegerSize of the video file in bytes.
data[].video_cover_urlstringURL for the cover image of the video.
data[].video_idstringID of the video.
data[].widthintegerWidth of the video in pixels.