工具 API

file_temporarily_upload

Uploads a file to TikTok's temporary file repository via POST /open_api/v1.3/file/temporarily/upload/. Upload speed depends on network bandwidth. The maximum upload size is 100 MB. A successful upload returns a `file_id`, which can then be used to retrieve the file from the repository and transfer it to the Asset Library. Uploaded files remain in the repository for 24 hours only; after expiration, you must upload the file again before using it in ads.

ecommerceOAuth1 积分

调用信息

工具标识
tiktok-ads.file_temporarily_upload
服务提供方
TikTok 广告
平均响应
0 ms
近 7 天调用
0

输入参数

advertiser_id必填

Advertiser ID.

content_type必填

Type of file being uploaded.

name

File name. Maximum 100 characters. Each Chinese or Japanese character counts as three characters; each English letter counts as one character.

upload_type必填

Upload method. `URL` means you provide the source in the `url` field. Required companion fields depend on this value: `URL` requires `url`.

url

Source URL of the file, in the format `http://xxx.xxx`. Required when `upload_type` is `URL`.