Lists campaigns for an affiliate partner, filtered by campaign category, participation state, and campaign status.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”The partner identifier used in API requests. Retrieve this value by using the Get Authorized Category Assets API.
The number of campaigns to return per page. Valid range: 1-100.
An opaque token used to retrieve the next page of a paginated result set. Retrieve this value from the result of the next_page_token from a previous response. It is not needed for the first page. Maximum page size is 100 items.
This parameter is required. The campaign status. The status is an enumerated type with values:
READYUPCOMINGONGOINGCLOSEDUNSPECIFIED
The campaign type. This is an enumerated type with values:
- MY_CAMPAIGNS
- GS_SELLING_CAMPAIGNS
- SELLER_CAMPAIGNS
- EXCLUSIVE_TIKTOK_SHOP
Default value is MY_CAMPAIGNS.
An additional filter whose valid values depend on type:
SELLER_CAMPAIGNS:query_type_filteris required. Set it toMARKETPLACEto include campaigns that the partner has not joined, orJOINEDto include only campaigns that the partner has joined. When usingMARKETPLACE, setstatustoUNSPECIFIED.EXCLUSIVE_TIKTOK_SHOP:query_type_filteris required. Set it toAVAILABLEto include campaigns that the partner is permitted to join, orJOINEDto include only campaigns that the partner has joined. For either value, setstatustoUNSPECIFIED.MY_CAMPAIGNSorGS_SELLING_CAMPAIGNS: omitquery_type_filteror set it toDEFAULT.
Responses
Section titled “Responses”Success
object
Status code; 0 means success.
Success or failure message.
Request log ID.
object
A list of campaigns.
object
The campaign identifier.
The campaign name.
The campaign status. The status is an enumerated type with values:
- READY
- UPCOMING
- ONGOING
- CLOSED
The scheduled start time in Unix epoch format for seller product registration. Note that this field can be updated when the campaign status is set to READY or UPCOMING only.
The scheduled end time in Unix epoch time format for seller product registration. This field is no longer editable when the campaign status is set to CLOSED.
The scheduled start time in Unix epoch time format for the campaign. Note that this field can be updated when the campaign status is set to READY or UPCOMING only.
The scheduled end time in Unix epoch time format for the campaign. Note that the end time must be less than 360 days from the start date. This field is no longer editable when the campaign status is set to CLOSED.
An opaque token used to retrieve the next page of a paginated result set. For the first request, omit page_token or pass an empty value. For each subsequent request, pass the previous response’s non-empty next_page_token as page_token, and keep the same category_asset_cipher, page_size, status, type, and query_type_filter values, including whether each optional parameter was omitted or provided. If next_page_token is empty, no more pages are available.
The total number of campaigns in the list.
Example
{ "code": 0, "data": { "campaigns": [ { "id": "7360590375814268715", "name": "test", "status": "READY", "registration_start_time": 1712941200, "registration_end_time": 1713891599, "campaign_start_time": 1712941200, "campaign_end_time": 1715878799 } ], "next_page_token": "cGFnZV9udW1iZXI9Mg==", "total_count": 1570 }, "message": "Success", "request_id": "202203070749000101890810281E8C70B7"}