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>
|
Campaign ID. |
|
File link. You can also send a file using a POST request in the |
* Required
Response format
<response>
<status>
<code>{integer}</code>
<value>{string}</value>
</status>
</response>
Response parameters
|
Request processing status. For the key, see Error handling. |
|
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:
- Add a campaign.
- Get a list of campaigns.
- Delete a campaign.
- Edit a campaign.
- Get a list of campaign banners.
- Place a campaign on a site, a site section, or a placement.
Campaign ID.
File link.
You can also send a file using a POST request in the file
field.
Required