campaign

Clone a campaign.

A new campaign created by cloning is a copy of the parent campaign that keeps all its settings, restrictions, targeting, and banners.

The differences between the new campaign and its parent campaign:

  • Start date is set to the cloning date.
  • End date is reset for the campaign and all its banners.
  • Statistics aren't copied.

Request format

https://adfox.yandex.com/api/v1
  ? object=campaign
  & action=clone
  & actionObject=campaign
  & objectID=<integer>
  & name=<string>
  & [superCampaignID=<integer>]

objectID*

ID of the campaign to clone.

name*

New campaign's name.

superCampaignID

ID of the supercampaign to clone the campaign to.

See also:

* Required

Response format

<response>
<status>
  <code>{integer}</code>
  <ID>{integer}</ID>
</status>
</response>

Response parameters

code

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

ID

New campaign's ID.

Sample request and response

Request:

https://adfox.yandex.com/api/v1?object=campaign&action=clone&actionObject=campaign&name=may_2021&objectID=474205

Response:

<response>
<status>
  <code>0</code>
  <ID>474205</ID>
</status>
</response>

Other actions with the object

See more actions with the campaign object:

Previous