Campaign
Properties description
id
Integer
Campaign unique identification.
name
String
Campaign name defined par user during creation
state
Enum
Current state of the campaign, it can take this values : - waiting - running - paused - completed - archived
account_id
Integer
Id of the account associated to the campaign
owner_account_id
Integer
Id of the owner account or parent account generally used for agency customer campaigns.
product_id
Integer
Id of the main product of the campaign (SmartCover, SmartRead, SmartPulse or Display).
start_at
Datetime
Start of the campaign, GMT timezone
stop_at
Datetime
Stop of the campaign, GMT timezone
budget
Integer
Maximum amount of impressions to deliver during the campaign
sell_price
Decimal
Sell price to the final customer, for information only, not required.
buy_price
Decimal
Maximium CPM price used for bidding.
impressions
Integer
Amount of ad impressions (eg to ad calls).
visible_impressions
Integer
Amount of ad displayed more than 1 second on the user screen.
clicks
Integer
Amount of clicks generated by the campaign
exposure_time
Integer
Amount of seconds when the ad is displayed (at minimum 50% of his content) on user screen.
created_at
Datetime
Creation date of the campaign, GMT timezone
updated_at
Datetime
Last update of the campaign, GMT timezone
deleted_at
Datetime
Field used for softdeleting the campaign. This property is null for active campaign.
Search campaigns
GET
https://api.smartxsp.io/campaigns
Query Parameters
String
Headers
Authorization*
String
The Bearer token you get during login process.
Get campaign details
GET
https://api.smartxsp.io/campaigns/{campaign_id}
Retrieves campaign details.
Path Parameters
campaign_id*
String
The numeric id of the campaign
Headers
Authorization*
String
The Bearer token you get during login process.
Create a new campaign
POST
https://api.smartxsp.io/campaigns/
Retrieves campaign details.
Query Parameters
account_id
Integer
The account associated to the campaign. If not provided it will be the user account.
name*
String
The campaign name
start_at*
Datetime
The start of the campaign, on GMT timezone using the format "Y-m-d H:i:s" (2023-01-31 12:15:00)
stop_at*
Datetime
The end of the campaign, on GMT timezone using the same format that start_at
budget*
Integer
Amount of impressions to serve
buy_price*
Decimal
Maximum CPM price to buy on programmatic network
sell_price
Decimal
Your sell CPM value
product_id*
Integer
Id of the main product
site_countries
Array
List of country id. Target sites that deal with a country.
geo_countries
Array
List of country id. Target user localized in a country.
geo_lists
Array
List of geoList id. Target user on a postal code level
packages
Array
List of package id. Target sites on a packaged sites list
sites
Array
List of site id. Target specific website by their id.
segments
Array
List of data segment id. Target user or content based on data segments.
contexts
Array
List of contextual segment id. Target content based on contextuel content.
Headers
Authorization*
String
The Bearer token you get during login process.
Get Campaign Report
GET
https://api.smartxsp.io/campaigns{campaign_id}/report
Headers
Authorization*
String
The Bearer token you get during login process.
Path Parameters
campaign_id*
String
The numeric id of the campaign
Query Parameters
account_id
Integer
The account associated to the campaign. If not provided it will be the user account.
account_code
String
The custom account code associated to the campaign instade of the account_id
start*
Datetime
The start of the reporting
stop*
Datetime
The end of the reporting
dim_date
Boolean
Activate date dimension. If it is set to false, we will cumulate
dim_site
Boolean
Activate site (domain and id) dimension
dim_creative
Boolean
Activate creative dimension
Response
Last updated