Introductionback to top
Use this endpoint to retrieve your link data. We have modelled links using the umbrella concept of campaigns. Effectively you can think of campaigns as links. All requests require your clientId. You can find your clientId under the Account Profile section when you login to your GPN account.
This endpoint supports the following dimensions
URLback to top
Supported Formatsback to top
- XML (default)
Sample Callsback to top
Retrieve all reporting data on my links for year 2018 and group by date, filtered by USD currency. This effectively groups by day.
Retrieve all reporting data for each of my links for the year 2018, filtered by USD currency. This effectively groups the data by link id.
Retrieve all my daily link data for the year 2018 in the time zone of Asia/Jayapura excluding France, filtered by USD currency. Country filters are only applicable if you generate sales from more than one country.
Measuresback to top
The following measures are supported by the campaign endpoint.
|EventImpressions||Integer||Number of impressions logged|
|EventClicks||Integer||Number of clicks logged|
|SaleCount||Integer||Number of sales logged|
|BountyCount||Integer||Number of activations logged|
|SaleGrossAmount||Decimal||Sales gross amount in currency units|
|SaleCommissionAmount||Decimal||Sale Commission amount in currency units|
|BountyCommissionAmount||Decimal||Bounty Commission amount in currency units|
|TotalCommissionAmount||Decimal||Total Commission amount in currency units. SaleCommissionAmount added to BountyCommissionAmount|
|ConversionRate||Decimal||Ratio between sales and clicks. EventClicks divided by SalesCount|
|ClickThroughRate||Decimal||Ratio between clicks and impression. EventClicks divided by EventImpressions|
Dimensionsback to top
The following dimensions are supported by the campaign endpoint.
|Dimension Name||Default Search||Default Grouping||Description||Mandatory|
|Campaign||name||id||The campaigns. This dimension is a leaf linked to the media||No|
|Date||datetime||datetime||The date/time dimension with a granularity level of one hour||Yes|
|Name||String||The campaign name|
|Country||String||The campaign country (iso code)|
|Currency||String||The campaign currency (Iso code)|
|LandingURL||String||The campaign landing url|
|Type||String||The campaign type (possible values: FIXED, CAT, RSS, BOOKMARKLET)|
|Status||String||The campaign status (possible values: ACTIVE, INACTIVE)|
|Name||String||The media name|
|Type||String||The media type (possible values: TEXT, IMAGE, CAT, RSS, BOOKMARKLET)|
|Status||String||The media status (possible values: ACTIVE, INACTIVE)|
|Datetime||Datetime||The day and hour|
|Month||String||The month in year (eg: 2018-07)|
|MonthName||String||The month name (eg: July)|
|MonthNum||Integer||The month number (eg: 7)|
|DayOfMonth||Integer||The day in the month (eg 15 for 15th July 2018)|
|DayOfWeek||Integer||The day in the week (1 for Sunday)|
|DayOfWeekName||String||The day of week name|
|HourOfDay||Integer||The hour in the day (00 to 23)|