Get campaign activity by location
Request
Parameter |
In |
Type |
Required |
Description |
---|---|---|---|---|
|
path |
string |
true |
The ID of the campaign that you want to get the activity by location of. |
|
path |
string |
true |
The supported file format for getting a response. Possible values: |
|
query |
string |
true |
The API key of your account. |
GET https://{hostname}/v3/campaigns/{CampaignID}/stats/countries.{Format}?apikey=
Response
Status |
Description |
Headers |
Schema |
---|---|---|---|
|
The request is successful. |
|
N/A |
{
"Code": 0,
"Error": null,
"Context": {
"Paging": {
"PageSize": 0,
"CurrentPage": 1,
"TotalResults": 0,
"TotalPageCount": 0,
"SortExpression": null,
"SortIsAscending": false
},
"Analytics": [
{
"Context": " ",
"ContextName": null,
"TotalCount": 1,
"UniqueCount": 1,
"ContextDescription": null
}
]
}
}
-
Code
- the response code. This is0
if successful. -
Error
- the response error message. This isnull
if successful. -
Context
- an object that contains all thePaging
andAnalytics
information for the campaign:-
Paging
- an object that contains the following information:-
PageSize
- the page size of the results. This is0
if not defined. -
CurrentPage
- the number of the result page. This is1
if not defined. -
Totalresults
- the number of results that are included in the response. -
TotalPageCount
- the total number of pages in your account. -
SortExpression
- the sort expression associated with the column or columns being sorted. -
SortIsAscending
- this isfalse
if the results are not displayed in ascending order based on the sort expression.
-
-
Analytics
- a list of countries where the campaign opens occurred. It contains the following information for each country:-
Context
- the country code. -
ContextName
- the name of the country. -
TotalCount
- the total number of campaign opens. -
UniqueCount
- The total number of unique campaign opens. -
ContextDescription
- this isnull
for this case.
-
-