URL

Add a file to an ad campaign.

Request format

https://adfox.yandex.com/api/v1
  ? object=campaign
  & action=upload
  & actionObject=URL
  & objectID=<integer>
  & URL=<string>

objectID*

Campaign ID.

URL*

File link.

You can also send a file using a POST request in the file field.

* Required

Response format

<response>
<status>
  <code>{integer}</code>
  <value>{string}</value>
</status>
</response>

Response parameters

code

Request processing status. For the key, see Error handling.

value

Added file link.

Sample request and response

Request:

https://adfox.yandex.com/api/v1?object=campaign&action=upload&actionObject=URL&objectID=1262260&URL=http://site.com/images.png

Response:

<response>
<status>
  <code>0</code>
  <value>http://banners.adfox.com/00000/adfox/00000/0000000.png</value>
</status>
</response>

Other actions with the object

See more actions with the campaign object: