-
Notifications
You must be signed in to change notification settings - Fork 0
List the campaigns
Using our REST API, you can easily list all the campaigns of a site. Here’s the format of the URL:
https://apirest.atinternet-solutions.com/rest/config/v1/campaign/campaigns?keys={siteid:547837}
Please refer to this note if you’re using SSO to login to AT Internet services.
Once asked, you should fill in your Analytics Suite credentials to login and get access to the campaigns of the site.
Here’s the answer format (JSON array):
[{
"Id": 1,
"SiteId": 547837,
"Label": "Campaign A",
"StartDate": "2013-02-03T10:57:00",
"EndDate": null,
"SourceId": 32
}, {
"Id": 2,
"SiteId": 547837,
"Label": "Campaign B",
"StartDate": "2016-09-07T16:11:00",
"EndDate": null,
"SourceId": 31
}]Here are the labels descriptions:
- Id: unique identifier of the campaign;
- SiteId: unique identifier of the site (it matches the one provided in the siteid parameter of the URL);
- Label: campaign label, provided when creating the campaign;
- StartDate: creation date of the campaign;
- EndDate: end date of the campaign, it returns null when the campaign is still active;
- SourceId: campaign type, you may refer to this list to retrieve the Source Label.
You may need to list only certain types of campaigns (e.g. only the email campaigns). To do so, use this method to list all the campaign types and get the traffic source IDs you need.
Then, you can all the following URL to filter the campaign per traffic source:
https://apirest.atinternet-solutions.com/rest/config/v1/campaign/campaigns?keys={siteid:547837}&filter={sourceid:{$in:{31,32,33}}}
Please refer to this note if you’re using SSO to login to AT Internet services.
All users with standard access are able to use this service. Users with custom access aren’t allowed.
Last update: 22/01/2019
-
Data API
- Data flow
- Advice optimizations data flow
- Error codes data flow
- Faq data flow
- General information data flow
- Technical information data flow
- Reporting API v3
- Getting started
- Methods
- Parameters
- Technical information
- REST API
- Campaigns
- Custom variables
- Getting started rest
- Methods rest
- Response structure parameters rest
- Fixed periods
- Parameters compatibility
- Relative periods
- Structure of the response
- “code” parameter
- “columns” parameter
- “evo” parameter
- “filter” parameter
- “include” parameter
- “lng” parameter
- “max-results” parameter
- “page-num” parameter
- “period” parameter
- “period” parameter: “H” v. “He” & “MN” v. “MNe”
- “retention” parameter
- “segmentdesc” parameter
- “segment” parameter
- “sep” parameter
- “sort” parameter
- “space” parameter
- Technical specifications rest
- Data flow
-
Data collection
- Android
- Advanced features
- Campaigns
- Changelog
- Content
- Ecommerce
- Getting started
- Users
- Apple
- Advanced features
- Campaigns
- Changelog
- Content
- Ecommerce
- Getting started
- Users
- General
- Cddc renew staging process
- Changelog
- Craft your hit
- Encoded parameters
- Server side cookie management
- Supported taggings
- Tagging deletion
- Utilisation of dispatch sdks
- JavaScript
- Advanced features
- Campaigns
- Changelog
- Content
- Ecommerce
- Getting started
- Partners javascript
- Users
- Piano Analytics
- Event tagging piano analytics
- Getting started piano analytics
- Piano analytics tagging
- Feeding piano analytics with as2 tagging
- Tagging custom properties sdk
- Android