Upload Creatives
PS: You need to use Token to change the status, for more details, please check Token
Through this interface, you could update creatives to get MD5, and then apply in offers.
Request Address
Upload Image / Upload Video
https://ss-storage-api.mintegral.com/api/open/v1/creatives/upload
Upload Playable
https://ss-storage-api.mintegral.com/api/open/v1/playable/upload
Request Method
POST
Request Example
json
POST /api/open/v1/creatives/upload
HTTP/1.1 Host: ss-storage-api.mintegral.com
Content-Type: multipart/form-data;boundary=xxxx
Request Parameter
Fields | Type | Explanations | Default Value | Examples |
---|---|---|---|---|
file | file | Creative file detail. If md5 of file is already existed, error happened. | — | — |
Response
Fields | Type | Explanations |
---|---|---|
code | int | 200 code, is success. Others, are fail. |
msg | string | If success, return to "success". If fail, return to detailed wrong info. |
data | json | If success, return to creative data. If fail, return to detailed wrong info. |
creative_md5 | string | MD5 for creative which has been uploaded successfully. |
creative_name | string | Creative name, please note, creative name must be letters, digits, or the underscore |
Response Example
json
{
"msg": "success",
"code": 200,
"data": {
"creative_md5": "0a6335cd9151ac5dc79ad996f4e12674",
"creative_name": "creative_test.png"
}
}