file
Upload a video file to a campaign for subsequent conversion in the banner.
The file is uploaded using the POST method.
Request example
curl -k --location --request POST '<https://adfox.yandex.ru/api/v2/upload>' \
--form 'campaignId=\<campaignId\>' \
--form 'file=@/home/Videos/10sec.mp4'
Request fields:
|
Campaign ID. |
|
Banner ID. |
|
Path to video file. |
* Required parameter
Response example
{"data":"//banners.adfox.ru/00000/adfox/00000/0000000.mp4","status":"OK"}
You can use the resulting link when creating or editing a banner. To do this, pass it to the banner template in the field for a video.
Required parameter
Copied