campaign
Get a list of campaigns.
Request format
Note
Pagination available.
https://adfox.yandex.com/api/v1
? object=account
& action=list
& actionObject=campaign
& [actionObjectID=<integer>]
& [superCampaignID=<integer>]
& [dateAddedFrom=<YYYY-MM-DD>]
& [dateAddedTo=<YYYY-MM-DD>]
& [show=<string>]
& [search=<string>]
& [criteriaID=<integer>]
& [showMode=<string>]
|
To get data for only one campaign, specify its ID. Default value: |
|
Filter by super campaign ID. |
|
Data filtering: show campaigns created after the specified date. Date format: |
|
Data filtering: show campaigns created before the specified date. Date format: |
|
This parameter is used to specify the degree of data completeness in the list of campaigns and to display the targeting settings of a certain campaign. Configuring data completeness in the list of campaigns: Acceptable values:
Default value: Configuring the display of targeting settings of a certain campaign: Required parameter: Forbidden: Acceptable values:
|
|
Filtering by substring in a super campaign name. An entry can contain Russian and Latin letters, numbers, and any special characters. |
|
Only required for getting data on custom targeting ( User characteristic ID. Acceptable values: |
|
Only used for getting data on custom targeting ( You can use it to display the list of allowed and/or prohibited values of a specified user characteristic in the ad campaign. Acceptable values:
Default value: |
* Required
Response format
<response>
<status>
<code>{integer}</code>
</status>
<result>
<data>
<row0>
<ID>{integer}</ID>
<name>{string}</name>
<superCampaignID>{integer}</superCampaignID>
<superCampaignName>{string}</superCampaignName>
<advertiserID>{integer}</advertiserID>
<advertiserAccount>{string}</advertiserAccount>
<assistantID>{integer}</assistantID>
<assistantAccount>{string}</assistantAccount>
<additionalAdvertiserIDs>{integer}</additionalAdvertiserIDs>
<additionalAdvertiserAccounts>{string}</additionalAdvertiserAccounts>
<additionalAssistantIDs>{integer}</additionalAssistantIDs>
<additionalAssistantAccounts>{string}</additionalAssistantAccounts>
<status>{integer}</status>
<level>{integer}</level>
<sequence>{integer}</sequence>
<priority>{integer}</priority>
<type>{integer}</type>
<tracingPointsType>{integer}</tracingPointsType>
<targetingProfileID>{integer}</targetingProfileID>
<isSession>{integer}</isSession>
<outerMarkID>{integer}</outerMarkID>
<bannerSequence>{integer}</bannerSequence>
<scenarioPeriodID>{integer}</scenarioPeriodID>
<impressionsMethodID>{integer}</impressionsMethodID>
<impressionsSmoothTypeID>{integer}</impressionsSmoothTypeID>
<clicksSmoothTypeID>{integer}</clicksSmoothTypeID>
<isTrafficSmooth>{integer}</isTrafficSmooth>
<maxImpressions>{integer}</maxImpressions>
<maxClicks>{integer}</maxClicks>
<impressionsAll>{integer}</impressionsAll>
<clicksAll>{integer}</clicksAll>
<impressionsToday>{integer}</impressionsToday>
<clicksToday>{integer}</clicksToday>
<maxImpressionsPerDay>{integer}</maxImpressionsPerDay>
<maxClicksPerDay>{integer}</maxClicksPerDay>
<maxImpressionsPerHour>{integer}</maxImpressionsPerHour>
<maxClicksPerHour>{integer}</maxClicksPerHour>
<impressionsPerHour>{integer}</impressionsPerHour>
<clicksPerHour>{integer}</clicksPerHour>
<mainPointID>{integer}</mainPointID>
<dateStart>{date}</dateStart>
<dateEnd>{date}</dateEnd>
<dateFinished>{date}</dateFinished>
<dateAdded>{date}</dateAdded>
<common_profile_id>{integer}</common_profile_id>
<costType>{integer}</costType>
<sendToErir>{integer}</sendToErir>
<contractID>{integer}</contractID>
<okveds>
<row0>{string}</row0>
<row1>{string}</row1>
</okveds>
<markingAdvertiserInfo>{string}</markingAdvertiserInfo>
</row0>
</data>
</result>
</response>
Response parameters
|
Request processing status. If the value is |
|
Number of items in the response tree. |
|
Item number in the response tree, where N is a number from 0 to rows-1 (where |
|
Unique ID of the campaign. |
|
Campaign name. |
|
ID of the super campaign that the campaign belongs to. |
|
Name of the super campaign that the campaign belongs to. |
|
Advertiser ID. |
|
Advertiser's account. |
|
ID of the assistant that the campaign is assigned to. |
|
Account of the assistant that the campaign is assigned to. |
|
IDs of additional advertisers. |
|
Accounts of additional advertisers. |
|
IDs of additional assistants. |
|
Accounts of additional assistants. |
|
Campaign level. |
|
Campaign priority. |
|
Status. Acceptable values:
|
|
Group. |
|
Campaign type. Deprecated parameter. Acceptable values:
|
|
Action tracking. Acceptable values:
|
|
Targeting profile ID. |
|
Acceptable values:
|
|
Automatic tag substitution for click links is enabled. Acceptable values:
|
|
Banner impression sequence. Deprecated parameter. Acceptable values:
|
|
The scenario period determines the frequency of repeated banner impressions in this ad campaign for a unique user. Deprecated parameter. Required if banners are selected sequentially ( Acceptable values:
|
|
Impression count method. Acceptable values:
|
|
Impression running speed. Acceptable values:
|
|
Click delivery speed. Acceptable values:
|
|
Maximum number of impressions. |
|
Tag information. Total number of impressions. |
|
Maximum number of impressions per day. |
|
Tag information. Number of impressions on the current day. |
|
Maximum number of impressions per hour. |
|
Tag information. Number of impressions in the current hour. |
|
Maximum total number of clicks. |
|
Tag information. Total number of clicks. |
|
Maximum number of clicks per day. |
|
Tag information. Number of clicks on the current day. |
|
Maximum number of clicks per hour. |
|
Tag information. Number of clicks in the current hour. |
|
Delivery start date. |
|
Delivery end date. |
|
Delivery completion date. |
|
Add date. |
|
General profile ID for |
|
Campaign type. Acceptable values:
|
|
Submit data to the Russian state register. Acceptable values:
|
|
Contract identifier. This parameter is required if |
|
OKVED code of the advertised product. |
|
Information about the advertiser in the banner menu. |
Sample request and response
Request:
https://adfox.yandex.com/api/v1?object=account&action=list&actionObject=campaign
Response:
<response> <status> <code>0</code> </status> <result> <data> <row0> <ID>474205</ID> <name>example</name> <superCampaignID/> <superCampaignName/> <advertiserID>226201</advertiserID> <advertiserAccount>ivanov</advertiserAccount> <assistantID>239097</assistantID> <assistantAccount>petrov</assistantAccount> <additionalAdvertiserIDs/> <additionalAdvertiserAccounts/> <additionalAssistantIDs/> <additionalAssistantAccounts/> <status>0</status> <level>1</level> <sequence>1</sequence> <priority>100</priority> <type>1</type> <tracingPointsType>0</tracingPointsType> <targetingProfileID>0</targetingProfileID> <isSession>0</isSession> <outerMarkID>0</outerMarkID> <bannerSequence>0</bannerSequence> <scenarioPeriodID>0</scenarioPeriodID> <impressionsMethodID>0</impressionsMethodID> <impressionsSmoothTypeID>0</impressionsSmoothTypeID> <clicksSmoothTypeID>0</clicksSmoothTypeID> <isTrafficSmooth>0</isTrafficSmooth> <maxImpressions>0</maxImpressions> <maxClicks>0</maxClicks> <impressionsAll>0</impressionsAll> <clicksAll>0</clicksAll> <impressionsToday>0</impressionsToday> <clicksToday>0</clicksToday> <maxImpressionsPerDay>0</maxImpressionsPerDay> <maxClicksPerDay>0</maxClicksPerDay> <maxImpressionsPerHour>0</maxImpressionsPerHour> <maxClicksPerHour>0</maxClicksPerHour> <impressionsPerHour>0</impressionsPerHour> <clicksPerHour>0</clicksPerHour> <mainPointID>0</mainPointID> <dateStart>2021-05-18 13:00:00</dateStart> <dateEnd/> <dateFinished>0000-00-00 00:00:00</dateFinished> <dateAdded>2021-05-18</dateAdded> <common_profile_id>525</common_profile_id> <costType>1</costType> <sendToErir>1</sendToErir> <contractID>139</contractID> <okveds></okveds> <markingAdvertiserInfo>OOO Romashka OGRN 1231231</markingAdvertiserInfo> </row0> </data> </result> </response>
Other actions with the object
See more actions with the campaign
object:
- Add a campaign.
- Delete a campaign.
- Edit a campaign.
- Get a list of campaign banners.
- Place a campaign on a site, a site section, or a placement.
- Add a contractor.
- Add a contract.
Only used for getting data on custom targeting (show=targetingUser
).
You can use it to display the list of allowed and/or prohibited values of a specified user characteristic in the ad campaign.
Acceptable values:
-
denied
: Only show prohibited values. -
allowed
: Only show allowed values. -
all
: Show all values with a breakdown into allowed and prohibited ones.
Default value: denied
.
Required
To get data for only one campaign, specify its ID.
Default value: 0
(display the list of all campaigns).
Filter by super campaign ID.
Data filtering: show campaigns created after the specified date.
Date format: YYYY-MM-DD
.
Data filtering: show campaigns created before the specified date.
Date format: YYYY-MM-DD
.
This parameter is used to specify the degree of data completeness in the list of campaigns and to display the targeting settings of a certain campaign.
Configuring data completeness in the list of campaigns:
Acceptable values:
-
advanced
(full display format). -
common
(brief display format):ID
.name
.
-
short
(limited display format):ID
.name
.superCampaignID
.status
.dateStart
.dateEnd
.dateFinished
.
Default value: advanced
.
Configuring the display of targeting settings of a certain campaign:
Required parameter: actionObjectID
.
Forbidden: dateAddedFrom
, dateAddedTo
, and search
.
Acceptable values:
-
targetingTime
: Targeting by time. -
targetingFrequency
: Targeting by frequency. -
targetingBehavior
: Targeting by behavior. -
targetingGeobase
: Targeting by geography. -
targetingSearch
: Targeting by search queries. -
targetingGender
: Targeting by gender. -
targetingAge
: Targeting by age. -
targetingRevenue
: Targeting by income. -
targetingUser
: Additional targeting. Additional parameters:criteriaID
andshowMode
.
Filtering by substring in a super campaign name.
An entry can contain Russian and Latin letters, numbers, and any special characters.
Only required for getting data on custom targeting (show=targetingUser
).
User characteristic ID.
Acceptable values: from 1 to 63
.