checkCampaigns
Informs you of changes in the client's campaigns starting from the specified date.
Learn more
Request
Request structure in JSON format:
{
"method": "checkCampaigns",
"params": { /* params */
"Timestamp": (string) /* required */
}
}
Parameter |
Type |
Description |
Required |
params structure (for JSON) / CheckCampaignsRequest structure (for SOAP) |
|||
|
string |
The exact time to start from to check for changes. Specified in the format |
Yes |
Response
Response structure in JSON format:
{
"result": { /* result */
"Campaigns": [{ /* CampaignChangesItem */
"CampaignId": (long), /* required */
"ChangesIn": [( "SELF" | "CHILDREN" | "STAT" ), ... ] /* required */
}, ... ],
"Timestamp": (string) /* required */
}
}
Parameter |
Type |
Description |
result structure (for JSON) / CheckCampaignsResponse structure (for SOAP) |
||
|
array of CampaignChangesItem |
Campaigns where changes were made. |
|
string |
The exact time when changes were checked. Specified in the format |
CampaignChangesItem structure |
||
|
long |
The campaign ID. |
|
array of CampaignChangesInEnum |
Where exactly the changes occurred:
|
Examples
Checking for changes in campaigns starting from 02.02.2015 10:08:22 UTC
{
"method": "checkCampaigns",
"params": {
"Timestamp": "2015-02-02T10:08:22Z"
}
}
Response
{
"result": {
"Campaigns": [{
"CampaignId": 13243,
"ChangesIn": ["SELF"]
},
{
"CampaignId": 13326,
"ChangesIn": ["SELF","CHILDREN"]
},
{
"CampaignId": 14742,
"ChangesIn": ["CHILDREN"]
}],
"Timestamp": "2015-02-02T12:24:31Z"
}
}
Changes were made in three campaigns: campaign parameters changed in two of them, and child objects changed in two of them.