Routes
This page provides detailed descriptions for available API routes. See also the index for a compact view.
Authentication
Routes to manage (programmatic) API keys and tokens
ApiTokenResource
POST
- POST /v3/auth/token
Create a new API token (a.k.a. access token).
Response Data (single object, json or csv or xlsx)
Name
Type
Description
token
String
Session token to be used as bearer token for API interaction.
Example
POST /v3/auth/token HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Basic U2FNcExFMEtlWTpzQW1QbGUwU2VDckV0NDMyMQ==
curl -i -X POST https://api.adspert.net/v3/auth/token -H "Accept: application/json" --user SaMpLE0KeY:sAmPle0SeCrEt4321
http POST https://api.adspert.net/v3/auth/token Accept:application/json -a SaMpLE0KeY:sAmPle0SeCrEt4321
requests.post('https://api.adspert.net/v3/auth/token', headers={'Accept': 'application/json'}, auth=('SaMpLE0KeY', 'sAmPle0SeCrEt4321'))
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": { "token": "pariatur sit" }, "meta": {} }
DELETE
- DELETE /v3/auth/token
Delete the API token which is used to authenticate this request.
Example
DELETE /v3/auth/token HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl -i -X DELETE https://api.adspert.net/v3/auth/token -H "Accept: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
http DELETE https://api.adspert.net/v3/auth/token Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.delete('https://api.adspert.net/v3/auth/token', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": null, "meta": {} }
ApiKeyCollection
GET
- GET /v3/auth/keys
Retrieve API keys for authenticated user.
Query Params
Name
Type
Description
include
Fields to include in response data.
exclude
Fields to exclude in response data.
filter_active
[ Boolean ]
Only return results matching given
active
values.filter_created_at_ge
Only return results where
created_at
is equal or greater than this value.filter_created_at_le
Only return results where
created_at
is equal or lower than this value.filter_last_used_at_ge
Only return results where
last_used_at
is equal or greater than this value.filter_last_used_at_le
Only return results where
last_used_at
is equal or lower than this value.search_fields
Fields that should be searched using the
search_term
.search_term
String
Search term used to search the
search_fields
.search_key_id
String
Only return results where
key_id
matches the given string.search_name
String
Only return results where
name
matches the given string.sort_active
Sort results by
active
.sort_created_at
Sort results by
created_at
.sort_key_id
Sort results by
key_id
.sort_last_used_at
Sort results by
last_used_at
.sort_name
Sort results by
name
.offset
Integer
Start index for result list.
Default: 0
Min value: 0
limit
Integer
Maximum number of results to return. The maximum allowed value depends on the response media type (10000 for JSON and 100000 for tabular formats like CSV).
Default: 10
Min value: 1
Response Data (object list, json or csv or xlsx)
Name
Type
Description
name
searchable
String
key_id
searchable
String
active
Boolean
created_at
last_used_at
Example
GET /v3/auth/keys?filter_last_used_at_ge=2018-10-21&sort_last_used_at=9&offset=0 HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl -i -X GET 'https://api.adspert.net/v3/auth/keys?filter_last_used_at_ge=2018-10-21&sort_last_used_at=9&offset=0' -H "Accept: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
http 'https://api.adspert.net/v3/auth/keys?filter_last_used_at_ge=2018-10-21&sort_last_used_at=9&offset=0' Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.get('https://api.adspert.net/v3/auth/keys?filter_last_used_at_ge=2018-10-21&sort_last_used_at=9&offset=0', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": [ { "name": "tucan lorem", "key_id": "vehicula lorem", "active": true, "created_at": "2018-10-21T16:45:23+02:00", "last_used_at": "2018-10-21T16:45:23+02:00" } ], "meta": { "pagination": { "offset": 0, "limit": 10, "total": 74, "sort": { "name": 1 } } } }
POST
- POST /v3/auth/keys
Create a new API key for the authenticated user.
The response is the only time that the API reveals the key’s secret!
Responds with a 409 if a key with a similar name already exists.
Request Data (single object, json or csv)
Name
Type
Description
name
required
String
Response Data (single object, json or csv or xlsx)
Name
Type
Description
name
String
key_id
String
active
Boolean
secret
String
created_at
last_used_at
Example
POST /v3/auth/keys HTTP/1.1 Host: api.adspert.net Accept: application/json Content-Type: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5... { "name": "tucan lorem" }
curl -i -X POST https://api.adspert.net/v3/auth/keys -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..." --data-raw '{"name": "tucan lorem"}'
echo '{ "name": "tucan lorem" }' | http POST https://api.adspert.net/v3/auth/keys Accept:application/json Content-Type:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.post('https://api.adspert.net/v3/auth/keys', headers={'Accept': 'application/json', 'Content-Type': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'}, json={'name': 'tucan lorem'})
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": { "name": "tucan lorem", "key_id": "vehicula lorem", "active": true, "secret": "lorem dolor", "created_at": "2018-10-21T16:45:23+02:00", "last_used_at": "2018-10-21T16:45:23+02:00" }, "meta": {} }
PATCH
- PATCH /v3/auth/keys
Update the authenticated user’s API keys.
Responds with a 409 if a key name change would result in multiple keys with the same name.
Request Data (object list, json or csv)
Name
Type
Description
name
String
key_id
required
String
active
Boolean
Response Data (single object, json or csv or xlsx)
Name
Type
Description
unchanged
[ Object ]
List of objects which had no effective change.
⤷
name
String
See request data description.
⤷
key_id
String
See request data description.
⤷
active
Boolean
See request data description.
unknown
[ Object ]
List of objects which could not be found.
⤷
name
String
See request data description.
⤷
key_id
String
See request data description.
⤷
active
Boolean
See request data description.
updated
[ Object ]
List of objects which have been updated.
⤷
name
String
See request data description.
⤷
key_id
String
See request data description.
⤷
active
Boolean
See request data description.
Example
PATCH /v3/auth/keys HTTP/1.1 Host: api.adspert.net Accept: application/json Content-Type: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5... [ { "name": "tucan lorem", "key_id": "vehicula lorem", "active": true } ]
curl -i -X PATCH https://api.adspert.net/v3/auth/keys -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..." --data-raw '[{"name": "tucan lorem", "key_id": "vehicula lorem", "active": true}]'
echo '[ { "active": true, "key_id": "vehicula lorem", "name": "tucan lorem" } ]' | http PATCH https://api.adspert.net/v3/auth/keys Accept:application/json Content-Type:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.patch('https://api.adspert.net/v3/auth/keys', headers={'Accept': 'application/json', 'Content-Type': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'}, json=[{'name': 'tucan lorem', 'key_id': 'vehicula lorem', 'active': True}])
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": { "unchanged": [ { "name": "tucan lorem", "key_id": "vehicula lorem", "active": true } ], "unknown": [ { "name": "tucan lorem", "key_id": "vehicula lorem", "active": true } ], "updated": [ { "name": "tucan lorem", "key_id": "vehicula lorem", "active": true } ] }, "meta": {} }
DELETE
- DELETE /v3/auth/keys
Delete API keys for the authenticated user.
Request Data (object list, json or csv)
Name
Type
Description
key_id
required
String
Response Data (single object, json or csv or xlsx)
Name
Type
Description
deleted
[ Object ]
List of objects which have been deleted.
⤷
name
String
See request data description.
⤷
key_id
String
See request data description.
⤷
active
Boolean
See request data description.
unknown
[ Object ]
List of objects which could not be found.
⤷
name
String
See request data description.
⤷
key_id
String
See request data description.
⤷
active
Boolean
See request data description.
Example
DELETE /v3/auth/keys HTTP/1.1 Host: api.adspert.net Accept: application/json Content-Type: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5... [ { "key_id": "vehicula lorem" } ]
curl -i -X DELETE https://api.adspert.net/v3/auth/keys -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..." --data-raw '[{"key_id": "vehicula lorem"}]'
echo '[ { "key_id": "vehicula lorem" } ]' | http DELETE https://api.adspert.net/v3/auth/keys Accept:application/json Content-Type:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.delete('https://api.adspert.net/v3/auth/keys', headers={'Accept': 'application/json', 'Content-Type': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'}, json=[{'key_id': 'vehicula lorem'}])
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": { "deleted": [ { "name": "tucan lorem", "key_id": "vehicula lorem", "active": true } ], "unknown": [ { "name": "tucan lorem", "key_id": "vehicula lorem", "active": true } ] }, "meta": {} }
TokenInvalidationAction
POST
- POST /v3/auth/invalidate-tokens
Invalidate API tokens (sessions) for the authenticated user.
This includes one-time tokens like used for password reset mails.
The token used to authenticate the current request is preserved!
Example
POST /v3/auth/invalidate-tokens HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl -i -X POST https://api.adspert.net/v3/auth/invalidate-tokens -H "Accept: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
http POST https://api.adspert.net/v3/auth/invalidate-tokens Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.post('https://api.adspert.net/v3/auth/invalidate-tokens', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": null, "meta": {} }
Customers
CustomerCollection
GET
- GET /v3/customers
Retrieve a list of customers.
- Auth mode:
- Access level:
user – some fields require access level elevation to customer-admin
Query Params
Name
Type
Description
include
Fields to include in response data.
exclude
Fields to exclude in response data.
filter_access
[ UserRole ]
Only return results matching given
access
values.filter_account_move_in_progress
[ Boolean ]
Only return results matching given
account_move_in_progress
values.filter_allow_self_service_checkout
[ Boolean ]
Only return results matching given
allow_self_service_checkout
values.filter_allow_start_optimization
[ Boolean ]
Only return results matching given
allow_start_optimization
values.filter_archived
[ Boolean ]
Only return results matching given
archived
values.filter_canceled
[ Boolean ]
Only return results matching given
canceled
values.filter_canceled_due_ge
Only return results where
canceled_due
is equal or greater than this value.filter_canceled_due_le
Only return results where
canceled_due
is equal or lower than this value.filter_country_code
[ String ]
Only return results matching given
country_code
values.Min access level: customer-admin
filter_created_at_ge
Only return results where
created_at
is equal or greater than this value.filter_created_at_le
Only return results where
created_at
is equal or lower than this value.filter_customer_id
[ Integer ]
Only return results matching given
customer_id
values.filter_is_demo
[ Boolean ]
Only return results matching given
is_demo
values.filter_main_customer_id
[ Integer ]
Only return results matching given
main_customer_id
values.filter_notifications
[ Boolean ]
Only return results matching given
notifications
values.filter_trial
[ Boolean ]
Only return results matching given
trial
values.filter_trial_end_ge
Only return results where
trial_end
is equal or greater than this value.filter_trial_end_le
Only return results where
trial_end
is equal or lower than this value.filter_trial_start_ge
Only return results where
trial_start
is equal or greater than this value.filter_trial_start_le
Only return results where
trial_start
is equal or lower than this value.filter_type
[ CustomerType ]
Only return results matching given
type
values.search_fields
Fields that should be searched using the
search_term
.search_term
String
Search term used to search the
search_fields
.search_customer_id
String
Only return results where
customer_id
matches the given string.search_email
String
Only return results where
email
matches the given string.Min access level: customer-admin
search_main_customer_id
String
Only return results where
main_customer_id
matches the given string.search_name
String
Only return results where
name
matches the given string.search_tags_system
String
Only return results where
tags_system
matches the given string.search_tags_user
String
Only return results where
tags_user
matches the given string.sort_access
Sort results by
access
.sort_agency_admins_count
Sort results by
agency_admins_count
.Min access level: customer-admin
sort_agency_clients_count
Sort results by
agency_clients_count
.Min access level: customer-admin
sort_billing_subsidiaries_count
Sort results by
billing_subsidiaries_count
.Min access level: customer-admin
sort_canceled
Sort results by
canceled
.sort_canceled_due
Sort results by
canceled_due
.sort_country_code
Sort results by
country_code
.Min access level: customer-admin
sort_created_at
Sort results by
created_at
.sort_customer_id
Sort results by
customer_id
.sort_email
Sort results by
email
.Min access level: customer-admin
sort_main_customer_id
Sort results by
main_customer_id
.sort_name
Sort results by
name
.sort_notifications
Sort results by
notifications
.sort_trial
Sort results by
trial
.sort_trial_end
Sort results by
trial_end
.sort_trial_start
Sort results by
trial_start
.sort_type
Sort results by
type
.sort_unread_notifications_count
Sort results by
unread_notifications_count
.offset
Integer
Start index for result list.
Default: 0
Min value: 0
limit
Integer
Maximum number of results to return. The maximum allowed value depends on the response media type (10000 for JSON and 100000 for tabular formats like CSV).
Default: 10
Min value: 1
Response Data (object list, json or csv or xlsx)
Name
Type
Description
customer_id
searchable
Integer
ID of the customer that this account belongs to.
type
main_customer_id
searchable
Integer
Parent customer of the customer (or the account’s customer).
If the customer is a main customer, it’s the ID of the customer itself.
main_customer_name
String
If the customer type is not
MAIN
, then this refers to the corresponding main customer.Min access level: customer-admin
billing_subsidiaries_count
Integer
Number of billing subsidiary sub customers.
Min access level: customer-admin
agency_clients_count
Integer
Number of agency client sub customers.
Min access level: customer-admin
agency_admins_count
Integer
Number of users with agency admin access on the customer.
Min access level: customer-admin
account_move_in_progress
Boolean
If accounts of this customer are currently moved to another customer.
name
searchable
String
Name of the customer’s business (billing addressee).
email
searchable
Primary e-mail contact for billing purposes.
Min access level: customer-admin
address_1
String
Billing address: line 1.
Min access level: customer-admin
address_2
String
Billing address: line 2.
Min access level: customer-admin
zip
String
Billing address: postal code.
Min access level: customer-admin
city
String
Billing address: city.
Min access level: customer-admin
country_code
String
Billing address: two letter country code (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2).
Min access level: customer-admin
invoice_language
Min access level: customer-admin
order_number
String
Order number chosen by customer to appear on invoices.
Min access level: customer-admin
vat_id
String
VAT-ID of the customer’s business.
Min access level: customer-admin
vat_id_valid
Boolean
VAT-ID validation status.
null
means the ID is not yet validated.Validation happens asynchronously, this is why no prompt feedback during a
PATCH
request can be given.Min access level: customer-admin
allow_self_service_checkout
Boolean
If the customer can start a subscription in self-service or not. If disabled, subscriptions are managed by the CSM team.
trial_start
Start date for the period where the customer is optimized but not charged.
NOTE: Creating a subscription automatically adjusts trial periods if trial and subscription periods overlap. The subscription is the authority here.
trial_end
Last day of the period where the customer is optimized but not charged. What happens after that date depends:
After that date, optimization will be disabled, until a subscription starts. So if there is a subscription starting the next day, there will be no gap in optimization.
NOTE: Creating a subscription automatically adjusts trial periods if trial and subscription periods overlap. The subscription is the authority here.
trial
Boolean
If the customer is currently within a trial.
canceled_due
Customer cancelation date (equals end date of the customer’s subscription, if there is one). Once passed, the customer is in a canceled state.
When setting this field, the earliest allowed date is “yesterday” or the customer’s trial end date (if set), whatever is more recent.
Agency admin customers can only set this on sub-customers of the agency’s main Adspert customer.
This field is not editable if a customer has a subscription! In that case the subscription’s end date dictates cancelation. Use
/v3/customer/.../subscription
to control cancelation.canceled
Boolean
If the customer is in a canceled state (canceled_due is set and in the past, or the customer is archived).
allow_start_optimization
Boolean
If optimization of ad accounts for this customer may be started.
metric_currency
Default currency for displaying cross-account performance metrics (when no user-specific currency setting exists).
archived
Boolean
Flag indicating if this customer is in archived state. An archived customer cannot be modified.
created_at
Date of the customer creation.
is_demo
Boolean
Is this a demo customer?
tags_user
searchable
[ String ]
List of user tags set on this customer.
tags_system
searchable
[ String ]
List of system tags set on this customer.
access
The authenticated user’s effective role in context of the customer.
notifications
Boolean
If the authenticated user can see notifications for this customer.
unread_notifications_count
Integer
Number of unread notifications on the customer for the authenticated user.
Example
GET /v3/customers?sort_trial_start=-8&search_main_customer_id=sit+ipsum&sort_trial_end=7 HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5... X-Adspert-Access-Level: CUSTOMER-ADMIN
curl -i -X GET 'https://api.adspert.net/v3/customers?sort_trial_start=-8&search_main_customer_id=sit+ipsum&sort_trial_end=7' -H "Accept: application/json" -H "X-Adspert-Access-Level: CUSTOMER-ADMIN" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
http 'https://api.adspert.net/v3/customers?sort_trial_start=-8&search_main_customer_id=sit+ipsum&sort_trial_end=7' Accept:application/json X-Adspert-Access-Level:"CUSTOMER-ADMIN" Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.get('https://api.adspert.net/v3/customers?sort_trial_start=-8&search_main_customer_id=sit+ipsum&sort_trial_end=7', headers={'Accept': 'application/json', 'X-Adspert-Access-Level': 'CUSTOMER-ADMIN', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": [ { "customer_id": 2022024680, "type": "AGENCY-CLIENT", "main_customer_id": 2022024680, "main_customer_name": "adlora tucan", "billing_subsidiaries_count": 9885699150, "agency_clients_count": 1485799544, "agency_admins_count": 1478096067, "account_move_in_progress": true, "name": "tucan lorem", "email": "ipsum@example.com", "address_1": "adlora dolor", "address_2": "tucan adlora", "zip": "vehicula ipsum", "city": "vehicula amet", "country_code": "nl", "invoice_language": "DE", "order_number": "amet sit", "vat_id": "amet elit", "vat_id_valid": true, "allow_self_service_checkout": true, "trial_start": "2018-10-21", "trial_end": "2018-10-21", "trial": true, "canceled_due": "2018-10-21", "canceled": true, "allow_start_optimization": true, "metric_currency": "AED", "archived": true, "created_at": "2018-10-21", "is_demo": true, "tags_user": [ "dolor elit" ], "tags_system": [ "dolor vehicula" ], "access": "AGENCY-ADMIN", "notifications": true, "unread_notifications_count": 1380600209 } ], "meta": { "pagination": { "offset": 0, "limit": 10, "total": 74, "sort": { "customer_id": 1 } } } }
CustomerResource
GET
- GET /v3/customers/(customer_id: int)
Retrieve a single customer.
- Auth mode:
- Access level:
user – some fields require access level elevation to customer-admin
Query Params
Name
Type
Description
include
Fields to include in response data.
exclude
Fields to exclude in response data.
Response Data (single object, json or csv or xlsx)
Name
Type
Description
customer_id
Integer
ID of the customer that this account belongs to.
type
main_customer_id
Integer
Parent customer of the customer (or the account’s customer).
If the customer is a main customer, it’s the ID of the customer itself.
main_customer_name
String
If the customer type is not
MAIN
, then this refers to the corresponding main customer.Min access level: customer-admin
billing_subsidiaries_count
Integer
Number of billing subsidiary sub customers.
Min access level: customer-admin
agency_clients_count
Integer
Number of agency client sub customers.
Min access level: customer-admin
agency_admins_count
Integer
Number of users with agency admin access on the customer.
Min access level: customer-admin
account_move_in_progress
Boolean
If accounts of this customer are currently moved to another customer.
name
String
Name of the customer’s business (billing addressee).
email
Primary e-mail contact for billing purposes.
Min access level: customer-admin
address_1
String
Billing address: line 1.
Min access level: customer-admin
address_2
String
Billing address: line 2.
Min access level: customer-admin
zip
String
Billing address: postal code.
Min access level: customer-admin
city
String
Billing address: city.
Min access level: customer-admin
country_code
String
Billing address: two letter country code (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2).
Min access level: customer-admin
invoice_language
Min access level: customer-admin
order_number
String
Order number chosen by customer to appear on invoices.
Min access level: customer-admin
vat_id
String
VAT-ID of the customer’s business.
Min access level: customer-admin
vat_id_valid
Boolean
VAT-ID validation status.
null
means the ID is not yet validated.Validation happens asynchronously, this is why no prompt feedback during a
PATCH
request can be given.Min access level: customer-admin
allow_self_service_checkout
Boolean
If the customer can start a subscription in self-service or not. If disabled, subscriptions are managed by the CSM team.
trial_start
Start date for the period where the customer is optimized but not charged.
NOTE: Creating a subscription automatically adjusts trial periods if trial and subscription periods overlap. The subscription is the authority here.
trial_end
Last day of the period where the customer is optimized but not charged. What happens after that date depends:
After that date, optimization will be disabled, until a subscription starts. So if there is a subscription starting the next day, there will be no gap in optimization.
NOTE: Creating a subscription automatically adjusts trial periods if trial and subscription periods overlap. The subscription is the authority here.
trial
Boolean
If the customer is currently within a trial.
canceled_due
Customer cancelation date (equals end date of the customer’s subscription, if there is one). Once passed, the customer is in a canceled state.
When setting this field, the earliest allowed date is “yesterday” or the customer’s trial end date (if set), whatever is more recent.
Agency admin customers can only set this on sub-customers of the agency’s main Adspert customer.
This field is not editable if a customer has a subscription! In that case the subscription’s end date dictates cancelation. Use
/v3/customer/.../subscription
to control cancelation.canceled
Boolean
If the customer is in a canceled state (canceled_due is set and in the past, or the customer is archived).
allow_start_optimization
Boolean
If optimization of ad accounts for this customer may be started.
metric_currency
Default currency for displaying cross-account performance metrics (when no user-specific currency setting exists).
archived
Boolean
Flag indicating if this customer is in archived state. An archived customer cannot be modified.
created_at
Date of the customer creation.
features
[ String ]
Features enabled for the customer.
is_demo
Boolean
Is this a demo customer?
tags_user
[ String ]
List of user tags set on this customer.
tags_system
[ String ]
List of system tags set on this customer.
access
The authenticated user’s effective role in context of the customer.
notifications
Boolean
If the authenticated user can see notifications for this customer.
unread_notifications_count
Integer
Number of unread notifications on the customer for the authenticated user.
Example
GET /v3/customers/7027038674?include=ipsum.amet HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5... X-Adspert-Access-Level: CUSTOMER-ADMIN
curl -i -X GET 'https://api.adspert.net/v3/customers/7027038674?include=ipsum.amet' -H "Accept: application/json" -H "X-Adspert-Access-Level: CUSTOMER-ADMIN" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
http 'https://api.adspert.net/v3/customers/7027038674?include=ipsum.amet' Accept:application/json X-Adspert-Access-Level:"CUSTOMER-ADMIN" Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.get('https://api.adspert.net/v3/customers/7027038674?include=ipsum.amet', headers={'Accept': 'application/json', 'X-Adspert-Access-Level': 'CUSTOMER-ADMIN', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": { "customer_id": 2022024680, "type": "AGENCY-CLIENT", "main_customer_id": 2022024680, "main_customer_name": "adlora tucan", "billing_subsidiaries_count": 9885699150, "agency_clients_count": 1485799544, "agency_admins_count": 1478096067, "account_move_in_progress": true, "name": "tucan lorem", "email": "ipsum@example.com", "address_1": "adlora dolor", "address_2": "tucan adlora", "zip": "vehicula ipsum", "city": "vehicula amet", "country_code": "nl", "invoice_language": "DE", "order_number": "amet sit", "vat_id": "amet elit", "vat_id_valid": true, "allow_self_service_checkout": true, "trial_start": "2018-10-21", "trial_end": "2018-10-21", "trial": true, "canceled_due": "2018-10-21", "canceled": true, "allow_start_optimization": true, "metric_currency": "AED", "archived": true, "created_at": "2018-10-21", "features": [ "sit elit" ], "is_demo": true, "tags_user": [ "dolor elit" ], "tags_system": [ "dolor vehicula" ], "access": "AGENCY-ADMIN", "notifications": true, "unread_notifications_count": 1380600209 }, "meta": {} }
PATCH
- PATCH /v3/customers/(customer_id: int)
Update a single customer.
If the customer is a sub customer (billing subsidiary or agency client) and its main customer is in a canceled state, any changes that would revive the sub customer are rejected with a
409 Conflict
. To resolve this, the main customer needs to be revived first.- Auth mode:
- Access level:
Request Data (single object, json or csv)
Name
Type
Description
name
String
Name of the customer’s business (billing addressee).
Min length: 1
email
Primary e-mail contact for billing purposes.
Min length: 1
address_1
String
Billing address: line 1.
Min length: 1
address_2
String
Billing address: line 2.
zip
String
Billing address: postal code.
Min length: 1
city
String
Billing address: city.
Min length: 1
country_code
String
Billing address: two letter country code (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2).
Min length: 2
Max length: 2
invoice_language
order_number
String
Order number chosen by customer to appear on invoices.
vat_id
String
VAT-ID of the customer’s business.
metric_currency
Default currency for displaying cross-account performance metrics (when no user-specific currency setting exists).
Example
PATCH /v3/customers/7027038674 HTTP/1.1 Host: api.adspert.net Accept: application/json Content-Type: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5... { "name": "tucan lorem", "email": "ipsum@example.com", "address_1": "adlora dolor", "address_2": "tucan adlora", "zip": "vehicula ipsum", "city": "vehicula amet", "country_code": "nl", "invoice_language": "DE", "order_number": "amet sit", "vat_id": "amet elit", "metric_currency": "AED" }
curl -i -X PATCH https://api.adspert.net/v3/customers/7027038674 -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..." --data-raw '{"address_1": "adlora dolor", "address_2": "tucan adlora", "city": "vehicula amet", "country_code": "nl", "email": "ipsum@example.com", "invoice_language": "DE", "metric_currency": "AED", "name": "tucan lorem", "order_number": "amet sit", "vat_id": "amet elit", "zip": "vehicula ipsum"}'
echo '{ "address_1": "adlora dolor", "address_2": "tucan adlora", "city": "vehicula amet", "country_code": "nl", "email": "ipsum@example.com", "invoice_language": "DE", "metric_currency": "AED", "name": "tucan lorem", "order_number": "amet sit", "vat_id": "amet elit", "zip": "vehicula ipsum" }' | http PATCH https://api.adspert.net/v3/customers/7027038674 Accept:application/json Content-Type:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.patch('https://api.adspert.net/v3/customers/7027038674', headers={'Accept': 'application/json', 'Content-Type': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'}, json={'address_1': 'adlora dolor', 'address_2': 'tucan adlora', 'city': 'vehicula amet', 'country_code': 'nl', 'email': 'ipsum@example.com', 'invoice_language': 'DE', 'metric_currency': 'AED', 'name': 'tucan lorem', 'order_number': 'amet sit', 'vat_id': 'amet elit', 'zip': 'vehicula ipsum'})
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": null, "meta": {} }
CustomerAccessCollection
GET
- GET /v3/customers/(customer_id: int)/access
Retrieve a list of users with access to the customer.
This only covers explicit access permissions (not implicit ones like agency admin access to sub-customers).
- Auth mode:
- Access level:
Query Params
Name
Type
Description
include
Fields to include in response data.
exclude
Fields to exclude in response data.
filter_lang
[ UserLanguage ]
Only return results matching given
lang
values.filter_notifications
[ Boolean ]
Only return results matching given
notifications
values.filter_role
Only return results matching given
role
values.filter_user_id
[ Integer ]
Only return results matching given
user_id
values.search_fields
Fields that should be searched using the
search_term
.search_term
String
Search term used to search the
search_fields
.search_email
String
Only return results where
email
matches the given string.search_first_name
String
Only return results where
first_name
matches the given string.search_last_name
String
Only return results where
last_name
matches the given string.sort_email
Sort results by
email
.sort_first_name
Sort results by
first_name
.sort_lang
Sort results by
lang
.sort_last_name
Sort results by
last_name
.sort_notifications
Sort results by
notifications
.sort_role
Sort results by
role
.sort_user_id
Sort results by
user_id
.offset
Integer
Start index for result list.
Default: 0
Min value: 0
limit
Integer
Maximum number of results to return. The maximum allowed value depends on the response media type (10000 for JSON and 100000 for tabular formats like CSV).
Default: 10
Min value: 1
Response Data (object list, json or csv or xlsx)
Name
Type
Description
user_id
Integer
ID of the user who did the change.
email
searchable
String
E-mail of the user who did the change. Is
null
if change was made by Adspert.first_name
searchable
String
last_name
searchable
String
lang
A user’s preferred language.
role
The role assigned to a user on a customer.
notifications
Boolean
If the user is allowed to see notifications for this customer.
Example
GET /v3/customers/7027038674/access?search_term=vehicula+ipsum&sort_email=5&filter_notifications=True HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl -i -X GET 'https://api.adspert.net/v3/customers/7027038674/access?search_term=vehicula+ipsum&sort_email=5&filter_notifications=True' -H "Accept: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
http 'https://api.adspert.net/v3/customers/7027038674/access?search_term=vehicula+ipsum&sort_email=5&filter_notifications=True' Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.get('https://api.adspert.net/v3/customers/7027038674/access?search_term=vehicula+ipsum&sort_email=5&filter_notifications=True', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": [ { "user_id": 12345, "email": "test@example.com", "first_name": "pariatur ipsum", "last_name": "adlora amet", "lang": "DE", "role": "AGENCY-ADMIN", "notifications": true } ], "meta": { "pagination": { "offset": 0, "limit": 10, "total": 74, "sort": { "user_id": 1 } } } }
POST
- POST /v3/customers/(customer_id: int)/access
Invite a new user to access the customer.
Potentially creates a new Adspert user if there is none for the given email address.
The added user receives an invitation email.
- Auth mode:
- Access level:
Request Data (single object, json or csv)
Name
Type
Description
email
required
String
E-mail of the user who did the change. Is
null
if change was made by Adspert.first_name
String
last_name
String
lang
A user’s preferred language.
Default: EN
role
required
The role assigned to a user on a customer.
notifications
required
Boolean
If the user is allowed to see notifications for this customer.
Response Data (single object, json or csv or xlsx)
Name
Type
Description
user_id
Integer
ID of the user who did the change.
email
String
E-mail of the user who did the change. Is
null
if change was made by Adspert.first_name
String
last_name
String
lang
A user’s preferred language.
role
The role assigned to a user on a customer.
notifications
Boolean
If the user is allowed to see notifications for this customer.
Example
POST /v3/customers/7027038674/access HTTP/1.1 Host: api.adspert.net Accept: application/json Content-Type: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5... { "email": "test@example.com", "first_name": "pariatur ipsum", "last_name": "adlora amet", "lang": "DE", "role": "AGENCY-ADMIN", "notifications": true }
curl -i -X POST https://api.adspert.net/v3/customers/7027038674/access -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..." --data-raw '{"email": "test@example.com", "first_name": "pariatur ipsum", "lang": "DE", "last_name": "adlora amet", "notifications": true, "role": "AGENCY-ADMIN"}'
echo '{ "email": "test@example.com", "first_name": "pariatur ipsum", "lang": "DE", "last_name": "adlora amet", "notifications": true, "role": "AGENCY-ADMIN" }' | http POST https://api.adspert.net/v3/customers/7027038674/access Accept:application/json Content-Type:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.post('https://api.adspert.net/v3/customers/7027038674/access', headers={'Accept': 'application/json', 'Content-Type': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'}, json={'email': 'test@example.com', 'first_name': 'pariatur ipsum', 'lang': 'DE', 'last_name': 'adlora amet', 'notifications': True, 'role': 'AGENCY-ADMIN'})
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": { "user_id": 12345, "email": "test@example.com", "first_name": "pariatur ipsum", "last_name": "adlora amet", "lang": "DE", "role": "AGENCY-ADMIN", "notifications": true }, "meta": {} }
PUT
- PUT /v3/customers/(customer_id: int)/access
Set access to the customer for one or more users.
In contrast to
POST
, this only works on existing users to which the authenticated user has access to (see/v3/users
).Can be used to grant new access as well as to change the role of already granted access. Changing roles is only allowed for users which do not have a higher access to the current customer than the request user.
Does not send out invitations to affected users!
- Auth mode:
- Access level:
Request Data (object list, json or csv)
Name
Type
Description
user_id
required
Integer
ID of the user who did the change.
role
required
The role assigned to a user on a customer.
notifications
required
Boolean
If the user is allowed to see notifications for this customer.
Response Data (single object, json or csv or xlsx)
Name
Type
Description
created
[ Object ]
List of objects which have been created.
⤷
user_id
Integer
See request data description.
⤷
email
String
See request data description.
⤷
first_name
String
See request data description.
⤷
last_name
String
See request data description.
⤷
lang
See request data description.
⤷
role
See request data description.
⤷
notifications
Boolean
See request data description.
unchanged
[ Object ]
List of objects which had no effective change.
⤷
user_id
Integer
See request data description.
⤷
email
String
See request data description.
⤷
first_name
String
See request data description.
⤷
last_name
String
See request data description.
⤷
lang
See request data description.
⤷
role
See request data description.
⤷
notifications
Boolean
See request data description.
updated
[ Object ]
List of objects which have been updated.
⤷
user_id
Integer
See request data description.
⤷
email
String
See request data description.
⤷
first_name
String
See request data description.
⤷
last_name
String
See request data description.
⤷
lang
See request data description.
⤷
role
See request data description.
⤷
notifications
Boolean
See request data description.
Example
PUT /v3/customers/7027038674/access HTTP/1.1 Host: api.adspert.net Accept: application/json Content-Type: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5... [ { "user_id": 12345, "role": "AGENCY-ADMIN", "notifications": true } ]
curl -i -X PUT https://api.adspert.net/v3/customers/7027038674/access -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..." --data-raw '[{"user_id": 12345, "role": "AGENCY-ADMIN", "notifications": true}]'
echo '[ { "notifications": true, "role": "AGENCY-ADMIN", "user_id": 12345 } ]' | http PUT https://api.adspert.net/v3/customers/7027038674/access Accept:application/json Content-Type:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.put('https://api.adspert.net/v3/customers/7027038674/access', headers={'Accept': 'application/json', 'Content-Type': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'}, json=[{'user_id': 12345, 'role': 'AGENCY-ADMIN', 'notifications': True}])
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": { "created": [ { "user_id": 12345, "email": "test@example.com", "first_name": "pariatur ipsum", "last_name": "adlora amet", "lang": "DE", "role": "AGENCY-ADMIN", "notifications": true } ], "unchanged": [ { "user_id": 12345, "email": "test@example.com", "first_name": "pariatur ipsum", "last_name": "adlora amet", "lang": "DE", "role": "AGENCY-ADMIN", "notifications": true } ], "updated": [ { "user_id": 12345, "email": "test@example.com", "first_name": "pariatur ipsum", "last_name": "adlora amet", "lang": "DE", "role": "AGENCY-ADMIN", "notifications": true } ] }, "meta": {} }
DELETE
- DELETE /v3/customers/(customer_id: int)/access
Remove access to the customer for one or more users.
This is only allowed for users which do not have a higher access to the current customer than the request user.
- Auth mode:
- Access level:
Request Data (object list, json or csv)
Name
Type
Description
user_id
required
Integer
ID of the user who did the change.
Response Data (single object, json or csv or xlsx)
Name
Type
Description
deleted
[ Object ]
List of objects which have been deleted.
⤷
user_id
Integer
See request data description.
⤷
email
String
See request data description.
⤷
first_name
String
See request data description.
⤷
last_name
String
See request data description.
⤷
lang
See request data description.
⤷
role
See request data description.
⤷
notifications
Boolean
See request data description.
unknown
[ Object ]
List of objects which could not be found.
⤷
user_id
Integer
See request data description.
⤷
email
String
See request data description.
⤷
first_name
String
See request data description.
⤷
last_name
String
See request data description.
⤷
lang
See request data description.
⤷
role
See request data description.
⤷
notifications
Boolean
See request data description.
Example
DELETE /v3/customers/7027038674/access HTTP/1.1 Host: api.adspert.net Accept: application/json Content-Type: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5... [ { "user_id": 12345 } ]
curl -i -X DELETE https://api.adspert.net/v3/customers/7027038674/access -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..." --data-raw '[{"user_id": 12345}]'
echo '[ { "user_id": 12345 } ]' | http DELETE https://api.adspert.net/v3/customers/7027038674/access Accept:application/json Content-Type:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.delete('https://api.adspert.net/v3/customers/7027038674/access', headers={'Accept': 'application/json', 'Content-Type': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'}, json=[{'user_id': 12345}])
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": { "deleted": [ { "user_id": 12345, "email": "test@example.com", "first_name": "pariatur ipsum", "last_name": "adlora amet", "lang": "DE", "role": "AGENCY-ADMIN", "notifications": true } ], "unknown": [ { "user_id": 12345, "email": "test@example.com", "first_name": "pariatur ipsum", "last_name": "adlora amet", "lang": "DE", "role": "AGENCY-ADMIN", "notifications": true } ] }, "meta": {} }
CustomerTagCollection
GET
- GET /v3/customers/tags
Retrieve a list of customer tags.
Query Params
Name
Type
Description
include
Fields to include in response data.
exclude
Fields to exclude in response data.
filter_customer_id
[ Integer ]
Only return results matching given
customer_id
values.filter_scope
[ CustomerTagScope ]
Only return results matching given
scope
values.search_fields
Fields that should be searched using the
search_term
.search_term
String
Search term used to search the
search_fields
.search_customer_id
String
Only return results where
customer_id
matches the given string.search_name
String
Only return results where
name
matches the given string.sort_customer_id
Sort results by
customer_id
.sort_name
Sort results by
name
.sort_scope
Sort results by
scope
.offset
Integer
Start index for result list.
Default: 0
Min value: 0
limit
Integer
Maximum number of results to return. The maximum allowed value depends on the response media type (10000 for JSON and 100000 for tabular formats like CSV).
Default: 10
Min value: 1
Response Data (object list, json or csv or xlsx)
Name
Type
Description
customer_id
searchable
Integer
ID of the tagged customer.
name
searchable
String
Name of the tag (must not contain white space).
scope
Scope of the tag. System-scope tags are read-only!
Example
GET /v3/customers/tags?exclude=elit.amet&search_customer_id=ipsum+sit&limit=10 HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl -i -X GET 'https://api.adspert.net/v3/customers/tags?exclude=elit.amet&search_customer_id=ipsum+sit&limit=10' -H "Accept: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
http 'https://api.adspert.net/v3/customers/tags?exclude=elit.amet&search_customer_id=ipsum+sit&limit=10' Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.get('https://api.adspert.net/v3/customers/tags?exclude=elit.amet&search_customer_id=ipsum+sit&limit=10', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": [ { "customer_id": 2022024680, "name": "shopping", "scope": "ADMIN" } ], "meta": { "pagination": { "offset": 0, "limit": 10, "total": 74, "sort": { "customer_id": 1 } } } }
PUT
- PUT /v3/customers/tags
Set a list of account tags.
Request Data (object list, json or csv)
Name
Type
Description
customer_id
required
Integer
ID of the tagged customer.
name
required
String
Name of the tag (must not contain white space).
scope
required
Scope of the tag. System-scope tags are read-only!
Response Data (single object, json or csv or xlsx)
Name
Type
Description
created
[ Object ]
List of objects which have been created.
⤷
customer_id
Integer
See request data description.
⤷
name
String
See request data description.
⤷
scope
See request data description.
unchanged
[ Object ]
List of objects which had no effective change.
⤷
customer_id
Integer
See request data description.
⤷
name
String
See request data description.
⤷
scope
See request data description.
updated
[ Object ]
List of objects which have been updated.
⤷
customer_id
Integer
See request data description.
⤷
name
String
See request data description.
⤷
scope
See request data description.
Example
PUT /v3/customers/tags HTTP/1.1 Host: api.adspert.net Accept: application/json Content-Type: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5... [ { "customer_id": 2022024680, "name": "shopping", "scope": "ADMIN" } ]
curl -i -X PUT https://api.adspert.net/v3/customers/tags -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..." --data-raw '[{"customer_id": 2022024680, "name": "shopping", "scope": "ADMIN"}]'
echo '[ { "customer_id": 2022024680, "name": "shopping", "scope": "ADMIN" } ]' | http PUT https://api.adspert.net/v3/customers/tags Accept:application/json Content-Type:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.put('https://api.adspert.net/v3/customers/tags', headers={'Accept': 'application/json', 'Content-Type': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'}, json=[{'customer_id': 2022024680, 'name': 'shopping', 'scope': 'ADMIN'}])
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": { "created": [ { "customer_id": 2022024680, "name": "shopping", "scope": "ADMIN" } ], "unchanged": [ { "customer_id": 2022024680, "name": "shopping", "scope": "ADMIN" } ], "updated": [ { "customer_id": 2022024680, "name": "shopping", "scope": "ADMIN" } ] }, "meta": {} }
DELETE
- DELETE /v3/customers/tags
Delete a list of account tags.
Request Data (object list, json or csv)
Name
Type
Description
customer_id
required
Integer
ID of the tagged customer.
name
required
String
Name of the tag (must not contain white space).
scope
required
Scope of the tag. System-scope tags are read-only!
Response Data (single object, json or csv or xlsx)
Name
Type
Description
deleted
[ Object ]
List of objects which have been deleted.
⤷
customer_id
Integer
See request data description.
⤷
name
String
See request data description.
⤷
scope
See request data description.
unknown
[ Object ]
List of objects which could not be found.
⤷
customer_id
Integer
See request data description.
⤷
name
String
See request data description.
⤷
scope
See request data description.
Example
DELETE /v3/customers/tags HTTP/1.1 Host: api.adspert.net Accept: application/json Content-Type: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5... [ { "customer_id": 2022024680, "name": "shopping", "scope": "ADMIN" } ]
curl -i -X DELETE https://api.adspert.net/v3/customers/tags -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..." --data-raw '[{"customer_id": 2022024680, "name": "shopping", "scope": "ADMIN"}]'
echo '[ { "customer_id": 2022024680, "name": "shopping", "scope": "ADMIN" } ]' | http DELETE https://api.adspert.net/v3/customers/tags Accept:application/json Content-Type:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.delete('https://api.adspert.net/v3/customers/tags', headers={'Accept': 'application/json', 'Content-Type': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'}, json=[{'customer_id': 2022024680, 'name': 'shopping', 'scope': 'ADMIN'}])
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": { "deleted": [ { "customer_id": 2022024680, "name": "shopping", "scope": "ADMIN" } ], "unknown": [ { "customer_id": 2022024680, "name": "shopping", "scope": "ADMIN" } ] }, "meta": {} }
Users
UserCollection
GET
- GET /v3/users
Retrieve a list of users.
- Auth mode:
- Access level:
Query Params
Name
Type
Description
include
Fields to include in response data.
exclude
Fields to exclude in response data.
filter_email_verified
[ Boolean ]
Only return results matching given
email_verified
values.filter_sys_admin
[ Boolean ]
Only return results matching given
sys_admin
values.filter_user_id
[ Integer ]
Only return results matching given
user_id
values.search_fields
Fields that should be searched using the
search_term
.search_term
String
Search term used to search the
search_fields
.search_email
String
Only return results where
email
matches the given string.search_first_name
String
Only return results where
first_name
matches the given string.search_last_name
String
Only return results where
last_name
matches the given string.sort_email
Sort results by
email
.sort_email_verified
Sort results by
email_verified
.sort_first_name
Sort results by
first_name
.sort_last_name
Sort results by
last_name
.sort_sys_admin
Sort results by
sys_admin
.sort_user_id
Sort results by
user_id
.offset
Integer
Start index for result list.
Default: 0
Min value: 0
limit
Integer
Maximum number of results to return. The maximum allowed value depends on the response media type (10000 for JSON and 100000 for tabular formats like CSV).
Default: 10
Min value: 1
Response Data (object list, json or csv or xlsx)
Name
Type
Description
user_id
Integer
ID of the user who did the change.
email
searchable
String
E-mail of the user who did the change. Is
null
if change was made by Adspert.email_verified
Boolean
If the user confirmed ownership of the email address.
false
means a confirmation is outstanding whiletrue
means there was an explicit confirmation in the past. Anull
value indicates implicit confirmation (e.g. for users created before email verification was enforced).intercom_user_hash
String
User ID hash required for Intercom user identity verification.
first_name
searchable
String
last_name
searchable
String
lang
A user’s preferred language.
sys_admin
Boolean
If the user has sys admin privileges.
Example
GET /v3/users?limit=10&sort_last_name=-8&filter_user_id=4034300999 HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl -i -X GET 'https://api.adspert.net/v3/users?limit=10&sort_last_name=-8&filter_user_id=4034300999' -H "Accept: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
http 'https://api.adspert.net/v3/users?limit=10&sort_last_name=-8&filter_user_id=4034300999' Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.get('https://api.adspert.net/v3/users?limit=10&sort_last_name=-8&filter_user_id=4034300999', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": [ { "user_id": 12345, "email": "test@example.com", "email_verified": true, "intercom_user_hash": "pariatur elit", "first_name": "pariatur ipsum", "last_name": "adlora amet", "lang": "DE", "sys_admin": true } ], "meta": { "pagination": { "offset": 0, "limit": 10, "total": 74, "sort": { "user_id": 1 } } } }
UserResource
GET
- GET /v3/users/(user_id: int)
Retrieve a single user.
Currently authenticated user can be retrieved by requesting the resource for user ID
0
.Query Params
Name
Type
Description
include
Fields to include in response data.
exclude
Fields to exclude in response data.
Response Data (single object, json or csv or xlsx)
Name
Type
Description
user_id
Integer
ID of the user who did the change.
email
String
E-mail of the user who did the change. Is
null
if change was made by Adspert.email_verified
Boolean
If the user confirmed ownership of the email address.
false
means a confirmation is outstanding whiletrue
means there was an explicit confirmation in the past. Anull
value indicates implicit confirmation (e.g. for users created before email verification was enforced).intercom_user_hash
String
User ID hash required for Intercom user identity verification.
first_name
String
last_name
String
lang
A user’s preferred language.
sys_admin
Boolean
If the user has sys admin privileges.
Example
GET /v3/users/4034300999?exclude=elit.amet HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl -i -X GET 'https://api.adspert.net/v3/users/4034300999?exclude=elit.amet' -H "Accept: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
http 'https://api.adspert.net/v3/users/4034300999?exclude=elit.amet' Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.get('https://api.adspert.net/v3/users/4034300999?exclude=elit.amet', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": { "user_id": 12345, "email": "test@example.com", "email_verified": true, "intercom_user_hash": "pariatur elit", "first_name": "pariatur ipsum", "last_name": "adlora amet", "lang": "DE", "sys_admin": true }, "meta": {} }
PATCH
- PATCH /v3/users/(user_id: int)
Update a user.
Non sys-admins can only modify the own user.
Request Data (single object, json or csv)
Name
Type
Description
email
String
E-mail of the user who did the change. Is
null
if change was made by Adspert.password
String
Min length: 8
Max length: 128
first_name
String
last_name
String
lang
A user’s preferred language.
Example
PATCH /v3/users/4034300999 HTTP/1.1 Host: api.adspert.net Accept: application/json Content-Type: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5... { "email": "test@example.com", "password": "correct horse battery staple", "first_name": "pariatur ipsum", "last_name": "adlora amet", "lang": "DE" }
curl -i -X PATCH https://api.adspert.net/v3/users/4034300999 -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..." --data-raw '{"email": "test@example.com", "first_name": "pariatur ipsum", "lang": "DE", "last_name": "adlora amet", "password": "correct horse battery staple"}'
echo '{ "email": "test@example.com", "first_name": "pariatur ipsum", "lang": "DE", "last_name": "adlora amet", "password": "correct horse battery staple" }' | http PATCH https://api.adspert.net/v3/users/4034300999 Accept:application/json Content-Type:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.patch('https://api.adspert.net/v3/users/4034300999', headers={'Accept': 'application/json', 'Content-Type': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'}, json={'email': 'test@example.com', 'first_name': 'pariatur ipsum', 'lang': 'DE', 'last_name': 'adlora amet', 'password': 'correct horse battery staple'})
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": null, "meta": {} }
Accounts
Routes related to advertising accounts.
Accounts are identified by their Adspert account ID in the path.
AccountResource
GET
- GET /v3/accounts/(adspert_account_id: int)
- Auth mode:
- Access level:
user – some fields require access level elevation to customer-admin
Query Params
Name
Type
Description
include
Fields to include in response data.
exclude
Fields to exclude in response data.
Response Data (single object, json or csv or xlsx)
Name
Type
Description
adspert_account_id
Integer
Adspert internal ID of the advertising account
account_id
String
account_name
String
is_demo
Boolean
If the account is a generated account for demonstration purposes.
Demo accounts have no counterpart in the ad platform.
platform
platform_access_status
Status of Adspert access to the ad platform for this account.
currency
String
timezone
String
connected_at
optimization_start
First time account has been optimized by Adspert.
NULL if account hasn’t yet been optimized.
signup_completed
Boolean
Has the signup process been successfully completed?
Account signup is considered completed only after first successful sync of data from the platform.
customer_id
Integer
ID of the customer that this account belongs to.
customer_name
String
billing_subsidiary_customer_id
Integer
If this account is billed under another billing subsidiary customer, then this is the corresponding customer ID.
Min access level: customer-admin
customer_change_target
Integer
If a customer change for this account is enqueued or in progress, this is the new customer ID.
If the authenticated user does not have access to the target customer, the given ID is 0.
customer_change_started
Boolean
If a customer change for this account is currently in progress. Some customer-scoped endpoints might reject mutating requests with a 409 in this case.
default_performance_groups
Object
Default performance group settings.
⤷
optimization_type_revenue
Object
Default performance group for revenue-optimized campaigns.
⤷
performance_group_id
Integer
Unique ID of the performance group
⤷
name
String
Unique name of the performance group.
⤷
optimization_type_profit
Object
Default performance group for profit-optimized campaigns.
⤷
performance_group_id
Integer
Unique ID of the performance group
⤷
name
String
Unique name of the performance group.
⤷
optimization_type_click
Object
Default performance group for click-optimized campaigns.
⤷
performance_group_id
Integer
Unique ID of the performance group
⤷
name
String
Unique name of the performance group.
tags_user
[ String ]
List of user tags set on this account.
tags_system
[ String ]
List of system tags set on this account.
activate_one_conversion_rule
Boolean
Indicates if the One Conversion Rule was activated for CA3
optimize
Boolean
If optimization by Adspert is enabled for this account.
disconnected
Boolean
If the account is disconnected from Adspert. While still visible here, disconnected accounts have only basic information updated and are excluded from cross-account performance endpoints.
A disconnected account will be deleted completely after some time, unless
snoozed
is enabled.Setting this field w/o providing
snoozed
will automatically unsetsnoozed
!snoozed
Boolean
A snoozed account is a disconnected account which won’t be deleted automatically.
Setting this field w/o providing
disconnected
will automatically setdisconnected
to the same value!conversion_value
Average value of a conversion in this account, which will be used by the optimization in case conversion values are not reported by the advertising platform.
Campaign specific conversion values may override this.
conversion_value_factor
Float
Conversion value factor
conversion_value_source
Source of the conversion value e.g., platform, manual and product
conversion_value_type
Type of the conversion value e.g., revenue and profit
click_optimization
Boolean
If the account is set for click optimization
attention_score
Float
A magic score to order ad accounts by the attention they need. The higher the score, the more settings need to be tweaked or problems need to be solved for that account.
campaign_count_total
Integer
Number of non-deleted campaigns in the ad acccount.
campaign_count_active
Integer
Number of active campaigns in the ad acccount.
campaign_count_optimized
Integer
Number of campaigns in the ad account which are active and optimized by Adspert.
amz_account_type
Amazon Ads account type.
NULL if it’s not an Amazon Ads account.
amz_region
Amazon Region.
NULL if the account is not an Amazon account.
product_feed_url
[ String ]
Product feed URL for the account
conversions_last_30d
Float
Number of conversions including view impressions.
Always 0 for click optimized campaigns.
dimensions
[ Object ]
⤷
dimension
⤷
optimized
Boolean
Example
GET /v3/accounts/3420379091?exclude=elit.amet HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5... X-Adspert-Access-Level: CUSTOMER-ADMIN
curl -i -X GET 'https://api.adspert.net/v3/accounts/3420379091?exclude=elit.amet' -H "Accept: application/json" -H "X-Adspert-Access-Level: CUSTOMER-ADMIN" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
http 'https://api.adspert.net/v3/accounts/3420379091?exclude=elit.amet' Accept:application/json X-Adspert-Access-Level:"CUSTOMER-ADMIN" Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.get('https://api.adspert.net/v3/accounts/3420379091?exclude=elit.amet', headers={'Accept': 'application/json', 'X-Adspert-Access-Level': 'CUSTOMER-ADMIN', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": { "adspert_account_id": 123, "account_id": "amet lorem", "account_name": "vehicula ipsum", "is_demo": true, "platform": "AMAZON", "platform_access_status": "ACCOUNT-DISABLED", "currency": "elit tucan", "timezone": "elit amet", "connected_at": "2018-10-21T16:45:23+02:00", "optimization_start": "2018-10-21", "signup_completed": true, "customer_id": 2022024680, "customer_name": "amet sit", "billing_subsidiary_customer_id": 2022024680, "customer_change_target": 2022024680, "customer_change_started": true, "default_performance_groups": { "optimization_type_revenue": { "performance_group_id": "1245", "name": "tucan lorem" }, "optimization_type_profit": { "performance_group_id": "1245", "name": "tucan lorem" }, "optimization_type_click": { "performance_group_id": "1245", "name": "tucan lorem" } }, "tags_user": [ "dolor elit" ], "tags_system": [ "dolor vehicula" ], "activate_one_conversion_rule": true, "optimize": true, "disconnected": true, "snoozed": true, "conversion_value": 150000, "conversion_value_factor": 1.09, "conversion_value_source": "MANUAL", "conversion_value_type": "PROFIT", "click_optimization": true, "attention_score": 0.56, "campaign_count_total": 7260538450, "campaign_count_active": 2868857587, "campaign_count_optimized": 5352721934, "amz_account_type": "AGENCY", "amz_region": "EU", "product_feed_url": [ "adlora dolor" ], "conversions_last_30d": 6.62, "dimensions": [ { "dimension": "AGE", "optimized": true } ] }, "meta": {} }
PATCH
- PATCH /v3/accounts/(adspert_account_id: int)
-
Request Data (single object, json or csv)
Name
Type
Description
activate_one_conversion_rule
Boolean
Indicates if the One Conversion Rule was activated for CA3
optimize
Boolean
If optimization by Adspert is enabled for this account.
conversion_value
Average value of a conversion in this account, which will be used by the optimization in case conversion values are not reported by the advertising platform.
Campaign specific conversion values may override this.
Min value: 1000
disconnected
Boolean
If the account is disconnected from Adspert. While still visible here, disconnected accounts have only basic information updated and are excluded from cross-account performance endpoints.
A disconnected account will be deleted completely after some time, unless
snoozed
is enabled.Setting this field w/o providing
snoozed
will automatically unsetsnoozed
!snoozed
Boolean
A snoozed account is a disconnected account which won’t be deleted automatically.
Setting this field w/o providing
disconnected
will automatically setdisconnected
to the same value!conversion_value_source
Source of the conversion value e.g., platform, manual and product
conversion_value_type
Type of the conversion value e.g., revenue and profit
click_optimization
Boolean
If the account is set for click optimization
conversion_value_factor
Float
Conversion value factor
Min value: 0
Max value: 100
Example
PATCH /v3/accounts/3420379091 HTTP/1.1 Host: api.adspert.net Accept: application/json Content-Type: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5... { "activate_one_conversion_rule": true, "optimize": true, "conversion_value": 150000, "disconnected": true, "snoozed": true, "conversion_value_source": "MANUAL", "conversion_value_type": "PROFIT", "click_optimization": true, "conversion_value_factor": 1.09 }
curl -i -X PATCH https://api.adspert.net/v3/accounts/3420379091 -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..." --data-raw '{"activate_one_conversion_rule": true, "click_optimization": true, "conversion_value": 150000, "conversion_value_factor": 1.09, "conversion_value_source": "MANUAL", "conversion_value_type": "PROFIT", "disconnected": true, "optimize": true, "snoozed": true}'
echo '{ "activate_one_conversion_rule": true, "click_optimization": true, "conversion_value": 150000, "conversion_value_factor": 1.09, "conversion_value_source": "MANUAL", "conversion_value_type": "PROFIT", "disconnected": true, "optimize": true, "snoozed": true }' | http PATCH https://api.adspert.net/v3/accounts/3420379091 Accept:application/json Content-Type:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.patch('https://api.adspert.net/v3/accounts/3420379091', headers={'Accept': 'application/json', 'Content-Type': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'}, json={'activate_one_conversion_rule': True, 'click_optimization': True, 'conversion_value': 150000, 'conversion_value_factor': 1.09, 'conversion_value_source': 'MANUAL', 'conversion_value_type': 'PROFIT', 'disconnected': True, 'optimize': True, 'snoozed': True})
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": null, "meta": {} }
AccountCollection
GET
- GET /v3/accounts
- Auth mode:
- Access level:
user – some fields require access level elevation to customer-admin
Query Params
Name
Type
Description
include
Fields to include in response data.
exclude
Fields to exclude in response data.
filter_account_id
[ String ]
Only return results matching given
account_id
values.filter_activate_one_conversion_rule
[ Boolean ]
Only return results matching given
activate_one_conversion_rule
values.filter_adspert_account_id
[ Integer ]
Only return results matching given
adspert_account_id
values.filter_amz_account_type
Only return results matching given
amz_account_type
values.filter_amz_region
[ AmzEndpoint ]
Only return results matching given
amz_region
values.filter_billing_subsidiary_customer_id
[ Integer ]
Only return results matching given
billing_subsidiary_customer_id
values.Min access level: customer-admin
filter_click_optimization
[ Boolean ]
Only return results matching given
click_optimization
values.filter_conversion_value_factor_ge
Float
Only return results where
conversion_value_factor
is equal or greater than this value.filter_conversion_value_factor_le
Float
Only return results where
conversion_value_factor
is equal or lower than this value.filter_conversion_value_ge
Only return results where
conversion_value
is equal or greater than this value.Min value: 1000
filter_conversion_value_le
Only return results where
conversion_value
is equal or lower than this value.Min value: 1000
filter_conversion_value_source
Only return results matching given
conversion_value_source
values.filter_conversion_value_type
Only return results matching given
conversion_value_type
values.filter_conversions_last_30d_ge
Float
Only return results where
conversions_last_30d
is equal or greater than this value.filter_conversions_last_30d_le
Float
Only return results where
conversions_last_30d
is equal or lower than this value.filter_currency
[ String ]
Only return results matching given
currency
values.filter_customer_change_target
[ Integer ]
Only return results matching given
customer_change_target
values.filter_customer_id
[ Integer ]
Only return results matching given
customer_id
values.filter_disconnected
[ Boolean ]
Only return results matching given
disconnected
values.filter_is_demo
[ Boolean ]
Only return results matching given
is_demo
values.filter_optimize
[ Boolean ]
Only return results matching given
optimize
values.filter_platform
[ AdPlatform ]
Only return results matching given
platform
values.filter_platform_access_status
Only return results matching given
platform_access_status
values.filter_product_feed_url
[ String ]
Only return results matching given
product_feed_url
values.filter_product_feed_url_set
[ Boolean ]
Only return results matching given
product_feed_url_set
values.filter_signup_completed
[ Boolean ]
Only return results matching given
signup_completed
values.filter_snoozed
[ Boolean ]
Only return results matching given
snoozed
values.filter_tags_system
[ String ]
Only return results matching given
tags_system
values.filter_tags_user
[ String ]
Only return results matching given
tags_user
values.filter_timezone
[ String ]
Only return results matching given
timezone
values.search_fields
Fields that should be searched using the
search_term
.search_term
String
Search term used to search the
search_fields
.search_account_id
String
Only return results where
account_id
matches the given string.search_account_name
String
Only return results where
account_name
matches the given string.search_adspert_account_id
String
Only return results where
adspert_account_id
matches the given string.search_billing_subsidiary_customer_id
String
Only return results where
billing_subsidiary_customer_id
matches the given string.Min access level: customer-admin
search_customer_change_target
String
Only return results where
customer_change_target
matches the given string.search_customer_id
String
Only return results where
customer_id
matches the given string.search_customer_name
String
Only return results where
customer_name
matches the given string.search_product_feed_url
String
Only return results where
product_feed_url
matches the given string.search_tags_system
String
Only return results where
tags_system
matches the given string.search_tags_user
String
Only return results where
tags_user
matches the given string.sort_account_id
Sort results by
account_id
.sort_account_name
Sort results by
account_name
.sort_adspert_account_id
Sort results by
adspert_account_id
.sort_amz_account_type
Sort results by
amz_account_type
.sort_amz_region
Sort results by
amz_region
.sort_attention_score
Sort results by
attention_score
.sort_billing_subsidiary_customer_id
Sort results by
billing_subsidiary_customer_id
.Min access level: customer-admin
sort_campaign_count_active
Sort results by
campaign_count_active
.sort_campaign_count_optimized
Sort results by
campaign_count_optimized
.sort_campaign_count_total
Sort results by
campaign_count_total
.sort_click_optimization
Sort results by
click_optimization
.sort_connected_at
Sort results by
connected_at
.sort_conversion_value
Sort results by
conversion_value
.sort_conversion_value_factor
Sort results by
conversion_value_factor
.sort_conversion_value_source
Sort results by
conversion_value_source
.sort_conversion_value_type
Sort results by
conversion_value_type
.sort_conversions_last_30d
Sort results by
conversions_last_30d
.sort_currency
Sort results by
currency
.sort_customer_change_target
Sort results by
customer_change_target
.sort_customer_id
Sort results by
customer_id
.sort_customer_name
Sort results by
customer_name
.sort_disconnected
Sort results by
disconnected
.sort_is_demo
Sort results by
is_demo
.sort_optimization_start
Sort results by
optimization_start
.sort_optimize
Sort results by
optimize
.sort_platform
Sort results by
platform
.sort_platform_access_status
Sort results by
platform_access_status
.sort_product_feed_url
Sort results by
product_feed_url
.sort_snoozed
Sort results by
snoozed
.offset
Integer
Start index for result list.
Default: 0
Min value: 0
limit
Integer
Maximum number of results to return. The maximum allowed value depends on the response media type (10000 for JSON and 100000 for tabular formats like CSV).
Default: 10
Min value: 1
Response Data (object list, json or csv or xlsx)
Name
Type
Description
adspert_account_id
searchable
Integer
Adspert internal ID of the advertising account
account_id
searchable
String
account_name
searchable
String
is_demo
Boolean
If the account is a generated account for demonstration purposes.
Demo accounts have no counterpart in the ad platform.
platform
platform_access_status
Status of Adspert access to the ad platform for this account.
currency
String
timezone
String
connected_at
optimization_start
First time account has been optimized by Adspert.
NULL if account hasn’t yet been optimized.
signup_completed
Boolean
Has the signup process been successfully completed?
Account signup is considered completed only after first successful sync of data from the platform.
customer_id
searchable
Integer
ID of the customer that this account belongs to.
customer_name
searchable
String
billing_subsidiary_customer_id
searchable
Integer
If this account is billed under another billing subsidiary customer, then this is the corresponding customer ID.
Min access level: customer-admin
customer_change_target
searchable
Integer
If a customer change for this account is enqueued or in progress, this is the new customer ID.
If the authenticated user does not have access to the target customer, the given ID is 0.
customer_change_started
Boolean
If a customer change for this account is currently in progress. Some customer-scoped endpoints might reject mutating requests with a 409 in this case.
default_performance_groups
Object
Default performance group settings.
⤷
optimization_type_revenue
Object
Default performance group for revenue-optimized campaigns.
⤷
performance_group_id
searchable
Integer
Unique ID of the performance group
⤷
name
searchable
String
Unique name of the performance group.
⤷
optimization_type_profit
Object
Default performance group for profit-optimized campaigns.
⤷
performance_group_id
searchable
Integer
Unique ID of the performance group
⤷
name
searchable
String
Unique name of the performance group.
⤷
optimization_type_click
Object
Default performance group for click-optimized campaigns.
⤷
performance_group_id
searchable
Integer
Unique ID of the performance group
⤷
name
searchable
String
Unique name of the performance group.
tags_user
searchable
[ String ]
List of user tags set on this account.
tags_system
searchable
[ String ]
List of system tags set on this account.
activate_one_conversion_rule
Boolean
Indicates if the One Conversion Rule was activated for CA3
optimize
Boolean
If optimization by Adspert is enabled for this account.
disconnected
Boolean
If the account is disconnected from Adspert. While still visible here, disconnected accounts have only basic information updated and are excluded from cross-account performance endpoints.
A disconnected account will be deleted completely after some time, unless
snoozed
is enabled.Setting this field w/o providing
snoozed
will automatically unsetsnoozed
!snoozed
Boolean
A snoozed account is a disconnected account which won’t be deleted automatically.
Setting this field w/o providing
disconnected
will automatically setdisconnected
to the same value!conversion_value
Average value of a conversion in this account, which will be used by the optimization in case conversion values are not reported by the advertising platform.
Campaign specific conversion values may override this.
conversion_value_factor
Float
Conversion value factor
conversion_value_source
Source of the conversion value e.g., platform, manual and product
conversion_value_type
Type of the conversion value e.g., revenue and profit
click_optimization
Boolean
If the account is set for click optimization
attention_score
Float
A magic score to order ad accounts by the attention they need. The higher the score, the more settings need to be tweaked or problems need to be solved for that account.
campaign_count_total
Integer
Number of non-deleted campaigns in the ad acccount.
campaign_count_active
Integer
Number of active campaigns in the ad acccount.
campaign_count_optimized
Integer
Number of campaigns in the ad account which are active and optimized by Adspert.
amz_account_type
Amazon Ads account type.
NULL if it’s not an Amazon Ads account.
amz_region
Amazon Region.
NULL if the account is not an Amazon account.
product_feed_url
searchable
[ String ]
Product feed URL for the account
conversions_last_30d
Float
Number of conversions including view impressions.
Always 0 for click optimized campaigns.
dimensions
[ Object ]
⤷
dimension
⤷
optimized
Boolean
Example
GET /v3/accounts?filter_tags_system=dolor+vehicula&sort_snoozed=-4&filter_conversions_last_30d_ge=1.16 HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5... X-Adspert-Access-Level: CUSTOMER-ADMIN
curl -i -X GET 'https://api.adspert.net/v3/accounts?filter_tags_system=dolor+vehicula&sort_snoozed=-4&filter_conversions_last_30d_ge=1.16' -H "Accept: application/json" -H "X-Adspert-Access-Level: CUSTOMER-ADMIN" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
http 'https://api.adspert.net/v3/accounts?filter_tags_system=dolor+vehicula&sort_snoozed=-4&filter_conversions_last_30d_ge=1.16' Accept:application/json X-Adspert-Access-Level:"CUSTOMER-ADMIN" Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.get('https://api.adspert.net/v3/accounts?filter_tags_system=dolor+vehicula&sort_snoozed=-4&filter_conversions_last_30d_ge=1.16', headers={'Accept': 'application/json', 'X-Adspert-Access-Level': 'CUSTOMER-ADMIN', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": [ { "adspert_account_id": 123, "account_id": "amet lorem", "account_name": "vehicula ipsum", "is_demo": true, "platform": "AMAZON", "platform_access_status": "ACCOUNT-DISABLED", "currency": "elit tucan", "timezone": "elit amet", "connected_at": "2018-10-21T16:45:23+02:00", "optimization_start": "2018-10-21", "signup_completed": true, "customer_id": 2022024680, "customer_name": "amet sit", "billing_subsidiary_customer_id": 2022024680, "customer_change_target": 2022024680, "customer_change_started": true, "default_performance_groups": { "optimization_type_revenue": { "performance_group_id": "1245", "name": "tucan lorem" }, "optimization_type_profit": { "performance_group_id": "1245", "name": "tucan lorem" }, "optimization_type_click": { "performance_group_id": "1245", "name": "tucan lorem" } }, "tags_user": [ "dolor elit" ], "tags_system": [ "dolor vehicula" ], "activate_one_conversion_rule": true, "optimize": true, "disconnected": true, "snoozed": true, "conversion_value": 150000, "conversion_value_factor": 1.09, "conversion_value_source": "MANUAL", "conversion_value_type": "PROFIT", "click_optimization": true, "attention_score": 0.56, "campaign_count_total": 7260538450, "campaign_count_active": 2868857587, "campaign_count_optimized": 5352721934, "amz_account_type": "AGENCY", "amz_region": "EU", "product_feed_url": [ "adlora dolor" ], "conversions_last_30d": 6.62, "dimensions": [ { "dimension": "AGE", "optimized": true } ] } ], "meta": { "pagination": { "offset": 0, "limit": 10, "total": 74, "sort": { "adspert_account_id": 1 } } } }
PATCH
- PATCH /v3/accounts
-
Request Data (object list, json)
Name
Type
Description
adspert_id
Integer
Adspert internal ID of the advertising account
conversion_value_source
Source of the conversion value e.g., platform, manual and product
conversion_value_type
Type of the conversion value e.g., revenue and profit
click_optimization
Boolean
If the account is set for click optimization
conversion_value
Average value of a conversion in this account, which will be used by the optimization in case conversion values are not reported by the advertising platform.
Campaign specific conversion values may override this.
Min value: 1000
conversion_value_factor
Float
Conversion value factor
Min value: 0
Max value: 100
dimensions
[ Object ]
⤷
dimension
required
⤷
optimized
required
Boolean
Response Data (single object, json or csv or xlsx)
Name
Type
Description
unchanged
[ Object ]
List of objects which had no effective change.
⤷
adspert_id
Integer
See request data description.
⤷
conversion_value_source
See request data description.
⤷
conversion_value_type
See request data description.
⤷
click_optimization
Boolean
See request data description.
⤷
conversion_value
See request data description.
⤷
conversion_value_factor
Float
See request data description.
⤷
dimensions
[ Object ]
See request data description.
⤷
dimension
See request data description.
⤷
optimized
Boolean
See request data description.
unknown
[ Object ]
List of objects which could not be found.
⤷
adspert_id
Integer
See request data description.
⤷
conversion_value_source
See request data description.
⤷
conversion_value_type
See request data description.
⤷
click_optimization
Boolean
See request data description.
⤷
conversion_value
See request data description.
⤷
conversion_value_factor
Float
See request data description.
⤷
dimensions
[ Object ]
See request data description.
⤷
dimension
See request data description.
⤷
optimized
Boolean
See request data description.
updated
[ Object ]
List of objects which have been updated.
⤷
adspert_id
Integer
See request data description.
⤷
conversion_value_source
See request data description.
⤷
conversion_value_type
See request data description.
⤷
click_optimization
Boolean
See request data description.
⤷
conversion_value
See request data description.
⤷
conversion_value_factor
Float
See request data description.
⤷
dimensions
[ Object ]
See request data description.
⤷
dimension
See request data description.
⤷
optimized
Boolean
See request data description.
Example
PATCH /v3/accounts HTTP/1.1 Host: api.adspert.net Accept: application/json Content-Type: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5... [ { "adspert_id": 123, "conversion_value_source": "MANUAL", "conversion_value_type": "PROFIT", "click_optimization": true, "conversion_value": 150000, "conversion_value_factor": 1.09, "dimensions": [ { "dimension": "AGE", "optimized": true } ] } ]
curl -i -X PATCH https://api.adspert.net/v3/accounts -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..." --data-raw '[{"adspert_id": 123, "conversion_value_source": "MANUAL", "conversion_value_type": "PROFIT", "click_optimization": true, "conversion_value": 150000, "conversion_value_factor": 1.09, "dimensions": [{"dimension": "AGE", "optimized": true}]}]'
echo '[ { "adspert_id": 123, "click_optimization": true, "conversion_value": 150000, "conversion_value_factor": 1.09, "conversion_value_source": "MANUAL", "conversion_value_type": "PROFIT", "dimensions": [ { "dimension": "AGE", "optimized": true } ] } ]' | http PATCH https://api.adspert.net/v3/accounts Accept:application/json Content-Type:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.patch('https://api.adspert.net/v3/accounts', headers={'Accept': 'application/json', 'Content-Type': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'}, json=[{'adspert_id': 123, 'conversion_value_source': 'MANUAL', 'conversion_value_type': 'PROFIT', 'click_optimization': True, 'conversion_value': 150000, 'conversion_value_factor': 1.09, 'dimensions': [{'dimension': 'AGE', 'optimized': True}]}])
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": { "unchanged": [ { "adspert_id": 123, "conversion_value_source": "MANUAL", "conversion_value_type": "PROFIT", "click_optimization": true, "conversion_value": 150000, "conversion_value_factor": 1.09, "dimensions": [ { "dimension": "AGE", "optimized": true } ] } ], "unknown": [ { "adspert_id": 123, "conversion_value_source": "MANUAL", "conversion_value_type": "PROFIT", "click_optimization": true, "conversion_value": 150000, "conversion_value_factor": 1.09, "dimensions": [ { "dimension": "AGE", "optimized": true } ] } ], "updated": [ { "adspert_id": 123, "conversion_value_source": "MANUAL", "conversion_value_type": "PROFIT", "click_optimization": true, "conversion_value": 150000, "conversion_value_factor": 1.09, "dimensions": [ { "dimension": "AGE", "optimized": true } ] } ] }, "meta": {} }
AccountTagCollection
GET
- GET /v3/accounts/tags
Retrieve a list of account tags.
Query Params
Name
Type
Description
include
Fields to include in response data.
exclude
Fields to exclude in response data.
filter_account_id
[ String ]
Only return results matching given
account_id
values.filter_adspert_account_id
[ Integer ]
Only return results matching given
adspert_account_id
values.filter_customer_id
[ Integer ]
Only return results matching given
customer_id
values.filter_tag_name
[ String ]
Only return results matching given
tag_name
values.filter_tag_scope
[ AccountTagScope ]
Only return results matching given
tag_scope
values.search_fields
Fields that should be searched using the
search_term
.search_term
String
Search term used to search the
search_fields
.search_account_id
String
Only return results where
account_id
matches the given string.search_account_name
String
Only return results where
account_name
matches the given string.search_customer_id
String
Only return results where
customer_id
matches the given string.search_tag_name
String
Only return results where
tag_name
matches the given string.sort_account_id
Sort results by
account_id
.sort_account_name
Sort results by
account_name
.sort_adspert_account_id
Sort results by
adspert_account_id
.sort_customer_id
Sort results by
customer_id
.sort_tag_name
Sort results by
tag_name
.sort_tag_scope
Sort results by
tag_scope
.offset
Integer
Start index for result list.
Default: 0
Min value: 0
limit
Integer
Maximum number of results to return. The maximum allowed value depends on the response media type (10000 for JSON and 100000 for tabular formats like CSV).
Default: 10
Min value: 1
Response Data (object list, json or csv or xlsx)
Name
Type
Description
customer_id
searchable
Integer
ID of the customer that the tagged account belongs to.
customer_name
String
Name of the customer that the tagged account belongs to.
adspert_account_id
Integer
Adspert internal ID of the advertising account
account_id
searchable
String
account_name
searchable
String
tag_name
searchable
String
Name of the tag (must not contain white space).
tag_scope
Scope of the tag. System-scope tags are read-only!
Example
GET /v3/accounts/tags?sort_tag_name=0&sort_tag_scope=-6&search_tag_name=tucan+ipsum HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl -i -X GET 'https://api.adspert.net/v3/accounts/tags?sort_tag_name=0&sort_tag_scope=-6&search_tag_name=tucan+ipsum' -H "Accept: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
http 'https://api.adspert.net/v3/accounts/tags?sort_tag_name=0&sort_tag_scope=-6&search_tag_name=tucan+ipsum' Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.get('https://api.adspert.net/v3/accounts/tags?sort_tag_name=0&sort_tag_scope=-6&search_tag_name=tucan+ipsum', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": [ { "customer_id": 2022024680, "customer_name": "amet sit", "adspert_account_id": 3420379091, "account_id": "amet lorem", "account_name": "vehicula ipsum", "tag_name": "shopping", "tag_scope": "ADMIN" } ], "meta": { "pagination": { "offset": 0, "limit": 10, "total": 74, "sort": { "customer_id": 1 } } } }
PUT
- PUT /v3/accounts/tags
Set a list of account tags.
Request Data (object list, json or csv)
Name
Type
Description
customer_id
Integer
ID of the customer that the tagged account belongs to.
adspert_account_id
Integer
Adspert internal ID of the advertising account
tag_name
String
Name of the tag (must not contain white space).
tag_scope
Scope of the tag. System-scope tags are read-only!
Default: USER
Response Data (single object, json or csv or xlsx)
Name
Type
Description
created
[ Object ]
List of objects which have been created.
⤷
customer_id
Integer
See request data description.
⤷
adspert_account_id
Integer
See request data description.
⤷
tag_name
String
See request data description.
⤷
tag_scope
See request data description.
unchanged
[ Object ]
List of objects which had no effective change.
⤷
customer_id
Integer
See request data description.
⤷
adspert_account_id
Integer
See request data description.
⤷
tag_name
String
See request data description.
⤷
tag_scope
See request data description.
updated
[ Object ]
List of objects which have been updated.
⤷
customer_id
Integer
See request data description.
⤷
adspert_account_id
Integer
See request data description.
⤷
tag_name
String
See request data description.
⤷
tag_scope
See request data description.
Example
PUT /v3/accounts/tags HTTP/1.1 Host: api.adspert.net Accept: application/json Content-Type: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5... [ { "customer_id": 2022024680, "adspert_account_id": 3420379091, "tag_name": "shopping", "tag_scope": "ADMIN" } ]
curl -i -X PUT https://api.adspert.net/v3/accounts/tags -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..." --data-raw '[{"customer_id": 2022024680, "adspert_account_id": 3420379091, "tag_name": "shopping", "tag_scope": "ADMIN"}]'
echo '[ { "adspert_account_id": 3420379091, "customer_id": 2022024680, "tag_name": "shopping", "tag_scope": "ADMIN" } ]' | http PUT https://api.adspert.net/v3/accounts/tags Accept:application/json Content-Type:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.put('https://api.adspert.net/v3/accounts/tags', headers={'Accept': 'application/json', 'Content-Type': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'}, json=[{'customer_id': 2022024680, 'adspert_account_id': 3420379091, 'tag_name': 'shopping', 'tag_scope': 'ADMIN'}])
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": { "created": [ { "customer_id": 2022024680, "adspert_account_id": 3420379091, "tag_name": "shopping", "tag_scope": "ADMIN" } ], "unchanged": [ { "customer_id": 2022024680, "adspert_account_id": 3420379091, "tag_name": "shopping", "tag_scope": "ADMIN" } ], "updated": [ { "customer_id": 2022024680, "adspert_account_id": 3420379091, "tag_name": "shopping", "tag_scope": "ADMIN" } ] }, "meta": {} }
DELETE
- DELETE /v3/accounts/tags
Delete a list of account tags.
Request Data (object list, json or csv)
Name
Type
Description
customer_id
Integer
ID of the customer that the tagged account belongs to.
adspert_account_id
Integer
Adspert internal ID of the advertising account
tag_name
String
Name of the tag (must not contain white space).
tag_scope
Scope of the tag. System-scope tags are read-only!
Default: USER
Response Data (single object, json or csv or xlsx)
Name
Type
Description
deleted
[ Object ]
List of objects which have been deleted.
⤷
customer_id
Integer
See request data description.
⤷
adspert_account_id
Integer
See request data description.
⤷
tag_name
String
See request data description.
⤷
tag_scope
See request data description.
unknown
[ Object ]
List of objects which could not be found.
⤷
customer_id
Integer
See request data description.
⤷
adspert_account_id
Integer
See request data description.
⤷
tag_name
String
See request data description.
⤷
tag_scope
See request data description.
Example
DELETE /v3/accounts/tags HTTP/1.1 Host: api.adspert.net Accept: application/json Content-Type: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5... [ { "customer_id": 2022024680, "adspert_account_id": 3420379091, "tag_name": "shopping", "tag_scope": "ADMIN" } ]
curl -i -X DELETE https://api.adspert.net/v3/accounts/tags -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..." --data-raw '[{"customer_id": 2022024680, "adspert_account_id": 3420379091, "tag_name": "shopping", "tag_scope": "ADMIN"}]'
echo '[ { "adspert_account_id": 3420379091, "customer_id": 2022024680, "tag_name": "shopping", "tag_scope": "ADMIN" } ]' | http DELETE https://api.adspert.net/v3/accounts/tags Accept:application/json Content-Type:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.delete('https://api.adspert.net/v3/accounts/tags', headers={'Accept': 'application/json', 'Content-Type': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'}, json=[{'customer_id': 2022024680, 'adspert_account_id': 3420379091, 'tag_name': 'shopping', 'tag_scope': 'ADMIN'}])
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": { "deleted": [ { "customer_id": 2022024680, "adspert_account_id": 3420379091, "tag_name": "shopping", "tag_scope": "ADMIN" } ], "unknown": [ { "customer_id": 2022024680, "adspert_account_id": 3420379091, "tag_name": "shopping", "tag_scope": "ADMIN" } ] }, "meta": {} }
BidAdjustmentSettingsCollection
GET
- GET /v3/accounts/(adspert_account_id: int)/bid-adjustment-settings
-
Response Data (object list, json or csv or xlsx)
Name
Type
Description
dimension
optimized
Boolean
Example
GET /v3/accounts/3420379091/bid-adjustment-settings HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl -i -X GET https://api.adspert.net/v3/accounts/3420379091/bid-adjustment-settings -H "Accept: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
http https://api.adspert.net/v3/accounts/3420379091/bid-adjustment-settings Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.get('https://api.adspert.net/v3/accounts/3420379091/bid-adjustment-settings', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": [ { "dimension": "AGE", "optimized": true } ], "meta": {} }
PATCH
- PATCH /v3/accounts/(adspert_account_id: int)/bid-adjustment-settings
-
Request Data (object list, json or csv)
Name
Type
Description
dimension
required
optimized
required
Boolean
Example
PATCH /v3/accounts/3420379091/bid-adjustment-settings HTTP/1.1 Host: api.adspert.net Accept: application/json Content-Type: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5... [ { "dimension": "AGE", "optimized": true } ]
curl -i -X PATCH https://api.adspert.net/v3/accounts/3420379091/bid-adjustment-settings -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..." --data-raw '[{"dimension": "AGE", "optimized": true}]'
echo '[ { "dimension": "AGE", "optimized": true } ]' | http PATCH https://api.adspert.net/v3/accounts/3420379091/bid-adjustment-settings Accept:application/json Content-Type:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.patch('https://api.adspert.net/v3/accounts/3420379091/bid-adjustment-settings', headers={'Accept': 'application/json', 'Content-Type': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'}, json=[{'dimension': 'AGE', 'optimized': True}])
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": null, "meta": {} }
Structure
Structure objects in ad accounts (campaigns, products, …).
PerformanceGroupCollection
GET
- GET /v3/customers/(customer_id: int)/performance-groups
Retrieve a list of performance groups.
Query Params
Name
Type
Description
include
Fields to include in response data.
exclude
Fields to exclude in response data.
filter_adspert_account_id
[ Integer ]
Only return results matching given
adspert_account_id
values.filter_account_id
[ String ]
Only return results matching given
account_id
values.filter_account_name
[ String ]
Only return results matching given
account_name
values.filter_account_platform
[ AdPlatform ]
Only return results matching given
account_platform
values.filter_account_optimize
[ Boolean ]
Only return results matching given
account_optimize
values.filter_account_tags_user
[ String ]
Only return results matching given
account_tags_user
values.filter_account_is_demo
[ Boolean ]
Only return results matching given
account_is_demo
values.filter_adspert_campaign_id
[ CompositeID ]
Only return results matching given
adspert_campaign_id
values.filter_campaign_id
[ LargeInteger ]
Only return results matching given
campaign_id
values.filter_campaign_name
[ String ]
Only return results matching given
campaign_name
values.filter_campaign_type
[ CampaignType ]
Only return results matching given
campaign_type
values.filter_campaign_eby_marketplace_id
[ String ]
Only return results matching given
campaign_eby_marketplace_id
values.filter_campaign_status
[ CampaignStatus ]
Only return results matching given
campaign_status
values.filter_campaign_optimize
[ Boolean ]
Only return results matching given
campaign_optimize
values.filter_campaign_optimization_type
[ OptimizationType ]
Only return results matching given
campaign_optimization_type
values.filter_campaign_labels
[ String ]
Only return results matching given
campaign_labels
values.filter_campaign_amz_targeting_type
[ AmzTargetingType ]
Only return results matching given
campaign_amz_targeting_type
values.filter_adspert_portfolio_id
[ CompositeID ]
Only return results matching given
adspert_portfolio_id
values.filter_amz_portfolio_name
[ String ]
Only return results matching given
amz_portfolio_name
values.filter_campaigns_count
[ Integer ]
Only return results matching given
campaigns_count
values.filter_campaigns_count_ge
Integer
Only return results where
campaigns_count
is equal or greater than this value.filter_campaigns_count_le
Integer
Only return results where
campaigns_count
is equal or lower than this value.filter_enabled
[ Boolean ]
Only return results matching given
enabled
values.filter_goal_types
Only return results matching given
goal_types
values.filter_name
[ String ]
Only return results matching given
name
values.filter_optimization_type
[ OptimizationType ]
Only return results matching given
optimization_type
values.filter_performance_group_id
[ Integer ]
Only return results matching given
performance_group_id
values.filter_warning_status
Only return results matching given
warning_status
values.search_fields
Fields that should be searched using the
search_term
.search_term
String
Search term used to search the
search_fields
.search_account_id
String
Only return results where
account_id
matches the given string.search_account_name
String
Only return results where
account_name
matches the given string.search_account_tags_user
String
Only return results where
account_tags_user
matches the given string.search_campaign_name
String
Only return results where
campaign_name
matches the given string.search_amz_portfolio_name
String
Only return results where
amz_portfolio_name
matches the given string.search_name
String
Only return results where
name
matches the given string.search_performance_group_id
String
Only return results where
performance_group_id
matches the given string.sort_created_at
Sort results by
created_at
.sort_enabled
Sort results by
enabled
.sort_goal_types
Sort results by
goal_types
.sort_name
Sort results by
name
.sort_optimization_type
Sort results by
optimization_type
.sort_performance_group_id
Sort results by
performance_group_id
.sort_warning_status
Sort results by
warning_status
.offset
Integer
Start index for result list.
Default: 0
Min value: 0
limit
Integer
Maximum number of results to return. The maximum allowed value depends on the response media type (10000 for JSON and 100000 for tabular formats like CSV).
Default: 10
Min value: 1
Response Data (object list, json or csv or xlsx)
Name
Type
Description
performance_group_id
searchable
Integer
Unique ID of the performance group
name
searchable
String
Unique name of the performance group.
optimization_type
Optimization type of the performance group.
Only campaigns of the same optimization type can be added to a given performance group.
enabled
Boolean
created_at
goals
[ Object ]
List of performance group goals
⤷
goal_type
Type of the performance group goal
⤷
goal_value
Float
Value of the performance group goal.
goal_value
should beNULL
ifgoal_type
isPROFIT-MAXIMIZATION
.goal_value
should be a ratio (> 0) ifgoal_type
isROAS
,CRR
andROI
,goal_value
should be specified in micros and be larger than 10000 ifgoal_type
isCOST-PER-DAY
,COST-PER-CONVERSION
andCOST-PER-CLICK
.⤷
goal_currency
Currency of the performance group goal.
Currency is required for
COST-PER-DAY
,COST-PER-CONVERSION
andCOST-PER-CLICK
goals.⤷
goal_micros
Value for
COST-PER-DAY
,COST-PER-CONVERSION
andCOST-PER-CLICK
goals.Same as
goal_value
, but in a properly typed field for easier client-side handling and improved representation in tabular response data like CSV.⤷
goal_ratio
Float
Value for
ROAS
,CRR
andROI
goals.Same as
goal_value
, but in a properly typed field for easier client-side handling and improved representation in tabular response data like CSV.goal_types
List of performance group goal types
campaigns
[ CompositeID ]
List of campaigns that belong to the performance group.
Each item in the list is a composite id:
{adspert_id}:{campaign_id}
.campaigns_count
Integer
warnings
[ Object ]
⤷
type
Type of the warning
⤷
priority
Priority of the warning
⤷
adspert_account_id
searchable
Integer
Adspert internal ID of the advertising account
⤷
adspert_campaign_id
Adspert internal ID of the campaign.
Composite ID specification:
{adspert_account_id}:{campaign_id}
⤷
campaign_id
searchable
⤷
created_at
⤷
acknowledged_at
warning_status
Status that summarizes all warnings associated with this performance group.
default_for_accounts
[ Integer ]
List of accounts that use this performance group as a default for newly added campaigns.
Each item in the list is an
adspert_account_id
.user_max_bid
Object
Max bid for the performance group or campaign
⤷
micros
Monetary value in micros.
⤷
currency
Currency of the monetary value.
pg_currency
Performance Group currency. While mutating PG monetary goals or user_max_bid, monetary goals goal_currency and user_max_bid currency should match this currency.
Example
GET /v3/customers/7027038674/performance-groups?filter_campaign_optimization_type=CLICK&filter_warning_status=ACKNOWLEDGED&search_name=vehicula+sit HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl -i -X GET 'https://api.adspert.net/v3/customers/7027038674/performance-groups?filter_campaign_optimization_type=CLICK&filter_warning_status=ACKNOWLEDGED&search_name=vehicula+sit' -H "Accept: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
http 'https://api.adspert.net/v3/customers/7027038674/performance-groups?filter_campaign_optimization_type=CLICK&filter_warning_status=ACKNOWLEDGED&search_name=vehicula+sit' Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.get('https://api.adspert.net/v3/customers/7027038674/performance-groups?filter_campaign_optimization_type=CLICK&filter_warning_status=ACKNOWLEDGED&search_name=vehicula+sit', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": [ { "performance_group_id": "1245", "name": "tucan lorem", "optimization_type": "CLICK", "enabled": true, "created_at": "2018-10-21T16:45:23+02:00", "goals": [ { "goal_type": "CLICKS-PER-DAY", "goal_value": 1.41, "goal_currency": "AED", "goal_micros": 6300000, "goal_ratio": 8.77 } ], "goal_types": [ "CLICKS-PER-DAY" ], "campaigns": [ "123:5555" ], "campaigns_count": 5928586564, "warnings": [ { "type": "ACCOUNT-API-ACCESS-NONE", "priority": "HIGH", "adspert_account_id": 123, "adspert_campaign_id": "123:5555", "campaign_id": "5555", "created_at": "2018-10-21T16:45:23+02:00", "acknowledged_at": "2018-10-21T16:45:23+02:00" } ], "warning_status": "ACKNOWLEDGED", "default_for_accounts": [ 123 ], "user_max_bid": { "micros": 8340000, "currency": "AED" }, "pg_currency": "AED" } ], "meta": { "pagination": { "offset": 0, "limit": 10, "total": 74, "sort": { "performance_group_id": 1 } } } }
POST
- POST /v3/customers/(customer_id: int)/performance-groups
Create a new performance group.
Responds with a
409 (Conflict)
if accounts of this customer are currently moved to another customer. During that time customer-level setting changes are not allowed.Request Data (single object, json)
Name
Type
Description
name
required
String
Unique name of the performance group.
optimization_type
required
Optimization type of the performance group.
Only campaigns of the same optimization type can be added to a given performance group.
enabled
required
Boolean
goals
required
[ Object ]
List of performance group goals
⤷
goal_type
required
Type of the performance group goal
⤷
goal_value
Float
Value of the performance group goal.
goal_value
should beNULL
ifgoal_type
isPROFIT-MAXIMIZATION
.goal_value
should be a ratio (> 0) ifgoal_type
isROAS
,CRR
andROI
,goal_value
should be specified in micros and be larger than 10000 ifgoal_type
isCOST-PER-DAY
,COST-PER-CONVERSION
andCOST-PER-CLICK
.⤷
goal_currency
Currency of the performance group goal.
Currency is required for
COST-PER-DAY
,COST-PER-CONVERSION
andCOST-PER-CLICK
goals.campaigns
[ CompositeID ]
List of campaigns that belong to the performance group.
Each item in the list is a composite id:
{adspert_id}:{campaign_id}
.default_for_accounts
[ Integer ]
List of accounts that use this performance group as a default for newly added campaigns.
Each item in the list is an
adspert_account_id
.user_max_bid
required
Object
Max bid for the performance group or campaign
⤷
micros
required
Monetary value in micros.
Min value: 1000
⤷
currency
required
Currency of the monetary value.
pg_currency
Performance Group currency. While mutating PG monetary goals or user_max_bid, monetary goals goal_currency and user_max_bid currency should match this currency.
Default: EUR
Response Data (single object, json or csv or xlsx)
Name
Type
Description
performance_group_id
Integer
Unique ID of the performance group
name
String
Unique name of the performance group.
optimization_type
Optimization type of the performance group.
Only campaigns of the same optimization type can be added to a given performance group.
enabled
Boolean
created_at
goals
[ Object ]
List of performance group goals
⤷
goal_type
Type of the performance group goal
⤷
goal_value
Float
Value of the performance group goal.
goal_value
should beNULL
ifgoal_type
isPROFIT-MAXIMIZATION
.goal_value
should be a ratio (> 0) ifgoal_type
isROAS
,CRR
andROI
,goal_value
should be specified in micros and be larger than 10000 ifgoal_type
isCOST-PER-DAY
,COST-PER-CONVERSION
andCOST-PER-CLICK
.⤷
goal_currency
Currency of the performance group goal.
Currency is required for
COST-PER-DAY
,COST-PER-CONVERSION
andCOST-PER-CLICK
goals.⤷
goal_micros
Value for
COST-PER-DAY
,COST-PER-CONVERSION
andCOST-PER-CLICK
goals.Same as
goal_value
, but in a properly typed field for easier client-side handling and improved representation in tabular response data like CSV.⤷
goal_ratio
Float
Value for
ROAS
,CRR
andROI
goals.Same as
goal_value
, but in a properly typed field for easier client-side handling and improved representation in tabular response data like CSV.goal_types
List of performance group goal types
campaigns
[ CompositeID ]
List of campaigns that belong to the performance group.
Each item in the list is a composite id:
{adspert_id}:{campaign_id}
.campaigns_count
Integer
warnings
[ Object ]
⤷
type
Type of the warning
⤷
priority
Priority of the warning
⤷
adspert_account_id
Integer
Adspert internal ID of the advertising account
⤷
adspert_campaign_id
Adspert internal ID of the campaign.
Composite ID specification:
{adspert_account_id}:{campaign_id}
⤷
campaign_id
⤷
created_at
⤷
acknowledged_at
warning_status
Status that summarizes all warnings associated with this performance group.
default_for_accounts
[ Integer ]
List of accounts that use this performance group as a default for newly added campaigns.
Each item in the list is an
adspert_account_id
.user_max_bid
Object
Max bid for the performance group or campaign
⤷
micros
Monetary value in micros.
⤷
currency
Currency of the monetary value.
pg_currency
Performance Group currency. While mutating PG monetary goals or user_max_bid, monetary goals goal_currency and user_max_bid currency should match this currency.
Example
POST /v3/customers/7027038674/performance-groups HTTP/1.1 Host: api.adspert.net Accept: application/json Content-Type: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5... { "name": "tucan lorem", "optimization_type": "CLICK", "enabled": true, "goals": [ { "goal_type": "CLICKS-PER-DAY", "goal_value": 1.41, "goal_currency": "AED" } ], "campaigns": [ "123:5555" ], "default_for_accounts": [ 123 ], "user_max_bid": { "micros": 8340000, "currency": "AED" }, "pg_currency": "AED" }
curl -i -X POST https://api.adspert.net/v3/customers/7027038674/performance-groups -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..." --data-raw '{"campaigns": ["123:5555"], "default_for_accounts": [123], "enabled": true, "goals": [{"goal_type": "CLICKS-PER-DAY", "goal_value": 1.41, "goal_currency": "AED"}], "name": "tucan lorem", "optimization_type": "CLICK", "pg_currency": "AED", "user_max_bid": {"currency": "AED", "micros": 8340000}}'
echo '{ "campaigns": [ "123:5555" ], "default_for_accounts": [ 123 ], "enabled": true, "goals": [ { "goal_currency": "AED", "goal_type": "CLICKS-PER-DAY", "goal_value": 1.41 } ], "name": "tucan lorem", "optimization_type": "CLICK", "pg_currency": "AED", "user_max_bid": { "currency": "AED", "micros": 8340000 } }' | http POST https://api.adspert.net/v3/customers/7027038674/performance-groups Accept:application/json Content-Type:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.post('https://api.adspert.net/v3/customers/7027038674/performance-groups', headers={'Accept': 'application/json', 'Content-Type': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'}, json={'campaigns': ['123:5555'], 'default_for_accounts': [123], 'enabled': True, 'goals': [{'goal_type': 'CLICKS-PER-DAY', 'goal_value': 1.41, 'goal_currency': 'AED'}], 'name': 'tucan lorem', 'optimization_type': 'CLICK', 'pg_currency': 'AED', 'user_max_bid': {'currency': 'AED', 'micros': 8340000}})
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": { "performance_group_id": "1245", "name": "tucan lorem", "optimization_type": "CLICK", "enabled": true, "created_at": "2018-10-21T16:45:23+02:00", "goals": [ { "goal_type": "CLICKS-PER-DAY", "goal_value": 1.41, "goal_currency": "AED", "goal_micros": 6300000, "goal_ratio": 8.77 } ], "goal_types": [ "CLICKS-PER-DAY" ], "campaigns": [ "123:5555" ], "campaigns_count": 5928586564, "warnings": [ { "type": "ACCOUNT-API-ACCESS-NONE", "priority": "HIGH", "adspert_account_id": 123, "adspert_campaign_id": "123:5555", "campaign_id": "5555", "created_at": "2018-10-21T16:45:23+02:00", "acknowledged_at": "2018-10-21T16:45:23+02:00" } ], "warning_status": "ACKNOWLEDGED", "default_for_accounts": [ 123 ], "user_max_bid": { "micros": 8340000, "currency": "AED" }, "pg_currency": "AED" }, "meta": {} }
PATCH
- PATCH /v3/customers/(customer_id: int)/performance-groups
Update a collection of performance groups.
Responds with a
409 (Conflict)
if accounts of this customer are currently moved to another customer. During that time customer-level setting changes are not allowed.Request Data (object list, json)
Name
Type
Description
performance_group_id
required
Integer
Unique ID of the performance group
name
String
Unique name of the performance group.
enabled
Boolean
goals
[ Object ]
List of performance group goals
⤷
goal_type
required
Type of the performance group goal
⤷
goal_value
Float
Value of the performance group goal.
goal_value
should beNULL
ifgoal_type
isPROFIT-MAXIMIZATION
.goal_value
should be a ratio (> 0) ifgoal_type
isROAS
,CRR
andROI
,goal_value
should be specified in micros and be larger than 10000 ifgoal_type
isCOST-PER-DAY
,COST-PER-CONVERSION
andCOST-PER-CLICK
.⤷
goal_currency
Currency of the performance group goal.
Currency is required for
COST-PER-DAY
,COST-PER-CONVERSION
andCOST-PER-CLICK
goals.campaigns
[ CompositeID ]
List of campaigns that belong to the performance group.
Each item in the list is a composite id:
{adspert_id}:{campaign_id}
.default_for_accounts
[ Integer ]
List of accounts that use this performance group as a default for newly added campaigns.
Each item in the list is an
adspert_account_id
.acknowledge_warnings
Boolean
Acknowledge performance group warnings.
Acknowledging a warning results in either marking that warning as acknowledged (with a timestamp) or deleting it.
ApiPerformanceGroupWarningType
description can be used to find out which warnings are deleted on acknowledgement.user_max_bid
Object
Max bid for the performance group or campaign
⤷
micros
required
Monetary value in micros.
Min value: 1000
⤷
currency
required
Currency of the monetary value.
pg_currency
Performance Group currency. While mutating PG monetary goals or user_max_bid, monetary goals goal_currency and user_max_bid currency should match this currency.
Response Data (single object, json or csv or xlsx)
Name
Type
Description
unchanged
[ Object ]
List of objects which had no effective change.
⤷
performance_group_id
Integer
See request data description.
⤷
name
String
See request data description.
⤷
enabled
Boolean
See request data description.
⤷
goals
[ Object ]
See request data description.
⤷
goal_type
See request data description.
⤷
goal_value
Float
See request data description.
⤷
goal_currency
See request data description.
⤷
campaigns
[ CompositeID ]
See request data description.
⤷
default_for_accounts
[ Integer ]
See request data description.
⤷
acknowledge_warnings
Boolean
See request data description.
⤷
user_max_bid
Object
See request data description.
⤷
micros
See request data description.
⤷
currency
See request data description.
⤷
pg_currency
See request data description.
unknown
[ Object ]
List of objects which could not be found.
⤷
performance_group_id
Integer
See request data description.
⤷
name
String
See request data description.
⤷
enabled
Boolean
See request data description.
⤷
goals
[ Object ]
See request data description.
⤷
goal_type
See request data description.
⤷
goal_value
Float
See request data description.
⤷
goal_currency
See request data description.
⤷
campaigns
[ CompositeID ]
See request data description.
⤷
default_for_accounts
[ Integer ]
See request data description.
⤷
acknowledge_warnings
Boolean
See request data description.
⤷
user_max_bid
Object
See request data description.
⤷
micros
See request data description.
⤷
currency
See request data description.
⤷
pg_currency
See request data description.
updated
[ Object ]
List of objects which have been updated.
⤷
performance_group_id
Integer
See request data description.
⤷
name
String
See request data description.
⤷
enabled
Boolean
See request data description.
⤷
goals
[ Object ]
See request data description.
⤷
goal_type
See request data description.
⤷
goal_value
Float
See request data description.
⤷
goal_currency
See request data description.
⤷
campaigns
[ CompositeID ]
See request data description.
⤷
default_for_accounts
[ Integer ]
See request data description.
⤷
acknowledge_warnings
Boolean
See request data description.
⤷
user_max_bid
Object
See request data description.
⤷
micros
See request data description.
⤷
currency
See request data description.
⤷
pg_currency
See request data description.
Example
PATCH /v3/customers/7027038674/performance-groups HTTP/1.1 Host: api.adspert.net Accept: application/json Content-Type: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5... [ { "performance_group_id": "1245", "name": "tucan lorem", "enabled": true, "goals": [ { "goal_type": "CLICKS-PER-DAY", "goal_value": 1.41, "goal_currency": "AED" } ], "campaigns": [ "123:5555" ], "default_for_accounts": [ 123 ], "acknowledge_warnings": true, "user_max_bid": { "micros": 8340000, "currency": "AED" }, "pg_currency": "AED" } ]
curl -i -X PATCH https://api.adspert.net/v3/customers/7027038674/performance-groups -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..." --data-raw '[{"performance_group_id": "1245", "name": "tucan lorem", "enabled": true, "goals": [{"goal_type": "CLICKS-PER-DAY", "goal_value": 1.41, "goal_currency": "AED"}], "campaigns": ["123:5555"], "default_for_accounts": [123], "acknowledge_warnings": true, "user_max_bid": {"micros": 8340000, "currency": "AED"}, "pg_currency": "AED"}]'
echo '[ { "acknowledge_warnings": true, "campaigns": [ "123:5555" ], "default_for_accounts": [ 123 ], "enabled": true, "goals": [ { "goal_currency": "AED", "goal_type": "CLICKS-PER-DAY", "goal_value": 1.41 } ], "name": "tucan lorem", "performance_group_id": "1245", "pg_currency": "AED", "user_max_bid": { "currency": "AED", "micros": 8340000 } } ]' | http PATCH https://api.adspert.net/v3/customers/7027038674/performance-groups Accept:application/json Content-Type:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.patch('https://api.adspert.net/v3/customers/7027038674/performance-groups', headers={'Accept': 'application/json', 'Content-Type': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'}, json=[{'performance_group_id': '1245', 'name': 'tucan lorem', 'enabled': True, 'goals': [{'goal_type': 'CLICKS-PER-DAY', 'goal_value': 1.41, 'goal_currency': 'AED'}], 'campaigns': ['123:5555'], 'default_for_accounts': [123], 'acknowledge_warnings': True, 'user_max_bid': {'micros': 8340000, 'currency': 'AED'}, 'pg_currency': 'AED'}])
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": { "unchanged": [ { "performance_group_id": "1245", "name": "tucan lorem", "enabled": true, "goals": [ { "goal_type": "CLICKS-PER-DAY", "goal_value": 1.41, "goal_currency": "AED" } ], "campaigns": [ "123:5555" ], "default_for_accounts": [ 123 ], "acknowledge_warnings": true, "user_max_bid": { "micros": 8340000, "currency": "AED" }, "pg_currency": "AED" } ], "unknown": [ { "performance_group_id": "1245", "name": "tucan lorem", "enabled": true, "goals": [ { "goal_type": "CLICKS-PER-DAY", "goal_value": 1.41, "goal_currency": "AED" } ], "campaigns": [ "123:5555" ], "default_for_accounts": [ 123 ], "acknowledge_warnings": true, "user_max_bid": { "micros": 8340000, "currency": "AED" }, "pg_currency": "AED" } ], "updated": [ { "performance_group_id": "1245", "name": "tucan lorem", "enabled": true, "goals": [ { "goal_type": "CLICKS-PER-DAY", "goal_value": 1.41, "goal_currency": "AED" } ], "campaigns": [ "123:5555" ], "default_for_accounts": [ 123 ], "acknowledge_warnings": true, "user_max_bid": { "micros": 8340000, "currency": "AED" }, "pg_currency": "AED" } ] }, "meta": {} }
PerformanceGroupSuggestions
GET
- GET /v3/customers/(customer_id: int)/performance-groups-suggestions
Gives out suggestions for a prospective performance group.
Query Params
Name
Type
Description
include
Fields to include in response data.
exclude
Fields to exclude in response data.
filter_adspert_campaign_id
required
[ CompositeID ]
Only return results matching given
adspert_campaign_id
values.Min items: 1
filter_currency
Request max bid suggestion in this currency
Response Data (single object, json or csv or xlsx)
Name
Type
Description
user_max_bid
Object
Max bid for the performance group or campaign
⤷
micros
Monetary value in micros.
⤷
currency
Currency of the monetary value.
Example
GET /v3/customers/7027038674/performance-groups-suggestions?filter_adspert_campaign_id=123%3A5555&exclude=elit.amet&include=ipsum.amet HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl -i -X GET 'https://api.adspert.net/v3/customers/7027038674/performance-groups-suggestions?filter_adspert_campaign_id=123%3A5555&exclude=elit.amet&include=ipsum.amet' -H "Accept: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
http 'https://api.adspert.net/v3/customers/7027038674/performance-groups-suggestions?filter_adspert_campaign_id=123%3A5555&exclude=elit.amet&include=ipsum.amet' Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.get('https://api.adspert.net/v3/customers/7027038674/performance-groups-suggestions?filter_adspert_campaign_id=123%3A5555&exclude=elit.amet&include=ipsum.amet', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": { "user_max_bid": { "micros": 8340000, "currency": "AED" } }, "meta": {} }
POST
- POST /v3/customers/(customer_id: int)/performance-groups-suggestions
Gives out suggestions for a prospective performance group.
Note - This method supports POST requests, which serve the same purpose as GET requests. The addition of POST support is necessary to accommodate potentially large query parameters.
Request Data (single object, json)
Name
Type
Description
include
Fields to include in response data.
exclude
Fields to exclude in response data.
filter_adspert_campaign_id
required
[ CompositeID ]
Only return results matching given
adspert_campaign_id
values.Min items: 1
filter_currency
Request max bid suggestion in this currency
Response Data (single object, json or csv or xlsx)
Name
Type
Description
user_max_bid
Object
Max bid for the performance group or campaign
⤷
micros
Monetary value in micros.
⤷
currency
Currency of the monetary value.
Example
POST /v3/customers/7027038674/performance-groups-suggestions HTTP/1.1 Host: api.adspert.net Accept: application/json Content-Type: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5... { "include": [ "ipsum.amet" ], "exclude": [ "elit.amet" ], "filter_adspert_campaign_id": [ "123:5555" ], "filter_currency": "AED" }
curl -i -X POST https://api.adspert.net/v3/customers/7027038674/performance-groups-suggestions -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..." --data-raw '{"exclude": ["elit.amet"], "filter_adspert_campaign_id": ["123:5555"], "filter_currency": "AED", "include": ["ipsum.amet"]}'
echo '{ "exclude": [ "elit.amet" ], "filter_adspert_campaign_id": [ "123:5555" ], "filter_currency": "AED", "include": [ "ipsum.amet" ] }' | http POST https://api.adspert.net/v3/customers/7027038674/performance-groups-suggestions Accept:application/json Content-Type:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.post('https://api.adspert.net/v3/customers/7027038674/performance-groups-suggestions', headers={'Accept': 'application/json', 'Content-Type': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'}, json={'exclude': ['elit.amet'], 'filter_adspert_campaign_id': ['123:5555'], 'filter_currency': 'AED', 'include': ['ipsum.amet']})
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": { "user_max_bid": { "micros": 8340000, "currency": "AED" } }, "meta": {} }
PerformanceGroupResource
GET
- GET /v3/customers/(customer_id: int)/performance-groups/(performance_group_id: int)
Retrieve a single performance group.
Query Params
Name
Type
Description
include
Fields to include in response data.
exclude
Fields to exclude in response data.
Response Data (single object, json or csv or xlsx)
Name
Type
Description
performance_group_id
Integer
Unique ID of the performance group
name
String
Unique name of the performance group.
optimization_type
Optimization type of the performance group.
Only campaigns of the same optimization type can be added to a given performance group.
enabled
Boolean
created_at
goals
[ Object ]
List of performance group goals
⤷
goal_type
Type of the performance group goal
⤷
goal_value
Float
Value of the performance group goal.
goal_value
should beNULL
ifgoal_type
isPROFIT-MAXIMIZATION
.goal_value
should be a ratio (> 0) ifgoal_type
isROAS
,CRR
andROI
,goal_value
should be specified in micros and be larger than 10000 ifgoal_type
isCOST-PER-DAY
,COST-PER-CONVERSION
andCOST-PER-CLICK
.⤷
goal_currency
Currency of the performance group goal.
Currency is required for
COST-PER-DAY
,COST-PER-CONVERSION
andCOST-PER-CLICK
goals.⤷
goal_micros
Value for
COST-PER-DAY
,COST-PER-CONVERSION
andCOST-PER-CLICK
goals.Same as
goal_value
, but in a properly typed field for easier client-side handling and improved representation in tabular response data like CSV.⤷
goal_ratio
Float
Value for
ROAS
,CRR
andROI
goals.Same as
goal_value
, but in a properly typed field for easier client-side handling and improved representation in tabular response data like CSV.goal_types
List of performance group goal types
campaigns
[ CompositeID ]
List of campaigns that belong to the performance group.
Each item in the list is a composite id:
{adspert_id}:{campaign_id}
.campaigns_count
Integer
warnings
[ Object ]
⤷
type
Type of the warning
⤷
priority
Priority of the warning
⤷
adspert_account_id
Integer
Adspert internal ID of the advertising account
⤷
adspert_campaign_id
Adspert internal ID of the campaign.
Composite ID specification:
{adspert_account_id}:{campaign_id}
⤷
campaign_id
⤷
created_at
⤷
acknowledged_at
warning_status
Status that summarizes all warnings associated with this performance group.
default_for_accounts
[ Integer ]
List of accounts that use this performance group as a default for newly added campaigns.
Each item in the list is an
adspert_account_id
.user_max_bid
Object
Max bid for the performance group or campaign
⤷
micros
Monetary value in micros.
⤷
currency
Currency of the monetary value.
pg_currency
Performance Group currency. While mutating PG monetary goals or user_max_bid, monetary goals goal_currency and user_max_bid currency should match this currency.
Example
GET /v3/customers/7027038674/performance-groups/6668648308?exclude=elit.amet HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl -i -X GET 'https://api.adspert.net/v3/customers/7027038674/performance-groups/6668648308?exclude=elit.amet' -H "Accept: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
http 'https://api.adspert.net/v3/customers/7027038674/performance-groups/6668648308?exclude=elit.amet' Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.get('https://api.adspert.net/v3/customers/7027038674/performance-groups/6668648308?exclude=elit.amet', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": { "performance_group_id": "1245", "name": "tucan lorem", "optimization_type": "CLICK", "enabled": true, "created_at": "2018-10-21T16:45:23+02:00", "goals": [ { "goal_type": "CLICKS-PER-DAY", "goal_value": 1.41, "goal_currency": "AED", "goal_micros": 6300000, "goal_ratio": 8.77 } ], "goal_types": [ "CLICKS-PER-DAY" ], "campaigns": [ "123:5555" ], "campaigns_count": 5928586564, "warnings": [ { "type": "ACCOUNT-API-ACCESS-NONE", "priority": "HIGH", "adspert_account_id": 123, "adspert_campaign_id": "123:5555", "campaign_id": "5555", "created_at": "2018-10-21T16:45:23+02:00", "acknowledged_at": "2018-10-21T16:45:23+02:00" } ], "warning_status": "ACKNOWLEDGED", "default_for_accounts": [ 123 ], "user_max_bid": { "micros": 8340000, "currency": "AED" }, "pg_currency": "AED" }, "meta": {} }
DELETE
- DELETE /v3/customers/(customer_id: int)/performance-groups/(performance_group_id: int)
Delete a performance group.
Responds with a
409 (Conflict)
if accounts of this customer are currently moved to another customer. During that time customer-level setting changes are not allowed.Example
DELETE /v3/customers/7027038674/performance-groups/6668648308 HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl -i -X DELETE https://api.adspert.net/v3/customers/7027038674/performance-groups/6668648308 -H "Accept: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
http DELETE https://api.adspert.net/v3/customers/7027038674/performance-groups/6668648308 Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.delete('https://api.adspert.net/v3/customers/7027038674/performance-groups/6668648308', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": null, "meta": {} }
PerformanceGroupSnapshotPerformanceCollection
GET
- GET /v3/customers/(customer_id: int)/performance-groups/(performance_group_id: int)/snapshot-performance
-
Query Params
Name
Type
Description
include
Fields to include in response data.
exclude
Fields to exclude in response data.
filter_date_ge
required
Only return results where date is on or after this date.
filter_date_le
required
Only return results where date is on or before this date.
filter_click_through_rate_clicks_ge
Float
Only return results where
click_through_rate_clicks
is equal or greater than this value.filter_click_through_rate_clicks_le
Float
Only return results where
click_through_rate_clicks
is equal or lower than this value.filter_click_through_rate_ge
Float
Only return results where
click_through_rate
is equal or greater than this value.filter_click_through_rate_le
Float
Only return results where
click_through_rate
is equal or lower than this value.filter_clicks
[ Integer ]
Only return results matching given
clicks
values.filter_clicks_ge
Integer
Only return results where
clicks
is equal or greater than this value.filter_clicks_le
Integer
Only return results where
clicks
is equal or lower than this value.filter_conversion_rate_adjusted_ge
Float
Only return results where
conversion_rate_adjusted
is equal or greater than this value.filter_conversion_rate_adjusted_le
Float
Only return results where
conversion_rate_adjusted
is equal or lower than this value.filter_conversion_rate_clicks_ge
Float
Only return results where
conversion_rate_clicks
is equal or greater than this value.filter_conversion_rate_clicks_le
Float
Only return results where
conversion_rate_clicks
is equal or lower than this value.filter_conversion_rate_ge
Float
Only return results where
conversion_rate
is equal or greater than this value.filter_conversion_rate_le
Float
Only return results where
conversion_rate
is equal or lower than this value.filter_conversions_adjusted_ge
Float
Only return results where
conversions_adjusted
is equal or greater than this value.filter_conversions_adjusted_le
Float
Only return results where
conversions_adjusted
is equal or lower than this value.filter_conversions_clicks_ge
Float
Only return results where
conversions_clicks
is equal or greater than this value.filter_conversions_clicks_le
Float
Only return results where
conversions_clicks
is equal or lower than this value.filter_conversions_for_revenue_adjusted_ge
Float
Only return results where
conversions_for_revenue_adjusted
is equal or greater than this value.filter_conversions_for_revenue_adjusted_le
Float
Only return results where
conversions_for_revenue_adjusted
is equal or lower than this value.filter_conversions_for_revenue_ge
Float
Only return results where
conversions_for_revenue
is equal or greater than this value.filter_conversions_for_revenue_le
Float
Only return results where
conversions_for_revenue
is equal or lower than this value.filter_conversions_ge
Float
Only return results where
conversions
is equal or greater than this value.filter_conversions_le
Float
Only return results where
conversions
is equal or lower than this value.filter_cost_for_click_ge
Only return results where
cost_for_click
is equal or greater than this value.Min value: 1000
filter_cost_for_click_le
Only return results where
cost_for_click
is equal or lower than this value.Min value: 1000
filter_cost_for_profit_ge
Only return results where
cost_for_profit
is equal or greater than this value.Min value: 1000
filter_cost_for_profit_le
Only return results where
cost_for_profit
is equal or lower than this value.Min value: 1000
filter_cost_for_revenue_ge
Only return results where
cost_for_revenue
is equal or greater than this value.Min value: 1000
filter_cost_for_revenue_le
Only return results where
cost_for_revenue
is equal or lower than this value.Min value: 1000
filter_cost_for_vcpm_ge
Only return results where
cost_for_vcpm
is equal or greater than this value.Min value: 1000
filter_cost_for_vcpm_le
Only return results where
cost_for_vcpm
is equal or lower than this value.Min value: 1000
filter_cost_ge
Only return results where
cost
is equal or greater than this value.Min value: 1000
filter_cost_le
Only return results where
cost
is equal or lower than this value.Min value: 1000
filter_cost_per_click_ge
Only return results where
cost_per_click
is equal or greater than this value.Min value: 1000
filter_cost_per_click_le
Only return results where
cost_per_click
is equal or lower than this value.Min value: 1000
filter_cost_per_conversion_adjusted_ge
Only return results where
cost_per_conversion_adjusted
is equal or greater than this value.Min value: 1000
filter_cost_per_conversion_adjusted_le
Only return results where
cost_per_conversion_adjusted
is equal or lower than this value.Min value: 1000
filter_cost_per_conversion_clicks_ge
Only return results where
cost_per_conversion_clicks
is equal or greater than this value.Min value: 1000
filter_cost_per_conversion_clicks_le
Only return results where
cost_per_conversion_clicks
is equal or lower than this value.Min value: 1000
filter_cost_per_conversion_ge
Only return results where
cost_per_conversion
is equal or greater than this value.Min value: 1000
filter_cost_per_conversion_le
Only return results where
cost_per_conversion
is equal or lower than this value.Min value: 1000
filter_cost_per_m_view_impressions_ge
Only return results where
cost_per_m_view_impressions
is equal or greater than this value.Min value: 1000
filter_cost_per_m_view_impressions_le
Only return results where
cost_per_m_view_impressions
is equal or lower than this value.Min value: 1000
filter_cost_revenue_ratio_adjusted_ge
Float
Only return results where
cost_revenue_ratio_adjusted
is equal or greater than this value.filter_cost_revenue_ratio_adjusted_le
Float
Only return results where
cost_revenue_ratio_adjusted
is equal or lower than this value.filter_cost_revenue_ratio_clicks_ge
Float
Only return results where
cost_revenue_ratio_clicks
is equal or greater than this value.filter_cost_revenue_ratio_clicks_le
Float
Only return results where
cost_revenue_ratio_clicks
is equal or lower than this value.filter_cost_revenue_ratio_ge
Float
Only return results where
cost_revenue_ratio
is equal or greater than this value.filter_cost_revenue_ratio_le
Float
Only return results where
cost_revenue_ratio
is equal or lower than this value.filter_impressions
[ Integer ]
Only return results matching given
impressions
values.filter_impressions_ge
Integer
Only return results where
impressions
is equal or greater than this value.filter_impressions_le
Integer
Only return results where
impressions
is equal or lower than this value.filter_profit_gross_adjusted_ge
Only return results where
profit_gross_adjusted
is equal or greater than this value.Min value: 1000
filter_profit_gross_adjusted_le
Only return results where
profit_gross_adjusted
is equal or lower than this value.Min value: 1000
filter_profit_gross_ge
Only return results where
profit_gross
is equal or greater than this value.Min value: 1000
filter_profit_gross_le
Only return results where
profit_gross
is equal or lower than this value.Min value: 1000
filter_profit_net_adjusted_ge
Only return results where
profit_net_adjusted
is equal or greater than this value.Min value: 1000
filter_profit_net_adjusted_le
Only return results where
profit_net_adjusted
is equal or lower than this value.Min value: 1000
filter_profit_net_ge
Only return results where
profit_net
is equal or greater than this value.Min value: 1000
filter_profit_net_le
Only return results where
profit_net
is equal or lower than this value.Min value: 1000
filter_return_on_ad_spend_adjusted_ge
Float
Only return results where
return_on_ad_spend_adjusted
is equal or greater than this value.filter_return_on_ad_spend_adjusted_le
Float
Only return results where
return_on_ad_spend_adjusted
is equal or lower than this value.filter_return_on_ad_spend_clicks_ge
Float
Only return results where
return_on_ad_spend_clicks
is equal or greater than this value.filter_return_on_ad_spend_clicks_le
Float
Only return results where
return_on_ad_spend_clicks
is equal or lower than this value.filter_return_on_ad_spend_ge
Float
Only return results where
return_on_ad_spend
is equal or greater than this value.filter_return_on_ad_spend_le
Float
Only return results where
return_on_ad_spend
is equal or lower than this value.filter_return_on_investment_adjusted_ge
Float
Only return results where
return_on_investment_adjusted
is equal or greater than this value.filter_return_on_investment_adjusted_le
Float
Only return results where
return_on_investment_adjusted
is equal or lower than this value.filter_return_on_investment_ge
Float
Only return results where
return_on_investment
is equal or greater than this value.filter_return_on_investment_le
Float
Only return results where
return_on_investment
is equal or lower than this value.filter_revenue_adjusted_ge
Only return results where
revenue_adjusted
is equal or greater than this value.Min value: 1000
filter_revenue_adjusted_le
Only return results where
revenue_adjusted
is equal or lower than this value.Min value: 1000
filter_revenue_clicks_ge
Only return results where
revenue_clicks
is equal or greater than this value.Min value: 1000
filter_revenue_clicks_le
Only return results where
revenue_clicks
is equal or lower than this value.Min value: 1000
filter_revenue_ge
Only return results where
revenue
is equal or greater than this value.Min value: 1000
filter_revenue_le
Only return results where
revenue
is equal or lower than this value.Min value: 1000
filter_revenue_per_conversion_adjusted_ge
Only return results where
revenue_per_conversion_adjusted
is equal or greater than this value.Min value: 1000
filter_revenue_per_conversion_adjusted_le
Only return results where
revenue_per_conversion_adjusted
is equal or lower than this value.Min value: 1000
filter_revenue_per_conversion_ge
Only return results where
revenue_per_conversion
is equal or greater than this value.Min value: 1000
filter_revenue_per_conversion_le
Only return results where
revenue_per_conversion
is equal or lower than this value.Min value: 1000
filter_view_impressions
[ Integer ]
Only return results matching given
view_impressions
values.filter_view_impressions_ge
Integer
Only return results where
view_impressions
is equal or greater than this value.filter_view_impressions_le
Integer
Only return results where
view_impressions
is equal or lower than this value.search_fields
Fields that should be searched using the
search_term
.search_term
String
Search term used to search the
search_fields
.sort_click_through_rate
Sort results by
click_through_rate
.sort_click_through_rate_clicks
Sort results by
click_through_rate_clicks
.sort_clicks
Sort results by
clicks
.sort_conversion_rate
Sort results by
conversion_rate
.sort_conversion_rate_adjusted
Sort results by
conversion_rate_adjusted
.sort_conversion_rate_clicks
Sort results by
conversion_rate_clicks
.sort_conversions
Sort results by
conversions
.sort_conversions_adjusted
Sort results by
conversions_adjusted
.sort_conversions_clicks
Sort results by
conversions_clicks
.sort_conversions_for_revenue
Sort results by
conversions_for_revenue
.sort_conversions_for_revenue_adjusted
Sort results by
conversions_for_revenue_adjusted
.sort_cost
Sort results by
cost
.sort_cost_for_click
Sort results by
cost_for_click
.sort_cost_for_profit
Sort results by
cost_for_profit
.sort_cost_for_revenue
Sort results by
cost_for_revenue
.sort_cost_for_vcpm
Sort results by
cost_for_vcpm
.sort_cost_per_click
Sort results by
cost_per_click
.sort_cost_per_conversion
Sort results by
cost_per_conversion
.sort_cost_per_conversion_adjusted
Sort results by
cost_per_conversion_adjusted
.sort_cost_per_conversion_clicks
Sort results by
cost_per_conversion_clicks
.sort_cost_per_m_view_impressions
Sort results by
cost_per_m_view_impressions
.sort_cost_revenue_ratio
Sort results by
cost_revenue_ratio
.sort_cost_revenue_ratio_adjusted
Sort results by
cost_revenue_ratio_adjusted
.sort_cost_revenue_ratio_clicks
Sort results by
cost_revenue_ratio_clicks
.sort_date
Sort results by
date
.sort_enabled
Sort results by
enabled
.sort_impressions
Sort results by
impressions
.sort_profit_gross
Sort results by
profit_gross
.sort_profit_gross_adjusted
Sort results by
profit_gross_adjusted
.sort_profit_net
Sort results by
profit_net
.sort_profit_net_adjusted
Sort results by
profit_net_adjusted
.sort_return_on_ad_spend
Sort results by
return_on_ad_spend
.sort_return_on_ad_spend_adjusted
Sort results by
return_on_ad_spend_adjusted
.sort_return_on_ad_spend_clicks
Sort results by
return_on_ad_spend_clicks
.sort_return_on_investment
Sort results by
return_on_investment
.sort_return_on_investment_adjusted
Sort results by
return_on_investment_adjusted
.sort_revenue
Sort results by
revenue
.sort_revenue_adjusted
Sort results by
revenue_adjusted
.sort_revenue_clicks
Sort results by
revenue_clicks
.sort_revenue_per_conversion
Sort results by
revenue_per_conversion
.sort_revenue_per_conversion_adjusted
Sort results by
revenue_per_conversion_adjusted
.sort_view_impressions
Sort results by
view_impressions
.offset
Integer
Start index for result list.
Default: 0
Min value: 0
limit
Integer
Maximum number of results to return. The maximum allowed value depends on the response media type (10000 for JSON and 100000 for tabular formats like CSV).
Default: 10
Min value: 1
currency
required
Response Data (object list, json or csv or xlsx)
Name
Type
Description
date
enabled
Boolean
goals
[ Object ]
List of performance group goals
⤷
goal_type
Type of the performance group goal
⤷
goal_value
Float
Value of the performance group goal.
goal_value
should beNULL
ifgoal_type
isPROFIT-MAXIMIZATION
.goal_value
should be a ratio (> 0) ifgoal_type
isROAS
,CRR
andROI
,goal_value
should be specified in micros and be larger than 10000 ifgoal_type
isCOST-PER-DAY
,COST-PER-CONVERSION
andCOST-PER-CLICK
.⤷
goal_currency
Currency of the performance group goal.
Currency is required for
COST-PER-DAY
,COST-PER-CONVERSION
andCOST-PER-CLICK
goals.⤷
goal_micros
Value for
COST-PER-DAY
,COST-PER-CONVERSION
andCOST-PER-CLICK
goals.Same as
goal_value
, but in a properly typed field for easier client-side handling and improved representation in tabular response data like CSV.⤷
goal_ratio
Float
Value for
ROAS
,CRR
andROI
goals.Same as
goal_value
, but in a properly typed field for easier client-side handling and improved representation in tabular response data like CSV.impressions
Integer
Number of impressions
view_impressions
Integer
Number of viewable impressions
clicks
Integer
Number of clicks
conversions
Float
Number of conversions including view impressions.
Always 0 for click optimized campaigns.
conversions_clicks
Float
Number of conversions from clicks only
Valid only for vCPM campaigns. For non-vCPM campaigns, this is the same as
conversions
.conversions_adjusted
Float
Number of conversions adjusted for conversion delay.
Always 0 for click optimized campaigns.
conversions_for_revenue
Float
Number of conversions for campaigns that support revenues.
Always 0 for campaigns that don’t support revenue.
conversions_for_revenue_adjusted
Float
Number of conversions for campaigns that support revenues adjusted for conversion delay.
Always 0 for campaigns that don’t support revenue.
profit_gross
Gross profit.
Always 0 for click and revenue optimized campaigns.
profit_gross_adjusted
Gross profit adjusted for conversion delay.
Always 0 for click and revenue optimized campaigns.
profit_net
Net profit.
profit_gross
-cost_for_profit
Always 0 for click and revenue optimized campaigns.
profit_net_adjusted
Net profit adjusted for conversion delay.
profit_gross_adjusted
-cost_for_profit
Always 0 for click and revenue optimized campaigns.
revenue
Revenue/sales.
Always 0 for click and profit optimized campaigns.
revenue_clicks
Revenue/sales from clicks only.
Valid only for vCPM campaigns. For non-vCPM campaigns, this is the same as
revenue
.revenue_adjusted
Revenue/sales adjusted for conversion delay.
Always 0 for click and profit optimized campaigns.
cost
Total ad spend / cost
cost_for_profit
Ad spend from campaigns that support profit.
Always 0 for campaigns that don’t support profit.
cost_for_revenue
Ad spend from campaigns that support revenue.
Always 0 for campaigns that don’t support revenue.
cost_for_click
Ad spend / cost from click optimized campaigns.
Always 0 for revenue and profit optimized campaigns.
cost_for_vcpm
Ad spend from vcpm optimized campaigns.
Always 0 for campaigns that aren’t vcpm optimized.
cost_per_click
Effective CPC.
cost
/clicks
NULL if number of
clicks
is 0.cost_per_m_view_impressions
Cost per mille viewable impressions. Valid only for vCPM campaigns.
cost
/view_impressions
NULL if number of
view_impressions
is 0.cost_per_conversion
Cost per conversion.
Only cost for profit and revenue optimized campaigns is included.
(
cost
-cost_for_click
) /conversions
NULL if number of
conversions
is 0.cost_per_conversion_clicks
Cost per conversion.
Only cost for profit and revenue optimized campaigns is included.
(
cost
-cost_for_click
) /conversions
NULL if number of
conversions
is 0.cost_per_conversion_adjusted
Cost per conversion, adjusted for conversion delay.
Only cost for profit and revenue optimized campaigns is included.
(
cost
-cost_for_click
) /conversions_adjusted
NULL if number of
conversions_adjusted
is 0.conversion_rate
Float
Conversion rate.
conversions
/clicks
NULL if number of
clicks
is 0.conversion_rate_clicks
Float
Conversion rate from clicks only.
Valid only for vCPM campaigns. For non-vCPM campaigns, this is the same as
conversion_rate
.view_conversions
/clicks
NULL if number of
clicks
is 0.conversion_rate_adjusted
Float
Conversion rate, adjusted for conversion delay.
conversions_adjusted
/clicks
NULL if number of
clicks
is 0.click_through_rate
Float
Clickthrough rate (CTR).
clicks
/impressions
NULL if number of
impressions
is 0.click_through_rate_clicks
Float
Clickthrough rate (CTR) from clicks only.
Valid only for vCPM campaigns. For non-vCPM campaigns, this is the same as
click_through_rate
.clicks
/view_impressions
NULL if number of
view_impressions
is 0.return_on_investment
Float
Return on investment (ROI).
Only cost for profit optimized campaigns is included.
profit_gross
/cost_for_profit
NULL if
cost_for_profit
is 0.return_on_investment_adjusted
Float
Return on investment (ROI), adjusted for conversion delay.
Only cost for profit optimized campaigns is included.
profit_gross_adjusted
/cost_for_profit
NULL if
cost_for_profit
is 0.return_on_ad_spend
Float
Return on ad spend (ROAS).
Only cost for revenue optimized campaigns is included.
revenue
/cost_for_revenue
NULL if
cost_for_revenue
is 0.return_on_ad_spend_clicks
Float
Return on ad spend (ROAS).
Valid only for vCPM campaigns. For non-vCPM campaigns, this is the same as
return_on_ad_spend
.revenue
/cost_for_revenue
NULL if
cost_for_revenue
is 0.return_on_ad_spend_adjusted
Float
Return on ad spend (ROAS), adjusted for conversion delay.
Only cost for revenue optimized campaigns is included.
revenue_adjusted
/cost_for_revenue
NULL if
cost_for_revenue
is 0.cost_revenue_ratio
Float
Cost Revenue Ratio (CRR).
Also called Advertising Cost of Sale (ACoS).
Only cost for revenue optimized campaigns is included.
cost_for_revenue
/revenue
NULL if
revenue
is 0.cost_revenue_ratio_clicks
Float
Cost Revenue Ratio (CRR) from clicks only.
Valid only for vCPM campaigns. For non-vCPM campaigns, this is the same as
cost_revenue_ratio
.Also called Advertising Cost of Sale (ACoS).
cost_for_revenue
/revenue_clicks
NULL if
revenue_clicks
is 0.cost_revenue_ratio_adjusted
Float
Cost Revenue Ratio (CRR), adjusted for conversion delay.
Also called Advertising Cost of Sale (ACoS).
Only cost for revenue optimized campaigns is included.
cost_for_revenue
/revenue_adjusted
NULL if
cost_for_revenue
is 0.revenue_per_conversion
Revenue per conversions.
Only revenue and conversions for revenue supporting campaigns are included.
revenue
/conversions_for_revenue
NULL if campaign doesn’t support revenue.
revenue_per_conversion_adjusted
Revenue per conversions adjusted for conversion delay.
Only revenue and conversions for revenue supporting campaigns are included.
revenue_adjusted
/conversions_for_revenue_adjusted
NULL if campaign doesn’t support revenue.
has_vcpm
Boolean
Whether the grouped-by entity has any campaigns with vCPM enabled.
Example
GET /v3/customers/7027038674/performance-groups/6668648308/snapshot-performance?filter_cost_revenue_ratio_clicks_le=19.65&sort_impressions=1&sort_cost_for_vcpm=3 HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl -i -X GET 'https://api.adspert.net/v3/customers/7027038674/performance-groups/6668648308/snapshot-performance?filter_cost_revenue_ratio_clicks_le=19.65&sort_impressions=1&sort_cost_for_vcpm=3' -H "Accept: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
http 'https://api.adspert.net/v3/customers/7027038674/performance-groups/6668648308/snapshot-performance?filter_cost_revenue_ratio_clicks_le=19.65&sort_impressions=1&sort_cost_for_vcpm=3' Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.get('https://api.adspert.net/v3/customers/7027038674/performance-groups/6668648308/snapshot-performance?filter_cost_revenue_ratio_clicks_le=19.65&sort_impressions=1&sort_cost_for_vcpm=3', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": [ { "date": "2018-10-21", "enabled": true, "goals": [ { "goal_type": "CLICKS-PER-DAY", "goal_value": 1.41, "goal_currency": "AED", "goal_micros": 6300000, "goal_ratio": 8.77 } ], "impressions": 2157218327, "view_impressions": 4923863656, "clicks": 5857268080, "conversions": 3.92, "conversions_clicks": 11.04, "conversions_adjusted": 18.15, "conversions_for_revenue": 4.57, "conversions_for_revenue_adjusted": 4.9, "profit_gross": 6420000, "profit_gross_adjusted": 9200000, "profit_net": 30000, "profit_net_adjusted": 3540000, "revenue": 360000, "revenue_clicks": 8260000, "revenue_adjusted": 9120000, "cost": 4540000, "cost_for_profit": 800000, "cost_for_revenue": 6910000, "cost_for_click": 6810000, "cost_for_vcpm": 210000, "cost_per_click": 7300000, "cost_per_m_view_impressions": 7000000, "cost_per_conversion": 7570000, "cost_per_conversion_clicks": 8380000, "cost_per_conversion_adjusted": 340000, "conversion_rate": 0.86, "conversion_rate_clicks": 5.66, "conversion_rate_adjusted": 4.8, "click_through_rate": 7.58, "click_through_rate_clicks": 17.16, "return_on_investment": 3.28, "return_on_investment_adjusted": 1.3, "return_on_ad_spend": 2.29, "return_on_ad_spend_clicks": 5.1, "return_on_ad_spend_adjusted": 8.05, "cost_revenue_ratio": 16.41, "cost_revenue_ratio_clicks": 19.69, "cost_revenue_ratio_adjusted": 10.14, "revenue_per_conversion": 7070000, "revenue_per_conversion_adjusted": 4550000, "has_vcpm": true } ], "meta": { "pagination": { "offset": 0, "limit": 10, "total": 74, "sort": { "date": 1 } } } }
AmazonPortfolioResource
GET
- GET /v3/customers/(customer_id: int)/portfolios/(adspert_portfolio_id: str)
Retrieve a single portfolio.
Query Params
Name
Type
Description
include
Fields to include in response data.
exclude
Fields to exclude in response data.
Response Data (single object, json or csv or xlsx)
Name
Type
Description
adspert_account_id
Integer
Adspert internal ID of the advertising account
account_id
String
Ad platform specific ID of an advertising account.
account_name
String
account_platform
The account’s advertising platform.
account_optimize
Boolean
If optimization by Adspert is enabled for this account.
account_tags_user
[ String ]
account_is_demo
Boolean
If the account is a generated account for demonstration purposes.
Demo accounts have no counterpart in the ad platform.
adspert_portfolio_id
Adspert internal ID of Amazon portfolio.
Composite ID specification:
{adspert_account_id}:{portfolio_id}
portfolio_id
portfolio_name
String
Example
GET /v3/customers/7027038674/portfolios/ID-1234?include=ipsum.amet HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl -i -X GET 'https://api.adspert.net/v3/customers/7027038674/portfolios/ID-1234?include=ipsum.amet' -H "Accept: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
http 'https://api.adspert.net/v3/customers/7027038674/portfolios/ID-1234?include=ipsum.amet' Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.get('https://api.adspert.net/v3/customers/7027038674/portfolios/ID-1234?include=ipsum.amet', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": { "adspert_account_id": 123, "account_id": "amet lorem", "account_name": "vehicula ipsum", "account_platform": "AMAZON", "account_optimize": true, "account_tags_user": [ "vehicula amet" ], "account_is_demo": true, "adspert_portfolio_id": "123:9999", "portfolio_id": "9999", "portfolio_name": "ipsum pariatur" }, "meta": {} }
AmazonPortfolioCollection
GET
- GET /v3/customers/(customer_id: int)/portfolios
Retrieve a list of portfolios.
Query Params
Name
Type
Description
include
Fields to include in response data.
exclude
Fields to exclude in response data.
filter_account_id
[ String ]
Only return results matching given
account_id
values.filter_account_is_demo
[ Boolean ]
Only return results matching given
account_is_demo
values.filter_account_name
[ String ]
Only return results matching given
account_name
values.filter_account_optimize
[ Boolean ]
Only return results matching given
account_optimize
values.filter_account_platform
[ AdPlatform ]
Only return results matching given
account_platform
values.filter_account_tags_user
[ String ]
Only return results matching given
account_tags_user
values.filter_adspert_account_id
[ Integer ]
Only return results matching given
adspert_account_id
values.filter_adspert_portfolio_id
[ CompositeID ]
Only return results matching given
adspert_portfolio_id
values.filter_portfolio_name
[ String ]
Only return results matching given
portfolio_name
values.search_fields
Fields that should be searched using the
search_term
.search_term
String
Search term used to search the
search_fields
.search_account_id
String
Only return results where
account_id
matches the given string.search_account_name
String
Only return results where
account_name
matches the given string.search_account_tags_user
String
Only return results where
account_tags_user
matches the given string.search_adspert_account_id
String
Only return results where
adspert_account_id
matches the given string.search_portfolio_id
String
Only return results where
portfolio_id
matches the given string.search_portfolio_name
String
Only return results where
portfolio_name
matches the given string.sort_account_id
Sort results by
account_id
.sort_account_is_demo
Sort results by
account_is_demo
.sort_account_name
Sort results by
account_name
.sort_account_optimize
Sort results by
account_optimize
.sort_account_platform
Sort results by
account_platform
.sort_adspert_account_id
Sort results by
adspert_account_id
.sort_adspert_portfolio_id
Sort results by
adspert_portfolio_id
.sort_portfolio_id
Sort results by
portfolio_id
.sort_portfolio_name
Sort results by
portfolio_name
.offset
Integer
Start index for result list.
Default: 0
Min value: 0
limit
Integer
Maximum number of results to return. The maximum allowed value depends on the response media type (10000 for JSON and 100000 for tabular formats like CSV).
Default: 10
Min value: 1
Response Data (object list, json or csv or xlsx)
Name
Type
Description
adspert_account_id
searchable
Integer
Adspert internal ID of the advertising account
account_id
searchable
String
Ad platform specific ID of an advertising account.
account_name
searchable
String
account_platform
The account’s advertising platform.
account_optimize
Boolean
If optimization by Adspert is enabled for this account.
account_tags_user
searchable
[ String ]
account_is_demo
Boolean
If the account is a generated account for demonstration purposes.
Demo accounts have no counterpart in the ad platform.
adspert_portfolio_id
Adspert internal ID of Amazon portfolio.
Composite ID specification:
{adspert_account_id}:{portfolio_id}
portfolio_id
searchable
portfolio_name
searchable
String
Example
GET /v3/customers/7027038674/portfolios?search_account_id=elit+dolor&filter_account_tags_user=vehicula+amet&filter_adspert_portfolio_id=123%3A23 HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl -i -X GET 'https://api.adspert.net/v3/customers/7027038674/portfolios?search_account_id=elit+dolor&filter_account_tags_user=vehicula+amet&filter_adspert_portfolio_id=123%3A23' -H "Accept: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
http 'https://api.adspert.net/v3/customers/7027038674/portfolios?search_account_id=elit+dolor&filter_account_tags_user=vehicula+amet&filter_adspert_portfolio_id=123%3A23' Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.get('https://api.adspert.net/v3/customers/7027038674/portfolios?search_account_id=elit+dolor&filter_account_tags_user=vehicula+amet&filter_adspert_portfolio_id=123%3A23', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": [ { "adspert_account_id": 123, "account_id": "amet lorem", "account_name": "vehicula ipsum", "account_platform": "AMAZON", "account_optimize": true, "account_tags_user": [ "vehicula amet" ], "account_is_demo": true, "adspert_portfolio_id": "123:9999", "portfolio_id": "9999", "portfolio_name": "ipsum pariatur" } ], "meta": { "pagination": { "offset": 0, "limit": 10, "total": 74, "sort": { "adspert_account_id": 1 } } } }
CampaignResource
GET
- GET /v3/customers/(customer_id: int)/campaigns/(adspert_campaign_id: str)
Retrieve a single campaign.
Query Params
Name
Type
Description
include
Fields to include in response data.
exclude
Fields to exclude in response data.
Response Data (single object, json or csv or xlsx)
Name
Type
Description
adspert_account_id
Integer
Adspert internal ID of the advertising account
account_id
String
Ad platform specific ID of an advertising account.
account_name
String
account_platform
The account’s advertising platform.
account_optimize
Boolean
If optimization by Adspert is enabled for this account.
account_tags_user
[ String ]
account_is_demo
Boolean
If the account is a generated account for demonstration purposes.
Demo accounts have no counterpart in the ad platform.
account_currency
String
performance_group_id
Integer
Unique ID of the performance group
performance_group_name
String
Unique name of the performance group.
performance_group_enabled
Boolean
performance_group_optimization_type
Optimization type of the performance group.
Only campaigns of the same optimization type can be added to a given performance group.
performance_group_goals
[ Object ]
List of performance group goals
⤷
goal_type
Type of the performance group goal
⤷
goal_value
Float
Value of the performance group goal.
goal_value
should beNULL
ifgoal_type
isPROFIT-MAXIMIZATION
.goal_value
should be a ratio (> 0) ifgoal_type
isROAS
,CRR
andROI
,goal_value
should be specified in micros and be larger than 10000 ifgoal_type
isCOST-PER-DAY
,COST-PER-CONVERSION
andCOST-PER-CLICK
.⤷
goal_currency
Currency of the performance group goal.
Currency is required for
COST-PER-DAY
,COST-PER-CONVERSION
andCOST-PER-CLICK
goals.⤷
goal_micros
Value for
COST-PER-DAY
,COST-PER-CONVERSION
andCOST-PER-CLICK
goals.Same as
goal_value
, but in a properly typed field for easier client-side handling and improved representation in tabular response data like CSV.⤷
goal_ratio
Float
Value for
ROAS
,CRR
andROI
goals.Same as
goal_value
, but in a properly typed field for easier client-side handling and improved representation in tabular response data like CSV.performance_group_goal_types
List of performance group goal types
adspert_portfolio_id
Adspert internal ID of Amazon portfolio.
Composite ID specification:
{adspert_account_id}:{portfolio_id}
amz_portfolio_id
amz_portfolio_name
String
adspert_campaign_id
Adspert internal ID of the campaign.
Composite ID specification:
{adspert_account_id}:{campaign_id}
campaign_id
campaign_name
String
campaign_type
campaign_eby_marketplace_id
String
campaign_optimize
Boolean
campaign_status
campaign_labels
[ String ]
campaign_optimization_type
campaign_optimization_support
campaign_amz_targeting_type
Amazon campaign targeting type.
campaign_conversion_value
Conversion value in micros
campaign_conversion_value_factor
Float
Conversion value factor
campaign_conversion_value_source
Source of the conversion value e.g., platform, manual and product
campaign_conversion_value_type
Type of the conversion value e.g., revenue and profit
campaign_user_max_bid
Object
Max bid for the performance group or campaign
⤷
micros
Monetary value in micros.
⤷
currency
Currency of the monetary value.
campaign_allow_change_dowhod
Boolean
If ad schedule bid adjustment (day-of-week/hour-of-day) optimization is enabled
account_conversion_value_source
Source of the conversion value e.g., platform, manual and product
account_conversion_value_type
Type of the conversion value e.g., revenue and profit
account_conversion_value
Conversion value in micros
account_conversion_value_factor
Float
Conversion value factor
effective_conversion_value_source
Source of the conversion value e.g., platform, manual and product
effective_conversion_value_type
Type of the conversion value e.g., revenue and profit
effective_conversion_value
Conversion value in micros
effective_conversion_value_factor
Float
Conversion value factor
account_click_optimization
Boolean
If the account is set for click optimization
account_allow_change_dowhod
Boolean
If ad schedule bid adjustment (day-of-week/hour-of-day) optimization is enabled
effective_allow_change_dowhod
Boolean
If ad schedule bid adjustment (day-of-week/hour-of-day) optimization is enabled
Example
GET /v3/customers/7027038674/campaigns/ID-1234?include=ipsum.amet HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl -i -X GET 'https://api.adspert.net/v3/customers/7027038674/campaigns/ID-1234?include=ipsum.amet' -H "Accept: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
http 'https://api.adspert.net/v3/customers/7027038674/campaigns/ID-1234?include=ipsum.amet' Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.get('https://api.adspert.net/v3/customers/7027038674/campaigns/ID-1234?include=ipsum.amet', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": { "adspert_account_id": 123, "account_id": "amet lorem", "account_name": "vehicula ipsum", "account_platform": "AMAZON", "account_optimize": true, "account_tags_user": [ "vehicula amet" ], "account_is_demo": true, "account_currency": "ipsum adlora", "performance_group_id": "1245", "performance_group_name": "dolor sit", "performance_group_enabled": true, "performance_group_optimization_type": "CLICK", "performance_group_goals": [ { "goal_type": "CLICKS-PER-DAY", "goal_value": 1.41, "goal_currency": "AED", "goal_micros": 6300000, "goal_ratio": 8.77 } ], "performance_group_goal_types": [ "CLICKS-PER-DAY" ], "adspert_portfolio_id": "123:9999", "amz_portfolio_id": "9999", "amz_portfolio_name": "elit adlora", "adspert_campaign_id": "123:5555", "campaign_id": "5555", "campaign_name": "sit ipsum", "campaign_type": "AMAZON-SPONSORED-BRANDS", "campaign_eby_marketplace_id": "amet pariatur", "campaign_optimize": true, "campaign_status": "ACTIVE", "campaign_labels": [ "ipsum dolor" ], "campaign_optimization_type": "CLICK", "campaign_optimization_support": "SUPPORTED", "campaign_amz_targeting_type": "AUTO", "campaign_conversion_value": 4540000, "campaign_conversion_value_factor": 4.36, "campaign_conversion_value_source": "MANUAL", "campaign_conversion_value_type": "PROFIT", "campaign_user_max_bid": { "micros": 8340000, "currency": "AED" }, "campaign_allow_change_dowhod": true, "account_conversion_value_source": "MANUAL", "account_conversion_value_type": "PROFIT", "account_conversion_value": 6730000, "account_conversion_value_factor": 2.24, "effective_conversion_value_source": "MANUAL", "effective_conversion_value_type": "PROFIT", "effective_conversion_value": 5640000, "effective_conversion_value_factor": 5.53, "account_click_optimization": true, "account_allow_change_dowhod": true, "effective_allow_change_dowhod": true }, "meta": {} }
CampaignCollection
GET
- GET /v3/customers/(customer_id: int)/campaigns
Retrieve a list of campaigns.
Query Params
Name
Type
Description
include
Fields to include in response data.
exclude
Fields to exclude in response data.
filter_account_allow_change_dowhod
[ Boolean ]
Only return results matching given
account_allow_change_dowhod
values.filter_account_click_optimization
[ Boolean ]
Only return results matching given
account_click_optimization
values.filter_account_conversion_value_factor_ge
Float
Only return results where
account_conversion_value_factor
is equal or greater than this value.filter_account_conversion_value_factor_le
Float
Only return results where
account_conversion_value_factor
is equal or lower than this value.filter_account_conversion_value_ge
Only return results where
account_conversion_value
is equal or greater than this value.Min value: 1000
filter_account_conversion_value_le
Only return results where
account_conversion_value
is equal or lower than this value.Min value: 1000
filter_account_conversion_value_source
Only return results matching given
account_conversion_value_source
values.filter_account_conversion_value_type
Only return results matching given
account_conversion_value_type
values.filter_account_currency
[ String ]
Only return results matching given
account_currency
values.filter_account_id
[ String ]
Only return results matching given
account_id
values.filter_account_is_demo
[ Boolean ]
Only return results matching given
account_is_demo
values.filter_account_name
[ String ]
Only return results matching given
account_name
values.filter_account_optimize
[ Boolean ]
Only return results matching given
account_optimize
values.filter_account_platform
[ AdPlatform ]
Only return results matching given
account_platform
values.filter_account_tags_user
[ String ]
Only return results matching given
account_tags_user
values.filter_adspert_account_id
[ Integer ]
Only return results matching given
adspert_account_id
values.filter_adspert_campaign_id
[ CompositeID ]
Only return results matching given
adspert_campaign_id
values.filter_adspert_portfolio_id
[ CompositeID ]
Only return results matching given
adspert_portfolio_id
values.filter_amz_portfolio_name
[ String ]
Only return results matching given
amz_portfolio_name
values.filter_campaign_allow_change_dowhod
[ Boolean ]
Only return results matching given
campaign_allow_change_dowhod
values.filter_campaign_amz_targeting_type
[ AmzTargetingType ]
Only return results matching given
campaign_amz_targeting_type
values.filter_campaign_conversion_value_factor_ge
Float
Only return results where
campaign_conversion_value_factor
is equal or greater than this value.filter_campaign_conversion_value_factor_le
Float
Only return results where
campaign_conversion_value_factor
is equal or lower than this value.filter_campaign_conversion_value_factor_set
[ Boolean ]
Only return results matching given
campaign_conversion_value_factor_set
values.filter_campaign_conversion_value_ge
Only return results where
campaign_conversion_value
is equal or greater than this value.Min value: 1000
filter_campaign_conversion_value_le
Only return results where
campaign_conversion_value
is equal or lower than this value.Min value: 1000
filter_campaign_conversion_value_set
[ Boolean ]
Only return results matching given
campaign_conversion_value_set
values.filter_campaign_conversion_value_source
Only return results matching given
campaign_conversion_value_source
values.filter_campaign_conversion_value_type
Only return results matching given
campaign_conversion_value_type
values.filter_campaign_eby_marketplace_id
[ String ]
Only return results matching given
campaign_eby_marketplace_id
values.filter_campaign_labels
[ String ]
Only return results matching given
campaign_labels
values.filter_campaign_name
[ String ]
Only return results matching given
campaign_name
values.filter_campaign_optimization_support
Only return results matching given
campaign_optimization_support
values.filter_campaign_optimization_type
[ OptimizationType ]
Only return results matching given
campaign_optimization_type
values.filter_campaign_optimize
[ Boolean ]
Only return results matching given
campaign_optimize
values.filter_campaign_status
[ CampaignStatus ]
Only return results matching given
campaign_status
values.filter_campaign_type
[ CampaignType ]
Only return results matching given
campaign_type
values.filter_campaign_user_max_bid_set
[ Boolean ]
Only return results matching given
campaign_user_max_bid_set
values.filter_effective_allow_change_dowhod
[ Boolean ]
Only return results matching given
effective_allow_change_dowhod
values.filter_effective_conversion_value_factor_ge
Float
Only return results where
effective_conversion_value_factor
is equal or greater than this value.filter_effective_conversion_value_factor_le
Float
Only return results where
effective_conversion_value_factor
is equal or lower than this value.filter_effective_conversion_value_ge
Only return results where
effective_conversion_value
is equal or greater than this value.Min value: 1000
filter_effective_conversion_value_le
Only return results where
effective_conversion_value
is equal or lower than this value.Min value: 1000
filter_effective_conversion_value_source
Only return results matching given
effective_conversion_value_source
values.filter_effective_conversion_value_type
Only return results matching given
effective_conversion_value_type
values.filter_performance_group_enabled
[ Boolean ]
Only return results matching given
performance_group_enabled
values.filter_performance_group_goal_types
Only return results matching given
performance_group_goal_types
values.filter_performance_group_id
[ Integer ]
Only return results matching given
performance_group_id
values.filter_performance_group_name
[ String ]
Only return results matching given
performance_group_name
values.filter_performance_group_optimization_type
[ OptimizationType ]
Only return results matching given
performance_group_optimization_type
values.search_fields
Fields that should be searched using the
search_term
.search_term
String
Search term used to search the
search_fields
.search_account_id
String
Only return results where
account_id
matches the given string.search_account_name
String
Only return results where
account_name
matches the given string.search_account_tags_user
String
Only return results where
account_tags_user
matches the given string.search_adspert_account_id
String
Only return results where
adspert_account_id
matches the given string.search_amz_portfolio_id
String
Only return results where
amz_portfolio_id
matches the given string.search_amz_portfolio_name
String
Only return results where
amz_portfolio_name
matches the given string.search_campaign_id
String
Only return results where
campaign_id
matches the given string.search_campaign_labels
String
Only return results where
campaign_labels
matches the given string.search_campaign_name
String
Only return results where
campaign_name
matches the given string.search_performance_group_id
String
Only return results where
performance_group_id
matches the given string.search_performance_group_name
String
Only return results where
performance_group_name
matches the given string.sort_account_allow_change_dowhod
Sort results by
account_allow_change_dowhod
.sort_account_click_optimization
Sort results by
account_click_optimization
.sort_account_conversion_value
Sort results by
account_conversion_value
.sort_account_conversion_value_factor
Sort results by
account_conversion_value_factor
.sort_account_conversion_value_source
Sort results by
account_conversion_value_source
.sort_account_conversion_value_type
Sort results by
account_conversion_value_type
.sort_account_currency
Sort results by
account_currency
.sort_account_id
Sort results by
account_id
.sort_account_is_demo
Sort results by
account_is_demo
.sort_account_name
Sort results by
account_name
.sort_account_optimize
Sort results by
account_optimize
.sort_account_platform
Sort results by
account_platform
.sort_adspert_account_id
Sort results by
adspert_account_id
.sort_adspert_campaign_id
Sort results by
adspert_campaign_id
.sort_adspert_portfolio_id
Sort results by
adspert_portfolio_id
.sort_amz_portfolio_id
Sort results by
amz_portfolio_id
.sort_amz_portfolio_name
Sort results by
amz_portfolio_name
.sort_campaign_allow_change_dowhod
Sort results by
campaign_allow_change_dowhod
.sort_campaign_amz_targeting_type
Sort results by
campaign_amz_targeting_type
.sort_campaign_conversion_value
Sort results by
campaign_conversion_value
.sort_campaign_conversion_value_factor
Sort results by
campaign_conversion_value_factor
.sort_campaign_conversion_value_source
Sort results by
campaign_conversion_value_source
.sort_campaign_conversion_value_type
Sort results by
campaign_conversion_value_type
.sort_campaign_eby_marketplace_id
Sort results by
campaign_eby_marketplace_id
.sort_campaign_id
Sort results by
campaign_id
.sort_campaign_name
Sort results by
campaign_name
.sort_campaign_optimization_support
Sort results by
campaign_optimization_support
.sort_campaign_optimization_type
Sort results by
campaign_optimization_type
.sort_campaign_optimize
Sort results by
campaign_optimize
.sort_campaign_status
Sort results by
campaign_status
.sort_campaign_type
Sort results by
campaign_type
.sort_effective_allow_change_dowhod
Sort results by
effective_allow_change_dowhod
.sort_effective_conversion_value
Sort results by
effective_conversion_value
.sort_effective_conversion_value_factor
Sort results by
effective_conversion_value_factor
.sort_effective_conversion_value_source
Sort results by
effective_conversion_value_source
.sort_effective_conversion_value_type
Sort results by
effective_conversion_value_type
.sort_performance_group_enabled
Sort results by
performance_group_enabled
.sort_performance_group_goal_types
Sort results by
performance_group_goal_types
.sort_performance_group_id
Sort results by
performance_group_id
.sort_performance_group_name
Sort results by
performance_group_name
.sort_performance_group_optimization_type
Sort results by
performance_group_optimization_type
.offset
Integer
Start index for result list.
Default: 0
Min value: 0
limit
Integer
Maximum number of results to return. The maximum allowed value depends on the response media type (10000 for JSON and 100000 for tabular formats like CSV).
Default: 10
Min value: 1
Response Data (object list, json or csv or xlsx)
Name
Type
Description
adspert_account_id
searchable
Integer
Adspert internal ID of the advertising account
account_id
searchable
String
Ad platform specific ID of an advertising account.
account_name
searchable
String
account_platform
The account’s advertising platform.
account_optimize
Boolean
If optimization by Adspert is enabled for this account.
account_tags_user
searchable
[ String ]
account_is_demo
Boolean
If the account is a generated account for demonstration purposes.
Demo accounts have no counterpart in the ad platform.
account_currency
String
performance_group_id
searchable
Integer
Unique ID of the performance group
performance_group_name
searchable
String
Unique name of the performance group.
performance_group_enabled
Boolean
performance_group_optimization_type
Optimization type of the performance group.
Only campaigns of the same optimization type can be added to a given performance group.
performance_group_goals
[ Object ]
List of performance group goals
⤷
goal_type
Type of the performance group goal
⤷
goal_value
Float
Value of the performance group goal.
goal_value
should beNULL
ifgoal_type
isPROFIT-MAXIMIZATION
.goal_value
should be a ratio (> 0) ifgoal_type
isROAS
,CRR
andROI
,goal_value
should be specified in micros and be larger than 10000 ifgoal_type
isCOST-PER-DAY
,COST-PER-CONVERSION
andCOST-PER-CLICK
.⤷
goal_currency
Currency of the performance group goal.
Currency is required for
COST-PER-DAY
,COST-PER-CONVERSION
andCOST-PER-CLICK
goals.⤷
goal_micros
Value for
COST-PER-DAY
,COST-PER-CONVERSION
andCOST-PER-CLICK
goals.Same as
goal_value
, but in a properly typed field for easier client-side handling and improved representation in tabular response data like CSV.⤷
goal_ratio
Float
Value for
ROAS
,CRR
andROI
goals.Same as
goal_value
, but in a properly typed field for easier client-side handling and improved representation in tabular response data like CSV.performance_group_goal_types
List of performance group goal types
adspert_portfolio_id
Adspert internal ID of Amazon portfolio.
Composite ID specification:
{adspert_account_id}:{portfolio_id}
amz_portfolio_id
searchable
amz_portfolio_name
searchable
String
adspert_campaign_id
Adspert internal ID of the campaign.
Composite ID specification:
{adspert_account_id}:{campaign_id}
campaign_id
searchable
campaign_name
searchable
String
campaign_type
campaign_eby_marketplace_id
String
campaign_optimize
Boolean
campaign_status
campaign_labels
searchable
[ String ]
campaign_optimization_type
campaign_optimization_support
campaign_amz_targeting_type
Amazon campaign targeting type.
campaign_conversion_value
Conversion value in micros
campaign_conversion_value_factor
Float
Conversion value factor
campaign_conversion_value_source
Source of the conversion value e.g., platform, manual and product
campaign_conversion_value_type
Type of the conversion value e.g., revenue and profit
campaign_user_max_bid
Object
Max bid for the performance group or campaign
⤷
micros
Monetary value in micros.
⤷
currency
Currency of the monetary value.
campaign_allow_change_dowhod
Boolean
If ad schedule bid adjustment (day-of-week/hour-of-day) optimization is enabled
account_conversion_value_source
Source of the conversion value e.g., platform, manual and product
account_conversion_value_type
Type of the conversion value e.g., revenue and profit
account_conversion_value
Conversion value in micros
account_conversion_value_factor
Float
Conversion value factor
effective_conversion_value_source
Source of the conversion value e.g., platform, manual and product
effective_conversion_value_type
Type of the conversion value e.g., revenue and profit
effective_conversion_value
Conversion value in micros
effective_conversion_value_factor
Float
Conversion value factor
account_click_optimization
Boolean
If the account is set for click optimization
account_allow_change_dowhod
Boolean
If ad schedule bid adjustment (day-of-week/hour-of-day) optimization is enabled
effective_allow_change_dowhod
Boolean
If ad schedule bid adjustment (day-of-week/hour-of-day) optimization is enabled
Example
GET /v3/customers/7027038674/campaigns?sort_campaign_conversion_value_source=-2&search_adspert_account_id=dolor+vehicula&sort_account_currency=1 HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl -i -X GET 'https://api.adspert.net/v3/customers/7027038674/campaigns?sort_campaign_conversion_value_source=-2&search_adspert_account_id=dolor+vehicula&sort_account_currency=1' -H "Accept: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
http 'https://api.adspert.net/v3/customers/7027038674/campaigns?sort_campaign_conversion_value_source=-2&search_adspert_account_id=dolor+vehicula&sort_account_currency=1' Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.get('https://api.adspert.net/v3/customers/7027038674/campaigns?sort_campaign_conversion_value_source=-2&search_adspert_account_id=dolor+vehicula&sort_account_currency=1', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": [ { "adspert_account_id": 123, "account_id": "amet lorem", "account_name": "vehicula ipsum", "account_platform": "AMAZON", "account_optimize": true, "account_tags_user": [ "vehicula amet" ], "account_is_demo": true, "account_currency": "ipsum adlora", "performance_group_id": "1245", "performance_group_name": "dolor sit", "performance_group_enabled": true, "performance_group_optimization_type": "CLICK", "performance_group_goals": [ { "goal_type": "CLICKS-PER-DAY", "goal_value": 1.41, "goal_currency": "AED", "goal_micros": 6300000, "goal_ratio": 8.77 } ], "performance_group_goal_types": [ "CLICKS-PER-DAY" ], "adspert_portfolio_id": "123:9999", "amz_portfolio_id": "9999", "amz_portfolio_name": "elit adlora", "adspert_campaign_id": "123:5555", "campaign_id": "5555", "campaign_name": "sit ipsum", "campaign_type": "AMAZON-SPONSORED-BRANDS", "campaign_eby_marketplace_id": "amet pariatur", "campaign_optimize": true, "campaign_status": "ACTIVE", "campaign_labels": [ "ipsum dolor" ], "campaign_optimization_type": "CLICK", "campaign_optimization_support": "SUPPORTED", "campaign_amz_targeting_type": "AUTO", "campaign_conversion_value": 4540000, "campaign_conversion_value_factor": 4.36, "campaign_conversion_value_source": "MANUAL", "campaign_conversion_value_type": "PROFIT", "campaign_user_max_bid": { "micros": 8340000, "currency": "AED" }, "campaign_allow_change_dowhod": true, "account_conversion_value_source": "MANUAL", "account_conversion_value_type": "PROFIT", "account_conversion_value": 6730000, "account_conversion_value_factor": 2.24, "effective_conversion_value_source": "MANUAL", "effective_conversion_value_type": "PROFIT", "effective_conversion_value": 5640000, "effective_conversion_value_factor": 5.53, "account_click_optimization": true, "account_allow_change_dowhod": true, "effective_allow_change_dowhod": true } ], "meta": { "pagination": { "offset": 0, "limit": 10, "total": 74, "sort": { "adspert_account_id": 1 } } } }
PATCH
- PATCH /v3/customers/(customer_id: int)/campaigns
Update a collection of campaigns.
Responds with a
409 (Conflict)
if accounts of this customer are currently moved to another customer. During that time customer-level setting changes are not allowed.Request Data (object list, json)
Name
Type
Description
adspert_campaign_id
required
Adspert internal ID of the campaign.
Composite ID specification:
{adspert_account_id}:{campaign_id}
conversion_value
Conversion value in micros
Min value: 1000
conversion_value_factor
Float
Conversion value factor
Min value: 0
Max value: 100
conversion_value_source
Source of the conversion value e.g., platform, manual and product
conversion_value_type
Type of the conversion value e.g., revenue and profit
user_max_bid
Object
Max bid for the performance group or campaign
⤷
micros
required
Monetary value in micros.
Min value: 1000
⤷
currency
required
Currency of the monetary value.
allow_change_dowhod
Boolean
If ad schedule bid adjustment (day-of-week/hour-of-day) optimization is enabled
Response Data (single object, json or csv or xlsx)
Name
Type
Description
unchanged
[ Object ]
List of objects which had no effective change.
⤷
adspert_campaign_id
See request data description.
⤷
conversion_value
See request data description.
⤷
conversion_value_factor
Float
See request data description.
⤷
conversion_value_source
See request data description.
⤷
conversion_value_type
See request data description.
⤷
user_max_bid
Object
See request data description.
⤷
micros
See request data description.
⤷
currency
See request data description.
⤷
allow_change_dowhod
Boolean
See request data description.
unknown
[ Object ]
List of objects which could not be found.
⤷
adspert_campaign_id
See request data description.
⤷
conversion_value
See request data description.
⤷
conversion_value_factor
Float
See request data description.
⤷
conversion_value_source
See request data description.
⤷
conversion_value_type
See request data description.
⤷
user_max_bid
Object
See request data description.
⤷
micros
See request data description.
⤷
currency
See request data description.
⤷
allow_change_dowhod
Boolean
See request data description.
updated
[ Object ]
List of objects which have been updated.
⤷
adspert_campaign_id
See request data description.
⤷
conversion_value
See request data description.
⤷
conversion_value_factor
Float
See request data description.
⤷
conversion_value_source
See request data description.
⤷
conversion_value_type
See request data description.
⤷
user_max_bid
Object
See request data description.
⤷
micros
See request data description.
⤷
currency
See request data description.
⤷
allow_change_dowhod
Boolean
See request data description.
Example
PATCH /v3/customers/7027038674/campaigns HTTP/1.1 Host: api.adspert.net Accept: application/json Content-Type: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5... [ { "adspert_campaign_id": "123:5555", "conversion_value": 150000, "conversion_value_factor": 1.09, "conversion_value_source": "MANUAL", "conversion_value_type": "PROFIT", "user_max_bid": { "micros": 8340000, "currency": "AED" }, "allow_change_dowhod": true } ]
curl -i -X PATCH https://api.adspert.net/v3/customers/7027038674/campaigns -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..." --data-raw '[{"adspert_campaign_id": "123:5555", "conversion_value": 150000, "conversion_value_factor": 1.09, "conversion_value_source": "MANUAL", "conversion_value_type": "PROFIT", "user_max_bid": {"micros": 8340000, "currency": "AED"}, "allow_change_dowhod": true}]'
echo '[ { "adspert_campaign_id": "123:5555", "allow_change_dowhod": true, "conversion_value": 150000, "conversion_value_factor": 1.09, "conversion_value_source": "MANUAL", "conversion_value_type": "PROFIT", "user_max_bid": { "currency": "AED", "micros": 8340000 } } ]' | http PATCH https://api.adspert.net/v3/customers/7027038674/campaigns Accept:application/json Content-Type:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.patch('https://api.adspert.net/v3/customers/7027038674/campaigns', headers={'Accept': 'application/json', 'Content-Type': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'}, json=[{'adspert_campaign_id': '123:5555', 'conversion_value': 150000, 'conversion_value_factor': 1.09, 'conversion_value_source': 'MANUAL', 'conversion_value_type': 'PROFIT', 'user_max_bid': {'micros': 8340000, 'currency': 'AED'}, 'allow_change_dowhod': True}])
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": { "unchanged": [ { "adspert_campaign_id": "123:5555", "conversion_value": 150000, "conversion_value_factor": 1.09, "conversion_value_source": "MANUAL", "conversion_value_type": "PROFIT", "user_max_bid": { "micros": 8340000, "currency": "AED" }, "allow_change_dowhod": true } ], "unknown": [ { "adspert_campaign_id": "123:5555", "conversion_value": 150000, "conversion_value_factor": 1.09, "conversion_value_source": "MANUAL", "conversion_value_type": "PROFIT", "user_max_bid": { "micros": 8340000, "currency": "AED" }, "allow_change_dowhod": true } ], "updated": [ { "adspert_campaign_id": "123:5555", "conversion_value": 150000, "conversion_value_factor": 1.09, "conversion_value_source": "MANUAL", "conversion_value_type": "PROFIT", "user_max_bid": { "micros": 8340000, "currency": "AED" }, "allow_change_dowhod": true } ] }, "meta": {} }
AdgroupResource
GET
- GET /v3/customers/(customer_id: int)/adgroups/(adspert_adgroup_id: str)
Retrieve a single ad group.
Query Params
Name
Type
Description
include
Fields to include in response data.
exclude
Fields to exclude in response data.
Response Data (single object, json or csv or xlsx)
Name
Type
Description
adspert_account_id
Integer
Adspert internal ID of the advertising account
account_id
String
Ad platform specific ID of an advertising account.
account_name
String
account_platform
The account’s advertising platform.
account_optimize
Boolean
If optimization by Adspert is enabled for this account.
account_tags_user
[ String ]
account_is_demo
Boolean
If the account is a generated account for demonstration purposes.
Demo accounts have no counterpart in the ad platform.
account_currency
String
performance_group_id
Integer
Unique ID of the performance group
performance_group_name
String
Unique name of the performance group.
performance_group_optimization_type
Optimization type of the performance group.
Only campaigns of the same optimization type can be added to a given performance group.
performance_group_enabled
Boolean
performance_group_goals
[ Object ]
List of performance group goals
⤷
goal_type
Type of the performance group goal
⤷
goal_value
Float
Value of the performance group goal.
goal_value
should beNULL
ifgoal_type
isPROFIT-MAXIMIZATION
.goal_value
should be a ratio (> 0) ifgoal_type
isROAS
,CRR
andROI
,goal_value
should be specified in micros and be larger than 10000 ifgoal_type
isCOST-PER-DAY
,COST-PER-CONVERSION
andCOST-PER-CLICK
.⤷
goal_currency
Currency of the performance group goal.
Currency is required for
COST-PER-DAY
,COST-PER-CONVERSION
andCOST-PER-CLICK
goals.⤷
goal_micros
Value for
COST-PER-DAY
,COST-PER-CONVERSION
andCOST-PER-CLICK
goals.Same as
goal_value
, but in a properly typed field for easier client-side handling and improved representation in tabular response data like CSV.⤷
goal_ratio
Float
Value for
ROAS
,CRR
andROI
goals.Same as
goal_value
, but in a properly typed field for easier client-side handling and improved representation in tabular response data like CSV.performance_group_goal_types
List of performance group goal types
adspert_portfolio_id
Adspert internal ID of Amazon portfolio.
Composite ID specification:
{adspert_account_id}:{portfolio_id}
amz_portfolio_id
amz_portfolio_name
String
adspert_campaign_id
Adspert internal ID of the campaign.
Composite ID specification:
{adspert_account_id}:{campaign_id}
campaign_id
campaign_name
String
campaign_type
campaign_eby_marketplace_id
String
campaign_status
campaign_optimize
Boolean
campaign_optimization_support
campaign_optimization_type
campaign_amz_targeting_type
Amazon campaign targeting type.
campaign_labels
[ String ]
adspert_adgroup_id
Adspert internal ID of the adgroup.
Composite ID specification:
{adspert_account_id}:{adgroup_id}
adgroup_id
adgroup_name
String
adgroup_status
adgroup_labels
[ String ]
adgroup_max_cpc
amz_product_ads_sync_source
Object
Details about the source AdGroup where the Product Ads are being synced from.
This can only be populated for Amazon SP Manual AdGroups.
NULL
if the AdGroup isn’t yet being synced.⤷
adspert_campaign_id
Adspert internal ID of the campaign.
Composite ID specification:
{adspert_account_id}:{campaign_id}
⤷
campaign_name
String
⤷
adspert_adgroup_id
Adspert internal ID of the adgroup.
Composite ID specification:
{adspert_account_id}:{adgroup_id}
⤷
adgroup_name
String
⤷
sync_mode
Mode of the product ad sync.
⤷
read_only
Boolean
Indicates if the target AdGroup can be modified.
amz_auto_adgroup_similarity
[ Object ]
Similarity of a manual SP AdGroup with other auto SP AdGroups.
This can only be populated for Amazon manual SP AdGroups.
⤷
adspert_adgroup_id
Amz auto SP Adspert Adgroup ID.
Composite ID specification:
{adspert_account_id}:{adgroup_id}
⤷
amz_product_ads_matches
Integer
Number of shared unique product ads between source and target AdGroups.
NULL if any of the two AdGroups are not auto/manual SP.
⤷
amz_product_ads_total
Integer
Number of total unique product ads between source and target AdGroups.
NULL if any of the two AdGroups are not auto/manual SP.
⤷
amz_product_ads_match_ratio
Float
Ratio of shared and total unique product ads between source and target AdGroups.
product_ads_matches
/product_ads_total
NULL if any of the two AdGroups are not auto/manual SP.
amz_adgroup_similarity_max_ratio
Float
Sort AdGroups by their maximal possible AdGroup similarity ratio.
Only makes sense to use in conjunction with a filter to only get manual SP AdGroups and a filter on an auto SP AdGroup to sort similarity for. Without the latter AdGroups will get sorted by the maximum similarity ratio out of all auto SP AdGroups.
Example
GET /v3/customers/7027038674/adgroups/ID-1234?exclude=elit.amet HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl -i -X GET 'https://api.adspert.net/v3/customers/7027038674/adgroups/ID-1234?exclude=elit.amet' -H "Accept: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
http 'https://api.adspert.net/v3/customers/7027038674/adgroups/ID-1234?exclude=elit.amet' Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.get('https://api.adspert.net/v3/customers/7027038674/adgroups/ID-1234?exclude=elit.amet', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": { "adspert_account_id": 123, "account_id": "amet lorem", "account_name": "vehicula ipsum", "account_platform": "AMAZON", "account_optimize": true, "account_tags_user": [ "vehicula amet" ], "account_is_demo": true, "account_currency": "ipsum adlora", "performance_group_id": "1245", "performance_group_name": "dolor sit", "performance_group_optimization_type": "CLICK", "performance_group_enabled": true, "performance_group_goals": [ { "goal_type": "CLICKS-PER-DAY", "goal_value": 1.41, "goal_currency": "AED", "goal_micros": 6300000, "goal_ratio": 8.77 } ], "performance_group_goal_types": [ "CLICKS-PER-DAY" ], "adspert_portfolio_id": "123:9999", "amz_portfolio_id": "9999", "amz_portfolio_name": "elit adlora", "adspert_campaign_id": "123:5555", "campaign_id": "5555", "campaign_name": "sit ipsum", "campaign_type": "AMAZON-SPONSORED-BRANDS", "campaign_eby_marketplace_id": "amet pariatur", "campaign_status": "ACTIVE", "campaign_optimize": true, "campaign_optimization_support": "SUPPORTED", "campaign_optimization_type": "CLICK", "campaign_amz_targeting_type": "AUTO", "campaign_labels": [ "ipsum dolor" ], "adspert_adgroup_id": "123:777", "adgroup_id": "777", "adgroup_name": "tucan lorem", "adgroup_status": "ACTIVE", "adgroup_labels": [ "elit ipsum" ], "adgroup_max_cpc": 3810000, "amz_product_ads_sync_source": { "adspert_campaign_id": "123:5555", "campaign_name": "sit ipsum", "adspert_adgroup_id": "123:777", "adgroup_name": "tucan lorem", "sync_mode": "ADD-MISSING", "read_only": true }, "amz_auto_adgroup_similarity": [ { "adspert_adgroup_id": "123:777", "amz_product_ads_matches": 4496014026, "amz_product_ads_total": 2907851652, "amz_product_ads_match_ratio": 10.69 } ], "amz_adgroup_similarity_max_ratio": 3.61 }, "meta": {} }
AdgroupCollection
GET
- GET /v3/customers/(customer_id: int)/adgroups
Retrieve a list of ad groups.
Query Params
Name
Type
Description
include
Fields to include in response data.
exclude
Fields to exclude in response data.
filter_account_currency
[ String ]
Only return results matching given
account_currency
values.filter_account_id
[ String ]
Only return results matching given
account_id
values.filter_account_is_demo
[ Boolean ]
Only return results matching given
account_is_demo
values.filter_account_name
[ String ]
Only return results matching given
account_name
values.filter_account_optimize
[ Boolean ]
Only return results matching given
account_optimize
values.filter_account_platform
[ AdPlatform ]
Only return results matching given
account_platform
values.filter_account_tags_user
[ String ]
Only return results matching given
account_tags_user
values.filter_adgroup_labels
[ String ]
Only return results matching given
adgroup_labels
values.filter_adgroup_name
[ String ]
Only return results matching given
adgroup_name
values.filter_adgroup_status
[ AdgroupStatus ]
Only return results matching given
adgroup_status
values.filter_adspert_account_id
[ Integer ]
Only return results matching given
adspert_account_id
values.filter_adspert_adgroup_id
[ CompositeID ]
Only return results matching given
adspert_adgroup_id
values.filter_adspert_campaign_id
[ CompositeID ]
Only return results matching given
adspert_campaign_id
values.filter_adspert_portfolio_id
[ CompositeID ]
Only return results matching given
adspert_portfolio_id
values.filter_amz_portfolio_name
[ String ]
Only return results matching given
amz_portfolio_name
values.filter_amz_similarity_adspert_adgroup_id
[ CompositeID ]
Only return results matching given
amz_auto_adgroup_similarity.adspert_adgroup_id
values.filter_campaign_amz_targeting_type
[ AmzTargetingType ]
Only return results matching given
campaign_amz_targeting_type
values.filter_campaign_eby_marketplace_id
[ String ]
Only return results matching given
campaign_eby_marketplace_id
values.filter_campaign_labels
[ String ]
Only return results matching given
campaign_labels
values.filter_campaign_name
[ String ]
Only return results matching given
campaign_name
values.filter_campaign_optimization_support
Only return results matching given
campaign_optimization_support
values.filter_campaign_optimization_type
[ OptimizationType ]
Only return results matching given
campaign_optimization_type
values.filter_campaign_optimize
[ Boolean ]
Only return results matching given
campaign_optimize
values.filter_campaign_status
[ CampaignStatus ]
Only return results matching given
campaign_status
values.filter_campaign_type
[ CampaignType ]
Only return results matching given
campaign_type
values.filter_performance_group_enabled
[ Boolean ]
Only return results matching given
performance_group_enabled
values.filter_performance_group_goal_types
Only return results matching given
performance_group_goal_types
values.filter_performance_group_id
[ Integer ]
Only return results matching given
performance_group_id
values.filter_performance_group_name
[ String ]
Only return results matching given
performance_group_name
values.filter_performance_group_optimization_type
[ OptimizationType ]
Only return results matching given
performance_group_optimization_type
values.search_fields
Fields that should be searched using the
search_term
.search_term
String
Search term used to search the
search_fields
.search_account_id
String
Only return results where
account_id
matches the given string.search_account_name
String
Only return results where
account_name
matches the given string.search_account_tags_user
String
Only return results where
account_tags_user
matches the given string.search_adgroup_id
String
Only return results where
adgroup_id
matches the given string.search_adgroup_labels
String
Only return results where
adgroup_labels
matches the given string.search_adgroup_name
String
Only return results where
adgroup_name
matches the given string.search_adspert_account_id
String
Only return results where
adspert_account_id
matches the given string.search_amz_portfolio_id
String
Only return results where
amz_portfolio_id
matches the given string.search_amz_portfolio_name
String
Only return results where
amz_portfolio_name
matches the given string.search_campaign_id
String
Only return results where
campaign_id
matches the given string.search_campaign_labels
String
Only return results where
campaign_labels
matches the given string.search_campaign_name
String
Only return results where
campaign_name
matches the given string.search_performance_group_id
String
Only return results where
performance_group_id
matches the given string.search_performance_group_name
String
Only return results where
performance_group_name
matches the given string.sort_account_currency
Sort results by
account_currency
.sort_account_id
Sort results by
account_id
.sort_account_is_demo
Sort results by
account_is_demo
.sort_account_name
Sort results by
account_name
.sort_account_optimize
Sort results by
account_optimize
.sort_account_platform
Sort results by
account_platform
.sort_adgroup_id
Sort results by
adgroup_id
.sort_adgroup_max_cpc
Sort results by
adgroup_max_cpc
.sort_adgroup_name
Sort results by
adgroup_name
.sort_adgroup_status
Sort results by
adgroup_status
.sort_adspert_account_id
Sort results by
adspert_account_id
.sort_adspert_adgroup_id
Sort results by
adspert_adgroup_id
.sort_adspert_campaign_id
Sort results by
adspert_campaign_id
.sort_adspert_portfolio_id
Sort results by
adspert_portfolio_id
.sort_amz_adgroup_similarity_max_ratio
Sort results by
amz_adgroup_similarity_max_ratio
.sort_amz_portfolio_id
Sort results by
amz_portfolio_id
.sort_amz_portfolio_name
Sort results by
amz_portfolio_name
.sort_campaign_amz_targeting_type
Sort results by
campaign_amz_targeting_type
.sort_campaign_eby_marketplace_id
Sort results by
campaign_eby_marketplace_id
.sort_campaign_id
Sort results by
campaign_id
.sort_campaign_name
Sort results by
campaign_name
.sort_campaign_optimization_support
Sort results by
campaign_optimization_support
.sort_campaign_optimization_type
Sort results by
campaign_optimization_type
.sort_campaign_optimize
Sort results by
campaign_optimize
.sort_campaign_status
Sort results by
campaign_status
.sort_campaign_type
Sort results by
campaign_type
.sort_performance_group_enabled
Sort results by
performance_group_enabled
.sort_performance_group_goal_types
Sort results by
performance_group_goal_types
.sort_performance_group_id
Sort results by
performance_group_id
.sort_performance_group_name
Sort results by
performance_group_name
.sort_performance_group_optimization_type
Sort results by
performance_group_optimization_type
.offset
Integer
Start index for result list.
Default: 0
Min value: 0
limit
Integer
Maximum number of results to return. The maximum allowed value depends on the response media type (10000 for JSON and 100000 for tabular formats like CSV).
Default: 10
Min value: 1
Response Data (object list, json or csv or xlsx)
Name
Type
Description
adspert_account_id
searchable
Integer
Adspert internal ID of the advertising account
account_id
searchable
String
Ad platform specific ID of an advertising account.
account_name
searchable
String
account_platform
The account’s advertising platform.
account_optimize
Boolean
If optimization by Adspert is enabled for this account.
account_tags_user
searchable
[ String ]
account_is_demo
Boolean
If the account is a generated account for demonstration purposes.
Demo accounts have no counterpart in the ad platform.
account_currency
String
performance_group_id
searchable
Integer
Unique ID of the performance group
performance_group_name
searchable
String
Unique name of the performance group.
performance_group_optimization_type
Optimization type of the performance group.
Only campaigns of the same optimization type can be added to a given performance group.
performance_group_enabled
Boolean
performance_group_goals
[ Object ]
List of performance group goals
⤷
goal_type
Type of the performance group goal
⤷
goal_value
Float
Value of the performance group goal.
goal_value
should beNULL
ifgoal_type
isPROFIT-MAXIMIZATION
.goal_value
should be a ratio (> 0) ifgoal_type
isROAS
,CRR
andROI
,goal_value
should be specified in micros and be larger than 10000 ifgoal_type
isCOST-PER-DAY
,COST-PER-CONVERSION
andCOST-PER-CLICK
.⤷
goal_currency
Currency of the performance group goal.
Currency is required for
COST-PER-DAY
,COST-PER-CONVERSION
andCOST-PER-CLICK
goals.⤷
goal_micros
Value for
COST-PER-DAY
,COST-PER-CONVERSION
andCOST-PER-CLICK
goals.Same as
goal_value
, but in a properly typed field for easier client-side handling and improved representation in tabular response data like CSV.⤷
goal_ratio
Float
Value for
ROAS
,CRR
andROI
goals.Same as
goal_value
, but in a properly typed field for easier client-side handling and improved representation in tabular response data like CSV.performance_group_goal_types
List of performance group goal types
adspert_portfolio_id
Adspert internal ID of Amazon portfolio.
Composite ID specification:
{adspert_account_id}:{portfolio_id}
amz_portfolio_id
searchable
amz_portfolio_name
searchable
String
adspert_campaign_id
Adspert internal ID of the campaign.
Composite ID specification:
{adspert_account_id}:{campaign_id}
campaign_id
searchable
campaign_name
searchable
String
campaign_type
campaign_eby_marketplace_id
String
campaign_status
campaign_optimize
Boolean
campaign_optimization_support
campaign_optimization_type
campaign_amz_targeting_type
Amazon campaign targeting type.
campaign_labels
searchable
[ String ]
adspert_adgroup_id
Adspert internal ID of the adgroup.
Composite ID specification:
{adspert_account_id}:{adgroup_id}
adgroup_id
searchable
adgroup_name
searchable
String
adgroup_status
adgroup_labels
searchable
[ String ]
adgroup_max_cpc
amz_product_ads_sync_source
Object
Details about the source AdGroup where the Product Ads are being synced from.
This can only be populated for Amazon SP Manual AdGroups.
NULL
if the AdGroup isn’t yet being synced.⤷
adspert_campaign_id
Adspert internal ID of the campaign.
Composite ID specification:
{adspert_account_id}:{campaign_id}
⤷
campaign_name
searchable
String
⤷
adspert_adgroup_id
Adspert internal ID of the adgroup.
Composite ID specification:
{adspert_account_id}:{adgroup_id}
⤷
adgroup_name
searchable
String
⤷
sync_mode
Mode of the product ad sync.
⤷
read_only
Boolean
Indicates if the target AdGroup can be modified.
amz_auto_adgroup_similarity
[ Object ]
Similarity of a manual SP AdGroup with other auto SP AdGroups.
This can only be populated for Amazon manual SP AdGroups.
⤷
adspert_adgroup_id
Amz auto SP Adspert Adgroup ID.
Composite ID specification:
{adspert_account_id}:{adgroup_id}
⤷
amz_product_ads_matches
Integer
Number of shared unique product ads between source and target AdGroups.
NULL if any of the two AdGroups are not auto/manual SP.
⤷
amz_product_ads_total
Integer
Number of total unique product ads between source and target AdGroups.
NULL if any of the two AdGroups are not auto/manual SP.
⤷
amz_product_ads_match_ratio
Float
Ratio of shared and total unique product ads between source and target AdGroups.
product_ads_matches
/product_ads_total
NULL if any of the two AdGroups are not auto/manual SP.
amz_adgroup_similarity_max_ratio
Float
Sort AdGroups by their maximal possible AdGroup similarity ratio.
Only makes sense to use in conjunction with a filter to only get manual SP AdGroups and a filter on an auto SP AdGroup to sort similarity for. Without the latter AdGroups will get sorted by the maximum similarity ratio out of all auto SP AdGroups.
Example
GET /v3/customers/7027038674/adgroups?sort_adgroup_name=-6&search_fields=pariatur.adlora&sort_account_id=7 HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl -i -X GET 'https://api.adspert.net/v3/customers/7027038674/adgroups?sort_adgroup_name=-6&search_fields=pariatur.adlora&sort_account_id=7' -H "Accept: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
http 'https://api.adspert.net/v3/customers/7027038674/adgroups?sort_adgroup_name=-6&search_fields=pariatur.adlora&sort_account_id=7' Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.get('https://api.adspert.net/v3/customers/7027038674/adgroups?sort_adgroup_name=-6&search_fields=pariatur.adlora&sort_account_id=7', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": [ { "adspert_account_id": 123, "account_id": "amet lorem", "account_name": "vehicula ipsum", "account_platform": "AMAZON", "account_optimize": true, "account_tags_user": [ "vehicula amet" ], "account_is_demo": true, "account_currency": "ipsum adlora", "performance_group_id": "1245", "performance_group_name": "dolor sit", "performance_group_optimization_type": "CLICK", "performance_group_enabled": true, "performance_group_goals": [ { "goal_type": "CLICKS-PER-DAY", "goal_value": 1.41, "goal_currency": "AED", "goal_micros": 6300000, "goal_ratio": 8.77 } ], "performance_group_goal_types": [ "CLICKS-PER-DAY" ], "adspert_portfolio_id": "123:9999", "amz_portfolio_id": "9999", "amz_portfolio_name": "elit adlora", "adspert_campaign_id": "123:5555", "campaign_id": "5555", "campaign_name": "sit ipsum", "campaign_type": "AMAZON-SPONSORED-BRANDS", "campaign_eby_marketplace_id": "amet pariatur", "campaign_status": "ACTIVE", "campaign_optimize": true, "campaign_optimization_support": "SUPPORTED", "campaign_optimization_type": "CLICK", "campaign_amz_targeting_type": "AUTO", "campaign_labels": [ "ipsum dolor" ], "adspert_adgroup_id": "123:777", "adgroup_id": "777", "adgroup_name": "tucan lorem", "adgroup_status": "ACTIVE", "adgroup_labels": [ "elit ipsum" ], "adgroup_max_cpc": 3810000, "amz_product_ads_sync_source": { "adspert_campaign_id": "123:5555", "campaign_name": "sit ipsum", "adspert_adgroup_id": "123:777", "adgroup_name": "tucan lorem", "sync_mode": "ADD-MISSING", "read_only": true }, "amz_auto_adgroup_similarity": [ { "adspert_adgroup_id": "123:777", "amz_product_ads_matches": 4496014026, "amz_product_ads_total": 2907851652, "amz_product_ads_match_ratio": 10.69 } ], "amz_adgroup_similarity_max_ratio": 3.61 } ], "meta": { "pagination": { "offset": 0, "limit": 10, "total": 74, "sort": { "adspert_account_id": 1 } } } }
CriterionResource
GET
- GET /v3/accounts/(adspert_account_id: int)/criteria/(adspert_criterion_id: str)
Retrieve a single criterion.
Query Params
Name
Type
Description
include
Fields to include in response data.
exclude
Fields to exclude in response data.
Response Data (single object, json or csv or xlsx)
Name
Type
Description
performance_group_id
Integer
Unique ID of the performance group
performance_group_name
String
Unique name of the performance group.
performance_group_enabled
Boolean
performance_group_optimization_type
Optimization type of the performance group.
Only campaigns of the same optimization type can be added to a given performance group.
performance_group_goals
[ Object ]
List of performance group goals
⤷
goal_type
Type of the performance group goal
⤷
goal_value
Float
Value of the performance group goal.
goal_value
should beNULL
ifgoal_type
isPROFIT-MAXIMIZATION
.goal_value
should be a ratio (> 0) ifgoal_type
isROAS
,CRR
andROI
,goal_value
should be specified in micros and be larger than 10000 ifgoal_type
isCOST-PER-DAY
,COST-PER-CONVERSION
andCOST-PER-CLICK
.⤷
goal_currency
Currency of the performance group goal.
Currency is required for
COST-PER-DAY
,COST-PER-CONVERSION
andCOST-PER-CLICK
goals.⤷
goal_micros
Value for
COST-PER-DAY
,COST-PER-CONVERSION
andCOST-PER-CLICK
goals.Same as
goal_value
, but in a properly typed field for easier client-side handling and improved representation in tabular response data like CSV.⤷
goal_ratio
Float
Value for
ROAS
,CRR
andROI
goals.Same as
goal_value
, but in a properly typed field for easier client-side handling and improved representation in tabular response data like CSV.performance_group_goal_types
List of performance group goal types
adspert_portfolio_id
Adspert internal ID of Amazon portfolio.
Composite ID specification:
{adspert_account_id}:{portfolio_id}
amz_portfolio_id
amz_portfolio_name
String
adspert_campaign_id
Adspert internal ID of the campaign.
Composite ID specification:
{adspert_account_id}:{campaign_id}
campaign_id
campaign_name
String
campaign_type
campaign_eby_marketplace_id
String
campaign_status
campaign_optimize
Boolean
campaign_optimization_type
campaign_labels
[ String ]
adspert_adgroup_id
Adspert internal ID of the adgroup.
Composite ID specification:
{adspert_account_id}:{adgroup_id}
adgroup_id
adgroup_name
String
adgroup_status
adgroup_labels
[ String ]
adspert_criterion_id
Adspert internal ID of the criterion.
Composite ID specification:
{adspert_account_id}:{adgroup_id}:{criterion_id}
criterion_id
criterion_name
String
criterion_status
criterion_type
criterion_match_type
Match type of
Keyword
criterion.NULL if
criterion_type
is notKeyword
.criterion_labels
[ String ]
Example
GET /v3/accounts/3420379091/criteria/ID-1234?exclude=elit.amet HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl -i -X GET 'https://api.adspert.net/v3/accounts/3420379091/criteria/ID-1234?exclude=elit.amet' -H "Accept: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
http 'https://api.adspert.net/v3/accounts/3420379091/criteria/ID-1234?exclude=elit.amet' Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.get('https://api.adspert.net/v3/accounts/3420379091/criteria/ID-1234?exclude=elit.amet', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": { "performance_group_id": "1245", "performance_group_name": "dolor sit", "performance_group_enabled": true, "performance_group_optimization_type": "CLICK", "performance_group_goals": [ { "goal_type": "CLICKS-PER-DAY", "goal_value": 1.41, "goal_currency": "AED", "goal_micros": 6300000, "goal_ratio": 8.77 } ], "performance_group_goal_types": [ "CLICKS-PER-DAY" ], "adspert_portfolio_id": "123:9999", "amz_portfolio_id": "9999", "amz_portfolio_name": "elit adlora", "adspert_campaign_id": "123:5555", "campaign_id": "5555", "campaign_name": "sit ipsum", "campaign_type": "AMAZON-SPONSORED-BRANDS", "campaign_eby_marketplace_id": "amet pariatur", "campaign_status": "ACTIVE", "campaign_optimize": true, "campaign_optimization_type": "CLICK", "campaign_labels": [ "ipsum dolor" ], "adspert_adgroup_id": "123:777", "adgroup_id": "777", "adgroup_name": "tucan lorem", "adgroup_status": "ACTIVE", "adgroup_labels": [ "elit ipsum" ], "adspert_criterion_id": "123:777:66789", "criterion_id": "66789", "criterion_name": "dolor adlora", "criterion_status": "ACTIVE", "criterion_type": "AUDIENCE", "criterion_match_type": "BROAD", "criterion_labels": [ "adlora dolor" ] }, "meta": {} }
CriterionCollection
GET
- GET /v3/accounts/(adspert_account_id: int)/criteria
Retrieve a list of criteria.
Query Params
Name
Type
Description
include
Fields to include in response data.
exclude
Fields to exclude in response data.
filter_adgroup_labels
[ String ]
Only return results matching given
adgroup_labels
values.filter_adgroup_name
[ String ]
Only return results matching given
adgroup_name
values.filter_adgroup_status
[ AdgroupStatus ]
Only return results matching given
adgroup_status
values.filter_adspert_adgroup_id
[ CompositeID ]
Only return results matching given
adspert_adgroup_id
values.filter_adspert_campaign_id
[ CompositeID ]
Only return results matching given
adspert_campaign_id
values.filter_adspert_criterion_id
[ CompositeID ]
Only return results matching given
adspert_criterion_id
values.filter_adspert_portfolio_id
[ CompositeID ]
Only return results matching given
adspert_portfolio_id
values.filter_amz_portfolio_name
[ String ]
Only return results matching given
amz_portfolio_name
values.filter_campaign_eby_marketplace_id
[ String ]
Only return results matching given
campaign_eby_marketplace_id
values.filter_campaign_labels
[ String ]
Only return results matching given
campaign_labels
values.filter_campaign_name
[ String ]
Only return results matching given
campaign_name
values.filter_campaign_optimization_type
[ OptimizationType ]
Only return results matching given
campaign_optimization_type
values.filter_campaign_optimize
[ Boolean ]
Only return results matching given
campaign_optimize
values.filter_campaign_status
[ CampaignStatus ]
Only return results matching given
campaign_status
values.filter_campaign_type
[ CampaignType ]
Only return results matching given
campaign_type
values.filter_criterion_labels
[ String ]
Only return results matching given
criterion_labels
values.filter_criterion_match_type
Only return results matching given
criterion_match_type
values.filter_criterion_name
[ String ]
Only return results matching given
criterion_name
values.filter_criterion_status
[ CriterionStatus ]
Only return results matching given
criterion_status
values.filter_criterion_type
[ CriterionType ]
Only return results matching given
criterion_type
values.filter_performance_group_enabled
[ Boolean ]
Only return results matching given
performance_group_enabled
values.filter_performance_group_goal_types
Only return results matching given
performance_group_goal_types
values.filter_performance_group_id
[ Integer ]
Only return results matching given
performance_group_id
values.filter_performance_group_name
[ String ]
Only return results matching given
performance_group_name
values.filter_performance_group_optimization_type
[ OptimizationType ]
Only return results matching given
performance_group_optimization_type
values.search_fields
Fields that should be searched using the
search_term
.search_term
String
Search term used to search the
search_fields
.search_adgroup_id
String
Only return results where
adgroup_id
matches the given string.search_adgroup_labels
String
Only return results where
adgroup_labels
matches the given string.search_adgroup_name
String
Only return results where
adgroup_name
matches the given string.search_amz_portfolio_id
String
Only return results where
amz_portfolio_id
matches the given string.search_amz_portfolio_name
String
Only return results where
amz_portfolio_name
matches the given string.search_campaign_id
String
Only return results where
campaign_id
matches the given string.search_campaign_labels
String
Only return results where
campaign_labels
matches the given string.search_campaign_name
String
Only return results where
campaign_name
matches the given string.search_criterion_id
String
Only return results where
criterion_id
matches the given string.search_criterion_labels
String
Only return results where
criterion_labels
matches the given string.search_criterion_name
String
Only return results where
criterion_name
matches the given string.search_performance_group_id
String
Only return results where
performance_group_id
matches the given string.search_performance_group_name
String
Only return results where
performance_group_name
matches the given string.sort_adgroup_id
Sort results by
adgroup_id
.sort_adgroup_name
Sort results by
adgroup_name
.sort_adgroup_status
Sort results by
adgroup_status
.sort_adspert_adgroup_id
Sort results by
adspert_adgroup_id
.sort_adspert_campaign_id
Sort results by
adspert_campaign_id
.sort_adspert_criterion_id
Sort results by
adspert_criterion_id
.sort_adspert_portfolio_id
Sort results by
adspert_portfolio_id
.sort_amz_portfolio_id
Sort results by
amz_portfolio_id
.sort_amz_portfolio_name
Sort results by
amz_portfolio_name
.sort_campaign_eby_marketplace_id
Sort results by
campaign_eby_marketplace_id
.sort_campaign_id
Sort results by
campaign_id
.sort_campaign_name
Sort results by
campaign_name
.sort_campaign_optimization_type
Sort results by
campaign_optimization_type
.sort_campaign_optimize
Sort results by
campaign_optimize
.sort_campaign_status
Sort results by
campaign_status
.sort_campaign_type
Sort results by
campaign_type
.sort_criterion_id
Sort results by
criterion_id
.sort_criterion_match_type
Sort results by
criterion_match_type
.sort_criterion_name
Sort results by
criterion_name
.sort_criterion_status
Sort results by
criterion_status
.sort_criterion_type
Sort results by
criterion_type
.sort_performance_group_enabled
Sort results by
performance_group_enabled
.sort_performance_group_goal_types
Sort results by
performance_group_goal_types
.sort_performance_group_id
Sort results by
performance_group_id
.sort_performance_group_name
Sort results by
performance_group_name
.sort_performance_group_optimization_type
Sort results by
performance_group_optimization_type
.offset
Integer
Start index for result list.
Default: 0
Min value: 0
limit
Integer
Maximum number of results to return. The maximum allowed value depends on the response media type (10000 for JSON and 100000 for tabular formats like CSV).
Default: 10
Min value: 1
Response Data (object list, json or csv or xlsx)
Name
Type
Description
performance_group_id
searchable
Integer
Unique ID of the performance group
performance_group_name
searchable
String
Unique name of the performance group.
performance_group_enabled
Boolean
performance_group_optimization_type
Optimization type of the performance group.
Only campaigns of the same optimization type can be added to a given performance group.
performance_group_goals
[ Object ]
List of performance group goals
⤷
goal_type
Type of the performance group goal
⤷
goal_value
Float
Value of the performance group goal.
goal_value
should beNULL
ifgoal_type
isPROFIT-MAXIMIZATION
.goal_value
should be a ratio (> 0) ifgoal_type
isROAS
,CRR
andROI
,goal_value
should be specified in micros and be larger than 10000 ifgoal_type
isCOST-PER-DAY
,COST-PER-CONVERSION
andCOST-PER-CLICK
.⤷
goal_currency
Currency of the performance group goal.
Currency is required for
COST-PER-DAY
,COST-PER-CONVERSION
andCOST-PER-CLICK
goals.⤷
goal_micros
Value for
COST-PER-DAY
,COST-PER-CONVERSION
andCOST-PER-CLICK
goals.Same as
goal_value
, but in a properly typed field for easier client-side handling and improved representation in tabular response data like CSV.⤷
goal_ratio
Float
Value for
ROAS
,CRR
andROI
goals.Same as
goal_value
, but in a properly typed field for easier client-side handling and improved representation in tabular response data like CSV.performance_group_goal_types
List of performance group goal types
adspert_portfolio_id
Adspert internal ID of Amazon portfolio.
Composite ID specification:
{adspert_account_id}:{portfolio_id}
amz_portfolio_id
searchable
amz_portfolio_name
searchable
String
adspert_campaign_id
Adspert internal ID of the campaign.
Composite ID specification:
{adspert_account_id}:{campaign_id}
campaign_id
searchable
campaign_name
searchable
String
campaign_type
campaign_eby_marketplace_id
String
campaign_status
campaign_optimize
Boolean
campaign_optimization_type
campaign_labels
searchable
[ String ]
adspert_adgroup_id
Adspert internal ID of the adgroup.
Composite ID specification:
{adspert_account_id}:{adgroup_id}
adgroup_id
searchable
adgroup_name
searchable
String
adgroup_status
adgroup_labels
searchable
[ String ]
adspert_criterion_id
Adspert internal ID of the criterion.
Composite ID specification:
{adspert_account_id}:{adgroup_id}:{criterion_id}
criterion_id
searchable
criterion_name
searchable
String
criterion_status
criterion_type
criterion_match_type
Match type of
Keyword
criterion.NULL if
criterion_type
is notKeyword
.criterion_labels
searchable
[ String ]
Example
GET /v3/accounts/3420379091/criteria?search_criterion_labels=dolor+tucan&filter_adspert_criterion_id=123%3A95%3A84&filter_campaign_status=ACTIVE HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl -i -X GET 'https://api.adspert.net/v3/accounts/3420379091/criteria?search_criterion_labels=dolor+tucan&filter_adspert_criterion_id=123%3A95%3A84&filter_campaign_status=ACTIVE' -H "Accept: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
http 'https://api.adspert.net/v3/accounts/3420379091/criteria?search_criterion_labels=dolor+tucan&filter_adspert_criterion_id=123%3A95%3A84&filter_campaign_status=ACTIVE' Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.get('https://api.adspert.net/v3/accounts/3420379091/criteria?search_criterion_labels=dolor+tucan&filter_adspert_criterion_id=123%3A95%3A84&filter_campaign_status=ACTIVE', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": [ { "performance_group_id": "1245", "performance_group_name": "dolor sit", "performance_group_enabled": true, "performance_group_optimization_type": "CLICK", "performance_group_goals": [ { "goal_type": "CLICKS-PER-DAY", "goal_value": 1.41, "goal_currency": "AED", "goal_micros": 6300000, "goal_ratio": 8.77 } ], "performance_group_goal_types": [ "CLICKS-PER-DAY" ], "adspert_portfolio_id": "123:9999", "amz_portfolio_id": "9999", "amz_portfolio_name": "elit adlora", "adspert_campaign_id": "123:5555", "campaign_id": "5555", "campaign_name": "sit ipsum", "campaign_type": "AMAZON-SPONSORED-BRANDS", "campaign_eby_marketplace_id": "amet pariatur", "campaign_status": "ACTIVE", "campaign_optimize": true, "campaign_optimization_type": "CLICK", "campaign_labels": [ "ipsum dolor" ], "adspert_adgroup_id": "123:777", "adgroup_id": "777", "adgroup_name": "tucan lorem", "adgroup_status": "ACTIVE", "adgroup_labels": [ "elit ipsum" ], "adspert_criterion_id": "123:777:66789", "criterion_id": "66789", "criterion_name": "dolor adlora", "criterion_status": "ACTIVE", "criterion_type": "AUDIENCE", "criterion_match_type": "BROAD", "criterion_labels": [ "adlora dolor" ] } ], "meta": { "pagination": { "offset": 0, "limit": 10, "total": 74, "sort": { "performance_group_id": 1 } } } }
ProductResource
GET
- GET /v3/accounts/(adspert_account_id: int)/products/(adspert_product_id: b32)
Retrieve a single product.
Query Params
Name
Type
Description
include
Fields to include in response data.
exclude
Fields to exclude in response data.
Response Data (single object, json or csv or xlsx)
Name
Type
Description
adspert_product_id
String
Adspert’s unique product ID.
title
String
Product title.
image_url
String
Product image URL.
amz_asin
String
Amazon ASIN.
amz_sku
String
Amazon SKU.
ggl_offer_id
String
Google Offer ID.
eby_listing_id
String
eBay Listing ID.
Example
GET /v3/accounts/3420379091/products/JFCC2MJSGM2A====?include=ipsum.amet HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl -i -X GET 'https://api.adspert.net/v3/accounts/3420379091/products/JFCC2MJSGM2A====?include=ipsum.amet' -H "Accept: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
http 'https://api.adspert.net/v3/accounts/3420379091/products/JFCC2MJSGM2A====?include=ipsum.amet' Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.get('https://api.adspert.net/v3/accounts/3420379091/products/JFCC2MJSGM2A====?include=ipsum.amet', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": { "adspert_product_id": "B0100000000|000-000-001", "title": "Product XYZ", "image_url": "https://example.com/B0100000000.jpg", "amz_asin": "B0100000000", "amz_sku": "000-000-001", "ggl_offer_id": "12345678", "eby_listing_id": "12345678" }, "meta": {} }
ProductCollection
GET
- GET /v3/accounts/(adspert_account_id: int)/products
Retrieve a list of products.
Query Params
Name
Type
Description
include
Fields to include in response data.
exclude
Fields to exclude in response data.
filter_adspert_product_id
[ String ]
Only return results matching given
adspert_product_id
values.filter_amz_asin
[ String ]
Only return results matching given
amz_asin
values.filter_amz_sku
[ String ]
Only return results matching given
amz_sku
values.filter_eby_listing_id
[ String ]
Only return results matching given
eby_listing_id
values.filter_ggl_offer_id
[ String ]
Only return results matching given
ggl_offer_id
values.search_fields
Fields that should be searched using the
search_term
.search_term
String
Search term used to search the
search_fields
.search_amz_asin
String
Only return results where
amz_asin
matches the given string.search_amz_sku
String
Only return results where
amz_sku
matches the given string.search_eby_listing_id
String
Only return results where
eby_listing_id
matches the given string.search_ggl_offer_id
String
Only return results where
ggl_offer_id
matches the given string.search_title
String
Only return results where
title
matches the given string.sort_adspert_product_id
Sort results by
adspert_product_id
.sort_amz_asin
Sort results by
amz_asin
.sort_amz_sku
Sort results by
amz_sku
.sort_eby_listing_id
Sort results by
eby_listing_id
.sort_ggl_offer_id
Sort results by
ggl_offer_id
.sort_image_url
Sort results by
image_url
.sort_title
Sort results by
title
.offset
Integer
Start index for result list.
Default: 0
Min value: 0
limit
Integer
Maximum number of results to return. The maximum allowed value depends on the response media type (10000 for JSON and 100000 for tabular formats like CSV).
Default: 10
Min value: 1
Response Data (object list, json or csv or xlsx)
Name
Type
Description
adspert_product_id
String
Adspert’s unique product ID.
title
searchable
String
Product title.
image_url
String
Product image URL.
amz_asin
searchable
String
Amazon ASIN.
amz_sku
searchable
String
Amazon SKU.
ggl_offer_id
searchable
String
Google Offer ID.
eby_listing_id
searchable
String
eBay Listing ID.
Example
GET /v3/accounts/3420379091/products?offset=0&sort_amz_sku=7&search_title=tucan+lorem HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl -i -X GET 'https://api.adspert.net/v3/accounts/3420379091/products?offset=0&sort_amz_sku=7&search_title=tucan+lorem' -H "Accept: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
http 'https://api.adspert.net/v3/accounts/3420379091/products?offset=0&sort_amz_sku=7&search_title=tucan+lorem' Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.get('https://api.adspert.net/v3/accounts/3420379091/products?offset=0&sort_amz_sku=7&search_title=tucan+lorem', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": [ { "adspert_product_id": "B0100000000|000-000-001", "title": "Product XYZ", "image_url": "https://example.com/B0100000000.jpg", "amz_asin": "B0100000000", "amz_sku": "000-000-001", "ggl_offer_id": "12345678", "eby_listing_id": "12345678" } ], "meta": { "pagination": { "offset": 0, "limit": 10, "total": 74, "sort": { "adspert_product_id": 1 } } } }
LabelCollection
GET
- GET /v3/preview/customers/(customer_id: int)/labels
Retrieve a list of labels.
Attention
This route is in preview stage and will change into a stable interface in the future. See also Preview Roadmap.
Query Params
Name
Type
Description
include
Fields to include in response data.
exclude
Fields to exclude in response data.
search_fields
Fields that should be searched using the
search_term
.search_term
String
Search term used to search the
search_fields
.search_label_name
String
Only return results where
label_name
matches the given string.sort_label_name
Sort results by
label_name
.offset
Integer
Start index for result list.
Default: 0
Min value: 0
limit
Integer
Maximum number of results to return. The maximum allowed value depends on the response media type (10000 for JSON and 100000 for tabular formats like CSV).
Default: 10
Min value: 1
label_level
Default: ALL
Response Data (object list, json or csv or xlsx)
Name
Type
Description
label_name
searchable
String
Example
GET /v3/preview/customers/7027038674/labels?search_fields=pariatur.adlora&search_term=vehicula+ipsum&search_label_name=elit+lorem HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl -i -X GET 'https://api.adspert.net/v3/preview/customers/7027038674/labels?search_fields=pariatur.adlora&search_term=vehicula+ipsum&search_label_name=elit+lorem' -H "Accept: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
http 'https://api.adspert.net/v3/preview/customers/7027038674/labels?search_fields=pariatur.adlora&search_term=vehicula+ipsum&search_label_name=elit+lorem' Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.get('https://api.adspert.net/v3/preview/customers/7027038674/labels?search_fields=pariatur.adlora&search_term=vehicula+ipsum&search_label_name=elit+lorem', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": [ { "label_name": "ipsum elit" } ], "meta": { "pagination": { "offset": 0, "limit": 10, "total": 74, "sort": { "label_name": 1 } } } }
BudgetSuggestionCollection
GET
- GET /v3/customers/(customer_id: int)/budget-suggestions
-
Query Params
Name
Type
Description
include
Fields to include in response data.
exclude
Fields to exclude in response data.
filter_account_currency
[ String ]
Only return results matching given
account_currency
values.filter_account_id
[ String ]
Only return results matching given
account_id
values.filter_account_is_demo
[ Boolean ]
Only return results matching given
account_is_demo
values.filter_account_name
[ String ]
Only return results matching given
account_name
values.filter_account_optimize
[ Boolean ]
Only return results matching given
account_optimize
values.filter_account_platform
[ AdPlatform ]
Only return results matching given
account_platform
values.filter_account_tags_user
[ String ]
Only return results matching given
account_tags_user
values.filter_adspert_account_id
[ Integer ]
Only return results matching given
adspert_account_id
values.filter_adspert_campaign_id
[ CompositeID ]
Only return results matching given
adspert_campaign_id
values.filter_adspert_portfolio_id
[ CompositeID ]
Only return results matching given
adspert_portfolio_id
values.filter_amz_portfolio_name
[ String ]
Only return results matching given
amz_portfolio_name
values.filter_avg_cost_7_ge
Only return results where
metrics.avg_cost_7
is equal or greater than this value.Min value: 1000
filter_avg_cost_7_le
Only return results where
metrics.avg_cost_7
is equal or lower than this value.Min value: 1000
filter_avg_coverage_7_ge
Float
Only return results where
metrics.avg_coverage_7
is equal or greater than this value.filter_avg_coverage_7_le
Float
Only return results where
metrics.avg_coverage_7
is equal or lower than this value.filter_avg_usage_7_ge
Float
Only return results where
metrics.avg_usage_7
is equal or greater than this value.filter_avg_usage_7_le
Float
Only return results where
metrics.avg_usage_7
is equal or lower than this value.filter_budget_approved_account_currency_ge
Only return results where
budget_approved_account_currency
is equal or greater than this value.Min value: 1000
filter_budget_approved_account_currency_le
Only return results where
budget_approved_account_currency
is equal or lower than this value.Min value: 1000
filter_budget_approved_euros_ge
Only return results where
budget_approved_euros
is equal or greater than this value.Min value: 1000
filter_budget_approved_euros_le
Only return results where
budget_approved_euros
is equal or lower than this value.Min value: 1000
filter_budget_current_account_currency_ge
Only return results where
budget_current_account_currency
is equal or greater than this value.Min value: 1000
filter_budget_current_account_currency_le
Only return results where
budget_current_account_currency
is equal or lower than this value.Min value: 1000
filter_budget_current_euros_ge
Only return results where
budget_current_euros
is equal or greater than this value.Min value: 1000
filter_budget_current_euros_le
Only return results where
budget_current_euros
is equal or lower than this value.Min value: 1000
filter_budget_est_optimal_spending_ge
Only return results where
budget_est_optimal_spending
is equal or greater than this value.Min value: 1000
filter_budget_est_optimal_spending_le
Only return results where
budget_est_optimal_spending
is equal or lower than this value.Min value: 1000
filter_budget_id
[ Integer ]
Only return results matching given
budget_id
values.filter_budget_increase
[ Boolean ]
Only return results matching given
budget_increase
values.filter_budget_state
[ State ]
Only return results matching given
budget_state
values.filter_budget_suggested_account_currency_ge
Only return results where
budget_suggested_account_currency
is equal or greater than this value.Min value: 1000
filter_budget_suggested_account_currency_le
Only return results where
budget_suggested_account_currency
is equal or lower than this value.Min value: 1000
filter_budget_suggested_at_ge
Only return results where
budget_suggested_at
is equal or greater than this value.filter_budget_suggested_at_le
Only return results where
budget_suggested_at
is equal or lower than this value.filter_budget_suggested_euros_ge
Only return results where
budget_suggested_euros
is equal or greater than this value.Min value: 1000
filter_budget_suggested_euros_le
Only return results where
budget_suggested_euros
is equal or lower than this value.Min value: 1000
filter_campaign_eby_marketplace_id
[ String ]
Only return results matching given
campaign_eby_marketplace_id
values.filter_campaign_labels
[ String ]
Only return results matching given
campaign_labels
values.filter_campaign_name
[ String ]
Only return results matching given
campaign_name
values.filter_campaign_optimization_support
Only return results matching given
campaign_optimization_support
values.filter_campaign_optimization_type
[ OptimizationType ]
Only return results matching given
campaign_optimization_type
values.filter_campaign_optimize
[ Boolean ]
Only return results matching given
campaign_optimize
values.filter_campaign_status
[ CampaignStatus ]
Only return results matching given
campaign_status
values.filter_campaign_type
[ CampaignType ]
Only return results matching given
campaign_type
values.filter_click_through_rate_clicks_30_ge
Float
Only return results where
metrics.click_through_rate_clicks_30
is equal or greater than this value.filter_click_through_rate_clicks_30_le
Float
Only return results where
metrics.click_through_rate_clicks_30
is equal or lower than this value.filter_clicks_30
[ Integer ]
Only return results matching given
metrics.clicks_30
values.filter_clicks_30_ge
Integer
Only return results where
metrics.clicks_30
is equal or greater than this value.filter_clicks_30_le
Integer
Only return results where
metrics.clicks_30
is equal or lower than this value.filter_conversion_rate_30_ge
Float
Only return results where
metrics.conversion_rate_30
is equal or greater than this value.filter_conversion_rate_30_le
Float
Only return results where
metrics.conversion_rate_30
is equal or lower than this value.filter_conversion_rate_clicks_30_ge
Float
Only return results where
metrics.conversion_rate_clicks_30
is equal or greater than this value.filter_conversion_rate_clicks_30_le
Float
Only return results where
metrics.conversion_rate_clicks_30
is equal or lower than this value.filter_conversions_30_ge
Float
Only return results where
metrics.conversions_30
is equal or greater than this value.filter_conversions_30_le
Float
Only return results where
metrics.conversions_30
is equal or lower than this value.filter_conversions_clicks_30_ge
Float
Only return results where
metrics.conversions_clicks_30
is equal or greater than this value.filter_conversions_clicks_30_le
Float
Only return results where
metrics.conversions_clicks_30
is equal or lower than this value.filter_cost_30_ge
Only return results where
metrics.cost_30
is equal or greater than this value.Min value: 1000
filter_cost_30_le
Only return results where
metrics.cost_30
is equal or lower than this value.Min value: 1000
filter_cost_per_m_view_impressions_30_ge
Only return results where
metrics.cost_per_m_view_impressions_30
is equal or greater than this value.Min value: 1000
filter_cost_per_m_view_impressions_30_le
Only return results where
metrics.cost_per_m_view_impressions_30
is equal or lower than this value.Min value: 1000
filter_cost_revenue_ratio_30_ge
Float
Only return results where
metrics.cost_revenue_ratio_30
is equal or greater than this value.filter_cost_revenue_ratio_30_le
Float
Only return results where
metrics.cost_revenue_ratio_30
is equal or lower than this value.filter_cost_revenue_ratio_clicks_30_ge
Float
Only return results where
metrics.cost_revenue_ratio_clicks_30
is equal or greater than this value.filter_cost_revenue_ratio_clicks_30_le
Float
Only return results where
metrics.cost_revenue_ratio_clicks_30
is equal or lower than this value.filter_impressions_30
[ Integer ]
Only return results matching given
metrics.impressions_30
values.filter_impressions_30_ge
Integer
Only return results where
metrics.impressions_30
is equal or greater than this value.filter_impressions_30_le
Integer
Only return results where
metrics.impressions_30
is equal or lower than this value.filter_performance_group_enabled
[ Boolean ]
Only return results matching given
performance_group_enabled
values.filter_performance_group_goal_types
Only return results matching given
performance_group_goal_types
values.filter_performance_group_id
[ Integer ]
Only return results matching given
performance_group_id
values.filter_performance_group_name
[ String ]
Only return results matching given
performance_group_name
values.filter_performance_group_optimization_type
[ OptimizationType ]
Only return results matching given
performance_group_optimization_type
values.filter_profit_gross_30_ge
Only return results where
metrics.profit_gross_30
is equal or greater than this value.Min value: 1000
filter_profit_gross_30_le
Only return results where
metrics.profit_gross_30
is equal or lower than this value.Min value: 1000
filter_return_on_ad_spend_30_ge
Float
Only return results where
metrics.return_on_ad_spend_30
is equal or greater than this value.filter_return_on_ad_spend_30_le
Float
Only return results where
metrics.return_on_ad_spend_30
is equal or lower than this value.filter_return_on_ad_spend_clicks_30_ge
Float
Only return results where
metrics.return_on_ad_spend_clicks_30
is equal or greater than this value.filter_return_on_ad_spend_clicks_30_le
Float
Only return results where
metrics.return_on_ad_spend_clicks_30
is equal or lower than this value.filter_return_on_investment_30_ge
Float
Only return results where
metrics.return_on_investment_30
is equal or greater than this value.filter_return_on_investment_30_le
Float
Only return results where
metrics.return_on_investment_30
is equal or lower than this value.filter_revenue_30_ge
Only return results where
metrics.revenue_30
is equal or greater than this value.Min value: 1000
filter_revenue_30_le
Only return results where
metrics.revenue_30
is equal or lower than this value.Min value: 1000
filter_revenue_clicks_30_ge
Float
Only return results where
metrics.revenue_clicks_30
is equal or greater than this value.filter_revenue_clicks_30_le
Float
Only return results where
metrics.revenue_clicks_30
is equal or lower than this value.filter_suggestion_id
[ Integer ]
Only return results matching given
suggestion_id
values.filter_view_impressions_30
[ Integer ]
Only return results matching given
metrics.view_impressions_30
values.filter_view_impressions_30_ge
Integer
Only return results where
metrics.view_impressions_30
is equal or greater than this value.filter_view_impressions_30_le
Integer
Only return results where
metrics.view_impressions_30
is equal or lower than this value.search_fields
Fields that should be searched using the
search_term
.search_term
String
Search term used to search the
search_fields
.search_account_id
String
Only return results where
account_id
matches the given string.search_account_name
String
Only return results where
account_name
matches the given string.search_account_tags_user
String
Only return results where
account_tags_user
matches the given string.search_adspert_account_id
String
Only return results where
adspert_account_id
matches the given string.search_amz_portfolio_id
String
Only return results where
amz_portfolio_id
matches the given string.search_amz_portfolio_name
String
Only return results where
amz_portfolio_name
matches the given string.search_campaign_id
String
Only return results where
campaign_id
matches the given string.search_campaign_labels
String
Only return results where
campaign_labels
matches the given string.search_campaign_name
String
Only return results where
campaign_name
matches the given string.search_performance_group_id
String
Only return results where
performance_group_id
matches the given string.search_performance_group_name
String
Only return results where
performance_group_name
matches the given string.sort_account_currency
Sort results by
account_currency
.sort_account_id
Sort results by
account_id
.sort_account_is_demo
Sort results by
account_is_demo
.sort_account_name
Sort results by
account_name
.sort_account_optimize
Sort results by
account_optimize
.sort_account_platform
Sort results by
account_platform
.sort_adspert_account_id
Sort results by
adspert_account_id
.sort_adspert_campaign_id
Sort results by
adspert_campaign_id
.sort_adspert_portfolio_id
Sort results by
adspert_portfolio_id
.sort_amz_portfolio_id
Sort results by
amz_portfolio_id
.sort_amz_portfolio_name
Sort results by
amz_portfolio_name
.sort_avg_cost_7
Sort results by
metrics.avg_cost_7
.sort_avg_coverage_7
Sort results by
metrics.avg_coverage_7
.sort_avg_usage_7
Sort results by
metrics.avg_usage_7
.sort_budget_approved_account_currency
Sort results by
budget_approved_account_currency
.sort_budget_approved_euros
Sort results by
budget_approved_euros
.sort_budget_current_account_currency
Sort results by
budget_current_account_currency
.sort_budget_current_euros
Sort results by
budget_current_euros
.sort_budget_est_optimal_spending
Sort results by
budget_est_optimal_spending
.sort_budget_id
Sort results by
budget_id
.sort_budget_increase
Sort results by
budget_increase
.sort_budget_state
Sort results by
budget_state
.sort_budget_suggested_account_currency
Sort results by
budget_suggested_account_currency
.sort_budget_suggested_at
Sort results by
budget_suggested_at
.sort_budget_suggested_euros
Sort results by
budget_suggested_euros
.sort_campaign_eby_marketplace_id
Sort results by
campaign_eby_marketplace_id
.sort_campaign_id
Sort results by
campaign_id
.sort_campaign_name
Sort results by
campaign_name
.sort_campaign_optimization_support
Sort results by
campaign_optimization_support
.sort_campaign_optimization_type
Sort results by
campaign_optimization_type
.sort_campaign_optimize
Sort results by
campaign_optimize
.sort_campaign_status
Sort results by
campaign_status
.sort_campaign_type
Sort results by
campaign_type
.sort_click_through_rate_clicks_30
Sort results by
metrics.click_through_rate_clicks_30
.sort_clicks_30
Sort results by
metrics.clicks_30
.sort_conversion_rate_30
Sort results by
metrics.conversion_rate_30
.sort_conversion_rate_clicks_30
Sort results by
metrics.conversion_rate_clicks_30
.sort_conversions_30
Sort results by
metrics.conversions_30
.sort_conversions_clicks_30
Sort results by
metrics.conversions_clicks_30
.sort_cost_30
Sort results by
metrics.cost_30
.sort_cost_per_conversion_clicks_30
Sort results by
metrics.cost_per_conversion_clicks_30
.sort_cost_per_m_view_impressions_30
Sort results by
metrics.cost_per_m_view_impressions_30
.sort_cost_revenue_ratio_30
Sort results by
metrics.cost_revenue_ratio_30
.sort_cost_revenue_ratio_clicks_30
Sort results by
metrics.cost_revenue_ratio_clicks_30
.sort_impressions_30
Sort results by
metrics.impressions_30
.sort_impressions_total_30
Sort results by
metrics.impressions_total_30
.sort_performance_group_enabled
Sort results by
performance_group_enabled
.sort_performance_group_goal_types
Sort results by
performance_group_goal_types
.sort_performance_group_id
Sort results by
performance_group_id
.sort_performance_group_name
Sort results by
performance_group_name
.sort_performance_group_optimization_type
Sort results by
performance_group_optimization_type
.sort_profit_gross_30
Sort results by
metrics.profit_gross_30
.sort_return_on_ad_spend_30
Sort results by
metrics.return_on_ad_spend_30
.sort_return_on_ad_spend_clicks_30
Sort results by
metrics.return_on_ad_spend_clicks_30
.sort_return_on_investment_30
Sort results by
metrics.return_on_investment_30
.sort_revenue_30
Sort results by
metrics.revenue_30
.sort_revenue_clicks_30
Sort results by
metrics.revenue_clicks_30
.sort_suggestion_id
Sort results by
suggestion_id
.sort_view_impressions_30
Sort results by
metrics.view_impressions_30
.offset
Integer
Start index for result list.
Default: 0
Min value: 0
limit
Integer
Maximum number of results to return. The maximum allowed value depends on the response media type (10000 for JSON and 100000 for tabular formats like CSV).
Default: 10
Min value: 1
Response Data (object list, json or csv or xlsx)
Name
Type
Description
budget_suggested_at
Timestamp when the suggestion was made
budget_id
Integer
Budget ID associated with the suggestion
suggestion_id
Integer
Unique identifier for the suggestion
budget_state
State of the budget suggestion
budget_approved_euros
Budget amount in micros in EUR
Approved Budget.
budget_approved_account_currency
Budget amount in micros in account currency
Approved budget.
budget_current_euros
Budget amount in micros in EUR
Currently set budget.
budget_current_account_currency
Budget amount in micros in account currency
Currently set budget.
budget_suggested_euros
Budget amount in micros in EUR
Suggested budget.
budget_suggested_account_currency
Budget amount in micros in account currency
Suggested budget.
budget_increase
Boolean
True if the suggestion asks an increase in the current budget
budget_est_optimal_spending
Estimated optimal spending amount (in account currency).
metrics
Object
⤷
avg_cost_7
Average cost in the last 7 days.
⤷
avg_coverage_7
Float
Average budget coverage in the last 7 days.
⤷
avg_usage_7
Float
Average budget usage in the last 7 days.
⤷
cost_30
Total ad spend / cost
Total cost in the last 30 days.
⤷
impressions_30
Integer
Number of impressions
Total impressions in the last 30 days.
⤷
clicks_30
Integer
Number of clicks
Total clicks in the last 30 days.
⤷
conversions_30
Float
Number of conversions including view impressions.
Always 0 for click optimized campaigns.
Total conversions in the last 30 days.
⤷
profit_gross_30
Gross profit.
Always 0 for click and revenue optimized campaigns.
Total profit gross in the last 30 days.
⤷
revenue_30
Total Revenue/sales in the last 30 days.
⤷
conversion_rate_30
Float
Conversion rate in the last 30 days.
conversions
/clicks
NULL if number of
clicks
is 0.⤷
return_on_investment_30
Float
Return on investment (ROI) in the last 30 days.
profit_gross
/cost
NULL if
cost
is 0.⤷
return_on_ad_spend_30
Float
Return on ad spend (ROAS).
Only cost for revenue optimized campaigns is included.
revenue
/cost_for_revenue
NULL if
cost_for_revenue
is 0.Return on ad spend (ROAS) in the last 30 days.
revenue
/cost
NULL if
cost
is 0.⤷
cost_revenue_ratio_30
Float
Cost Revenue Ratio (CRR).
Also called Advertising Cost of Sale (ACoS).
Only cost for revenue optimized campaigns is included.
cost_for_revenue
/revenue
NULL if
revenue
is 0.Cost Revenue Ratio (CRR) in the last 30 days.
Also called Advertising Cost of Sale (ACoS).
cost
/revenue
NULL if
revenue
is 0.⤷
view_impressions_30
Integer
Number of viewable impressions
⤷
impressions_total_30
Integer
Number of total impressions, For vcpm, viewable impressions and impressions for all other campaigns.
Should be used internally.
⤷
conversions_clicks_30
Float
Number of conversions from clicks only
Valid only for vCPM campaigns. For non-vCPM campaigns, this is the same as
conversions
.⤷
revenue_clicks_30
Float
Number of conversions from clicks only
Valid only for vCPM campaigns. For non-vCPM campaigns, this is the same as
conversions
.⤷
cost_per_m_view_impressions_30
Cost per mille viewable impressions. Valid only for vCPM campaigns.
cost
/view_impressions
NULL if number of
view_impressions
is 0.⤷
cost_per_conversion_clicks_30
Cost per conversion from clicks only.
Valid only for vCPM campaigns. For non-vCPM campaigns, this is the same as
cost_per_conversion
.NULL if number of
conversions
is 0.⤷
conversion_rate_clicks_30
Float
Conversion rate from clicks only.
Valid only for vCPM campaigns. For non-vCPM campaigns, this is the same as
conversion_rate
.view_conversions
/clicks
NULL if number of
clicks
is 0.⤷
click_through_rate_clicks_30
Float
Clickthrough rate (CTR) from clicks only.
Valid only for vCPM campaigns. For non-vCPM campaigns, this is the same as
click_through_rate
.clicks
/view_impressions
NULL if number of
view_impressions
is 0.⤷
cost_revenue_ratio_clicks_30
Float
Cost Revenue Ratio (CRR) from clicks only.
Valid only for vCPM campaigns. For non-vCPM campaigns, this is the same as
cost_revenue_ratio
.Also called Advertising Cost of Sale (ACoS).
cost_for_revenue
/revenue_clicks
NULL if
revenue_clicks
is 0.⤷
return_on_ad_spend_clicks_30
Float
Return on ad spend (ROAS).
Valid only for vCPM campaigns. For non-vCPM campaigns, this is the same as
return_on_ad_spend
.revenue
/cost_for_revenue
NULL if
cost_for_revenue
is 0.⤷
has_vcpm_30
Boolean
Whether the grouped-by entity has any campaigns with vCPM enabled.
adspert_account_id
searchable
Integer
Adspert internal ID of the advertising account
account_id
searchable
String
Ad platform specific ID of an advertising account.
account_name
searchable
String
account_tags_user
searchable
[ String ]
account_is_demo
Boolean
If the account is a generated account for demonstration purposes.
Demo accounts have no counterpart in the ad platform.
account_platform
The account’s advertising platform.
account_optimize
Boolean
If optimization by Adspert is enabled for this account.
account_currency
String
campaign_id
searchable
campaign_name
searchable
String
campaign_type
campaign_eby_marketplace_id
String
campaign_status
campaign_optimize
Boolean
campaign_optimization_type
campaign_optimization_support
campaign_labels
searchable
[ String ]
performance_group_id
searchable
Integer
Unique ID of the performance group
performance_group_name
searchable
String
Unique name of the performance group.
performance_group_enabled
Boolean
performance_group_optimization_type
Optimization type of the performance group.
Only campaigns of the same optimization type can be added to a given performance group.
performance_group_goals
[ Object ]
List of performance group goals
⤷
goal_type
Type of the performance group goal
⤷
goal_value
Float
Value of the performance group goal.
goal_value
should beNULL
ifgoal_type
isPROFIT-MAXIMIZATION
.goal_value
should be a ratio (> 0) ifgoal_type
isROAS
,CRR
andROI
,goal_value
should be specified in micros and be larger than 10000 ifgoal_type
isCOST-PER-DAY
,COST-PER-CONVERSION
andCOST-PER-CLICK
.⤷
goal_currency
Currency of the performance group goal.
Currency is required for
COST-PER-DAY
,COST-PER-CONVERSION
andCOST-PER-CLICK
goals.⤷
goal_micros
Value for
COST-PER-DAY
,COST-PER-CONVERSION
andCOST-PER-CLICK
goals.Same as
goal_value
, but in a properly typed field for easier client-side handling and improved representation in tabular response data like CSV.⤷
goal_ratio
Float
Value for
ROAS
,CRR
andROI
goals.Same as
goal_value
, but in a properly typed field for easier client-side handling and improved representation in tabular response data like CSV.performance_group_goal_types
List of performance group goal types
amz_portfolio_id
searchable
amz_portfolio_name
searchable
String
adspert_campaign_id
Adspert internal ID of the campaign.
Composite ID specification:
{adspert_account_id}:{campaign_id}
adspert_portfolio_id
Adspert internal ID of Amazon portfolio.
Composite ID specification:
{adspert_account_id}:{portfolio_id}
Example
GET /v3/customers/7027038674/budget-suggestions?search_performance_group_name=tucan+lorem&filter_cost_30_le=9150000&sort_budget_suggested_euros=-2 HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl -i -X GET 'https://api.adspert.net/v3/customers/7027038674/budget-suggestions?search_performance_group_name=tucan+lorem&filter_cost_30_le=9150000&sort_budget_suggested_euros=-2' -H "Accept: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
http 'https://api.adspert.net/v3/customers/7027038674/budget-suggestions?search_performance_group_name=tucan+lorem&filter_cost_30_le=9150000&sort_budget_suggested_euros=-2' Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.get('https://api.adspert.net/v3/customers/7027038674/budget-suggestions?search_performance_group_name=tucan+lorem&filter_cost_30_le=9150000&sort_budget_suggested_euros=-2', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": [ { "budget_suggested_at": "2018-10-21T16:45:23+02:00", "budget_id": 9532519855, "suggestion_id": 7559014817, "budget_state": "ACCEPTED", "budget_approved_euros": 3700000, "budget_approved_account_currency": 1810000, "budget_current_euros": 8640000, "budget_current_account_currency": 2390000, "budget_suggested_euros": 160000, "budget_suggested_account_currency": 970000, "budget_increase": true, "budget_est_optimal_spending": 2630000, "metrics": { "avg_cost_7": 120000, "avg_coverage_7": 11.43, "avg_usage_7": 10.71, "cost_30": 3550000, "impressions_30": 1549552050, "clicks_30": 3460758478, "conversions_30": 1.95, "profit_gross_30": 5700000, "revenue_30": 2760000, "conversion_rate_30": 4.42, "return_on_investment_30": 12.17, "return_on_ad_spend_30": 18.19, "cost_revenue_ratio_30": 12.74, "view_impressions_30": 1861156272, "impressions_total_30": 896646580, "conversions_clicks_30": 16.42, "revenue_clicks_30": 14.15, "cost_per_m_view_impressions_30": 6790000, "cost_per_conversion_clicks_30": 5790000, "conversion_rate_clicks_30": 10.65, "click_through_rate_clicks_30": 15.23, "cost_revenue_ratio_clicks_30": 18.65, "return_on_ad_spend_clicks_30": 6.2, "has_vcpm_30": true }, "adspert_account_id": 123, "account_id": "amet lorem", "account_name": "vehicula ipsum", "account_tags_user": [ "vehicula amet" ], "account_is_demo": true, "account_platform": "AMAZON", "account_optimize": true, "account_currency": "ipsum adlora", "campaign_id": "5555", "campaign_name": "sit ipsum", "campaign_type": "AMAZON-SPONSORED-BRANDS", "campaign_eby_marketplace_id": "amet pariatur", "campaign_status": "ACTIVE", "campaign_optimize": true, "campaign_optimization_type": "CLICK", "campaign_optimization_support": "SUPPORTED", "campaign_labels": [ "ipsum dolor" ], "performance_group_id": "1245", "performance_group_name": "dolor sit", "performance_group_enabled": true, "performance_group_optimization_type": "CLICK", "performance_group_goals": [ { "goal_type": "CLICKS-PER-DAY", "goal_value": 1.41, "goal_currency": "AED", "goal_micros": 6300000, "goal_ratio": 8.77 } ], "performance_group_goal_types": [ "CLICKS-PER-DAY" ], "amz_portfolio_id": "9999", "amz_portfolio_name": "elit adlora", "adspert_campaign_id": "123:5555", "adspert_portfolio_id": "123:9999" } ], "meta": { "pagination": { "offset": 0, "limit": 10, "total": 74, "sort": { "budget_suggested_at": 1 } } } }
PATCH
- PATCH /v3/customers/(customer_id: int)/budget-suggestions
-
Request Data (object list, json or csv)
Name
Type
Description
suggestion_id
required
Integer
Unique identifier for the suggestion
budget_state
required
State of the budget suggestion
budget_approved_account_currency
Approved budget suggestion in account currency.
Must be NULL if
budget_state
is set toREJECTED
orPENDING
.Min value: 1000
Response Data (single object, json or csv or xlsx)
Name
Type
Description
unchanged
[ Object ]
List of objects which had no effective change.
⤷
suggestion_id
Integer
See request data description.
⤷
budget_state
See request data description.
⤷
budget_approved_account_currency
See request data description.
unknown
[ Object ]
List of objects which could not be found.
⤷
suggestion_id
Integer
See request data description.
⤷
budget_state
See request data description.
⤷
budget_approved_account_currency
See request data description.
updated
[ Object ]
List of objects which have been updated.
⤷
suggestion_id
Integer
See request data description.
⤷
budget_state
See request data description.
⤷
budget_approved_account_currency
See request data description.
Example
PATCH /v3/customers/7027038674/budget-suggestions HTTP/1.1 Host: api.adspert.net Accept: application/json Content-Type: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5... [ { "suggestion_id": 7559014817, "budget_state": "ACCEPTED", "budget_approved_account_currency": 1810000 } ]
curl -i -X PATCH https://api.adspert.net/v3/customers/7027038674/budget-suggestions -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..." --data-raw '[{"suggestion_id": 7559014817, "budget_state": "ACCEPTED", "budget_approved_account_currency": 1810000}]'
echo '[ { "budget_approved_account_currency": 1810000, "budget_state": "ACCEPTED", "suggestion_id": 7559014817 } ]' | http PATCH https://api.adspert.net/v3/customers/7027038674/budget-suggestions Accept:application/json Content-Type:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.patch('https://api.adspert.net/v3/customers/7027038674/budget-suggestions', headers={'Accept': 'application/json', 'Content-Type': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'}, json=[{'suggestion_id': 7559014817, 'budget_state': 'ACCEPTED', 'budget_approved_account_currency': 1810000}])
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": { "unchanged": [ { "suggestion_id": 7559014817, "budget_state": "ACCEPTED", "budget_approved_account_currency": 1810000 } ], "unknown": [ { "suggestion_id": 7559014817, "budget_state": "ACCEPTED", "budget_approved_account_currency": 1810000 } ], "updated": [ { "suggestion_id": 7559014817, "budget_state": "ACCEPTED", "budget_approved_account_currency": 1810000 } ] }, "meta": {} }
Criterion Addition
RuleCollection
GET
- GET /v3/customers/(customer_id: int)/criterion-addition/rules
Get criterion addition rules.
Query Params
Name
Type
Description
include
Fields to include in response data.
exclude
Fields to exclude in response data.
filter_rule_level
required
Defines level of rules that will be returned in the response.
filter_rule_inherited
Boolean
Should only inherited / non-inherited (explicitly defined at the given level) rules be returned in the response?
filter_rule_type_id
[ LargeInteger ]
Only return results matching given
rulesets.rule_type_id
values.filter_rule_id
[ LargeInteger ]
Only return results matching given
rulesets.rules.rule_id
values.filter_rule_action
Only return results matching given
rulesets.rules.action
values.filter_rule_platform
[ AdPlatform ]
Only return results where rule type platform matches the given string.
filter_adspert_account_id
[ Integer ]
Only return results matching given
location.adspert_account_id
values.filter_account_id
[ String ]
Only return results matching given
location.account_id
values.filter_account_name
[ String ]
Only return results matching given
location.account_name
values.filter_account_platform
[ AdPlatform ]
Only return results matching given
location.account_platform
values.filter_account_optimize
[ Boolean ]
Only return results matching given
location.account_optimize
values.filter_account_tags_user
[ String ]
Only return results matching given
location.account_tags_user
values.filter_account_is_demo
[ Boolean ]
Only return results matching given
location.account_is_demo
values.filter_performance_group_id
[ Integer ]
Only return results matching given
location.performance_group_id
values.filter_performance_group_name
[ String ]
Only return results matching given
location.performance_group_name
values.filter_performance_group_enabled
[ Boolean ]
Only return results matching given
location.performance_group_enabled
values.filter_performance_group_optimization_type
[ OptimizationType ]
Only return results matching given
location.performance_group_optimization_type
values.filter_performance_group_goal_types
Only return results matching given
location.performance_group_goal_types
values.filter_adspert_portfolio_id
[ CompositeID ]
Only return results matching given
location.adspert_portfolio_id
values.filter_amz_portfolio_name
[ String ]
Only return results matching given
location.amz_portfolio_name
values.filter_adspert_campaign_id
[ CompositeID ]
Only return results matching given
location.adspert_campaign_id
values.filter_campaign_name
[ String ]
Only return results matching given
location.campaign_name
values.filter_campaign_type
[ CampaignType ]
Only return results matching given
location.campaign_type
values.filter_campaign_eby_marketplace_id
[ String ]
Only return results matching given
location.campaign_eby_marketplace_id
values.filter_campaign_status
[ CampaignStatus ]
Only return results matching given
location.campaign_status
values.filter_campaign_optimize
[ Boolean ]
Only return results matching given
location.campaign_optimize
values.filter_campaign_optimization_type
[ OptimizationType ]
Only return results matching given
location.campaign_optimization_type
values.filter_campaign_labels
[ String ]
Only return results matching given
location.campaign_labels
values.filter_adspert_adgroup_id
[ CompositeID ]
Only return results matching given
location.adspert_adgroup_id
values.filter_adgroup_name
[ String ]
Only return results matching given
location.adgroup_name
values.filter_adgroup_status
[ AdgroupStatus ]
Only return results matching given
location.adgroup_status
values.filter_adgroup_labels
[ String ]
Only return results matching given
location.adgroup_labels
values.search_fields
Fields that should be searched using the
search_term
.search_term
String
Search term used to search the
search_fields
.search_account_id
String
Only return results where
location.account_id
matches the given string.search_account_name
String
Only return results where
location.account_name
matches the given string.search_account_tags_user
String
Only return results where
location.account_tags_user
matches the given string.search_performance_group_name
String
Only return results where
location.performance_group_name
matches the given string.search_portfolio_name
String
Only return results where
location.portfolio_name
matches the given string.search_campaign_name
String
Only return results where
location.campaign_name
matches the given string.search_campaign_labels
[ String ]
Only return results where
location.campaign_labels
matches the given string.search_adgroup_name
String
Only return results where
location.adgroup_name
matches the given string.search_adgroup_labels
[ String ]
Only return results where
location.adgroup_labels
matches the given string.sort_platform
Sort results by
location.platform
.sort_adspert_account_id
Sort results by
location.adspert_account_id
.sort_adspert_campaign_id
Sort results by
location.adspert_campaign_id
.sort_adspert_adgroup_id
Sort results by
location.adspert_adgroup_id
.sort_account_name
Sort results by
location.account_name
.sort_campaign_name
Sort results by
location.campaign_name
.sort_adgroup_name
Sort results by
location.adgroup_name
.offset
Integer
Start index for result list.
Default: 0
Min value: 0
limit
Integer
Maximum number of results to return. The maximum allowed value depends on the response media type (10000 for JSON and 100000 for tabular formats like CSV).
Default: 10
Min value: 1
Response Data (object list, json or csv or xlsx)
Name
Type
Description
location
Object
Location for which the rulesets are defined or inherited.
Location essentially is a combination of level + IDs.
⤷
level
⤷
platform
⤷
adspert_account_id
searchable
Integer
Adspert internal ID of the advertising account
⤷
account_id
searchable
String
Ad platform specific ID of an advertising account.
⤷
account_name
searchable
String
⤷
account_platform
The account’s advertising platform.
⤷
adspert_campaign_id
Adspert internal ID of the campaign.
Composite ID specification:
{adspert_account_id}:{campaign_id}
⤷
campaign_id
searchable
⤷
campaign_name
searchable
String
⤷
campaign_type
⤷
adspert_adgroup_id
Adspert internal ID of the adgroup.
Composite ID specification:
{adspert_account_id}:{adgroup_id}
⤷
adgroup_id
searchable
⤷
adgroup_name
searchable
String
rulesets
[ Object ]
List of rulesets that apply to the given location.
⤷
rule_type_id
Integer
Id of the Rule Type the ruleset is defined for.
⤷
defined_at
Object
Where is the ruleset defined?
This can be different from
location
for rulesets that are inherited.⤷
level
⤷
platform
⤷
adspert_account_id
searchable
Integer
Adspert internal ID of the advertising account
⤷
account_id
searchable
String
Ad platform specific ID of an advertising account.
⤷
account_name
searchable
String
⤷
account_platform
The account’s advertising platform.
⤷
adspert_campaign_id
Adspert internal ID of the campaign.
Composite ID specification:
{adspert_account_id}:{campaign_id}
⤷
campaign_id
searchable
⤷
campaign_name
searchable
String
⤷
campaign_type
⤷
adspert_adgroup_id
Adspert internal ID of the adgroup.
Composite ID specification:
{adspert_account_id}:{adgroup_id}
⤷
adgroup_id
searchable
⤷
adgroup_name
searchable
String
⤷
inherited
Boolean
Is the ruleset inherited?
If
true
,defined_at
will have details about the ‘location’ that the rule is inherited from.⤷
rules
[ Object ]
A set of rules that are part of the ruleset.
This list will either contain a single rule without filters or have at least 2 rules where one of them has filters and one of them is marked as catch-all.
⤷
rule_id
Unique ID of the rule
⤷
action
Action that Adspert is supposed to take when generating proposals that match this rule.
⤷
filters
[ Object ]
Additional filters that will be evaluated when matching proposals to the rule.
If multiple filters are defined, all of them have to match the proposal, or else the catch-all rule will be used.
Each ruleset that contains a rule with filters has to also contain exactly one catch-all rule.
⤷
operand
Rule filter operand.
⤷
operation
Rule filter operation.
⤷
values
[ Any ]
Rule filter values.
⤷
catch_all
Boolean
Is the rule supposed to be used as a catch-all?
⤷
destinations
[ Object ]
A set of destinations that Adspert is supposed to create for each proposal that matches the rule.
⤷
destination_id
⤷
destination_type
⤷
adspert_adgroup_id
Adspert internal ID of the adgroup.
This field is populated only for
SELECTED-ADGROUP
destinations.Composite ID specification:
{adspert_account_id}:{adgroup_id}
⤷
adgroup_id
searchable
This field is populated only for
SELECTED-ADGROUP
destinations.⤷
match_type
This field is populated only for destinations that belong to
KEYWORD
rules.⤷
negative
Boolean
⤷
created_at
⤷
effective_destination
Object
Effective destination is available only for adgroup-level requests.
It’s NULL for all other levels.
⤷
campaign_id
searchable
⤷
adspert_campaign_id
Adspert internal ID of the campaign.
Composite ID specification:
{adspert_account_id}:{campaign_id}
⤷
campaign_name
searchable
String
⤷
adgroup_id
searchable
⤷
adgroup_name
searchable
String
⤷
adspert_adgroup_id
Adspert internal ID of the adgroup.
Composite ID specification:
{adspert_account_id}:{adgroup_id}
⤷
product_ad_sync_mode
This field is populated only when there is a product ad sync set up between the source adgroup that this rule is active for and the target adgroup referenced in this effective destination.
⤷
amz_product_ads_matches
Integer
Number of shared unique product ads between source and target AdGroups.
NULL if any of the two AdGroups are not auto/manual SP.
⤷
amz_product_ads_total
Integer
Number of total unique product ads between source and target AdGroups.
NULL if any of the two AdGroups are not auto/manual SP.
⤷
amz_product_ads_match_ratio
Float
Ratio of shared and total unique product ads between source and target AdGroups.
product_ads_matches
/product_ads_total
NULL if any of the two AdGroups are not auto/manual SP.
⤷
created_at
Example
GET /v3/customers/7027038674/criterion-addition/rules?search_adgroup_name=adlora+ipsum&sort_adspert_adgroup_id=9&filter_campaign_status=ACTIVE HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl -i -X GET 'https://api.adspert.net/v3/customers/7027038674/criterion-addition/rules?search_adgroup_name=adlora+ipsum&sort_adspert_adgroup_id=9&filter_campaign_status=ACTIVE' -H "Accept: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
http 'https://api.adspert.net/v3/customers/7027038674/criterion-addition/rules?search_adgroup_name=adlora+ipsum&sort_adspert_adgroup_id=9&filter_campaign_status=ACTIVE' Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.get('https://api.adspert.net/v3/customers/7027038674/criterion-addition/rules?search_adgroup_name=adlora+ipsum&sort_adspert_adgroup_id=9&filter_campaign_status=ACTIVE', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": [ { "location": { "level": "ACCOUNT", "platform": "AMAZON", "adspert_account_id": 123, "account_id": "amet lorem", "account_name": "vehicula ipsum", "account_platform": "AMAZON", "adspert_campaign_id": "123:5555", "campaign_id": "5555", "campaign_name": "sit ipsum", "campaign_type": "AMAZON-SPONSORED-BRANDS", "adspert_adgroup_id": "123:777", "adgroup_id": "777", "adgroup_name": "tucan lorem" }, "rulesets": [ { "rule_type_id": 5675219470, "defined_at": { "level": "ACCOUNT", "platform": "AMAZON", "adspert_account_id": 123, "account_id": "amet lorem", "account_name": "vehicula ipsum", "account_platform": "AMAZON", "adspert_campaign_id": "123:5555", "campaign_id": "5555", "campaign_name": "sit ipsum", "campaign_type": "AMAZON-SPONSORED-BRANDS", "adspert_adgroup_id": "123:777", "adgroup_id": "777", "adgroup_name": "tucan lorem" }, "inherited": true, "rules": [ { "rule_id": "49754540226638646583189955", "action": "ADD", "filters": [ { "operand": "DOMAIN", "operation": "CONTAINS", "values": [ 1 ] } ], "catch_all": true, "destinations": [ { "destination_id": "78046413193991906103940983", "destination_type": "AMAZON-CREATE-BRAND-KEYWORD-ADGROUP", "adspert_adgroup_id": "123:777", "adgroup_id": "777", "match_type": "BROAD", "negative": true, "created_at": "2018-10-21T16:45:23+02:00", "effective_destination": { "campaign_id": "5555", "adspert_campaign_id": "123:5555", "campaign_name": "sit ipsum", "adgroup_id": "777", "adgroup_name": "tucan lorem", "adspert_adgroup_id": "123:777", "product_ad_sync_mode": "ADD-MISSING", "amz_product_ads_matches": 4496014026, "amz_product_ads_total": 2907851652, "amz_product_ads_match_ratio": 10.69 } } ], "created_at": "2018-10-21T16:45:23+02:00" } ] } ] } ], "meta": { "pagination": { "offset": 0, "limit": 10, "total": 74, "sort": { "location": 1 } } } }
PUT
- PUT /v3/customers/(customer_id: int)/criterion-addition/rules
Update/create criterion addition rules.
Request Data (object list, json)
Name
Type
Description
rule_type_id
required
Integer
Id of the Rule Type the ruleset is defined for.
level
required
Level at which the ruleset should be created.
adspert_account_id
Integer
ID of the account for which the ruleset should be created.
This field is required (and allowed only) at the
ACCOUNT
level.adspert_campaign_id
ID of the campaign for which the ruleset should be created.
This field is required (and allowed only) at the
CAMPAIGN
level.Composite ID specification:
{adspert_account_id}:{campaign_id}
adspert_adgroup_id
ID of the adgroup for which the ruleset should be created.
This field is required (and allowed only) at the
ADGROUP
level.Composite ID specification:
{adspert_account_id}:{adgroup_id}
rules
required
[ Object ]
If there is no need for rule filters, the
rules
array should contain exactly one rule.If there is a need for filters,
rules
array should contain: * at least one rule with filters * exactly one rule marked as catch-allIf there already are rules defined at the location, any rule that’s not referenced in the request will be deleted.
Min items: 1
⤷
rule_id
ID of a rule to update.
Updating a rule without this field set, will result in a replacement of that rule. The changelog will show a removal of the previous rule and creation of the updated one.
Updating a rule with this field set, will update the rule. The changelog will show an update of the existing rule.
The implicit type of the rule (simple, filtered, or catch-all) cannot be changed during the update.
⤷
action
required
Action that Adspert is supposed to take when generating proposals that match this rule.
⤷
filters
[ Object ]
Additional filters that will be evaluated when matching proposals to the rule.
If multiple filters are defined, all of them have to match the proposal, or else the catch-all rule will be used.
Each ruleset that contains a rule with filters has to also contain exactly one catch-all rule.
⤷
operand
See request data description.
⤷
operation
See request data description.
⤷
values
[ Any ]
See request data description.
⤷
catch_all
Boolean
Is the rule supposed to be used as a catch-all?
⤷
destinations
[ Object ]
A set of destinations that Adspert is supposed to create for each proposal that matches the rule.
Proposals where
action
is set toreject
, cannot have any destinations.Proposals where
action
is set toadd
have to have at least one destination.⤷
destination_type
See request data description.
⤷
adspert_adgroup_id
See request data description.
⤷
match_type
See request data description.
⤷
negative
Boolean
See request data description.
Response Data (single object, json or csv or xlsx)
Name
Type
Description
created
[ Object ]
List of objects which have been created.
⤷
rule_type_id
Integer
See request data description.
⤷
level
See request data description.
⤷
adspert_account_id
Integer
See request data description.
⤷
adspert_campaign_id
See request data description.
⤷
adspert_adgroup_id
See request data description.
⤷
rules
[ Object ]
See request data description.
⤷
rule_id
See request data description.
⤷
action
See request data description.
⤷
filters
[ Object ]
See request data description.
⤷
operand
See request data description.
⤷
operation
See request data description.
⤷
values
[ Any ]
See request data description.
⤷
catch_all
Boolean
See request data description.
⤷
destinations
[ Object ]
See request data description.
⤷
destination_type
See request data description.
⤷
adspert_adgroup_id
See request data description.
⤷
match_type
See request data description.
⤷
negative
Boolean
See request data description.
unchanged
[ Object ]
List of objects which had no effective change.
⤷
rule_type_id
Integer
See request data description.
⤷
level
See request data description.
⤷
adspert_account_id
Integer
See request data description.
⤷
adspert_campaign_id
See request data description.
⤷
adspert_adgroup_id
See request data description.
⤷
rules
[ Object ]
See request data description.
⤷
rule_id
See request data description.
⤷
action
See request data description.
⤷
filters
[ Object ]
See request data description.
⤷
operand
See request data description.
⤷
operation
See request data description.
⤷
values
[ Any ]
See request data description.
⤷
catch_all
Boolean
See request data description.
⤷
destinations
[ Object ]
See request data description.
⤷
destination_type
See request data description.
⤷
adspert_adgroup_id
See request data description.
⤷
match_type
See request data description.
⤷
negative
Boolean
See request data description.
updated
[ Object ]
List of objects which have been updated.
⤷
rule_type_id
Integer
See request data description.
⤷
level
See request data description.
⤷
adspert_account_id
Integer
See request data description.
⤷
adspert_campaign_id
See request data description.
⤷
adspert_adgroup_id
See request data description.
⤷
rules
[ Object ]
See request data description.
⤷
rule_id
See request data description.
⤷
action
See request data description.
⤷
filters
[ Object ]
See request data description.
⤷
operand
See request data description.
⤷
operation
See request data description.
⤷
values
[ Any ]
See request data description.
⤷
catch_all
Boolean
See request data description.
⤷
destinations
[ Object ]
See request data description.
⤷
destination_type
See request data description.
⤷
adspert_adgroup_id
See request data description.
⤷
match_type
See request data description.
⤷
negative
Boolean
See request data description.
Example
PUT /v3/customers/7027038674/criterion-addition/rules HTTP/1.1 Host: api.adspert.net Accept: application/json Content-Type: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5... [ { "rule_type_id": 5675219470, "level": "ACCOUNT", "adspert_account_id": 123, "adspert_campaign_id": "123:5555", "adspert_adgroup_id": "123:777", "rules": [ { "rule_id": "49754540226638646583189955", "action": "ADD", "filters": [ { "operand": "DOMAIN", "operation": "CONTAINS", "values": [ 1 ] } ], "catch_all": true, "destinations": [ { "destination_type": "AMAZON-CREATE-BRAND-KEYWORD-ADGROUP", "adspert_adgroup_id": "123:777", "match_type": "BROAD", "negative": true } ] } ] } ]
curl -i -X PUT https://api.adspert.net/v3/customers/7027038674/criterion-addition/rules -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..." --data-raw '[{"rule_type_id": 5675219470, "level": "ACCOUNT", "adspert_account_id": 123, "adspert_campaign_id": "123:5555", "adspert_adgroup_id": "123:777", "rules": [{"rule_id": "49754540226638646583189955", "action": "ADD", "filters": [{"operand": "DOMAIN", "operation": "CONTAINS", "values": [1]}], "catch_all": true, "destinations": [{"destination_type": "AMAZON-CREATE-BRAND-KEYWORD-ADGROUP", "adspert_adgroup_id": "123:777", "match_type": "BROAD", "negative": true}]}]}]'
echo '[ { "adspert_account_id": 123, "adspert_adgroup_id": "123:777", "adspert_campaign_id": "123:5555", "level": "ACCOUNT", "rule_type_id": 5675219470, "rules": [ { "action": "ADD", "catch_all": true, "destinations": [ { "adspert_adgroup_id": "123:777", "destination_type": "AMAZON-CREATE-BRAND-KEYWORD-ADGROUP", "match_type": "BROAD", "negative": true } ], "filters": [ { "operand": "DOMAIN", "operation": "CONTAINS", "values": [ 1 ] } ], "rule_id": "49754540226638646583189955" } ] } ]' | http PUT https://api.adspert.net/v3/customers/7027038674/criterion-addition/rules Accept:application/json Content-Type:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.put('https://api.adspert.net/v3/customers/7027038674/criterion-addition/rules', headers={'Accept': 'application/json', 'Content-Type': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'}, json=[{'rule_type_id': 5675219470, 'level': 'ACCOUNT', 'adspert_account_id': 123, 'adspert_campaign_id': '123:5555', 'adspert_adgroup_id': '123:777', 'rules': [{'rule_id': '49754540226638646583189955', 'action': 'ADD', 'filters': [{'operand': 'DOMAIN', 'operation': 'CONTAINS', 'values': [1]}], 'catch_all': True, 'destinations': [{'destination_type': 'AMAZON-CREATE-BRAND-KEYWORD-ADGROUP', 'adspert_adgroup_id': '123:777', 'match_type': 'BROAD', 'negative': True}]}]}])
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": { "created": [ { "rule_type_id": 5675219470, "level": "ACCOUNT", "adspert_account_id": 123, "adspert_campaign_id": "123:5555", "adspert_adgroup_id": "123:777", "rules": [ { "rule_id": "49754540226638646583189955", "action": "ADD", "filters": [ { "operand": "DOMAIN", "operation": "CONTAINS", "values": [ 1 ] } ], "catch_all": true, "destinations": [ { "destination_type": "AMAZON-CREATE-BRAND-KEYWORD-ADGROUP", "adspert_adgroup_id": "123:777", "match_type": "BROAD", "negative": true } ] } ] } ], "unchanged": [ { "rule_type_id": 5675219470, "level": "ACCOUNT", "adspert_account_id": 123, "adspert_campaign_id": "123:5555", "adspert_adgroup_id": "123:777", "rules": [ { "rule_id": "49754540226638646583189955", "action": "ADD", "filters": [ { "operand": "DOMAIN", "operation": "CONTAINS", "values": [ 1 ] } ], "catch_all": true, "destinations": [ { "destination_type": "AMAZON-CREATE-BRAND-KEYWORD-ADGROUP", "adspert_adgroup_id": "123:777", "match_type": "BROAD", "negative": true } ] } ] } ], "updated": [ { "rule_type_id": 5675219470, "level": "ACCOUNT", "adspert_account_id": 123, "adspert_campaign_id": "123:5555", "adspert_adgroup_id": "123:777", "rules": [ { "rule_id": "49754540226638646583189955", "action": "ADD", "filters": [ { "operand": "DOMAIN", "operation": "CONTAINS", "values": [ 1 ] } ], "catch_all": true, "destinations": [ { "destination_type": "AMAZON-CREATE-BRAND-KEYWORD-ADGROUP", "adspert_adgroup_id": "123:777", "match_type": "BROAD", "negative": true } ] } ] } ] }, "meta": {} }
DELETE
- DELETE /v3/customers/(customer_id: int)/criterion-addition/rules
Delete criterion addition rules.
Request Data (object list, json or csv)
Name
Type
Description
rule_type_id
required
Integer
Id of the Rule Type the ruleset is defined for.
level
required
Level of the ruleset that should be deleted.
adspert_account_id
Integer
ID of the account for which the ruleset should be deleted.
This field is required (and allowed only) at the
ACCOUNT
level.adspert_campaign_id
ID of the campaign for which the ruleset should be deleted.
This field is required (and allowed only) at the
CAMPAIGN
level.Composite ID specification:
{adspert_account_id}:{campaign_id}
adspert_adgroup_id
ID of the adgroup for which the ruleset should be deleted.
This field is required (and allowed only) at the
ADGROUP
level.Composite ID specification:
{adspert_account_id}:{adgroup_id}
Response Data (single object, json or csv or xlsx)
Name
Type
Description
deleted
[ Object ]
List of objects which have been deleted.
⤷
rule_type_id
Integer
See request data description.
⤷
level
See request data description.
⤷
adspert_account_id
Integer
See request data description.
⤷
adspert_campaign_id
See request data description.
⤷
adspert_adgroup_id
See request data description.
unknown
[ Object ]
List of objects which could not be found.
⤷
rule_type_id
Integer
See request data description.
⤷
level
See request data description.
⤷
adspert_account_id
Integer
See request data description.
⤷
adspert_campaign_id
See request data description.
⤷
adspert_adgroup_id
See request data description.
Example
DELETE /v3/customers/7027038674/criterion-addition/rules HTTP/1.1 Host: api.adspert.net Accept: application/json Content-Type: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5... [ { "rule_type_id": 5675219470, "level": "ACCOUNT", "adspert_account_id": 123, "adspert_campaign_id": "123:5555", "adspert_adgroup_id": "123:777" } ]
curl -i -X DELETE https://api.adspert.net/v3/customers/7027038674/criterion-addition/rules -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..." --data-raw '[{"rule_type_id": 5675219470, "level": "ACCOUNT", "adspert_account_id": 123, "adspert_campaign_id": "123:5555", "adspert_adgroup_id": "123:777"}]'
echo '[ { "adspert_account_id": 123, "adspert_adgroup_id": "123:777", "adspert_campaign_id": "123:5555", "level": "ACCOUNT", "rule_type_id": 5675219470 } ]' | http DELETE https://api.adspert.net/v3/customers/7027038674/criterion-addition/rules Accept:application/json Content-Type:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.delete('https://api.adspert.net/v3/customers/7027038674/criterion-addition/rules', headers={'Accept': 'application/json', 'Content-Type': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'}, json=[{'rule_type_id': 5675219470, 'level': 'ACCOUNT', 'adspert_account_id': 123, 'adspert_campaign_id': '123:5555', 'adspert_adgroup_id': '123:777'}])
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": { "deleted": [ { "rule_type_id": 5675219470, "level": "ACCOUNT", "adspert_account_id": 123, "adspert_campaign_id": "123:5555", "adspert_adgroup_id": "123:777" } ], "unknown": [ { "rule_type_id": 5675219470, "level": "ACCOUNT", "adspert_account_id": 123, "adspert_campaign_id": "123:5555", "adspert_adgroup_id": "123:777" } ] }, "meta": {} }
ProposalCollection
GET
- GET /v3/customers/(customer_id: int)/criterion-addition/proposals
-
Query Params
Name
Type
Description
include
Fields to include in response data.
exclude
Fields to exclude in response data.
filter_amz_product_ads_match_ratio_le
Float
Only return results where
amz_product_ads_match_ratio
is equal or lower than this value.filter_amz_product_ads_match_ratio_ge
Float
Only return results where
amz_product_ads_match_ratio
is equal or greater than this value.filter_account_id
[ String ]
Only return results matching given
source.account_id
values.filter_account_is_demo
[ Boolean ]
Only return results matching given
source.account_is_demo
values.filter_account_name
[ String ]
Only return results matching given
source.account_name
values.filter_account_optimize
[ Boolean ]
Only return results matching given
source.account_optimize
values.filter_account_platform
[ AdPlatform ]
Only return results matching given
source.account_platform
values.filter_account_tags_user
[ String ]
Only return results matching given
source.account_tags_user
values.filter_adspert_account_id
[ Integer ]
Only return results matching given
source.adspert_account_id
values.filter_click_through_rate_ge
Float
Only return results where
metrics.click_through_rate
is equal or greater than this value.filter_click_through_rate_le
Float
Only return results where
metrics.click_through_rate
is equal or lower than this value.filter_clicks
[ Integer ]
Only return results matching given
metrics.clicks
values.filter_clicks_ge
Integer
Only return results where
metrics.clicks
is equal or greater than this value.filter_clicks_le
Integer
Only return results where
metrics.clicks
is equal or lower than this value.filter_conversion_rate_ge
Float
Only return results where
metrics.conversion_rate
is equal or greater than this value.filter_conversion_rate_le
Float
Only return results where
metrics.conversion_rate
is equal or lower than this value.filter_conversions_ge
Float
Only return results where
metrics.conversions
is equal or greater than this value.filter_conversions_le
Float
Only return results where
metrics.conversions
is equal or lower than this value.filter_cost_ge
Only return results where
metrics.cost
is equal or greater than this value.Min value: 1000
filter_cost_le
Only return results where
metrics.cost
is equal or lower than this value.Min value: 1000
filter_cost_per_click_ge
Only return results where
metrics.cost_per_click
is equal or greater than this value.Min value: 1000
filter_cost_per_click_le
Only return results where
metrics.cost_per_click
is equal or lower than this value.Min value: 1000
filter_cost_per_conversion_ge
Only return results where
metrics.cost_per_conversion
is equal or greater than this value.Min value: 1000
filter_cost_per_conversion_le
Only return results where
metrics.cost_per_conversion
is equal or lower than this value.Min value: 1000
filter_cost_revenue_ratio_ge
Float
Only return results where
metrics.cost_revenue_ratio
is equal or greater than this value.filter_cost_revenue_ratio_le
Float
Only return results where
metrics.cost_revenue_ratio
is equal or lower than this value.filter_criterion_name
[ String ]
Only return results matching given
criterion_name
values.filter_criterion_subtype
Only return results matching given
criterion_subtype
values.filter_criterion_type
Only return results matching given
criterion_type
values.filter_destination_adgroup_labels
[ String ]
Only return results matching given
destinations.effective_destination.adgroup_labels
values.filter_destination_adgroup_name
[ String ]
Only return results matching given
destinations.effective_destination.adgroup_name
values.filter_destination_adgroup_status
[ AdgroupStatus ]
Only return results matching given
destinations.effective_destination.adgroup_status
values.filter_destination_adspert_adgroup_id
[ CompositeID ]
Only return results matching given
destinations.effective_destination.adspert_adgroup_id
values.filter_destination_adspert_campaign_id
[ CompositeID ]
Only return results matching given
destinations.effective_destination.adspert_campaign_id
values.filter_destination_adspert_portfolio_id
[ CompositeID ]
Only return results matching given
destinations.effective_destination.adspert_portfolio_id
values.filter_destination_amz_portfolio_name
[ String ]
Only return results matching given
destinations.effective_destination.amz_portfolio_name
values.filter_destination_campaign_eby_marketplace_id
[ String ]
Only return results matching given
destinations.effective_destination.campaign_eby_marketplace_id
values.filter_destination_campaign_labels
[ String ]
Only return results matching given
destinations.effective_destination.campaign_labels
values.filter_destination_campaign_name
[ String ]
Only return results matching given
destinations.effective_destination.campaign_name
values.filter_destination_campaign_optimization_support
Only return results matching given
destinations.effective_destination.campaign_optimization_support
values.filter_destination_campaign_optimization_type
[ OptimizationType ]
Only return results matching given
destinations.effective_destination.campaign_optimization_type
values.filter_destination_campaign_optimize
[ Boolean ]
Only return results matching given
destinations.effective_destination.campaign_optimize
values.filter_destination_campaign_status
[ CampaignStatus ]
Only return results matching given
destinations.effective_destination.campaign_status
values.filter_destination_campaign_type
[ CampaignType ]
Only return results matching given
destinations.effective_destination.campaign_type
values.filter_destination_id
[ LargeInteger ]
Only return results matching given
destinations.destination_id
values.filter_destination_performance_group_enabled
[ Boolean ]
Only return results matching given
destinations.effective_destination.performance_group_enabled
values.filter_destination_performance_group_goal_types
Only return results matching given
destinations.effective_destination.performance_group_goal_types
values.filter_destination_performance_group_id
[ Integer ]
Only return results matching given
destinations.effective_destination.performance_group_id
values.filter_destination_performance_group_name
[ String ]
Only return results matching given
destinations.effective_destination.performance_group_name
values.filter_destination_performance_group_optimization_type
[ OptimizationType ]
Only return results matching given
destinations.effective_destination.performance_group_optimization_type
values.filter_destination_type
Only return results matching given
destinations.destination_type
values.filter_impressions
[ Integer ]
Only return results matching given
metrics.impressions
values.filter_impressions_ge
Integer
Only return results where
metrics.impressions
is equal or greater than this value.filter_impressions_le
Integer
Only return results where
metrics.impressions
is equal or lower than this value.filter_profit_gross_ge
Only return results where
metrics.profit_gross
is equal or greater than this value.Min value: 1000
filter_profit_gross_le
Only return results where
metrics.profit_gross
is equal or lower than this value.Min value: 1000
filter_profit_net_ge
Only return results where
metrics.profit_net
is equal or greater than this value.Min value: 1000
filter_profit_net_le
Only return results where
metrics.profit_net
is equal or lower than this value.Min value: 1000
filter_proposal_id
[ LargeInteger ]
Only return results matching given
proposal_id
values.filter_proposal_reasons
Only return results matching given
proposal_reasons
values.filter_proposal_state
Only return results matching given
proposal_state
values.filter_proposal_type
Only return results matching given
proposal_type
values.filter_return_on_ad_spend_ge
Float
Only return results where
metrics.return_on_ad_spend
is equal or greater than this value.filter_return_on_ad_spend_le
Float
Only return results where
metrics.return_on_ad_spend
is equal or lower than this value.filter_return_on_investment_ge
Float
Only return results where
metrics.return_on_investment
is equal or greater than this value.filter_return_on_investment_le
Float
Only return results where
metrics.return_on_investment
is equal or lower than this value.filter_revenue_ge
Only return results where
metrics.revenue
is equal or greater than this value.Min value: 1000
filter_revenue_le
Only return results where
metrics.revenue
is equal or lower than this value.Min value: 1000
filter_revenue_per_conversion_ge
Only return results where
metrics.revenue_per_conversion
is equal or greater than this value.Min value: 1000
filter_revenue_per_conversion_le
Only return results where
metrics.revenue_per_conversion
is equal or lower than this value.Min value: 1000
filter_rule_type_id
[ Integer ]
Only return results matching given
rule_type_id
values.filter_source_adgroup_labels
[ String ]
Only return results matching given
source.adgroup_labels
values.filter_source_adgroup_name
[ String ]
Only return results matching given
source.adgroup_name
values.filter_source_adgroup_status
[ AdgroupStatus ]
Only return results matching given
source.adgroup_status
values.filter_source_adspert_adgroup_id
[ CompositeID ]
Only return results matching given
source.adspert_adgroup_id
values.filter_source_adspert_campaign_id
[ CompositeID ]
Only return results matching given
source.adspert_campaign_id
values.filter_source_adspert_portfolio_id
[ CompositeID ]
Only return results matching given
source.adspert_portfolio_id
values.filter_source_amz_portfolio_name
[ String ]
Only return results matching given
source.amz_portfolio_name
values.filter_source_campaign_eby_marketplace_id
[ String ]
Only return results matching given
source.campaign_eby_marketplace_id
values.filter_source_campaign_labels
[ String ]
Only return results matching given
source.campaign_labels
values.filter_source_campaign_name
[ String ]
Only return results matching given
source.campaign_name
values.filter_source_campaign_optimization_support
Only return results matching given
source.campaign_optimization_support
values.filter_source_campaign_optimization_type
[ OptimizationType ]
Only return results matching given
source.campaign_optimization_type
values.filter_source_campaign_optimize
[ Boolean ]
Only return results matching given
source.campaign_optimize
values.filter_source_campaign_status
[ CampaignStatus ]
Only return results matching given
source.campaign_status
values.filter_source_campaign_type
[ CampaignType ]
Only return results matching given
source.campaign_type
values.filter_source_performance_group_enabled
[ Boolean ]
Only return results matching given
source.performance_group_enabled
values.filter_source_performance_group_goal_types
Only return results matching given
source.performance_group_goal_types
values.filter_source_performance_group_id
[ Integer ]
Only return results matching given
source.performance_group_id
values.filter_source_performance_group_name
[ String ]
Only return results matching given
source.performance_group_name
values.filter_source_performance_group_optimization_type
[ OptimizationType ]
Only return results matching given
source.performance_group_optimization_type
values.search_fields
Fields that should be searched using the
search_term
.search_term
String
Search term used to search the
search_fields
.search_account_id
String
Only return results where
source.account_id
matches the given string.search_account_name
String
Only return results where
source.account_name
matches the given string.search_account_tags_user
String
Only return results where
source.account_tags_user
matches the given string.search_adspert_account_id
String
Only return results where
source.adspert_account_id
matches the given string.search_criterion_name
String
Only return results where
criterion_name
matches the given string.search_destination_adgroup_id
String
Only return results where
destinations.effective_destination.adgroup_id
matches the given string.search_destination_adgroup_labels
String
Only return results where
destinations.effective_destination.adgroup_labels
matches the given string.search_destination_adgroup_name
String
Only return results where
destinations.effective_destination.adgroup_name
matches the given string.search_destination_amz_portfolio_id
String
Only return results where
destinations.effective_destination.amz_portfolio_id
matches the given string.search_destination_amz_portfolio_name
String
Only return results where
destinations.effective_destination.amz_portfolio_name
matches the given string.search_destination_campaign_id
String
Only return results where
destinations.effective_destination.campaign_id
matches the given string.search_destination_campaign_labels
String
Only return results where
destinations.effective_destination.campaign_labels
matches the given string.search_destination_campaign_name
String
Only return results where
destinations.effective_destination.campaign_name
matches the given string.search_destination_performance_group_id
String
Only return results where
destinations.effective_destination.performance_group_id
matches the given string.search_destination_performance_group_name
String
Only return results where
destinations.effective_destination.performance_group_name
matches the given string.search_source_adgroup_id
String
Only return results where
source.adgroup_id
matches the given string.search_source_adgroup_labels
String
Only return results where
source.adgroup_labels
matches the given string.search_source_adgroup_name
String
Only return results where
source.adgroup_name
matches the given string.search_source_amz_portfolio_id
String
Only return results where
source.amz_portfolio_id
matches the given string.search_source_amz_portfolio_name
String
Only return results where
source.amz_portfolio_name
matches the given string.search_source_campaign_id
String
Only return results where
source.campaign_id
matches the given string.search_source_campaign_labels
String
Only return results where
source.campaign_labels
matches the given string.search_source_campaign_name
String
Only return results where
source.campaign_name
matches the given string.search_source_performance_group_id
String
Only return results where
source.performance_group_id
matches the given string.search_source_performance_group_name
String
Only return results where
source.performance_group_name
matches the given string.sort_account_id
Sort results by
source.account_id
.sort_account_is_demo
Sort results by
source.account_is_demo
.sort_account_name
Sort results by
source.account_name
.sort_account_optimize
Sort results by
source.account_optimize
.sort_account_platform
Sort results by
source.account_platform
.sort_adspert_account_id
Sort results by
source.adspert_account_id
.sort_click_through_rate
Sort results by
metrics.click_through_rate
.sort_clicks
Sort results by
metrics.clicks
.sort_conversion_rate
Sort results by
metrics.conversion_rate
.sort_conversions
Sort results by
metrics.conversions
.sort_cost
Sort results by
metrics.cost
.sort_cost_per_click
Sort results by
metrics.cost_per_click
.sort_cost_per_conversion
Sort results by
metrics.cost_per_conversion
.sort_cost_revenue_ratio
Sort results by
metrics.cost_revenue_ratio
.sort_criterion_name
Sort results by
criterion_name
.sort_criterion_subtype
Sort results by
criterion_subtype
.sort_criterion_type
Sort results by
criterion_type
.sort_impressions
Sort results by
metrics.impressions
.sort_profit_gross
Sort results by
metrics.profit_gross
.sort_profit_net
Sort results by
metrics.profit_net
.sort_proposal_id
Sort results by
proposal_id
.sort_proposal_state
Sort results by
proposal_state
.sort_proposal_type
Sort results by
proposal_type
.sort_return_on_ad_spend
Sort results by
metrics.return_on_ad_spend
.sort_return_on_investment
Sort results by
metrics.return_on_investment
.sort_revenue
Sort results by
metrics.revenue
.sort_revenue_per_conversion
Sort results by
metrics.revenue_per_conversion
.sort_rule_type_id
Sort results by
rule_type_id
.sort_source_adgroup_id
Sort results by
source.adgroup_id
.sort_source_adgroup_name
Sort results by
source.adgroup_name
.sort_source_adgroup_status
Sort results by
source.adgroup_status
.sort_source_adspert_adgroup_id
Sort results by
source.adspert_adgroup_id
.sort_source_adspert_campaign_id
Sort results by
source.adspert_campaign_id
.sort_source_adspert_portfolio_id
Sort results by
source.adspert_portfolio_id
.sort_source_amz_portfolio_id
Sort results by
source.amz_portfolio_id
.sort_source_amz_portfolio_name
Sort results by
source.amz_portfolio_name
.sort_source_campaign_eby_marketplace_id
Sort results by
source.campaign_eby_marketplace_id
.sort_source_campaign_id
Sort results by
source.campaign_id
.sort_source_campaign_name
Sort results by
source.campaign_name
.sort_source_campaign_optimization_support
Sort results by
source.campaign_optimization_support
.sort_source_campaign_optimization_type
Sort results by
source.campaign_optimization_type
.sort_source_campaign_optimize
Sort results by
source.campaign_optimize
.sort_source_campaign_status
Sort results by
source.campaign_status
.sort_source_campaign_type
Sort results by
source.campaign_type
.sort_source_performance_group_enabled
Sort results by
source.performance_group_enabled
.sort_source_performance_group_goal_types
Sort results by
source.performance_group_goal_types
.sort_source_performance_group_id
Sort results by
source.performance_group_id
.sort_source_performance_group_name
Sort results by
source.performance_group_name
.sort_source_performance_group_optimization_type
Sort results by
source.performance_group_optimization_type
.offset
Integer
Start index for result list.
Default: 0
Min value: 0
limit
Integer
Maximum number of results to return. The maximum allowed value depends on the response media type (10000 for JSON and 100000 for tabular formats like CSV).
Default: 10
Min value: 1
currency
Currency for all of the monetary metrics in the
metrics
section of the response.Defaults to
EUR
, if not specified in the request.Default: EUR
Response Data (object list, json or csv or xlsx)
Name
Type
Description
proposal_id
Unique ID of the proposal.
rule_type_id
Integer
Id of the matched Rule Type.
proposal_type
Type of the proposal.
proposal_reasons
A list of reasons why the proposal was generated.
proposal_state
State of the proposal.
criterion_type
Type of criterion proposed to be created.
criterion_subtype
Subtype of criterion proposed to be created.
criterion_name
searchable
String
Name of criterion proposed to be created.
forced_review_reasons
If proposal was forced into the
review
states, those are the reasons why.source
Object
⤷
adspert_account_id
searchable
Integer
Adspert internal ID of the advertising account
⤷
account_id
searchable
String
Ad platform specific ID of an advertising account.
⤷
account_name
searchable
String
⤷
account_platform
The account’s advertising platform.
⤷
account_optimize
Boolean
If optimization by Adspert is enabled for this account.
⤷
account_tags_user
searchable
[ String ]
⤷
account_is_demo
Boolean
If the account is a generated account for demonstration purposes.
Demo accounts have no counterpart in the ad platform.
⤷
performance_group_id
searchable
Integer
Unique ID of the performance group
⤷
performance_group_name
searchable
String
Unique name of the performance group.
⤷
performance_group_enabled
Boolean
⤷
performance_group_optimization_type
Optimization type of the performance group.
Only campaigns of the same optimization type can be added to a given performance group.
⤷
performance_group_goals
[ Object ]
List of performance group goals
⤷
goal_type
Type of the performance group goal
⤷
goal_value
Float
Value of the performance group goal.
goal_value
should beNULL
ifgoal_type
isPROFIT-MAXIMIZATION
.goal_value
should be a ratio (> 0) ifgoal_type
isROAS
,CRR
andROI
,goal_value
should be specified in micros and be larger than 10000 ifgoal_type
isCOST-PER-DAY
,COST-PER-CONVERSION
andCOST-PER-CLICK
.⤷
goal_currency
Currency of the performance group goal.
Currency is required for
COST-PER-DAY
,COST-PER-CONVERSION
andCOST-PER-CLICK
goals.⤷
goal_micros
Value for
COST-PER-DAY
,COST-PER-CONVERSION
andCOST-PER-CLICK
goals.Same as
goal_value
, but in a properly typed field for easier client-side handling and improved representation in tabular response data like CSV.⤷
goal_ratio
Float
Value for
ROAS
,CRR
andROI
goals.Same as
goal_value
, but in a properly typed field for easier client-side handling and improved representation in tabular response data like CSV.⤷
performance_group_goal_types
List of performance group goal types
⤷
adspert_portfolio_id
Adspert internal ID of Amazon portfolio.
Composite ID specification:
{adspert_account_id}:{portfolio_id}
⤷
amz_portfolio_id
searchable
⤷
amz_portfolio_name
searchable
String
⤷
adspert_campaign_id
Adspert internal ID of the campaign.
Composite ID specification:
{adspert_account_id}:{campaign_id}
⤷
campaign_id
searchable
⤷
campaign_name
searchable
String
⤷
campaign_type
⤷
campaign_eby_marketplace_id
String
⤷
campaign_status
⤷
campaign_optimize
Boolean
⤷
campaign_optimization_type
⤷
campaign_optimization_support
⤷
campaign_labels
searchable
[ String ]
⤷
adspert_adgroup_id
Adspert internal ID of the adgroup.
Composite ID specification:
{adspert_account_id}:{adgroup_id}
⤷
adgroup_id
searchable
⤷
adgroup_name
searchable
String
⤷
adgroup_status
⤷
adgroup_labels
searchable
[ String ]
metrics
Object
⤷
cost
⤷
impressions
Integer
⤷
clicks
Integer
⤷
conversions
Float
⤷
profit_gross
Gross profit
⤷
profit_net
Net profit.
profit_gross
-cost
⤷
revenue
Revenue/sales
⤷
cost_per_click
Effective CPC.
cost
/clicks
NULL if number of
clicks
is 0.⤷
cost_per_conversion
Cost per conversion.
cost
/conversions
NULL if number of
conversions
is 0.⤷
revenue_per_conversion
Revenue per conversions.
revenue
/conversions
⤷
conversion_rate
Float
Conversion rate.
conversions
/clicks
NULL if number of
clicks
is 0.⤷
click_through_rate
Float
Clickthrough rate (CTR).
clicks
/impressions
NULL if number of
impressions
is 0.⤷
return_on_investment
Float
Return on investment (ROI).
profit_gross
/cost
NULL if
cost
is 0.⤷
return_on_ad_spend
Float
Return on ad spend (ROAS).
revenue
/cost
NULL if
cost
is 0.⤷
cost_revenue_ratio
Float
Cost Revenue Ratio (CRR).
Also called Advertising Cost of Sale (ACoS).
cost
/revenue
NULL if
revenue
is 0.rule_snapshots
[ Object ]
⤷
rule_snapshot_id
Id of the rule snapshot.
⤷
rule_id
Id of the rule that this snapshot was created for.
⤷
action
Rule action at the time that the snapshot was generated.
⤷
filters
[ Object ]
Rule filters at the time that the snapshot was generated.
⤷
operand
Rule filter operand.
⤷
operation
Rule filter operation.
⤷
values
[ Any ]
Rule filter values.
⤷
catch_all
Boolean
Rule
catch_all
value at the time that the snapshot was generated.⤷
defined_at
Object
Extra information about the location where snapshotted rule was defined at.
⤷
level
⤷
platform
⤷
adspert_account_id
searchable
Integer
Adspert internal ID of the advertising account
⤷
account_id
searchable
String
Ad platform specific ID of an advertising account.
⤷
account_name
searchable
String
⤷
account_platform
The account’s advertising platform.
⤷
adspert_campaign_id
Adspert internal ID of the campaign.
Composite ID specification:
{adspert_account_id}:{campaign_id}
⤷
campaign_id
searchable
⤷
campaign_name
searchable
String
⤷
campaign_type
⤷
adspert_adgroup_id
Adspert internal ID of the adgroup.
Composite ID specification:
{adspert_account_id}:{adgroup_id}
⤷
adgroup_id
searchable
⤷
adgroup_name
searchable
String
destinations
[ Object ]
⤷
destination_id
⤷
state
State of the proposal destination.
⤷
rule_snapshot_id
Id of the snapshot of the rule that defined current destination.
NULL
if destination had been created by the user.⤷
destination_type
⤷
selected_adgroup_id
Adspert internal ID of the adgroup.
Id of an explicitly selected destination adgroup.
This field is populated only for
SELECTED-ADGROUP
destinations and isNULL
for all other destination types.Composite ID specification:
{adspert_account_id}:{adgroup_id}
⤷
match_type
Keyword match type.
This field is populated only for destinations that belong to proposals where
criterion_type
isKEYWORD
.⤷
negative
Boolean
Is the criterion created for this destination supposed to be negative?
⤷
effective_destination
Object
Details about the effective destination adgroup.
Can be
NULL
for some destination types, if the adgroup hasn’t yet been created.⤷
performance_group_id
searchable
Integer
Unique ID of the performance group
⤷
performance_group_name
searchable
String
Unique name of the performance group.
⤷
performance_group_enabled
Boolean
⤷
performance_group_optimization_type
Optimization type of the performance group.
Only campaigns of the same optimization type can be added to a given performance group.
⤷
performance_group_goals
[ Object ]
List of performance group goals
⤷
goal_type
Type of the performance group goal
⤷
goal_value
Float
Value of the performance group goal.
goal_value
should beNULL
ifgoal_type
isPROFIT-MAXIMIZATION
.goal_value
should be a ratio (> 0) ifgoal_type
isROAS
,CRR
andROI
,goal_value
should be specified in micros and be larger than 10000 ifgoal_type
isCOST-PER-DAY
,COST-PER-CONVERSION
andCOST-PER-CLICK
.⤷
goal_currency
Currency of the performance group goal.
Currency is required for
COST-PER-DAY
,COST-PER-CONVERSION
andCOST-PER-CLICK
goals.⤷
goal_micros
Value for
COST-PER-DAY
,COST-PER-CONVERSION
andCOST-PER-CLICK
goals.Same as
goal_value
, but in a properly typed field for easier client-side handling and improved representation in tabular response data like CSV.⤷
goal_ratio
Float
Value for
ROAS
,CRR
andROI
goals.Same as
goal_value
, but in a properly typed field for easier client-side handling and improved representation in tabular response data like CSV.⤷
performance_group_goal_types
List of performance group goal types
⤷
adspert_portfolio_id
Adspert internal ID of Amazon portfolio.
Composite ID specification:
{adspert_account_id}:{portfolio_id}
⤷
amz_portfolio_id
searchable
⤷
amz_portfolio_name
searchable
String
⤷
adspert_campaign_id
Adspert internal ID of the campaign.
Composite ID specification:
{adspert_account_id}:{campaign_id}
⤷
campaign_id
searchable
⤷
campaign_name
searchable
String
⤷
campaign_type
⤷
campaign_eby_marketplace_id
String
⤷
campaign_status
⤷
campaign_optimize
Boolean
⤷
campaign_optimization_type
⤷
campaign_optimization_support
⤷
campaign_labels
searchable
[ String ]
⤷
adspert_adgroup_id
Adspert internal ID of the adgroup.
Composite ID specification:
{adspert_account_id}:{adgroup_id}
⤷
adgroup_id
searchable
⤷
adgroup_name
searchable
String
⤷
adgroup_status
⤷
adgroup_labels
searchable
[ String ]
⤷
amz_product_ads_matches
Integer
Number of shared unique product ads between source and target AdGroups.
NULL if any of the two AdGroups are not auto/manual SP.
⤷
amz_product_ads_total
Integer
Number of total unique product ads between source and target AdGroups.
NULL if any of the two AdGroups are not auto/manual SP.
⤷
amz_product_ads_match_ratio
Float
Ratio of shared and total unique product ads between source and target AdGroups.
product_ads_matches
/product_ads_total
NULL if any of the two AdGroups are not auto/manual SP.
⤷
warnings
[ Object ]
Destination warnings.
⤷
warning_type
Destination warning type.
⤷
context
Dict
Extra information about the warning.
Not all warning types support this extra information.
⤷
critical
Boolean
Is the warning critical?
Critical warnings mean that the destination cannot be created.
Non-critical warnings allow the destination to be created and simply serve as extra information about potential isues with the destination.
Example
GET /v3/customers/7027038674/criterion-addition/proposals?filter_click_through_rate_ge=3.91&filter_profit_net_ge=8640000&search_source_performance_group_id=dolor+sit HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl -i -X GET 'https://api.adspert.net/v3/customers/7027038674/criterion-addition/proposals?filter_click_through_rate_ge=3.91&filter_profit_net_ge=8640000&search_source_performance_group_id=dolor+sit' -H "Accept: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
http 'https://api.adspert.net/v3/customers/7027038674/criterion-addition/proposals?filter_click_through_rate_ge=3.91&filter_profit_net_ge=8640000&search_source_performance_group_id=dolor+sit' Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.get('https://api.adspert.net/v3/customers/7027038674/criterion-addition/proposals?filter_click_through_rate_ge=3.91&filter_profit_net_ge=8640000&search_source_performance_group_id=dolor+sit', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": [ { "proposal_id": "55669895173420790989137281", "rule_type_id": 5675219470, "proposal_type": "ADDITION", "proposal_reasons": [ "CHEAP-CLICK" ], "proposal_state": "ACCEPTED", "criterion_type": "KEYWORD", "criterion_subtype": "ASIN", "criterion_name": "dolor adlora", "forced_review_reasons": [ "INVALID-DESTINATIONS" ], "source": { "adspert_account_id": 123, "account_id": "amet lorem", "account_name": "vehicula ipsum", "account_platform": "AMAZON", "account_optimize": true, "account_tags_user": [ "vehicula amet" ], "account_is_demo": true, "performance_group_id": "1245", "performance_group_name": "dolor sit", "performance_group_enabled": true, "performance_group_optimization_type": "CLICK", "performance_group_goals": [ { "goal_type": "CLICKS-PER-DAY", "goal_value": 1.41, "goal_currency": "AED", "goal_micros": 6300000, "goal_ratio": 8.77 } ], "performance_group_goal_types": [ "CLICKS-PER-DAY" ], "adspert_portfolio_id": "123:9999", "amz_portfolio_id": "9999", "amz_portfolio_name": "elit adlora", "adspert_campaign_id": "123:5555", "campaign_id": "5555", "campaign_name": "sit ipsum", "campaign_type": "AMAZON-SPONSORED-BRANDS", "campaign_eby_marketplace_id": "amet pariatur", "campaign_status": "ACTIVE", "campaign_optimize": true, "campaign_optimization_type": "CLICK", "campaign_optimization_support": "SUPPORTED", "campaign_labels": [ "ipsum dolor" ], "adspert_adgroup_id": "123:777", "adgroup_id": "777", "adgroup_name": "tucan lorem", "adgroup_status": "ACTIVE", "adgroup_labels": [ "elit ipsum" ] }, "metrics": { "cost": 4540000, "impressions": 2157218327, "clicks": 5857268080, "conversions": 3.92, "profit_gross": 6420000, "profit_net": 30000, "revenue": 360000, "cost_per_click": 7300000, "cost_per_conversion": 7570000, "revenue_per_conversion": 7070000, "conversion_rate": 0.86, "click_through_rate": 7.58, "return_on_investment": 3.28, "return_on_ad_spend": 2.29, "cost_revenue_ratio": 16.41 }, "rule_snapshots": [ { "rule_snapshot_id": "29900904027622664405022614", "rule_id": "49754540226638646583189955", "action": "ADD", "filters": [ { "operand": "DOMAIN", "operation": "CONTAINS", "values": [ 1 ] } ], "catch_all": true, "defined_at": { "level": "ACCOUNT", "platform": "AMAZON", "adspert_account_id": 123, "account_id": "amet lorem", "account_name": "vehicula ipsum", "account_platform": "AMAZON", "adspert_campaign_id": "123:5555", "campaign_id": "5555", "campaign_name": "sit ipsum", "campaign_type": "AMAZON-SPONSORED-BRANDS", "adspert_adgroup_id": "123:777", "adgroup_id": "777", "adgroup_name": "tucan lorem" } } ], "destinations": [ { "destination_id": "78046413193991906103940983", "state": "ACCEPTED", "rule_snapshot_id": "29900904027622664405022614", "destination_type": "AMAZON-CREATE-BRAND-KEYWORD-ADGROUP", "selected_adgroup_id": "123:777", "match_type": "BROAD", "negative": true, "effective_destination": { "performance_group_id": "1245", "performance_group_name": "dolor sit", "performance_group_enabled": true, "performance_group_optimization_type": "CLICK", "performance_group_goals": [ { "goal_type": "CLICKS-PER-DAY", "goal_value": 1.41, "goal_currency": "AED", "goal_micros": 6300000, "goal_ratio": 8.77 } ], "performance_group_goal_types": [ "CLICKS-PER-DAY" ], "adspert_portfolio_id": "123:9999", "amz_portfolio_id": "9999", "amz_portfolio_name": "elit adlora", "adspert_campaign_id": "123:5555", "campaign_id": "5555", "campaign_name": "sit ipsum", "campaign_type": "AMAZON-SPONSORED-BRANDS", "campaign_eby_marketplace_id": "amet pariatur", "campaign_status": "ACTIVE", "campaign_optimize": true, "campaign_optimization_type": "CLICK", "campaign_optimization_support": "SUPPORTED", "campaign_labels": [ "ipsum dolor" ], "adspert_adgroup_id": "123:777", "adgroup_id": "777", "adgroup_name": "tucan lorem", "adgroup_status": "ACTIVE", "adgroup_labels": [ "elit ipsum" ], "amz_product_ads_matches": 4496014026, "amz_product_ads_total": 2907851652, "amz_product_ads_match_ratio": 10.69 }, "warnings": [ { "warning_type": "ACCOUNT-TOO-MANY-ADGROUPS", "context": { "adlora pariatur": 1 }, "critical": true } ] } ] } ], "meta": { "pagination": { "offset": 0, "limit": 10, "total": 74, "sort": { "proposal_id": 1 } } } }
PATCH
- PATCH /v3/customers/(customer_id: int)/criterion-addition/proposals
Update criterion addition proposals.
Request Data (object list, json)
Name
Type
Description
proposal_id
required
Unique ID of the proposal.
proposal_state
State of the proposal.
destinations
[ Object ]
Proposal destinations.
This field should be skipped (or set to
NULL
) whenproposal_state
is set toREJECTED
orREVIEW
.This field is required (with at least one destination) when
proposal_state
is set toACCEPTED
.⤷
destination_type
required
Type of the destination.
⤷
selected_adgroup_id
Adspert internal ID of the adgroup.
Id of an explicitly selected destination adgroup.
This field is required for
SELECTED-ADGROUP
destinations and should beNULL
for any other destination type.Composite ID specification:
{adspert_account_id}:{adgroup_id}
⤷
match_type
Keyword match type.
This field is required for destinations that belong to proposals where
criterion_type
isKEYWORD
.⤷
negative
required
Boolean
Is the criterion created for this destination supposed to be negative?
validate_only
Boolean
If set to
True
PATCH requests will only be validated, and will not (after successful validation) be saved.Default value is
False
.Response Data (single object, json or csv or xlsx)
Name
Type
Description
unchanged
[ Object ]
List of objects which had no effective change.
⤷
proposal_id
See request data description.
⤷
proposal_state
See request data description.
⤷
destinations
[ Object ]
See request data description.
⤷
destination_type
See request data description.
⤷
selected_adgroup_id
See request data description.
⤷
match_type
See request data description.
⤷
negative
Boolean
See request data description.
⤷
validate_only
Boolean
See request data description.
unknown
[ Object ]
List of objects which could not be found.
⤷
proposal_id
See request data description.
⤷
proposal_state
See request data description.
⤷
destinations
[ Object ]
See request data description.
⤷
destination_type
See request data description.
⤷
selected_adgroup_id
See request data description.
⤷
match_type
See request data description.
⤷
negative
Boolean
See request data description.
⤷
validate_only
Boolean
See request data description.
updated
[ Object ]
List of objects which have been updated.
⤷
proposal_id
See request data description.
⤷
proposal_state
See request data description.
⤷
destinations
[ Object ]
See request data description.
⤷
destination_type
See request data description.
⤷
selected_adgroup_id
See request data description.
⤷
match_type
See request data description.
⤷
negative
Boolean
See request data description.
⤷
validate_only
Boolean
See request data description.
Example
PATCH /v3/customers/7027038674/criterion-addition/proposals HTTP/1.1 Host: api.adspert.net Accept: application/json Content-Type: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5... [ { "proposal_id": "55669895173420790989137281", "proposal_state": "ACCEPTED", "destinations": [ { "destination_type": "AMAZON-CREATE-BRAND-KEYWORD-ADGROUP", "selected_adgroup_id": "123:777", "match_type": "BROAD", "negative": true } ], "validate_only": true } ]
curl -i -X PATCH https://api.adspert.net/v3/customers/7027038674/criterion-addition/proposals -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..." --data-raw '[{"proposal_id": "55669895173420790989137281", "proposal_state": "ACCEPTED", "destinations": [{"destination_type": "AMAZON-CREATE-BRAND-KEYWORD-ADGROUP", "selected_adgroup_id": "123:777", "match_type": "BROAD", "negative": true}], "validate_only": true}]'
echo '[ { "destinations": [ { "destination_type": "AMAZON-CREATE-BRAND-KEYWORD-ADGROUP", "match_type": "BROAD", "negative": true, "selected_adgroup_id": "123:777" } ], "proposal_id": "55669895173420790989137281", "proposal_state": "ACCEPTED", "validate_only": true } ]' | http PATCH https://api.adspert.net/v3/customers/7027038674/criterion-addition/proposals Accept:application/json Content-Type:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.patch('https://api.adspert.net/v3/customers/7027038674/criterion-addition/proposals', headers={'Accept': 'application/json', 'Content-Type': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'}, json=[{'proposal_id': '55669895173420790989137281', 'proposal_state': 'ACCEPTED', 'destinations': [{'destination_type': 'AMAZON-CREATE-BRAND-KEYWORD-ADGROUP', 'selected_adgroup_id': '123:777', 'match_type': 'BROAD', 'negative': True}], 'validate_only': True}])
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": { "unchanged": [ { "proposal_id": "55669895173420790989137281", "proposal_state": "ACCEPTED", "destinations": [ { "destination_type": "AMAZON-CREATE-BRAND-KEYWORD-ADGROUP", "selected_adgroup_id": "123:777", "match_type": "BROAD", "negative": true } ], "validate_only": true } ], "unknown": [ { "proposal_id": "55669895173420790989137281", "proposal_state": "ACCEPTED", "destinations": [ { "destination_type": "AMAZON-CREATE-BRAND-KEYWORD-ADGROUP", "selected_adgroup_id": "123:777", "match_type": "BROAD", "negative": true } ], "validate_only": true } ], "updated": [ { "proposal_id": "55669895173420790989137281", "proposal_state": "ACCEPTED", "destinations": [ { "destination_type": "AMAZON-CREATE-BRAND-KEYWORD-ADGROUP", "selected_adgroup_id": "123:777", "match_type": "BROAD", "negative": true } ], "validate_only": true } ] }, "meta": {} }
SettingsCollection
GET
- GET /v3/customers/(customer_id: int)/criterion-addition/settings
Retrieve Criterion Addition settings.
Query Params
Name
Type
Description
include
Fields to include in response data.
exclude
Fields to exclude in response data.
filter_level
required
filter_account_id
[ String ]
Only return results matching given
account_id
values.filter_account_is_demo
[ Boolean ]
Only return results matching given
account_is_demo
values.filter_account_name
[ String ]
Only return results matching given
account_name
values.filter_account_optimize
[ Boolean ]
Only return results matching given
account_optimize
values.filter_account_platform
[ AdPlatform ]
Only return results matching given
account_platform
values.filter_account_tags_user
[ String ]
Only return results matching given
account_tags_user
values.filter_adspert_account_id
[ Integer ]
Only return results matching given
adspert_account_id
values.filter_setting_type
Only return results matching given
setting_type
values.filter_setting_value
[ String ]
Only return results matching given
setting_value
values.filter_setting_value_inherited
[ Boolean ]
Only return results matching given
setting_value_inherited
values.search_fields
Fields that should be searched using the
search_term
.search_term
String
Search term used to search the
search_fields
.search_account_id
String
Only return results where
account_id
matches the given string.search_account_name
String
Only return results where
account_name
matches the given string.search_account_tags_user
String
Only return results where
account_tags_user
matches the given string.search_adspert_account_id
String
Only return results where
adspert_account_id
matches the given string.sort_account_id
Sort results by
account_id
.sort_account_is_demo
Sort results by
account_is_demo
.sort_account_name
Sort results by
account_name
.sort_account_optimize
Sort results by
account_optimize
.sort_account_platform
Sort results by
account_platform
.sort_adspert_account_id
Sort results by
adspert_account_id
.offset
Integer
Start index for result list.
Default: 0
Min value: 0
limit
Integer
Maximum number of results to return. The maximum allowed value depends on the response media type (10000 for JSON and 100000 for tabular formats like CSV).
Default: 10
Min value: 1
Response Data (object list, json or csv or xlsx)
Name
Type
Description
setting_type
Type of the setting
setting_value_type
Type of the setting value.
It’s a data type that the
setting_value
should be casted to.setting_value
String
All setting values are returned as strings and should be casted to a proper type (
setting_value_type
) by the client.setting_value_inherited
Boolean
Was the setting value defined at the account-level or inherited from the customer-level?
Always
false
for customer-level settings.adspert_account_id
searchable
Integer
Adspert internal ID of the advertising account
NULL
for customer-level settings.account_id
searchable
String
Ad platform specific ID of an advertising account.
NULL
for customer-level settings.account_name
searchable
String
NULL
for customer-level settings.account_platform
The account’s advertising platform.
NULL
for customer-level settings.account_optimize
Boolean
If optimization by Adspert is enabled for this account.
NULL
for customer-level settings.account_tags_user
searchable
[ String ]
NULL
for customer-level settings.account_is_demo
Boolean
If the account is a generated account for demonstration purposes.
Demo accounts have no counterpart in the ad platform.
NULL
for customer-level settings.Example
GET /v3/customers/7027038674/criterion-addition/settings?filter_setting_type=ENFORCE-ADVANCED-MODE&search_adspert_account_id=dolor+vehicula&search_account_tags_user=dolor+elit HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl -i -X GET 'https://api.adspert.net/v3/customers/7027038674/criterion-addition/settings?filter_setting_type=ENFORCE-ADVANCED-MODE&search_adspert_account_id=dolor+vehicula&search_account_tags_user=dolor+elit' -H "Accept: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
http 'https://api.adspert.net/v3/customers/7027038674/criterion-addition/settings?filter_setting_type=ENFORCE-ADVANCED-MODE&search_adspert_account_id=dolor+vehicula&search_account_tags_user=dolor+elit' Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.get('https://api.adspert.net/v3/customers/7027038674/criterion-addition/settings?filter_setting_type=ENFORCE-ADVANCED-MODE&search_adspert_account_id=dolor+vehicula&search_account_tags_user=dolor+elit', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": [ { "setting_type": "ENFORCE-ADVANCED-MODE", "setting_value_type": "BOOLEAN", "setting_value": "elit pariatur", "setting_value_inherited": true, "adspert_account_id": 123, "account_id": "amet lorem", "account_name": "vehicula ipsum", "account_platform": "AMAZON", "account_optimize": true, "account_tags_user": [ "vehicula amet" ], "account_is_demo": true } ], "meta": { "pagination": { "offset": 0, "limit": 10, "total": 74, "sort": { "setting_type": 1 } } } }
PATCH
- PATCH /v3/customers/(customer_id: int)/criterion-addition/settings
Update Criterion Addition settings.
Request Data (object list, json or csv)
Name
Type
Description
adspert_account_id
Integer
Should be set to NULL for customer-level settings.
Should be set to a non-NULL value for account-level settings.
setting_type
required
Type of the setting
setting_value
required
String
Setting value as string
Response Data (single object, json or csv or xlsx)
Name
Type
Description
unchanged
[ Object ]
List of objects which had no effective change.
⤷
adspert_account_id
Integer
See request data description.
⤷
setting_type
See request data description.
⤷
setting_value
String
See request data description.
unknown
[ Object ]
List of objects which could not be found.
⤷
adspert_account_id
Integer
See request data description.
⤷
setting_type
See request data description.
⤷
setting_value
String
See request data description.
updated
[ Object ]
List of objects which have been updated.
⤷
adspert_account_id
Integer
See request data description.
⤷
setting_type
See request data description.
⤷
setting_value
String
See request data description.
Example
PATCH /v3/customers/7027038674/criterion-addition/settings HTTP/1.1 Host: api.adspert.net Accept: application/json Content-Type: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5... [ { "adspert_account_id": 123, "setting_type": "ENFORCE-ADVANCED-MODE", "setting_value": "elit pariatur" } ]
curl -i -X PATCH https://api.adspert.net/v3/customers/7027038674/criterion-addition/settings -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..." --data-raw '[{"adspert_account_id": 123, "setting_type": "ENFORCE-ADVANCED-MODE", "setting_value": "elit pariatur"}]'
echo '[ { "adspert_account_id": 123, "setting_type": "ENFORCE-ADVANCED-MODE", "setting_value": "elit pariatur" } ]' | http PATCH https://api.adspert.net/v3/customers/7027038674/criterion-addition/settings Accept:application/json Content-Type:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.patch('https://api.adspert.net/v3/customers/7027038674/criterion-addition/settings', headers={'Accept': 'application/json', 'Content-Type': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'}, json=[{'adspert_account_id': 123, 'setting_type': 'ENFORCE-ADVANCED-MODE', 'setting_value': 'elit pariatur'}])
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": { "unchanged": [ { "adspert_account_id": 123, "setting_type": "ENFORCE-ADVANCED-MODE", "setting_value": "elit pariatur" } ], "unknown": [ { "adspert_account_id": 123, "setting_type": "ENFORCE-ADVANCED-MODE", "setting_value": "elit pariatur" } ], "updated": [ { "adspert_account_id": 123, "setting_type": "ENFORCE-ADVANCED-MODE", "setting_value": "elit pariatur" } ] }, "meta": {} }
RuleTypeCollection
GET
- GET /v3/customers/(customer_id: int)/criterion-addition/rule-types
Get available Criterion Addition rule types.
Query Params
Name
Type
Description
include
Fields to include in response data.
exclude
Fields to exclude in response data.
filter_campaign_type
Only return results matching given
campaign_type
values.filter_criterion_subtype
Only return results matching given
criterion_subtype
values.filter_criterion_type
Only return results matching given
criterion_type
values.filter_enabled
[ Boolean ]
Only return results matching given
enabled
values.filter_platform
[ AdPlatform ]
Only return results matching given
platform
values.filter_proposal_type
Only return results matching given
proposal_type
values.filter_rule_type_id
[ Integer ]
Only return results matching given
rule_type_id
values.search_fields
Fields that should be searched using the
search_term
.search_term
String
Search term used to search the
search_fields
.sort_campaign_type
Sort results by
campaign_type
.sort_criterion_subtype
Sort results by
criterion_subtype
.sort_criterion_type
Sort results by
criterion_type
.sort_enabled
Sort results by
enabled
.sort_platform
Sort results by
platform
.sort_proposal_type
Sort results by
proposal_type
.sort_rule_type_id
Sort results by
rule_type_id
.offset
Integer
Start index for result list.
Default: 0
Min value: 0
limit
Integer
Maximum number of results to return. The maximum allowed value depends on the response media type (10000 for JSON and 100000 for tabular formats like CSV).
Default: 10
Min value: 1
Response Data (object list, json or csv or xlsx)
Name
Type
Description
rule_type_id
Integer
Unique Rule Type ID.
platform
Platform that the Rule Type is defined for.
campaign_type
Type of campaigns that the Rule Type is defined for.
proposal_type
Type of proposals that the Rule Type is defined for.
criterion_type
Type of criteria that the Rule Type is defined for.
criterion_subtype
Subtype of criteria that the Rule Type is defined for.
enabled
Boolean
Is the rule type enabled?
Rules that belong to a disabled Rule Type, won’t generate any proposals.
Example
GET /v3/customers/7027038674/criterion-addition/rule-types?sort_proposal_type=7&sort_rule_type_id=0&exclude=elit.amet HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl -i -X GET 'https://api.adspert.net/v3/customers/7027038674/criterion-addition/rule-types?sort_proposal_type=7&sort_rule_type_id=0&exclude=elit.amet' -H "Accept: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
http 'https://api.adspert.net/v3/customers/7027038674/criterion-addition/rule-types?sort_proposal_type=7&sort_rule_type_id=0&exclude=elit.amet' Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.get('https://api.adspert.net/v3/customers/7027038674/criterion-addition/rule-types?sort_proposal_type=7&sort_rule_type_id=0&exclude=elit.amet', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": [ { "rule_type_id": 5675219470, "platform": "AMAZON", "campaign_type": "AMAZON-SPONSORED-BRANDS", "proposal_type": "ADDITION", "criterion_type": "KEYWORD", "criterion_subtype": "ASIN", "enabled": true } ], "meta": { "pagination": { "offset": 0, "limit": 10, "total": 74, "sort": { "rule_type_id": 1 } } } }
DestinationAdGroupCollection
GET
- GET /v3/customers/(customer_id: int)/criterion-addition/destination-adgroups
Get adgroups, evaluated for usage as a rule / proposal destination
Query Params
Name
Type
Description
include
Fields to include in response data.
exclude
Fields to exclude in response data.
filter_account_id
[ String ]
Only return results matching given
account_id
values.filter_account_is_demo
[ Boolean ]
Only return results matching given
account_is_demo
values.filter_account_name
[ String ]
Only return results matching given
account_name
values.filter_account_optimize
[ Boolean ]
Only return results matching given
account_optimize
values.filter_account_platform
[ AdPlatform ]
Only return results matching given
account_platform
values.filter_account_tags_user
[ String ]
Only return results matching given
account_tags_user
values.filter_adgroup_labels
[ String ]
Only return results matching given
adgroup_labels
values.filter_adgroup_name
[ String ]
Only return results matching given
adgroup_name
values.filter_adgroup_status
[ AdgroupStatus ]
Only return results matching given
adgroup_status
values.filter_adspert_account_id
[ Integer ]
Only return results matching given
adspert_account_id
values.filter_adspert_adgroup_id
[ CompositeID ]
Only return results matching given
adspert_adgroup_id
values.filter_adspert_campaign_id
[ CompositeID ]
Only return results matching given
adspert_campaign_id
values.filter_adspert_portfolio_id
[ CompositeID ]
Only return results matching given
adspert_portfolio_id
values.filter_amz_portfolio_name
[ String ]
Only return results matching given
amz_portfolio_name
values.filter_amz_product_ads_match_ratio_ge
Float
Only return results where
amz_product_ads_match_ratio
is equal or greater than this value.filter_amz_product_ads_match_ratio_le
Float
Only return results where
amz_product_ads_match_ratio
is equal or lower than this value.filter_amz_product_ads_matches
[ Integer ]
Only return results matching given
amz_product_ads_matches
values.filter_amz_product_ads_matches_ge
Integer
Only return results where
amz_product_ads_matches
is equal or greater than this value.filter_amz_product_ads_matches_le
Integer
Only return results where
amz_product_ads_matches
is equal or lower than this value.filter_amz_product_ads_total
[ Integer ]
Only return results matching given
amz_product_ads_total
values.filter_amz_product_ads_total_ge
Integer
Only return results where
amz_product_ads_total
is equal or greater than this value.filter_amz_product_ads_total_le
Integer
Only return results where
amz_product_ads_total
is equal or lower than this value.filter_campaign_eby_marketplace_id
[ String ]
Only return results matching given
campaign_eby_marketplace_id
values.filter_campaign_labels
[ String ]
Only return results matching given
campaign_labels
values.filter_campaign_name
[ String ]
Only return results matching given
campaign_name
values.filter_campaign_optimization_support
Only return results matching given
campaign_optimization_support
values.filter_campaign_optimization_type
[ OptimizationType ]
Only return results matching given
campaign_optimization_type
values.filter_campaign_optimize
[ Boolean ]
Only return results matching given
campaign_optimize
values.filter_campaign_status
[ CampaignStatus ]
Only return results matching given
campaign_status
values.filter_campaign_type
[ CampaignType ]
Only return results matching given
campaign_type
values.filter_performance_group_enabled
[ Boolean ]
Only return results matching given
performance_group_enabled
values.filter_performance_group_goal_types
Only return results matching given
performance_group_goal_types
values.filter_performance_group_id
[ Integer ]
Only return results matching given
performance_group_id
values.filter_performance_group_name
[ String ]
Only return results matching given
performance_group_name
values.filter_performance_group_optimization_type
[ OptimizationType ]
Only return results matching given
performance_group_optimization_type
values.search_fields
Fields that should be searched using the
search_term
.search_term
String
Search term used to search the
search_fields
.search_account_id
String
Only return results where
account_id
matches the given string.search_account_name
String
Only return results where
account_name
matches the given string.search_account_tags_user
String
Only return results where
account_tags_user
matches the given string.search_adgroup_id
String
Only return results where
adgroup_id
matches the given string.search_adgroup_labels
String
Only return results where
adgroup_labels
matches the given string.search_adgroup_name
String
Only return results where
adgroup_name
matches the given string.search_adspert_account_id
String
Only return results where
adspert_account_id
matches the given string.search_amz_portfolio_id
String
Only return results where
amz_portfolio_id
matches the given string.search_amz_portfolio_name
String
Only return results where
amz_portfolio_name
matches the given string.search_campaign_id
String
Only return results where
campaign_id
matches the given string.search_campaign_labels
String
Only return results where
campaign_labels
matches the given string.search_campaign_name
String
Only return results where
campaign_name
matches the given string.search_performance_group_id
String
Only return results where
performance_group_id
matches the given string.search_performance_group_name
String
Only return results where
performance_group_name
matches the given string.sort_account_id
Sort results by
account_id
.sort_account_is_demo
Sort results by
account_is_demo
.sort_account_name
Sort results by
account_name
.sort_account_optimize
Sort results by
account_optimize
.sort_account_platform
Sort results by
account_platform
.sort_adgroup_id
Sort results by
adgroup_id
.sort_adgroup_name
Sort results by
adgroup_name
.sort_adgroup_status
Sort results by
adgroup_status
.sort_adspert_account_id
Sort results by
adspert_account_id
.sort_adspert_adgroup_id
Sort results by
adspert_adgroup_id
.sort_adspert_campaign_id
Sort results by
adspert_campaign_id
.sort_adspert_portfolio_id
Sort results by
adspert_portfolio_id
.sort_amz_portfolio_id
Sort results by
amz_portfolio_id
.sort_amz_portfolio_name
Sort results by
amz_portfolio_name
.sort_amz_product_ads_match_ratio
Sort results by
amz_product_ads_match_ratio
.sort_amz_product_ads_matches
Sort results by
amz_product_ads_matches
.sort_amz_product_ads_total
Sort results by
amz_product_ads_total
.sort_campaign_eby_marketplace_id
Sort results by
campaign_eby_marketplace_id
.sort_campaign_id
Sort results by
campaign_id
.sort_campaign_name
Sort results by
campaign_name
.sort_campaign_optimization_support
Sort results by
campaign_optimization_support
.sort_campaign_optimization_type
Sort results by
campaign_optimization_type
.sort_campaign_optimize
Sort results by
campaign_optimize
.sort_campaign_status
Sort results by
campaign_status
.sort_campaign_type
Sort results by
campaign_type
.sort_destination_enabled
Sort results by
destination_enabled
.sort_performance_group_enabled
Sort results by
performance_group_enabled
.sort_performance_group_goal_types
Sort results by
performance_group_goal_types
.sort_performance_group_id
Sort results by
performance_group_id
.sort_performance_group_name
Sort results by
performance_group_name
.sort_performance_group_optimization_type
Sort results by
performance_group_optimization_type
.offset
Integer
Start index for result list.
Default: 0
Min value: 0
limit
Integer
Maximum number of results to return. The maximum allowed value depends on the response media type (10000 for JSON and 100000 for tabular formats like CSV).
Default: 10
Min value: 1
rule_type_id
Integer
Type of the rule to get the destination adgroups for.
If
rule_type_id
is specified,rule_adspert_adgroup_id
must be included as well.rule_adspert_adgroup_id
Required when
rule_type_id
is set.Composite ID specification:
{adspert_account_id}:{adgroup_id}
proposal_id
Id of the proposal to get the destination adgroups for.
If
proposal_id
is specified , none of therule_
prefixed query params should be included.Response Data (object list, json or csv or xlsx)
Name
Type
Description
adspert_account_id
searchable
Integer
Adspert internal ID of the advertising account
account_id
searchable
String
Ad platform specific ID of an advertising account.
account_name
searchable
String
account_platform
The account’s advertising platform.
account_optimize
Boolean
If optimization by Adspert is enabled for this account.
account_tags_user
searchable
[ String ]
account_is_demo
Boolean
If the account is a generated account for demonstration purposes.
Demo accounts have no counterpart in the ad platform.
performance_group_id
searchable
Integer
Unique ID of the performance group
performance_group_name
searchable
String
Unique name of the performance group.
performance_group_enabled
Boolean
performance_group_optimization_type
Optimization type of the performance group.
Only campaigns of the same optimization type can be added to a given performance group.
performance_group_goals
[ Object ]
List of performance group goals
⤷
goal_type
Type of the performance group goal
⤷
goal_value
Float
Value of the performance group goal.
goal_value
should beNULL
ifgoal_type
isPROFIT-MAXIMIZATION
.goal_value
should be a ratio (> 0) ifgoal_type
isROAS
,CRR
andROI
,goal_value
should be specified in micros and be larger than 10000 ifgoal_type
isCOST-PER-DAY
,COST-PER-CONVERSION
andCOST-PER-CLICK
.⤷
goal_currency
Currency of the performance group goal.
Currency is required for
COST-PER-DAY
,COST-PER-CONVERSION
andCOST-PER-CLICK
goals.⤷
goal_micros
Value for
COST-PER-DAY
,COST-PER-CONVERSION
andCOST-PER-CLICK
goals.Same as
goal_value
, but in a properly typed field for easier client-side handling and improved representation in tabular response data like CSV.⤷
goal_ratio
Float
Value for
ROAS
,CRR
andROI
goals.Same as
goal_value
, but in a properly typed field for easier client-side handling and improved representation in tabular response data like CSV.performance_group_goal_types
List of performance group goal types
adspert_portfolio_id
Adspert internal ID of Amazon portfolio.
Composite ID specification:
{adspert_account_id}:{portfolio_id}
amz_portfolio_id
searchable
amz_portfolio_name
searchable
String
adspert_campaign_id
Adspert internal ID of the campaign.
Composite ID specification:
{adspert_account_id}:{campaign_id}
campaign_id
searchable
campaign_name
searchable
String
campaign_type
campaign_eby_marketplace_id
String
campaign_status
campaign_optimize
Boolean
campaign_optimization_type
campaign_optimization_support
campaign_labels
searchable
[ String ]
adspert_adgroup_id
Adspert internal ID of the adgroup.
Composite ID specification:
{adspert_account_id}:{adgroup_id}
adgroup_id
searchable
adgroup_name
searchable
String
adgroup_status
adgroup_labels
searchable
[ String ]
amz_product_ads_matches
Integer
Number of shared unique product ads between source and target AdGroups.
NULL if any of the two AdGroups are not auto/manual SP.
amz_product_ads_total
Integer
Number of total unique product ads between source and target AdGroups.
NULL if any of the two AdGroups are not auto/manual SP.
amz_product_ads_match_ratio
Float
Ratio of shared and total unique product ads between source and target AdGroups.
product_ads_matches
/product_ads_total
NULL if any of the two AdGroups are not auto/manual SP.
destination_options
[ Object ]
Destination options for each combination of
match_type
andnegative
flag.⤷
match_type
Keyword match type.
NULL
for rules/proposals wherecriterion_type
is notKEYWORD
.⤷
negative
Boolean
Is the criterion negative?
⤷
warnings
[ Object ]
Destination warnings.
Lack of warnings means that the given option can be used as a destination in the requested proposal / rule.
⤷
warning_type
Destination warning type.
⤷
context
Dict
Extra information about the warning.
Not all warning types support this extra information.
⤷
critical
Boolean
Is the warning critical?
Critical warnings mean that the destination cannot be created.
Non-critical warnings allow the destination to be created and simply serve as extra information about potential isues with the destination.
destination_enabled
Boolean
Indicates if the destination is enabled. This can only be the case if at least one destination option has no critical warning.
is_limited_selection
Boolean
Indicates if we had to limit the number of AdGroups that we are validating.
Example
GET /v3/customers/7027038674/criterion-addition/destination-adgroups?sort_adgroup_status=-6&filter_amz_product_ads_match_ratio_le=4.44&filter_campaign_labels=ipsum+dolor HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl -i -X GET 'https://api.adspert.net/v3/customers/7027038674/criterion-addition/destination-adgroups?sort_adgroup_status=-6&filter_amz_product_ads_match_ratio_le=4.44&filter_campaign_labels=ipsum+dolor' -H "Accept: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
http 'https://api.adspert.net/v3/customers/7027038674/criterion-addition/destination-adgroups?sort_adgroup_status=-6&filter_amz_product_ads_match_ratio_le=4.44&filter_campaign_labels=ipsum+dolor' Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.get('https://api.adspert.net/v3/customers/7027038674/criterion-addition/destination-adgroups?sort_adgroup_status=-6&filter_amz_product_ads_match_ratio_le=4.44&filter_campaign_labels=ipsum+dolor', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": [ { "adspert_account_id": 123, "account_id": "amet lorem", "account_name": "vehicula ipsum", "account_platform": "AMAZON", "account_optimize": true, "account_tags_user": [ "vehicula amet" ], "account_is_demo": true, "performance_group_id": "1245", "performance_group_name": "dolor sit", "performance_group_enabled": true, "performance_group_optimization_type": "CLICK", "performance_group_goals": [ { "goal_type": "CLICKS-PER-DAY", "goal_value": 1.41, "goal_currency": "AED", "goal_micros": 6300000, "goal_ratio": 8.77 } ], "performance_group_goal_types": [ "CLICKS-PER-DAY" ], "adspert_portfolio_id": "123:9999", "amz_portfolio_id": "9999", "amz_portfolio_name": "elit adlora", "adspert_campaign_id": "123:5555", "campaign_id": "5555", "campaign_name": "sit ipsum", "campaign_type": "AMAZON-SPONSORED-BRANDS", "campaign_eby_marketplace_id": "amet pariatur", "campaign_status": "ACTIVE", "campaign_optimize": true, "campaign_optimization_type": "CLICK", "campaign_optimization_support": "SUPPORTED", "campaign_labels": [ "ipsum dolor" ], "adspert_adgroup_id": "123:777", "adgroup_id": "777", "adgroup_name": "tucan lorem", "adgroup_status": "ACTIVE", "adgroup_labels": [ "elit ipsum" ], "amz_product_ads_matches": 4496014026, "amz_product_ads_total": 2907851652, "amz_product_ads_match_ratio": 10.69, "destination_options": [ { "match_type": "BROAD", "negative": true, "warnings": [ { "warning_type": "ACCOUNT-TOO-MANY-ADGROUPS", "context": { "adlora pariatur": 1 }, "critical": true } ] } ], "destination_enabled": true, "is_limited_selection": true } ], "meta": { "pagination": { "offset": 0, "limit": 10, "total": 74, "sort": { "adspert_account_id": 1 } } } }
DestinationTypeCollection
GET
- GET /v3/customers/(customer_id: int)/criterion-addition/destination-types
Get rule / proposal destination types.
Query Params
Name
Type
Description
include
Fields to include in response data.
exclude
Fields to exclude in response data.
rule_type_id
Integer
Type of the rule to get the destination types for.
If
rule_type_id
is specified,rule_level
must be included as well.rule_level
Level of the rule to get the destination types for.
If set to
ACCOUNT
,rule_adspert_account_id
must be specified.If set to
CAMPAIGN
,rule_adspert_campaign_id
must be specified.If set to
ADGROUP
,rule_adspert_adgroup_id
must be specified.rule_adspert_account_id
Integer
Required when
rule_level
is set toACCOUNT
.rule_adspert_campaign_id
Required when
rule_level
is set toCAMPAIGN
.Composite ID specification:
{adspert_account_id}:{campaign_id}
rule_adspert_adgroup_id
Required when
rule_level
is set toADGROUP
.Composite ID specification:
{adspert_account_id}:{adgroup_id}
proposal_id
Id of the proposal to get the destination types for.
If
proposal_id
is specified , none of therule_
prefixed query params should be included.Response Data (object list, json or csv or xlsx)
Name
Type
Description
destination_type
Type of rule / proposal destination.
allowed
Boolean
Is the destination type allowed for the requested rule / proposal?
Checking
options
can be skipped if allowed` is set tofalse
, as all of them will be marked as not allowed.destination_options
[ Object ]
Destination options for each combination of
match_type
andnegative
flag.⤷
match_type
Keyword match type.
NULL
for rules/proposals wherecriterion_type
is notKEYWORD
.⤷
negative
Boolean
Is the criterion negative?
⤷
warnings
[ Object ]
Destination warnings.
Lack of warnings means that the given option can be used as a destination in the requested proposal / rule.
⤷
warning_type
Destination warning type.
⤷
context
Dict
Extra information about the warning.
Not all warning types support this extra information.
⤷
critical
Boolean
Is the warning critical?
Critical warnings mean that the destination cannot be created.
Non-critical warnings allow the destination to be created and simply serve as extra information about potential isues with the destination.
Example
GET /v3/customers/7027038674/criterion-addition/destination-types?rule_adspert_adgroup_id=123%3A777&proposal_id=55669895173420790989137281&include=ipsum.amet HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl -i -X GET 'https://api.adspert.net/v3/customers/7027038674/criterion-addition/destination-types?rule_adspert_adgroup_id=123%3A777&proposal_id=55669895173420790989137281&include=ipsum.amet' -H "Accept: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
http 'https://api.adspert.net/v3/customers/7027038674/criterion-addition/destination-types?rule_adspert_adgroup_id=123%3A777&proposal_id=55669895173420790989137281&include=ipsum.amet' Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.get('https://api.adspert.net/v3/customers/7027038674/criterion-addition/destination-types?rule_adspert_adgroup_id=123%3A777&proposal_id=55669895173420790989137281&include=ipsum.amet', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": [ { "destination_type": "AMAZON-CREATE-BRAND-KEYWORD-ADGROUP", "allowed": true, "destination_options": [ { "match_type": "BROAD", "negative": true, "warnings": [ { "warning_type": "ACCOUNT-TOO-MANY-ADGROUPS", "context": { "adlora pariatur": 1 }, "critical": true } ] } ] } ], "meta": {} }
Product Ad Sync
ProductAdSyncTargetsCollection
GET
- GET /v3/customers/(customer_id: int)/product-ax/sync-targets
Get product ad sync targets.
Query Params
Name
Type
Description
include
Fields to include in response data.
exclude
Fields to exclude in response data.
filter_amz_product_ads_match_ratio_le
Float
Only return results where
amz_product_ads_match_ratio
is equal or lower than this value.filter_amz_product_ads_match_ratio_ge
Float
Only return results where
amz_product_ads_match_ratio
is equal or greater than this value.filter_account_currency
[ String ]
Only return results matching given
account_currency
values.filter_account_id
[ String ]
Only return results matching given
account_id
values.filter_account_is_demo
[ Boolean ]
Only return results matching given
account_is_demo
values.filter_account_name
[ String ]
Only return results matching given
account_name
values.filter_account_optimize
[ Boolean ]
Only return results matching given
account_optimize
values.filter_account_platform
[ AdPlatform ]
Only return results matching given
account_platform
values.filter_account_tags_user
[ String ]
Only return results matching given
account_tags_user
values.filter_adgroup_labels
[ String ]
Only return results matching given
adgroup_labels
values.filter_adgroup_name
[ String ]
Only return results matching given
adgroup_name
values.filter_adgroup_status
[ AdgroupStatus ]
Only return results matching given
adgroup_status
values.filter_adspert_account_id
[ Integer ]
Only return results matching given
adspert_account_id
values.filter_adspert_adgroup_id
[ CompositeID ]
Only return results matching given
adspert_adgroup_id
values.filter_adspert_campaign_id
[ CompositeID ]
Only return results matching given
adspert_campaign_id
values.filter_adspert_portfolio_id
[ CompositeID ]
Only return results matching given
adspert_portfolio_id
values.filter_amz_portfolio_name
[ String ]
Only return results matching given
amz_portfolio_name
values.filter_campaign_eby_marketplace_id
[ String ]
Only return results matching given
campaign_eby_marketplace_id
values.filter_campaign_labels
[ String ]
Only return results matching given
campaign_labels
values.filter_campaign_name
[ String ]
Only return results matching given
campaign_name
values.filter_campaign_optimization_support
Only return results matching given
campaign_optimization_support
values.filter_campaign_optimization_type
[ OptimizationType ]
Only return results matching given
campaign_optimization_type
values.filter_campaign_optimize
[ Boolean ]
Only return results matching given
campaign_optimize
values.filter_campaign_type
[ CampaignType ]
Only return results matching given
campaign_type
values.filter_performance_group_enabled
[ Boolean ]
Only return results matching given
performance_group_enabled
values.filter_performance_group_goal_types
Only return results matching given
performance_group_goal_types
values.filter_performance_group_id
[ Integer ]
Only return results matching given
performance_group_id
values.filter_performance_group_name
[ String ]
Only return results matching given
performance_group_name
values.filter_performance_group_optimization_type
[ OptimizationType ]
Only return results matching given
performance_group_optimization_type
values.filter_target_adgroup_labels
[ String ]
Only return results matching given
targets.adgroup_labels
values.filter_target_adgroup_name
[ String ]
Only return results matching given
targets.adgroup_name
values.filter_target_adgroup_status
[ AdgroupStatus ]
Only return results matching given
targets.adgroup_status
values.filter_target_adspert_adgroup_id
[ CompositeID ]
Only return results matching given
targets.adspert_adgroup_id
values.filter_target_adspert_campaign_id
[ CompositeID ]
Only return results matching given
targets.adspert_campaign_id
values.filter_target_adspert_portfolio_id
[ CompositeID ]
Only return results matching given
targets.adspert_portfolio_id
values.filter_target_amz_portfolio_name
[ String ]
Only return results matching given
targets.amz_portfolio_name
values.filter_target_amz_product_ads_match_ratio_ge
Float
Only return results where
targets.amz_product_ads_match_ratio
is equal or greater than this value.filter_target_amz_product_ads_match_ratio_le
Float
Only return results where
targets.amz_product_ads_match_ratio
is equal or lower than this value.filter_target_amz_product_ads_matches
[ Integer ]
Only return results matching given
targets.amz_product_ads_matches
values.filter_target_amz_product_ads_matches_ge
Integer
Only return results where
targets.amz_product_ads_matches
is equal or greater than this value.filter_target_amz_product_ads_matches_le
Integer
Only return results where
targets.amz_product_ads_matches
is equal or lower than this value.filter_target_amz_product_ads_total
[ Integer ]
Only return results matching given
targets.amz_product_ads_total
values.filter_target_amz_product_ads_total_ge
Integer
Only return results where
targets.amz_product_ads_total
is equal or greater than this value.filter_target_amz_product_ads_total_le
Integer
Only return results where
targets.amz_product_ads_total
is equal or lower than this value.filter_target_campaign_eby_marketplace_id
[ String ]
Only return results matching given
targets.campaign_eby_marketplace_id
values.filter_target_campaign_labels
[ String ]
Only return results matching given
targets.campaign_labels
values.filter_target_campaign_name
[ String ]
Only return results matching given
targets.campaign_name
values.filter_target_campaign_optimization_support
Only return results matching given
targets.campaign_optimization_support
values.filter_target_campaign_optimization_type
[ OptimizationType ]
Only return results matching given
targets.campaign_optimization_type
values.filter_target_campaign_optimize
[ Boolean ]
Only return results matching given
targets.campaign_optimize
values.filter_target_campaign_type
[ CampaignType ]
Only return results matching given
targets.campaign_type
values.filter_target_performance_group_enabled
[ Boolean ]
Only return results matching given
targets.performance_group_enabled
values.filter_target_performance_group_goal_types
Only return results matching given
targets.performance_group_goal_types
values.filter_target_performance_group_id
[ Integer ]
Only return results matching given
targets.performance_group_id
values.filter_target_performance_group_name
[ String ]
Only return results matching given
targets.performance_group_name
values.filter_target_performance_group_optimization_type
[ OptimizationType ]
Only return results matching given
targets.performance_group_optimization_type
values.filter_target_read_only
[ Boolean ]
Only return results matching given
targets.read_only
values.filter_target_sync_mode
[ ApiEnumSyncMode ]
Only return results matching given
targets.sync_mode
values.search_fields
Fields that should be searched using the
search_term
.search_term
String
Search term used to search the
search_fields
.search_account_id
String
Only return results where
account_id
matches the given string.search_account_name
String
Only return results where
account_name
matches the given string.search_account_tags_user
String
Only return results where
account_tags_user
matches the given string.search_adgroup_id
String
Only return results where
adgroup_id
matches the given string.search_adgroup_labels
String
Only return results where
adgroup_labels
matches the given string.search_adgroup_name
String
Only return results where
adgroup_name
matches the given string.search_adspert_account_id
String
Only return results where
adspert_account_id
matches the given string.search_amz_portfolio_id
String
Only return results where
amz_portfolio_id
matches the given string.search_amz_portfolio_name
String
Only return results where
amz_portfolio_name
matches the given string.search_campaign_id
String
Only return results where
campaign_id
matches the given string.search_campaign_labels
String
Only return results where
campaign_labels
matches the given string.search_campaign_name
String
Only return results where
campaign_name
matches the given string.search_performance_group_id
String
Only return results where
performance_group_id
matches the given string.search_performance_group_name
String
Only return results where
performance_group_name
matches the given string.search_target_adgroup_id
String
Only return results where
targets.adgroup_id
matches the given string.search_target_adgroup_labels
String
Only return results where
targets.adgroup_labels
matches the given string.search_target_adgroup_name
String
Only return results where
targets.adgroup_name
matches the given string.search_target_amz_portfolio_id
String
Only return results where
targets.amz_portfolio_id
matches the given string.search_target_amz_portfolio_name
String
Only return results where
targets.amz_portfolio_name
matches the given string.search_target_campaign_id
String
Only return results where
targets.campaign_id
matches the given string.search_target_campaign_labels
String
Only return results where
targets.campaign_labels
matches the given string.search_target_campaign_name
String
Only return results where
targets.campaign_name
matches the given string.search_target_performance_group_id
String
Only return results where
targets.performance_group_id
matches the given string.search_target_performance_group_name
String
Only return results where
targets.performance_group_name
matches the given string.sort_account_currency
Sort results by
account_currency
.sort_account_id
Sort results by
account_id
.sort_account_is_demo
Sort results by
account_is_demo
.sort_account_name
Sort results by
account_name
.sort_account_optimize
Sort results by
account_optimize
.sort_account_platform
Sort results by
account_platform
.sort_adgroup_id
Sort results by
adgroup_id
.sort_adgroup_name
Sort results by
adgroup_name
.sort_adgroup_status
Sort results by
adgroup_status
.sort_adspert_account_id
Sort results by
adspert_account_id
.sort_adspert_adgroup_id
Sort results by
adspert_adgroup_id
.sort_adspert_campaign_id
Sort results by
adspert_campaign_id
.sort_adspert_portfolio_id
Sort results by
adspert_portfolio_id
.sort_amz_portfolio_id
Sort results by
amz_portfolio_id
.sort_amz_portfolio_name
Sort results by
amz_portfolio_name
.sort_campaign_eby_marketplace_id
Sort results by
campaign_eby_marketplace_id
.sort_campaign_id
Sort results by
campaign_id
.sort_campaign_name
Sort results by
campaign_name
.sort_campaign_optimization_support
Sort results by
campaign_optimization_support
.sort_campaign_optimization_type
Sort results by
campaign_optimization_type
.sort_campaign_optimize
Sort results by
campaign_optimize
.sort_campaign_type
Sort results by
campaign_type
.sort_performance_group_enabled
Sort results by
performance_group_enabled
.sort_performance_group_goal_types
Sort results by
performance_group_goal_types
.sort_performance_group_id
Sort results by
performance_group_id
.sort_performance_group_name
Sort results by
performance_group_name
.sort_performance_group_optimization_type
Sort results by
performance_group_optimization_type
.sort_target_amz_product_ads_match_ratio
Sort results by
targets.amz_product_ads_match_ratio
.sort_target_amz_product_ads_matches
Sort results by
targets.amz_product_ads_matches
.sort_target_amz_product_ads_total
Sort results by
targets.amz_product_ads_total
.sort_target_read_only
Sort results by
targets.read_only
.sort_target_sync_mode
Sort results by
targets.sync_mode
.offset
Integer
Start index for result list.
Default: 0
Min value: 0
limit
Integer
Maximum number of results to return. The maximum allowed value depends on the response media type (10000 for JSON and 100000 for tabular formats like CSV).
Default: 10
Min value: 1
Response Data (object list, json or csv or xlsx)
Name
Type
Description
adspert_account_id
searchable
Integer
Adspert internal ID of the advertising account
account_id
searchable
String
Ad platform specific ID of an advertising account.
account_name
searchable
String
account_platform
The account’s advertising platform.
account_optimize
Boolean
If optimization by Adspert is enabled for this account.
account_currency
String
account_is_demo
Boolean
If the account is a generated account for demonstration purposes.
Demo accounts have no counterpart in the ad platform.
account_tags_user
searchable
[ String ]
adspert_adgroup_id
Adspert internal ID of the adgroup.
Composite ID specification:
{adspert_account_id}:{adgroup_id}
adgroup_id
searchable
adgroup_name
searchable
String
adgroup_status
adgroup_labels
searchable
[ String ]
adspert_campaign_id
Adspert internal ID of the campaign.
Composite ID specification:
{adspert_account_id}:{campaign_id}
campaign_id
searchable
campaign_name
searchable
String
campaign_type
campaign_optimize
Boolean
campaign_labels
searchable
[ String ]
campaign_optimization_type
campaign_optimization_support
campaign_eby_marketplace_id
String
performance_group_id
searchable
Integer
Unique ID of the performance group
performance_group_name
searchable
String
Unique name of the performance group.
performance_group_optimization_type
Optimization type of the performance group.
Only campaigns of the same optimization type can be added to a given performance group.
performance_group_enabled
Boolean
performance_group_goals
[ Object ]
List of performance group goals
⤷
goal_type
Type of the performance group goal
⤷
goal_value
Float
Value of the performance group goal.
goal_value
should beNULL
ifgoal_type
isPROFIT-MAXIMIZATION
.goal_value
should be a ratio (> 0) ifgoal_type
isROAS
,CRR
andROI
,goal_value
should be specified in micros and be larger than 10000 ifgoal_type
isCOST-PER-DAY
,COST-PER-CONVERSION
andCOST-PER-CLICK
.⤷
goal_currency
Currency of the performance group goal.
Currency is required for
COST-PER-DAY
,COST-PER-CONVERSION
andCOST-PER-CLICK
goals.⤷
goal_micros
Value for
COST-PER-DAY
,COST-PER-CONVERSION
andCOST-PER-CLICK
goals.Same as
goal_value
, but in a properly typed field for easier client-side handling and improved representation in tabular response data like CSV.⤷
goal_ratio
Float
Value for
ROAS
,CRR
andROI
goals.Same as
goal_value
, but in a properly typed field for easier client-side handling and improved representation in tabular response data like CSV.performance_group_goal_types
List of performance group goal types
adspert_portfolio_id
Adspert internal ID of Amazon portfolio.
Composite ID specification:
{adspert_account_id}:{portfolio_id}
amz_portfolio_id
searchable
amz_portfolio_name
searchable
String
targets
[ Object ]
Details about the target AdGroups which the Product Ads are being synced to.
[]
if the AdGroup isn’t yet being synced.⤷
adgroup_id
searchable
⤷
adspert_adgroup_id
Adspert internal ID of the adgroup.
Composite ID specification:
{adspert_account_id}:{adgroup_id}
⤷
adgroup_name
searchable
String
When including this field in search_fields, use
targets.adgroup_name
⤷
adgroup_status
⤷
adgroup_labels
searchable
[ String ]
When including this field in search_fields, use
targets.adgroup_labels
⤷
adspert_campaign_id
Adspert internal ID of the campaign.
Composite ID specification:
{adspert_account_id}:{campaign_id}
⤷
campaign_id
searchable
⤷
campaign_name
searchable
String
When including this field in search_fields, use
targets.campaign_name
⤷
campaign_type
⤷
campaign_optimize
Boolean
⤷
campaign_labels
searchable
[ String ]
When including this field in search_fields, use
targets.campaign_labels
⤷
campaign_optimization_type
⤷
campaign_optimization_support
⤷
campaign_eby_marketplace_id
String
⤷
performance_group_id
searchable
Integer
Unique ID of the performance group
⤷
performance_group_name
searchable
String
Unique name of the performance group.
When including this field in search_fields, use
targets.performance_group_name
⤷
performance_group_optimization_type
Optimization type of the performance group.
Only campaigns of the same optimization type can be added to a given performance group.
⤷
performance_group_enabled
Boolean
⤷
performance_group_goals
[ Object ]
List of performance group goals
⤷
goal_type
Type of the performance group goal
⤷
goal_value
Float
Value of the performance group goal.
goal_value
should beNULL
ifgoal_type
isPROFIT-MAXIMIZATION
.goal_value
should be a ratio (> 0) ifgoal_type
isROAS
,CRR
andROI
,goal_value
should be specified in micros and be larger than 10000 ifgoal_type
isCOST-PER-DAY
,COST-PER-CONVERSION
andCOST-PER-CLICK
.⤷
goal_currency
Currency of the performance group goal.
Currency is required for
COST-PER-DAY
,COST-PER-CONVERSION
andCOST-PER-CLICK
goals.⤷
goal_micros
Value for
COST-PER-DAY
,COST-PER-CONVERSION
andCOST-PER-CLICK
goals.Same as
goal_value
, but in a properly typed field for easier client-side handling and improved representation in tabular response data like CSV.⤷
goal_ratio
Float
Value for
ROAS
,CRR
andROI
goals.Same as
goal_value
, but in a properly typed field for easier client-side handling and improved representation in tabular response data like CSV.⤷
performance_group_goal_types
List of performance group goal types
⤷
adspert_portfolio_id
Adspert internal ID of Amazon portfolio.
Composite ID specification:
{adspert_account_id}:{portfolio_id}
⤷
amz_portfolio_id
searchable
⤷
amz_portfolio_name
searchable
String
When including this field in search_fields, use
targets.amz_portfolio_name
⤷
amz_product_ads_matches
Integer
Number of shared unique product ads between source and target AdGroups.
NULL if any of the two AdGroups are not auto/manual SP.
⤷
amz_product_ads_total
Integer
Number of total unique product ads between source and target AdGroups.
NULL if any of the two AdGroups are not auto/manual SP.
⤷
amz_product_ads_match_ratio
Float
Ratio of shared and total unique product ads between source and target AdGroups.
product_ads_matches
/product_ads_total
NULL if any of the two AdGroups are not auto/manual SP.
⤷
sync_mode
Mode of the product ad sync.
⤷
read_only
Boolean
Indicates if the target AdGroup can be modified.
Example
GET /v3/customers/7027038674/product-ax/sync-targets?sort_campaign_optimization_support=0&filter_target_campaign_eby_marketplace_id=amet+pariatur&filter_target_adgroup_name=tucan+lorem HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl -i -X GET 'https://api.adspert.net/v3/customers/7027038674/product-ax/sync-targets?sort_campaign_optimization_support=0&filter_target_campaign_eby_marketplace_id=amet+pariatur&filter_target_adgroup_name=tucan+lorem' -H "Accept: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
http 'https://api.adspert.net/v3/customers/7027038674/product-ax/sync-targets?sort_campaign_optimization_support=0&filter_target_campaign_eby_marketplace_id=amet+pariatur&filter_target_adgroup_name=tucan+lorem' Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.get('https://api.adspert.net/v3/customers/7027038674/product-ax/sync-targets?sort_campaign_optimization_support=0&filter_target_campaign_eby_marketplace_id=amet+pariatur&filter_target_adgroup_name=tucan+lorem', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": [ { "adspert_account_id": 123, "account_id": "amet lorem", "account_name": "vehicula ipsum", "account_platform": "AMAZON", "account_optimize": true, "account_currency": "ipsum adlora", "account_is_demo": true, "account_tags_user": [ "vehicula amet" ], "adspert_adgroup_id": "123:777", "adgroup_id": "777", "adgroup_name": "tucan lorem", "adgroup_status": "ACTIVE", "adgroup_labels": [ "elit ipsum" ], "adspert_campaign_id": "123:5555", "campaign_id": "5555", "campaign_name": "sit ipsum", "campaign_type": "AMAZON-SPONSORED-BRANDS", "campaign_optimize": true, "campaign_labels": [ "ipsum dolor" ], "campaign_optimization_type": "CLICK", "campaign_optimization_support": "SUPPORTED", "campaign_eby_marketplace_id": "amet pariatur", "performance_group_id": "1245", "performance_group_name": "dolor sit", "performance_group_optimization_type": "CLICK", "performance_group_enabled": true, "performance_group_goals": [ { "goal_type": "CLICKS-PER-DAY", "goal_value": 1.41, "goal_currency": "AED", "goal_micros": 6300000, "goal_ratio": 8.77 } ], "performance_group_goal_types": [ "CLICKS-PER-DAY" ], "adspert_portfolio_id": "123:9999", "amz_portfolio_id": "9999", "amz_portfolio_name": "elit adlora", "targets": [ { "adgroup_id": "777", "adspert_adgroup_id": "123:777", "adgroup_name": "tucan lorem", "adgroup_status": "ACTIVE", "adgroup_labels": [ "elit ipsum" ], "adspert_campaign_id": "123:5555", "campaign_id": "5555", "campaign_name": "sit ipsum", "campaign_type": "AMAZON-SPONSORED-BRANDS", "campaign_optimize": true, "campaign_labels": [ "ipsum dolor" ], "campaign_optimization_type": "CLICK", "campaign_optimization_support": "SUPPORTED", "campaign_eby_marketplace_id": "amet pariatur", "performance_group_id": "1245", "performance_group_name": "dolor sit", "performance_group_optimization_type": "CLICK", "performance_group_enabled": true, "performance_group_goals": [ { "goal_type": "CLICKS-PER-DAY", "goal_value": 1.41, "goal_currency": "AED", "goal_micros": 6300000, "goal_ratio": 8.77 } ], "performance_group_goal_types": [ "CLICKS-PER-DAY" ], "adspert_portfolio_id": "123:9999", "amz_portfolio_id": "9999", "amz_portfolio_name": "elit adlora", "amz_product_ads_matches": 4496014026, "amz_product_ads_total": 2907851652, "amz_product_ads_match_ratio": 10.69, "sync_mode": "ADD-MISSING", "read_only": true } ] } ], "meta": { "pagination": { "offset": 0, "limit": 10, "total": 74, "sort": { "adspert_account_id": 1 } } } }
PUT
- PUT /v3/customers/(customer_id: int)/product-ax/sync-targets
Update/create product ad sync targets.
Request Data (object list, json or csv)
Name
Type
Description
source_adspert_adgroup_id
required
Adspert internal ID of the adgroup.
Source auto adgroup that we will sync product ads from.
Composite ID specification:
{adspert_account_id}:{adgroup_id}
target_adspert_adgroup_id
required
Adspert internal ID of the adgroup.
Target manual adgroup that we will sync product to.
Composite ID specification:
{adspert_account_id}:{adgroup_id}
sync_mode
required
Mode of the product ad sync.
Response Data (single object, json or csv or xlsx)
Name
Type
Description
created
[ Object ]
List of objects which have been created.
⤷
source_adspert_adgroup_id
See request data description.
⤷
target_adspert_adgroup_id
See request data description.
⤷
sync_mode
See request data description.
unchanged
[ Object ]
List of objects which had no effective change.
⤷
source_adspert_adgroup_id
See request data description.
⤷
target_adspert_adgroup_id
See request data description.
⤷
sync_mode
See request data description.
updated
[ Object ]
List of objects which have been updated.
⤷
source_adspert_adgroup_id
See request data description.
⤷
target_adspert_adgroup_id
See request data description.
⤷
sync_mode
See request data description.
Example
PUT /v3/customers/7027038674/product-ax/sync-targets HTTP/1.1 Host: api.adspert.net Accept: application/json Content-Type: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5... [ { "source_adspert_adgroup_id": "123:777", "target_adspert_adgroup_id": "123:777", "sync_mode": "ADD-MISSING" } ]
curl -i -X PUT https://api.adspert.net/v3/customers/7027038674/product-ax/sync-targets -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..." --data-raw '[{"source_adspert_adgroup_id": "123:777", "target_adspert_adgroup_id": "123:777", "sync_mode": "ADD-MISSING"}]'
echo '[ { "source_adspert_adgroup_id": "123:777", "sync_mode": "ADD-MISSING", "target_adspert_adgroup_id": "123:777" } ]' | http PUT https://api.adspert.net/v3/customers/7027038674/product-ax/sync-targets Accept:application/json Content-Type:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.put('https://api.adspert.net/v3/customers/7027038674/product-ax/sync-targets', headers={'Accept': 'application/json', 'Content-Type': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'}, json=[{'source_adspert_adgroup_id': '123:777', 'target_adspert_adgroup_id': '123:777', 'sync_mode': 'ADD-MISSING'}])
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": { "created": [ { "source_adspert_adgroup_id": "123:777", "target_adspert_adgroup_id": "123:777", "sync_mode": "ADD-MISSING" } ], "unchanged": [ { "source_adspert_adgroup_id": "123:777", "target_adspert_adgroup_id": "123:777", "sync_mode": "ADD-MISSING" } ], "updated": [ { "source_adspert_adgroup_id": "123:777", "target_adspert_adgroup_id": "123:777", "sync_mode": "ADD-MISSING" } ] }, "meta": {} }
DELETE
- DELETE /v3/customers/(customer_id: int)/product-ax/sync-targets
-
Request Data (object list, json or csv)
Name
Type
Description
target_adspert_adgroup_id
required
Adspert internal ID of the adgroup.
Composite ID specification:
{adspert_account_id}:{adgroup_id}
Response Data (single object, json or csv or xlsx)
Name
Type
Description
deleted
[ Object ]
List of objects which have been deleted.
⤷
target_adspert_adgroup_id
See request data description.
unknown
[ Object ]
List of objects which could not be found.
⤷
target_adspert_adgroup_id
See request data description.
Example
DELETE /v3/customers/7027038674/product-ax/sync-targets HTTP/1.1 Host: api.adspert.net Accept: application/json Content-Type: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5... [ { "target_adspert_adgroup_id": "123:777" } ]
curl -i -X DELETE https://api.adspert.net/v3/customers/7027038674/product-ax/sync-targets -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..." --data-raw '[{"target_adspert_adgroup_id": "123:777"}]'
echo '[ { "target_adspert_adgroup_id": "123:777" } ]' | http DELETE https://api.adspert.net/v3/customers/7027038674/product-ax/sync-targets Accept:application/json Content-Type:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.delete('https://api.adspert.net/v3/customers/7027038674/product-ax/sync-targets', headers={'Accept': 'application/json', 'Content-Type': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'}, json=[{'target_adspert_adgroup_id': '123:777'}])
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": { "deleted": [ { "target_adspert_adgroup_id": "123:777" } ], "unknown": [ { "target_adspert_adgroup_id": "123:777" } ] }, "meta": {} }
Performance
AccountPerformanceCollection
GET
- GET /v3/accounts/(adspert_account_id: int)/performance
-
Query Params
Name
Type
Description
include
Fields to include in response data.
exclude
Fields to exclude in response data.
filter_date_ge
required
Only return results where
date
is on or after this date.filter_date_le
required
Only return results where
date
is on or before this date.filter_adgroup_id
[ LargeInteger ]
Only return results matching given
adgroup_id
values.filter_adgroup_labels
[ String ]
Only return results matching given
adgroup_labels
values.filter_adgroup_name
[ String ]
Only return results matching given
adgroup_name
values.filter_adgroup_status
[ AdgroupStatus ]
Only return results matching given
adgroup_status
values.filter_adspert_adgroup_id
[ CompositeID ]
Only return results matching given
adspert_adgroup_id
values.filter_adspert_campaign_id
[ CompositeID ]
Only return results matching given
adspert_campaign_id
values.filter_adspert_criterion_id
[ CompositeID ]
Only return results matching given
adspert_criterion_id
values.filter_adspert_portfolio_id
[ CompositeID ]
Only return results matching given
adspert_portfolio_id
values.filter_amz_portfolio_id
[ LargeInteger ]
Only return results matching given
amz_portfolio_id
values.filter_amz_portfolio_name
[ String ]
Only return results matching given
amz_portfolio_name
values.filter_campaign_eby_marketplace_id
[ String ]
Only return results matching given
campaign_eby_marketplace_id
values.filter_campaign_id
[ LargeInteger ]
Only return results matching given
campaign_id
values.filter_campaign_labels
[ String ]
Only return results matching given
campaign_labels
values.filter_campaign_name
[ String ]
Only return results matching given
campaign_name
values.filter_campaign_optimization_support
Only return results matching given
campaign_optimization_support
values.filter_campaign_optimization_type
[ OptimizationType ]
Only return results matching given
campaign_optimization_type
values.filter_campaign_optimize
[ Boolean ]
Only return results matching given
campaign_optimize
values.filter_campaign_status
[ CampaignStatus ]
Only return results matching given
campaign_status
values.filter_campaign_type
[ CampaignType ]
Only return results matching given
campaign_type
values.filter_click_through_rate_clicks_ge
Float
Only return results where
click_through_rate_clicks
is equal or greater than this value.filter_click_through_rate_clicks_le
Float
Only return results where
click_through_rate_clicks
is equal or lower than this value.filter_click_through_rate_ge
Float
Only return results where
click_through_rate
is equal or greater than this value.filter_click_through_rate_le
Float
Only return results where
click_through_rate
is equal or lower than this value.filter_clicks
[ Integer ]
Only return results matching given
clicks
values.filter_clicks_ge
Integer
Only return results where
clicks
is equal or greater than this value.filter_clicks_le
Integer
Only return results where
clicks
is equal or lower than this value.filter_conversion_rate_adjusted_ge
Float
Only return results where
conversion_rate_adjusted
is equal or greater than this value.filter_conversion_rate_adjusted_le
Float
Only return results where
conversion_rate_adjusted
is equal or lower than this value.filter_conversion_rate_clicks_ge
Float
Only return results where
conversion_rate_clicks
is equal or greater than this value.filter_conversion_rate_clicks_le
Float
Only return results where
conversion_rate_clicks
is equal or lower than this value.filter_conversion_rate_ge
Float
Only return results where
conversion_rate
is equal or greater than this value.filter_conversion_rate_le
Float
Only return results where
conversion_rate
is equal or lower than this value.filter_conversions_adjusted_ge
Float
Only return results where
conversions_adjusted
is equal or greater than this value.filter_conversions_adjusted_le
Float
Only return results where
conversions_adjusted
is equal or lower than this value.filter_conversions_clicks_ge
Float
Only return results where
conversions_clicks
is equal or greater than this value.filter_conversions_clicks_le
Float
Only return results where
conversions_clicks
is equal or lower than this value.filter_conversions_for_revenue_adjusted_ge
Float
Only return results where
conversions_for_revenue_adjusted
is equal or greater than this value.filter_conversions_for_revenue_adjusted_le
Float
Only return results where
conversions_for_revenue_adjusted
is equal or lower than this value.filter_conversions_for_revenue_ge
Float
Only return results where
conversions_for_revenue
is equal or greater than this value.filter_conversions_for_revenue_le
Float
Only return results where
conversions_for_revenue
is equal or lower than this value.filter_conversions_ge
Float
Only return results where
conversions
is equal or greater than this value.filter_conversions_le
Float
Only return results where
conversions
is equal or lower than this value.filter_cost_for_click_ge
Only return results where
cost_for_click
is equal or greater than this value.Min value: 1000
filter_cost_for_click_le
Only return results where
cost_for_click
is equal or lower than this value.Min value: 1000
filter_cost_for_profit_ge
Only return results where
cost_for_profit
is equal or greater than this value.Min value: 1000
filter_cost_for_profit_le
Only return results where
cost_for_profit
is equal or lower than this value.Min value: 1000
filter_cost_for_revenue_ge
Only return results where
cost_for_revenue
is equal or greater than this value.Min value: 1000
filter_cost_for_revenue_le
Only return results where
cost_for_revenue
is equal or lower than this value.Min value: 1000
filter_cost_for_vcpm_ge
Only return results where
cost_for_vcpm
is equal or greater than this value.Min value: 1000
filter_cost_for_vcpm_le
Only return results where
cost_for_vcpm
is equal or lower than this value.Min value: 1000
filter_cost_ge
Only return results where
cost
is equal or greater than this value.Min value: 1000
filter_cost_le
Only return results where
cost
is equal or lower than this value.Min value: 1000
filter_cost_per_click_ge
Only return results where
cost_per_click
is equal or greater than this value.Min value: 1000
filter_cost_per_click_le
Only return results where
cost_per_click
is equal or lower than this value.Min value: 1000
filter_cost_per_conversion_adjusted_ge
Only return results where
cost_per_conversion_adjusted
is equal or greater than this value.Min value: 1000
filter_cost_per_conversion_adjusted_le
Only return results where
cost_per_conversion_adjusted
is equal or lower than this value.Min value: 1000
filter_cost_per_conversion_ge
Only return results where
cost_per_conversion
is equal or greater than this value.Min value: 1000
filter_cost_per_conversion_le
Only return results where
cost_per_conversion
is equal or lower than this value.Min value: 1000
filter_cost_per_m_view_impressions_ge
Only return results where
cost_per_m_view_impressions
is equal or greater than this value.Min value: 1000
filter_cost_per_m_view_impressions_le
Only return results where
cost_per_m_view_impressions
is equal or lower than this value.Min value: 1000
filter_cost_revenue_ratio_adjusted_ge
Float
Only return results where
cost_revenue_ratio_adjusted
is equal or greater than this value.filter_cost_revenue_ratio_adjusted_le
Float
Only return results where
cost_revenue_ratio_adjusted
is equal or lower than this value.filter_cost_revenue_ratio_clicks_ge
Float
Only return results where
cost_revenue_ratio_clicks
is equal or greater than this value.filter_cost_revenue_ratio_clicks_le
Float
Only return results where
cost_revenue_ratio_clicks
is equal or lower than this value.filter_cost_revenue_ratio_ge
Float
Only return results where
cost_revenue_ratio
is equal or greater than this value.filter_cost_revenue_ratio_le
Float
Only return results where
cost_revenue_ratio
is equal or lower than this value.filter_criterion_labels
[ String ]
Only return results matching given
criterion_labels
values.filter_criterion_match_type
Only return results matching given
criterion_match_type
values.filter_criterion_name
[ String ]
Only return results matching given
criterion_name
values.filter_criterion_negative
[ Boolean ]
Only return results matching given
criterion_negative
values.filter_criterion_status
[ CriterionStatus ]
Only return results matching given
criterion_status
values.filter_criterion_type
[ CriterionType ]
Only return results matching given
criterion_type
values.filter_impressions
[ Integer ]
Only return results matching given
impressions
values.filter_impressions_ge
Integer
Only return results where
impressions
is equal or greater than this value.filter_impressions_le
Integer
Only return results where
impressions
is equal or lower than this value.filter_performance_group_enabled
[ Boolean ]
Only return results matching given
performance_group_enabled
values.filter_performance_group_goal_types
Only return results matching given
performance_group_goal_types
values.filter_performance_group_id
[ Integer ]
Only return results matching given
performance_group_id
values.filter_performance_group_name
[ String ]
Only return results matching given
performance_group_name
values.filter_performance_group_optimization_type
[ OptimizationType ]
Only return results matching given
performance_group_optimization_type
values.filter_profit_gross_adjusted_ge
Only return results where
profit_gross_adjusted
is equal or greater than this value.Min value: 1000
filter_profit_gross_adjusted_le
Only return results where
profit_gross_adjusted
is equal or lower than this value.Min value: 1000
filter_profit_gross_ge
Only return results where
profit_gross
is equal or greater than this value.Min value: 1000
filter_profit_gross_le
Only return results where
profit_gross
is equal or lower than this value.Min value: 1000
filter_profit_net_adjusted_ge
Only return results where
profit_net_adjusted
is equal or greater than this value.Min value: 1000
filter_profit_net_adjusted_le
Only return results where
profit_net_adjusted
is equal or lower than this value.Min value: 1000
filter_profit_net_ge
Only return results where
profit_net
is equal or greater than this value.Min value: 1000
filter_profit_net_le
Only return results where
profit_net
is equal or lower than this value.Min value: 1000
filter_return_on_ad_spend_adjusted_ge
Float
Only return results where
return_on_ad_spend_adjusted
is equal or greater than this value.filter_return_on_ad_spend_adjusted_le
Float
Only return results where
return_on_ad_spend_adjusted
is equal or lower than this value.filter_return_on_ad_spend_clicks_ge
Float
Only return results where
return_on_ad_spend_clicks
is equal or greater than this value.filter_return_on_ad_spend_clicks_le
Float
Only return results where
return_on_ad_spend_clicks
is equal or lower than this value.filter_return_on_ad_spend_ge
Float
Only return results where
return_on_ad_spend
is equal or greater than this value.filter_return_on_ad_spend_le
Float
Only return results where
return_on_ad_spend
is equal or lower than this value.filter_return_on_investment_adjusted_ge
Float
Only return results where
return_on_investment_adjusted
is equal or greater than this value.filter_return_on_investment_adjusted_le
Float
Only return results where
return_on_investment_adjusted
is equal or lower than this value.filter_return_on_investment_ge
Float
Only return results where
return_on_investment
is equal or greater than this value.filter_return_on_investment_le
Float
Only return results where
return_on_investment
is equal or lower than this value.filter_revenue_adjusted_ge
Only return results where
revenue_adjusted
is equal or greater than this value.Min value: 1000
filter_revenue_adjusted_le
Only return results where
revenue_adjusted
is equal or lower than this value.Min value: 1000
filter_revenue_clicks_ge
Only return results where
revenue_clicks
is equal or greater than this value.Min value: 1000
filter_revenue_clicks_le
Only return results where
revenue_clicks
is equal or lower than this value.Min value: 1000
filter_revenue_ge
Only return results where
revenue
is equal or greater than this value.Min value: 1000
filter_revenue_le
Only return results where
revenue
is equal or lower than this value.Min value: 1000
filter_revenue_per_conversion_adjusted_ge
Only return results where
revenue_per_conversion_adjusted
is equal or greater than this value.Min value: 1000
filter_revenue_per_conversion_adjusted_le
Only return results where
revenue_per_conversion_adjusted
is equal or lower than this value.Min value: 1000
filter_revenue_per_conversion_ge
Only return results where
revenue_per_conversion
is equal or greater than this value.Min value: 1000
filter_revenue_per_conversion_le
Only return results where
revenue_per_conversion
is equal or lower than this value.Min value: 1000
filter_tos_impression_share_ge
Float
Only return results where
tos_impression_share
is equal or greater than this value.filter_tos_impression_share_le
Float
Only return results where
tos_impression_share
is equal or lower than this value.filter_view_impressions
[ Integer ]
Only return results matching given
view_impressions
values.filter_view_impressions_ge
Integer
Only return results where
view_impressions
is equal or greater than this value.filter_view_impressions_le
Integer
Only return results where
view_impressions
is equal or lower than this value.search_fields
Fields that should be searched using the
search_term
.search_term
String
Search term used to search the
search_fields
.search_adgroup_id
String
Only return results where
adgroup_id
matches the given string.search_adgroup_labels
String
Only return results where
adgroup_labels
matches the given string.search_adgroup_name
String
Only return results where
adgroup_name
matches the given string.search_amz_portfolio_id
String
Only return results where
amz_portfolio_id
matches the given string.search_amz_portfolio_name
String
Only return results where
amz_portfolio_name
matches the given string.search_campaign_id
String
Only return results where
campaign_id
matches the given string.search_campaign_labels
String
Only return results where
campaign_labels
matches the given string.search_campaign_name
String
Only return results where
campaign_name
matches the given string.search_criterion_id
String
Only return results where
criterion_id
matches the given string.search_criterion_labels
String
Only return results where
criterion_labels
matches the given string.search_criterion_name
String
Only return results where
criterion_name
matches the given string.search_performance_group_id
String
Only return results where
performance_group_id
matches the given string.search_performance_group_name
String
Only return results where
performance_group_name
matches the given string.sort_adgroup_id
Sort results by
adgroup_id
.sort_adgroup_name
Sort results by
adgroup_name
.sort_adgroup_status
Sort results by
adgroup_status
.sort_adspert_adgroup_id
Sort results by
adspert_adgroup_id
.sort_adspert_campaign_id
Sort results by
adspert_campaign_id
.sort_adspert_criterion_id
Sort results by
adspert_criterion_id
.sort_adspert_portfolio_id
Sort results by
adspert_portfolio_id
.sort_amz_portfolio_id
Sort results by
amz_portfolio_id
.sort_amz_portfolio_name
Sort results by
amz_portfolio_name
.sort_campaign_eby_marketplace_id
Sort results by
campaign_eby_marketplace_id
.sort_campaign_id
Sort results by
campaign_id
.sort_campaign_name
Sort results by
campaign_name
.sort_campaign_optimization_support
Sort results by
campaign_optimization_support
.sort_campaign_optimization_type
Sort results by
campaign_optimization_type
.sort_campaign_optimize
Sort results by
campaign_optimize
.sort_campaign_status
Sort results by
campaign_status
.sort_campaign_type
Sort results by
campaign_type
.sort_click_through_rate
Sort results by
click_through_rate
.sort_click_through_rate_clicks
Sort results by
click_through_rate_clicks
.sort_clicks
Sort results by
clicks
.sort_conversion_rate
Sort results by
conversion_rate
.sort_conversion_rate_adjusted
Sort results by
conversion_rate_adjusted
.sort_conversion_rate_clicks
Sort results by
conversion_rate_clicks
.sort_conversions
Sort results by
conversions
.sort_conversions_adjusted
Sort results by
conversions_adjusted
.sort_conversions_clicks
Sort results by
conversions_clicks
.sort_conversions_for_revenue
Sort results by
conversions_for_revenue
.sort_conversions_for_revenue_adjusted
Sort results by
conversions_for_revenue_adjusted
.sort_cost
Sort results by
cost
.sort_cost_for_click
Sort results by
cost_for_click
.sort_cost_for_profit
Sort results by
cost_for_profit
.sort_cost_for_revenue
Sort results by
cost_for_revenue
.sort_cost_for_vcpm
Sort results by
cost_for_vcpm
.sort_cost_per_click
Sort results by
cost_per_click
.sort_cost_per_conversion
Sort results by
cost_per_conversion
.sort_cost_per_conversion_adjusted
Sort results by
cost_per_conversion_adjusted
.sort_cost_per_conversion_clicks
Sort results by
cost_per_conversion_clicks
.sort_cost_per_m_view_impressions
Sort results by
cost_per_m_view_impressions
.sort_cost_revenue_ratio
Sort results by
cost_revenue_ratio
.sort_cost_revenue_ratio_adjusted
Sort results by
cost_revenue_ratio_adjusted
.sort_cost_revenue_ratio_clicks
Sort results by
cost_revenue_ratio_clicks
.sort_criterion_id
Sort results by
criterion_id
.sort_criterion_match_type
Sort results by
criterion_match_type
.sort_criterion_name
Sort results by
criterion_name
.sort_criterion_status
Sort results by
criterion_status
.sort_criterion_type
Sort results by
criterion_type
.sort_date
Sort results by
date
.sort_impressions
Sort results by
impressions
.sort_impressions_total
Sort results by
impressions_total
.sort_performance_group_enabled
Sort results by
performance_group_enabled
.sort_performance_group_goal_types
Sort results by
performance_group_goal_types
.sort_performance_group_id
Sort results by
performance_group_id
.sort_performance_group_name
Sort results by
performance_group_name
.sort_performance_group_optimization_type
Sort results by
performance_group_optimization_type
.sort_profit_gross
Sort results by
profit_gross
.sort_profit_gross_adjusted
Sort results by
profit_gross_adjusted
.sort_profit_net
Sort results by
profit_net
.sort_profit_net_adjusted
Sort results by
profit_net_adjusted
.sort_return_on_ad_spend
Sort results by
return_on_ad_spend
.sort_return_on_ad_spend_adjusted
Sort results by
return_on_ad_spend_adjusted
.sort_return_on_ad_spend_clicks
Sort results by
return_on_ad_spend_clicks
.sort_return_on_investment
Sort results by
return_on_investment
.sort_return_on_investment_adjusted
Sort results by
return_on_investment_adjusted
.sort_revenue
Sort results by
revenue
.sort_revenue_adjusted
Sort results by
revenue_adjusted
.sort_revenue_clicks
Sort results by
revenue_clicks
.sort_revenue_per_conversion
Sort results by
revenue_per_conversion
.sort_revenue_per_conversion_adjusted
Sort results by
revenue_per_conversion_adjusted
.sort_tos_impression_share
Sort results by
tos_impression_share
.sort_view_impressions
Sort results by
view_impressions
.offset
Integer
Start index for result list.
Default: 0
Min value: 0
limit
Integer
Maximum number of results to return. The maximum allowed value depends on the response media type (10000 for JSON and 100000 for tabular formats like CSV).
Default: 10
Min value: 1
group_by
required
Grouping/segementation level for the results.
currency
required
Response Data (object list, json or csv or xlsx)
Name
Type
Description
date
performance_group_id
searchable
Integer
Unique ID of the performance group
performance_group_name
searchable
String
Unique name of the performance group.
performance_group_enabled
Boolean
performance_group_optimization_type
Optimization type of the performance group.
Only campaigns of the same optimization type can be added to a given performance group.
performance_group_goals
[ Object ]
List of performance group goals
⤷
goal_type
Type of the performance group goal
⤷
goal_value
Float
Value of the performance group goal.
goal_value
should beNULL
ifgoal_type
isPROFIT-MAXIMIZATION
.goal_value
should be a ratio (> 0) ifgoal_type
isROAS
,CRR
andROI
,goal_value
should be specified in micros and be larger than 10000 ifgoal_type
isCOST-PER-DAY
,COST-PER-CONVERSION
andCOST-PER-CLICK
.⤷
goal_currency
Currency of the performance group goal.
Currency is required for
COST-PER-DAY
,COST-PER-CONVERSION
andCOST-PER-CLICK
goals.⤷
goal_micros
Value for
COST-PER-DAY
,COST-PER-CONVERSION
andCOST-PER-CLICK
goals.Same as
goal_value
, but in a properly typed field for easier client-side handling and improved representation in tabular response data like CSV.⤷
goal_ratio
Float
Value for
ROAS
,CRR
andROI
goals.Same as
goal_value
, but in a properly typed field for easier client-side handling and improved representation in tabular response data like CSV.performance_group_goal_types
List of performance group goal types
performance_group_user_max_bid
Object
Max bid for the performance group or campaign
⤷
micros
Monetary value in micros.
⤷
currency
Currency of the monetary value.
adspert_portfolio_id
Adspert internal ID of Amazon portfolio.
Composite ID specification:
{adspert_account_id}:{portfolio_id}
amz_portfolio_id
searchable
amz_portfolio_name
searchable
String
adspert_campaign_id
Adspert internal ID of the campaign.
Composite ID specification:
{adspert_account_id}:{campaign_id}
campaign_id
searchable
campaign_name
searchable
String
campaign_type
campaign_eby_marketplace_id
String
campaign_status
campaign_optimize
Boolean
campaign_optimization_type
campaign_optimization_support
campaign_labels
searchable
[ String ]
campaign_user_max_bid
Object
Max bid for the performance group or campaign
⤷
micros
Monetary value in micros.
⤷
currency
Currency of the monetary value.
adspert_adgroup_id
Adspert internal ID of the adgroup.
Composite ID specification:
{adspert_account_id}:{adgroup_id}
adgroup_id
searchable
adgroup_name
searchable
String
adgroup_status
adgroup_labels
searchable
[ String ]
adspert_criterion_id
Adspert internal ID of the criterion.
Composite ID specification:
{adspert_account_id}:{adgroup_id}:{criterion_id}
criterion_id
searchable
criterion_name
searchable
String
criterion_status
criterion_type
criterion_match_type
Match type of
Keyword
criterion.NULL if
criterion_type
is notKeyword
.criterion_labels
searchable
[ String ]
criterion_negative
Boolean
Indicates if criterion is a negative criterion.
criterion_max_cpc
Max CPC for criterion.
impressions
Integer
Number of impressions
view_impressions
Integer
Number of viewable impressions
impressions_total
Integer
Number of total impressions, For vcpm, viewable impressions and impressions for all other campaigns.
Should be used internally.
clicks
Integer
Number of clicks
conversions
Float
Number of conversions including view impressions.
Always 0 for click optimized campaigns.
conversions_clicks
Float
Number of conversions from clicks only
Valid only for vCPM campaigns. For non-vCPM campaigns, this is the same as
conversions
.conversions_adjusted
Float
Number of conversions adjusted for conversion delay.
Always 0 for click optimized campaigns.
conversions_for_revenue
Float
Number of conversions for campaigns that support revenues.
Always 0 for campaigns that don’t support revenue.
conversions_for_revenue_adjusted
Float
Number of conversions for campaigns that support revenues adjusted for conversion delay.
Always 0 for campaigns that don’t support revenue.
profit_gross
Gross profit.
Always 0 for click and revenue optimized campaigns.
profit_gross_adjusted
Gross profit adjusted for conversion delay.
Always 0 for click and revenue optimized campaigns.
profit_net
Net profit.
profit_gross
-cost_for_profit
Always 0 for click and revenue optimized campaigns.
profit_net_adjusted
Net profit adjusted for conversion delay.
profit_gross_adjusted
-cost_for_profit
Always 0 for click and revenue optimized campaigns.
revenue
Revenue/sales.
Always 0 for click and profit optimized campaigns.
revenue_clicks
Revenue/sales from clicks only.
Valid only for vCPM campaigns. For non-vCPM campaigns, this is the same as
revenue
.revenue_adjusted
Revenue/sales adjusted for conversion delay.
Always 0 for click and profit optimized campaigns.
tos_impression_share
Float
Top of search impression share. Will be 0 unless filtered for a single criterion or campaign id in a daily breakdown.
cost
Total ad spend / cost
cost_for_profit
Ad spend from campaigns that support profit.
Always 0 for campaigns that don’t support profit.
cost_for_revenue
Ad spend from campaigns that support revenue.
Always 0 for campaigns that don’t support revenue.
cost_for_click
Ad spend / cost from click optimized campaigns.
Always 0 for revenue and profit optimized campaigns.
cost_for_vcpm
Ad spend from vcpm optimized campaigns.
Always 0 for campaigns that aren’t vcpm optimized.
cost_per_click
Effective CPC.
cost
/clicks
NULL if number of
clicks
is 0.cost_per_m_view_impressions
Cost per mille viewable impressions. Valid only for vCPM campaigns.
cost
/view_impressions
NULL if number of
view_impressions
is 0.cost_per_conversion
Cost per conversion.
Only cost for profit and revenue optimized campaigns is included.
(
cost
-cost_for_click
) /conversions
NULL if number of
conversions
is 0.cost_per_conversion_clicks
Cost per conversion from clicks only.
Valid only for vCPM campaigns. For non-vCPM campaigns, this is the same as
cost_per_conversion
.NULL if number of
conversions
is 0.cost_per_conversion_adjusted
Cost per conversion, adjusted for conversion delay.
Only cost for profit and revenue optimized campaigns is included.
(
cost
-cost_for_click
) /conversions_adjusted
NULL if number of
conversions_adjusted
is 0.conversion_rate
Float
Conversion rate.
conversions
/clicks
NULL if number of
clicks
is 0.conversion_rate_clicks
Float
Conversion rate from clicks only.
Valid only for vCPM campaigns. For non-vCPM campaigns, this is the same as
conversion_rate
.view_conversions
/clicks
NULL if number of
clicks
is 0.conversion_rate_adjusted
Float
Conversion rate, adjusted for conversion delay.
conversions_adjusted
/clicks
NULL if number of
clicks
is 0.click_through_rate
Float
Clickthrough rate (CTR).
clicks
/impressions
NULL if number of
impressions
is 0.click_through_rate_clicks
Float
Clickthrough rate (CTR) from clicks only.
Valid only for vCPM campaigns. For non-vCPM campaigns, this is the same as
click_through_rate
.clicks
/view_impressions
NULL if number of
view_impressions
is 0.return_on_investment
Float
Return on investment (ROI).
Only cost for profit optimized campaigns is included.
profit_gross
/cost_for_profit
NULL if
cost_for_profit
is 0.return_on_investment_adjusted
Float
Return on investment (ROI), adjusted for conversion delay.
Only cost for profit optimized campaigns is included.
profit_gross_adjusted
/cost_for_profit
NULL if
cost_for_profit
is 0.return_on_ad_spend
Float
Return on ad spend (ROAS).
Only cost for revenue optimized campaigns is included.
revenue
/cost_for_revenue
NULL if
cost_for_revenue
is 0.return_on_ad_spend_clicks
Float
Return on ad spend (ROAS).
Valid only for vCPM campaigns. For non-vCPM campaigns, this is the same as
return_on_ad_spend
.revenue
/cost_for_revenue
NULL if
cost_for_revenue
is 0.return_on_ad_spend_adjusted
Float
Return on ad spend (ROAS), adjusted for conversion delay.
Only cost for revenue optimized campaigns is included.
revenue_adjusted
/cost_for_revenue
NULL if
cost_for_revenue
is 0.cost_revenue_ratio
Float
Cost Revenue Ratio (CRR).
Also called Advertising Cost of Sale (ACoS).
Only cost for revenue optimized campaigns is included.
cost_for_revenue
/revenue
NULL if
revenue
is 0.cost_revenue_ratio_clicks
Float
Cost Revenue Ratio (CRR) from clicks only.
Valid only for vCPM campaigns. For non-vCPM campaigns, this is the same as
cost_revenue_ratio
.Also called Advertising Cost of Sale (ACoS).
cost_for_revenue
/revenue_clicks
NULL if
revenue_clicks
is 0.cost_revenue_ratio_adjusted
Float
Cost Revenue Ratio (CRR), adjusted for conversion delay.
Also called Advertising Cost of Sale (ACoS).
Only cost for revenue optimized campaigns is included.
cost_for_revenue
/revenue_adjusted
NULL if
cost_for_revenue
is 0.revenue_per_conversion
Revenue per conversions.
Only revenue and conversions for revenue supporting campaigns are included.
revenue
/conversions_for_revenue
NULL if campaign doesn’t support revenue.
revenue_per_conversion_adjusted
Revenue per conversions adjusted for conversion delay.
Only revenue and conversions for revenue supporting campaigns are included.
revenue_adjusted
/conversions_for_revenue_adjusted
NULL if campaign doesn’t support revenue.
has_vcpm
Boolean
Whether the grouped-by entity has any campaigns with vCPM enabled.
Example
GET /v3/accounts/3420379091/performance?search_criterion_name=elit+amet&filter_conversion_rate_adjusted_le=5.88&filter_return_on_ad_spend_adjusted_ge=14.05 HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl -i -X GET 'https://api.adspert.net/v3/accounts/3420379091/performance?search_criterion_name=elit+amet&filter_conversion_rate_adjusted_le=5.88&filter_return_on_ad_spend_adjusted_ge=14.05' -H "Accept: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
http 'https://api.adspert.net/v3/accounts/3420379091/performance?search_criterion_name=elit+amet&filter_conversion_rate_adjusted_le=5.88&filter_return_on_ad_spend_adjusted_ge=14.05' Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.get('https://api.adspert.net/v3/accounts/3420379091/performance?search_criterion_name=elit+amet&filter_conversion_rate_adjusted_le=5.88&filter_return_on_ad_spend_adjusted_ge=14.05', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": [ { "date": "2018-10-21", "performance_group_id": "1245", "performance_group_name": "dolor sit", "performance_group_enabled": true, "performance_group_optimization_type": "CLICK", "performance_group_goals": [ { "goal_type": "CLICKS-PER-DAY", "goal_value": 1.41, "goal_currency": "AED", "goal_micros": 6300000, "goal_ratio": 8.77 } ], "performance_group_goal_types": [ "CLICKS-PER-DAY" ], "performance_group_user_max_bid": { "micros": 8340000, "currency": "AED" }, "adspert_portfolio_id": "123:9999", "amz_portfolio_id": "9999", "amz_portfolio_name": "elit adlora", "adspert_campaign_id": "123:5555", "campaign_id": "5555", "campaign_name": "sit ipsum", "campaign_type": "AMAZON-SPONSORED-BRANDS", "campaign_eby_marketplace_id": "amet pariatur", "campaign_status": "ACTIVE", "campaign_optimize": true, "campaign_optimization_type": "CLICK", "campaign_optimization_support": "SUPPORTED", "campaign_labels": [ "ipsum dolor" ], "campaign_user_max_bid": { "micros": 8340000, "currency": "AED" }, "adspert_adgroup_id": "123:777", "adgroup_id": "777", "adgroup_name": "tucan lorem", "adgroup_status": "ACTIVE", "adgroup_labels": [ "elit ipsum" ], "adspert_criterion_id": "123:777:66789", "criterion_id": "66789", "criterion_name": "dolor adlora", "criterion_status": "ACTIVE", "criterion_type": "AUDIENCE", "criterion_match_type": "BROAD", "criterion_labels": [ "adlora dolor" ], "criterion_negative": true, "criterion_max_cpc": 9920000, "impressions": 2157218327, "view_impressions": 4923863656, "impressions_total": 1855722954, "clicks": 5857268080, "conversions": 3.92, "conversions_clicks": 11.04, "conversions_adjusted": 18.15, "conversions_for_revenue": 4.57, "conversions_for_revenue_adjusted": 4.9, "profit_gross": 6420000, "profit_gross_adjusted": 9200000, "profit_net": 30000, "profit_net_adjusted": 3540000, "revenue": 360000, "revenue_clicks": 8260000, "revenue_adjusted": 9120000, "tos_impression_share": 1.86, "cost": 4540000, "cost_for_profit": 800000, "cost_for_revenue": 6910000, "cost_for_click": 6810000, "cost_for_vcpm": 210000, "cost_per_click": 7300000, "cost_per_m_view_impressions": 7000000, "cost_per_conversion": 7570000, "cost_per_conversion_clicks": 8380000, "cost_per_conversion_adjusted": 340000, "conversion_rate": 0.86, "conversion_rate_clicks": 5.66, "conversion_rate_adjusted": 4.8, "click_through_rate": 7.58, "click_through_rate_clicks": 17.16, "return_on_investment": 3.28, "return_on_investment_adjusted": 1.3, "return_on_ad_spend": 2.29, "return_on_ad_spend_clicks": 5.1, "return_on_ad_spend_adjusted": 8.05, "cost_revenue_ratio": 16.41, "cost_revenue_ratio_clicks": 19.69, "cost_revenue_ratio_adjusted": 10.14, "revenue_per_conversion": 7070000, "revenue_per_conversion_adjusted": 4550000, "has_vcpm": true } ], "meta": { "pagination": { "offset": 0, "limit": 10, "total": 74, "sort": { "date": 1 } } } }
CustomerPerformanceCollection
GET
- GET /v3/customers/(customer_id: int)/performance
-
Query Params
Name
Type
Description
include
Fields to include in response data.
exclude
Fields to exclude in response data.
filter_date_ge
required
Only return results where
date
is on or after this date.filter_date_le
required
Only return results where
date
is on or before this date.filter_account_id
[ String ]
Only return results matching given
account_id
values.filter_account_is_demo
[ Boolean ]
Only return results matching given
account_is_demo
values.filter_account_name
[ String ]
Only return results matching given
account_name
values.filter_account_optimize
[ Boolean ]
Only return results matching given
account_optimize
values.filter_account_platform
[ AdPlatform ]
Only return results matching given
account_platform
values.filter_account_tags_user
[ String ]
Only return results matching given
account_tags_user
values.filter_adspert_account_id
[ Integer ]
Only return results matching given
adspert_account_id
values.filter_adspert_campaign_id
[ CompositeID ]
Only return results matching given
adspert_campaign_id
values.filter_adspert_portfolio_id
[ CompositeID ]
Only return results matching given
adspert_portfolio_id
values.filter_amz_portfolio_name
[ String ]
Only return results matching given
amz_portfolio_name
values.filter_budget_amount_ge
Only return results where
budget_amount
is equal or greater than this value.Min value: 1000
filter_budget_amount_le
Only return results where
budget_amount
is equal or lower than this value.Min value: 1000
filter_budget_coverage_ge
Float
Only return results where
budget_coverage
is equal or greater than this value.filter_budget_coverage_le
Float
Only return results where
budget_coverage
is equal or lower than this value.filter_campaign_eby_marketplace_id
[ String ]
Only return results matching given
campaign_eby_marketplace_id
values.filter_campaign_labels
[ String ]
Only return results matching given
campaign_labels
values.filter_campaign_name
[ String ]
Only return results matching given
campaign_name
values.filter_campaign_optimization_support
Only return results matching given
campaign_optimization_support
values.filter_campaign_optimization_type
[ OptimizationType ]
Only return results matching given
campaign_optimization_type
values.filter_campaign_optimize
[ Boolean ]
Only return results matching given
campaign_optimize
values.filter_campaign_status
[ CampaignStatus ]
Only return results matching given
campaign_status
values.filter_campaign_type
[ CampaignType ]
Only return results matching given
campaign_type
values.filter_click_through_rate_clicks_ge
Float
Only return results where
click_through_rate_clicks
is equal or greater than this value.filter_click_through_rate_clicks_le
Float
Only return results where
click_through_rate_clicks
is equal or lower than this value.filter_click_through_rate_ge
Float
Only return results where
click_through_rate
is equal or greater than this value.filter_click_through_rate_le
Float
Only return results where
click_through_rate
is equal or lower than this value.filter_clicks
[ Integer ]
Only return results matching given
clicks
values.filter_clicks_ge
Integer
Only return results where
clicks
is equal or greater than this value.filter_clicks_le
Integer
Only return results where
clicks
is equal or lower than this value.filter_conversion_rate_adjusted_ge
Float
Only return results where
conversion_rate_adjusted
is equal or greater than this value.filter_conversion_rate_adjusted_le
Float
Only return results where
conversion_rate_adjusted
is equal or lower than this value.filter_conversion_rate_clicks_ge
Float
Only return results where
conversion_rate_clicks
is equal or greater than this value.filter_conversion_rate_clicks_le
Float
Only return results where
conversion_rate_clicks
is equal or lower than this value.filter_conversion_rate_ge
Float
Only return results where
conversion_rate
is equal or greater than this value.filter_conversion_rate_le
Float
Only return results where
conversion_rate
is equal or lower than this value.filter_conversions_adjusted_ge
Float
Only return results where
conversions_adjusted
is equal or greater than this value.filter_conversions_adjusted_le
Float
Only return results where
conversions_adjusted
is equal or lower than this value.filter_conversions_clicks_ge
Float
Only return results where
conversions_clicks
is equal or greater than this value.filter_conversions_clicks_le
Float
Only return results where
conversions_clicks
is equal or lower than this value.filter_conversions_for_revenue_adjusted_ge
Float
Only return results where
conversions_for_revenue_adjusted
is equal or greater than this value.filter_conversions_for_revenue_adjusted_le
Float
Only return results where
conversions_for_revenue_adjusted
is equal or lower than this value.filter_conversions_for_revenue_ge
Float
Only return results where
conversions_for_revenue
is equal or greater than this value.filter_conversions_for_revenue_le
Float
Only return results where
conversions_for_revenue
is equal or lower than this value.filter_conversions_ge
Float
Only return results where
conversions
is equal or greater than this value.filter_conversions_le
Float
Only return results where
conversions
is equal or lower than this value.filter_cost_for_click_ge
Only return results where
cost_for_click
is equal or greater than this value.Min value: 1000
filter_cost_for_click_le
Only return results where
cost_for_click
is equal or lower than this value.Min value: 1000
filter_cost_for_organic_ge
Only return results where
cost_for_organic
is equal or greater than this value.Min value: 1000
filter_cost_for_organic_le
Only return results where
cost_for_organic
is equal or lower than this value.Min value: 1000
filter_cost_for_organic_rolling_avg_ge
Only return results where
cost_for_organic_rolling_avg
is equal or greater than this value.Min value: 1000
filter_cost_for_organic_rolling_avg_le
Only return results where
cost_for_organic_rolling_avg
is equal or lower than this value.Min value: 1000
filter_cost_for_profit_ge
Only return results where
cost_for_profit
is equal or greater than this value.Min value: 1000
filter_cost_for_profit_le
Only return results where
cost_for_profit
is equal or lower than this value.Min value: 1000
filter_cost_for_revenue_ge
Only return results where
cost_for_revenue
is equal or greater than this value.Min value: 1000
filter_cost_for_revenue_le
Only return results where
cost_for_revenue
is equal or lower than this value.Min value: 1000
filter_cost_for_vcpm_ge
Only return results where
cost_for_vcpm
is equal or greater than this value.Min value: 1000
filter_cost_for_vcpm_le
Only return results where
cost_for_vcpm
is equal or lower than this value.Min value: 1000
filter_cost_ge
Only return results where
cost
is equal or greater than this value.Min value: 1000
filter_cost_le
Only return results where
cost
is equal or lower than this value.Min value: 1000
filter_cost_per_click_ge
Only return results where
cost_per_click
is equal or greater than this value.Min value: 1000
filter_cost_per_click_le
Only return results where
cost_per_click
is equal or lower than this value.Min value: 1000
filter_cost_per_conversion_adjusted_ge
Only return results where
cost_per_conversion_adjusted
is equal or greater than this value.Min value: 1000
filter_cost_per_conversion_adjusted_le
Only return results where
cost_per_conversion_adjusted
is equal or lower than this value.Min value: 1000
filter_cost_per_conversion_ge
Only return results where
cost_per_conversion
is equal or greater than this value.Min value: 1000
filter_cost_per_conversion_le
Only return results where
cost_per_conversion
is equal or lower than this value.Min value: 1000
filter_cost_per_m_view_impressions_ge
Only return results where
cost_per_m_view_impressions
is equal or greater than this value.Min value: 1000
filter_cost_per_m_view_impressions_le
Only return results where
cost_per_m_view_impressions
is equal or lower than this value.Min value: 1000
filter_cost_revenue_ratio_adjusted_ge
Float
Only return results where
cost_revenue_ratio_adjusted
is equal or greater than this value.filter_cost_revenue_ratio_adjusted_le
Float
Only return results where
cost_revenue_ratio_adjusted
is equal or lower than this value.filter_cost_revenue_ratio_clicks_ge
Float
Only return results where
cost_revenue_ratio_clicks
is equal or greater than this value.filter_cost_revenue_ratio_clicks_le
Float
Only return results where
cost_revenue_ratio_clicks
is equal or lower than this value.filter_cost_revenue_ratio_ge
Float
Only return results where
cost_revenue_ratio
is equal or greater than this value.filter_cost_revenue_ratio_le
Float
Only return results where
cost_revenue_ratio
is equal or lower than this value.filter_cost_revenue_total_ratio_ge
Float
Only return results where
cost_revenue_total_ratio
is equal or greater than this value.filter_cost_revenue_total_ratio_le
Float
Only return results where
cost_revenue_total_ratio
is equal or lower than this value.filter_cost_revenue_total_ratio_rolling_avg_ge
Float
Only return results where
cost_revenue_total_ratio_rolling_avg
is equal or greater than this value.filter_cost_revenue_total_ratio_rolling_avg_le
Float
Only return results where
cost_revenue_total_ratio_rolling_avg
is equal or lower than this value.filter_impressions
[ Integer ]
Only return results matching given
impressions
values.filter_impressions_ge
Integer
Only return results where
impressions
is equal or greater than this value.filter_impressions_le
Integer
Only return results where
impressions
is equal or lower than this value.filter_performance_group_enabled
[ Boolean ]
Only return results matching given
performance_group_enabled
values.filter_performance_group_goal_types
Only return results matching given
performance_group_goal_types
values.filter_performance_group_id
[ Integer ]
Only return results matching given
performance_group_id
values.filter_performance_group_name
[ String ]
Only return results matching given
performance_group_name
values.filter_performance_group_optimization_type
[ OptimizationType ]
Only return results matching given
performance_group_optimization_type
values.filter_profit_gross_adjusted_ge
Only return results where
profit_gross_adjusted
is equal or greater than this value.Min value: 1000
filter_profit_gross_adjusted_le
Only return results where
profit_gross_adjusted
is equal or lower than this value.Min value: 1000
filter_profit_gross_ge
Only return results where
profit_gross
is equal or greater than this value.Min value: 1000
filter_profit_gross_le
Only return results where
profit_gross
is equal or lower than this value.Min value: 1000
filter_profit_net_adjusted_ge
Only return results where
profit_net_adjusted
is equal or greater than this value.Min value: 1000
filter_profit_net_adjusted_le
Only return results where
profit_net_adjusted
is equal or lower than this value.Min value: 1000
filter_profit_net_ge
Only return results where
profit_net
is equal or greater than this value.Min value: 1000
filter_profit_net_le
Only return results where
profit_net
is equal or lower than this value.Min value: 1000
filter_return_on_ad_spend_adjusted_ge
Float
Only return results where
return_on_ad_spend_adjusted
is equal or greater than this value.filter_return_on_ad_spend_adjusted_le
Float
Only return results where
return_on_ad_spend_adjusted
is equal or lower than this value.filter_return_on_ad_spend_clicks_ge
Float
Only return results where
return_on_ad_spend_clicks
is equal or greater than this value.filter_return_on_ad_spend_clicks_le
Float
Only return results where
return_on_ad_spend_clicks
is equal or lower than this value.filter_return_on_ad_spend_ge
Float
Only return results where
return_on_ad_spend
is equal or greater than this value.filter_return_on_ad_spend_le
Float
Only return results where
return_on_ad_spend
is equal or lower than this value.filter_return_on_investment_adjusted_ge
Float
Only return results where
return_on_investment_adjusted
is equal or greater than this value.filter_return_on_investment_adjusted_le
Float
Only return results where
return_on_investment_adjusted
is equal or lower than this value.filter_return_on_investment_ge
Float
Only return results where
return_on_investment
is equal or greater than this value.filter_return_on_investment_le
Float
Only return results where
return_on_investment
is equal or lower than this value.filter_revenue_adjusted_ge
Only return results where
revenue_adjusted
is equal or greater than this value.Min value: 1000
filter_revenue_adjusted_le
Only return results where
revenue_adjusted
is equal or lower than this value.Min value: 1000
filter_revenue_clicks_ge
Only return results where
revenue_clicks
is equal or greater than this value.Min value: 1000
filter_revenue_clicks_le
Only return results where
revenue_clicks
is equal or lower than this value.Min value: 1000
filter_revenue_ge
Only return results where
revenue
is equal or greater than this value.Min value: 1000
filter_revenue_le
Only return results where
revenue
is equal or lower than this value.Min value: 1000
filter_revenue_organic_adjusted_ge
Only return results where
revenue_organic_adjusted
is equal or greater than this value.Min value: 1000
filter_revenue_organic_adjusted_le
Only return results where
revenue_organic_adjusted
is equal or lower than this value.Min value: 1000
filter_revenue_organic_ge
Only return results where
revenue_organic
is equal or greater than this value.Min value: 1000
filter_revenue_organic_le
Only return results where
revenue_organic
is equal or lower than this value.Min value: 1000
filter_revenue_per_conversion_adjusted_ge
Only return results where
revenue_per_conversion_adjusted
is equal or greater than this value.Min value: 1000
filter_revenue_per_conversion_adjusted_le
Only return results where
revenue_per_conversion_adjusted
is equal or lower than this value.Min value: 1000
filter_revenue_per_conversion_ge
Only return results where
revenue_per_conversion
is equal or greater than this value.Min value: 1000
filter_revenue_per_conversion_le
Only return results where
revenue_per_conversion
is equal or lower than this value.Min value: 1000
filter_revenue_total_ge
Only return results where
revenue_total
is equal or greater than this value.Min value: 1000
filter_revenue_total_le
Only return results where
revenue_total
is equal or lower than this value.Min value: 1000
filter_revenue_total_rolling_avg_ge
Only return results where
revenue_total_rolling_avg
is equal or greater than this value.Min value: 1000
filter_revenue_total_rolling_avg_le
Only return results where
revenue_total_rolling_avg
is equal or lower than this value.Min value: 1000
filter_view_impressions
[ Integer ]
Only return results matching given
view_impressions
values.filter_view_impressions_ge
Integer
Only return results where
view_impressions
is equal or greater than this value.filter_view_impressions_le
Integer
Only return results where
view_impressions
is equal or lower than this value.search_fields
Fields that should be searched using the
search_term
.search_term
String
Search term used to search the
search_fields
.search_account_id
String
Only return results where
account_id
matches the given string.search_account_name
String
Only return results where
account_name
matches the given string.search_account_tags_user
String
Only return results where
account_tags_user
matches the given string.search_adspert_account_id
String
Only return results where
adspert_account_id
matches the given string.search_amz_portfolio_id
String
Only return results where
amz_portfolio_id
matches the given string.search_amz_portfolio_name
String
Only return results where
amz_portfolio_name
matches the given string.search_campaign_id
String
Only return results where
campaign_id
matches the given string.search_campaign_labels
String
Only return results where
campaign_labels
matches the given string.search_campaign_name
String
Only return results where
campaign_name
matches the given string.search_performance_group_id
String
Only return results where
performance_group_id
matches the given string.search_performance_group_name
String
Only return results where
performance_group_name
matches the given string.sort_account_id
Sort results by
account_id
.sort_account_is_demo
Sort results by
account_is_demo
.sort_account_name
Sort results by
account_name
.sort_account_optimize
Sort results by
account_optimize
.sort_account_platform
Sort results by
account_platform
.sort_adspert_account_id
Sort results by
adspert_account_id
.sort_adspert_campaign_id
Sort results by
adspert_campaign_id
.sort_adspert_portfolio_id
Sort results by
adspert_portfolio_id
.sort_amz_portfolio_id
Sort results by
amz_portfolio_id
.sort_amz_portfolio_name
Sort results by
amz_portfolio_name
.sort_budget_amount
Sort results by
budget_amount
.sort_budget_coverage
Sort results by
budget_coverage
.sort_campaign_eby_marketplace_id
Sort results by
campaign_eby_marketplace_id
.sort_campaign_id
Sort results by
campaign_id
.sort_campaign_name
Sort results by
campaign_name
.sort_campaign_optimization_support
Sort results by
campaign_optimization_support
.sort_campaign_optimization_type
Sort results by
campaign_optimization_type
.sort_campaign_optimize
Sort results by
campaign_optimize
.sort_campaign_status
Sort results by
campaign_status
.sort_campaign_type
Sort results by
campaign_type
.sort_click_through_rate
Sort results by
click_through_rate
.sort_click_through_rate_clicks
Sort results by
click_through_rate_clicks
.sort_clicks
Sort results by
clicks
.sort_conversion_rate
Sort results by
conversion_rate
.sort_conversion_rate_adjusted
Sort results by
conversion_rate_adjusted
.sort_conversion_rate_clicks
Sort results by
conversion_rate_clicks
.sort_conversions
Sort results by
conversions
.sort_conversions_adjusted
Sort results by
conversions_adjusted
.sort_conversions_clicks
Sort results by
conversions_clicks
.sort_conversions_for_revenue
Sort results by
conversions_for_revenue
.sort_conversions_for_revenue_adjusted
Sort results by
conversions_for_revenue_adjusted
.sort_cost
Sort results by
cost
.sort_cost_for_click
Sort results by
cost_for_click
.sort_cost_for_organic
Sort results by
cost_for_organic
.sort_cost_for_organic_rolling_avg
Sort results by
cost_for_organic_rolling_avg
.sort_cost_for_profit
Sort results by
cost_for_profit
.sort_cost_for_revenue
Sort results by
cost_for_revenue
.sort_cost_for_vcpm
Sort results by
cost_for_vcpm
.sort_cost_per_click
Sort results by
cost_per_click
.sort_cost_per_conversion
Sort results by
cost_per_conversion
.sort_cost_per_conversion_adjusted
Sort results by
cost_per_conversion_adjusted
.sort_cost_per_conversion_clicks
Sort results by
cost_per_conversion_clicks
.sort_cost_per_m_view_impressions
Sort results by
cost_per_m_view_impressions
.sort_cost_revenue_ratio
Sort results by
cost_revenue_ratio
.sort_cost_revenue_ratio_adjusted
Sort results by
cost_revenue_ratio_adjusted
.sort_cost_revenue_ratio_clicks
Sort results by
cost_revenue_ratio_clicks
.sort_cost_revenue_total_ratio
Sort results by
cost_revenue_total_ratio
.sort_cost_revenue_total_ratio_rolling_avg
Sort results by
cost_revenue_total_ratio_rolling_avg
.sort_date
Sort results by
date
.sort_impressions
Sort results by
impressions
.sort_impressions_total
Sort results by
impressions_total
.sort_performance_group_enabled
Sort results by
performance_group_enabled
.sort_performance_group_goal_types
Sort results by
performance_group_goal_types
.sort_performance_group_id
Sort results by
performance_group_id
.sort_performance_group_name
Sort results by
performance_group_name
.sort_performance_group_optimization_type
Sort results by
performance_group_optimization_type
.sort_profit_gross
Sort results by
profit_gross
.sort_profit_gross_adjusted
Sort results by
profit_gross_adjusted
.sort_profit_net
Sort results by
profit_net
.sort_profit_net_adjusted
Sort results by
profit_net_adjusted
.sort_return_on_ad_spend
Sort results by
return_on_ad_spend
.sort_return_on_ad_spend_adjusted
Sort results by
return_on_ad_spend_adjusted
.sort_return_on_ad_spend_clicks
Sort results by
return_on_ad_spend_clicks
.sort_return_on_investment
Sort results by
return_on_investment
.sort_return_on_investment_adjusted
Sort results by
return_on_investment_adjusted
.sort_revenue
Sort results by
revenue
.sort_revenue_adjusted
Sort results by
revenue_adjusted
.sort_revenue_clicks
Sort results by
revenue_clicks
.sort_revenue_organic
Sort results by
revenue_organic
.sort_revenue_organic_adjusted
Sort results by
revenue_organic_adjusted
.sort_revenue_per_conversion
Sort results by
revenue_per_conversion
.sort_revenue_per_conversion_adjusted
Sort results by
revenue_per_conversion_adjusted
.sort_revenue_total
Sort results by
revenue_total
.sort_revenue_total_rolling_avg
Sort results by
revenue_total_rolling_avg
.sort_view_impressions
Sort results by
view_impressions
.offset
Integer
Start index for result list.
Default: 0
Min value: 0
limit
Integer
Maximum number of results to return. The maximum allowed value depends on the response media type (10000 for JSON and 100000 for tabular formats like CSV).
Default: 10
Min value: 1
group_by
required
Grouping/segementation level for the results.
currency
required
Response Data (object list, json or csv or xlsx)
Name
Type
Description
date
adspert_account_id
searchable
Integer
Adspert internal ID of the advertising account
account_id
searchable
String
Ad platform specific ID of an advertising account.
account_name
searchable
String
account_platform
The account’s advertising platform.
account_optimize
Boolean
If optimization by Adspert is enabled for this account.
account_tags_user
searchable
[ String ]
account_is_demo
Boolean
If the account is a generated account for demonstration purposes.
Demo accounts have no counterpart in the ad platform.
performance_group_id
searchable
Integer
Unique ID of the performance group
performance_group_name
searchable
String
Unique name of the performance group.
performance_group_enabled
Boolean
performance_group_optimization_type
Optimization type of the performance group.
Only campaigns of the same optimization type can be added to a given performance group.
performance_group_goals
[ Object ]
List of performance group goals
⤷
goal_type
Type of the performance group goal
⤷
goal_value
Float
Value of the performance group goal.
goal_value
should beNULL
ifgoal_type
isPROFIT-MAXIMIZATION
.goal_value
should be a ratio (> 0) ifgoal_type
isROAS
,CRR
andROI
,goal_value
should be specified in micros and be larger than 10000 ifgoal_type
isCOST-PER-DAY
,COST-PER-CONVERSION
andCOST-PER-CLICK
.⤷
goal_currency
Currency of the performance group goal.
Currency is required for
COST-PER-DAY
,COST-PER-CONVERSION
andCOST-PER-CLICK
goals.⤷
goal_micros
Value for
COST-PER-DAY
,COST-PER-CONVERSION
andCOST-PER-CLICK
goals.Same as
goal_value
, but in a properly typed field for easier client-side handling and improved representation in tabular response data like CSV.⤷
goal_ratio
Float
Value for
ROAS
,CRR
andROI
goals.Same as
goal_value
, but in a properly typed field for easier client-side handling and improved representation in tabular response data like CSV.performance_group_goal_types
List of performance group goal types
performance_group_platforms
[ AdPlatform ]
List of platforms that PG runs on.
NULL when grouped by
date
,account
,amz_portfolio
performance_group_user_max_bid
Object
Max bid for the performance group or campaign
⤷
micros
Monetary value in micros.
⤷
currency
Currency of the monetary value.
adspert_portfolio_id
Adspert internal ID of Amazon portfolio.
Composite ID specification:
{adspert_account_id}:{portfolio_id}
amz_portfolio_id
searchable
amz_portfolio_name
searchable
String
adspert_campaign_id
Adspert internal ID of the campaign.
Composite ID specification:
{adspert_account_id}:{campaign_id}
campaign_id
searchable
campaign_name
searchable
String
campaign_type
campaign_eby_marketplace_id
String
campaign_status
campaign_optimize
Boolean
campaign_optimization_type
campaign_optimization_support
campaign_labels
searchable
[ String ]
campaign_user_max_bid
Object
Max bid for the performance group or campaign
⤷
micros
Monetary value in micros.
⤷
currency
Currency of the monetary value.
impressions
Integer
Number of impressions
view_impressions
Integer
Number of viewable impressions
impressions_total
Integer
Number of total impressions, For vcpm, viewable impressions and impressions for all other campaigns.
Should be used internally.
clicks
Integer
Number of clicks
conversions
Float
Number of conversions including view impressions.
Always 0 for click optimized campaigns.
conversions_clicks
Float
Number of conversions from clicks only
Valid only for vCPM campaigns. For non-vCPM campaigns, this is the same as
conversions
.conversions_adjusted
Float
Number of conversions adjusted for conversion delay.
Always 0 for click optimized campaigns.
conversions_for_revenue
Float
Number of conversions for campaigns that support revenues.
Always 0 for campaigns that don’t support revenue.
conversions_for_revenue_adjusted
Float
Number of conversions for campaigns that support revenues adjusted for conversion delay.
Always 0 for campaigns that don’t support revenue.
profit_gross
Gross profit.
Always 0 for click and revenue optimized campaigns.
profit_gross_adjusted
Gross profit adjusted for conversion delay.
Always 0 for click and revenue optimized campaigns.
profit_net
Net profit.
profit_gross
-cost_for_profit
Always 0 for click and revenue optimized campaigns.
profit_net_adjusted
Net profit adjusted for conversion delay.
profit_gross_adjusted
-cost_for_profit
Always 0 for click and revenue optimized campaigns.
revenue
Revenue/sales.
Always 0 for click and profit optimized campaigns.
revenue_clicks
Revenue/sales from clicks only.
Valid only for vCPM campaigns. For non-vCPM campaigns, this is the same as
revenue
.revenue_adjusted
Revenue/sales adjusted for conversion delay.
Always 0 for click and profit optimized campaigns.
revenue_total
Total revenue (organic + paid sales).
This is only available on account-level and includes only revenue from ad accounts for which organic performance data is available (Amazon Ads).
revenue_total_rolling_avg
Same as
revenue_total
but as a 7-day rolling average.revenue_organic
Organic revenue
This is only available on account-level and includes only revenue from ad accounts for which organic performance data is available (Amazon Ads).
revenue_organic_adjusted
Organic revenue adjusted for conversion delay
This is only available on account-level and includes only revenue from ad accounts for which organic performance data is available (Amazon Ads).
budget_amount
This field is
null
by default, unless explicitly mentioned ininclude
query param. Furthermore, it is only available when grouping by date.cost
Total ad spend / cost
cost_for_profit
Ad spend from campaigns that support profit.
Always 0 for campaigns that don’t support profit.
cost_for_revenue
Ad spend from campaigns that support revenue.
Always 0 for campaigns that don’t support revenue.
cost_for_click
Ad spend / cost from click optimized campaigns.
Always 0 for revenue and profit optimized campaigns.
cost_for_vcpm
Ad spend from vcpm optimized campaigns.
Always 0 for campaigns that aren’t vcpm optimized.
cost_for_organic
Ad spend from campaigns in ad accounts for which organic performance data is available (relevant for TACoS metric).
Always 0 for campaigns in ad accounts w/o organic performance data.
cost_for_organic_rolling_avg
Same as
cost_for_organic
but as a 7-day rolling average.cost_per_click
Effective CPC.
cost
/clicks
NULL if number of
clicks
is 0.cost_per_m_view_impressions
Cost per mille viewable impressions. Valid only for vCPM campaigns.
cost
/view_impressions
NULL if number of
view_impressions
is 0.cost_per_conversion
Cost per conversion.
Only cost for profit and revenue optimized campaigns is included.
(
cost
-cost_for_click
) /conversions
NULL if number of
conversions
is 0.cost_per_conversion_clicks
Cost per conversion from clicks only.
Valid only for vCPM campaigns. For non-vCPM campaigns, this is the same as
cost_per_conversion
.NULL if number of
conversions
is 0.cost_per_conversion_adjusted
Cost per conversion, adjusted for conversion delay.
Only cost for profit and revenue optimized campaigns is included.
(
cost
-cost_for_click
) /conversions_adjusted
NULL if number of
conversions_adjusted
is 0.conversion_rate
Float
Conversion rate.
conversions
/clicks
NULL if number of
clicks
is 0.conversion_rate_clicks
Float
Conversion rate from clicks only.
Valid only for vCPM campaigns. For non-vCPM campaigns, this is the same as
conversion_rate
.view_conversions
/clicks
NULL if number of
clicks
is 0.conversion_rate_adjusted
Float
Conversion rate, adjusted for conversion delay.
conversions_adjusted
/clicks
NULL if number of
clicks
is 0.click_through_rate
Float
Clickthrough rate (CTR).
clicks
/impressions
NULL if number of
impressions
is 0.click_through_rate_clicks
Float
Clickthrough rate (CTR) from clicks only.
Valid only for vCPM campaigns. For non-vCPM campaigns, this is the same as
click_through_rate
.clicks
/view_impressions
NULL if number of
view_impressions
is 0.return_on_investment
Float
Return on investment (ROI).
Only cost for profit optimized campaigns is included.
profit_gross
/cost_for_profit
NULL if
cost_for_profit
is 0.return_on_investment_adjusted
Float
Return on investment (ROI), adjusted for conversion delay.
Only cost for profit optimized campaigns is included.
profit_gross_adjusted
/cost_for_profit
NULL if
cost_for_profit
is 0.return_on_ad_spend
Float
Return on ad spend (ROAS).
Only cost for revenue optimized campaigns is included.
revenue
/cost_for_revenue
NULL if
cost_for_revenue
is 0.return_on_ad_spend_clicks
Float
Return on ad spend (ROAS).
Valid only for vCPM campaigns. For non-vCPM campaigns, this is the same as
return_on_ad_spend
.revenue
/cost_for_revenue
NULL if
cost_for_revenue
is 0.return_on_ad_spend_adjusted
Float
Return on ad spend (ROAS), adjusted for conversion delay.
Only cost for revenue optimized campaigns is included.
revenue_adjusted
/cost_for_revenue
NULL if
cost_for_revenue
is 0.cost_revenue_ratio
Float
Cost Revenue Ratio (CRR).
Also called Advertising Cost of Sale (ACoS).
Only cost for revenue optimized campaigns is included.
cost_for_revenue
/revenue
NULL if
revenue
is 0.cost_revenue_ratio_clicks
Float
Cost Revenue Ratio (CRR) from clicks only.
Valid only for vCPM campaigns. For non-vCPM campaigns, this is the same as
cost_revenue_ratio
.Also called Advertising Cost of Sale (ACoS).
cost_for_revenue
/revenue_clicks
NULL if
revenue_clicks
is 0.cost_revenue_ratio_adjusted
Float
Cost Revenue Ratio (CRR), adjusted for conversion delay.
Also called Advertising Cost of Sale (ACoS).
Only cost for revenue optimized campaigns is included.
cost_for_revenue
/revenue_adjusted
NULL if
cost_for_revenue
is 0.cost_revenue_total_ratio
Float
Total Cost Revenue Ratio (CRR), including organic revenue, a.k.a. Total Advertising Cost of Sale (TACoS).
This is only available on account-level and includes only revenue and cost from ad accounts for which organic performance data is available (Amazon Ads).
NULL if
revenue_total
is 0.cost_revenue_total_ratio_rolling_avg
Float
Same as
cost_revenue_total_ratio
but as a 7-day rolling average.NULL if
total_revenue_rolling_avg
is 0.revenue_per_conversion
Revenue per conversions.
Only revenue and conversions for revenue supporting campaigns are included.
revenue
/conversions_for_revenue
NULL if campaign doesn’t support revenue.
revenue_per_conversion_adjusted
Revenue per conversions adjusted for conversion delay.
Only revenue and conversions for revenue supporting campaigns are included.
revenue_adjusted
/conversions_for_revenue_adjusted
NULL if campaign doesn’t support revenue.
budget_coverage
Float
This field is
null
by default, unless explicitly mentioned ininclude
query param. Furthermore, it is only available when grouping by date.has_vcpm
Boolean
Whether the grouped-by entity has any campaigns with vCPM enabled.
Example
GET /v3/customers/7027038674/performance?sort_performance_group_name=-6&filter_conversion_rate_adjusted_ge=2.14&filter_cost_for_vcpm_le=4990000 HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl -i -X GET 'https://api.adspert.net/v3/customers/7027038674/performance?sort_performance_group_name=-6&filter_conversion_rate_adjusted_ge=2.14&filter_cost_for_vcpm_le=4990000' -H "Accept: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
http 'https://api.adspert.net/v3/customers/7027038674/performance?sort_performance_group_name=-6&filter_conversion_rate_adjusted_ge=2.14&filter_cost_for_vcpm_le=4990000' Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.get('https://api.adspert.net/v3/customers/7027038674/performance?sort_performance_group_name=-6&filter_conversion_rate_adjusted_ge=2.14&filter_cost_for_vcpm_le=4990000', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": [ { "date": "2018-10-21", "adspert_account_id": 123, "account_id": "amet lorem", "account_name": "vehicula ipsum", "account_platform": "AMAZON", "account_optimize": true, "account_tags_user": [ "vehicula amet" ], "account_is_demo": true, "performance_group_id": "1245", "performance_group_name": "dolor sit", "performance_group_enabled": true, "performance_group_optimization_type": "CLICK", "performance_group_goals": [ { "goal_type": "CLICKS-PER-DAY", "goal_value": 1.41, "goal_currency": "AED", "goal_micros": 6300000, "goal_ratio": 8.77 } ], "performance_group_goal_types": [ "CLICKS-PER-DAY" ], "performance_group_platforms": [ "AMAZON" ], "performance_group_user_max_bid": { "micros": 8340000, "currency": "AED" }, "adspert_portfolio_id": "123:9999", "amz_portfolio_id": "9999", "amz_portfolio_name": "elit adlora", "adspert_campaign_id": "123:5555", "campaign_id": "5555", "campaign_name": "sit ipsum", "campaign_type": "AMAZON-SPONSORED-BRANDS", "campaign_eby_marketplace_id": "amet pariatur", "campaign_status": "ACTIVE", "campaign_optimize": true, "campaign_optimization_type": "CLICK", "campaign_optimization_support": "SUPPORTED", "campaign_labels": [ "ipsum dolor" ], "campaign_user_max_bid": { "micros": 8340000, "currency": "AED" }, "impressions": 2157218327, "view_impressions": 4923863656, "impressions_total": 1855722954, "clicks": 5857268080, "conversions": 3.92, "conversions_clicks": 11.04, "conversions_adjusted": 18.15, "conversions_for_revenue": 4.57, "conversions_for_revenue_adjusted": 4.9, "profit_gross": 6420000, "profit_gross_adjusted": 9200000, "profit_net": 30000, "profit_net_adjusted": 3540000, "revenue": 360000, "revenue_clicks": 8260000, "revenue_adjusted": 9120000, "revenue_total": 9370000, "revenue_total_rolling_avg": 2650000, "revenue_organic": 2410000, "revenue_organic_adjusted": 3080000, "budget_amount": 9230000, "cost": 4540000, "cost_for_profit": 800000, "cost_for_revenue": 6910000, "cost_for_click": 6810000, "cost_for_vcpm": 210000, "cost_for_organic": 3360000, "cost_for_organic_rolling_avg": 4530000, "cost_per_click": 7300000, "cost_per_m_view_impressions": 7000000, "cost_per_conversion": 7570000, "cost_per_conversion_clicks": 8380000, "cost_per_conversion_adjusted": 340000, "conversion_rate": 0.86, "conversion_rate_clicks": 5.66, "conversion_rate_adjusted": 4.8, "click_through_rate": 7.58, "click_through_rate_clicks": 17.16, "return_on_investment": 3.28, "return_on_investment_adjusted": 1.3, "return_on_ad_spend": 2.29, "return_on_ad_spend_clicks": 5.1, "return_on_ad_spend_adjusted": 8.05, "cost_revenue_ratio": 16.41, "cost_revenue_ratio_clicks": 19.69, "cost_revenue_ratio_adjusted": 10.14, "cost_revenue_total_ratio": 9.0, "cost_revenue_total_ratio_rolling_avg": 18.81, "revenue_per_conversion": 7070000, "revenue_per_conversion_adjusted": 4550000, "budget_coverage": 0.39, "has_vcpm": true } ], "meta": { "pagination": { "offset": 0, "limit": 10, "total": 74, "sort": { "date": 1 } } } }
POST
- POST /v3/customers/(customer_id: int)/performance
-
Request Data (single object, json)
Name
Type
Description
search_fields
Fields that should be searched using the
search_term
.search_term
String
Search term used to search the
search_fields
.offset
Integer
Start index for result list.
Default: 0
Min value: 0
limit
Integer
Maximum number of results to return. The maximum allowed value depends on the response media type (10000 for JSON and 100000 for tabular formats like CSV).
Default: 10
Min value: 1
include
Fields to include in response data.
exclude
Fields to exclude in response data.
group_by
required
Grouping/segementation level for the results.
filter_date_ge
required
Only return results where
date
is on or after this date.filter_date_le
required
Only return results where
date
is on or before this date.currency
required
filter_account_id
[ String ]
Only return results matching given
account_id
values.filter_account_is_demo
[ Boolean ]
Only return results matching given
account_is_demo
values.filter_account_name
[ String ]
Only return results matching given
account_name
values.filter_account_optimize
[ Boolean ]
Only return results matching given
account_optimize
values.filter_account_platform
[ AdPlatform ]
Only return results matching given
account_platform
values.filter_account_tags_user
[ String ]
Only return results matching given
account_tags_user
values.filter_adspert_account_id
[ Integer ]
Only return results matching given
adspert_account_id
values.filter_adspert_campaign_id
[ CompositeID ]
Only return results matching given
adspert_campaign_id
values.filter_adspert_portfolio_id
[ CompositeID ]
Only return results matching given
adspert_portfolio_id
values.filter_amz_portfolio_name
[ String ]
Only return results matching given
amz_portfolio_name
values.filter_budget_amount_ge
Only return results where
budget_amount
is equal or greater than this value.Min value: 1000
filter_budget_amount_le
Only return results where
budget_amount
is equal or lower than this value.Min value: 1000
filter_budget_coverage_ge
Float
Only return results where
budget_coverage
is equal or greater than this value.filter_budget_coverage_le
Float
Only return results where
budget_coverage
is equal or lower than this value.filter_campaign_eby_marketplace_id
[ String ]
Only return results matching given
campaign_eby_marketplace_id
values.filter_campaign_labels
[ String ]
Only return results matching given
campaign_labels
values.filter_campaign_name
[ String ]
Only return results matching given
campaign_name
values.filter_campaign_optimization_support
Only return results matching given
campaign_optimization_support
values.filter_campaign_optimization_type
[ OptimizationType ]
Only return results matching given
campaign_optimization_type
values.filter_campaign_optimize
[ Boolean ]
Only return results matching given
campaign_optimize
values.filter_campaign_status
[ CampaignStatus ]
Only return results matching given
campaign_status
values.filter_campaign_type
[ CampaignType ]
Only return results matching given
campaign_type
values.filter_click_through_rate_clicks_ge
Float
Only return results where
click_through_rate_clicks
is equal or greater than this value.filter_click_through_rate_clicks_le
Float
Only return results where
click_through_rate_clicks
is equal or lower than this value.filter_click_through_rate_ge
Float
Only return results where
click_through_rate
is equal or greater than this value.filter_click_through_rate_le
Float
Only return results where
click_through_rate
is equal or lower than this value.filter_clicks
[ Integer ]
Only return results matching given
clicks
values.filter_clicks_ge
Integer
Only return results where
clicks
is equal or greater than this value.filter_clicks_le
Integer
Only return results where
clicks
is equal or lower than this value.filter_conversion_rate_adjusted_ge
Float
Only return results where
conversion_rate_adjusted
is equal or greater than this value.filter_conversion_rate_adjusted_le
Float
Only return results where
conversion_rate_adjusted
is equal or lower than this value.filter_conversion_rate_clicks_ge
Float
Only return results where
conversion_rate_clicks
is equal or greater than this value.filter_conversion_rate_clicks_le
Float
Only return results where
conversion_rate_clicks
is equal or lower than this value.filter_conversion_rate_ge
Float
Only return results where
conversion_rate
is equal or greater than this value.filter_conversion_rate_le
Float
Only return results where
conversion_rate
is equal or lower than this value.filter_conversions_adjusted_ge
Float
Only return results where
conversions_adjusted
is equal or greater than this value.filter_conversions_adjusted_le
Float
Only return results where
conversions_adjusted
is equal or lower than this value.filter_conversions_clicks_ge
Float
Only return results where
conversions_clicks
is equal or greater than this value.filter_conversions_clicks_le
Float
Only return results where
conversions_clicks
is equal or lower than this value.filter_conversions_for_revenue_adjusted_ge
Float
Only return results where
conversions_for_revenue_adjusted
is equal or greater than this value.filter_conversions_for_revenue_adjusted_le
Float
Only return results where
conversions_for_revenue_adjusted
is equal or lower than this value.filter_conversions_for_revenue_ge
Float
Only return results where
conversions_for_revenue
is equal or greater than this value.filter_conversions_for_revenue_le
Float
Only return results where
conversions_for_revenue
is equal or lower than this value.filter_conversions_ge
Float
Only return results where
conversions
is equal or greater than this value.filter_conversions_le
Float
Only return results where
conversions
is equal or lower than this value.filter_cost_for_click_ge
Only return results where
cost_for_click
is equal or greater than this value.Min value: 1000
filter_cost_for_click_le
Only return results where
cost_for_click
is equal or lower than this value.Min value: 1000
filter_cost_for_organic_ge
Only return results where
cost_for_organic
is equal or greater than this value.Min value: 1000
filter_cost_for_organic_le
Only return results where
cost_for_organic
is equal or lower than this value.Min value: 1000
filter_cost_for_organic_rolling_avg_ge
Only return results where
cost_for_organic_rolling_avg
is equal or greater than this value.Min value: 1000
filter_cost_for_organic_rolling_avg_le
Only return results where
cost_for_organic_rolling_avg
is equal or lower than this value.Min value: 1000
filter_cost_for_profit_ge
Only return results where
cost_for_profit
is equal or greater than this value.Min value: 1000
filter_cost_for_profit_le
Only return results where
cost_for_profit
is equal or lower than this value.Min value: 1000
filter_cost_for_revenue_ge
Only return results where
cost_for_revenue
is equal or greater than this value.Min value: 1000
filter_cost_for_revenue_le
Only return results where
cost_for_revenue
is equal or lower than this value.Min value: 1000
filter_cost_for_vcpm_ge
Only return results where
cost_for_vcpm
is equal or greater than this value.Min value: 1000
filter_cost_for_vcpm_le
Only return results where
cost_for_vcpm
is equal or lower than this value.Min value: 1000
filter_cost_ge
Only return results where
cost
is equal or greater than this value.Min value: 1000
filter_cost_le
Only return results where
cost
is equal or lower than this value.Min value: 1000
filter_cost_per_click_ge
Only return results where
cost_per_click
is equal or greater than this value.Min value: 1000
filter_cost_per_click_le
Only return results where
cost_per_click
is equal or lower than this value.Min value: 1000
filter_cost_per_conversion_adjusted_ge
Only return results where
cost_per_conversion_adjusted
is equal or greater than this value.Min value: 1000
filter_cost_per_conversion_adjusted_le
Only return results where
cost_per_conversion_adjusted
is equal or lower than this value.Min value: 1000
filter_cost_per_conversion_ge
Only return results where
cost_per_conversion
is equal or greater than this value.Min value: 1000
filter_cost_per_conversion_le
Only return results where
cost_per_conversion
is equal or lower than this value.Min value: 1000
filter_cost_per_m_view_impressions_ge
Only return results where
cost_per_m_view_impressions
is equal or greater than this value.Min value: 1000
filter_cost_per_m_view_impressions_le
Only return results where
cost_per_m_view_impressions
is equal or lower than this value.Min value: 1000
filter_cost_revenue_ratio_adjusted_ge
Float
Only return results where
cost_revenue_ratio_adjusted
is equal or greater than this value.filter_cost_revenue_ratio_adjusted_le
Float
Only return results where
cost_revenue_ratio_adjusted
is equal or lower than this value.filter_cost_revenue_ratio_clicks_ge
Float
Only return results where
cost_revenue_ratio_clicks
is equal or greater than this value.filter_cost_revenue_ratio_clicks_le
Float
Only return results where
cost_revenue_ratio_clicks
is equal or lower than this value.filter_cost_revenue_ratio_ge
Float
Only return results where
cost_revenue_ratio
is equal or greater than this value.filter_cost_revenue_ratio_le
Float
Only return results where
cost_revenue_ratio
is equal or lower than this value.filter_cost_revenue_total_ratio_ge
Float
Only return results where
cost_revenue_total_ratio
is equal or greater than this value.filter_cost_revenue_total_ratio_le
Float
Only return results where
cost_revenue_total_ratio
is equal or lower than this value.filter_cost_revenue_total_ratio_rolling_avg_ge
Float
Only return results where
cost_revenue_total_ratio_rolling_avg
is equal or greater than this value.filter_cost_revenue_total_ratio_rolling_avg_le
Float
Only return results where
cost_revenue_total_ratio_rolling_avg
is equal or lower than this value.filter_impressions
[ Integer ]
Only return results matching given
impressions
values.filter_impressions_ge
Integer
Only return results where
impressions
is equal or greater than this value.filter_impressions_le
Integer
Only return results where
impressions
is equal or lower than this value.filter_performance_group_enabled
[ Boolean ]
Only return results matching given
performance_group_enabled
values.filter_performance_group_goal_types
Only return results matching given
performance_group_goal_types
values.filter_performance_group_id
[ Integer ]
Only return results matching given
performance_group_id
values.filter_performance_group_name
[ String ]
Only return results matching given
performance_group_name
values.filter_performance_group_optimization_type
[ OptimizationType ]
Only return results matching given
performance_group_optimization_type
values.filter_profit_gross_adjusted_ge
Only return results where
profit_gross_adjusted
is equal or greater than this value.Min value: 1000
filter_profit_gross_adjusted_le
Only return results where
profit_gross_adjusted
is equal or lower than this value.Min value: 1000
filter_profit_gross_ge
Only return results where
profit_gross
is equal or greater than this value.Min value: 1000
filter_profit_gross_le
Only return results where
profit_gross
is equal or lower than this value.Min value: 1000
filter_profit_net_adjusted_ge
Only return results where
profit_net_adjusted
is equal or greater than this value.Min value: 1000
filter_profit_net_adjusted_le
Only return results where
profit_net_adjusted
is equal or lower than this value.Min value: 1000
filter_profit_net_ge
Only return results where
profit_net
is equal or greater than this value.Min value: 1000
filter_profit_net_le
Only return results where
profit_net
is equal or lower than this value.Min value: 1000
filter_return_on_ad_spend_adjusted_ge
Float
Only return results where
return_on_ad_spend_adjusted
is equal or greater than this value.filter_return_on_ad_spend_adjusted_le
Float
Only return results where
return_on_ad_spend_adjusted
is equal or lower than this value.filter_return_on_ad_spend_clicks_ge
Float
Only return results where
return_on_ad_spend_clicks
is equal or greater than this value.filter_return_on_ad_spend_clicks_le
Float
Only return results where
return_on_ad_spend_clicks
is equal or lower than this value.filter_return_on_ad_spend_ge
Float
Only return results where
return_on_ad_spend
is equal or greater than this value.filter_return_on_ad_spend_le
Float
Only return results where
return_on_ad_spend
is equal or lower than this value.filter_return_on_investment_adjusted_ge
Float
Only return results where
return_on_investment_adjusted
is equal or greater than this value.filter_return_on_investment_adjusted_le
Float
Only return results where
return_on_investment_adjusted
is equal or lower than this value.filter_return_on_investment_ge
Float
Only return results where
return_on_investment
is equal or greater than this value.filter_return_on_investment_le
Float
Only return results where
return_on_investment
is equal or lower than this value.filter_revenue_adjusted_ge
Only return results where
revenue_adjusted
is equal or greater than this value.Min value: 1000
filter_revenue_adjusted_le
Only return results where
revenue_adjusted
is equal or lower than this value.Min value: 1000
filter_revenue_clicks_ge
Only return results where
revenue_clicks
is equal or greater than this value.Min value: 1000
filter_revenue_clicks_le
Only return results where
revenue_clicks
is equal or lower than this value.Min value: 1000
filter_revenue_ge
Only return results where
revenue
is equal or greater than this value.Min value: 1000
filter_revenue_le
Only return results where
revenue
is equal or lower than this value.Min value: 1000
filter_revenue_organic_adjusted_ge
Only return results where
revenue_organic_adjusted
is equal or greater than this value.Min value: 1000
filter_revenue_organic_adjusted_le
Only return results where
revenue_organic_adjusted
is equal or lower than this value.Min value: 1000
filter_revenue_organic_ge
Only return results where
revenue_organic
is equal or greater than this value.Min value: 1000
filter_revenue_organic_le
Only return results where
revenue_organic
is equal or lower than this value.Min value: 1000
filter_revenue_per_conversion_adjusted_ge
Only return results where
revenue_per_conversion_adjusted
is equal or greater than this value.Min value: 1000
filter_revenue_per_conversion_adjusted_le
Only return results where
revenue_per_conversion_adjusted
is equal or lower than this value.Min value: 1000
filter_revenue_per_conversion_ge
Only return results where
revenue_per_conversion
is equal or greater than this value.Min value: 1000
filter_revenue_per_conversion_le
Only return results where
revenue_per_conversion
is equal or lower than this value.Min value: 1000
filter_revenue_total_ge
Only return results where
revenue_total
is equal or greater than this value.Min value: 1000
filter_revenue_total_le
Only return results where
revenue_total
is equal or lower than this value.Min value: 1000
filter_revenue_total_rolling_avg_ge
Only return results where
revenue_total_rolling_avg
is equal or greater than this value.Min value: 1000
filter_revenue_total_rolling_avg_le
Only return results where
revenue_total_rolling_avg
is equal or lower than this value.Min value: 1000
filter_view_impressions
[ Integer ]
Only return results matching given
view_impressions
values.filter_view_impressions_ge
Integer
Only return results where
view_impressions
is equal or greater than this value.filter_view_impressions_le
Integer
Only return results where
view_impressions
is equal or lower than this value.search_account_id
String
Only return results where
account_id
matches the given string.search_account_name
String
Only return results where
account_name
matches the given string.search_account_tags_user
String
Only return results where
account_tags_user
matches the given string.search_adspert_account_id
String
Only return results where
adspert_account_id
matches the given string.search_amz_portfolio_id
String
Only return results where
amz_portfolio_id
matches the given string.search_amz_portfolio_name
String
Only return results where
amz_portfolio_name
matches the given string.search_campaign_id
String
Only return results where
campaign_id
matches the given string.search_campaign_labels
String
Only return results where
campaign_labels
matches the given string.search_campaign_name
String
Only return results where
campaign_name
matches the given string.search_performance_group_id
String
Only return results where
performance_group_id
matches the given string.search_performance_group_name
String
Only return results where
performance_group_name
matches the given string.sort_account_id
Sort results by
account_id
.sort_account_is_demo
Sort results by
account_is_demo
.sort_account_name
Sort results by
account_name
.sort_account_optimize
Sort results by
account_optimize
.sort_account_platform
Sort results by
account_platform
.sort_adspert_account_id
Sort results by
adspert_account_id
.sort_adspert_campaign_id
Sort results by
adspert_campaign_id
.sort_adspert_portfolio_id
Sort results by
adspert_portfolio_id
.sort_amz_portfolio_id
Sort results by
amz_portfolio_id
.sort_amz_portfolio_name
Sort results by
amz_portfolio_name
.sort_budget_amount
Sort results by
budget_amount
.sort_budget_coverage
Sort results by
budget_coverage
.sort_campaign_eby_marketplace_id
Sort results by
campaign_eby_marketplace_id
.sort_campaign_id
Sort results by
campaign_id
.sort_campaign_name
Sort results by
campaign_name
.sort_campaign_optimization_support
Sort results by
campaign_optimization_support
.sort_campaign_optimization_type
Sort results by
campaign_optimization_type
.sort_campaign_optimize
Sort results by
campaign_optimize
.sort_campaign_status
Sort results by
campaign_status
.sort_campaign_type
Sort results by
campaign_type
.sort_click_through_rate
Sort results by
click_through_rate
.sort_click_through_rate_clicks
Sort results by
click_through_rate_clicks
.sort_clicks
Sort results by
clicks
.sort_conversion_rate
Sort results by
conversion_rate
.sort_conversion_rate_adjusted
Sort results by
conversion_rate_adjusted
.sort_conversion_rate_clicks
Sort results by
conversion_rate_clicks
.sort_conversions
Sort results by
conversions
.sort_conversions_adjusted
Sort results by
conversions_adjusted
.sort_conversions_clicks
Sort results by
conversions_clicks
.sort_conversions_for_revenue
Sort results by
conversions_for_revenue
.sort_conversions_for_revenue_adjusted
Sort results by
conversions_for_revenue_adjusted
.sort_cost
Sort results by
cost
.sort_cost_for_click
Sort results by
cost_for_click
.sort_cost_for_organic
Sort results by
cost_for_organic
.sort_cost_for_organic_rolling_avg
Sort results by
cost_for_organic_rolling_avg
.sort_cost_for_profit
Sort results by
cost_for_profit
.sort_cost_for_revenue
Sort results by
cost_for_revenue
.sort_cost_for_vcpm
Sort results by
cost_for_vcpm
.sort_cost_per_click
Sort results by
cost_per_click
.sort_cost_per_conversion
Sort results by
cost_per_conversion
.sort_cost_per_conversion_adjusted
Sort results by
cost_per_conversion_adjusted
.sort_cost_per_conversion_clicks
Sort results by
cost_per_conversion_clicks
.sort_cost_per_m_view_impressions
Sort results by
cost_per_m_view_impressions
.sort_cost_revenue_ratio
Sort results by
cost_revenue_ratio
.sort_cost_revenue_ratio_adjusted
Sort results by
cost_revenue_ratio_adjusted
.sort_cost_revenue_ratio_clicks
Sort results by
cost_revenue_ratio_clicks
.sort_cost_revenue_total_ratio
Sort results by
cost_revenue_total_ratio
.sort_cost_revenue_total_ratio_rolling_avg
Sort results by
cost_revenue_total_ratio_rolling_avg
.sort_date
Sort results by
date
.sort_impressions
Sort results by
impressions
.sort_impressions_total
Sort results by
impressions_total
.sort_performance_group_enabled
Sort results by
performance_group_enabled
.sort_performance_group_goal_types
Sort results by
performance_group_goal_types
.sort_performance_group_id
Sort results by
performance_group_id
.sort_performance_group_name
Sort results by
performance_group_name
.sort_performance_group_optimization_type
Sort results by
performance_group_optimization_type
.sort_profit_gross
Sort results by
profit_gross
.sort_profit_gross_adjusted
Sort results by
profit_gross_adjusted
.sort_profit_net
Sort results by
profit_net
.sort_profit_net_adjusted
Sort results by
profit_net_adjusted
.sort_return_on_ad_spend
Sort results by
return_on_ad_spend
.sort_return_on_ad_spend_adjusted
Sort results by
return_on_ad_spend_adjusted
.sort_return_on_ad_spend_clicks
Sort results by
return_on_ad_spend_clicks
.sort_return_on_investment
Sort results by
return_on_investment
.sort_return_on_investment_adjusted
Sort results by
return_on_investment_adjusted
.sort_revenue
Sort results by
revenue
.sort_revenue_adjusted
Sort results by
revenue_adjusted
.sort_revenue_clicks
Sort results by
revenue_clicks
.sort_revenue_organic
Sort results by
revenue_organic
.sort_revenue_organic_adjusted
Sort results by
revenue_organic_adjusted
.sort_revenue_per_conversion
Sort results by
revenue_per_conversion
.sort_revenue_per_conversion_adjusted
Sort results by
revenue_per_conversion_adjusted
.sort_revenue_total
Sort results by
revenue_total
.sort_revenue_total_rolling_avg
Sort results by
revenue_total_rolling_avg
.sort_view_impressions
Sort results by
view_impressions
.Response Data (object list, json or csv or xlsx)
Name
Type
Description
date
adspert_account_id
searchable
Integer
Adspert internal ID of the advertising account
account_id
searchable
String
Ad platform specific ID of an advertising account.
account_name
searchable
String
account_platform
The account’s advertising platform.
account_optimize
Boolean
If optimization by Adspert is enabled for this account.
account_tags_user
searchable
[ String ]
account_is_demo
Boolean
If the account is a generated account for demonstration purposes.
Demo accounts have no counterpart in the ad platform.
performance_group_id
searchable
Integer
Unique ID of the performance group
performance_group_name
searchable
String
Unique name of the performance group.
performance_group_enabled
Boolean
performance_group_optimization_type
Optimization type of the performance group.
Only campaigns of the same optimization type can be added to a given performance group.
performance_group_goals
[ Object ]
List of performance group goals
⤷
goal_type
Type of the performance group goal
⤷
goal_value
Float
Value of the performance group goal.
goal_value
should beNULL
ifgoal_type
isPROFIT-MAXIMIZATION
.goal_value
should be a ratio (> 0) ifgoal_type
isROAS
,CRR
andROI
,goal_value
should be specified in micros and be larger than 10000 ifgoal_type
isCOST-PER-DAY
,COST-PER-CONVERSION
andCOST-PER-CLICK
.⤷
goal_currency
Currency of the performance group goal.
Currency is required for
COST-PER-DAY
,COST-PER-CONVERSION
andCOST-PER-CLICK
goals.⤷
goal_micros
Value for
COST-PER-DAY
,COST-PER-CONVERSION
andCOST-PER-CLICK
goals.Same as
goal_value
, but in a properly typed field for easier client-side handling and improved representation in tabular response data like CSV.⤷
goal_ratio
Float
Value for
ROAS
,CRR
andROI
goals.Same as
goal_value
, but in a properly typed field for easier client-side handling and improved representation in tabular response data like CSV.performance_group_goal_types
List of performance group goal types
performance_group_platforms
[ AdPlatform ]
List of platforms that PG runs on.
NULL when grouped by
date
,account
,amz_portfolio
performance_group_user_max_bid
Object
Max bid for the performance group or campaign
⤷
micros
Monetary value in micros.
⤷
currency
Currency of the monetary value.
adspert_portfolio_id
Adspert internal ID of Amazon portfolio.
Composite ID specification:
{adspert_account_id}:{portfolio_id}
amz_portfolio_id
searchable
amz_portfolio_name
searchable
String
adspert_campaign_id
Adspert internal ID of the campaign.
Composite ID specification:
{adspert_account_id}:{campaign_id}
campaign_id
searchable
campaign_name
searchable
String
campaign_type
campaign_eby_marketplace_id
String
campaign_status
campaign_optimize
Boolean
campaign_optimization_type
campaign_optimization_support
campaign_labels
searchable
[ String ]
campaign_user_max_bid
Object
Max bid for the performance group or campaign
⤷
micros
Monetary value in micros.
⤷
currency
Currency of the monetary value.
impressions
Integer
Number of impressions
view_impressions
Integer
Number of viewable impressions
impressions_total
Integer
Number of total impressions, For vcpm, viewable impressions and impressions for all other campaigns.
Should be used internally.
clicks
Integer
Number of clicks
conversions
Float
Number of conversions including view impressions.
Always 0 for click optimized campaigns.
conversions_clicks
Float
Number of conversions from clicks only
Valid only for vCPM campaigns. For non-vCPM campaigns, this is the same as
conversions
.conversions_adjusted
Float
Number of conversions adjusted for conversion delay.
Always 0 for click optimized campaigns.
conversions_for_revenue
Float
Number of conversions for campaigns that support revenues.
Always 0 for campaigns that don’t support revenue.
conversions_for_revenue_adjusted
Float
Number of conversions for campaigns that support revenues adjusted for conversion delay.
Always 0 for campaigns that don’t support revenue.
profit_gross
Gross profit.
Always 0 for click and revenue optimized campaigns.
profit_gross_adjusted
Gross profit adjusted for conversion delay.
Always 0 for click and revenue optimized campaigns.
profit_net
Net profit.
profit_gross
-cost_for_profit
Always 0 for click and revenue optimized campaigns.
profit_net_adjusted
Net profit adjusted for conversion delay.
profit_gross_adjusted
-cost_for_profit
Always 0 for click and revenue optimized campaigns.
revenue
Revenue/sales.
Always 0 for click and profit optimized campaigns.
revenue_clicks
Revenue/sales from clicks only.
Valid only for vCPM campaigns. For non-vCPM campaigns, this is the same as
revenue
.revenue_adjusted
Revenue/sales adjusted for conversion delay.
Always 0 for click and profit optimized campaigns.
revenue_total
Total revenue (organic + paid sales).
This is only available on account-level and includes only revenue from ad accounts for which organic performance data is available (Amazon Ads).
revenue_total_rolling_avg
Same as
revenue_total
but as a 7-day rolling average.revenue_organic
Organic revenue
This is only available on account-level and includes only revenue from ad accounts for which organic performance data is available (Amazon Ads).
revenue_organic_adjusted
Organic revenue adjusted for conversion delay
This is only available on account-level and includes only revenue from ad accounts for which organic performance data is available (Amazon Ads).
budget_amount
This field is
null
by default, unless explicitly mentioned ininclude
query param. Furthermore, it is only available when grouping by date.cost
Total ad spend / cost
cost_for_profit
Ad spend from campaigns that support profit.
Always 0 for campaigns that don’t support profit.
cost_for_revenue
Ad spend from campaigns that support revenue.
Always 0 for campaigns that don’t support revenue.
cost_for_click
Ad spend / cost from click optimized campaigns.
Always 0 for revenue and profit optimized campaigns.
cost_for_vcpm
Ad spend from vcpm optimized campaigns.
Always 0 for campaigns that aren’t vcpm optimized.
cost_for_organic
Ad spend from campaigns in ad accounts for which organic performance data is available (relevant for TACoS metric).
Always 0 for campaigns in ad accounts w/o organic performance data.
cost_for_organic_rolling_avg
Same as
cost_for_organic
but as a 7-day rolling average.cost_per_click
Effective CPC.
cost
/clicks
NULL if number of
clicks
is 0.cost_per_m_view_impressions
Cost per mille viewable impressions. Valid only for vCPM campaigns.
cost
/view_impressions
NULL if number of
view_impressions
is 0.cost_per_conversion
Cost per conversion.
Only cost for profit and revenue optimized campaigns is included.
(
cost
-cost_for_click
) /conversions
NULL if number of
conversions
is 0.cost_per_conversion_clicks
Cost per conversion from clicks only.
Valid only for vCPM campaigns. For non-vCPM campaigns, this is the same as
cost_per_conversion
.NULL if number of
conversions
is 0.cost_per_conversion_adjusted
Cost per conversion, adjusted for conversion delay.
Only cost for profit and revenue optimized campaigns is included.
(
cost
-cost_for_click
) /conversions_adjusted
NULL if number of
conversions_adjusted
is 0.conversion_rate
Float
Conversion rate.
conversions
/clicks
NULL if number of
clicks
is 0.conversion_rate_clicks
Float
Conversion rate from clicks only.
Valid only for vCPM campaigns. For non-vCPM campaigns, this is the same as
conversion_rate
.view_conversions
/clicks
NULL if number of
clicks
is 0.conversion_rate_adjusted
Float
Conversion rate, adjusted for conversion delay.
conversions_adjusted
/clicks
NULL if number of
clicks
is 0.click_through_rate
Float
Clickthrough rate (CTR).
clicks
/impressions
NULL if number of
impressions
is 0.click_through_rate_clicks
Float
Clickthrough rate (CTR) from clicks only.
Valid only for vCPM campaigns. For non-vCPM campaigns, this is the same as
click_through_rate
.clicks
/view_impressions
NULL if number of
view_impressions
is 0.return_on_investment
Float
Return on investment (ROI).
Only cost for profit optimized campaigns is included.
profit_gross
/cost_for_profit
NULL if
cost_for_profit
is 0.return_on_investment_adjusted
Float
Return on investment (ROI), adjusted for conversion delay.
Only cost for profit optimized campaigns is included.
profit_gross_adjusted
/cost_for_profit
NULL if
cost_for_profit
is 0.return_on_ad_spend
Float
Return on ad spend (ROAS).
Only cost for revenue optimized campaigns is included.
revenue
/cost_for_revenue
NULL if
cost_for_revenue
is 0.return_on_ad_spend_clicks
Float
Return on ad spend (ROAS).
Valid only for vCPM campaigns. For non-vCPM campaigns, this is the same as
return_on_ad_spend
.revenue
/cost_for_revenue
NULL if
cost_for_revenue
is 0.return_on_ad_spend_adjusted
Float
Return on ad spend (ROAS), adjusted for conversion delay.
Only cost for revenue optimized campaigns is included.
revenue_adjusted
/cost_for_revenue
NULL if
cost_for_revenue
is 0.cost_revenue_ratio
Float
Cost Revenue Ratio (CRR).
Also called Advertising Cost of Sale (ACoS).
Only cost for revenue optimized campaigns is included.
cost_for_revenue
/revenue
NULL if
revenue
is 0.cost_revenue_ratio_clicks
Float
Cost Revenue Ratio (CRR) from clicks only.
Valid only for vCPM campaigns. For non-vCPM campaigns, this is the same as
cost_revenue_ratio
.Also called Advertising Cost of Sale (ACoS).
cost_for_revenue
/revenue_clicks
NULL if
revenue_clicks
is 0.cost_revenue_ratio_adjusted
Float
Cost Revenue Ratio (CRR), adjusted for conversion delay.
Also called Advertising Cost of Sale (ACoS).
Only cost for revenue optimized campaigns is included.
cost_for_revenue
/revenue_adjusted
NULL if
cost_for_revenue
is 0.cost_revenue_total_ratio
Float
Total Cost Revenue Ratio (CRR), including organic revenue, a.k.a. Total Advertising Cost of Sale (TACoS).
This is only available on account-level and includes only revenue and cost from ad accounts for which organic performance data is available (Amazon Ads).
NULL if
revenue_total
is 0.cost_revenue_total_ratio_rolling_avg
Float
Same as
cost_revenue_total_ratio
but as a 7-day rolling average.NULL if
total_revenue_rolling_avg
is 0.revenue_per_conversion
Revenue per conversions.
Only revenue and conversions for revenue supporting campaigns are included.
revenue
/conversions_for_revenue
NULL if campaign doesn’t support revenue.
revenue_per_conversion_adjusted
Revenue per conversions adjusted for conversion delay.
Only revenue and conversions for revenue supporting campaigns are included.
revenue_adjusted
/conversions_for_revenue_adjusted
NULL if campaign doesn’t support revenue.
budget_coverage
Float
This field is
null
by default, unless explicitly mentioned ininclude
query param. Furthermore, it is only available when grouping by date.has_vcpm
Boolean
Whether the grouped-by entity has any campaigns with vCPM enabled.
Example
POST /v3/customers/7027038674/performance HTTP/1.1 Host: api.adspert.net Accept: application/json Content-Type: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5... { "search_fields": [ "pariatur.adlora" ], "search_term": "vehicula ipsum", "offset": 0, "limit": 10, "include": [ "ipsum.amet" ], "exclude": [ "elit.amet" ], "group_by": "ACCOUNT", "filter_date_ge": "2018-10-21", "filter_date_le": "2018-10-21", "currency": "AED", "filter_account_id": [ "amet lorem" ], "filter_account_is_demo": [ true ], "filter_account_name": [ "vehicula ipsum" ], "filter_account_optimize": [ true ], "filter_account_platform": [ "AMAZON" ], "filter_account_tags_user": [ "vehicula amet" ], "filter_adspert_account_id": [ 3420379091 ], "filter_adspert_campaign_id": [ "123:80" ], "filter_adspert_portfolio_id": [ "123:23" ], "filter_amz_portfolio_name": [ "elit adlora" ], "filter_budget_amount_ge": 5510000, "filter_budget_amount_le": 7120000, "filter_budget_coverage_ge": 14.43, "filter_budget_coverage_le": 1.75, "filter_campaign_eby_marketplace_id": [ "amet pariatur" ], "filter_campaign_labels": [ "ipsum dolor" ], "filter_campaign_name": [ "sit ipsum" ], "filter_campaign_optimization_support": [ "SUPPORTED" ], "filter_campaign_optimization_type": [ "CLICK" ], "filter_campaign_optimize": [ true ], "filter_campaign_status": [ "ACTIVE" ], "filter_campaign_type": [ "AMAZON-SPONSORED-BRANDS" ], "filter_click_through_rate_clicks_ge": 1.03, "filter_click_through_rate_clicks_le": 15.43, "filter_click_through_rate_ge": 3.91, "filter_click_through_rate_le": 9.53, "filter_clicks": [ 5857268080 ], "filter_clicks_ge": 6848626767, "filter_clicks_le": 4787837344, "filter_conversion_rate_adjusted_ge": 2.14, "filter_conversion_rate_adjusted_le": 5.88, "filter_conversion_rate_clicks_ge": 11.5, "filter_conversion_rate_clicks_le": 16.88, "filter_conversion_rate_ge": 6.44, "filter_conversion_rate_le": 7.8, "filter_conversions_adjusted_ge": 14.26, "filter_conversions_adjusted_le": 0.41, "filter_conversions_clicks_ge": 15.11, "filter_conversions_clicks_le": 9.22, "filter_conversions_for_revenue_adjusted_ge": 12.69, "filter_conversions_for_revenue_adjusted_le": 15.15, "filter_conversions_for_revenue_ge": 17.0, "filter_conversions_for_revenue_le": 11.47, "filter_conversions_ge": 8.67, "filter_conversions_le": 10.95, "filter_cost_for_click_ge": 9160000, "filter_cost_for_click_le": 8080000, "filter_cost_for_organic_ge": 4179999, "filter_cost_for_organic_le": 4350000, "filter_cost_for_organic_rolling_avg_ge": 2470000, "filter_cost_for_organic_rolling_avg_le": 7900000, "filter_cost_for_profit_ge": 7740000, "filter_cost_for_profit_le": 9630000, "filter_cost_for_revenue_ge": 9300000, "filter_cost_for_revenue_le": 4370000, "filter_cost_for_vcpm_ge": 2160000, "filter_cost_for_vcpm_le": 4990000, "filter_cost_ge": 4630000, "filter_cost_le": 3590000, "filter_cost_per_click_ge": 6110000, "filter_cost_per_click_le": 6500000, "filter_cost_per_conversion_adjusted_ge": 5290000, "filter_cost_per_conversion_adjusted_le": 2350000, "filter_cost_per_conversion_ge": 9650000, "filter_cost_per_conversion_le": 9820000, "filter_cost_per_m_view_impressions_ge": 1710000, "filter_cost_per_m_view_impressions_le": 870000, "filter_cost_revenue_ratio_adjusted_ge": 0.62, "filter_cost_revenue_ratio_adjusted_le": 11.89, "filter_cost_revenue_ratio_clicks_ge": 15.78, "filter_cost_revenue_ratio_clicks_le": 19.65, "filter_cost_revenue_ratio_ge": 4.23, "filter_cost_revenue_ratio_le": 7.67, "filter_cost_revenue_total_ratio_ge": 16.36, "filter_cost_revenue_total_ratio_le": 11.24, "filter_cost_revenue_total_ratio_rolling_avg_ge": 5.58, "filter_cost_revenue_total_ratio_rolling_avg_le": 9.25, "filter_impressions": [ 2157218327 ], "filter_impressions_ge": 2586369292, "filter_impressions_le": 1895730553, "filter_performance_group_enabled": [ true ], "filter_performance_group_goal_types": [ "CLICKS-PER-DAY" ], "filter_performance_group_id": [ 6668648308 ], "filter_performance_group_name": [ "dolor sit" ], "filter_performance_group_optimization_type": [ "CLICK" ], "filter_profit_gross_adjusted_ge": 7970000, "filter_profit_gross_adjusted_le": 8130000, "filter_profit_gross_ge": 7910000, "filter_profit_gross_le": 9520000, "filter_profit_net_adjusted_ge": 7160000, "filter_profit_net_adjusted_le": 8470000, "filter_profit_net_ge": 8640000, "filter_profit_net_le": 7290000, "filter_return_on_ad_spend_adjusted_ge": 14.05, "filter_return_on_ad_spend_adjusted_le": 6.06, "filter_return_on_ad_spend_clicks_ge": 0.19, "filter_return_on_ad_spend_clicks_le": 3.35, "filter_return_on_ad_spend_ge": 18.33, "filter_return_on_ad_spend_le": 11.53, "filter_return_on_investment_adjusted_ge": 2.03, "filter_return_on_investment_adjusted_le": 7.11, "filter_return_on_investment_ge": 1.24, "filter_return_on_investment_le": 5.79, "filter_revenue_adjusted_ge": 7810000, "filter_revenue_adjusted_le": 7490000, "filter_revenue_clicks_ge": 7060000, "filter_revenue_clicks_le": 790000, "filter_revenue_ge": 8770000, "filter_revenue_le": 440000, "filter_revenue_organic_adjusted_ge": 5130000, "filter_revenue_organic_adjusted_le": 4580000, "filter_revenue_organic_ge": 2020000, "filter_revenue_organic_le": 5170000, "filter_revenue_per_conversion_adjusted_ge": 440000, "filter_revenue_per_conversion_adjusted_le": 6610000, "filter_revenue_per_conversion_ge": 4290000, "filter_revenue_per_conversion_le": 3450000, "filter_revenue_total_ge": 8660000, "filter_revenue_total_le": 2740000, "filter_revenue_total_rolling_avg_ge": 520000, "filter_revenue_total_rolling_avg_le": 110000, "filter_view_impressions": [ 4923863656 ], "filter_view_impressions_ge": 7156486767, "filter_view_impressions_le": 6902527976, "search_account_id": "elit dolor", "search_account_name": "sit tucan", "search_account_tags_user": "dolor elit", "search_adspert_account_id": "dolor vehicula", "search_amz_portfolio_id": "tucan adlora", "search_amz_portfolio_name": "lorem tucan", "search_campaign_id": "dolor amet", "search_campaign_labels": "dolor ipsum", "search_campaign_name": "lorem tucan", "search_performance_group_id": "ipsum lorem", "search_performance_group_name": "tucan lorem", "sort_account_id": 7, "sort_account_is_demo": -6, "sort_account_name": 5, "sort_account_optimize": 0, "sort_account_platform": 3, "sort_adspert_account_id": -2, "sort_adspert_campaign_id": 9, "sort_adspert_portfolio_id": -8, "sort_amz_portfolio_id": -2, "sort_amz_portfolio_name": -6, "sort_budget_amount": 5, "sort_budget_coverage": 5, "sort_campaign_eby_marketplace_id": 3, "sort_campaign_id": 9, "sort_campaign_name": 5, "sort_campaign_optimization_support": 0, "sort_campaign_optimization_type": -4, "sort_campaign_optimize": 7, "sort_campaign_status": -6, "sort_campaign_type": -6, "sort_click_through_rate": -8, "sort_click_through_rate_clicks": 1, "sort_clicks": 1, "sort_conversion_rate": 5, "sort_conversion_rate_adjusted": 3, "sort_conversion_rate_clicks": 1, "sort_conversions": 9, "sort_conversions_adjusted": -6, "sort_conversions_clicks": 1, "sort_conversions_for_revenue": -4, "sort_conversions_for_revenue_adjusted": -2, "sort_cost": -8, "sort_cost_for_click": -8, "sort_cost_for_organic": 3, "sort_cost_for_organic_rolling_avg": -2, "sort_cost_for_profit": -6, "sort_cost_for_revenue": -4, "sort_cost_for_vcpm": 3, "sort_cost_per_click": -4, "sort_cost_per_conversion": 3, "sort_cost_per_conversion_adjusted": 0, "sort_cost_per_conversion_clicks": 5, "sort_cost_per_m_view_impressions": 5, "sort_cost_revenue_ratio": -2, "sort_cost_revenue_ratio_adjusted": -2, "sort_cost_revenue_ratio_clicks": -4, "sort_cost_revenue_total_ratio": 3, "sort_cost_revenue_total_ratio_rolling_avg": 5, "sort_date": -6, "sort_impressions": 1, "sort_impressions_total": -6, "sort_performance_group_enabled": 7, "sort_performance_group_goal_types": 7, "sort_performance_group_id": 7, "sort_performance_group_name": -6, "sort_performance_group_optimization_type": 1, "sort_profit_gross": -8, "sort_profit_gross_adjusted": 9, "sort_profit_net": 9, "sort_profit_net_adjusted": 1, "sort_return_on_ad_spend": -4, "sort_return_on_ad_spend_adjusted": -4, "sort_return_on_ad_spend_clicks": 5, "sort_return_on_investment": 0, "sort_return_on_investment_adjusted": 3, "sort_revenue": 1, "sort_revenue_adjusted": -8, "sort_revenue_clicks": -2, "sort_revenue_organic": 3, "sort_revenue_organic_adjusted": 1, "sort_revenue_per_conversion": 3, "sort_revenue_per_conversion_adjusted": -4, "sort_revenue_total": -6, "sort_revenue_total_rolling_avg": 1, "sort_view_impressions": 9 }
curl -i -X POST https://api.adspert.net/v3/customers/7027038674/performance -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..." --data-raw '{"currency": "AED", "exclude": ["elit.amet"], "filter_account_id": ["amet lorem"], "filter_account_is_demo": [true], "filter_account_name": ["vehicula ipsum"], "filter_account_optimize": [true], "filter_account_platform": ["AMAZON"], "filter_account_tags_user": ["vehicula amet"], "filter_adspert_account_id": [3420379091], "filter_adspert_campaign_id": ["123:80"], "filter_adspert_portfolio_id": ["123:23"], "filter_amz_portfolio_name": ["elit adlora"], "filter_budget_amount_ge": 5510000, "filter_budget_amount_le": 7120000, "filter_budget_coverage_ge": 14.43, "filter_budget_coverage_le": 1.75, "filter_campaign_eby_marketplace_id": ["amet pariatur"], "filter_campaign_labels": ["ipsum dolor"], "filter_campaign_name": ["sit ipsum"], "filter_campaign_optimization_support": ["SUPPORTED"], "filter_campaign_optimization_type": ["CLICK"], "filter_campaign_optimize": [true], "filter_campaign_status": ["ACTIVE"], "filter_campaign_type": ["AMAZON-SPONSORED-BRANDS"], "filter_click_through_rate_clicks_ge": 1.03, "filter_click_through_rate_clicks_le": 15.43, "filter_click_through_rate_ge": 3.91, "filter_click_through_rate_le": 9.53, "filter_clicks": [5857268080], "filter_clicks_ge": 6848626767, "filter_clicks_le": 4787837344, "filter_conversion_rate_adjusted_ge": 2.14, "filter_conversion_rate_adjusted_le": 5.88, "filter_conversion_rate_clicks_ge": 11.5, "filter_conversion_rate_clicks_le": 16.88, "filter_conversion_rate_ge": 6.44, "filter_conversion_rate_le": 7.8, "filter_conversions_adjusted_ge": 14.26, "filter_conversions_adjusted_le": 0.41, "filter_conversions_clicks_ge": 15.11, "filter_conversions_clicks_le": 9.22, "filter_conversions_for_revenue_adjusted_ge": 12.69, "filter_conversions_for_revenue_adjusted_le": 15.15, "filter_conversions_for_revenue_ge": 17.0, "filter_conversions_for_revenue_le": 11.47, "filter_conversions_ge": 8.67, "filter_conversions_le": 10.95, "filter_cost_for_click_ge": 9160000, "filter_cost_for_click_le": 8080000, "filter_cost_for_organic_ge": 4179999, "filter_cost_for_organic_le": 4350000, "filter_cost_for_organic_rolling_avg_ge": 2470000, "filter_cost_for_organic_rolling_avg_le": 7900000, "filter_cost_for_profit_ge": 7740000, "filter_cost_for_profit_le": 9630000, "filter_cost_for_revenue_ge": 9300000, "filter_cost_for_revenue_le": 4370000, "filter_cost_for_vcpm_ge": 2160000, "filter_cost_for_vcpm_le": 4990000, "filter_cost_ge": 4630000, "filter_cost_le": 3590000, "filter_cost_per_click_ge": 6110000, "filter_cost_per_click_le": 6500000, "filter_cost_per_conversion_adjusted_ge": 5290000, "filter_cost_per_conversion_adjusted_le": 2350000, "filter_cost_per_conversion_ge": 9650000, "filter_cost_per_conversion_le": 9820000, "filter_cost_per_m_view_impressions_ge": 1710000, "filter_cost_per_m_view_impressions_le": 870000, "filter_cost_revenue_ratio_adjusted_ge": 0.62, "filter_cost_revenue_ratio_adjusted_le": 11.89, "filter_cost_revenue_ratio_clicks_ge": 15.78, "filter_cost_revenue_ratio_clicks_le": 19.65, "filter_cost_revenue_ratio_ge": 4.23, "filter_cost_revenue_ratio_le": 7.67, "filter_cost_revenue_total_ratio_ge": 16.36, "filter_cost_revenue_total_ratio_le": 11.24, "filter_cost_revenue_total_ratio_rolling_avg_ge": 5.58, "filter_cost_revenue_total_ratio_rolling_avg_le": 9.25, "filter_date_ge": "2018-10-21", "filter_date_le": "2018-10-21", "filter_impressions": [2157218327], "filter_impressions_ge": 2586369292, "filter_impressions_le": 1895730553, "filter_performance_group_enabled": [true], "filter_performance_group_goal_types": ["CLICKS-PER-DAY"], "filter_performance_group_id": [6668648308], "filter_performance_group_name": ["dolor sit"], "filter_performance_group_optimization_type": ["CLICK"], "filter_profit_gross_adjusted_ge": 7970000, "filter_profit_gross_adjusted_le": 8130000, "filter_profit_gross_ge": 7910000, "filter_profit_gross_le": 9520000, "filter_profit_net_adjusted_ge": 7160000, "filter_profit_net_adjusted_le": 8470000, "filter_profit_net_ge": 8640000, "filter_profit_net_le": 7290000, "filter_return_on_ad_spend_adjusted_ge": 14.05, "filter_return_on_ad_spend_adjusted_le": 6.06, "filter_return_on_ad_spend_clicks_ge": 0.19, "filter_return_on_ad_spend_clicks_le": 3.35, "filter_return_on_ad_spend_ge": 18.33, "filter_return_on_ad_spend_le": 11.53, "filter_return_on_investment_adjusted_ge": 2.03, "filter_return_on_investment_adjusted_le": 7.11, "filter_return_on_investment_ge": 1.24, "filter_return_on_investment_le": 5.79, "filter_revenue_adjusted_ge": 7810000, "filter_revenue_adjusted_le": 7490000, "filter_revenue_clicks_ge": 7060000, "filter_revenue_clicks_le": 790000, "filter_revenue_ge": 8770000, "filter_revenue_le": 440000, "filter_revenue_organic_adjusted_ge": 5130000, "filter_revenue_organic_adjusted_le": 4580000, "filter_revenue_organic_ge": 2020000, "filter_revenue_organic_le": 5170000, "filter_revenue_per_conversion_adjusted_ge": 440000, "filter_revenue_per_conversion_adjusted_le": 6610000, "filter_revenue_per_conversion_ge": 4290000, "filter_revenue_per_conversion_le": 3450000, "filter_revenue_total_ge": 8660000, "filter_revenue_total_le": 2740000, "filter_revenue_total_rolling_avg_ge": 520000, "filter_revenue_total_rolling_avg_le": 110000, "filter_view_impressions": [4923863656], "filter_view_impressions_ge": 7156486767, "filter_view_impressions_le": 6902527976, "group_by": "ACCOUNT", "include": ["ipsum.amet"], "limit": 10, "offset": 0, "search_account_id": "elit dolor", "search_account_name": "sit tucan", "search_account_tags_user": "dolor elit", "search_adspert_account_id": "dolor vehicula", "search_amz_portfolio_id": "tucan adlora", "search_amz_portfolio_name": "lorem tucan", "search_campaign_id": "dolor amet", "search_campaign_labels": "dolor ipsum", "search_campaign_name": "lorem tucan", "search_fields": ["pariatur.adlora"], "search_performance_group_id": "ipsum lorem", "search_performance_group_name": "tucan lorem", "search_term": "vehicula ipsum", "sort_account_id": 7, "sort_account_is_demo": -6, "sort_account_name": 5, "sort_account_optimize": 0, "sort_account_platform": 3, "sort_adspert_account_id": -2, "sort_adspert_campaign_id": 9, "sort_adspert_portfolio_id": -8, "sort_amz_portfolio_id": -2, "sort_amz_portfolio_name": -6, "sort_budget_amount": 5, "sort_budget_coverage": 5, "sort_campaign_eby_marketplace_id": 3, "sort_campaign_id": 9, "sort_campaign_name": 5, "sort_campaign_optimization_support": 0, "sort_campaign_optimization_type": -4, "sort_campaign_optimize": 7, "sort_campaign_status": -6, "sort_campaign_type": -6, "sort_click_through_rate": -8, "sort_click_through_rate_clicks": 1, "sort_clicks": 1, "sort_conversion_rate": 5, "sort_conversion_rate_adjusted": 3, "sort_conversion_rate_clicks": 1, "sort_conversions": 9, "sort_conversions_adjusted": -6, "sort_conversions_clicks": 1, "sort_conversions_for_revenue": -4, "sort_conversions_for_revenue_adjusted": -2, "sort_cost": -8, "sort_cost_for_click": -8, "sort_cost_for_organic": 3, "sort_cost_for_organic_rolling_avg": -2, "sort_cost_for_profit": -6, "sort_cost_for_revenue": -4, "sort_cost_for_vcpm": 3, "sort_cost_per_click": -4, "sort_cost_per_conversion": 3, "sort_cost_per_conversion_adjusted": 0, "sort_cost_per_conversion_clicks": 5, "sort_cost_per_m_view_impressions": 5, "sort_cost_revenue_ratio": -2, "sort_cost_revenue_ratio_adjusted": -2, "sort_cost_revenue_ratio_clicks": -4, "sort_cost_revenue_total_ratio": 3, "sort_cost_revenue_total_ratio_rolling_avg": 5, "sort_date": -6, "sort_impressions": 1, "sort_impressions_total": -6, "sort_performance_group_enabled": 7, "sort_performance_group_goal_types": 7, "sort_performance_group_id": 7, "sort_performance_group_name": -6, "sort_performance_group_optimization_type": 1, "sort_profit_gross": -8, "sort_profit_gross_adjusted": 9, "sort_profit_net": 9, "sort_profit_net_adjusted": 1, "sort_return_on_ad_spend": -4, "sort_return_on_ad_spend_adjusted": -4, "sort_return_on_ad_spend_clicks": 5, "sort_return_on_investment": 0, "sort_return_on_investment_adjusted": 3, "sort_revenue": 1, "sort_revenue_adjusted": -8, "sort_revenue_clicks": -2, "sort_revenue_organic": 3, "sort_revenue_organic_adjusted": 1, "sort_revenue_per_conversion": 3, "sort_revenue_per_conversion_adjusted": -4, "sort_revenue_total": -6, "sort_revenue_total_rolling_avg": 1, "sort_view_impressions": 9}'
echo '{ "currency": "AED", "exclude": [ "elit.amet" ], "filter_account_id": [ "amet lorem" ], "filter_account_is_demo": [ true ], "filter_account_name": [ "vehicula ipsum" ], "filter_account_optimize": [ true ], "filter_account_platform": [ "AMAZON" ], "filter_account_tags_user": [ "vehicula amet" ], "filter_adspert_account_id": [ 3420379091 ], "filter_adspert_campaign_id": [ "123:80" ], "filter_adspert_portfolio_id": [ "123:23" ], "filter_amz_portfolio_name": [ "elit adlora" ], "filter_budget_amount_ge": 5510000, "filter_budget_amount_le": 7120000, "filter_budget_coverage_ge": 14.43, "filter_budget_coverage_le": 1.75, "filter_campaign_eby_marketplace_id": [ "amet pariatur" ], "filter_campaign_labels": [ "ipsum dolor" ], "filter_campaign_name": [ "sit ipsum" ], "filter_campaign_optimization_support": [ "SUPPORTED" ], "filter_campaign_optimization_type": [ "CLICK" ], "filter_campaign_optimize": [ true ], "filter_campaign_status": [ "ACTIVE" ], "filter_campaign_type": [ "AMAZON-SPONSORED-BRANDS" ], "filter_click_through_rate_clicks_ge": 1.03, "filter_click_through_rate_clicks_le": 15.43, "filter_click_through_rate_ge": 3.91, "filter_click_through_rate_le": 9.53, "filter_clicks": [ 5857268080 ], "filter_clicks_ge": 6848626767, "filter_clicks_le": 4787837344, "filter_conversion_rate_adjusted_ge": 2.14, "filter_conversion_rate_adjusted_le": 5.88, "filter_conversion_rate_clicks_ge": 11.5, "filter_conversion_rate_clicks_le": 16.88, "filter_conversion_rate_ge": 6.44, "filter_conversion_rate_le": 7.8, "filter_conversions_adjusted_ge": 14.26, "filter_conversions_adjusted_le": 0.41, "filter_conversions_clicks_ge": 15.11, "filter_conversions_clicks_le": 9.22, "filter_conversions_for_revenue_adjusted_ge": 12.69, "filter_conversions_for_revenue_adjusted_le": 15.15, "filter_conversions_for_revenue_ge": 17.0, "filter_conversions_for_revenue_le": 11.47, "filter_conversions_ge": 8.67, "filter_conversions_le": 10.95, "filter_cost_for_click_ge": 9160000, "filter_cost_for_click_le": 8080000, "filter_cost_for_organic_ge": 4179999, "filter_cost_for_organic_le": 4350000, "filter_cost_for_organic_rolling_avg_ge": 2470000, "filter_cost_for_organic_rolling_avg_le": 7900000, "filter_cost_for_profit_ge": 7740000, "filter_cost_for_profit_le": 9630000, "filter_cost_for_revenue_ge": 9300000, "filter_cost_for_revenue_le": 4370000, "filter_cost_for_vcpm_ge": 2160000, "filter_cost_for_vcpm_le": 4990000, "filter_cost_ge": 4630000, "filter_cost_le": 3590000, "filter_cost_per_click_ge": 6110000, "filter_cost_per_click_le": 6500000, "filter_cost_per_conversion_adjusted_ge": 5290000, "filter_cost_per_conversion_adjusted_le": 2350000, "filter_cost_per_conversion_ge": 9650000, "filter_cost_per_conversion_le": 9820000, "filter_cost_per_m_view_impressions_ge": 1710000, "filter_cost_per_m_view_impressions_le": 870000, "filter_cost_revenue_ratio_adjusted_ge": 0.62, "filter_cost_revenue_ratio_adjusted_le": 11.89, "filter_cost_revenue_ratio_clicks_ge": 15.78, "filter_cost_revenue_ratio_clicks_le": 19.65, "filter_cost_revenue_ratio_ge": 4.23, "filter_cost_revenue_ratio_le": 7.67, "filter_cost_revenue_total_ratio_ge": 16.36, "filter_cost_revenue_total_ratio_le": 11.24, "filter_cost_revenue_total_ratio_rolling_avg_ge": 5.58, "filter_cost_revenue_total_ratio_rolling_avg_le": 9.25, "filter_date_ge": "2018-10-21", "filter_date_le": "2018-10-21", "filter_impressions": [ 2157218327 ], "filter_impressions_ge": 2586369292, "filter_impressions_le": 1895730553, "filter_performance_group_enabled": [ true ], "filter_performance_group_goal_types": [ "CLICKS-PER-DAY" ], "filter_performance_group_id": [ 6668648308 ], "filter_performance_group_name": [ "dolor sit" ], "filter_performance_group_optimization_type": [ "CLICK" ], "filter_profit_gross_adjusted_ge": 7970000, "filter_profit_gross_adjusted_le": 8130000, "filter_profit_gross_ge": 7910000, "filter_profit_gross_le": 9520000, "filter_profit_net_adjusted_ge": 7160000, "filter_profit_net_adjusted_le": 8470000, "filter_profit_net_ge": 8640000, "filter_profit_net_le": 7290000, "filter_return_on_ad_spend_adjusted_ge": 14.05, "filter_return_on_ad_spend_adjusted_le": 6.06, "filter_return_on_ad_spend_clicks_ge": 0.19, "filter_return_on_ad_spend_clicks_le": 3.35, "filter_return_on_ad_spend_ge": 18.33, "filter_return_on_ad_spend_le": 11.53, "filter_return_on_investment_adjusted_ge": 2.03, "filter_return_on_investment_adjusted_le": 7.11, "filter_return_on_investment_ge": 1.24, "filter_return_on_investment_le": 5.79, "filter_revenue_adjusted_ge": 7810000, "filter_revenue_adjusted_le": 7490000, "filter_revenue_clicks_ge": 7060000, "filter_revenue_clicks_le": 790000, "filter_revenue_ge": 8770000, "filter_revenue_le": 440000, "filter_revenue_organic_adjusted_ge": 5130000, "filter_revenue_organic_adjusted_le": 4580000, "filter_revenue_organic_ge": 2020000, "filter_revenue_organic_le": 5170000, "filter_revenue_per_conversion_adjusted_ge": 440000, "filter_revenue_per_conversion_adjusted_le": 6610000, "filter_revenue_per_conversion_ge": 4290000, "filter_revenue_per_conversion_le": 3450000, "filter_revenue_total_ge": 8660000, "filter_revenue_total_le": 2740000, "filter_revenue_total_rolling_avg_ge": 520000, "filter_revenue_total_rolling_avg_le": 110000, "filter_view_impressions": [ 4923863656 ], "filter_view_impressions_ge": 7156486767, "filter_view_impressions_le": 6902527976, "group_by": "ACCOUNT", "include": [ "ipsum.amet" ], "limit": 10, "offset": 0, "search_account_id": "elit dolor", "search_account_name": "sit tucan", "search_account_tags_user": "dolor elit", "search_adspert_account_id": "dolor vehicula", "search_amz_portfolio_id": "tucan adlora", "search_amz_portfolio_name": "lorem tucan", "search_campaign_id": "dolor amet", "search_campaign_labels": "dolor ipsum", "search_campaign_name": "lorem tucan", "search_fields": [ "pariatur.adlora" ], "search_performance_group_id": "ipsum lorem", "search_performance_group_name": "tucan lorem", "search_term": "vehicula ipsum", "sort_account_id": 7, "sort_account_is_demo": -6, "sort_account_name": 5, "sort_account_optimize": 0, "sort_account_platform": 3, "sort_adspert_account_id": -2, "sort_adspert_campaign_id": 9, "sort_adspert_portfolio_id": -8, "sort_amz_portfolio_id": -2, "sort_amz_portfolio_name": -6, "sort_budget_amount": 5, "sort_budget_coverage": 5, "sort_campaign_eby_marketplace_id": 3, "sort_campaign_id": 9, "sort_campaign_name": 5, "sort_campaign_optimization_support": 0, "sort_campaign_optimization_type": -4, "sort_campaign_optimize": 7, "sort_campaign_status": -6, "sort_campaign_type": -6, "sort_click_through_rate": -8, "sort_click_through_rate_clicks": 1, "sort_clicks": 1, "sort_conversion_rate": 5, "sort_conversion_rate_adjusted": 3, "sort_conversion_rate_clicks": 1, "sort_conversions": 9, "sort_conversions_adjusted": -6, "sort_conversions_clicks": 1, "sort_conversions_for_revenue": -4, "sort_conversions_for_revenue_adjusted": -2, "sort_cost": -8, "sort_cost_for_click": -8, "sort_cost_for_organic": 3, "sort_cost_for_organic_rolling_avg": -2, "sort_cost_for_profit": -6, "sort_cost_for_revenue": -4, "sort_cost_for_vcpm": 3, "sort_cost_per_click": -4, "sort_cost_per_conversion": 3, "sort_cost_per_conversion_adjusted": 0, "sort_cost_per_conversion_clicks": 5, "sort_cost_per_m_view_impressions": 5, "sort_cost_revenue_ratio": -2, "sort_cost_revenue_ratio_adjusted": -2, "sort_cost_revenue_ratio_clicks": -4, "sort_cost_revenue_total_ratio": 3, "sort_cost_revenue_total_ratio_rolling_avg": 5, "sort_date": -6, "sort_impressions": 1, "sort_impressions_total": -6, "sort_performance_group_enabled": 7, "sort_performance_group_goal_types": 7, "sort_performance_group_id": 7, "sort_performance_group_name": -6, "sort_performance_group_optimization_type": 1, "sort_profit_gross": -8, "sort_profit_gross_adjusted": 9, "sort_profit_net": 9, "sort_profit_net_adjusted": 1, "sort_return_on_ad_spend": -4, "sort_return_on_ad_spend_adjusted": -4, "sort_return_on_ad_spend_clicks": 5, "sort_return_on_investment": 0, "sort_return_on_investment_adjusted": 3, "sort_revenue": 1, "sort_revenue_adjusted": -8, "sort_revenue_clicks": -2, "sort_revenue_organic": 3, "sort_revenue_organic_adjusted": 1, "sort_revenue_per_conversion": 3, "sort_revenue_per_conversion_adjusted": -4, "sort_revenue_total": -6, "sort_revenue_total_rolling_avg": 1, "sort_view_impressions": 9 }' | http POST https://api.adspert.net/v3/customers/7027038674/performance Accept:application/json Content-Type:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.post('https://api.adspert.net/v3/customers/7027038674/performance', headers={'Accept': 'application/json', 'Content-Type': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'}, json={'currency': 'AED', 'exclude': ['elit.amet'], 'filter_account_id': ['amet lorem'], 'filter_account_is_demo': [True], 'filter_account_name': ['vehicula ipsum'], 'filter_account_optimize': [True], 'filter_account_platform': ['AMAZON'], 'filter_account_tags_user': ['vehicula amet'], 'filter_adspert_account_id': [3420379091], 'filter_adspert_campaign_id': ['123:80'], 'filter_adspert_portfolio_id': ['123:23'], 'filter_amz_portfolio_name': ['elit adlora'], 'filter_budget_amount_ge': 5510000, 'filter_budget_amount_le': 7120000, 'filter_budget_coverage_ge': 14.43, 'filter_budget_coverage_le': 1.75, 'filter_campaign_eby_marketplace_id': ['amet pariatur'], 'filter_campaign_labels': ['ipsum dolor'], 'filter_campaign_name': ['sit ipsum'], 'filter_campaign_optimization_support': ['SUPPORTED'], 'filter_campaign_optimization_type': ['CLICK'], 'filter_campaign_optimize': [True], 'filter_campaign_status': ['ACTIVE'], 'filter_campaign_type': ['AMAZON-SPONSORED-BRANDS'], 'filter_click_through_rate_clicks_ge': 1.03, 'filter_click_through_rate_clicks_le': 15.43, 'filter_click_through_rate_ge': 3.91, 'filter_click_through_rate_le': 9.53, 'filter_clicks': [5857268080], 'filter_clicks_ge': 6848626767, 'filter_clicks_le': 4787837344, 'filter_conversion_rate_adjusted_ge': 2.14, 'filter_conversion_rate_adjusted_le': 5.88, 'filter_conversion_rate_clicks_ge': 11.5, 'filter_conversion_rate_clicks_le': 16.88, 'filter_conversion_rate_ge': 6.44, 'filter_conversion_rate_le': 7.8, 'filter_conversions_adjusted_ge': 14.26, 'filter_conversions_adjusted_le': 0.41, 'filter_conversions_clicks_ge': 15.11, 'filter_conversions_clicks_le': 9.22, 'filter_conversions_for_revenue_adjusted_ge': 12.69, 'filter_conversions_for_revenue_adjusted_le': 15.15, 'filter_conversions_for_revenue_ge': 17.0, 'filter_conversions_for_revenue_le': 11.47, 'filter_conversions_ge': 8.67, 'filter_conversions_le': 10.95, 'filter_cost_for_click_ge': 9160000, 'filter_cost_for_click_le': 8080000, 'filter_cost_for_organic_ge': 4179999, 'filter_cost_for_organic_le': 4350000, 'filter_cost_for_organic_rolling_avg_ge': 2470000, 'filter_cost_for_organic_rolling_avg_le': 7900000, 'filter_cost_for_profit_ge': 7740000, 'filter_cost_for_profit_le': 9630000, 'filter_cost_for_revenue_ge': 9300000, 'filter_cost_for_revenue_le': 4370000, 'filter_cost_for_vcpm_ge': 2160000, 'filter_cost_for_vcpm_le': 4990000, 'filter_cost_ge': 4630000, 'filter_cost_le': 3590000, 'filter_cost_per_click_ge': 6110000, 'filter_cost_per_click_le': 6500000, 'filter_cost_per_conversion_adjusted_ge': 5290000, 'filter_cost_per_conversion_adjusted_le': 2350000, 'filter_cost_per_conversion_ge': 9650000, 'filter_cost_per_conversion_le': 9820000, 'filter_cost_per_m_view_impressions_ge': 1710000, 'filter_cost_per_m_view_impressions_le': 870000, 'filter_cost_revenue_ratio_adjusted_ge': 0.62, 'filter_cost_revenue_ratio_adjusted_le': 11.89, 'filter_cost_revenue_ratio_clicks_ge': 15.78, 'filter_cost_revenue_ratio_clicks_le': 19.65, 'filter_cost_revenue_ratio_ge': 4.23, 'filter_cost_revenue_ratio_le': 7.67, 'filter_cost_revenue_total_ratio_ge': 16.36, 'filter_cost_revenue_total_ratio_le': 11.24, 'filter_cost_revenue_total_ratio_rolling_avg_ge': 5.58, 'filter_cost_revenue_total_ratio_rolling_avg_le': 9.25, 'filter_date_ge': '2018-10-21', 'filter_date_le': '2018-10-21', 'filter_impressions': [2157218327], 'filter_impressions_ge': 2586369292, 'filter_impressions_le': 1895730553, 'filter_performance_group_enabled': [True], 'filter_performance_group_goal_types': ['CLICKS-PER-DAY'], 'filter_performance_group_id': [6668648308], 'filter_performance_group_name': ['dolor sit'], 'filter_performance_group_optimization_type': ['CLICK'], 'filter_profit_gross_adjusted_ge': 7970000, 'filter_profit_gross_adjusted_le': 8130000, 'filter_profit_gross_ge': 7910000, 'filter_profit_gross_le': 9520000, 'filter_profit_net_adjusted_ge': 7160000, 'filter_profit_net_adjusted_le': 8470000, 'filter_profit_net_ge': 8640000, 'filter_profit_net_le': 7290000, 'filter_return_on_ad_spend_adjusted_ge': 14.05, 'filter_return_on_ad_spend_adjusted_le': 6.06, 'filter_return_on_ad_spend_clicks_ge': 0.19, 'filter_return_on_ad_spend_clicks_le': 3.35, 'filter_return_on_ad_spend_ge': 18.33, 'filter_return_on_ad_spend_le': 11.53, 'filter_return_on_investment_adjusted_ge': 2.03, 'filter_return_on_investment_adjusted_le': 7.11, 'filter_return_on_investment_ge': 1.24, 'filter_return_on_investment_le': 5.79, 'filter_revenue_adjusted_ge': 7810000, 'filter_revenue_adjusted_le': 7490000, 'filter_revenue_clicks_ge': 7060000, 'filter_revenue_clicks_le': 790000, 'filter_revenue_ge': 8770000, 'filter_revenue_le': 440000, 'filter_revenue_organic_adjusted_ge': 5130000, 'filter_revenue_organic_adjusted_le': 4580000, 'filter_revenue_organic_ge': 2020000, 'filter_revenue_organic_le': 5170000, 'filter_revenue_per_conversion_adjusted_ge': 440000, 'filter_revenue_per_conversion_adjusted_le': 6610000, 'filter_revenue_per_conversion_ge': 4290000, 'filter_revenue_per_conversion_le': 3450000, 'filter_revenue_total_ge': 8660000, 'filter_revenue_total_le': 2740000, 'filter_revenue_total_rolling_avg_ge': 520000, 'filter_revenue_total_rolling_avg_le': 110000, 'filter_view_impressions': [4923863656], 'filter_view_impressions_ge': 7156486767, 'filter_view_impressions_le': 6902527976, 'group_by': 'ACCOUNT', 'include': ['ipsum.amet'], 'limit': 10, 'offset': 0, 'search_account_id': 'elit dolor', 'search_account_name': 'sit tucan', 'search_account_tags_user': 'dolor elit', 'search_adspert_account_id': 'dolor vehicula', 'search_amz_portfolio_id': 'tucan adlora', 'search_amz_portfolio_name': 'lorem tucan', 'search_campaign_id': 'dolor amet', 'search_campaign_labels': 'dolor ipsum', 'search_campaign_name': 'lorem tucan', 'search_fields': ['pariatur.adlora'], 'search_performance_group_id': 'ipsum lorem', 'search_performance_group_name': 'tucan lorem', 'search_term': 'vehicula ipsum', 'sort_account_id': 7, 'sort_account_is_demo': -6, 'sort_account_name': 5, 'sort_account_optimize': 0, 'sort_account_platform': 3, 'sort_adspert_account_id': -2, 'sort_adspert_campaign_id': 9, 'sort_adspert_portfolio_id': -8, 'sort_amz_portfolio_id': -2, 'sort_amz_portfolio_name': -6, 'sort_budget_amount': 5, 'sort_budget_coverage': 5, 'sort_campaign_eby_marketplace_id': 3, 'sort_campaign_id': 9, 'sort_campaign_name': 5, 'sort_campaign_optimization_support': 0, 'sort_campaign_optimization_type': -4, 'sort_campaign_optimize': 7, 'sort_campaign_status': -6, 'sort_campaign_type': -6, 'sort_click_through_rate': -8, 'sort_click_through_rate_clicks': 1, 'sort_clicks': 1, 'sort_conversion_rate': 5, 'sort_conversion_rate_adjusted': 3, 'sort_conversion_rate_clicks': 1, 'sort_conversions': 9, 'sort_conversions_adjusted': -6, 'sort_conversions_clicks': 1, 'sort_conversions_for_revenue': -4, 'sort_conversions_for_revenue_adjusted': -2, 'sort_cost': -8, 'sort_cost_for_click': -8, 'sort_cost_for_organic': 3, 'sort_cost_for_organic_rolling_avg': -2, 'sort_cost_for_profit': -6, 'sort_cost_for_revenue': -4, 'sort_cost_for_vcpm': 3, 'sort_cost_per_click': -4, 'sort_cost_per_conversion': 3, 'sort_cost_per_conversion_adjusted': 0, 'sort_cost_per_conversion_clicks': 5, 'sort_cost_per_m_view_impressions': 5, 'sort_cost_revenue_ratio': -2, 'sort_cost_revenue_ratio_adjusted': -2, 'sort_cost_revenue_ratio_clicks': -4, 'sort_cost_revenue_total_ratio': 3, 'sort_cost_revenue_total_ratio_rolling_avg': 5, 'sort_date': -6, 'sort_impressions': 1, 'sort_impressions_total': -6, 'sort_performance_group_enabled': 7, 'sort_performance_group_goal_types': 7, 'sort_performance_group_id': 7, 'sort_performance_group_name': -6, 'sort_performance_group_optimization_type': 1, 'sort_profit_gross': -8, 'sort_profit_gross_adjusted': 9, 'sort_profit_net': 9, 'sort_profit_net_adjusted': 1, 'sort_return_on_ad_spend': -4, 'sort_return_on_ad_spend_adjusted': -4, 'sort_return_on_ad_spend_clicks': 5, 'sort_return_on_investment': 0, 'sort_return_on_investment_adjusted': 3, 'sort_revenue': 1, 'sort_revenue_adjusted': -8, 'sort_revenue_clicks': -2, 'sort_revenue_organic': 3, 'sort_revenue_organic_adjusted': 1, 'sort_revenue_per_conversion': 3, 'sort_revenue_per_conversion_adjusted': -4, 'sort_revenue_total': -6, 'sort_revenue_total_rolling_avg': 1, 'sort_view_impressions': 9})
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": [ { "date": "2018-10-21", "adspert_account_id": 123, "account_id": "amet lorem", "account_name": "vehicula ipsum", "account_platform": "AMAZON", "account_optimize": true, "account_tags_user": [ "vehicula amet" ], "account_is_demo": true, "performance_group_id": "1245", "performance_group_name": "dolor sit", "performance_group_enabled": true, "performance_group_optimization_type": "CLICK", "performance_group_goals": [ { "goal_type": "CLICKS-PER-DAY", "goal_value": 1.41, "goal_currency": "AED", "goal_micros": 6300000, "goal_ratio": 8.77 } ], "performance_group_goal_types": [ "CLICKS-PER-DAY" ], "performance_group_platforms": [ "AMAZON" ], "performance_group_user_max_bid": { "micros": 8340000, "currency": "AED" }, "adspert_portfolio_id": "123:9999", "amz_portfolio_id": "9999", "amz_portfolio_name": "elit adlora", "adspert_campaign_id": "123:5555", "campaign_id": "5555", "campaign_name": "sit ipsum", "campaign_type": "AMAZON-SPONSORED-BRANDS", "campaign_eby_marketplace_id": "amet pariatur", "campaign_status": "ACTIVE", "campaign_optimize": true, "campaign_optimization_type": "CLICK", "campaign_optimization_support": "SUPPORTED", "campaign_labels": [ "ipsum dolor" ], "campaign_user_max_bid": { "micros": 8340000, "currency": "AED" }, "impressions": 2157218327, "view_impressions": 4923863656, "impressions_total": 1855722954, "clicks": 5857268080, "conversions": 3.92, "conversions_clicks": 11.04, "conversions_adjusted": 18.15, "conversions_for_revenue": 4.57, "conversions_for_revenue_adjusted": 4.9, "profit_gross": 6420000, "profit_gross_adjusted": 9200000, "profit_net": 30000, "profit_net_adjusted": 3540000, "revenue": 360000, "revenue_clicks": 8260000, "revenue_adjusted": 9120000, "revenue_total": 9370000, "revenue_total_rolling_avg": 2650000, "revenue_organic": 2410000, "revenue_organic_adjusted": 3080000, "budget_amount": 9230000, "cost": 4540000, "cost_for_profit": 800000, "cost_for_revenue": 6910000, "cost_for_click": 6810000, "cost_for_vcpm": 210000, "cost_for_organic": 3360000, "cost_for_organic_rolling_avg": 4530000, "cost_per_click": 7300000, "cost_per_m_view_impressions": 7000000, "cost_per_conversion": 7570000, "cost_per_conversion_clicks": 8380000, "cost_per_conversion_adjusted": 340000, "conversion_rate": 0.86, "conversion_rate_clicks": 5.66, "conversion_rate_adjusted": 4.8, "click_through_rate": 7.58, "click_through_rate_clicks": 17.16, "return_on_investment": 3.28, "return_on_investment_adjusted": 1.3, "return_on_ad_spend": 2.29, "return_on_ad_spend_clicks": 5.1, "return_on_ad_spend_adjusted": 8.05, "cost_revenue_ratio": 16.41, "cost_revenue_ratio_clicks": 19.69, "cost_revenue_ratio_adjusted": 10.14, "cost_revenue_total_ratio": 9.0, "cost_revenue_total_ratio_rolling_avg": 18.81, "revenue_per_conversion": 7070000, "revenue_per_conversion_adjusted": 4550000, "budget_coverage": 0.39, "has_vcpm": true } ], "meta": {} }
ProductPerformanceCollection
GET
- GET /v3/preview/accounts/(adspert_account_id: int)/performance/products
-
Query Params
Name
Type
Description
include
Fields to include in response data.
exclude
Fields to exclude in response data.
filter_date_ge
required
Only return results where
date
is on or after this date.filter_date_le
required
Only return results where
date
is on or before this date.filter_performance_group_id
[ Integer ]
Only return results matching given
performance_group_id
values.filter_performance_group_name
[ String ]
Only return results matching given
performance_group_name
values.filter_performance_group_enabled
[ Boolean ]
Only return results matching given
performance_group_enabled
values.filter_performance_group_optimization_type
[ OptimizationType ]
Only return results matching given
performance_group_optimization_type
values.filter_performance_group_goal_types
Only return results matching given
performance_group_goal_types
values.filter_adspert_adgroup_id
[ CompositeID ]
Only return results matching given
adspert_adgroup_id
values.filter_adgroup_id
[ LargeInteger ]
Only return results matching given
adgroup_id
values.filter_adgroup_name
[ String ]
Only return results matching given
adgroup_name
values.filter_adgroup_status
[ AdgroupStatus ]
Only return results matching given
adgroup_status
values.filter_adgroup_labels
[ String ]
Only return results matching given
adgroup_labels
values.filter_adspert_campaign_id
[ CompositeID ]
Only return results matching given
adspert_campaign_id
values.filter_campaign_id
[ LargeInteger ]
Only return results matching given
campaign_id
values.filter_campaign_name
[ String ]
Only return results matching given
campaign_name
values.filter_campaign_type
[ CampaignType ]
Only return results matching given
campaign_type
values.filter_campaign_eby_marketplace_id
[ String ]
Only return results matching given
campaign_eby_marketplace_id
values.filter_campaign_status
[ CampaignStatus ]
Only return results matching given
campaign_status
values.filter_campaign_optimize
[ Boolean ]
Only return results matching given
campaign_optimize
values.filter_campaign_optimization_type
[ OptimizationType ]
Only return results matching given
campaign_optimization_type
values.filter_campaign_optimization_support
Only return results matching given
campaign_optimization_support
values.filter_campaign_labels
[ String ]
Only return results matching given
campaign_labels
values.filter_adspert_portfolio_id
[ CompositeID ]
Only return results matching given
adspert_portfolio_id
values.filter_amz_portfolio_id
[ LargeInteger ]
Only return results matching given
amz_portfolio_id
values.filter_amz_portfolio_name
[ String ]
Only return results matching given
amz_portfolio_name
values.filter_adspert_product_id
[ String ]
Only return results matching given
adspert_product_id
values.filter_amz_asin
[ String ]
Only return results matching given
amz_asin
values.filter_amz_effective_status
Only return results matching given
amz_effective_status
values.filter_amz_sku
[ String ]
Only return results matching given
amz_sku
values.filter_click_through_rate_clicks_ge
Float
Only return results where
click_through_rate_clicks
is equal or greater than this value.filter_click_through_rate_clicks_le
Float
Only return results where
click_through_rate_clicks
is equal or lower than this value.filter_click_through_rate_ge
Float
Only return results where
click_through_rate
is equal or greater than this value.filter_click_through_rate_le
Float
Only return results where
click_through_rate
is equal or lower than this value.filter_clicks
[ Integer ]
Only return results matching given
clicks
values.filter_clicks_ge
Integer
Only return results where
clicks
is equal or greater than this value.filter_clicks_le
Integer
Only return results where
clicks
is equal or lower than this value.filter_conversion_rate_clicks_ge
Float
Only return results where
conversion_rate_clicks
is equal or greater than this value.filter_conversion_rate_clicks_le
Float
Only return results where
conversion_rate_clicks
is equal or lower than this value.filter_conversion_rate_ge
Float
Only return results where
conversion_rate
is equal or greater than this value.filter_conversion_rate_le
Float
Only return results where
conversion_rate
is equal or lower than this value.filter_conversions_clicks_ge
Float
Only return results where
conversions_clicks
is equal or greater than this value.filter_conversions_clicks_le
Float
Only return results where
conversions_clicks
is equal or lower than this value.filter_conversions_for_revenue_ge
Float
Only return results where
conversions_for_revenue
is equal or greater than this value.filter_conversions_for_revenue_le
Float
Only return results where
conversions_for_revenue
is equal or lower than this value.filter_conversions_ge
Float
Only return results where
conversions
is equal or greater than this value.filter_conversions_le
Float
Only return results where
conversions
is equal or lower than this value.filter_cost_for_click_ge
Only return results where
cost_for_click
is equal or greater than this value.Min value: 1000
filter_cost_for_click_le
Only return results where
cost_for_click
is equal or lower than this value.Min value: 1000
filter_cost_for_profit_ge
Only return results where
cost_for_profit
is equal or greater than this value.Min value: 1000
filter_cost_for_profit_le
Only return results where
cost_for_profit
is equal or lower than this value.Min value: 1000
filter_cost_for_revenue_ge
Only return results where
cost_for_revenue
is equal or greater than this value.Min value: 1000
filter_cost_for_revenue_le
Only return results where
cost_for_revenue
is equal or lower than this value.Min value: 1000
filter_cost_for_vcpm_ge
Only return results where
cost_for_vcpm
is equal or greater than this value.Min value: 1000
filter_cost_for_vcpm_le
Only return results where
cost_for_vcpm
is equal or lower than this value.Min value: 1000
filter_cost_ge
Only return results where
cost
is equal or greater than this value.Min value: 1000
filter_cost_le
Only return results where
cost
is equal or lower than this value.Min value: 1000
filter_cost_per_click_ge
Only return results where
cost_per_click
is equal or greater than this value.Min value: 1000
filter_cost_per_click_le
Only return results where
cost_per_click
is equal or lower than this value.Min value: 1000
filter_cost_per_conversion_ge
Only return results where
cost_per_conversion
is equal or greater than this value.Min value: 1000
filter_cost_per_conversion_le
Only return results where
cost_per_conversion
is equal or lower than this value.Min value: 1000
filter_cost_per_m_view_impressions_ge
Only return results where
cost_per_m_view_impressions
is equal or greater than this value.Min value: 1000
filter_cost_per_m_view_impressions_le
Only return results where
cost_per_m_view_impressions
is equal or lower than this value.Min value: 1000
filter_cost_revenue_ratio_clicks_ge
Float
Only return results where
cost_revenue_ratio_clicks
is equal or greater than this value.filter_cost_revenue_ratio_clicks_le
Float
Only return results where
cost_revenue_ratio_clicks
is equal or lower than this value.filter_cost_revenue_ratio_ge
Float
Only return results where
cost_revenue_ratio
is equal or greater than this value.filter_cost_revenue_ratio_le
Float
Only return results where
cost_revenue_ratio
is equal or lower than this value.filter_eby_listing_id
[ String ]
Only return results matching given
eby_listing_id
values.filter_ggl_offer_id
[ String ]
Only return results matching given
ggl_offer_id
values.filter_impressions
[ Integer ]
Only return results matching given
impressions
values.filter_impressions_ge
Integer
Only return results where
impressions
is equal or greater than this value.filter_impressions_le
Integer
Only return results where
impressions
is equal or lower than this value.filter_profit_gross_ge
Only return results where
profit_gross
is equal or greater than this value.Min value: 1000
filter_profit_gross_le
Only return results where
profit_gross
is equal or lower than this value.Min value: 1000
filter_profit_net_ge
Only return results where
profit_net
is equal or greater than this value.Min value: 1000
filter_profit_net_le
Only return results where
profit_net
is equal or lower than this value.Min value: 1000
filter_return_on_ad_spend_clicks_ge
Float
Only return results where
return_on_ad_spend_clicks
is equal or greater than this value.filter_return_on_ad_spend_clicks_le
Float
Only return results where
return_on_ad_spend_clicks
is equal or lower than this value.filter_return_on_ad_spend_ge
Float
Only return results where
return_on_ad_spend
is equal or greater than this value.filter_return_on_ad_spend_le
Float
Only return results where
return_on_ad_spend
is equal or lower than this value.filter_return_on_investment_ge
Float
Only return results where
return_on_investment
is equal or greater than this value.filter_return_on_investment_le
Float
Only return results where
return_on_investment
is equal or lower than this value.filter_revenue_clicks_ge
Only return results where
revenue_clicks
is equal or greater than this value.Min value: 1000
filter_revenue_clicks_le
Only return results where
revenue_clicks
is equal or lower than this value.Min value: 1000
filter_revenue_ge
Only return results where
revenue
is equal or greater than this value.Min value: 1000
filter_revenue_le
Only return results where
revenue
is equal or lower than this value.Min value: 1000
filter_revenue_per_conversion_ge
Only return results where
revenue_per_conversion
is equal or greater than this value.Min value: 1000
filter_revenue_per_conversion_le
Only return results where
revenue_per_conversion
is equal or lower than this value.Min value: 1000
filter_view_impressions
[ Integer ]
Only return results matching given
view_impressions
values.filter_view_impressions_ge
Integer
Only return results where
view_impressions
is equal or greater than this value.filter_view_impressions_le
Integer
Only return results where
view_impressions
is equal or lower than this value.search_fields
Fields that should be searched using the
search_term
.search_term
String
Search term used to search the
search_fields
.search_performance_group_id
Integer
Only return results where
performance_group_id
matches the given string.search_performance_group_name
String
Only return results where
performance_group_name
matches the given string.search_adgroup_id
Integer
Only return results where
adgroup_id
matches the given string.search_adgroup_name
String
Only return results where
adgroup_name
matches the given string.search_adgroup_labels
String
Only return results where
adgroup_labels
matches the given string.search_campaign_id
Integer
Only return results where
campaign_id
matches the given string.search_campaign_name
String
Only return results where
campaign_name
matches the given string.search_campaign_labels
String
Only return results where
campaign_labels
matches the given string.search_amz_portfolio_id
Integer
Only return results where
amz_portfolio_id
matches the given string.search_amz_portfolio_name
String
Only return results where
amz_portfolio_name
matches the given string.search_amz_asin
String
Only return results where
amz_asin
matches the given string.search_amz_sku
String
Only return results where
amz_sku
matches the given string.search_eby_listing_id
String
Only return results where
eby_listing_id
matches the given string.search_ggl_offer_id
String
Only return results where
ggl_offer_id
matches the given string.search_title
String
Only return results where
title
matches the given string.sort_adspert_product_id
Sort results by
adspert_product_id
.sort_amz_asin
Sort results by
amz_asin
.sort_amz_effective_status
Sort results by
amz_effective_status
.sort_amz_sku
Sort results by
amz_sku
.sort_click_through_rate
Sort results by
click_through_rate
.sort_click_through_rate_clicks
Sort results by
click_through_rate_clicks
.sort_clicks
Sort results by
clicks
.sort_conversion_rate
Sort results by
conversion_rate
.sort_conversion_rate_clicks
Sort results by
conversion_rate_clicks
.sort_conversions
Sort results by
conversions
.sort_conversions_clicks
Sort results by
conversions_clicks
.sort_conversions_for_revenue
Sort results by
conversions_for_revenue
.sort_cost
Sort results by
cost
.sort_cost_for_click
Sort results by
cost_for_click
.sort_cost_for_profit
Sort results by
cost_for_profit
.sort_cost_for_revenue
Sort results by
cost_for_revenue
.sort_cost_for_vcpm
Sort results by
cost_for_vcpm
.sort_cost_per_click
Sort results by
cost_per_click
.sort_cost_per_conversion
Sort results by
cost_per_conversion
.sort_cost_per_conversion_clicks
Sort results by
cost_per_conversion_clicks
.sort_cost_per_m_view_impressions
Sort results by
cost_per_m_view_impressions
.sort_cost_revenue_ratio
Sort results by
cost_revenue_ratio
.sort_cost_revenue_ratio_clicks
Sort results by
cost_revenue_ratio_clicks
.sort_date
Sort results by
date
.sort_eby_listing_id
Sort results by
eby_listing_id
.sort_ggl_offer_id
Sort results by
ggl_offer_id
.sort_image_url
Sort results by
image_url
.sort_impressions
Sort results by
impressions
.sort_impressions_total
Sort results by
impressions_total
.sort_price
Sort results by
price
.sort_profit_gross
Sort results by
profit_gross
.sort_profit_net
Sort results by
profit_net
.sort_return_on_ad_spend
Sort results by
return_on_ad_spend
.sort_return_on_ad_spend_clicks
Sort results by
return_on_ad_spend_clicks
.sort_return_on_investment
Sort results by
return_on_investment
.sort_revenue
Sort results by
revenue
.sort_revenue_clicks
Sort results by
revenue_clicks
.sort_revenue_per_conversion
Sort results by
revenue_per_conversion
.sort_title
Sort results by
title
.sort_view_impressions
Sort results by
view_impressions
.offset
Integer
Start index for result list.
Default: 0
Min value: 0
limit
Integer
Maximum number of results to return. The maximum allowed value depends on the response media type (10000 for JSON and 100000 for tabular formats like CSV).
Default: 10
Min value: 1
group_by
required
Grouping/segementation level for the results.
currency
required
Response Data (object list, json or csv or xlsx)
Name
Type
Description
date
NULL when grouped by
adspert_product_id
.adspert_product_id
String
Adspert’s unique product ID.
NULL when grouped by
date
.title
searchable
String
Product title.
NULL when grouped by
date
.image_url
String
Product image URL.
NULL when grouped by
date
.price
Product price.
NULL when grouped by
date
.amz_effective_status
Effective status of Amazon product. This is an aggregate of serving statuses from (possibly) many product ads that use this product.
NULL when grouped by
date
.amz_asin
searchable
String
Amazon ASIN.
NULL when grouped by
date
.amz_sku
searchable
String
Amazon SKU.
NULL when grouped by
date
.ggl_offer_id
searchable
String
Google Offer ID.
NULL when grouped by
date
.eby_listing_id
searchable
String
eBay listing ID.
NULL when grouped by
date
.impressions
Integer
Number of impressions
view_impressions
Integer
Number of viewable impressions
impressions_total
Integer
Number of total impressions, For vcpm, viewable impressions and impressions for all other campaigns.
Should be used internally.
clicks
Integer
Number of clicks
conversions
Float
Number of conversions including view impressions.
Always 0 for click optimized campaigns.
conversions_clicks
Float
Number of conversions from clicks only
Valid only for vCPM campaigns. For non-vCPM campaigns, this is the same as
conversions
.cost
Total ad spend / cost
revenue
Revenue/sales.
Always 0 for click and profit optimized campaigns.
revenue_clicks
Revenue/sales from clicks only.
Valid only for vCPM campaigns. For non-vCPM campaigns, this is the same as
revenue
.profit_gross
Gross profit.
Always 0 for click and revenue optimized campaigns.
profit_net
Net profit.
profit_gross
-cost_for_profit
Always 0 for click and revenue optimized campaigns.
cost_per_click
Effective CPC.
cost
/clicks
NULL if number of
clicks
is 0.cost_per_m_view_impressions
Cost per mille viewable impressions. Valid only for vCPM campaigns.
cost
/view_impressions
NULL if number of
view_impressions
is 0.cost_per_conversion
Cost per conversion.
Only cost for profit and revenue optimized campaigns is included.
(
cost
-cost_for_click
) /conversions
NULL if number of
conversions
is 0.cost_per_conversion_clicks
Cost per conversion from clicks only.
Valid only for vCPM campaigns. For non-vCPM campaigns, this is the same as
cost_per_conversion
.NULL if number of
conversions
is 0.cost_for_profit
Ad spend from campaigns that support profit.
Always 0 for campaigns that don’t support profit.
cost_for_click
Ad spend / cost from click optimized campaigns.
Always 0 for revenue and profit optimized campaigns.
cost_for_revenue
Ad spend from campaigns that support revenue.
Always 0 for campaigns that don’t support revenue.
cost_for_vcpm
Ad spend from vcpm optimized campaigns.
Always 0 for campaigns that aren’t vcpm optimized.
conversion_rate
Float
Conversion rate.
conversions
/clicks
NULL if number of
clicks
is 0.conversion_rate_clicks
Float
Conversion rate from clicks only.
Valid only for vCPM campaigns. For non-vCPM campaigns, this is the same as
conversion_rate
.view_conversions
/clicks
NULL if number of
clicks
is 0.conversions_for_revenue
Float
Number of conversions for campaigns that support revenues.
Always 0 for campaigns that don’t support revenue.
revenue_per_conversion
Revenue per conversions.
Only revenue and conversions for revenue supporting campaigns are included.
revenue
/conversions_for_revenue
NULL if campaign doesn’t support revenue.
click_through_rate
Float
Clickthrough rate (CTR).
clicks
/impressions
NULL if number of
impressions
is 0.click_through_rate_clicks
Float
Clickthrough rate (CTR) from clicks only.
Valid only for vCPM campaigns. For non-vCPM campaigns, this is the same as
click_through_rate
.clicks
/view_impressions
NULL if number of
view_impressions
is 0.return_on_investment
Float
Return on investment (ROI).
Only cost for profit optimized campaigns is included.
profit_gross
/cost_for_profit
NULL if
cost_for_profit
is 0.return_on_ad_spend
Float
Return on ad spend (ROAS).
Only cost for revenue optimized campaigns is included.
revenue
/cost_for_revenue
NULL if
cost_for_revenue
is 0.return_on_ad_spend_clicks
Float
Return on ad spend (ROAS).
Valid only for vCPM campaigns. For non-vCPM campaigns, this is the same as
return_on_ad_spend
.revenue
/cost_for_revenue
NULL if
cost_for_revenue
is 0.cost_revenue_ratio
Float
Cost Revenue Ratio (CRR).
Also called Advertising Cost of Sale (ACoS).
Only cost for revenue optimized campaigns is included.
cost_for_revenue
/revenue
NULL if
revenue
is 0.cost_revenue_ratio_clicks
Float
Cost Revenue Ratio (CRR) from clicks only.
Valid only for vCPM campaigns. For non-vCPM campaigns, this is the same as
cost_revenue_ratio
.Also called Advertising Cost of Sale (ACoS).
cost_for_revenue
/revenue_clicks
NULL if
revenue_clicks
is 0.has_vcpm
Boolean
Whether the grouped-by entity has any campaigns with vCPM enabled.
Example
GET /v3/preview/accounts/3420379091/performance/products?filter_conversions_clicks_ge=15.11&filter_profit_net_le=7290000&filter_cost_per_conversion_le=9820000 HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl -i -X GET 'https://api.adspert.net/v3/preview/accounts/3420379091/performance/products?filter_conversions_clicks_ge=15.11&filter_profit_net_le=7290000&filter_cost_per_conversion_le=9820000' -H "Accept: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
http 'https://api.adspert.net/v3/preview/accounts/3420379091/performance/products?filter_conversions_clicks_ge=15.11&filter_profit_net_le=7290000&filter_cost_per_conversion_le=9820000' Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.get('https://api.adspert.net/v3/preview/accounts/3420379091/performance/products?filter_conversions_clicks_ge=15.11&filter_profit_net_le=7290000&filter_cost_per_conversion_le=9820000', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": [ { "date": null, "adspert_product_id": "B0100000000|000-000-001", "title": "Product XYZ", "image_url": "https://example.com/B0100000000.jpg", "price": "9990000", "amz_effective_status": "ACTIVE", "amz_asin": "B0100000000", "amz_sku": "000-000-001", "ggl_offer_id": "12345678", "eby_listing_id": "12345678", "impressions": 2157218327, "view_impressions": 4923863656, "impressions_total": 1855722954, "clicks": 5857268080, "conversions": 3.92, "conversions_clicks": 11.04, "cost": 4540000, "revenue": 360000, "revenue_clicks": 8260000, "profit_gross": 6420000, "profit_net": 30000, "cost_per_click": 7300000, "cost_per_m_view_impressions": 7000000, "cost_per_conversion": 7570000, "cost_per_conversion_clicks": 8380000, "cost_for_profit": 800000, "cost_for_click": 6810000, "cost_for_revenue": 6910000, "cost_for_vcpm": 210000, "conversion_rate": 0.86, "conversion_rate_clicks": 5.66, "conversions_for_revenue": 4.57, "revenue_per_conversion": 7070000, "click_through_rate": 7.58, "click_through_rate_clicks": 17.16, "return_on_investment": 3.28, "return_on_ad_spend": 2.29, "return_on_ad_spend_clicks": 5.1, "cost_revenue_ratio": 16.41, "cost_revenue_ratio_clicks": 19.69, "has_vcpm": true } ], "meta": { "pagination": { "offset": 0, "limit": 10, "total": 74, "sort": { "date": 1 } } } }
ProductCampaignPerformanceCollection
GET
- GET /v3/preview/accounts/(adspert_account_id: int)/performance/products/(adspert_product_id: b32)/campaigns
-
Query Params
Name
Type
Description
include
Fields to include in response data.
exclude
Fields to exclude in response data.
filter_date_ge
required
Only return results where
date
is on or after this date.filter_date_le
required
Only return results where
date
is on or before this date.filter_adspert_campaign_id
[ CompositeID ]
Only return results matching given
adspert_campaign_id
values.filter_adspert_portfolio_id
[ CompositeID ]
Only return results matching given
adspert_portfolio_id
values.filter_amz_effective_status
Only return results matching given
amz_effective_status
values.filter_amz_portfolio_id
[ LargeInteger ]
Only return results matching given
amz_portfolio_id
values.filter_amz_portfolio_name
[ String ]
Only return results matching given
amz_portfolio_name
values.filter_campaign_eby_marketplace_id
[ String ]
Only return results matching given
campaign_eby_marketplace_id
values.filter_campaign_id
[ LargeInteger ]
Only return results matching given
campaign_id
values.filter_campaign_labels
[ String ]
Only return results matching given
campaign_labels
values.filter_campaign_name
[ String ]
Only return results matching given
campaign_name
values.filter_campaign_optimization_support
Only return results matching given
campaign_optimization_support
values.filter_campaign_optimization_type
[ OptimizationType ]
Only return results matching given
campaign_optimization_type
values.filter_campaign_optimize
[ Boolean ]
Only return results matching given
campaign_optimize
values.filter_campaign_status
[ CampaignStatus ]
Only return results matching given
campaign_status
values.filter_campaign_type
[ CampaignType ]
Only return results matching given
campaign_type
values.filter_click_through_rate_clicks_ge
Float
Only return results where
click_through_rate_clicks
is equal or greater than this value.filter_click_through_rate_clicks_le
Float
Only return results where
click_through_rate_clicks
is equal or lower than this value.filter_click_through_rate_ge
Float
Only return results where
click_through_rate
is equal or greater than this value.filter_click_through_rate_le
Float
Only return results where
click_through_rate
is equal or lower than this value.filter_clicks
[ Integer ]
Only return results matching given
clicks
values.filter_clicks_ge
Integer
Only return results where
clicks
is equal or greater than this value.filter_clicks_le
Integer
Only return results where
clicks
is equal or lower than this value.filter_conversion_rate_clicks_ge
Float
Only return results where
conversion_rate_clicks
is equal or greater than this value.filter_conversion_rate_clicks_le
Float
Only return results where
conversion_rate_clicks
is equal or lower than this value.filter_conversion_rate_ge
Float
Only return results where
conversion_rate
is equal or greater than this value.filter_conversion_rate_le
Float
Only return results where
conversion_rate
is equal or lower than this value.filter_conversions_clicks_ge
Float
Only return results where
conversions_clicks
is equal or greater than this value.filter_conversions_clicks_le
Float
Only return results where
conversions_clicks
is equal or lower than this value.filter_conversions_for_revenue_ge
Float
Only return results where
conversions_for_revenue
is equal or greater than this value.filter_conversions_for_revenue_le
Float
Only return results where
conversions_for_revenue
is equal or lower than this value.filter_conversions_ge
Float
Only return results where
conversions
is equal or greater than this value.filter_conversions_le
Float
Only return results where
conversions
is equal or lower than this value.filter_cost_for_click_ge
Only return results where
cost_for_click
is equal or greater than this value.Min value: 1000
filter_cost_for_click_le
Only return results where
cost_for_click
is equal or lower than this value.Min value: 1000
filter_cost_for_profit_ge
Only return results where
cost_for_profit
is equal or greater than this value.Min value: 1000
filter_cost_for_profit_le
Only return results where
cost_for_profit
is equal or lower than this value.Min value: 1000
filter_cost_for_revenue_ge
Only return results where
cost_for_revenue
is equal or greater than this value.Min value: 1000
filter_cost_for_revenue_le
Only return results where
cost_for_revenue
is equal or lower than this value.Min value: 1000
filter_cost_for_vcpm_ge
Only return results where
cost_for_vcpm
is equal or greater than this value.Min value: 1000
filter_cost_for_vcpm_le
Only return results where
cost_for_vcpm
is equal or lower than this value.Min value: 1000
filter_cost_ge
Only return results where
cost
is equal or greater than this value.Min value: 1000
filter_cost_le
Only return results where
cost
is equal or lower than this value.Min value: 1000
filter_cost_per_click_ge
Only return results where
cost_per_click
is equal or greater than this value.Min value: 1000
filter_cost_per_click_le
Only return results where
cost_per_click
is equal or lower than this value.Min value: 1000
filter_cost_per_conversion_ge
Only return results where
cost_per_conversion
is equal or greater than this value.Min value: 1000
filter_cost_per_conversion_le
Only return results where
cost_per_conversion
is equal or lower than this value.Min value: 1000
filter_cost_per_m_view_impressions_ge
Only return results where
cost_per_m_view_impressions
is equal or greater than this value.Min value: 1000
filter_cost_per_m_view_impressions_le
Only return results where
cost_per_m_view_impressions
is equal or lower than this value.Min value: 1000
filter_cost_revenue_ratio_clicks_ge
Float
Only return results where
cost_revenue_ratio_clicks
is equal or greater than this value.filter_cost_revenue_ratio_clicks_le
Float
Only return results where
cost_revenue_ratio_clicks
is equal or lower than this value.filter_cost_revenue_ratio_ge
Float
Only return results where
cost_revenue_ratio
is equal or greater than this value.filter_cost_revenue_ratio_le
Float
Only return results where
cost_revenue_ratio
is equal or lower than this value.filter_impressions
[ Integer ]
Only return results matching given
impressions
values.filter_impressions_ge
Integer
Only return results where
impressions
is equal or greater than this value.filter_impressions_le
Integer
Only return results where
impressions
is equal or lower than this value.filter_performance_group_enabled
[ Boolean ]
Only return results matching given
performance_group_enabled
values.filter_performance_group_goal_types
Only return results matching given
performance_group_goal_types
values.filter_performance_group_id
[ Integer ]
Only return results matching given
performance_group_id
values.filter_performance_group_name
[ String ]
Only return results matching given
performance_group_name
values.filter_performance_group_optimization_type
[ OptimizationType ]
Only return results matching given
performance_group_optimization_type
values.filter_profit_gross_ge
Only return results where
profit_gross
is equal or greater than this value.Min value: 1000
filter_profit_gross_le
Only return results where
profit_gross
is equal or lower than this value.Min value: 1000
filter_profit_net_ge
Only return results where
profit_net
is equal or greater than this value.Min value: 1000
filter_profit_net_le
Only return results where
profit_net
is equal or lower than this value.Min value: 1000
filter_return_on_ad_spend_clicks_ge
Float
Only return results where
return_on_ad_spend_clicks
is equal or greater than this value.filter_return_on_ad_spend_clicks_le
Float
Only return results where
return_on_ad_spend_clicks
is equal or lower than this value.filter_return_on_ad_spend_ge
Float
Only return results where
return_on_ad_spend
is equal or greater than this value.filter_return_on_ad_spend_le
Float
Only return results where
return_on_ad_spend
is equal or lower than this value.filter_return_on_investment_ge
Float
Only return results where
return_on_investment
is equal or greater than this value.filter_return_on_investment_le
Float
Only return results where
return_on_investment
is equal or lower than this value.filter_revenue_clicks_ge
Only return results where
revenue_clicks
is equal or greater than this value.Min value: 1000
filter_revenue_clicks_le
Only return results where
revenue_clicks
is equal or lower than this value.Min value: 1000
filter_revenue_ge
Only return results where
revenue
is equal or greater than this value.Min value: 1000
filter_revenue_le
Only return results where
revenue
is equal or lower than this value.Min value: 1000
filter_revenue_per_conversion_ge
Only return results where
revenue_per_conversion
is equal or greater than this value.Min value: 1000
filter_revenue_per_conversion_le
Only return results where
revenue_per_conversion
is equal or lower than this value.Min value: 1000
filter_view_impressions
[ Integer ]
Only return results matching given
view_impressions
values.filter_view_impressions_ge
Integer
Only return results where
view_impressions
is equal or greater than this value.filter_view_impressions_le
Integer
Only return results where
view_impressions
is equal or lower than this value.search_fields
Fields that should be searched using the
search_term
.search_term
String
Search term used to search the
search_fields
.search_amz_portfolio_id
String
Only return results where
amz_portfolio_id
matches the given string.search_amz_portfolio_name
String
Only return results where
amz_portfolio_name
matches the given string.search_campaign_id
String
Only return results where
campaign_id
matches the given string.search_campaign_labels
String
Only return results where
campaign_labels
matches the given string.search_campaign_name
String
Only return results where
campaign_name
matches the given string.search_performance_group_id
String
Only return results where
performance_group_id
matches the given string.search_performance_group_name
String
Only return results where
performance_group_name
matches the given string.sort_adspert_campaign_id
Sort results by
adspert_campaign_id
.sort_adspert_portfolio_id
Sort results by
adspert_portfolio_id
.sort_amz_effective_status
Sort results by
amz_effective_status
.sort_amz_portfolio_id
Sort results by
amz_portfolio_id
.sort_amz_portfolio_name
Sort results by
amz_portfolio_name
.sort_amz_targeting_type
Sort results by
amz_targeting_type
.sort_campaign_eby_marketplace_id
Sort results by
campaign_eby_marketplace_id
.sort_campaign_id
Sort results by
campaign_id
.sort_campaign_name
Sort results by
campaign_name
.sort_campaign_optimization_support
Sort results by
campaign_optimization_support
.sort_campaign_optimization_type
Sort results by
campaign_optimization_type
.sort_campaign_optimize
Sort results by
campaign_optimize
.sort_campaign_status
Sort results by
campaign_status
.sort_campaign_type
Sort results by
campaign_type
.sort_click_through_rate
Sort results by
click_through_rate
.sort_click_through_rate_clicks
Sort results by
click_through_rate_clicks
.sort_clicks
Sort results by
clicks
.sort_conversion_rate
Sort results by
conversion_rate
.sort_conversion_rate_clicks
Sort results by
conversion_rate_clicks
.sort_conversions
Sort results by
conversions
.sort_conversions_clicks
Sort results by
conversions_clicks
.sort_conversions_for_revenue
Sort results by
conversions_for_revenue
.sort_cost
Sort results by
cost
.sort_cost_for_click
Sort results by
cost_for_click
.sort_cost_for_profit
Sort results by
cost_for_profit
.sort_cost_for_revenue
Sort results by
cost_for_revenue
.sort_cost_for_vcpm
Sort results by
cost_for_vcpm
.sort_cost_per_click
Sort results by
cost_per_click
.sort_cost_per_conversion
Sort results by
cost_per_conversion
.sort_cost_per_conversion_clicks
Sort results by
cost_per_conversion_clicks
.sort_cost_per_m_view_impressions
Sort results by
cost_per_m_view_impressions
.sort_cost_revenue_ratio
Sort results by
cost_revenue_ratio
.sort_cost_revenue_ratio_clicks
Sort results by
cost_revenue_ratio_clicks
.sort_date
Sort results by
date
.sort_impressions
Sort results by
impressions
.sort_impressions_total
Sort results by
impressions_total
.sort_performance_group_enabled
Sort results by
performance_group_enabled
.sort_performance_group_goal_types
Sort results by
performance_group_goal_types
.sort_performance_group_id
Sort results by
performance_group_id
.sort_performance_group_name
Sort results by
performance_group_name
.sort_performance_group_optimization_type
Sort results by
performance_group_optimization_type
.sort_price
Sort results by
price
.sort_profit_gross
Sort results by
profit_gross
.sort_profit_net
Sort results by
profit_net
.sort_return_on_ad_spend
Sort results by
return_on_ad_spend
.sort_return_on_ad_spend_clicks
Sort results by
return_on_ad_spend_clicks
.sort_return_on_investment
Sort results by
return_on_investment
.sort_revenue
Sort results by
revenue
.sort_revenue_clicks
Sort results by
revenue_clicks
.sort_revenue_per_conversion
Sort results by
revenue_per_conversion
.sort_view_impressions
Sort results by
view_impressions
.offset
Integer
Start index for result list.
Default: 0
Min value: 0
limit
Integer
Maximum number of results to return. The maximum allowed value depends on the response media type (10000 for JSON and 100000 for tabular formats like CSV).
Default: 10
Min value: 1
group_by
required
Grouping/segmentation level for the results.
currency
required
Response Data (object list, json or csv or xlsx)
Name
Type
Description
date
NULL when grouped by
campaign_id
.amz_effective_status
Effective status of Amazon product.
NULL when grouped by
date
.amz_targeting_type
Amazon campaign targeting type.
NULL when grouped by
date
.performance_group_id
searchable
Integer
Unique ID of the performance group
NULL when grouped by
date
.performance_group_name
searchable
String
Unique name of the performance group.
NULL when grouped by
date
.performance_group_enabled
Boolean
NULL when grouped by
date
.performance_group_optimization_type
Optimization type of the performance group.
Only campaigns of the same optimization type can be added to a given performance group.
NULL when grouped by
date
.performance_group_goal_types
List of performance group goal types
NULL when grouped by
date
.price
Price of the product.
Current price When grouped by
campaign_id
. Historical prices when grouped bydate
.adspert_campaign_id
Adspert internal ID of the campaign.
NULL when grouped by
date
.Composite ID specification:
{adspert_account_id}:{campaign_id}
campaign_id
searchable
NULL when grouped by
date
.campaign_name
searchable
String
NULL when grouped by
date
.campaign_type
NULL when grouped by
date
.campaign_eby_marketplace_id
String
NULL when grouped by
date
.campaign_status
NULL when grouped by
date
.campaign_optimize
Boolean
NULL when grouped by
date
.campaign_optimization_type
NULL when grouped by
date
.campaign_optimization_support
NULL when grouped by
date
.campaign_labels
searchable
[ String ]
NULL when grouped by
date
.adspert_portfolio_id
Adspert internal ID of Amazon portfolio.
NULL when grouped by
date
.Composite ID specification:
{adspert_account_id}:{portfolio_id}
amz_portfolio_id
searchable
NULL when grouped by
date
.amz_portfolio_name
searchable
String
NULL when grouped by
date
.impressions
Integer
Number of impressions
view_impressions
Integer
Number of viewable impressions
impressions_total
Integer
Number of total impressions, For vcpm, viewable impressions and impressions for all other campaigns.
Should be used internally.
clicks
Integer
Number of clicks
conversions
Float
Number of conversions including view impressions.
Always 0 for click optimized campaigns.
conversions_clicks
Float
Number of conversions from clicks only
Valid only for vCPM campaigns. For non-vCPM campaigns, this is the same as
conversions
.cost
Total ad spend / cost
revenue
Revenue/sales.
Always 0 for click and profit optimized campaigns.
revenue_clicks
Revenue/sales from clicks only.
Valid only for vCPM campaigns. For non-vCPM campaigns, this is the same as
revenue
.profit_gross
Gross profit.
Always 0 for click and revenue optimized campaigns.
profit_net
Net profit.
profit_gross
-cost_for_profit
Always 0 for click and revenue optimized campaigns.
cost_per_click
Effective CPC.
cost
/clicks
NULL if number of
clicks
is 0.cost_per_m_view_impressions
Cost per mille viewable impressions. Valid only for vCPM campaigns.
cost
/view_impressions
NULL if number of
view_impressions
is 0.cost_per_conversion
Cost per conversion.
Only cost for profit and revenue optimized campaigns is included.
(
cost
-cost_for_click
) /conversions
NULL if number of
conversions
is 0.cost_per_conversion_clicks
Cost per conversion from clicks only.
Valid only for vCPM campaigns. For non-vCPM campaigns, this is the same as
cost_per_conversion
.NULL if number of
conversions
is 0.cost_for_profit
Ad spend from campaigns that support profit.
Always 0 for campaigns that don’t support profit.
cost_for_click
Ad spend / cost from click optimized campaigns.
Always 0 for revenue and profit optimized campaigns.
cost_for_revenue
Ad spend from campaigns that support revenue.
Always 0 for campaigns that don’t support revenue.
cost_for_vcpm
Ad spend from vcpm optimized campaigns.
Always 0 for campaigns that aren’t vcpm optimized.
conversion_rate
Float
Conversion rate.
conversions
/clicks
NULL if number of
clicks
is 0.conversion_rate_clicks
Float
Conversion rate from clicks only.
Valid only for vCPM campaigns. For non-vCPM campaigns, this is the same as
conversion_rate
.view_conversions
/clicks
NULL if number of
clicks
is 0.conversions_for_revenue
Float
Number of conversions for campaigns that support revenues.
Always 0 for campaigns that don’t support revenue.
revenue_per_conversion
Revenue per conversions.
Only revenue and conversions for revenue supporting campaigns are included.
revenue
/conversions_for_revenue
NULL if campaign doesn’t support revenue.
click_through_rate
Float
Clickthrough rate (CTR).
clicks
/impressions
NULL if number of
impressions
is 0.click_through_rate_clicks
Float
Clickthrough rate (CTR) from clicks only.
Valid only for vCPM campaigns. For non-vCPM campaigns, this is the same as
click_through_rate
.clicks
/view_impressions
NULL if number of
view_impressions
is 0.return_on_investment
Float
Return on investment (ROI).
Only cost for profit optimized campaigns is included.
profit_gross
/cost_for_profit
NULL if
cost_for_profit
is 0.return_on_ad_spend
Float
Return on ad spend (ROAS).
Only cost for revenue optimized campaigns is included.
revenue
/cost_for_revenue
NULL if
cost_for_revenue
is 0.return_on_ad_spend_clicks
Float
Return on ad spend (ROAS).
Valid only for vCPM campaigns. For non-vCPM campaigns, this is the same as
return_on_ad_spend
.revenue
/cost_for_revenue
NULL if
cost_for_revenue
is 0.cost_revenue_ratio
Float
Cost Revenue Ratio (CRR).
Also called Advertising Cost of Sale (ACoS).
Only cost for revenue optimized campaigns is included.
cost_for_revenue
/revenue
NULL if
revenue
is 0.cost_revenue_ratio_clicks
Float
Cost Revenue Ratio (CRR) from clicks only.
Valid only for vCPM campaigns. For non-vCPM campaigns, this is the same as
cost_revenue_ratio
.Also called Advertising Cost of Sale (ACoS).
cost_for_revenue
/revenue_clicks
NULL if
revenue_clicks
is 0.has_vcpm
Boolean
Whether the grouped-by entity has any campaigns with vCPM enabled.
Example
GET /v3/preview/accounts/3420379091/performance/products/JFCC2MJSGM2A====/campaigns?sort_performance_group_enabled=7&sort_campaign_optimize=7&sort_view_impressions=9 HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl -i -X GET 'https://api.adspert.net/v3/preview/accounts/3420379091/performance/products/JFCC2MJSGM2A====/campaigns?sort_performance_group_enabled=7&sort_campaign_optimize=7&sort_view_impressions=9' -H "Accept: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
http 'https://api.adspert.net/v3/preview/accounts/3420379091/performance/products/JFCC2MJSGM2A====/campaigns?sort_performance_group_enabled=7&sort_campaign_optimize=7&sort_view_impressions=9' Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.get('https://api.adspert.net/v3/preview/accounts/3420379091/performance/products/JFCC2MJSGM2A====/campaigns?sort_performance_group_enabled=7&sort_campaign_optimize=7&sort_view_impressions=9', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": [ { "date": null, "amz_effective_status": "ACTIVE", "amz_targeting_type": "AUTO", "performance_group_id": "1245", "performance_group_name": "dolor sit", "performance_group_enabled": true, "performance_group_optimization_type": "CLICK", "performance_group_goal_types": [ "CLICKS-PER-DAY" ], "price": 1910000, "adspert_campaign_id": "123:5555", "campaign_id": "5555", "campaign_name": "sit ipsum", "campaign_type": "AMAZON-SPONSORED-BRANDS", "campaign_eby_marketplace_id": "amet pariatur", "campaign_status": "ACTIVE", "campaign_optimize": true, "campaign_optimization_type": "CLICK", "campaign_optimization_support": "SUPPORTED", "campaign_labels": [ "ipsum dolor" ], "adspert_portfolio_id": "123:9999", "amz_portfolio_id": "9999", "amz_portfolio_name": "elit adlora", "impressions": 2157218327, "view_impressions": 4923863656, "impressions_total": 1855722954, "clicks": 5857268080, "conversions": 3.92, "conversions_clicks": 11.04, "cost": 4540000, "revenue": 360000, "revenue_clicks": 8260000, "profit_gross": 6420000, "profit_net": 30000, "cost_per_click": 7300000, "cost_per_m_view_impressions": 7000000, "cost_per_conversion": 7570000, "cost_per_conversion_clicks": 8380000, "cost_for_profit": 800000, "cost_for_click": 6810000, "cost_for_revenue": 6910000, "cost_for_vcpm": 210000, "conversion_rate": 0.86, "conversion_rate_clicks": 5.66, "conversions_for_revenue": 4.57, "revenue_per_conversion": 7070000, "click_through_rate": 7.58, "click_through_rate_clicks": 17.16, "return_on_investment": 3.28, "return_on_ad_spend": 2.29, "return_on_ad_spend_clicks": 5.1, "cost_revenue_ratio": 16.41, "cost_revenue_ratio_clicks": 19.69, "has_vcpm": true } ], "meta": { "pagination": { "offset": 0, "limit": 10, "total": 74, "sort": { "date": 1 } } } }
ProductAdGroupPerformanceCollection
GET
- GET /v3/preview/accounts/(adspert_account_id: int)/performance/products/(adspert_product_id: b32)/adgroups
-
Query Params
Name
Type
Description
include
Fields to include in response data.
exclude
Fields to exclude in response data.
filter_date_ge
required
Only return results where
date
is on or after this date.filter_date_le
required
Only return results where
date
is on or before this date.filter_adgroup_id
[ LargeInteger ]
Only return results matching given
adgroup_id
values.filter_adgroup_labels
[ String ]
Only return results matching given
adgroup_labels
values.filter_adgroup_name
[ String ]
Only return results matching given
adgroup_name
values.filter_adgroup_status
[ AdgroupStatus ]
Only return results matching given
adgroup_status
values.filter_adspert_adgroup_id
[ CompositeID ]
Only return results matching given
adspert_adgroup_id
values.filter_adspert_campaign_id
[ CompositeID ]
Only return results matching given
adspert_campaign_id
values.filter_adspert_portfolio_id
[ CompositeID ]
Only return results matching given
adspert_portfolio_id
values.filter_amz_effective_status
Only return results matching given
amz_effective_status
values.filter_amz_portfolio_id
[ LargeInteger ]
Only return results matching given
amz_portfolio_id
values.filter_amz_portfolio_name
[ String ]
Only return results matching given
amz_portfolio_name
values.filter_campaign_eby_marketplace_id
[ String ]
Only return results matching given
campaign_eby_marketplace_id
values.filter_campaign_id
[ LargeInteger ]
Only return results matching given
campaign_id
values.filter_campaign_labels
[ String ]
Only return results matching given
campaign_labels
values.filter_campaign_name
[ String ]
Only return results matching given
campaign_name
values.filter_campaign_optimization_support
Only return results matching given
campaign_optimization_support
values.filter_campaign_optimization_type
[ OptimizationType ]
Only return results matching given
campaign_optimization_type
values.filter_campaign_optimize
[ Boolean ]
Only return results matching given
campaign_optimize
values.filter_campaign_status
[ CampaignStatus ]
Only return results matching given
campaign_status
values.filter_campaign_type
[ CampaignType ]
Only return results matching given
campaign_type
values.filter_click_through_rate_clicks_ge
Float
Only return results where
click_through_rate_clicks
is equal or greater than this value.filter_click_through_rate_clicks_le
Float
Only return results where
click_through_rate_clicks
is equal or lower than this value.filter_click_through_rate_ge
Float
Only return results where
click_through_rate
is equal or greater than this value.filter_click_through_rate_le
Float
Only return results where
click_through_rate
is equal or lower than this value.filter_clicks
[ Integer ]
Only return results matching given
clicks
values.filter_clicks_ge
Integer
Only return results where
clicks
is equal or greater than this value.filter_clicks_le
Integer
Only return results where
clicks
is equal or lower than this value.filter_conversion_rate_clicks_ge
Float
Only return results where
conversion_rate_clicks
is equal or greater than this value.filter_conversion_rate_clicks_le
Float
Only return results where
conversion_rate_clicks
is equal or lower than this value.filter_conversion_rate_ge
Float
Only return results where
conversion_rate
is equal or greater than this value.filter_conversion_rate_le
Float
Only return results where
conversion_rate
is equal or lower than this value.filter_conversions_clicks_ge
Float
Only return results where
conversions_clicks
is equal or greater than this value.filter_conversions_clicks_le
Float
Only return results where
conversions_clicks
is equal or lower than this value.filter_conversions_for_revenue_ge
Float
Only return results where
conversions_for_revenue
is equal or greater than this value.filter_conversions_for_revenue_le
Float
Only return results where
conversions_for_revenue
is equal or lower than this value.filter_conversions_ge
Float
Only return results where
conversions
is equal or greater than this value.filter_conversions_le
Float
Only return results where
conversions
is equal or lower than this value.filter_cost_for_click_ge
Only return results where
cost_for_click
is equal or greater than this value.Min value: 1000
filter_cost_for_click_le
Only return results where
cost_for_click
is equal or lower than this value.Min value: 1000
filter_cost_for_profit_ge
Only return results where
cost_for_profit
is equal or greater than this value.Min value: 1000
filter_cost_for_profit_le
Only return results where
cost_for_profit
is equal or lower than this value.Min value: 1000
filter_cost_for_revenue_ge
Only return results where
cost_for_revenue
is equal or greater than this value.Min value: 1000
filter_cost_for_revenue_le
Only return results where
cost_for_revenue
is equal or lower than this value.Min value: 1000
filter_cost_for_vcpm_ge
Only return results where
cost_for_vcpm
is equal or greater than this value.Min value: 1000
filter_cost_for_vcpm_le
Only return results where
cost_for_vcpm
is equal or lower than this value.Min value: 1000
filter_cost_ge
Only return results where
cost
is equal or greater than this value.Min value: 1000
filter_cost_le
Only return results where
cost
is equal or lower than this value.Min value: 1000
filter_cost_per_click_ge
Only return results where
cost_per_click
is equal or greater than this value.Min value: 1000
filter_cost_per_click_le
Only return results where
cost_per_click
is equal or lower than this value.Min value: 1000
filter_cost_per_conversion_ge
Only return results where
cost_per_conversion
is equal or greater than this value.Min value: 1000
filter_cost_per_conversion_le
Only return results where
cost_per_conversion
is equal or lower than this value.Min value: 1000
filter_cost_per_m_view_impressions_ge
Only return results where
cost_per_m_view_impressions
is equal or greater than this value.Min value: 1000
filter_cost_per_m_view_impressions_le
Only return results where
cost_per_m_view_impressions
is equal or lower than this value.Min value: 1000
filter_cost_revenue_ratio_clicks_ge
Float
Only return results where
cost_revenue_ratio_clicks
is equal or greater than this value.filter_cost_revenue_ratio_clicks_le
Float
Only return results where
cost_revenue_ratio_clicks
is equal or lower than this value.filter_cost_revenue_ratio_ge
Float
Only return results where
cost_revenue_ratio
is equal or greater than this value.filter_cost_revenue_ratio_le
Float
Only return results where
cost_revenue_ratio
is equal or lower than this value.filter_impressions
[ Integer ]
Only return results matching given
impressions
values.filter_impressions_ge
Integer
Only return results where
impressions
is equal or greater than this value.filter_impressions_le
Integer
Only return results where
impressions
is equal or lower than this value.filter_performance_group_enabled
[ Boolean ]
Only return results matching given
performance_group_enabled
values.filter_performance_group_goal_types
Only return results matching given
performance_group_goal_types
values.filter_performance_group_id
[ Integer ]
Only return results matching given
performance_group_id
values.filter_performance_group_name
[ String ]
Only return results matching given
performance_group_name
values.filter_performance_group_optimization_type
[ OptimizationType ]
Only return results matching given
performance_group_optimization_type
values.filter_profit_gross_ge
Only return results where
profit_gross
is equal or greater than this value.Min value: 1000
filter_profit_gross_le
Only return results where
profit_gross
is equal or lower than this value.Min value: 1000
filter_profit_net_ge
Only return results where
profit_net
is equal or greater than this value.Min value: 1000
filter_profit_net_le
Only return results where
profit_net
is equal or lower than this value.Min value: 1000
filter_return_on_ad_spend_clicks_ge
Float
Only return results where
return_on_ad_spend_clicks
is equal or greater than this value.filter_return_on_ad_spend_clicks_le
Float
Only return results where
return_on_ad_spend_clicks
is equal or lower than this value.filter_return_on_ad_spend_ge
Float
Only return results where
return_on_ad_spend
is equal or greater than this value.filter_return_on_ad_spend_le
Float
Only return results where
return_on_ad_spend
is equal or lower than this value.filter_return_on_investment_ge
Float
Only return results where
return_on_investment
is equal or greater than this value.filter_return_on_investment_le
Float
Only return results where
return_on_investment
is equal or lower than this value.filter_revenue_clicks_ge
Only return results where
revenue_clicks
is equal or greater than this value.Min value: 1000
filter_revenue_clicks_le
Only return results where
revenue_clicks
is equal or lower than this value.Min value: 1000
filter_revenue_ge
Only return results where
revenue
is equal or greater than this value.Min value: 1000
filter_revenue_le
Only return results where
revenue
is equal or lower than this value.Min value: 1000
filter_revenue_per_conversion_ge
Only return results where
revenue_per_conversion
is equal or greater than this value.Min value: 1000
filter_revenue_per_conversion_le
Only return results where
revenue_per_conversion
is equal or lower than this value.Min value: 1000
filter_view_impressions
[ Integer ]
Only return results matching given
view_impressions
values.filter_view_impressions_ge
Integer
Only return results where
view_impressions
is equal or greater than this value.filter_view_impressions_le
Integer
Only return results where
view_impressions
is equal or lower than this value.search_fields
Fields that should be searched using the
search_term
.search_term
String
Search term used to search the
search_fields
.search_adgroup_id
String
Only return results where
adgroup_id
matches the given string.search_adgroup_labels
String
Only return results where
adgroup_labels
matches the given string.search_adgroup_name
String
Only return results where
adgroup_name
matches the given string.search_amz_portfolio_id
String
Only return results where
amz_portfolio_id
matches the given string.search_amz_portfolio_name
String
Only return results where
amz_portfolio_name
matches the given string.search_campaign_id
String
Only return results where
campaign_id
matches the given string.search_campaign_labels
String
Only return results where
campaign_labels
matches the given string.search_campaign_name
String
Only return results where
campaign_name
matches the given string.search_performance_group_id
String
Only return results where
performance_group_id
matches the given string.search_performance_group_name
String
Only return results where
performance_group_name
matches the given string.sort_adgroup_id
Sort results by
adgroup_id
.sort_adgroup_name
Sort results by
adgroup_name
.sort_adgroup_status
Sort results by
adgroup_status
.sort_adspert_adgroup_id
Sort results by
adspert_adgroup_id
.sort_adspert_campaign_id
Sort results by
adspert_campaign_id
.sort_adspert_portfolio_id
Sort results by
adspert_portfolio_id
.sort_amz_adgroup_type
Sort results by
amz_adgroup_type
.sort_amz_effective_status
Sort results by
amz_effective_status
.sort_amz_portfolio_id
Sort results by
amz_portfolio_id
.sort_amz_portfolio_name
Sort results by
amz_portfolio_name
.sort_campaign_eby_marketplace_id
Sort results by
campaign_eby_marketplace_id
.sort_campaign_id
Sort results by
campaign_id
.sort_campaign_name
Sort results by
campaign_name
.sort_campaign_optimization_support
Sort results by
campaign_optimization_support
.sort_campaign_optimization_type
Sort results by
campaign_optimization_type
.sort_campaign_optimize
Sort results by
campaign_optimize
.sort_campaign_status
Sort results by
campaign_status
.sort_campaign_type
Sort results by
campaign_type
.sort_click_through_rate
Sort results by
click_through_rate
.sort_click_through_rate_clicks
Sort results by
click_through_rate_clicks
.sort_clicks
Sort results by
clicks
.sort_conversion_rate
Sort results by
conversion_rate
.sort_conversion_rate_clicks
Sort results by
conversion_rate_clicks
.sort_conversions
Sort results by
conversions
.sort_conversions_clicks
Sort results by
conversions_clicks
.sort_conversions_for_revenue
Sort results by
conversions_for_revenue
.sort_cost
Sort results by
cost
.sort_cost_for_click
Sort results by
cost_for_click
.sort_cost_for_profit
Sort results by
cost_for_profit
.sort_cost_for_revenue
Sort results by
cost_for_revenue
.sort_cost_for_vcpm
Sort results by
cost_for_vcpm
.sort_cost_per_click
Sort results by
cost_per_click
.sort_cost_per_conversion
Sort results by
cost_per_conversion
.sort_cost_per_conversion_clicks
Sort results by
cost_per_conversion_clicks
.sort_cost_per_m_view_impressions
Sort results by
cost_per_m_view_impressions
.sort_cost_revenue_ratio
Sort results by
cost_revenue_ratio
.sort_cost_revenue_ratio_clicks
Sort results by
cost_revenue_ratio_clicks
.sort_date
Sort results by
date
.sort_impressions
Sort results by
impressions
.sort_impressions_total
Sort results by
impressions_total
.sort_performance_group_enabled
Sort results by
performance_group_enabled
.sort_performance_group_goal_types
Sort results by
performance_group_goal_types
.sort_performance_group_id
Sort results by
performance_group_id
.sort_performance_group_name
Sort results by
performance_group_name
.sort_performance_group_optimization_type
Sort results by
performance_group_optimization_type
.sort_price
Sort results by
price
.sort_profit_gross
Sort results by
profit_gross
.sort_profit_net
Sort results by
profit_net
.sort_return_on_ad_spend
Sort results by
return_on_ad_spend
.sort_return_on_ad_spend_clicks
Sort results by
return_on_ad_spend_clicks
.sort_return_on_investment
Sort results by
return_on_investment
.sort_revenue
Sort results by
revenue
.sort_revenue_clicks
Sort results by
revenue_clicks
.sort_revenue_per_conversion
Sort results by
revenue_per_conversion
.sort_view_impressions
Sort results by
view_impressions
.offset
Integer
Start index for result list.
Default: 0
Min value: 0
limit
Integer
Maximum number of results to return. The maximum allowed value depends on the response media type (10000 for JSON and 100000 for tabular formats like CSV).
Default: 10
Min value: 1
group_by
required
Grouping/segementation level for the results.
currency
required
Response Data (object list, json or csv or xlsx)
Name
Type
Description
date
NULL when grouped by
adgroup_id
.amz_effective_status
Effective status of Amazon product.
NULL when grouped by
date
.amz_adgroup_type
Amazon Ad Group type.
NULL when grouped by
date
.performance_group_id
searchable
Integer
Unique ID of the performance group
NULL when grouped by
date
.performance_group_name
searchable
String
Unique name of the performance group.
NULL when grouped by
date
.performance_group_enabled
Boolean
NULL when grouped by
date
.performance_group_optimization_type
Optimization type of the performance group.
Only campaigns of the same optimization type can be added to a given performance group.
NULL when grouped by
date
.performance_group_goal_types
List of performance group goal types
NULL when grouped by
date
.adspert_campaign_id
Adspert internal ID of the campaign.
NULL when grouped by
date
.Composite ID specification:
{adspert_account_id}:{campaign_id}
campaign_id
searchable
NULL when grouped by
date
.campaign_name
searchable
String
NULL when grouped by
date
.campaign_type
NULL when grouped by
date
.price
Price of the product.
Current price When grouped by
adgroup_id
. Historical prices when grouped bydate
.campaign_eby_marketplace_id
String
NULL when grouped by
date
.campaign_status
NULL when grouped by
date
.campaign_optimize
Boolean
NULL when grouped by
date
.campaign_optimization_type
NULL when grouped by
date
.campaign_optimization_support
NULL when grouped by
date
.campaign_labels
searchable
[ String ]
NULL when grouped by
date
.adspert_adgroup_id
Adspert internal ID of the adgroup.
NULL when grouped by
date
.Composite ID specification:
{adspert_account_id}:{adgroup_id}
adgroup_id
searchable
NULL when grouped by
date
.adgroup_name
searchable
String
NULL when grouped by
date
.adgroup_status
NULL when grouped by
date
.adgroup_labels
searchable
[ String ]
NULL when grouped by
date
.adspert_portfolio_id
Adspert internal ID of Amazon portfolio.
NULL when grouped by
date
.Composite ID specification:
{adspert_account_id}:{portfolio_id}
amz_portfolio_id
searchable
NULL when grouped by
date
.amz_portfolio_name
searchable
String
NULL when grouped by
date
.impressions
Integer
Number of impressions
view_impressions
Integer
Number of viewable impressions
impressions_total
Integer
Number of total impressions, For vcpm, viewable impressions and impressions for all other campaigns.
Should be used internally.
clicks
Integer
Number of clicks
conversions
Float
Number of conversions including view impressions.
Always 0 for click optimized campaigns.
conversions_clicks
Float
Number of conversions from clicks only
Valid only for vCPM campaigns. For non-vCPM campaigns, this is the same as
conversions
.cost
Total ad spend / cost
revenue
Revenue/sales.
Always 0 for click and profit optimized campaigns.
revenue_clicks
Revenue/sales from clicks only.
Valid only for vCPM campaigns. For non-vCPM campaigns, this is the same as
revenue
.profit_gross
Gross profit.
Always 0 for click and revenue optimized campaigns.
profit_net
Net profit.
profit_gross
-cost_for_profit
Always 0 for click and revenue optimized campaigns.
cost_per_click
Effective CPC.
cost
/clicks
NULL if number of
clicks
is 0.cost_per_m_view_impressions
Cost per mille viewable impressions. Valid only for vCPM campaigns.
cost
/view_impressions
NULL if number of
view_impressions
is 0.cost_per_conversion
Cost per conversion.
Only cost for profit and revenue optimized campaigns is included.
(
cost
-cost_for_click
) /conversions
NULL if number of
conversions
is 0.cost_per_conversion_clicks
Cost per conversion from clicks only.
Valid only for vCPM campaigns. For non-vCPM campaigns, this is the same as
cost_per_conversion
.NULL if number of
conversions
is 0.cost_for_profit
Ad spend from campaigns that support profit.
Always 0 for campaigns that don’t support profit.
cost_for_click
Ad spend / cost from click optimized campaigns.
Always 0 for revenue and profit optimized campaigns.
cost_for_revenue
Ad spend from campaigns that support revenue.
Always 0 for campaigns that don’t support revenue.
cost_for_vcpm
Ad spend from vcpm optimized campaigns.
Always 0 for campaigns that aren’t vcpm optimized.
conversion_rate
Float
Conversion rate.
conversions
/clicks
NULL if number of
clicks
is 0.conversion_rate_clicks
Float
Conversion rate from clicks only.
Valid only for vCPM campaigns. For non-vCPM campaigns, this is the same as
conversion_rate
.view_conversions
/clicks
NULL if number of
clicks
is 0.conversions_for_revenue
Float
Number of conversions for campaigns that support revenues.
Always 0 for campaigns that don’t support revenue.
revenue_per_conversion
Revenue per conversions.
Only revenue and conversions for revenue supporting campaigns are included.
revenue
/conversions_for_revenue
NULL if campaign doesn’t support revenue.
click_through_rate
Float
Clickthrough rate (CTR).
clicks
/impressions
NULL if number of
impressions
is 0.click_through_rate_clicks
Float
Clickthrough rate (CTR) from clicks only.
Valid only for vCPM campaigns. For non-vCPM campaigns, this is the same as
click_through_rate
.clicks
/view_impressions
NULL if number of
view_impressions
is 0.return_on_investment
Float
Return on investment (ROI).
Only cost for profit optimized campaigns is included.
profit_gross
/cost_for_profit
NULL if
cost_for_profit
is 0.return_on_ad_spend
Float
Return on ad spend (ROAS).
Only cost for revenue optimized campaigns is included.
revenue
/cost_for_revenue
NULL if
cost_for_revenue
is 0.return_on_ad_spend_clicks
Float
Return on ad spend (ROAS).
Valid only for vCPM campaigns. For non-vCPM campaigns, this is the same as
return_on_ad_spend
.revenue
/cost_for_revenue
NULL if
cost_for_revenue
is 0.cost_revenue_ratio
Float
Cost Revenue Ratio (CRR).
Also called Advertising Cost of Sale (ACoS).
Only cost for revenue optimized campaigns is included.
cost_for_revenue
/revenue
NULL if
revenue
is 0.cost_revenue_ratio_clicks
Float
Cost Revenue Ratio (CRR) from clicks only.
Valid only for vCPM campaigns. For non-vCPM campaigns, this is the same as
cost_revenue_ratio
.Also called Advertising Cost of Sale (ACoS).
cost_for_revenue
/revenue_clicks
NULL if
revenue_clicks
is 0.has_vcpm
Boolean
Whether the grouped-by entity has any campaigns with vCPM enabled.
Example
GET /v3/preview/accounts/3420379091/performance/products/JFCC2MJSGM2A====/adgroups?sort_date=-6&search_performance_group_name=tucan+lorem&filter_return_on_ad_spend_le=11.53 HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl -i -X GET 'https://api.adspert.net/v3/preview/accounts/3420379091/performance/products/JFCC2MJSGM2A====/adgroups?sort_date=-6&search_performance_group_name=tucan+lorem&filter_return_on_ad_spend_le=11.53' -H "Accept: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
http 'https://api.adspert.net/v3/preview/accounts/3420379091/performance/products/JFCC2MJSGM2A====/adgroups?sort_date=-6&search_performance_group_name=tucan+lorem&filter_return_on_ad_spend_le=11.53' Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.get('https://api.adspert.net/v3/preview/accounts/3420379091/performance/products/JFCC2MJSGM2A====/adgroups?sort_date=-6&search_performance_group_name=tucan+lorem&filter_return_on_ad_spend_le=11.53', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": [ { "date": null, "amz_effective_status": "ACTIVE", "amz_adgroup_type": "KEYWORD", "performance_group_id": "1245", "performance_group_name": "dolor sit", "performance_group_enabled": true, "performance_group_optimization_type": "CLICK", "performance_group_goal_types": [ "CLICKS-PER-DAY" ], "adspert_campaign_id": "123:5555", "campaign_id": "5555", "campaign_name": "sit ipsum", "campaign_type": "AMAZON-SPONSORED-BRANDS", "price": 1910000, "campaign_eby_marketplace_id": "amet pariatur", "campaign_status": "ACTIVE", "campaign_optimize": true, "campaign_optimization_type": "CLICK", "campaign_optimization_support": "SUPPORTED", "campaign_labels": [ "ipsum dolor" ], "adspert_adgroup_id": "123:777", "adgroup_id": "777", "adgroup_name": "tucan lorem", "adgroup_status": "ACTIVE", "adgroup_labels": [ "elit ipsum" ], "adspert_portfolio_id": "123:9999", "amz_portfolio_id": "9999", "amz_portfolio_name": "elit adlora", "impressions": 2157218327, "view_impressions": 4923863656, "impressions_total": 1855722954, "clicks": 5857268080, "conversions": 3.92, "conversions_clicks": 11.04, "cost": 4540000, "revenue": 360000, "revenue_clicks": 8260000, "profit_gross": 6420000, "profit_net": 30000, "cost_per_click": 7300000, "cost_per_m_view_impressions": 7000000, "cost_per_conversion": 7570000, "cost_per_conversion_clicks": 8380000, "cost_for_profit": 800000, "cost_for_click": 6810000, "cost_for_revenue": 6910000, "cost_for_vcpm": 210000, "conversion_rate": 0.86, "conversion_rate_clicks": 5.66, "conversions_for_revenue": 4.57, "revenue_per_conversion": 7070000, "click_through_rate": 7.58, "click_through_rate_clicks": 17.16, "return_on_investment": 3.28, "return_on_ad_spend": 2.29, "return_on_ad_spend_clicks": 5.1, "cost_revenue_ratio": 16.41, "cost_revenue_ratio_clicks": 19.69, "has_vcpm": true } ], "meta": { "pagination": { "offset": 0, "limit": 10, "total": 74, "sort": { "date": 1 } } } }
ProductConvertingCriteriaCollection
GET
- GET /v3/preview/accounts/(adspert_account_id: int)/products/(adspert_product_id: b32)/converting-criteria
-
Query Params
Name
Type
Description
include
Fields to include in response data.
exclude
Fields to exclude in response data.
search_fields
Fields that should be searched using the
search_term
.search_term
String
Search term used to search the
search_fields
.sort_criterion_name
Sort results by
criterion_name
.sort_criterion_type
Sort results by
criterion_type
.sort_match_type
Sort results by
match_type
.sort_share_of_conversions
Sort results by
share_of_conversions
.offset
Integer
Start index for result list.
Default: 0
Min value: 0
limit
Integer
Maximum number of results to return. The maximum allowed value depends on the response media type (10000 for JSON and 100000 for tabular formats like CSV).
Default: 10
Min value: 1
Response Data (object list, json or csv or xlsx)
Name
Type
Description
criterion_name
String
Criterion name.
criterion_type
Criterion type.
match_type
Keyword match type.
NULL if criterion is not a keyword.
share_of_conversions
Float
Ratio of conversions this criterion has generated, to total number of conversions generated by all non-automatic criteria for this product.
Example
GET /v3/preview/accounts/3420379091/products/JFCC2MJSGM2A====/converting-criteria?sort_match_type=9&sort_criterion_type=0&offset=0 HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl -i -X GET 'https://api.adspert.net/v3/preview/accounts/3420379091/products/JFCC2MJSGM2A====/converting-criteria?sort_match_type=9&sort_criterion_type=0&offset=0' -H "Accept: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
http 'https://api.adspert.net/v3/preview/accounts/3420379091/products/JFCC2MJSGM2A====/converting-criteria?sort_match_type=9&sort_criterion_type=0&offset=0' Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.get('https://api.adspert.net/v3/preview/accounts/3420379091/products/JFCC2MJSGM2A====/converting-criteria?sort_match_type=9&sort_criterion_type=0&offset=0', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": [ { "criterion_name": "dolor adlora", "criterion_type": "AUDIENCE", "match_type": "BROAD", "share_of_conversions": 18.28 } ], "meta": { "pagination": { "offset": 0, "limit": 10, "total": 74, "sort": { "criterion_name": 1 } } } }
ScenarioCollection
GET
- GET /v3/customers/(customer_id: int)/scenarios
-
Query Params
Name
Type
Description
include
Fields to include in response data.
exclude
Fields to exclude in response data.
offset
Integer
Start index for result list.
Default: 0
Min value: 0
limit
Integer
Maximum number of results to return. The maximum allowed value depends on the response media type (10000 for JSON and 100000 for tabular formats like CSV).
Default: 10
Min value: 1
performance_group_id
Integer
Performance group to create scenarios for.
If
adspert_campaign_ids
is defined, those campaigns will be used instead of campaigns that are currently assigned to the performance group.adspert_campaign_ids
[ CompositeID ]
List of campaigns to create scenarios for.
All campaigns need to be of the same
optimization_type
.currency
required
goal_type
Type of the goal to include in scenarios.
Specifying
goal_type
,goal_value
, and (optionally)goal_currency
will add a scenario that matches the selected goal value.goal_type
,goal_value
andgoal_currency
should beNULL
ifperformance_group_id
is specified.goal_value
Float
Value of the goal to include in scenarios.
Specifying
goal_type
,goal_value
, and (optionally)goal_currency
will add a scenario that matches the selected goal value.goal_type
,goal_value
andgoal_currency
should beNULL
ifperformance_group_id
is specified.goal_currency
Currency of the goal to include in scenarios.
Specifying
goal_type
,goal_value
, and (optionally)goal_currency
will add a scenario that matches the selected goal value.goal_type
,goal_value
andgoal_currency
should beNULL
ifperformance_group_id
is specified.Currency is required for the following goal types:
COST-PER-DAY
,COST-PER-CONVERSION
,COST-PER-CLICK
.Response Data (object list, json or csv or xlsx)
Name
Type
Description
clicks
Float
Number of projected clicks
conversions
Float
Number of projected conversions.
Always None for click optimized performance groups and campaigns.
cost
Projected ad spend/cost.
revenue
Projected revenue/sales.
Always None for click and profit optimized performance groups and campaigns.
profit_net
Projected net profit.
Always None for click and revenue optimized performance groups and campaigns.
profit_gross
Projected gross profit.
Always None for click and revenue optimized performance groups and campaigns.
cost_per_click
Projected effective CPC.
cost_per_conversion
Projected cost per conversion.
Always None for click optimized performance groups and campaigns.
return_on_investment
Float
Projected return on investment (ROI).
Always None for click and revenue optimized performance groups and campaigns.
return_on_ad_spend
Float
Projected return on ad spend (ROAS).
Always None for click and profit optimized performance groups and campaigns.
cost_revenue_ratio
Float
Projected cost revenue ratio (CRR).
Always None for click and profit optimized performance groups and campaigns.
Example
GET /v3/customers/7027038674/scenarios?goal_value=1.41&exclude=elit.amet¤cy=AED HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl -i -X GET 'https://api.adspert.net/v3/customers/7027038674/scenarios?goal_value=1.41&exclude=elit.amet¤cy=AED' -H "Accept: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
http 'https://api.adspert.net/v3/customers/7027038674/scenarios?goal_value=1.41&exclude=elit.amet¤cy=AED' Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.get('https://api.adspert.net/v3/customers/7027038674/scenarios?goal_value=1.41&exclude=elit.amet¤cy=AED', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": [ { "clicks": 10.56, "conversions": 3.92, "cost": 4540000, "revenue": 360000, "profit_net": 30000, "profit_gross": 6420000, "cost_per_click": 7300000, "cost_per_conversion": 7570000, "return_on_investment": 3.28, "return_on_ad_spend": 2.29, "cost_revenue_ratio": 16.41 } ], "meta": { "pagination": { "offset": 0, "limit": 10, "total": 74, "sort": { "clicks": 1 } } } }
POST
- POST /v3/customers/(customer_id: int)/scenarios
-
Request Data (single object, json)
Name
Type
Description
offset
Integer
Start index for result list.
Default: 0
Min value: 0
limit
Integer
Maximum number of results to return. The maximum allowed value depends on the response media type (10000 for JSON and 100000 for tabular formats like CSV).
Default: 10
Min value: 1
include
Fields to include in response data.
exclude
Fields to exclude in response data.
performance_group_id
Integer
Performance group to create scenarios for.
If
adspert_campaign_ids
is defined, those campaigns will be used instead of campaigns that are currently assigned to the performance group.adspert_campaign_ids
[ CompositeID ]
List of campaigns to create scenarios for.
All campaigns need to be of the same
optimization_type
.currency
required
goal_type
Type of the goal to include in scenarios.
Specifying
goal_type
,goal_value
, and (optionally)goal_currency
will add a scenario that matches the selected goal value.goal_type
,goal_value
andgoal_currency
should beNULL
ifperformance_group_id
is specified.goal_value
Float
Value of the goal to include in scenarios.
Specifying
goal_type
,goal_value
, and (optionally)goal_currency
will add a scenario that matches the selected goal value.goal_type
,goal_value
andgoal_currency
should beNULL
ifperformance_group_id
is specified.goal_currency
Currency of the goal to include in scenarios.
Specifying
goal_type
,goal_value
, and (optionally)goal_currency
will add a scenario that matches the selected goal value.goal_type
,goal_value
andgoal_currency
should beNULL
ifperformance_group_id
is specified.Currency is required for the following goal types:
COST-PER-DAY
,COST-PER-CONVERSION
,COST-PER-CLICK
.Response Data (object list, json or csv or xlsx)
Name
Type
Description
clicks
Float
Number of projected clicks
conversions
Float
Number of projected conversions.
Always None for click optimized performance groups and campaigns.
cost
Projected ad spend/cost.
revenue
Projected revenue/sales.
Always None for click and profit optimized performance groups and campaigns.
profit_net
Projected net profit.
Always None for click and revenue optimized performance groups and campaigns.
profit_gross
Projected gross profit.
Always None for click and revenue optimized performance groups and campaigns.
cost_per_click
Projected effective CPC.
cost_per_conversion
Projected cost per conversion.
Always None for click optimized performance groups and campaigns.
return_on_investment
Float
Projected return on investment (ROI).
Always None for click and revenue optimized performance groups and campaigns.
return_on_ad_spend
Float
Projected return on ad spend (ROAS).
Always None for click and profit optimized performance groups and campaigns.
cost_revenue_ratio
Float
Projected cost revenue ratio (CRR).
Always None for click and profit optimized performance groups and campaigns.
Example
POST /v3/customers/7027038674/scenarios HTTP/1.1 Host: api.adspert.net Accept: application/json Content-Type: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5... { "offset": 0, "limit": 10, "include": [ "ipsum.amet" ], "exclude": [ "elit.amet" ], "performance_group_id": "1245", "adspert_campaign_ids": [ "123:5555" ], "currency": "AED", "goal_type": "CLICKS-PER-DAY", "goal_value": 1.41, "goal_currency": "AED" }
curl -i -X POST https://api.adspert.net/v3/customers/7027038674/scenarios -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..." --data-raw '{"adspert_campaign_ids": ["123:5555"], "currency": "AED", "exclude": ["elit.amet"], "goal_currency": "AED", "goal_type": "CLICKS-PER-DAY", "goal_value": 1.41, "include": ["ipsum.amet"], "limit": 10, "offset": 0, "performance_group_id": "1245"}'
echo '{ "adspert_campaign_ids": [ "123:5555" ], "currency": "AED", "exclude": [ "elit.amet" ], "goal_currency": "AED", "goal_type": "CLICKS-PER-DAY", "goal_value": 1.41, "include": [ "ipsum.amet" ], "limit": 10, "offset": 0, "performance_group_id": "1245" }' | http POST https://api.adspert.net/v3/customers/7027038674/scenarios Accept:application/json Content-Type:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.post('https://api.adspert.net/v3/customers/7027038674/scenarios', headers={'Accept': 'application/json', 'Content-Type': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'}, json={'adspert_campaign_ids': ['123:5555'], 'currency': 'AED', 'exclude': ['elit.amet'], 'goal_currency': 'AED', 'goal_type': 'CLICKS-PER-DAY', 'goal_value': 1.41, 'include': ['ipsum.amet'], 'limit': 10, 'offset': 0, 'performance_group_id': '1245'})
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": [ { "clicks": 10.56, "conversions": 3.92, "cost": 4540000, "revenue": 360000, "profit_net": 30000, "profit_gross": 6420000, "cost_per_click": 7300000, "cost_per_conversion": 7570000, "return_on_investment": 3.28, "return_on_ad_spend": 2.29, "cost_revenue_ratio": 16.41 } ], "meta": {} }
AdgroupInsightsResource
GET
- GET /v3/accounts/(adspert_account_id: int)/insights/adgroups/(adgroup_id: str)
-
Query Params
Name
Type
Description
include
Fields to include in response data.
exclude
Fields to exclude in response data.
filter_date_ge
required
Only return results where
date
is on or after this date.filter_date_le
required
Only return results where
date
is on or before this date.search_fields
Fields that should be searched using the
search_term
.search_term
String
Search term used to search the
search_fields
.offset
Integer
Start index for result list.
Default: 0
Min value: 0
limit
Integer
Maximum number of results to return. The maximum allowed value depends on the response media type (10000 for JSON and 100000 for tabular formats like CSV).
Default: 10
Min value: 1
hour_interval_size
required
Integer
Size of the hour interval for the hourly metrics. Allowed values are 1, 2, 3, 4, 6, 8, 12, 24.
Choices:
1
•2
•3
•4
•6
•8
•12
•24
currency
required
Response Data (object list, json or csv or xlsx)
Name
Type
Description
day_of_week
Integer
Day of the week (0=Sunday, 6=Saturday)
hourly_metrics
[ Object ]
⤷
impressions
Integer
Number of impressions
⤷
view_impressions
Integer
Number of viewable impressions
⤷
impressions_total
Integer
Number of total impressions, For vcpm, viewable impressions and impressions for all other campaigns.
Should be used internally.
⤷
clicks
Integer
Number of clicks
⤷
click_through_rate
Float
Clickthrough rate (CTR).
clicks
/impressions
NULL if number of
impressions
is 0.⤷
conversions
Float
Number of conversions including view impressions.
Always 0 for click optimized campaigns.
⤷
conversion_rate
Float
Conversion rate.
conversions
/clicks
NULL if number of
clicks
is 0.⤷
cost
Total ad spend / cost
⤷
hour_interval
Integer
Hour interval number for the metrics
Example
GET /v3/accounts/3420379091/insights/adgroups/ID-1234?filter_date_ge=2018-10-21&search_term=vehicula+ipsum¤cy=AED HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl -i -X GET 'https://api.adspert.net/v3/accounts/3420379091/insights/adgroups/ID-1234?filter_date_ge=2018-10-21&search_term=vehicula+ipsum¤cy=AED' -H "Accept: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
http 'https://api.adspert.net/v3/accounts/3420379091/insights/adgroups/ID-1234?filter_date_ge=2018-10-21&search_term=vehicula+ipsum¤cy=AED' Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.get('https://api.adspert.net/v3/accounts/3420379091/insights/adgroups/ID-1234?filter_date_ge=2018-10-21&search_term=vehicula+ipsum¤cy=AED', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": [ { "day_of_week": 9753209584, "hourly_metrics": [ { "impressions": 2157218327, "view_impressions": 4923863656, "impressions_total": 1855722954, "clicks": 5857268080, "click_through_rate": 7.58, "conversions": 3.92, "conversion_rate": 0.86, "cost": 4540000, "hour_interval": 3099278771 } ] } ], "meta": { "pagination": { "offset": 0, "limit": 10, "total": 74, "sort": { "day_of_week": 1 } } } }
CampaignInsightsResource
GET
- GET /v3/accounts/(adspert_account_id: int)/insights/campaigns/(campaign_id: str)
-
Query Params
Name
Type
Description
include
Fields to include in response data.
exclude
Fields to exclude in response data.
filter_date_ge
required
Only return results where
date
is on or after this date.filter_date_le
required
Only return results where
date
is on or before this date.search_fields
Fields that should be searched using the
search_term
.search_term
String
Search term used to search the
search_fields
.offset
Integer
Start index for result list.
Default: 0
Min value: 0
limit
Integer
Maximum number of results to return. The maximum allowed value depends on the response media type (10000 for JSON and 100000 for tabular formats like CSV).
Default: 10
Min value: 1
hour_interval_size
required
Integer
Size of the hour interval for the hourly metrics. Allowed values are 1, 2, 3, 4, 6, 8, 12, 24.
Choices:
1
•2
•3
•4
•6
•8
•12
•24
currency
required
Response Data (object list, json or csv or xlsx)
Name
Type
Description
day_of_week
Integer
Day of the week (0=Sunday, 6=Saturday)
hourly_metrics
[ Object ]
⤷
impressions
Integer
Number of impressions
⤷
view_impressions
Integer
Number of viewable impressions
⤷
impressions_total
Integer
Number of total impressions, For vcpm, viewable impressions and impressions for all other campaigns.
Should be used internally.
⤷
clicks
Integer
Number of clicks
⤷
click_through_rate
Float
Clickthrough rate (CTR).
clicks
/impressions
NULL if number of
impressions
is 0.⤷
conversions
Float
Number of conversions including view impressions.
Always 0 for click optimized campaigns.
⤷
conversion_rate
Float
Conversion rate.
conversions
/clicks
NULL if number of
clicks
is 0.⤷
cost
Total ad spend / cost
⤷
hour_interval
Integer
Hour interval number for the metrics
Example
GET /v3/accounts/3420379091/insights/campaigns/ID-1234?search_term=vehicula+ipsum&search_fields=pariatur.adlora¤cy=AED HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl -i -X GET 'https://api.adspert.net/v3/accounts/3420379091/insights/campaigns/ID-1234?search_term=vehicula+ipsum&search_fields=pariatur.adlora¤cy=AED' -H "Accept: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
http 'https://api.adspert.net/v3/accounts/3420379091/insights/campaigns/ID-1234?search_term=vehicula+ipsum&search_fields=pariatur.adlora¤cy=AED' Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.get('https://api.adspert.net/v3/accounts/3420379091/insights/campaigns/ID-1234?search_term=vehicula+ipsum&search_fields=pariatur.adlora¤cy=AED', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": [ { "day_of_week": 9753209584, "hourly_metrics": [ { "impressions": 2157218327, "view_impressions": 4923863656, "impressions_total": 1855722954, "clicks": 5857268080, "click_through_rate": 7.58, "conversions": 3.92, "conversion_rate": 0.86, "cost": 4540000, "hour_interval": 3099278771 } ] } ], "meta": { "pagination": { "offset": 0, "limit": 10, "total": 74, "sort": { "day_of_week": 1 } } } }
Logs
PerformanceGroupLogCollection
GET
- GET /v3/customers/(customer_id: int)/performance-groups/log
Get Performance Group Logs for respective customer.
Query Params
Name
Type
Description
include
Fields to include in response data.
exclude
Fields to exclude in response data.
filter_date_ge
required
Only return results where
filter_date_ge
is equal or greater than this value.filter_date_le
required
Only return results where
filter_date_le
is equal or lower than this value.filter_account_is_demo
[ Boolean ]
Only return results matching given
account_is_demo
values.filter_account_optimize
[ Boolean ]
Only return results matching given
account_optimize
values.filter_account_tags_user
[ String ]
Only return results matching given
account_tags_user
values.filter_performance_group_enabled
[ Boolean ]
Only return results matching given
performance_group_enabled
values.filter_performance_group_optimization_type
[ OptimizationType ]
Only return results matching given
performance_group_optimization_type
values.filter_performance_group_goal_types
Only return results matching given
performance_group_goal_types
values.filter_adspert_campaign_id
[ CompositeID ]
Only return results matching given
adspert_campaign_id
values.filter_campaign_type
[ CampaignType ]
Only return results matching given
campaign_type
values.filter_campaign_eby_marketplace_id
[ String ]
Only return results matching given
campaign_eby_marketplace_id
values.filter_campaign_status
[ CampaignStatus ]
Only return results matching given
campaign_status
values.filter_campaign_optimize
[ Boolean ]
Only return results matching given
campaign_optimize
values.filter_campaign_optimization_type
[ OptimizationType ]
Only return results matching given
campaign_optimization_type
values.filter_campaign_optimization_support
Only return results matching given
campaign_optimization_support
values.filter_campaign_labels
[ String ]
Only return results matching given
campaign_labels
values.filter_adspert_portfolio_id
[ CompositeID ]
Only return results matching given
adspert_portfolio_id
values.filter_amz_portfolio_id
[ LargeInteger ]
Only return results matching given
amz_portfolio_id
values.filter_amz_portfolio_name
[ String ]
Only return results matching given
amz_portfolio_name
values.filter_account_id
[ String ]
Only return results matching given
account_id
values.filter_account_name
[ String ]
Only return results matching given
account_name
values.filter_account_platform
[ AdPlatform ]
Only return results matching given
account_platform
values.filter_adspert_account_id
[ Integer ]
Only return results matching given
adspert_account_id
values.filter_campaign_name
[ String ]
Only return results matching given
campaign_name
values.filter_entry_type
Only return results matching given
entry_type
values.filter_performance_group_id
[ Integer ]
Only return results matching given
performance_group_id
values.filter_performance_group_name
[ String ]
Only return results matching given
performance_group_name
values.filter_user_id
[ Integer ]
Only return results matching given
user_id
values.search_fields
Fields that should be searched using the
search_term
.search_term
String
Search term used to search the
search_fields
.search_goal_name
String
Only return results where
goal_name
matches the given string.search_performance_group_goal_types
String
Only return results where
performance_group_goal_types
matches the given string.search_campaign_labels
String
Only return results where
campaign_labels
matches the given string.search_amz_portfolio_id
Integer
Only return results where
amz_portfolio_id
matches the given string.search_amz_portfolio_name
String
Only return results where
amz_portfolio_name
matches the given string.search_user_name
String
Only return results where
user_name
matches the given string.search_user_email
String
Only return results where
user_email
matches the given string.search_account_tags_user
String
Only return results where
account_tags_user
matches the given string.search_account_id
String
Only return results where
account_id
matches the given string.search_account_name
String
Only return results where
account_name
matches the given string.search_adspert_account_id
String
Only return results where
adspert_account_id
matches the given string.search_campaign_id
String
Only return results where
campaign_id
matches the given string.search_campaign_name
String
Only return results where
campaign_name
matches the given string.search_performance_group_id
String
Only return results where
performance_group_id
matches the given string.search_performance_group_name
String
Only return results where
performance_group_name
matches the given string.sort_account_id
Sort results by
account_id
.sort_account_name
Sort results by
account_name
.sort_account_platform
Sort results by
account_platform
.sort_adspert_account_id
Sort results by
adspert_account_id
.sort_adspert_campaign_id
Sort results by
adspert_campaign_id
.sort_campaign_id
Sort results by
campaign_id
.sort_campaign_name
Sort results by
campaign_name
.sort_entry_type
Sort results by
entry_type
.sort_log_id
Sort results by
log_id
.sort_performance_group_id
Sort results by
performance_group_id
.sort_performance_group_name
Sort results by
performance_group_name
.sort_timestamp
Sort results by
timestamp
.sort_user_email
Sort results by
user_email
.sort_user_id
Sort results by
user_id
.sort_user_name
Sort results by
user_name
.offset
Integer
Start index for result list.
Default: 0
Min value: 0
limit
Integer
Maximum number of results to return. The maximum allowed value depends on the response media type (10000 for JSON and 100000 for tabular formats like CSV).
Default: 10
Min value: 1
Response Data (object list, json or csv or xlsx)
Name
Type
Description
timestamp
log_id
Integer
user_id
Integer
ID of the user who did the change.
Is
-1
if change was made by Adspert.user_email
searchable
String
E-mail of the user who did the change. Is
null
if change was made by Adspert.user_name
searchable
String
Adspert if change was made by Adspert.
performance_group_id
searchable
Integer
Unique ID of the performance group
performance_group_name
searchable
String
Unique name of the performance group.
account_id
searchable
String
Ad platform specific ID of an advertising account.
adspert_account_id
searchable
Integer
Adspert internal ID of the advertising account
account_name
searchable
String
account_platform
The account’s advertising platform.
adspert_campaign_id
Adspert internal ID of the campaign.
Composite ID specification:
{adspert_account_id}:{campaign_id}
campaign_id
searchable
campaign_name
searchable
String
entry_type
Entry type of the respective Performance Group Log row.
message_title
String
Localized and human-readable message title for the respective Performance Group Log row.
message_details
String
Localized and human-readable message details for the respective Performance Group Log row.
Example
GET /v3/customers/7027038674/performance-groups/log?sort_account_id=7&search_campaign_id=dolor+amet&search_campaign_labels=dolor+ipsum HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl -i -X GET 'https://api.adspert.net/v3/customers/7027038674/performance-groups/log?sort_account_id=7&search_campaign_id=dolor+amet&search_campaign_labels=dolor+ipsum' -H "Accept: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
http 'https://api.adspert.net/v3/customers/7027038674/performance-groups/log?sort_account_id=7&search_campaign_id=dolor+amet&search_campaign_labels=dolor+ipsum' Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.get('https://api.adspert.net/v3/customers/7027038674/performance-groups/log?sort_account_id=7&search_campaign_id=dolor+amet&search_campaign_labels=dolor+ipsum', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": [ { "timestamp": "2018-10-21T16:45:23+02:00", "log_id": 5332652616, "user_id": 12345, "user_email": "test@example.com", "user_name": "adlora ipsum", "performance_group_id": "1245", "performance_group_name": "dolor sit", "account_id": "amet lorem", "adspert_account_id": 123, "account_name": "vehicula ipsum", "account_platform": "AMAZON", "adspert_campaign_id": "123:5555", "campaign_id": "5555", "campaign_name": "sit ipsum", "entry_type": "ACCOUNT-DEFAULT-ADDED-ACCOUNT-MOVED", "message_title": "pariatur lorem", "message_details": "tucan sit" } ], "meta": { "pagination": { "offset": 0, "limit": 10, "total": 74, "sort": { "timestamp": 1 } } } }
FilterUserCollectionPerformanceGroups
GET
- GET /v3/customers/(customer_id: int)/performance-groups/log/users
Get users that can be used as filters in the log endpoint.
Query Params
Name
Type
Description
include
Fields to include in response data.
exclude
Fields to exclude in response data.
filter_date_ge
required
Only return results where
filter_date_ge
is equal or greater than this value.filter_date_le
required
Only return results where
filter_date_le
is equal or lower than this value.Response Data (object list, json or csv or xlsx)
Name
Type
Description
user_id
Integer
ID of the user who did the change.
Is
-1
if change was made by Adspert.user_email
searchable
String
E-mail of the user who did the change. Is
null
if change was made by Adspert.user_name
searchable
String
Adspert if change was made by Adspert.
Example
GET /v3/customers/7027038674/performance-groups/log/users?exclude=elit.amet&filter_date_ge=2018-10-21&include=ipsum.amet HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl -i -X GET 'https://api.adspert.net/v3/customers/7027038674/performance-groups/log/users?exclude=elit.amet&filter_date_ge=2018-10-21&include=ipsum.amet' -H "Accept: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
http 'https://api.adspert.net/v3/customers/7027038674/performance-groups/log/users?exclude=elit.amet&filter_date_ge=2018-10-21&include=ipsum.amet' Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.get('https://api.adspert.net/v3/customers/7027038674/performance-groups/log/users?exclude=elit.amet&filter_date_ge=2018-10-21&include=ipsum.amet', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": [ { "user_id": 12345, "user_email": "test@example.com", "user_name": "adlora ipsum" } ], "meta": {} }
PerformanceGroupLogEntryTypesCollection
GET
- GET /v3/customers/(customer_id: int)/performance-groups/log/entry-types
Get entry type that can be used as filters in the
Performance Group Log endpoint
Query Params
Name
Type
Description
include
Fields to include in response data.
exclude
Fields to exclude in response data.
filter_date_ge
required
Only return results where
filter_date_ge
is equal or greater than this value.filter_date_le
required
Only return results where
filter_date_le
is equal or lower than this value.Response Data (object list, json or csv or xlsx)
Name
Type
Description
entry_type
Example
GET /v3/customers/7027038674/performance-groups/log/entry-types?filter_date_le=2018-10-21&filter_date_ge=2018-10-21&include=ipsum.amet HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl -i -X GET 'https://api.adspert.net/v3/customers/7027038674/performance-groups/log/entry-types?filter_date_le=2018-10-21&filter_date_ge=2018-10-21&include=ipsum.amet' -H "Accept: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
http 'https://api.adspert.net/v3/customers/7027038674/performance-groups/log/entry-types?filter_date_le=2018-10-21&filter_date_ge=2018-10-21&include=ipsum.amet' Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.get('https://api.adspert.net/v3/customers/7027038674/performance-groups/log/entry-types?filter_date_le=2018-10-21&filter_date_ge=2018-10-21&include=ipsum.amet', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": [ { "entry_type": "ACCOUNT-DEFAULT-ADDED-ACCOUNT-MOVED" } ], "meta": {} }
ProductAdSyncLogCollection
GET
- GET /v3/customers/(customer_id: int)/product-ax/log/sync
Get product ad sync log for respective customer.
Query Params
Name
Type
Description
include
Fields to include in response data.
exclude
Fields to exclude in response data.
filter_account_is_demo
[ Boolean ]
Only return results matching given
account_is_demo
values.filter_account_optimize
[ Boolean ]
Only return results matching given
account_optimize
values.filter_account_tags_user
[ String ]
Only return results matching given
account_tags_user
values.filter_account_currency
[ String ]
Only return results matching given
account_currency
values.filter_source_performance_group_id
[ Integer ]
Only return results matching given
source_performance_group_id
values.filter_source_performance_group_name
[ String ]
Only return results matching given
source_performance_group_name
values.filter_source_performance_group_enabled
[ Boolean ]
Only return results matching given
source_performance_group_enabled
values.filter_source_performance_group_optimization_type
[ OptimizationType ]
Only return results matching given
source_performance_group_optimization_type
values.filter_source_performance_group_goal_types
Only return results matching given
source_performance_group_goal_types
values.filter_target_performance_group_id
[ Integer ]
Only return results matching given
target_performance_group_id
values.filter_target_performance_group_name
[ String ]
Only return results matching given
target_performance_group_name
values.filter_target_performance_group_enabled
[ Boolean ]
Only return results matching given
target_performance_group_enabled
values.filter_target_performance_group_optimization_type
[ OptimizationType ]
Only return results matching given
target_performance_group_optimization_type
values.filter_target_performance_group_goal_types
Only return results matching given
target_performance_group_goal_types
values.filter_source_adspert_portfolio_id
[ CompositeID ]
Only return results matching given
source_adspert_portfolio_id
values.filter_source_amz_portfolio_id
[ LargeInteger ]
Only return results matching given
source_amz_portfolio_id
values.filter_source_amz_portfolio_name
[ String ]
Only return results matching given
source_amz_portfolio_name
values.filter_target_adspert_portfolio_id
[ CompositeID ]
Only return results matching given
target_adspert_portfolio_id
values.filter_target_amz_portfolio_id
[ LargeInteger ]
Only return results matching given
target_amz_portfolio_id
values.filter_target_amz_portfolio_name
[ String ]
Only return results matching given
target_amz_portfolio_name
values.filter_source_campaign_type
[ CampaignType ]
Only return results matching given
source_campaign_type
values.filter_source_campaign_eby_marketplace_id
[ String ]
Only return results matching given
source_campaign_eby_marketplace_id
values.filter_source_campaign_status
[ CampaignStatus ]
Only return results matching given
source_campaign_status
values.filter_source_campaign_optimize
[ Boolean ]
Only return results matching given
source_campaign_optimize
values.filter_source_campaign_optimization_type
[ OptimizationType ]
Only return results matching given
source_campaign_optimization_type
values.filter_source_campaign_optimization_support
Only return results matching given
source_campaign_optimization_support
values.filter_source_campaign_amz_targeting_type
[ AmzTargetingType ]
Only return results matching given
source_campaign_amz_targeting_type
values.filter_source_campaign_labels
[ String ]
Only return results matching given
source_campaign_labels
values.filter_target_campaign_type
[ CampaignType ]
Only return results matching given
target_campaign_type
values.filter_target_campaign_eby_marketplace_id
[ String ]
Only return results matching given
target_campaign_eby_marketplace_id
values.filter_target_campaign_status
[ CampaignStatus ]
Only return results matching given
target_campaign_status
values.filter_target_campaign_optimize
[ Boolean ]
Only return results matching given
target_campaign_optimize
values.filter_target_campaign_optimization_type
[ OptimizationType ]
Only return results matching given
target_campaign_optimization_type
values.filter_target_campaign_optimization_support
Only return results matching given
target_campaign_optimization_support
values.filter_target_campaign_amz_targeting_type
[ AmzTargetingType ]
Only return results matching given
target_campaign_amz_targeting_type
values.filter_target_campaign_labels
[ String ]
Only return results matching given
target_campaign_labels
values.filter_source_adgroup_status
[ AdgroupStatus ]
Only return results matching given
source_adgroup_status
values.filter_source_adgroup_labels
[ String ]
Only return results matching given
source_adgroup_labels
values.filter_target_adgroup_status
[ AdgroupStatus ]
Only return results matching given
target_adgroup_status
values.filter_target_adgroup_labels
[ String ]
Only return results matching given
target_adgroup_labels
values.filter_date_ge
required
Only return results where
filter_date_ge
is equal or greater than this value.filter_date_le
required
Only return results where
filter_date_le
is equal or lower than this value.filter_action
[ Action ]
Only return results matching given
status
values.filter_account_id
[ String ]
Only return results matching given
account_id
values.filter_account_name
[ String ]
Only return results matching given
account_name
values.filter_account_platform
[ AdPlatform ]
Only return results matching given
account_platform
values.filter_adspert_account_id
[ Integer ]
Only return results matching given
adspert_account_id
values.filter_source_adgroup_name
[ String ]
Only return results matching given
source_adgroup_name
values.filter_source_adspert_adgroup_id
[ CompositeID ]
Only return results matching given
source_adspert_adgroup_id
values.filter_source_adspert_campaign_id
[ CompositeID ]
Only return results matching given
source_adspert_campaign_id
values.filter_source_campaign_name
[ String ]
Only return results matching given
source_campaign_name
values.filter_sync_mode
[ ApiEnumSyncMode ]
Only return results matching given
sync_mode
values.filter_target_adgroup_name
[ String ]
Only return results matching given
target_adgroup_name
values.filter_target_adspert_adgroup_id
[ CompositeID ]
Only return results matching given
target_adspert_adgroup_id
values.filter_target_adspert_campaign_id
[ CompositeID ]
Only return results matching given
target_adspert_campaign_id
values.filter_target_campaign_name
[ String ]
Only return results matching given
target_campaign_name
values.search_fields
Fields that should be searched using the
search_term
.search_term
String
Search term used to search the
search_fields
.search_account_tags_user
String
Only return results where
account_tags_user
matches the given string.search_source_performance_group_name
String
Only return results where
source_performance_group_name
matches the given string.search_source_amz_portfolio_name
String
Only return results where
source_amz_portfolio_name
matches the given string.search_target_performance_group_name
String
Only return results where
target_performance_group_name
matches the given string.search_target_amz_portfolio_name
String
Only return results where
target_amz_portfolio_name
matches the given string.search_source_campaign_labels
String
Only return results where
source_campaign_labels
matches the given string.search_target_campaign_labels
String
Only return results where
target_campaign_labels
matches the given string.search_source_adgroup_labels
String
Only return results where
source_adgroup_labels
matches the given string.search_target_adgroup_labels
String
Only return results where
target_adgroup_labels
matches the given string.search_account_id
String
Only return results where
account_id
matches the given string.search_account_name
String
Only return results where
account_name
matches the given string.search_adspert_account_id
String
Only return results where
adspert_account_id
matches the given string.search_source_adgroup_id
String
Only return results where
source_adgroup_id
matches the given string.search_source_adgroup_name
String
Only return results where
source_adgroup_name
matches the given string.search_source_campaign_id
String
Only return results where
source_campaign_id
matches the given string.search_source_campaign_name
String
Only return results where
source_campaign_name
matches the given string.search_target_adgroup_id
String
Only return results where
target_adgroup_id
matches the given string.search_target_adgroup_name
String
Only return results where
target_adgroup_name
matches the given string.search_target_campaign_id
String
Only return results where
target_campaign_id
matches the given string.search_target_campaign_name
String
Only return results where
target_campaign_name
matches the given string.sort_account_id
Sort results by
account_id
.sort_account_name
Sort results by
account_name
.sort_account_platform
Sort results by
account_platform
.sort_adspert_account_id
Sort results by
adspert_account_id
.sort_source_adgroup_id
Sort results by
source_adgroup_id
.sort_source_adgroup_name
Sort results by
source_adgroup_name
.sort_source_adspert_adgroup_id
Sort results by
source_adspert_adgroup_id
.sort_source_adspert_campaign_id
Sort results by
source_adspert_campaign_id
.sort_source_campaign_id
Sort results by
source_campaign_id
.sort_source_campaign_name
Sort results by
source_campaign_name
.sort_sync_mode
Sort results by
sync_mode
.sort_target_adgroup_id
Sort results by
target_adgroup_id
.sort_target_adgroup_name
Sort results by
target_adgroup_name
.sort_target_adspert_adgroup_id
Sort results by
target_adspert_adgroup_id
.sort_target_adspert_campaign_id
Sort results by
target_adspert_campaign_id
.sort_target_campaign_id
Sort results by
target_campaign_id
.sort_target_campaign_name
Sort results by
target_campaign_name
.sort_timestamp
Sort results by
timestamp
.offset
Integer
Start index for result list.
Default: 0
Min value: 0
limit
Integer
Maximum number of results to return. The maximum allowed value depends on the response media type (10000 for JSON and 100000 for tabular formats like CSV).
Default: 10
Min value: 1
Response Data (object list, json or csv or xlsx)
Name
Type
Description
timestamp
mutation_summary
Object
⤷
count_created
Integer
Count of created items during product ad sync.
⤷
count_paused
Integer
Count of created items during product ad sync.
⤷
count_archived
Integer
Count of archived items during product ad sync.
⤷
count_failed
Integer
Count of failed items during product ad sync.
⤷
count_enabled
Integer
Count of enabled items during product ad sync.
mutation_details
[ Object ]
NULL if there were only failures during the sync.
⤷
sku
String
⤷
asin
String
⤷
action
Mutate action for the product.
adspert_account_id
searchable
Integer
Adspert internal ID of the advertising account
account_id
searchable
String
Ad platform specific ID of an advertising account.
account_name
searchable
String
account_platform
The account’s advertising platform.
source_adspert_adgroup_id
Adspert internal ID of the adgroup.
Composite ID specification:
{adspert_account_id}:{adgroup_id}
source_adgroup_id
searchable
source_adgroup_name
searchable
String
source_adspert_campaign_id
Adspert internal ID of the campaign.
Composite ID specification:
{adspert_account_id}:{campaign_id}
source_campaign_id
searchable
source_campaign_name
searchable
String
target_adspert_adgroup_id
Adspert internal ID of the adgroup.
Composite ID specification:
{adspert_account_id}:{adgroup_id}
target_adgroup_id
searchable
target_adgroup_name
searchable
String
target_adspert_campaign_id
Adspert internal ID of the campaign.
Composite ID specification:
{adspert_account_id}:{campaign_id}
target_campaign_id
searchable
target_campaign_name
searchable
String
sync_mode
Mode of the product ad sync.
Example
GET /v3/customers/7027038674/product-ax/log/sync?search_source_adgroup_name=amet+ipsum&search_target_campaign_labels=adlora+elit&filter_source_adspert_portfolio_id=123%3A9999 HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl -i -X GET 'https://api.adspert.net/v3/customers/7027038674/product-ax/log/sync?search_source_adgroup_name=amet+ipsum&search_target_campaign_labels=adlora+elit&filter_source_adspert_portfolio_id=123%3A9999' -H "Accept: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
http 'https://api.adspert.net/v3/customers/7027038674/product-ax/log/sync?search_source_adgroup_name=amet+ipsum&search_target_campaign_labels=adlora+elit&filter_source_adspert_portfolio_id=123%3A9999' Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.get('https://api.adspert.net/v3/customers/7027038674/product-ax/log/sync?search_source_adgroup_name=amet+ipsum&search_target_campaign_labels=adlora+elit&filter_source_adspert_portfolio_id=123%3A9999', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": [ { "timestamp": "2018-10-21T16:45:23+02:00", "mutation_summary": { "count_created": 8025587486, "count_paused": 6257982864, "count_archived": 8992264283, "count_failed": 4452795265, "count_enabled": 1634771489 }, "mutation_details": [ { "sku": "ipsum elit", "asin": "sit pariatur", "action": "ARCHIVE" } ], "adspert_account_id": 123, "account_id": "amet lorem", "account_name": "vehicula ipsum", "account_platform": "AMAZON", "source_adspert_adgroup_id": "123:777", "source_adgroup_id": "777", "source_adgroup_name": "elit sit", "source_adspert_campaign_id": "123:5555", "source_campaign_id": "5555", "source_campaign_name": "pariatur vehicula", "target_adspert_adgroup_id": "123:777", "target_adgroup_id": "777", "target_adgroup_name": "lorem dolor", "target_adspert_campaign_id": "123:5555", "target_campaign_id": "5555", "target_campaign_name": "ipsum tucan", "sync_mode": "ADD-MISSING" } ], "meta": { "pagination": { "offset": 0, "limit": 10, "total": 74, "sort": { "timestamp": 1 } } } }
AdGroupCreationLogCollection
GET
- GET /v3/customers/(customer_id: int)/product-ax/log/adgroup
Get amz adgroup log for respective customer.
Query Params
Name
Type
Description
include
Fields to include in response data.
exclude
Fields to exclude in response data.
filter_account_is_demo
[ Boolean ]
Only return results matching given
account_is_demo
values.filter_account_optimize
[ Boolean ]
Only return results matching given
account_optimize
values.filter_account_tags_user
[ String ]
Only return results matching given
account_tags_user
values.filter_account_currency
[ String ]
Only return results matching given
account_currency
values.filter_source_performance_group_id
[ Integer ]
Only return results matching given
source_performance_group_id
values.filter_source_performance_group_name
[ String ]
Only return results matching given
source_performance_group_name
values.filter_source_performance_group_enabled
[ Boolean ]
Only return results matching given
source_performance_group_enabled
values.filter_source_performance_group_optimization_type
[ OptimizationType ]
Only return results matching given
source_performance_group_optimization_type
values.filter_source_performance_group_goal_types
Only return results matching given
source_performance_group_goal_types
values.filter_target_performance_group_id
[ Integer ]
Only return results matching given
target_performance_group_id
values.filter_target_performance_group_name
[ String ]
Only return results matching given
target_performance_group_name
values.filter_target_performance_group_enabled
[ Boolean ]
Only return results matching given
target_performance_group_enabled
values.filter_target_performance_group_optimization_type
[ OptimizationType ]
Only return results matching given
target_performance_group_optimization_type
values.filter_target_performance_group_goal_types
Only return results matching given
target_performance_group_goal_types
values.filter_source_adspert_portfolio_id
[ CompositeID ]
Only return results matching given
source_adspert_portfolio_id
values.filter_source_amz_portfolio_id
[ LargeInteger ]
Only return results matching given
source_amz_portfolio_id
values.filter_source_amz_portfolio_name
[ String ]
Only return results matching given
source_amz_portfolio_name
values.filter_target_adspert_portfolio_id
[ CompositeID ]
Only return results matching given
target_adspert_portfolio_id
values.filter_target_amz_portfolio_id
[ LargeInteger ]
Only return results matching given
target_amz_portfolio_id
values.filter_target_amz_portfolio_name
[ String ]
Only return results matching given
target_amz_portfolio_name
values.filter_source_campaign_type
[ CampaignType ]
Only return results matching given
source_campaign_type
values.filter_source_campaign_eby_marketplace_id
[ String ]
Only return results matching given
source_campaign_eby_marketplace_id
values.filter_source_campaign_status
[ CampaignStatus ]
Only return results matching given
source_campaign_status
values.filter_source_campaign_optimize
[ Boolean ]
Only return results matching given
source_campaign_optimize
values.filter_source_campaign_optimization_type
[ OptimizationType ]
Only return results matching given
source_campaign_optimization_type
values.filter_source_campaign_optimization_support
Only return results matching given
source_campaign_optimization_support
values.filter_source_campaign_amz_targeting_type
[ AmzTargetingType ]
Only return results matching given
source_campaign_amz_targeting_type
values.filter_source_campaign_labels
[ String ]
Only return results matching given
source_campaign_labels
values.filter_target_campaign_type
[ CampaignType ]
Only return results matching given
target_campaign_type
values.filter_target_campaign_eby_marketplace_id
[ String ]
Only return results matching given
target_campaign_eby_marketplace_id
values.filter_target_campaign_status
[ CampaignStatus ]
Only return results matching given
target_campaign_status
values.filter_target_campaign_optimize
[ Boolean ]
Only return results matching given
target_campaign_optimize
values.filter_target_campaign_optimization_type
[ OptimizationType ]
Only return results matching given
target_campaign_optimization_type
values.filter_target_campaign_optimization_support
Only return results matching given
target_campaign_optimization_support
values.filter_target_campaign_amz_targeting_type
[ AmzTargetingType ]
Only return results matching given
target_campaign_amz_targeting_type
values.filter_target_campaign_labels
[ String ]
Only return results matching given
target_campaign_labels
values.filter_source_adgroup_status
[ AdgroupStatus ]
Only return results matching given
source_adgroup_status
values.filter_source_adgroup_labels
[ String ]
Only return results matching given
source_adgroup_labels
values.filter_target_adgroup_status
[ AdgroupStatus ]
Only return results matching given
target_adgroup_status
values.filter_target_adgroup_labels
[ String ]
Only return results matching given
target_adgroup_labels
values.filter_date_ge
required
Only return results where
filter_date_ge
is equal or greater than this value.filter_date_le
required
Only return results where
filter_date_le
is equal or lower than this value.filter_account_id
[ String ]
Only return results matching given
account_id
values.filter_account_name
[ String ]
Only return results matching given
account_name
values.filter_account_platform
[ AdPlatform ]
Only return results matching given
account_platform
values.filter_adspert_account_id
[ Integer ]
Only return results matching given
adspert_account_id
values.filter_source_adgroup_name
[ String ]
Only return results matching given
source_adgroup_name
values.filter_source_adspert_adgroup_id
[ CompositeID ]
Only return results matching given
source_adspert_adgroup_id
values.filter_source_adspert_campaign_id
[ CompositeID ]
Only return results matching given
source_adspert_campaign_id
values.filter_source_campaign_name
[ String ]
Only return results matching given
source_campaign_name
values.filter_target_adgroup_name
[ String ]
Only return results matching given
target_adgroup_name
values.filter_target_adspert_adgroup_id
[ CompositeID ]
Only return results matching given
target_adspert_adgroup_id
values.filter_target_adspert_campaign_id
[ CompositeID ]
Only return results matching given
target_adspert_campaign_id
values.filter_target_campaign_name
[ String ]
Only return results matching given
target_campaign_name
values.search_fields
Fields that should be searched using the
search_term
.search_term
String
Search term used to search the
search_fields
.search_account_tags_user
String
Only return results where
account_tags_user
matches the given string.search_source_performance_group_name
String
Only return results where
source_performance_group_name
matches the given string.search_source_amz_portfolio_name
String
Only return results where
source_amz_portfolio_name
matches the given string.search_target_performance_group_name
String
Only return results where
target_performance_group_name
matches the given string.search_target_amz_portfolio_name
String
Only return results where
target_amz_portfolio_name
matches the given string.search_source_campaign_labels
String
Only return results where
source_campaign_labels
matches the given string.search_target_campaign_labels
String
Only return results where
target_campaign_labels
matches the given string.search_source_adgroup_labels
String
Only return results where
source_adgroup_labels
matches the given string.search_target_adgroup_labels
String
Only return results where
target_adgroup_labels
matches the given string.search_account_id
String
Only return results where
account_id
matches the given string.search_account_name
String
Only return results where
account_name
matches the given string.search_adspert_account_id
String
Only return results where
adspert_account_id
matches the given string.search_message_details
String
Only return results where
message_details
matches the given string.search_message_title
String
Only return results where
message_title
matches the given string.search_source_adgroup_id
String
Only return results where
source_adgroup_id
matches the given string.search_source_adgroup_name
String
Only return results where
source_adgroup_name
matches the given string.search_source_campaign_id
String
Only return results where
source_campaign_id
matches the given string.search_source_campaign_name
String
Only return results where
source_campaign_name
matches the given string.search_target_adgroup_id
String
Only return results where
target_adgroup_id
matches the given string.search_target_adgroup_name
String
Only return results where
target_adgroup_name
matches the given string.search_target_campaign_id
String
Only return results where
target_campaign_id
matches the given string.search_target_campaign_name
String
Only return results where
target_campaign_name
matches the given string.sort_account_id
Sort results by
account_id
.sort_account_name
Sort results by
account_name
.sort_account_platform
Sort results by
account_platform
.sort_adspert_account_id
Sort results by
adspert_account_id
.sort_source_adgroup_id
Sort results by
source_adgroup_id
.sort_source_adgroup_name
Sort results by
source_adgroup_name
.sort_source_adspert_adgroup_id
Sort results by
source_adspert_adgroup_id
.sort_source_adspert_campaign_id
Sort results by
source_adspert_campaign_id
.sort_source_campaign_id
Sort results by
source_campaign_id
.sort_source_campaign_name
Sort results by
source_campaign_name
.sort_target_adgroup_id
Sort results by
target_adgroup_id
.sort_target_adgroup_name
Sort results by
target_adgroup_name
.sort_target_adspert_adgroup_id
Sort results by
target_adspert_adgroup_id
.sort_target_adspert_campaign_id
Sort results by
target_adspert_campaign_id
.sort_target_campaign_id
Sort results by
target_campaign_id
.sort_target_campaign_name
Sort results by
target_campaign_name
.sort_timestamp
Sort results by
timestamp
.offset
Integer
Start index for result list.
Default: 0
Min value: 0
limit
Integer
Maximum number of results to return. The maximum allowed value depends on the response media type (10000 for JSON and 100000 for tabular formats like CSV).
Default: 10
Min value: 1
Response Data (object list, json or csv or xlsx)
Name
Type
Description
timestamp
message_title
searchable
String
message_details
searchable
String
adspert_account_id
searchable
Integer
Adspert internal ID of the advertising account
account_id
searchable
String
Ad platform specific ID of an advertising account.
account_name
searchable
String
account_platform
The account’s advertising platform.
source_adspert_adgroup_id
Adspert internal ID of the adgroup.
Composite ID specification:
{adspert_account_id}:{adgroup_id}
source_adgroup_id
searchable
source_adgroup_name
searchable
String
source_adspert_campaign_id
Adspert internal ID of the campaign.
Composite ID specification:
{adspert_account_id}:{campaign_id}
source_campaign_id
searchable
source_campaign_name
searchable
String
target_adspert_adgroup_id
Adspert internal ID of the adgroup.
Composite ID specification:
{adspert_account_id}:{adgroup_id}
target_adgroup_id
searchable
target_adgroup_name
searchable
String
target_adspert_campaign_id
Adspert internal ID of the campaign.
Composite ID specification:
{adspert_account_id}:{campaign_id}
target_campaign_id
searchable
target_campaign_name
searchable
String
Example
GET /v3/customers/7027038674/product-ax/log/adgroup?filter_source_campaign_optimization_support=SUPPORTED&search_target_adgroup_name=dolor+elit&search_source_adgroup_labels=adlora+ipsum HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl -i -X GET 'https://api.adspert.net/v3/customers/7027038674/product-ax/log/adgroup?filter_source_campaign_optimization_support=SUPPORTED&search_target_adgroup_name=dolor+elit&search_source_adgroup_labels=adlora+ipsum' -H "Accept: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
http 'https://api.adspert.net/v3/customers/7027038674/product-ax/log/adgroup?filter_source_campaign_optimization_support=SUPPORTED&search_target_adgroup_name=dolor+elit&search_source_adgroup_labels=adlora+ipsum' Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.get('https://api.adspert.net/v3/customers/7027038674/product-ax/log/adgroup?filter_source_campaign_optimization_support=SUPPORTED&search_target_adgroup_name=dolor+elit&search_source_adgroup_labels=adlora+ipsum', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": [ { "timestamp": "2018-10-21T16:45:23+02:00", "message_title": "pariatur lorem", "message_details": "tucan sit", "adspert_account_id": 123, "account_id": "amet lorem", "account_name": "vehicula ipsum", "account_platform": "AMAZON", "source_adspert_adgroup_id": "123:777", "source_adgroup_id": "777", "source_adgroup_name": "elit sit", "source_adspert_campaign_id": "123:5555", "source_campaign_id": "5555", "source_campaign_name": "pariatur vehicula", "target_adspert_adgroup_id": "123:777", "target_adgroup_id": "777", "target_adgroup_name": "lorem dolor", "target_adspert_campaign_id": "123:5555", "target_campaign_id": "5555", "target_campaign_name": "ipsum tucan" } ], "meta": { "pagination": { "offset": 0, "limit": 10, "total": 74, "sort": { "timestamp": 1 } } } }
CampaignCreationLogCollection
GET
- GET /v3/customers/(customer_id: int)/product-ax/log/campaign
Get amz campaign log for respective customer.
Query Params
Name
Type
Description
include
Fields to include in response data.
exclude
Fields to exclude in response data.
filter_account_is_demo
[ Boolean ]
Only return results matching given
account_is_demo
values.filter_account_optimize
[ Boolean ]
Only return results matching given
account_optimize
values.filter_account_tags_user
[ String ]
Only return results matching given
account_tags_user
values.filter_account_currency
[ String ]
Only return results matching given
account_currency
values.filter_source_performance_group_id
[ Integer ]
Only return results matching given
source_performance_group_id
values.filter_source_performance_group_name
[ String ]
Only return results matching given
source_performance_group_name
values.filter_source_performance_group_enabled
[ Boolean ]
Only return results matching given
source_performance_group_enabled
values.filter_source_performance_group_optimization_type
[ OptimizationType ]
Only return results matching given
source_performance_group_optimization_type
values.filter_source_performance_group_goal_types
Only return results matching given
source_performance_group_goal_types
values.filter_target_performance_group_id
[ Integer ]
Only return results matching given
target_performance_group_id
values.filter_target_performance_group_name
[ String ]
Only return results matching given
target_performance_group_name
values.filter_target_performance_group_enabled
[ Boolean ]
Only return results matching given
target_performance_group_enabled
values.filter_target_performance_group_optimization_type
[ OptimizationType ]
Only return results matching given
target_performance_group_optimization_type
values.filter_target_performance_group_goal_types
Only return results matching given
target_performance_group_goal_types
values.filter_source_adspert_portfolio_id
[ CompositeID ]
Only return results matching given
source_adspert_portfolio_id
values.filter_source_amz_portfolio_id
[ LargeInteger ]
Only return results matching given
source_amz_portfolio_id
values.filter_source_amz_portfolio_name
[ String ]
Only return results matching given
source_amz_portfolio_name
values.filter_target_adspert_portfolio_id
[ CompositeID ]
Only return results matching given
target_adspert_portfolio_id
values.filter_target_amz_portfolio_id
[ LargeInteger ]
Only return results matching given
target_amz_portfolio_id
values.filter_target_amz_portfolio_name
[ String ]
Only return results matching given
target_amz_portfolio_name
values.filter_source_campaign_type
[ CampaignType ]
Only return results matching given
source_campaign_type
values.filter_source_campaign_eby_marketplace_id
[ String ]
Only return results matching given
source_campaign_eby_marketplace_id
values.filter_source_campaign_status
[ CampaignStatus ]
Only return results matching given
source_campaign_status
values.filter_source_campaign_optimize
[ Boolean ]
Only return results matching given
source_campaign_optimize
values.filter_source_campaign_optimization_type
[ OptimizationType ]
Only return results matching given
source_campaign_optimization_type
values.filter_source_campaign_optimization_support
Only return results matching given
source_campaign_optimization_support
values.filter_source_campaign_amz_targeting_type
[ AmzTargetingType ]
Only return results matching given
source_campaign_amz_targeting_type
values.filter_source_campaign_labels
[ String ]
Only return results matching given
source_campaign_labels
values.filter_target_campaign_type
[ CampaignType ]
Only return results matching given
target_campaign_type
values.filter_target_campaign_eby_marketplace_id
[ String ]
Only return results matching given
target_campaign_eby_marketplace_id
values.filter_target_campaign_status
[ CampaignStatus ]
Only return results matching given
target_campaign_status
values.filter_target_campaign_optimize
[ Boolean ]
Only return results matching given
target_campaign_optimize
values.filter_target_campaign_optimization_type
[ OptimizationType ]
Only return results matching given
target_campaign_optimization_type
values.filter_target_campaign_optimization_support
Only return results matching given
target_campaign_optimization_support
values.filter_target_campaign_amz_targeting_type
[ AmzTargetingType ]
Only return results matching given
target_campaign_amz_targeting_type
values.filter_target_campaign_labels
[ String ]
Only return results matching given
target_campaign_labels
values.filter_date_ge
required
Only return results where
filter_date_ge
is equal or greater than this value.filter_date_le
required
Only return results where
filter_date_le
is equal or lower than this value.filter_account_id
[ String ]
Only return results matching given
account_id
values.filter_account_name
[ String ]
Only return results matching given
account_name
values.filter_account_platform
[ AdPlatform ]
Only return results matching given
account_platform
values.filter_adspert_account_id
[ Integer ]
Only return results matching given
adspert_account_id
values.filter_source_adspert_campaign_id
[ CompositeID ]
Only return results matching given
source_adspert_campaign_id
values.filter_source_campaign_name
[ String ]
Only return results matching given
source_campaign_name
values.filter_target_adspert_campaign_id
[ CompositeID ]
Only return results matching given
target_adspert_campaign_id
values.filter_target_campaign_name
[ String ]
Only return results matching given
target_campaign_name
values.search_fields
Fields that should be searched using the
search_term
.search_term
String
Search term used to search the
search_fields
.search_account_tags_user
String
Only return results where
account_tags_user
matches the given string.search_source_performance_group_name
String
Only return results where
source_performance_group_name
matches the given string.search_source_amz_portfolio_name
String
Only return results where
source_amz_portfolio_name
matches the given string.search_target_performance_group_name
String
Only return results where
target_performance_group_name
matches the given string.search_target_amz_portfolio_name
String
Only return results where
target_amz_portfolio_name
matches the given string.search_source_campaign_labels
String
Only return results where
source_campaign_labels
matches the given string.search_target_campaign_labels
String
Only return results where
target_campaign_labels
matches the given string.search_account_id
String
Only return results where
account_id
matches the given string.search_account_name
String
Only return results where
account_name
matches the given string.search_adspert_account_id
String
Only return results where
adspert_account_id
matches the given string.search_message_details
String
Only return results where
message_details
matches the given string.search_message_title
String
Only return results where
message_title
matches the given string.search_source_campaign_id
String
Only return results where
source_campaign_id
matches the given string.search_source_campaign_name
String
Only return results where
source_campaign_name
matches the given string.search_target_campaign_id
String
Only return results where
target_campaign_id
matches the given string.search_target_campaign_name
String
Only return results where
target_campaign_name
matches the given string.sort_account_id
Sort results by
account_id
.sort_account_name
Sort results by
account_name
.sort_account_platform
Sort results by
account_platform
.sort_adspert_account_id
Sort results by
adspert_account_id
.sort_source_adspert_campaign_id
Sort results by
source_adspert_campaign_id
.sort_source_campaign_id
Sort results by
source_campaign_id
.sort_source_campaign_name
Sort results by
source_campaign_name
.sort_target_adspert_campaign_id
Sort results by
target_adspert_campaign_id
.sort_target_campaign_id
Sort results by
target_campaign_id
.sort_target_campaign_name
Sort results by
target_campaign_name
.sort_timestamp
Sort results by
timestamp
.offset
Integer
Start index for result list.
Default: 0
Min value: 0
limit
Integer
Maximum number of results to return. The maximum allowed value depends on the response media type (10000 for JSON and 100000 for tabular formats like CSV).
Default: 10
Min value: 1
Response Data (object list, json or csv or xlsx)
Name
Type
Description
timestamp
message_title
searchable
String
message_details
searchable
String
adspert_account_id
searchable
Integer
Adspert internal ID of the advertising account
account_id
searchable
String
Ad platform specific ID of an advertising account.
account_name
searchable
String
account_platform
The account’s advertising platform.
source_adspert_campaign_id
Adspert internal ID of the campaign.
Composite ID specification:
{adspert_account_id}:{campaign_id}
source_campaign_id
searchable
source_campaign_name
searchable
String
target_adspert_campaign_id
Adspert internal ID of the campaign.
Composite ID specification:
{adspert_account_id}:{campaign_id}
target_campaign_id
searchable
target_campaign_name
searchable
String
Example
GET /v3/customers/7027038674/product-ax/log/campaign?sort_source_adspert_campaign_id=-6&filter_source_campaign_type=AMAZON-SPONSORED-BRANDS&filter_source_performance_group_id=1245 HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl -i -X GET 'https://api.adspert.net/v3/customers/7027038674/product-ax/log/campaign?sort_source_adspert_campaign_id=-6&filter_source_campaign_type=AMAZON-SPONSORED-BRANDS&filter_source_performance_group_id=1245' -H "Accept: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
http 'https://api.adspert.net/v3/customers/7027038674/product-ax/log/campaign?sort_source_adspert_campaign_id=-6&filter_source_campaign_type=AMAZON-SPONSORED-BRANDS&filter_source_performance_group_id=1245' Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.get('https://api.adspert.net/v3/customers/7027038674/product-ax/log/campaign?sort_source_adspert_campaign_id=-6&filter_source_campaign_type=AMAZON-SPONSORED-BRANDS&filter_source_performance_group_id=1245', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": [ { "timestamp": "2018-10-21T16:45:23+02:00", "message_title": "pariatur lorem", "message_details": "tucan sit", "adspert_account_id": 123, "account_id": "amet lorem", "account_name": "vehicula ipsum", "account_platform": "AMAZON", "source_adspert_campaign_id": "123:5555", "source_campaign_id": "5555", "source_campaign_name": "pariatur vehicula", "target_adspert_campaign_id": "123:5555", "target_campaign_id": "5555", "target_campaign_name": "ipsum tucan" } ], "meta": { "pagination": { "offset": 0, "limit": 10, "total": 74, "sort": { "timestamp": 1 } } } }
ProductAdSyncTargetsLogCollection
GET
- GET /v3/customers/(customer_id: int)/product-ax/log/sync-targets
Get product ad sync targets logs for respective customer.
Query Params
Name
Type
Description
include
Fields to include in response data.
exclude
Fields to exclude in response data.
filter_date_ge
required
Only return results where
filter_date_ge
is equal or greater than this value.filter_date_le
required
Only return results where
filter_date_le
is equal or lower than this value.filter_account_is_demo
[ Boolean ]
Only return results matching given
account_is_demo
values.filter_account_optimize
[ Boolean ]
Only return results matching given
account_optimize
values.filter_account_tags_user
[ String ]
Only return results matching given
account_tags_user
values.filter_account_currency
[ String ]
Only return results matching given
account_currency
values.filter_source_performance_group_id
[ Integer ]
Only return results matching given
source_performance_group_id
values.filter_source_performance_group_name
[ String ]
Only return results matching given
source_performance_group_name
values.filter_source_performance_group_enabled
[ Boolean ]
Only return results matching given
source_performance_group_enabled
values.filter_source_performance_group_optimization_type
[ OptimizationType ]
Only return results matching given
source_performance_group_optimization_type
values.filter_source_performance_group_goal_types
Only return results matching given
source_performance_group_goal_types
values.filter_target_performance_group_id
[ Integer ]
Only return results matching given
target_performance_group_id
values.filter_target_performance_group_name
[ String ]
Only return results matching given
target_performance_group_name
values.filter_target_performance_group_enabled
[ Boolean ]
Only return results matching given
target_performance_group_enabled
values.filter_target_performance_group_optimization_type
[ OptimizationType ]
Only return results matching given
target_performance_group_optimization_type
values.filter_target_performance_group_goal_types
Only return results matching given
target_performance_group_goal_types
values.filter_source_adspert_portfolio_id
[ CompositeID ]
Only return results matching given
source_adspert_portfolio_id
values.filter_source_amz_portfolio_id
[ LargeInteger ]
Only return results matching given
source_amz_portfolio_id
values.filter_source_amz_portfolio_name
[ String ]
Only return results matching given
source_amz_portfolio_name
values.filter_target_adspert_portfolio_id
[ CompositeID ]
Only return results matching given
target_adspert_portfolio_id
values.filter_target_amz_portfolio_id
[ LargeInteger ]
Only return results matching given
target_amz_portfolio_id
values.filter_target_amz_portfolio_name
[ String ]
Only return results matching given
target_amz_portfolio_name
values.filter_source_campaign_type
[ CampaignType ]
Only return results matching given
source_campaign_type
values.filter_source_campaign_eby_marketplace_id
[ String ]
Only return results matching given
source_campaign_eby_marketplace_id
values.filter_source_campaign_status
[ CampaignStatus ]
Only return results matching given
source_campaign_status
values.filter_source_campaign_optimize
[ Boolean ]
Only return results matching given
source_campaign_optimize
values.filter_source_campaign_optimization_type
[ OptimizationType ]
Only return results matching given
source_campaign_optimization_type
values.filter_source_campaign_optimization_support
Only return results matching given
source_campaign_optimization_support
values.filter_source_campaign_amz_targeting_type
[ AmzTargetingType ]
Only return results matching given
source_campaign_amz_targeting_type
values.filter_source_campaign_labels
[ String ]
Only return results matching given
source_campaign_labels
values.filter_target_campaign_type
[ CampaignType ]
Only return results matching given
target_campaign_type
values.filter_target_campaign_eby_marketplace_id
[ String ]
Only return results matching given
target_campaign_eby_marketplace_id
values.filter_target_campaign_status
[ CampaignStatus ]
Only return results matching given
target_campaign_status
values.filter_target_campaign_optimize
[ Boolean ]
Only return results matching given
target_campaign_optimize
values.filter_target_campaign_optimization_type
[ OptimizationType ]
Only return results matching given
target_campaign_optimization_type
values.filter_target_campaign_optimization_support
Only return results matching given
target_campaign_optimization_support
values.filter_target_campaign_amz_targeting_type
[ AmzTargetingType ]
Only return results matching given
target_campaign_amz_targeting_type
values.filter_target_campaign_labels
[ String ]
Only return results matching given
target_campaign_labels
values.filter_source_adgroup_status
[ AdgroupStatus ]
Only return results matching given
source_adgroup_status
values.filter_source_adgroup_labels
[ String ]
Only return results matching given
source_adgroup_labels
values.filter_target_adgroup_status
[ AdgroupStatus ]
Only return results matching given
target_adgroup_status
values.filter_target_adgroup_labels
[ String ]
Only return results matching given
target_adgroup_labels
values.filter_reasons
[ Reason ]
Only return results matching given
reasons
values.filter_account_id
[ String ]
Only return results matching given
account_id
values.filter_account_name
[ String ]
Only return results matching given
account_name
values.filter_account_platform
[ AdPlatform ]
Only return results matching given
account_platform
values.filter_action
[ Action ]
Only return results matching given
action
values.filter_adspert_account_id
[ Integer ]
Only return results matching given
adspert_account_id
values.filter_source_adgroup_name
[ String ]
Only return results matching given
source_adgroup_name
values.filter_source_adspert_adgroup_id
[ CompositeID ]
Only return results matching given
source_adspert_adgroup_id
values.filter_source_adspert_campaign_id
[ CompositeID ]
Only return results matching given
source_adspert_campaign_id
values.filter_source_campaign_name
[ String ]
Only return results matching given
source_campaign_name
values.filter_target_adgroup_name
[ String ]
Only return results matching given
target_adgroup_name
values.filter_target_adspert_adgroup_id
[ CompositeID ]
Only return results matching given
target_adspert_adgroup_id
values.filter_target_adspert_campaign_id
[ CompositeID ]
Only return results matching given
target_adspert_campaign_id
values.filter_target_campaign_name
[ String ]
Only return results matching given
target_campaign_name
values.filter_user_id
[ Integer ]
Only return results matching given
user_id
values.search_fields
Fields that should be searched using the
search_term
.search_term
String
Search term used to search the
search_fields
.search_account_tags_user
String
Only return results where
account_tags_user
matches the given string.search_source_performance_group_name
String
Only return results where
source_performance_group_name
matches the given string.search_source_amz_portfolio_name
String
Only return results where
source_amz_portfolio_name
matches the given string.search_target_performance_group_name
String
Only return results where
target_performance_group_name
matches the given string.search_target_amz_portfolio_name
String
Only return results where
target_amz_portfolio_name
matches the given string.search_source_campaign_labels
String
Only return results where
source_campaign_labels
matches the given string.search_target_campaign_labels
String
Only return results where
target_campaign_labels
matches the given string.search_source_adgroup_labels
String
Only return results where
source_adgroup_labels
matches the given string.search_target_adgroup_labels
String
Only return results where
target_adgroup_labels
matches the given string.search_account_id
String
Only return results where
account_id
matches the given string.search_account_name
String
Only return results where
account_name
matches the given string.search_adspert_account_id
String
Only return results where
adspert_account_id
matches the given string.search_message_details
String
Only return results where
message_details
matches the given string.search_message_title
String
Only return results where
message_title
matches the given string.search_source_adgroup_id
String
Only return results where
source_adgroup_id
matches the given string.search_source_adgroup_name
String
Only return results where
source_adgroup_name
matches the given string.search_source_campaign_id
String
Only return results where
source_campaign_id
matches the given string.search_source_campaign_name
String
Only return results where
source_campaign_name
matches the given string.search_target_adgroup_id
String
Only return results where
target_adgroup_id
matches the given string.search_target_adgroup_name
String
Only return results where
target_adgroup_name
matches the given string.search_target_campaign_id
String
Only return results where
target_campaign_id
matches the given string.search_target_campaign_name
String
Only return results where
target_campaign_name
matches the given string.search_user_email
String
Only return results where
user_email
matches the given string.search_user_name
String
Only return results where
user_name
matches the given string.sort_account_id
Sort results by
account_id
.sort_account_name
Sort results by
account_name
.sort_account_platform
Sort results by
account_platform
.sort_adspert_account_id
Sort results by
adspert_account_id
.sort_source_adgroup_id
Sort results by
source_adgroup_id
.sort_source_adgroup_name
Sort results by
source_adgroup_name
.sort_source_adspert_adgroup_id
Sort results by
source_adspert_adgroup_id
.sort_source_adspert_campaign_id
Sort results by
source_adspert_campaign_id
.sort_source_campaign_id
Sort results by
source_campaign_id
.sort_source_campaign_name
Sort results by
source_campaign_name
.sort_target_adgroup_id
Sort results by
target_adgroup_id
.sort_target_adgroup_name
Sort results by
target_adgroup_name
.sort_target_adspert_adgroup_id
Sort results by
target_adspert_adgroup_id
.sort_target_adspert_campaign_id
Sort results by
target_adspert_campaign_id
.sort_target_campaign_id
Sort results by
target_campaign_id
.sort_target_campaign_name
Sort results by
target_campaign_name
.sort_timestamp
Sort results by
timestamp
.sort_user_email
Sort results by
user_email
.sort_user_id
Sort results by
user_id
.sort_user_name
Sort results by
user_name
.offset
Integer
Start index for result list.
Default: 0
Min value: 0
limit
Integer
Maximum number of results to return. The maximum allowed value depends on the response media type (10000 for JSON and 100000 for tabular formats like CSV).
Default: 10
Min value: 1
Response Data (object list, json or csv or xlsx)
Name
Type
Description
timestamp
action
user_id
Integer
ID of the user who did the change.
Is
-1
if change was made by Adspert.user_email
searchable
String
E-mail of the user who did the change. Is
null
if change was made by Adspert.user_name
searchable
String
Adspert if change was made by Adspert.
message_title
searchable
String
message_details
searchable
String
adspert_account_id
searchable
Integer
Adspert internal ID of the advertising account
account_id
searchable
String
Ad platform specific ID of an advertising account.
account_name
searchable
String
account_platform
The account’s advertising platform.
source_adspert_campaign_id
Adspert internal ID of the campaign.
Composite ID specification:
{adspert_account_id}:{campaign_id}
source_campaign_id
searchable
source_campaign_name
searchable
String
source_adspert_adgroup_id
Adspert internal ID of the adgroup.
Composite ID specification:
{adspert_account_id}:{adgroup_id}
source_adgroup_id
searchable
source_adgroup_name
searchable
String
target_adspert_campaign_id
Adspert internal ID of the campaign.
Composite ID specification:
{adspert_account_id}:{campaign_id}
target_campaign_id
searchable
target_campaign_name
searchable
String
target_adspert_adgroup_id
Adspert internal ID of the adgroup.
Composite ID specification:
{adspert_account_id}:{adgroup_id}
target_adgroup_id
searchable
target_adgroup_name
searchable
String
Example
GET /v3/customers/7027038674/product-ax/log/sync-targets?search_source_adgroup_id=adlora+tucan&search_source_campaign_name=dolor+pariatur&filter_target_performance_group_goal_types=CLICKS-PER-DAY HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl -i -X GET 'https://api.adspert.net/v3/customers/7027038674/product-ax/log/sync-targets?search_source_adgroup_id=adlora+tucan&search_source_campaign_name=dolor+pariatur&filter_target_performance_group_goal_types=CLICKS-PER-DAY' -H "Accept: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
http 'https://api.adspert.net/v3/customers/7027038674/product-ax/log/sync-targets?search_source_adgroup_id=adlora+tucan&search_source_campaign_name=dolor+pariatur&filter_target_performance_group_goal_types=CLICKS-PER-DAY' Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.get('https://api.adspert.net/v3/customers/7027038674/product-ax/log/sync-targets?search_source_adgroup_id=adlora+tucan&search_source_campaign_name=dolor+pariatur&filter_target_performance_group_goal_types=CLICKS-PER-DAY', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": [ { "timestamp": "2018-10-21T16:45:23+02:00", "action": "CREATE", "user_id": 12345, "user_email": "test@example.com", "user_name": "adlora ipsum", "message_title": "pariatur lorem", "message_details": "tucan sit", "adspert_account_id": 123, "account_id": "amet lorem", "account_name": "vehicula ipsum", "account_platform": "AMAZON", "source_adspert_campaign_id": "123:5555", "source_campaign_id": "5555", "source_campaign_name": "pariatur vehicula", "source_adspert_adgroup_id": "123:777", "source_adgroup_id": "777", "source_adgroup_name": "elit sit", "target_adspert_campaign_id": "123:5555", "target_campaign_id": "5555", "target_campaign_name": "ipsum tucan", "target_adspert_adgroup_id": "123:777", "target_adgroup_id": "777", "target_adgroup_name": "lorem dolor" } ], "meta": { "pagination": { "offset": 0, "limit": 10, "total": 74, "sort": { "timestamp": 1 } } } }
FilterUserCollectionProductAdsSyncTargets
GET
- GET /v3/customers/(customer_id: int)/product-ax/log/sync-targets/users
Get users that can be used as filters in the log endpoint.
Query Params
Name
Type
Description
include
Fields to include in response data.
exclude
Fields to exclude in response data.
filter_date_ge
required
Only return results where
filter_date_ge
is equal or greater than this value.filter_date_le
required
Only return results where
filter_date_le
is equal or lower than this value.Response Data (object list, json or csv or xlsx)
Name
Type
Description
user_id
Integer
ID of the user who did the change.
Is
-1
if change was made by Adspert.user_email
searchable
String
E-mail of the user who did the change. Is
null
if change was made by Adspert.user_name
searchable
String
Adspert if change was made by Adspert.
Example
GET /v3/customers/7027038674/product-ax/log/sync-targets/users?include=ipsum.amet&filter_date_le=2018-10-21&exclude=elit.amet HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl -i -X GET 'https://api.adspert.net/v3/customers/7027038674/product-ax/log/sync-targets/users?include=ipsum.amet&filter_date_le=2018-10-21&exclude=elit.amet' -H "Accept: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
http 'https://api.adspert.net/v3/customers/7027038674/product-ax/log/sync-targets/users?include=ipsum.amet&filter_date_le=2018-10-21&exclude=elit.amet' Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.get('https://api.adspert.net/v3/customers/7027038674/product-ax/log/sync-targets/users?include=ipsum.amet&filter_date_le=2018-10-21&exclude=elit.amet', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": [ { "user_id": 12345, "user_email": "test@example.com", "user_name": "adlora ipsum" } ], "meta": {} }
ProposalsLogCollection
GET
- GET /v3/customers/(customer_id: int)/criterion-addition/log/proposals
Get Proposal Logs for respective customer.
Query Params
Name
Type
Description
include
Fields to include in response data.
exclude
Fields to exclude in response data.
filter_date_ge
required
Only return results where
filter_date_ge
is equal or greater than this value.filter_date_le
required
Only return results where
filter_date_le
is equal or lower than this value.filter_account_id
[ String ]
Only return results matching given
source.account_id
values.filter_account_is_demo
[ Boolean ]
Only return results matching given
source.account_is_demo
values.filter_account_name
[ String ]
Only return results matching given
source.account_name
values.filter_account_optimize
[ Boolean ]
Only return results matching given
source.account_optimize
values.filter_account_platform
[ AdPlatform ]
Only return results matching given
source.account_platform
values.filter_account_tags_user
[ String ]
Only return results matching given
source.account_tags_user
values.filter_adspert_account_id
[ Integer ]
Only return results matching given
source.adspert_account_id
values.filter_criterion_name
[ String ]
Only return results matching given
criterion_name
values.filter_criterion_subtype
Only return results matching given
criterion_subtype
values.filter_criterion_type
Only return results matching given
criterion_type
values.filter_destination_adgroup_labels
[ String ]
Only return results matching given
destinations.effective_destination.adgroup_labels
values.filter_destination_adgroup_name
[ String ]
Only return results matching given
destinations.effective_destination.adgroup_name
values.filter_destination_adgroup_status
[ AdgroupStatus ]
Only return results matching given
destinations.effective_destination.adgroup_status
values.filter_destination_adspert_adgroup_id
[ CompositeID ]
Only return results matching given
destinations.effective_destination.adspert_adgroup_id
values.filter_destination_adspert_campaign_id
[ CompositeID ]
Only return results matching given
destinations.effective_destination.adspert_campaign_id
values.filter_destination_adspert_portfolio_id
[ CompositeID ]
Only return results matching given
destinations.effective_destination.adspert_portfolio_id
values.filter_destination_amz_portfolio_name
[ String ]
Only return results matching given
destinations.effective_destination.amz_portfolio_name
values.filter_destination_campaign_eby_marketplace_id
[ String ]
Only return results matching given
destinations.effective_destination.campaign_eby_marketplace_id
values.filter_destination_campaign_labels
[ String ]
Only return results matching given
destinations.effective_destination.campaign_labels
values.filter_destination_campaign_name
[ String ]
Only return results matching given
destinations.effective_destination.campaign_name
values.filter_destination_campaign_optimization_support
Only return results matching given
destinations.effective_destination.campaign_optimization_support
values.filter_destination_campaign_optimization_type
[ OptimizationType ]
Only return results matching given
destinations.effective_destination.campaign_optimization_type
values.filter_destination_campaign_optimize
[ Boolean ]
Only return results matching given
destinations.effective_destination.campaign_optimize
values.filter_destination_campaign_status
[ CampaignStatus ]
Only return results matching given
destinations.effective_destination.campaign_status
values.filter_destination_campaign_type
[ CampaignType ]
Only return results matching given
destinations.effective_destination.campaign_type
values.filter_destination_id
[ LargeInteger ]
Only return results matching given
destinations.destination_id
values.filter_destination_match_type
Only return results matching given
destinations.match_type
values.filter_destination_negative
[ Boolean ]
Only return results matching given
destinations.negative
values.filter_destination_performance_group_enabled
[ Boolean ]
Only return results matching given
destinations.effective_destination.performance_group_enabled
values.filter_destination_performance_group_goal_types
Only return results matching given
destinations.effective_destination.performance_group_goal_types
values.filter_destination_performance_group_id
[ Integer ]
Only return results matching given
destinations.effective_destination.performance_group_id
values.filter_destination_performance_group_name
[ String ]
Only return results matching given
destinations.effective_destination.performance_group_name
values.filter_destination_performance_group_optimization_type
[ OptimizationType ]
Only return results matching given
destinations.effective_destination.performance_group_optimization_type
values.filter_destination_state
Only return results matching given
destinations.state
values.filter_destination_type
Only return results matching given
destinations.destination_type
values.filter_proposal_id
[ LargeInteger ]
Only return results matching given
proposal_id
values.filter_proposal_reasons
Only return results matching given
proposal_reasons
values.filter_proposal_state
Only return results matching given
proposal_state
values.filter_proposal_type
Only return results matching given
proposal_type
values.filter_rule_type_id
[ Integer ]
Only return results matching given
rule_type_id
values.filter_source_adgroup_labels
[ String ]
Only return results matching given
source.adgroup_labels
values.filter_source_adgroup_name
[ String ]
Only return results matching given
source.adgroup_name
values.filter_source_adgroup_status
[ AdgroupStatus ]
Only return results matching given
source.adgroup_status
values.filter_source_adspert_adgroup_id
[ CompositeID ]
Only return results matching given
source.adspert_adgroup_id
values.filter_source_adspert_campaign_id
[ CompositeID ]
Only return results matching given
source.adspert_campaign_id
values.filter_source_adspert_portfolio_id
[ CompositeID ]
Only return results matching given
source.adspert_portfolio_id
values.filter_source_amz_portfolio_name
[ String ]
Only return results matching given
source.amz_portfolio_name
values.filter_source_campaign_eby_marketplace_id
[ String ]
Only return results matching given
source.campaign_eby_marketplace_id
values.filter_source_campaign_labels
[ String ]
Only return results matching given
source.campaign_labels
values.filter_source_campaign_name
[ String ]
Only return results matching given
source.campaign_name
values.filter_source_campaign_optimization_support
Only return results matching given
source.campaign_optimization_support
values.filter_source_campaign_optimization_type
[ OptimizationType ]
Only return results matching given
source.campaign_optimization_type
values.filter_source_campaign_optimize
[ Boolean ]
Only return results matching given
source.campaign_optimize
values.filter_source_campaign_status
[ CampaignStatus ]
Only return results matching given
source.campaign_status
values.filter_source_campaign_type
[ CampaignType ]
Only return results matching given
source.campaign_type
values.filter_source_performance_group_enabled
[ Boolean ]
Only return results matching given
source.performance_group_enabled
values.filter_source_performance_group_goal_types
Only return results matching given
source.performance_group_goal_types
values.filter_source_performance_group_id
[ Integer ]
Only return results matching given
source.performance_group_id
values.filter_source_performance_group_name
[ String ]
Only return results matching given
source.performance_group_name
values.filter_source_performance_group_optimization_type
[ OptimizationType ]
Only return results matching given
source.performance_group_optimization_type
values.filter_user_id
[ Integer ]
Only return results matching given
user_id
values.search_fields
Fields that should be searched using the
search_term
.search_term
String
Search term used to search the
search_fields
.search_account_id
String
Only return results where
source.account_id
matches the given string.search_account_name
String
Only return results where
source.account_name
matches the given string.search_account_tags_user
String
Only return results where
source.account_tags_user
matches the given string.search_adspert_account_id
String
Only return results where
source.adspert_account_id
matches the given string.search_criterion_name
String
Only return results where
criterion_name
matches the given string.search_destination_adgroup_id
String
Only return results where
destinations.effective_destination.adgroup_id
matches the given string.search_destination_adgroup_labels
String
Only return results where
destinations.effective_destination.adgroup_labels
matches the given string.search_destination_adgroup_name
String
Only return results where
destinations.effective_destination.adgroup_name
matches the given string.search_destination_amz_portfolio_id
String
Only return results where
destinations.effective_destination.amz_portfolio_id
matches the given string.search_destination_amz_portfolio_name
String
Only return results where
destinations.effective_destination.amz_portfolio_name
matches the given string.search_destination_campaign_id
String
Only return results where
destinations.effective_destination.campaign_id
matches the given string.search_destination_campaign_labels
String
Only return results where
destinations.effective_destination.campaign_labels
matches the given string.search_destination_campaign_name
String
Only return results where
destinations.effective_destination.campaign_name
matches the given string.search_destination_performance_group_id
String
Only return results where
destinations.effective_destination.performance_group_id
matches the given string.search_destination_performance_group_name
String
Only return results where
destinations.effective_destination.performance_group_name
matches the given string.search_source_adgroup_id
String
Only return results where
source.adgroup_id
matches the given string.search_source_adgroup_labels
String
Only return results where
source.adgroup_labels
matches the given string.search_source_adgroup_name
String
Only return results where
source.adgroup_name
matches the given string.search_source_amz_portfolio_id
String
Only return results where
source.amz_portfolio_id
matches the given string.search_source_amz_portfolio_name
String
Only return results where
source.amz_portfolio_name
matches the given string.search_source_campaign_id
String
Only return results where
source.campaign_id
matches the given string.search_source_campaign_labels
String
Only return results where
source.campaign_labels
matches the given string.search_source_campaign_name
String
Only return results where
source.campaign_name
matches the given string.search_source_performance_group_id
String
Only return results where
source.performance_group_id
matches the given string.search_source_performance_group_name
String
Only return results where
source.performance_group_name
matches the given string.search_user_email
String
Only return results where
user_email
matches the given string.search_user_name
String
Only return results where
user_name
matches the given string.sort_account_id
Sort results by
source.account_id
.sort_account_is_demo
Sort results by
source.account_is_demo
.sort_account_name
Sort results by
source.account_name
.sort_account_optimize
Sort results by
source.account_optimize
.sort_account_platform
Sort results by
source.account_platform
.sort_adspert_account_id
Sort results by
source.adspert_account_id
.sort_criterion_name
Sort results by
criterion_name
.sort_criterion_subtype
Sort results by
criterion_subtype
.sort_criterion_type
Sort results by
criterion_type
.sort_proposal_id
Sort results by
proposal_id
.sort_proposal_state
Sort results by
proposal_state
.sort_proposal_type
Sort results by
proposal_type
.sort_rule_type_id
Sort results by
rule_type_id
.sort_source_adgroup_id
Sort results by
source.adgroup_id
.sort_source_adgroup_name
Sort results by
source.adgroup_name
.sort_source_adgroup_status
Sort results by
source.adgroup_status
.sort_source_adspert_adgroup_id
Sort results by
source.adspert_adgroup_id
.sort_source_adspert_campaign_id
Sort results by
source.adspert_campaign_id
.sort_source_adspert_portfolio_id
Sort results by
source.adspert_portfolio_id
.sort_source_amz_portfolio_id
Sort results by
source.amz_portfolio_id
.sort_source_amz_portfolio_name
Sort results by
source.amz_portfolio_name
.sort_source_campaign_eby_marketplace_id
Sort results by
source.campaign_eby_marketplace_id
.sort_source_campaign_id
Sort results by
source.campaign_id
.sort_source_campaign_name
Sort results by
source.campaign_name
.sort_source_campaign_optimization_support
Sort results by
source.campaign_optimization_support
.sort_source_campaign_optimization_type
Sort results by
source.campaign_optimization_type
.sort_source_campaign_optimize
Sort results by
source.campaign_optimize
.sort_source_campaign_status
Sort results by
source.campaign_status
.sort_source_campaign_type
Sort results by
source.campaign_type
.sort_source_performance_group_enabled
Sort results by
source.performance_group_enabled
.sort_source_performance_group_goal_types
Sort results by
source.performance_group_goal_types
.sort_source_performance_group_id
Sort results by
source.performance_group_id
.sort_source_performance_group_name
Sort results by
source.performance_group_name
.sort_source_performance_group_optimization_type
Sort results by
source.performance_group_optimization_type
.sort_timestamp
Sort results by
timestamp
.sort_user_email
Sort results by
user_email
.sort_user_id
Sort results by
user_id
.sort_user_name
Sort results by
user_name
.offset
Integer
Start index for result list.
Default: 0
Min value: 0
limit
Integer
Maximum number of results to return. The maximum allowed value depends on the response media type (10000 for JSON and 100000 for tabular formats like CSV).
Default: 10
Min value: 1
Response Data (object list, json or csv or xlsx)
Name
Type
Description
timestamp
user_id
Integer
ID of the user who did the change.
Is
-1
if proposal was made by Adspert.user_email
searchable
String
NULL if proposal was made by Adspert.
user_name
searchable
String
Adspert user if proposal was made by Adspert.
proposal_id
Unique ID of the proposal.
proposal_type
Type of the proposal.
proposal_reasons
A list of reasons why the proposal was generated.
proposal_state
State of the proposal.
rule_type_id
Integer
Id of the matched Rule Type.
criterion_name
searchable
String
Name of criterion proposed to be created.
criterion_type
Type of criterion proposed to be created.
criterion_subtype
Subtype of criterion proposed to be created.
destinations
[ Object ]
⤷
destination_id
⤷
state
⤷
rule_snapshot_id
Id of the snapshot of the rule that defined current destination.
NULL
if destination had been created by the user.⤷
destination_type
⤷
match_type
Keyword match type.
This field is populated only for destinations that belong to proposals where
criterion_type
isKEYWORD
.⤷
negative
Boolean
Is the criterion created for this destination supposed to be negative?
⤷
rejection_reason
String
⤷
failure_reason
String
⤷
criterion_id
Criterion id that was created for this destination.
NULL when state is not added.
⤷
effective_destination
Object
Details about the effective destination adgroup.
⤷
performance_group_id
searchable
Integer
Unique ID of the performance group
⤷
performance_group_name
searchable
String
Unique name of the performance group.
⤷
performance_group_enabled
Boolean
⤷
performance_group_optimization_type
Optimization type of the performance group.
Only campaigns of the same optimization type can be added to a given performance group.
⤷
performance_group_goals
[ Object ]
List of performance group goals
⤷
goal_type
Type of the performance group goal
⤷
goal_value
Float
Value of the performance group goal.
goal_value
should beNULL
ifgoal_type
isPROFIT-MAXIMIZATION
.goal_value
should be a ratio (> 0) ifgoal_type
isROAS
,CRR
andROI
,goal_value
should be specified in micros and be larger than 10000 ifgoal_type
isCOST-PER-DAY
,COST-PER-CONVERSION
andCOST-PER-CLICK
.⤷
goal_currency
Currency of the performance group goal.
Currency is required for
COST-PER-DAY
,COST-PER-CONVERSION
andCOST-PER-CLICK
goals.⤷
goal_micros
Value for
COST-PER-DAY
,COST-PER-CONVERSION
andCOST-PER-CLICK
goals.Same as
goal_value
, but in a properly typed field for easier client-side handling and improved representation in tabular response data like CSV.⤷
goal_ratio
Float
Value for
ROAS
,CRR
andROI
goals.Same as
goal_value
, but in a properly typed field for easier client-side handling and improved representation in tabular response data like CSV.⤷
performance_group_goal_types
List of performance group goal types
⤷
adspert_portfolio_id
Adspert internal ID of Amazon portfolio.
Composite ID specification:
{adspert_account_id}:{portfolio_id}
⤷
amz_portfolio_id
searchable
⤷
amz_portfolio_name
searchable
String
⤷
adspert_campaign_id
Adspert internal ID of the campaign.
Composite ID specification:
{adspert_account_id}:{campaign_id}
⤷
campaign_id
searchable
⤷
campaign_name
searchable
String
⤷
campaign_type
⤷
campaign_eby_marketplace_id
String
⤷
campaign_status
⤷
campaign_optimize
Boolean
⤷
campaign_optimization_type
⤷
campaign_optimization_support
⤷
campaign_labels
searchable
[ String ]
⤷
adspert_adgroup_id
Adspert internal ID of the adgroup.
Composite ID specification:
{adspert_account_id}:{adgroup_id}
⤷
adgroup_id
searchable
⤷
adgroup_name
searchable
String
⤷
adgroup_status
⤷
adgroup_labels
searchable
[ String ]
source
Object
⤷
adspert_account_id
searchable
Integer
Adspert internal ID of the advertising account
⤷
account_id
searchable
String
Ad platform specific ID of an advertising account.
⤷
account_name
searchable
String
⤷
account_platform
The account’s advertising platform.
⤷
account_optimize
Boolean
If optimization by Adspert is enabled for this account.
⤷
account_tags_user
searchable
[ String ]
⤷
account_is_demo
Boolean
If the account is a generated account for demonstration purposes.
Demo accounts have no counterpart in the ad platform.
⤷
performance_group_id
searchable
Integer
Unique ID of the performance group
⤷
performance_group_name
searchable
String
Unique name of the performance group.
⤷
performance_group_enabled
Boolean
⤷
performance_group_optimization_type
Optimization type of the performance group.
Only campaigns of the same optimization type can be added to a given performance group.
⤷
performance_group_goals
[ Object ]
List of performance group goals
⤷
goal_type
Type of the performance group goal
⤷
goal_value
Float
Value of the performance group goal.
goal_value
should beNULL
ifgoal_type
isPROFIT-MAXIMIZATION
.goal_value
should be a ratio (> 0) ifgoal_type
isROAS
,CRR
andROI
,goal_value
should be specified in micros and be larger than 10000 ifgoal_type
isCOST-PER-DAY
,COST-PER-CONVERSION
andCOST-PER-CLICK
.⤷
goal_currency
Currency of the performance group goal.
Currency is required for
COST-PER-DAY
,COST-PER-CONVERSION
andCOST-PER-CLICK
goals.⤷
goal_micros
Value for
COST-PER-DAY
,COST-PER-CONVERSION
andCOST-PER-CLICK
goals.Same as
goal_value
, but in a properly typed field for easier client-side handling and improved representation in tabular response data like CSV.⤷
goal_ratio
Float
Value for
ROAS
,CRR
andROI
goals.Same as
goal_value
, but in a properly typed field for easier client-side handling and improved representation in tabular response data like CSV.⤷
performance_group_goal_types
List of performance group goal types
⤷
adspert_portfolio_id
Adspert internal ID of Amazon portfolio.
Composite ID specification:
{adspert_account_id}:{portfolio_id}
⤷
amz_portfolio_id
searchable
⤷
amz_portfolio_name
searchable
String
⤷
adspert_campaign_id
Adspert internal ID of the campaign.
Composite ID specification:
{adspert_account_id}:{campaign_id}
⤷
campaign_id
searchable
⤷
campaign_name
searchable
String
⤷
campaign_type
⤷
campaign_eby_marketplace_id
String
⤷
campaign_status
⤷
campaign_optimize
Boolean
⤷
campaign_optimization_type
⤷
campaign_optimization_support
⤷
campaign_labels
searchable
[ String ]
⤷
adspert_adgroup_id
Adspert internal ID of the adgroup.
Composite ID specification:
{adspert_account_id}:{adgroup_id}
⤷
adgroup_id
searchable
⤷
adgroup_name
searchable
String
⤷
adgroup_status
⤷
adgroup_labels
searchable
[ String ]
rule_snapshots
[ Object ]
⤷
rule_snapshot_id
Id of the rule snapshot.
⤷
rule_id
Id of the rule that this snapshot was created for.
⤷
action
Rule action at the time that the snapshot was generated.
⤷
filters
[ Object ]
Rule filters at the time that the snapshot was generated.
⤷
operand
Rule filter operand.
⤷
operation
Rule filter operation.
⤷
values
[ Any ]
Rule filter values.
⤷
catch_all
Boolean
Rule
catch_all
value at the time that the snapshot was generated.⤷
defined_at
Object
Extra information about the location where snapshotted rule was defined at.
⤷
level
⤷
platform
⤷
adspert_account_id
searchable
Integer
Adspert internal ID of the advertising account
⤷
account_id
searchable
String
Ad platform specific ID of an advertising account.
⤷
account_name
searchable
String
⤷
account_platform
The account’s advertising platform.
⤷
adspert_campaign_id
Adspert internal ID of the campaign.
Composite ID specification:
{adspert_account_id}:{campaign_id}
⤷
campaign_id
searchable
⤷
campaign_name
searchable
String
⤷
campaign_type
⤷
adspert_adgroup_id
Adspert internal ID of the adgroup.
Composite ID specification:
{adspert_account_id}:{adgroup_id}
⤷
adgroup_id
searchable
⤷
adgroup_name
searchable
String
Example
GET /v3/customers/7027038674/criterion-addition/log/proposals?limit=10&sort_user_name=5&filter_destination_adspert_adgroup_id=123%3A13 HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl -i -X GET 'https://api.adspert.net/v3/customers/7027038674/criterion-addition/log/proposals?limit=10&sort_user_name=5&filter_destination_adspert_adgroup_id=123%3A13' -H "Accept: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
http 'https://api.adspert.net/v3/customers/7027038674/criterion-addition/log/proposals?limit=10&sort_user_name=5&filter_destination_adspert_adgroup_id=123%3A13' Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.get('https://api.adspert.net/v3/customers/7027038674/criterion-addition/log/proposals?limit=10&sort_user_name=5&filter_destination_adspert_adgroup_id=123%3A13', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": [ { "timestamp": "2018-10-21T16:45:23+02:00", "user_id": 12345, "user_email": "test@example.com", "user_name": "adlora ipsum", "proposal_id": "55669895173420790989137281", "proposal_type": "ADDITION", "proposal_reasons": [ "CHEAP-CLICK" ], "proposal_state": "ACCEPTED", "rule_type_id": 5675219470, "criterion_name": "dolor adlora", "criterion_type": "KEYWORD", "criterion_subtype": "ASIN", "destinations": [ { "destination_id": "78046413193991906103940983", "state": "ADDED", "rule_snapshot_id": "29900904027622664405022614", "destination_type": "AMAZON-CREATE-BRAND-KEYWORD-ADGROUP", "match_type": "BROAD", "negative": true, "rejection_reason": "lorem pariatur", "failure_reason": "sit ipsum", "criterion_id": "28829550734074914927304228", "effective_destination": { "performance_group_id": "1245", "performance_group_name": "dolor sit", "performance_group_enabled": true, "performance_group_optimization_type": "CLICK", "performance_group_goals": [ { "goal_type": "CLICKS-PER-DAY", "goal_value": 1.41, "goal_currency": "AED", "goal_micros": 6300000, "goal_ratio": 8.77 } ], "performance_group_goal_types": [ "CLICKS-PER-DAY" ], "adspert_portfolio_id": "123:9999", "amz_portfolio_id": "9999", "amz_portfolio_name": "elit adlora", "adspert_campaign_id": "123:5555", "campaign_id": "5555", "campaign_name": "sit ipsum", "campaign_type": "AMAZON-SPONSORED-BRANDS", "campaign_eby_marketplace_id": "amet pariatur", "campaign_status": "ACTIVE", "campaign_optimize": true, "campaign_optimization_type": "CLICK", "campaign_optimization_support": "SUPPORTED", "campaign_labels": [ "ipsum dolor" ], "adspert_adgroup_id": "123:777", "adgroup_id": "777", "adgroup_name": "tucan lorem", "adgroup_status": "ACTIVE", "adgroup_labels": [ "elit ipsum" ] } } ], "source": { "adspert_account_id": 123, "account_id": "amet lorem", "account_name": "vehicula ipsum", "account_platform": "AMAZON", "account_optimize": true, "account_tags_user": [ "vehicula amet" ], "account_is_demo": true, "performance_group_id": "1245", "performance_group_name": "dolor sit", "performance_group_enabled": true, "performance_group_optimization_type": "CLICK", "performance_group_goals": [ { "goal_type": "CLICKS-PER-DAY", "goal_value": 1.41, "goal_currency": "AED", "goal_micros": 6300000, "goal_ratio": 8.77 } ], "performance_group_goal_types": [ "CLICKS-PER-DAY" ], "adspert_portfolio_id": "123:9999", "amz_portfolio_id": "9999", "amz_portfolio_name": "elit adlora", "adspert_campaign_id": "123:5555", "campaign_id": "5555", "campaign_name": "sit ipsum", "campaign_type": "AMAZON-SPONSORED-BRANDS", "campaign_eby_marketplace_id": "amet pariatur", "campaign_status": "ACTIVE", "campaign_optimize": true, "campaign_optimization_type": "CLICK", "campaign_optimization_support": "SUPPORTED", "campaign_labels": [ "ipsum dolor" ], "adspert_adgroup_id": "123:777", "adgroup_id": "777", "adgroup_name": "tucan lorem", "adgroup_status": "ACTIVE", "adgroup_labels": [ "elit ipsum" ] }, "rule_snapshots": [ { "rule_snapshot_id": "29900904027622664405022614", "rule_id": "49754540226638646583189955", "action": "ADD", "filters": [ { "operand": "DOMAIN", "operation": "CONTAINS", "values": [ 1 ] } ], "catch_all": true, "defined_at": { "level": "ACCOUNT", "platform": "AMAZON", "adspert_account_id": 123, "account_id": "amet lorem", "account_name": "vehicula ipsum", "account_platform": "AMAZON", "adspert_campaign_id": "123:5555", "campaign_id": "5555", "campaign_name": "sit ipsum", "campaign_type": "AMAZON-SPONSORED-BRANDS", "adspert_adgroup_id": "123:777", "adgroup_id": "777", "adgroup_name": "tucan lorem" } } ] } ], "meta": { "pagination": { "offset": 0, "limit": 10, "total": 74, "sort": { "timestamp": 1 } } } }
FilterUserCollectionCriterionAdditionProposals
GET
- GET /v3/customers/(customer_id: int)/criterion-addition/log/proposals/users
Get users that can be used as filters in the log endpoint.
Query Params
Name
Type
Description
include
Fields to include in response data.
exclude
Fields to exclude in response data.
filter_date_ge
required
Only return results where
filter_date_ge
is equal or greater than this value.filter_date_le
required
Only return results where
filter_date_le
is equal or lower than this value.Response Data (object list, json or csv or xlsx)
Name
Type
Description
user_id
Integer
ID of the user who did the change.
Is
-1
if change was made by Adspert.user_email
searchable
String
E-mail of the user who did the change. Is
null
if change was made by Adspert.user_name
searchable
String
Adspert if change was made by Adspert.
Example
GET /v3/customers/7027038674/criterion-addition/log/proposals/users?filter_date_le=2018-10-21&exclude=elit.amet&include=ipsum.amet HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl -i -X GET 'https://api.adspert.net/v3/customers/7027038674/criterion-addition/log/proposals/users?filter_date_le=2018-10-21&exclude=elit.amet&include=ipsum.amet' -H "Accept: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
http 'https://api.adspert.net/v3/customers/7027038674/criterion-addition/log/proposals/users?filter_date_le=2018-10-21&exclude=elit.amet&include=ipsum.amet' Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.get('https://api.adspert.net/v3/customers/7027038674/criterion-addition/log/proposals/users?filter_date_le=2018-10-21&exclude=elit.amet&include=ipsum.amet', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": [ { "user_id": 12345, "user_email": "test@example.com", "user_name": "adlora ipsum" } ], "meta": {} }
ProposalDestinationStateCollection
GET
- GET /v3/customers/(customer_id: int)/criterion-addition/log/proposals/state
Get Proposal Destination States for respective customer.
Query Params
Name
Type
Description
include
Fields to include in response data.
exclude
Fields to exclude in response data.
filter_date_ge
required
Only return results where
filter_date_ge
is equal or greater than this value.filter_date_le
required
Only return results where
filter_date_le
is equal or lower than this value.Response Data (object list, json or csv or xlsx)
Name
Type
Description
destination_state
Example
GET /v3/customers/7027038674/criterion-addition/log/proposals/state?filter_date_ge=2018-10-21&exclude=elit.amet&include=ipsum.amet HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl -i -X GET 'https://api.adspert.net/v3/customers/7027038674/criterion-addition/log/proposals/state?filter_date_ge=2018-10-21&exclude=elit.amet&include=ipsum.amet' -H "Accept: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
http 'https://api.adspert.net/v3/customers/7027038674/criterion-addition/log/proposals/state?filter_date_ge=2018-10-21&exclude=elit.amet&include=ipsum.amet' Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.get('https://api.adspert.net/v3/customers/7027038674/criterion-addition/log/proposals/state?filter_date_ge=2018-10-21&exclude=elit.amet&include=ipsum.amet', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": [ { "destination_state": "ADDED" } ], "meta": {} }
RulesLogCollection
GET
- GET /v3/customers/(customer_id: int)/criterion-addition/log/rules
Get Proposal Logs for respective customer.
Query Params
Name
Type
Description
include
Fields to include in response data.
exclude
Fields to exclude in response data.
filter_date_ge
required
Only return results where
filter_date_ge
is equal or greater than this value.filter_date_le
required
Only return results where
filter_date_le
is equal or lower than this value.filter_rule_type_id
[ Integer ]
Only return results matching given
rule_type.rule_type_id
values.filter_rule_level
Only return results matching given
defined_at.level
values.filter_rule_platform
[ AdPlatform ]
Only return results matching given
rule_type.platform
values.filter_rule_campaign_type
Only return results matching given
rule_type.campaign_type
values.filter_proposal_type
Only return results matching given
rule_type.proposal_type
values.filter_criterion_type
Only return results matching given
rule_type.criterion_type
values.filter_criterion_subtype
Only return results matching given
rule_type.criterion_subtype
values.filter_account_id
[ String ]
Only return results matching given
defined_at.account_id
values.filter_account_is_demo
[ Boolean ]
Only return results matching given
defined_at.account_is_demo
values.filter_account_name
[ String ]
Only return results matching given
defined_at.account_name
values.filter_account_optimize
[ Boolean ]
Only return results matching given
defined_at.account_optimize
values.filter_account_platform
[ AdPlatform ]
Only return results matching given
defined_at.account_platform
values.filter_account_tags_user
[ String ]
Only return results matching given
defined_at.account_tags_user
values.filter_adgroup_labels
[ String ]
Only return results matching given
defined_at.adgroup_labels
values.filter_adgroup_name
[ String ]
Only return results matching given
defined_at.adgroup_name
values.filter_adgroup_status
[ AdgroupStatus ]
Only return results matching given
defined_at.adgroup_status
values.filter_adspert_account_id
[ Integer ]
Only return results matching given
defined_at.adspert_account_id
values.filter_adspert_adgroup_id
[ CompositeID ]
Only return results matching given
defined_at.adspert_adgroup_id
values.filter_adspert_campaign_id
[ CompositeID ]
Only return results matching given
defined_at.adspert_campaign_id
values.filter_adspert_portfolio_id
[ CompositeID ]
Only return results matching given
defined_at.adspert_portfolio_id
values.filter_amz_portfolio_name
[ String ]
Only return results matching given
defined_at.amz_portfolio_name
values.filter_campaign_eby_marketplace_id
[ String ]
Only return results matching given
defined_at.campaign_eby_marketplace_id
values.filter_campaign_labels
[ String ]
Only return results matching given
defined_at.campaign_labels
values.filter_campaign_name
[ String ]
Only return results matching given
defined_at.campaign_name
values.filter_campaign_optimization_support
Only return results matching given
defined_at.campaign_optimization_support
values.filter_campaign_optimization_type
[ OptimizationType ]
Only return results matching given
defined_at.campaign_optimization_type
values.filter_campaign_optimize
[ Boolean ]
Only return results matching given
defined_at.campaign_optimize
values.filter_campaign_status
[ CampaignStatus ]
Only return results matching given
defined_at.campaign_status
values.filter_campaign_type
[ CampaignType ]
Only return results matching given
defined_at.campaign_type
values.filter_log_action
Only return results matching given
log_action
values.filter_log_reason
Only return results matching given
log_reason
values.filter_performance_group_enabled
[ Boolean ]
Only return results matching given
defined_at.performance_group_enabled
values.filter_performance_group_goal_types
Only return results matching given
defined_at.performance_group_goal_types
values.filter_performance_group_id
[ Integer ]
Only return results matching given
defined_at.performance_group_id
values.filter_performance_group_name
[ String ]
Only return results matching given
defined_at.performance_group_name
values.filter_performance_group_optimization_type
[ OptimizationType ]
Only return results matching given
defined_at.performance_group_optimization_type
values.filter_user_id
[ Integer ]
Only return results matching given
user_id
values.search_fields
Fields that should be searched using the
search_term
.search_term
String
Search term used to search the
search_fields
.search_account_id
String
Only return results where
defined_at.account_id
matches the given string.search_account_name
String
Only return results where
defined_at.account_name
matches the given string.search_account_tags_user
String
Only return results where
defined_at.account_tags_user
matches the given string.search_adgroup_id
String
Only return results where
defined_at.adgroup_id
matches the given string.search_adgroup_labels
String
Only return results where
defined_at.adgroup_labels
matches the given string.search_adgroup_name
String
Only return results where
defined_at.adgroup_name
matches the given string.search_adspert_account_id
String
Only return results where
defined_at.adspert_account_id
matches the given string.search_amz_portfolio_id
String
Only return results where
defined_at.amz_portfolio_id
matches the given string.search_amz_portfolio_name
String
Only return results where
defined_at.amz_portfolio_name
matches the given string.search_campaign_id
String
Only return results where
defined_at.campaign_id
matches the given string.search_campaign_labels
String
Only return results where
defined_at.campaign_labels
matches the given string.search_campaign_name
String
Only return results where
defined_at.campaign_name
matches the given string.search_message_details
String
Only return results where
message_details
matches the given string.search_message_title
String
Only return results where
message_title
matches the given string.search_performance_group_id
String
Only return results where
defined_at.performance_group_id
matches the given string.search_performance_group_name
String
Only return results where
defined_at.performance_group_name
matches the given string.search_user_email
String
Only return results where
user_email
matches the given string.search_user_name
String
Only return results where
user_name
matches the given string.sort_account_id
Sort results by
defined_at.account_id
.sort_account_is_demo
Sort results by
defined_at.account_is_demo
.sort_account_name
Sort results by
defined_at.account_name
.sort_account_optimize
Sort results by
defined_at.account_optimize
.sort_account_platform
Sort results by
defined_at.account_platform
.sort_adgroup_id
Sort results by
defined_at.adgroup_id
.sort_adgroup_name
Sort results by
defined_at.adgroup_name
.sort_adgroup_status
Sort results by
defined_at.adgroup_status
.sort_adspert_account_id
Sort results by
defined_at.adspert_account_id
.sort_adspert_adgroup_id
Sort results by
defined_at.adspert_adgroup_id
.sort_adspert_campaign_id
Sort results by
defined_at.adspert_campaign_id
.sort_adspert_portfolio_id
Sort results by
defined_at.adspert_portfolio_id
.sort_amz_portfolio_id
Sort results by
defined_at.amz_portfolio_id
.sort_amz_portfolio_name
Sort results by
defined_at.amz_portfolio_name
.sort_campaign_eby_marketplace_id
Sort results by
defined_at.campaign_eby_marketplace_id
.sort_campaign_id
Sort results by
defined_at.campaign_id
.sort_campaign_name
Sort results by
defined_at.campaign_name
.sort_campaign_optimization_support
Sort results by
defined_at.campaign_optimization_support
.sort_campaign_optimization_type
Sort results by
defined_at.campaign_optimization_type
.sort_campaign_optimize
Sort results by
defined_at.campaign_optimize
.sort_campaign_status
Sort results by
defined_at.campaign_status
.sort_campaign_type
Sort results by
defined_at.campaign_type
.sort_performance_group_enabled
Sort results by
defined_at.performance_group_enabled
.sort_performance_group_goal_types
Sort results by
defined_at.performance_group_goal_types
.sort_performance_group_id
Sort results by
defined_at.performance_group_id
.sort_performance_group_name
Sort results by
defined_at.performance_group_name
.sort_performance_group_optimization_type
Sort results by
defined_at.performance_group_optimization_type
.sort_timestamp
Sort results by
timestamp
.sort_user_email
Sort results by
user_email
.sort_user_id
Sort results by
user_id
.sort_user_name
Sort results by
user_name
.offset
Integer
Start index for result list.
Default: 0
Min value: 0
limit
Integer
Maximum number of results to return. The maximum allowed value depends on the response media type (10000 for JSON and 100000 for tabular formats like CSV).
Default: 10
Min value: 1
Response Data (object list, json or csv or xlsx)
Name
Type
Description
timestamp
log_action
log_reason
message_title
searchable
String
message_details
searchable
String
user_id
Integer
ID of the user who did the change.
Is
-1
if rule was made by Adspert.user_email
searchable
String
NULL if rule was made by Adspert.
user_name
searchable
String
Adspert user if rule was made by Adspert.
rule_type
Object
⤷
rule_type_id
Integer
Id of the Rule Type the ruleset is defined for.
⤷
platform
Platform that the Rule Type is defined for.
⤷
campaign_type
Type of campaigns that the Rule Type is defined for.
⤷
proposal_type
Type of the proposal.
⤷
criterion_type
Type of criterion proposed to be created.
⤷
criterion_subtype
Subtype of criterion proposed to be created.
defined_at
Object
⤷
level
Level of the rule.
⤷
platform
Platform that the rule is defined for.
⤷
adspert_account_id
searchable
Integer
Adspert internal ID of the advertising account
⤷
account_id
searchable
String
Ad platform specific ID of an advertising account.
⤷
account_name
searchable
String
⤷
account_platform
The account’s advertising platform.
⤷
account_optimize
Boolean
If optimization by Adspert is enabled for this account.
⤷
account_tags_user
searchable
[ String ]
⤷
account_is_demo
Boolean
If the account is a generated account for demonstration purposes.
Demo accounts have no counterpart in the ad platform.
⤷
performance_group_id
searchable
Integer
Unique ID of the performance group
⤷
performance_group_name
searchable
String
Unique name of the performance group.
⤷
performance_group_enabled
Boolean
⤷
performance_group_optimization_type
Optimization type of the performance group.
Only campaigns of the same optimization type can be added to a given performance group.
⤷
performance_group_goals
[ Object ]
List of performance group goals
⤷
goal_type
Type of the performance group goal
⤷
goal_value
Float
Value of the performance group goal.
goal_value
should beNULL
ifgoal_type
isPROFIT-MAXIMIZATION
.goal_value
should be a ratio (> 0) ifgoal_type
isROAS
,CRR
andROI
,goal_value
should be specified in micros and be larger than 10000 ifgoal_type
isCOST-PER-DAY
,COST-PER-CONVERSION
andCOST-PER-CLICK
.⤷
goal_currency
Currency of the performance group goal.
Currency is required for
COST-PER-DAY
,COST-PER-CONVERSION
andCOST-PER-CLICK
goals.⤷
goal_micros
Value for
COST-PER-DAY
,COST-PER-CONVERSION
andCOST-PER-CLICK
goals.Same as
goal_value
, but in a properly typed field for easier client-side handling and improved representation in tabular response data like CSV.⤷
goal_ratio
Float
Value for
ROAS
,CRR
andROI
goals.Same as
goal_value
, but in a properly typed field for easier client-side handling and improved representation in tabular response data like CSV.⤷
performance_group_goal_types
List of performance group goal types
⤷
adspert_portfolio_id
Adspert internal ID of Amazon portfolio.
Composite ID specification:
{adspert_account_id}:{portfolio_id}
⤷
amz_portfolio_id
searchable
⤷
amz_portfolio_name
searchable
String
⤷
adspert_campaign_id
Adspert internal ID of the campaign.
Composite ID specification:
{adspert_account_id}:{campaign_id}
⤷
campaign_id
searchable
⤷
campaign_name
searchable
String
⤷
campaign_type
⤷
campaign_eby_marketplace_id
String
⤷
campaign_status
⤷
campaign_optimize
Boolean
⤷
campaign_optimization_type
⤷
campaign_optimization_support
⤷
campaign_labels
searchable
[ String ]
⤷
adspert_adgroup_id
Adspert internal ID of the adgroup.
Composite ID specification:
{adspert_account_id}:{adgroup_id}
⤷
adgroup_id
searchable
⤷
adgroup_name
searchable
String
⤷
adgroup_status
⤷
adgroup_labels
searchable
[ String ]
new
Object
Shows new/updated rule.
NULL if rule was deleted.
⤷
action
Action that Adspert is supposed to take when generating proposals that match this rule.
⤷
catch_all
Boolean
Is the rule supposed to be used as a catch-all?
⤷
filters
[ Object ]
Additional filters that will be evaluated when matching proposals to the rule.
If multiple filters are defined, all of them have to match the proposal, or else the catch-all rule will be used.
Each ruleset that contains a rule with filters has to also contain exactly one catch-all rule.
⤷
operand
Rule filter operand.
⤷
operation
Rule filter operation.
⤷
values
[ Any ]
Rule filter values.
⤷
destinations
[ Object ]
⤷
destination_id
⤷
destination_type
⤷
adspert_adgroup_id
Adspert internal ID of the adgroup.
This field is populated only for
SELECTED-ADGROUP
destinations.Composite ID specification:
{adspert_account_id}:{adgroup_id}
⤷
adgroup_id
searchable
This field is populated only for
SELECTED-ADGROUP
destinations.⤷
match_type
This field is populated only for destinations that belong to
KEYWORD
rules.⤷
negative
Boolean
⤷
created_at
⤷
effective_destination
Object
Effective destination is available only for adgroup-level requests.
It’s NULL for all other levels.
⤷
campaign_id
searchable
⤷
adspert_campaign_id
Adspert internal ID of the campaign.
Composite ID specification:
{adspert_account_id}:{campaign_id}
⤷
campaign_name
searchable
String
⤷
adgroup_id
searchable
⤷
adgroup_name
searchable
String
⤷
adspert_adgroup_id
Adspert internal ID of the adgroup.
Composite ID specification:
{adspert_account_id}:{adgroup_id}
⤷
product_ad_sync_mode
This field is populated only when there is a product ad sync set up between the source adgroup that this rule is active for and the target adgroup referenced in this effective destination.
⤷
amz_product_ads_matches
Integer
Number of shared unique product ads between source and target AdGroups.
NULL if any of the two AdGroups are not auto/manual SP.
⤷
amz_product_ads_total
Integer
Number of total unique product ads between source and target AdGroups.
NULL if any of the two AdGroups are not auto/manual SP.
⤷
amz_product_ads_match_ratio
Float
Ratio of shared and total unique product ads between source and target AdGroups.
product_ads_matches
/product_ads_total
NULL if any of the two AdGroups are not auto/manual SP.
old
Object
Shows old/deleted rule.
NULL if rule was created.
⤷
action
Action that Adspert is supposed to take when generating proposals that match this rule.
⤷
catch_all
Boolean
Is the rule supposed to be used as a catch-all?
⤷
filters
[ Object ]
Additional filters that will be evaluated when matching proposals to the rule.
If multiple filters are defined, all of them have to match the proposal, or else the catch-all rule will be used.
Each ruleset that contains a rule with filters has to also contain exactly one catch-all rule.
⤷
operand
Rule filter operand.
⤷
operation
Rule filter operation.
⤷
values
[ Any ]
Rule filter values.
⤷
destinations
[ Object ]
⤷
destination_id
⤷
destination_type
⤷
adspert_adgroup_id
Adspert internal ID of the adgroup.
This field is populated only for
SELECTED-ADGROUP
destinations.Composite ID specification:
{adspert_account_id}:{adgroup_id}
⤷
adgroup_id
searchable
This field is populated only for
SELECTED-ADGROUP
destinations.⤷
match_type
This field is populated only for destinations that belong to
KEYWORD
rules.⤷
negative
Boolean
⤷
created_at
⤷
effective_destination
Object
Effective destination is available only for adgroup-level requests.
It’s NULL for all other levels.
⤷
campaign_id
searchable
⤷
adspert_campaign_id
Adspert internal ID of the campaign.
Composite ID specification:
{adspert_account_id}:{campaign_id}
⤷
campaign_name
searchable
String
⤷
adgroup_id
searchable
⤷
adgroup_name
searchable
String
⤷
adspert_adgroup_id
Adspert internal ID of the adgroup.
Composite ID specification:
{adspert_account_id}:{adgroup_id}
⤷
product_ad_sync_mode
This field is populated only when there is a product ad sync set up between the source adgroup that this rule is active for and the target adgroup referenced in this effective destination.
⤷
amz_product_ads_matches
Integer
Number of shared unique product ads between source and target AdGroups.
NULL if any of the two AdGroups are not auto/manual SP.
⤷
amz_product_ads_total
Integer
Number of total unique product ads between source and target AdGroups.
NULL if any of the two AdGroups are not auto/manual SP.
⤷
amz_product_ads_match_ratio
Float
Ratio of shared and total unique product ads between source and target AdGroups.
product_ads_matches
/product_ads_total
NULL if any of the two AdGroups are not auto/manual SP.
Example
GET /v3/customers/7027038674/criterion-addition/log/rules?search_campaign_id=dolor+amet&search_account_id=elit+dolor&search_amz_portfolio_name=lorem+tucan HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl -i -X GET 'https://api.adspert.net/v3/customers/7027038674/criterion-addition/log/rules?search_campaign_id=dolor+amet&search_account_id=elit+dolor&search_amz_portfolio_name=lorem+tucan' -H "Accept: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
http 'https://api.adspert.net/v3/customers/7027038674/criterion-addition/log/rules?search_campaign_id=dolor+amet&search_account_id=elit+dolor&search_amz_portfolio_name=lorem+tucan' Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.get('https://api.adspert.net/v3/customers/7027038674/criterion-addition/log/rules?search_campaign_id=dolor+amet&search_account_id=elit+dolor&search_amz_portfolio_name=lorem+tucan', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": [ { "timestamp": "2018-10-21T16:45:23+02:00", "log_action": "CREATE", "log_reason": "ACCOUNT-MOVED", "message_title": "pariatur lorem", "message_details": "tucan sit", "user_id": 12345, "user_email": "test@example.com", "user_name": "adlora ipsum", "rule_type": { "rule_type_id": 5675219470, "platform": "AMAZON", "campaign_type": "AMAZON-SPONSORED-BRANDS", "proposal_type": "ADDITION", "criterion_type": "KEYWORD", "criterion_subtype": "ASIN" }, "defined_at": { "level": "ACCOUNT", "platform": "AMAZON", "adspert_account_id": 123, "account_id": "amet lorem", "account_name": "vehicula ipsum", "account_platform": "AMAZON", "account_optimize": true, "account_tags_user": [ "vehicula amet" ], "account_is_demo": true, "performance_group_id": "1245", "performance_group_name": "dolor sit", "performance_group_enabled": true, "performance_group_optimization_type": "CLICK", "performance_group_goals": [ { "goal_type": "CLICKS-PER-DAY", "goal_value": 1.41, "goal_currency": "AED", "goal_micros": 6300000, "goal_ratio": 8.77 } ], "performance_group_goal_types": [ "CLICKS-PER-DAY" ], "adspert_portfolio_id": "123:9999", "amz_portfolio_id": "9999", "amz_portfolio_name": "elit adlora", "adspert_campaign_id": "123:5555", "campaign_id": "5555", "campaign_name": "sit ipsum", "campaign_type": "AMAZON-SPONSORED-BRANDS", "campaign_eby_marketplace_id": "amet pariatur", "campaign_status": "ACTIVE", "campaign_optimize": true, "campaign_optimization_type": "CLICK", "campaign_optimization_support": "SUPPORTED", "campaign_labels": [ "ipsum dolor" ], "adspert_adgroup_id": "123:777", "adgroup_id": "777", "adgroup_name": "tucan lorem", "adgroup_status": "ACTIVE", "adgroup_labels": [ "elit ipsum" ] }, "new": { "action": "ADD", "catch_all": true, "filters": [ { "operand": "DOMAIN", "operation": "CONTAINS", "values": [ 1 ] } ], "destinations": [ { "destination_id": "78046413193991906103940983", "destination_type": "AMAZON-CREATE-BRAND-KEYWORD-ADGROUP", "adspert_adgroup_id": "123:777", "adgroup_id": "777", "match_type": "BROAD", "negative": true, "created_at": "2018-10-21T16:45:23+02:00", "effective_destination": { "campaign_id": "5555", "adspert_campaign_id": "123:5555", "campaign_name": "sit ipsum", "adgroup_id": "777", "adgroup_name": "tucan lorem", "adspert_adgroup_id": "123:777", "product_ad_sync_mode": "ADD-MISSING", "amz_product_ads_matches": 4496014026, "amz_product_ads_total": 2907851652, "amz_product_ads_match_ratio": 10.69 } } ] }, "old": { "action": "ADD", "catch_all": true, "filters": [ { "operand": "DOMAIN", "operation": "CONTAINS", "values": [ 1 ] } ], "destinations": [ { "destination_id": "78046413193991906103940983", "destination_type": "AMAZON-CREATE-BRAND-KEYWORD-ADGROUP", "adspert_adgroup_id": "123:777", "adgroup_id": "777", "match_type": "BROAD", "negative": true, "created_at": "2018-10-21T16:45:23+02:00", "effective_destination": { "campaign_id": "5555", "adspert_campaign_id": "123:5555", "campaign_name": "sit ipsum", "adgroup_id": "777", "adgroup_name": "tucan lorem", "adspert_adgroup_id": "123:777", "product_ad_sync_mode": "ADD-MISSING", "amz_product_ads_matches": 4496014026, "amz_product_ads_total": 2907851652, "amz_product_ads_match_ratio": 10.69 } } ] } } ], "meta": { "pagination": { "offset": 0, "limit": 10, "total": 74, "sort": { "timestamp": 1 } } } }
FilterUserCollectionCriterionAdditionRules
GET
- GET /v3/customers/(customer_id: int)/criterion-addition/log/rules/users
Get users that can be used as filters in the log endpoint.
Query Params
Name
Type
Description
include
Fields to include in response data.
exclude
Fields to exclude in response data.
filter_date_ge
required
Only return results where
filter_date_ge
is equal or greater than this value.filter_date_le
required
Only return results where
filter_date_le
is equal or lower than this value.Response Data (object list, json or csv or xlsx)
Name
Type
Description
user_id
Integer
ID of the user who did the change.
Is
-1
if change was made by Adspert.user_email
searchable
String
E-mail of the user who did the change. Is
null
if change was made by Adspert.user_name
searchable
String
Adspert if change was made by Adspert.
Example
GET /v3/customers/7027038674/criterion-addition/log/rules/users?exclude=elit.amet&filter_date_le=2018-10-21&include=ipsum.amet HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl -i -X GET 'https://api.adspert.net/v3/customers/7027038674/criterion-addition/log/rules/users?exclude=elit.amet&filter_date_le=2018-10-21&include=ipsum.amet' -H "Accept: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
http 'https://api.adspert.net/v3/customers/7027038674/criterion-addition/log/rules/users?exclude=elit.amet&filter_date_le=2018-10-21&include=ipsum.amet' Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.get('https://api.adspert.net/v3/customers/7027038674/criterion-addition/log/rules/users?exclude=elit.amet&filter_date_le=2018-10-21&include=ipsum.amet', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": [ { "user_id": 12345, "user_email": "test@example.com", "user_name": "adlora ipsum" } ], "meta": {} }
OptSettingsLogCollection
GET
- GET /v3/customers/(customer_id: int)/opt-settings/log
Get Proposal Logs for respective customer.
Query Params
Name
Type
Description
include
Fields to include in response data.
exclude
Fields to exclude in response data.
filter_date_ge
required
Only return results where
filter_date_ge
is equal or greater than this value.filter_date_le
required
Only return results where
filter_date_le
is equal or lower than this value.filter_account_id
[ String ]
Only return results matching given
account_id
values.filter_account_is_demo
[ Boolean ]
Only return results matching given
account_is_demo
values.filter_account_name
[ String ]
Only return results matching given
account_name
values.filter_account_optimize
[ Boolean ]
Only return results matching given
account_optimize
values.filter_account_platform
[ AdPlatform ]
Only return results matching given
account_platform
values.filter_account_tags_user
[ String ]
Only return results matching given
account_tags_user
values.filter_adspert_account_id
[ Integer ]
Only return results matching given
adspert_account_id
values.filter_adspert_campaign_id
[ CompositeID ]
Only return results matching given
adspert_campaign_id
values.filter_adspert_portfolio_id
[ CompositeID ]
Only return results matching given
adspert_portfolio_id
values.filter_amz_portfolio_name
[ String ]
Only return results matching given
amz_portfolio_name
values.filter_campaign_eby_marketplace_id
[ String ]
Only return results matching given
campaign_eby_marketplace_id
values.filter_campaign_labels
[ String ]
Only return results matching given
campaign_labels
values.filter_campaign_name
[ String ]
Only return results matching given
campaign_name
values.filter_campaign_optimization_support
Only return results matching given
campaign_optimization_support
values.filter_campaign_optimization_type
[ OptimizationType ]
Only return results matching given
campaign_optimization_type
values.filter_campaign_optimize
[ Boolean ]
Only return results matching given
campaign_optimize
values.filter_campaign_status
[ CampaignStatus ]
Only return results matching given
campaign_status
values.filter_campaign_type
[ CampaignType ]
Only return results matching given
campaign_type
values.filter_object_type
Only return results matching given
object_type
values.filter_opt_setting_type
[ OptSettingsType ]
Only return results matching given
opt_setting_type
values.filter_performance_group_enabled
[ Boolean ]
Only return results matching given
performance_group_enabled
values.filter_performance_group_goal_types
Only return results matching given
performance_group_goal_types
values.filter_performance_group_id
[ Integer ]
Only return results matching given
performance_group_id
values.filter_performance_group_name
[ String ]
Only return results matching given
performance_group_name
values.filter_performance_group_optimization_type
[ OptimizationType ]
Only return results matching given
performance_group_optimization_type
values.filter_user_id
[ Integer ]
Only return results matching given
user_id
values.search_fields
Fields that should be searched using the
search_term
.search_term
String
Search term used to search the
search_fields
.search_account_id
String
Only return results where
account_id
matches the given string.search_account_name
String
Only return results where
account_name
matches the given string.search_account_tags_user
String
Only return results where
account_tags_user
matches the given string.search_adspert_account_id
String
Only return results where
adspert_account_id
matches the given string.search_amz_portfolio_id
String
Only return results where
amz_portfolio_id
matches the given string.search_amz_portfolio_name
String
Only return results where
amz_portfolio_name
matches the given string.search_campaign_id
String
Only return results where
campaign_id
matches the given string.search_campaign_labels
String
Only return results where
campaign_labels
matches the given string.search_campaign_name
String
Only return results where
campaign_name
matches the given string.search_message_details
String
Only return results where
message_details
matches the given string.search_message_title
String
Only return results where
message_title
matches the given string.search_performance_group_id
String
Only return results where
performance_group_id
matches the given string.search_performance_group_name
String
Only return results where
performance_group_name
matches the given string.search_user_email
String
Only return results where
user_email
matches the given string.search_user_name
String
Only return results where
user_name
matches the given string.sort_account_id
Sort results by
account_id
.sort_account_is_demo
Sort results by
account_is_demo
.sort_account_name
Sort results by
account_name
.sort_account_optimize
Sort results by
account_optimize
.sort_account_platform
Sort results by
account_platform
.sort_adspert_account_id
Sort results by
adspert_account_id
.sort_adspert_campaign_id
Sort results by
adspert_campaign_id
.sort_adspert_portfolio_id
Sort results by
adspert_portfolio_id
.sort_amz_portfolio_id
Sort results by
amz_portfolio_id
.sort_amz_portfolio_name
Sort results by
amz_portfolio_name
.sort_campaign_eby_marketplace_id
Sort results by
campaign_eby_marketplace_id
.sort_campaign_id
Sort results by
campaign_id
.sort_campaign_name
Sort results by
campaign_name
.sort_campaign_optimization_support
Sort results by
campaign_optimization_support
.sort_campaign_optimization_type
Sort results by
campaign_optimization_type
.sort_campaign_optimize
Sort results by
campaign_optimize
.sort_campaign_status
Sort results by
campaign_status
.sort_campaign_type
Sort results by
campaign_type
.sort_log_id
Sort results by
log_id
.sort_opt_setting_type
Sort results by
opt_setting_type
.sort_performance_group_enabled
Sort results by
performance_group_enabled
.sort_performance_group_goal_types
Sort results by
performance_group_goal_types
.sort_performance_group_id
Sort results by
performance_group_id
.sort_performance_group_name
Sort results by
performance_group_name
.sort_performance_group_optimization_type
Sort results by
performance_group_optimization_type
.sort_timestamp
Sort results by
timestamp
.sort_user_email
Sort results by
user_email
.sort_user_id
Sort results by
user_id
.sort_user_name
Sort results by
user_name
.offset
Integer
Start index for result list.
Default: 0
Min value: 0
limit
Integer
Maximum number of results to return. The maximum allowed value depends on the response media type (10000 for JSON and 100000 for tabular formats like CSV).
Default: 10
Min value: 1
Response Data (object list, json or csv or xlsx)
Name
Type
Description
log_id
changelog_id
DEPRECATED:
Uselog_id
.timestamp
message_title
searchable
String
message_details
searchable
String
opt_setting_type
Optimization Setting types, e.g. conversion_value, conversion_value_type etc.
object_type
Optimization Settings Log scope, e.g. campaign and account.
account_id
searchable
String
Ad platform specific ID of an advertising account.
adspert_account_id
searchable
Integer
Adspert internal ID of the advertising account
account_platform
The account’s advertising platform.
account_name
searchable
String
account_is_demo
Boolean
If the account is a generated account for demonstration purposes.
Demo accounts have no counterpart in the ad platform.
account_optimize
Boolean
If optimization by Adspert is enabled for this account.
account_tags_user
searchable
[ String ]
adspert_campaign_id
Adspert internal ID of the campaign.
Composite ID specification:
{adspert_account_id}:{campaign_id}
campaign_name
searchable
String
campaign_type
campaign_eby_marketplace_id
String
campaign_status
campaign_optimize
Boolean
campaign_optimization_type
campaign_optimization_support
campaign_labels
searchable
[ String ]
campaign_id
searchable
performance_group_id
searchable
Integer
Unique ID of the performance group
performance_group_name
searchable
String
Unique name of the performance group.
performance_group_enabled
Boolean
performance_group_optimization_type
Optimization type of the performance group.
Only campaigns of the same optimization type can be added to a given performance group.
performance_group_goals
[ Object ]
List of performance group goals
⤷
goal_type
Type of the performance group goal
⤷
goal_value
Float
Value of the performance group goal.
goal_value
should beNULL
ifgoal_type
isPROFIT-MAXIMIZATION
.goal_value
should be a ratio (> 0) ifgoal_type
isROAS
,CRR
andROI
,goal_value
should be specified in micros and be larger than 10000 ifgoal_type
isCOST-PER-DAY
,COST-PER-CONVERSION
andCOST-PER-CLICK
.⤷
goal_currency
Currency of the performance group goal.
Currency is required for
COST-PER-DAY
,COST-PER-CONVERSION
andCOST-PER-CLICK
goals.⤷
goal_micros
Value for
COST-PER-DAY
,COST-PER-CONVERSION
andCOST-PER-CLICK
goals.Same as
goal_value
, but in a properly typed field for easier client-side handling and improved representation in tabular response data like CSV.⤷
goal_ratio
Float
Value for
ROAS
,CRR
andROI
goals.Same as
goal_value
, but in a properly typed field for easier client-side handling and improved representation in tabular response data like CSV.performance_group_goal_types
List of performance group goal types
adspert_portfolio_id
Adspert internal ID of Amazon portfolio.
Composite ID specification:
{adspert_account_id}:{portfolio_id}
amz_portfolio_id
searchable
amz_portfolio_name
searchable
String
user_id
Integer
ID of the user who did the change.
Is
-1
if change was made by Adspert.user_email
searchable
String
E-mail of the user who did the change. Is
null
if change was made by Adspert.user_name
searchable
String
Adspert if change was made by Adspert.
Example
GET /v3/customers/7027038674/opt-settings/log?filter_date_le=2018-10-21&search_message_details=amet+vehicula&sort_performance_group_optimization_type=1 HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl -i -X GET 'https://api.adspert.net/v3/customers/7027038674/opt-settings/log?filter_date_le=2018-10-21&search_message_details=amet+vehicula&sort_performance_group_optimization_type=1' -H "Accept: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
http 'https://api.adspert.net/v3/customers/7027038674/opt-settings/log?filter_date_le=2018-10-21&search_message_details=amet+vehicula&sort_performance_group_optimization_type=1' Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.get('https://api.adspert.net/v3/customers/7027038674/opt-settings/log?filter_date_le=2018-10-21&search_message_details=amet+vehicula&sort_performance_group_optimization_type=1', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": [ { "log_id": "53326526164766640480860599", "changelog_id": "81560986721134923113934263", "timestamp": "2018-10-21T16:45:23+02:00", "message_title": "pariatur lorem", "message_details": "tucan sit", "opt_setting_type": "ACCOUNT-CONVERSION-VALUE-ADDED", "object_type": "ACCOUNT", "account_id": "amet lorem", "adspert_account_id": 123, "account_platform": "AMAZON", "account_name": "vehicula ipsum", "account_is_demo": true, "account_optimize": true, "account_tags_user": [ "vehicula amet" ], "adspert_campaign_id": "123:5555", "campaign_name": "sit ipsum", "campaign_type": "AMAZON-SPONSORED-BRANDS", "campaign_eby_marketplace_id": "amet pariatur", "campaign_status": "ACTIVE", "campaign_optimize": true, "campaign_optimization_type": "CLICK", "campaign_optimization_support": "SUPPORTED", "campaign_labels": [ "ipsum dolor" ], "campaign_id": "5555", "performance_group_id": "1245", "performance_group_name": "dolor sit", "performance_group_enabled": true, "performance_group_optimization_type": "CLICK", "performance_group_goals": [ { "goal_type": "CLICKS-PER-DAY", "goal_value": 1.41, "goal_currency": "AED", "goal_micros": 6300000, "goal_ratio": 8.77 } ], "performance_group_goal_types": [ "CLICKS-PER-DAY" ], "adspert_portfolio_id": "123:9999", "amz_portfolio_id": "9999", "amz_portfolio_name": "elit adlora", "user_id": 12345, "user_email": "test@example.com", "user_name": "adlora ipsum" } ], "meta": { "pagination": { "offset": 0, "limit": 10, "total": 74, "sort": { "log_id": 1 } } } }
FilterUserCollectionOptSettingsLog
GET
- GET /v3/customers/(customer_id: int)/opt-settings/log/users
Get users that can be used as filters in the log endpoint.
Query Params
Name
Type
Description
include
Fields to include in response data.
exclude
Fields to exclude in response data.
filter_date_ge
required
Only return results where
filter_date_ge
is equal or greater than this value.filter_date_le
required
Only return results where
filter_date_le
is equal or lower than this value.Response Data (object list, json or csv or xlsx)
Name
Type
Description
user_id
Integer
ID of the user who did the change.
Is
-1
if change was made by Adspert.user_email
searchable
String
E-mail of the user who did the change. Is
null
if change was made by Adspert.user_name
searchable
String
Adspert if change was made by Adspert.
Example
GET /v3/customers/7027038674/opt-settings/log/users?filter_date_ge=2018-10-21&include=ipsum.amet&filter_date_le=2018-10-21 HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl -i -X GET 'https://api.adspert.net/v3/customers/7027038674/opt-settings/log/users?filter_date_ge=2018-10-21&include=ipsum.amet&filter_date_le=2018-10-21' -H "Accept: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
http 'https://api.adspert.net/v3/customers/7027038674/opt-settings/log/users?filter_date_ge=2018-10-21&include=ipsum.amet&filter_date_le=2018-10-21' Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.get('https://api.adspert.net/v3/customers/7027038674/opt-settings/log/users?filter_date_ge=2018-10-21&include=ipsum.amet&filter_date_le=2018-10-21', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": [ { "user_id": 12345, "user_email": "test@example.com", "user_name": "adlora ipsum" } ], "meta": {} }
BudgetSubmissionLogCollection
GET
- GET /v3/customers/(customer_id: int)/budget/log
Get budget submission log for respective customer.
Query Params
Name
Type
Description
include
Fields to include in response data.
exclude
Fields to exclude in response data.
filter_date_ge
Only return results where
filter_date_ge
is equal or greater than this value.filter_date_le
Only return results where
filter_date_le
is equal or lower than this value.filter_account_currency
[ String ]
Only return results matching given
account_currency
values.filter_account_id
[ String ]
Only return results matching given
account_id
values.filter_account_is_demo
[ Boolean ]
Only return results matching given
account_is_demo
values.filter_account_name
[ String ]
Only return results matching given
account_name
values.filter_account_optimize
[ Boolean ]
Only return results matching given
account_optimize
values.filter_account_platform
[ AdPlatform ]
Only return results matching given
account_platform
values.filter_account_tags_user
[ String ]
Only return results matching given
account_tags_user
values.filter_adspert_account_id
[ Integer ]
Only return results matching given
adspert_account_id
values.filter_adspert_campaign_id
[ CompositeID ]
Only return results matching given
adspert_campaign_id
values.filter_adspert_portfolio_id
[ CompositeID ]
Only return results matching given
adspert_portfolio_id
values.filter_amz_portfolio_name
[ String ]
Only return results matching given
amz_portfolio_name
values.filter_budget_id
[ Integer ]
Only return results matching given
budget_id
values.filter_campaign_eby_marketplace_id
[ String ]
Only return results matching given
campaign_eby_marketplace_id
values.filter_campaign_labels
[ String ]
Only return results matching given
campaign_labels
values.filter_campaign_name
[ String ]
Only return results matching given
campaign_name
values.filter_campaign_optimization_support
Only return results matching given
campaign_optimization_support
values.filter_campaign_optimization_type
[ OptimizationType ]
Only return results matching given
campaign_optimization_type
values.filter_campaign_optimize
[ Boolean ]
Only return results matching given
campaign_optimize
values.filter_campaign_status
[ CampaignStatus ]
Only return results matching given
campaign_status
values.filter_campaign_type
[ CampaignType ]
Only return results matching given
campaign_type
values.filter_performance_group_enabled
[ Boolean ]
Only return results matching given
performance_group_enabled
values.filter_performance_group_goal_types
Only return results matching given
performance_group_goal_types
values.filter_performance_group_id
[ Integer ]
Only return results matching given
performance_group_id
values.filter_performance_group_name
[ String ]
Only return results matching given
performance_group_name
values.filter_performance_group_optimization_type
[ OptimizationType ]
Only return results matching given
performance_group_optimization_type
values.filter_state
Only return results matching given
state
values.filter_suggestion_id
[ Integer ]
Only return results matching given
suggestion_id
values.filter_user_id
[ Integer ]
Only return results matching given
user_id
values.search_fields
Fields that should be searched using the
search_term
.search_term
String
Search term used to search the
search_fields
.search_account_id
String
Only return results where
account_id
matches the given string.search_account_name
String
Only return results where
account_name
matches the given string.search_account_tags_user
String
Only return results where
account_tags_user
matches the given string.search_adspert_account_id
String
Only return results where
adspert_account_id
matches the given string.search_amz_portfolio_id
String
Only return results where
amz_portfolio_id
matches the given string.search_amz_portfolio_name
String
Only return results where
amz_portfolio_name
matches the given string.search_campaign_id
String
Only return results where
campaign_id
matches the given string.search_campaign_labels
String
Only return results where
campaign_labels
matches the given string.search_campaign_name
String
Only return results where
campaign_name
matches the given string.search_message_details
String
Only return results where
message_details
matches the given string.search_message_title
String
Only return results where
message_title
matches the given string.search_performance_group_id
String
Only return results where
performance_group_id
matches the given string.search_performance_group_name
String
Only return results where
performance_group_name
matches the given string.search_state
String
Only return results where
state
matches the given string.search_user_email
String
Only return results where
user_email
matches the given string.search_user_name
String
Only return results where
user_name
matches the given string.sort_account_currency
Sort results by
account_currency
.sort_account_id
Sort results by
account_id
.sort_account_is_demo
Sort results by
account_is_demo
.sort_account_name
Sort results by
account_name
.sort_account_optimize
Sort results by
account_optimize
.sort_account_platform
Sort results by
account_platform
.sort_adspert_account_id
Sort results by
adspert_account_id
.sort_adspert_campaign_id
Sort results by
adspert_campaign_id
.sort_adspert_portfolio_id
Sort results by
adspert_portfolio_id
.sort_amz_portfolio_id
Sort results by
amz_portfolio_id
.sort_amz_portfolio_name
Sort results by
amz_portfolio_name
.sort_budget_id
Sort results by
budget_id
.sort_campaign_eby_marketplace_id
Sort results by
campaign_eby_marketplace_id
.sort_campaign_id
Sort results by
campaign_id
.sort_campaign_name
Sort results by
campaign_name
.sort_campaign_optimization_support
Sort results by
campaign_optimization_support
.sort_campaign_optimization_type
Sort results by
campaign_optimization_type
.sort_campaign_optimize
Sort results by
campaign_optimize
.sort_campaign_status
Sort results by
campaign_status
.sort_campaign_type
Sort results by
campaign_type
.sort_performance_group_enabled
Sort results by
performance_group_enabled
.sort_performance_group_goal_types
Sort results by
performance_group_goal_types
.sort_performance_group_id
Sort results by
performance_group_id
.sort_performance_group_name
Sort results by
performance_group_name
.sort_performance_group_optimization_type
Sort results by
performance_group_optimization_type
.sort_state
Sort results by
state
.sort_suggestion_id
Sort results by
suggestion_id
.sort_timestamp
Sort results by
timestamp
.sort_user_email
Sort results by
user_email
.sort_user_id
Sort results by
user_id
.sort_user_name
Sort results by
user_name
.offset
Integer
Start index for result list.
Default: 0
Min value: 0
limit
Integer
Maximum number of results to return. The maximum allowed value depends on the response media type (10000 for JSON and 100000 for tabular formats like CSV).
Default: 10
Min value: 1
Response Data (object list, json or csv or xlsx)
Name
Type
Description
timestamp
state
searchable
State of a Budget Submission.
user_id
Integer
ID of the user who did the change.
Is
-1
if change was made by Adspert.user_email
searchable
String
E-mail of the user who did the change. Is
null
if change was made by Adspert.user_name
searchable
String
Adspert if change was made by Adspert.
message_title
searchable
String
message_details
searchable
String
adspert_account_id
searchable
Integer
Adspert internal ID of the advertising account
account_id
searchable
String
Ad platform specific ID of an advertising account.
account_name
searchable
String
account_platform
The account’s advertising platform.
account_optimize
Boolean
If optimization by Adspert is enabled for this account.
account_tags_user
searchable
[ String ]
account_is_demo
Boolean
If the account is a generated account for demonstration purposes.
Demo accounts have no counterpart in the ad platform.
account_currency
String
adspert_campaign_id
Adspert internal ID of the campaign.
Composite ID specification:
{adspert_account_id}:{campaign_id}
campaign_id
searchable
campaign_name
searchable
String
campaign_type
campaign_eby_marketplace_id
String
campaign_status
campaign_optimize
Boolean
campaign_optimization_type
campaign_optimization_support
campaign_labels
searchable
[ String ]
performance_group_id
searchable
Integer
Unique ID of the performance group
performance_group_name
searchable
String
Unique name of the performance group.
performance_group_enabled
Boolean
performance_group_optimization_type
Optimization type of the performance group.
Only campaigns of the same optimization type can be added to a given performance group.
performance_group_goals
[ Object ]
List of performance group goals
⤷
goal_type
Type of the performance group goal
⤷
goal_value
Float
Value of the performance group goal.
goal_value
should beNULL
ifgoal_type
isPROFIT-MAXIMIZATION
.goal_value
should be a ratio (> 0) ifgoal_type
isROAS
,CRR
andROI
,goal_value
should be specified in micros and be larger than 10000 ifgoal_type
isCOST-PER-DAY
,COST-PER-CONVERSION
andCOST-PER-CLICK
.⤷
goal_currency
Currency of the performance group goal.
Currency is required for
COST-PER-DAY
,COST-PER-CONVERSION
andCOST-PER-CLICK
goals.⤷
goal_micros
Value for
COST-PER-DAY
,COST-PER-CONVERSION
andCOST-PER-CLICK
goals.Same as
goal_value
, but in a properly typed field for easier client-side handling and improved representation in tabular response data like CSV.⤷
goal_ratio
Float
Value for
ROAS
,CRR
andROI
goals.Same as
goal_value
, but in a properly typed field for easier client-side handling and improved representation in tabular response data like CSV.performance_group_goal_types
List of performance group goal types
adspert_portfolio_id
Adspert internal ID of Amazon portfolio.
Composite ID specification:
{adspert_account_id}:{portfolio_id}
amz_portfolio_id
searchable
amz_portfolio_name
searchable
String
suggestion_id
Integer
Unique identifier for the suggestion
budget_id
Integer
Budget ID associated with the suggestion
budget_approved
Approved budget in account currency.
budget_suggested
Suggested budget in account currency.
Example
GET /v3/customers/7027038674/budget/log?sort_state=-4&sort_account_id=7&sort_campaign_optimization_support=0 HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl -i -X GET 'https://api.adspert.net/v3/customers/7027038674/budget/log?sort_state=-4&sort_account_id=7&sort_campaign_optimization_support=0' -H "Accept: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
http 'https://api.adspert.net/v3/customers/7027038674/budget/log?sort_state=-4&sort_account_id=7&sort_campaign_optimization_support=0' Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.get('https://api.adspert.net/v3/customers/7027038674/budget/log?sort_state=-4&sort_account_id=7&sort_campaign_optimization_support=0', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": [ { "timestamp": "2018-10-21T16:45:23+02:00", "state": "FAILED", "user_id": 12345, "user_email": "test@example.com", "user_name": "adlora ipsum", "message_title": "pariatur lorem", "message_details": "tucan sit", "adspert_account_id": 123, "account_id": "amet lorem", "account_name": "vehicula ipsum", "account_platform": "AMAZON", "account_optimize": true, "account_tags_user": [ "vehicula amet" ], "account_is_demo": true, "account_currency": "ipsum adlora", "adspert_campaign_id": "123:5555", "campaign_id": "5555", "campaign_name": "sit ipsum", "campaign_type": "AMAZON-SPONSORED-BRANDS", "campaign_eby_marketplace_id": "amet pariatur", "campaign_status": "ACTIVE", "campaign_optimize": true, "campaign_optimization_type": "CLICK", "campaign_optimization_support": "SUPPORTED", "campaign_labels": [ "ipsum dolor" ], "performance_group_id": "1245", "performance_group_name": "dolor sit", "performance_group_enabled": true, "performance_group_optimization_type": "CLICK", "performance_group_goals": [ { "goal_type": "CLICKS-PER-DAY", "goal_value": 1.41, "goal_currency": "AED", "goal_micros": 6300000, "goal_ratio": 8.77 } ], "performance_group_goal_types": [ "CLICKS-PER-DAY" ], "adspert_portfolio_id": "123:9999", "amz_portfolio_id": "9999", "amz_portfolio_name": "elit adlora", "suggestion_id": 7559014817, "budget_id": 9532519855, "budget_approved": 4920000, "budget_suggested": 2950000 } ], "meta": { "pagination": { "offset": 0, "limit": 10, "total": 74, "sort": { "timestamp": 1 } } } }
FilterUserCollectionBudgetSuggestions
GET
- GET /v3/customers/(customer_id: int)/budget/log/users
Get users that can be used as filters in the log endpoint.
Query Params
Name
Type
Description
include
Fields to include in response data.
exclude
Fields to exclude in response data.
filter_date_ge
required
Only return results where
filter_date_ge
is equal or greater than this value.filter_date_le
required
Only return results where
filter_date_le
is equal or lower than this value.Response Data (object list, json or csv or xlsx)
Name
Type
Description
user_id
Integer
ID of the user who did the change.
Is
-1
if change was made by Adspert.user_email
searchable
String
E-mail of the user who did the change. Is
null
if change was made by Adspert.user_name
searchable
String
Adspert if change was made by Adspert.
Example
GET /v3/customers/7027038674/budget/log/users?filter_date_le=2018-10-21&exclude=elit.amet&filter_date_ge=2018-10-21 HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl -i -X GET 'https://api.adspert.net/v3/customers/7027038674/budget/log/users?filter_date_le=2018-10-21&exclude=elit.amet&filter_date_ge=2018-10-21' -H "Accept: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
http 'https://api.adspert.net/v3/customers/7027038674/budget/log/users?filter_date_le=2018-10-21&exclude=elit.amet&filter_date_ge=2018-10-21' Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.get('https://api.adspert.net/v3/customers/7027038674/budget/log/users?filter_date_le=2018-10-21&exclude=elit.amet&filter_date_ge=2018-10-21', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": [ { "user_id": 12345, "user_email": "test@example.com", "user_name": "adlora ipsum" } ], "meta": {} }
Admin
UserAdminCollection
GET
- GET /v3/admin/users
Retrieve a list of users with last password authentication
attempt info and customers this user has access to.
- Auth mode:
- Access level:
Query Params
Name
Type
Description
include
Fields to include in response data.
exclude
Fields to exclude in response data.
filter_customer_id
[ Integer ]
Only return results matching given
customer_id
values.filter_login_failed
[ Boolean ]
Only return results matching given
login_failed
values.filter_role
Only return results matching given
role
values.filter_sys_admin
[ Boolean ]
Only return results matching given
sys_admin
values.filter_user_id
[ Integer ]
Only return results matching given
user_id
values.search_fields
Fields that should be searched using the
search_term
.search_term
String
Search term used to search the
search_fields
.search_customer_id
String
Only return results where
customer_id
matches the given string.search_customer_name
String
Only return results where
customer_name
matches the given string.search_email
String
Only return results where
email
matches the given string.search_first_name
String
Only return results where
first_name
matches the given string.search_last_name
String
Only return results where
last_name
matches the given string.sort_customer_id
Sort results by
customer_id
.sort_customer_name
Sort results by
customer_name
.sort_email
Sort results by
email
.sort_first_name
Sort results by
first_name
.sort_last_name
Sort results by
last_name
.sort_user_id
Sort results by
user_id
.offset
Integer
Start index for result list.
Default: 0
Min value: 0
limit
Integer
Maximum number of results to return. The maximum allowed value depends on the response media type (10000 for JSON and 100000 for tabular formats like CSV).
Default: 10
Min value: 1
Response Data (object list, json or csv or xlsx)
Name
Type
Description
user_id
Integer
ID of the user who did the change.
first_name
searchable
String
last_name
searchable
String
email
searchable
String
E-mail of the user who did the change. Is
null
if change was made by Adspert.lang
String
sys_admin
Boolean
last_login
login_error
String
login_failed
Boolean
role
The role assigned to a user on a customer.
customer_id
searchable
Integer
ID of the customer that this account belongs to.
customer_name
searchable
String
Example
GET /v3/admin/users?filter_customer_id=7027038674&sort_first_name=7&search_first_name=sit+adlora HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl -i -X GET 'https://api.adspert.net/v3/admin/users?filter_customer_id=7027038674&sort_first_name=7&search_first_name=sit+adlora' -H "Accept: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
http 'https://api.adspert.net/v3/admin/users?filter_customer_id=7027038674&sort_first_name=7&search_first_name=sit+adlora' Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.get('https://api.adspert.net/v3/admin/users?filter_customer_id=7027038674&sort_first_name=7&search_first_name=sit+adlora', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": [ { "user_id": 12345, "first_name": "pariatur ipsum", "last_name": "adlora amet", "email": "test@example.com", "lang": "elit adlora", "sys_admin": true, "last_login": "2018-10-21T16:45:23+02:00", "login_error": "dolor adlora", "login_failed": true, "role": "AGENCY-ADMIN", "customer_id": 2022024680, "customer_name": "amet sit" } ], "meta": { "pagination": { "offset": 0, "limit": 10, "total": 74, "sort": { "user_id": 1 } } } }
Optimization Log & Stats
BiddingLogCollection
GET
- GET /v3/accounts/(adspert_account_id: int)/log/bidding
Retrieve bids changed by Adspert.
Query Params
Name
Type
Description
include
Fields to include in response data.
exclude
Fields to exclude in response data.
filter_adgroup_id
[ LargeInteger ]
Only return results matching given
adgroup_id
values.filter_adgroup_labels
[ String ]
Only return results matching given
adgroup_labels
values.filter_adgroup_name
[ String ]
Only return results matching given
adgroup_name
values.filter_adgroup_status
[ AdgroupStatus ]
Only return results matching given
adgroup_status
values.filter_amz_portfolio_name
[ String ]
Only return results matching given
amz_portfolio_name
values.filter_bid_increased
[ Boolean ]
Only return results matching given
bid_increased
values.filter_bid_type
[ BidType ]
Only return results matching given
bid_type
values.filter_campaign_eby_marketplace_id
[ String ]
Only return results matching given
campaign_eby_marketplace_id
values.filter_campaign_id
[ LargeInteger ]
Only return results matching given
campaign_id
values.filter_campaign_labels
[ String ]
Only return results matching given
campaign_labels
values.filter_campaign_name
[ String ]
Only return results matching given
campaign_name
values.filter_campaign_optimization_support
Only return results matching given
campaign_optimization_support
values.filter_campaign_optimization_type
[ OptimizationType ]
Only return results matching given
campaign_optimization_type
values.filter_campaign_optimize
[ Boolean ]
Only return results matching given
campaign_optimize
values.filter_campaign_status
[ CampaignStatus ]
Only return results matching given
campaign_status
values.filter_campaign_type
[ CampaignType ]
Only return results matching given
campaign_type
values.filter_criterion_id
[ LargeInteger ]
Only return results matching given
criterion_id
values.filter_criterion_match_type
Only return results matching given
criterion_match_type
values.filter_criterion_name
[ String ]
Only return results matching given
criterion_name
values.filter_criterion_status
[ CriterionStatus ]
Only return results matching given
criterion_status
values.filter_criterion_type
[ CriterionType ]
Only return results matching given
criterion_type
values.filter_date_ge
Only return results where
date
is equal or greater than this value.filter_date_le
Only return results where
date
is equal or lower than this value.filter_performance_group_enabled
[ Boolean ]
Only return results matching given
performance_group_enabled
values.filter_performance_group_goal_types
Only return results matching given
performance_group_goal_types
values.filter_performance_group_id
[ Integer ]
Only return results matching given
performance_group_id
values.filter_performance_group_name
[ String ]
Only return results matching given
performance_group_name
values.filter_performance_group_optimization_type
[ OptimizationType ]
Only return results matching given
performance_group_optimization_type
values.search_fields
Fields that should be searched using the
search_term
.search_term
String
Search term used to search the
search_fields
.search_adgroup_id
String
Only return results where
adgroup_id
matches the given string.search_adgroup_labels
String
Only return results where
adgroup_labels
matches the given string.search_adgroup_name
String
Only return results where
adgroup_name
matches the given string.search_amz_portfolio_id
String
Only return results where
amz_portfolio_id
matches the given string.search_amz_portfolio_name
String
Only return results where
amz_portfolio_name
matches the given string.search_campaign_id
String
Only return results where
campaign_id
matches the given string.search_campaign_labels
String
Only return results where
campaign_labels
matches the given string.search_campaign_name
String
Only return results where
campaign_name
matches the given string.search_criterion_id
String
Only return results where
criterion_id
matches the given string.search_criterion_name
String
Only return results where
criterion_name
matches the given string.search_performance_group_id
String
Only return results where
performance_group_id
matches the given string.search_performance_group_name
String
Only return results where
performance_group_name
matches the given string.sort_adgroup_id
Sort results by
adgroup_id
.sort_adgroup_name
Sort results by
adgroup_name
.sort_adgroup_status
Sort results by
adgroup_status
.sort_amz_portfolio_id
Sort results by
amz_portfolio_id
.sort_amz_portfolio_name
Sort results by
amz_portfolio_name
.sort_bid_new
Sort results by
bid_new
.sort_bid_old
Sort results by
bid_old
.sort_bid_type
Sort results by
bid_type
.sort_campaign_eby_marketplace_id
Sort results by
campaign_eby_marketplace_id
.sort_campaign_id
Sort results by
campaign_id
.sort_campaign_name
Sort results by
campaign_name
.sort_campaign_optimization_support
Sort results by
campaign_optimization_support
.sort_campaign_optimization_type
Sort results by
campaign_optimization_type
.sort_campaign_optimize
Sort results by
campaign_optimize
.sort_campaign_status
Sort results by
campaign_status
.sort_campaign_type
Sort results by
campaign_type
.sort_criterion_id
Sort results by
criterion_id
.sort_criterion_match_type
Sort results by
criterion_match_type
.sort_criterion_name
Sort results by
criterion_name
.sort_criterion_status
Sort results by
criterion_status
.sort_criterion_type
Sort results by
criterion_type
.sort_date
Sort results by
date
.sort_performance_group_enabled
Sort results by
performance_group_enabled
.sort_performance_group_goal_types
Sort results by
performance_group_goal_types
.sort_performance_group_id
Sort results by
performance_group_id
.sort_performance_group_name
Sort results by
performance_group_name
.sort_performance_group_optimization_type
Sort results by
performance_group_optimization_type
.sort_timestamp
Sort results by
timestamp
.offset
Integer
Start index for result list.
Default: 0
Min value: 0
limit
Integer
Maximum number of results to return. The maximum allowed value depends on the response media type (10000 for JSON and 100000 for tabular formats like CSV).
Default: 10
Min value: 1
Response Data (object list, json or csv or xlsx)
Name
Type
Description
timestamp
date
bid_type
bid_old
bid_new
bid_increased
Boolean
campaign_id
searchable
campaign_name
searchable
String
campaign_type
campaign_eby_marketplace_id
String
campaign_status
campaign_optimize
Boolean
campaign_optimization_type
campaign_optimization_support
campaign_labels
searchable
[ String ]
performance_group_id
searchable
Integer
Unique ID of the performance group
performance_group_name
searchable
String
Unique name of the performance group.
performance_group_enabled
Boolean
performance_group_optimization_type
Optimization type of the performance group.
Only campaigns of the same optimization type can be added to a given performance group.
performance_group_goals
[ Object ]
List of performance group goals
⤷
goal_type
Type of the performance group goal
⤷
goal_value
Float
Value of the performance group goal.
goal_value
should beNULL
ifgoal_type
isPROFIT-MAXIMIZATION
.goal_value
should be a ratio (> 0) ifgoal_type
isROAS
,CRR
andROI
,goal_value
should be specified in micros and be larger than 10000 ifgoal_type
isCOST-PER-DAY
,COST-PER-CONVERSION
andCOST-PER-CLICK
.⤷
goal_currency
Currency of the performance group goal.
Currency is required for
COST-PER-DAY
,COST-PER-CONVERSION
andCOST-PER-CLICK
goals.⤷
goal_micros
Value for
COST-PER-DAY
,COST-PER-CONVERSION
andCOST-PER-CLICK
goals.Same as
goal_value
, but in a properly typed field for easier client-side handling and improved representation in tabular response data like CSV.⤷
goal_ratio
Float
Value for
ROAS
,CRR
andROI
goals.Same as
goal_value
, but in a properly typed field for easier client-side handling and improved representation in tabular response data like CSV.performance_group_goal_types
List of performance group goal types
amz_portfolio_id
searchable
amz_portfolio_name
searchable
String
adgroup_id
searchable
adgroup_name
searchable
String
adgroup_status
adgroup_labels
searchable
[ String ]
criterion_status
criterion_id
searchable
criterion_match_type
Match type of
Keyword
criterion.NULL if
criterion_type
is notKeyword
.criterion_name
searchable
String
criterion_type
Example
GET /v3/accounts/3420379091/log/bidding?filter_performance_group_name=dolor+sit&filter_bid_type=CPC&filter_campaign_optimization_support=SUPPORTED HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl -i -X GET 'https://api.adspert.net/v3/accounts/3420379091/log/bidding?filter_performance_group_name=dolor+sit&filter_bid_type=CPC&filter_campaign_optimization_support=SUPPORTED' -H "Accept: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
http 'https://api.adspert.net/v3/accounts/3420379091/log/bidding?filter_performance_group_name=dolor+sit&filter_bid_type=CPC&filter_campaign_optimization_support=SUPPORTED' Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.get('https://api.adspert.net/v3/accounts/3420379091/log/bidding?filter_performance_group_name=dolor+sit&filter_bid_type=CPC&filter_campaign_optimization_support=SUPPORTED', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": [ { "timestamp": "2018-10-21T16:45:23+02:00", "date": "2018-10-21", "bid_type": "CPC", "bid_old": 5250000, "bid_new": 8540000, "bid_increased": true, "campaign_id": "5555", "campaign_name": "sit ipsum", "campaign_type": "AMAZON-SPONSORED-BRANDS", "campaign_eby_marketplace_id": "amet pariatur", "campaign_status": "ACTIVE", "campaign_optimize": true, "campaign_optimization_type": "CLICK", "campaign_optimization_support": "SUPPORTED", "campaign_labels": [ "ipsum dolor" ], "performance_group_id": "1245", "performance_group_name": "dolor sit", "performance_group_enabled": true, "performance_group_optimization_type": "CLICK", "performance_group_goals": [ { "goal_type": "CLICKS-PER-DAY", "goal_value": 1.41, "goal_currency": "AED", "goal_micros": 6300000, "goal_ratio": 8.77 } ], "performance_group_goal_types": [ "CLICKS-PER-DAY" ], "amz_portfolio_id": "9999", "amz_portfolio_name": "elit adlora", "adgroup_id": "777", "adgroup_name": "tucan lorem", "adgroup_status": "ACTIVE", "adgroup_labels": [ "elit ipsum" ], "criterion_status": "ACTIVE", "criterion_id": "66789", "criterion_match_type": "BROAD", "criterion_name": "dolor adlora", "criterion_type": "AUDIENCE" } ], "meta": { "pagination": { "offset": 0, "limit": 10, "total": 74, "sort": { "timestamp": 1 } } } }
BidAdjustmentLogCollection
GET
- GET /v3/accounts/(adspert_account_id: int)/log/bid-adjustments
Retrieve bids adjusted by Adspert.
Query Params
Name
Type
Description
include
Fields to include in response data.
exclude
Fields to exclude in response data.
filter_adgroup_id
[ LargeInteger ]
Only return results matching given
adgroup_id
values.filter_adgroup_labels
[ String ]
Only return results matching given
adgroup_labels
values.filter_adgroup_name
[ String ]
Only return results matching given
adgroup_name
values.filter_adgroup_status
[ AdgroupStatus ]
Only return results matching given
adgroup_status
values.filter_amz_portfolio_name
[ String ]
Only return results matching given
amz_portfolio_name
values.filter_bid_modifier_increase
[ Boolean ]
Only return results matching given
bid_modifier_increase
values.filter_campaign_eby_marketplace_id
[ String ]
Only return results matching given
campaign_eby_marketplace_id
values.filter_campaign_id
[ LargeInteger ]
Only return results matching given
campaign_id
values.filter_campaign_labels
[ String ]
Only return results matching given
campaign_labels
values.filter_campaign_name
[ String ]
Only return results matching given
campaign_name
values.filter_campaign_optimization_support
Only return results matching given
campaign_optimization_support
values.filter_campaign_optimization_type
[ OptimizationType ]
Only return results matching given
campaign_optimization_type
values.filter_campaign_optimize
[ Boolean ]
Only return results matching given
campaign_optimize
values.filter_campaign_status
[ CampaignStatus ]
Only return results matching given
campaign_status
values.filter_campaign_type
[ CampaignType ]
Only return results matching given
campaign_type
values.filter_date_ge
Only return results where
date
is equal or greater than this value.filter_date_le
Only return results where
date
is equal or lower than this value.filter_dimension_type
[ DimensionType ]
Only return results matching given
dimension_type
values.filter_performance_group_enabled
[ Boolean ]
Only return results matching given
performance_group_enabled
values.filter_performance_group_goal_types
Only return results matching given
performance_group_goal_types
values.filter_performance_group_id
[ Integer ]
Only return results matching given
performance_group_id
values.filter_performance_group_name
[ String ]
Only return results matching given
performance_group_name
values.filter_performance_group_optimization_type
[ OptimizationType ]
Only return results matching given
performance_group_optimization_type
values.search_fields
Fields that should be searched using the
search_term
.search_term
String
Search term used to search the
search_fields
.search_adgroup_id
String
Only return results where
adgroup_id
matches the given string.search_adgroup_labels
String
Only return results where
adgroup_labels
matches the given string.search_adgroup_name
String
Only return results where
adgroup_name
matches the given string.search_amz_portfolio_id
String
Only return results where
amz_portfolio_id
matches the given string.search_amz_portfolio_name
String
Only return results where
amz_portfolio_name
matches the given string.search_campaign_id
String
Only return results where
campaign_id
matches the given string.search_campaign_labels
String
Only return results where
campaign_labels
matches the given string.search_campaign_name
String
Only return results where
campaign_name
matches the given string.search_dimension_name
String
Only return results where
dimension_name
matches the given string.search_message_details
String
Only return results where
message_details
matches the given string.search_message_title
String
Only return results where
message_title
matches the given string.search_performance_group_id
String
Only return results where
performance_group_id
matches the given string.search_performance_group_name
String
Only return results where
performance_group_name
matches the given string.sort_adgroup_id
Sort results by
adgroup_id
.sort_adgroup_name
Sort results by
adgroup_name
.sort_adgroup_status
Sort results by
adgroup_status
.sort_amz_portfolio_id
Sort results by
amz_portfolio_id
.sort_amz_portfolio_name
Sort results by
amz_portfolio_name
.sort_bid_modifier_increase
Sort results by
bid_modifier_increase
.sort_campaign_eby_marketplace_id
Sort results by
campaign_eby_marketplace_id
.sort_campaign_id
Sort results by
campaign_id
.sort_campaign_name
Sort results by
campaign_name
.sort_campaign_optimization_support
Sort results by
campaign_optimization_support
.sort_campaign_optimization_type
Sort results by
campaign_optimization_type
.sort_campaign_optimize
Sort results by
campaign_optimize
.sort_campaign_status
Sort results by
campaign_status
.sort_campaign_type
Sort results by
campaign_type
.sort_date
Sort results by
date
.sort_performance_group_enabled
Sort results by
performance_group_enabled
.sort_performance_group_goal_types
Sort results by
performance_group_goal_types
.sort_performance_group_id
Sort results by
performance_group_id
.sort_performance_group_name
Sort results by
performance_group_name
.sort_performance_group_optimization_type
Sort results by
performance_group_optimization_type
.sort_timestamp
Sort results by
timestamp
.offset
Integer
Start index for result list.
Default: 0
Min value: 0
limit
Integer
Maximum number of results to return. The maximum allowed value depends on the response media type (10000 for JSON and 100000 for tabular formats like CSV).
Default: 10
Min value: 1
Response Data (object list, json or csv or xlsx)
Name
Type
Description
timestamp
date
message_title
searchable
String
message_details
searchable
String
bid_modifier_old
Integer
bid_modifier_new
Integer
dimension_name
searchable
String
dimension_type
bid_modifier_increase
Boolean
True if the bid adjustment has increased
campaign_id
searchable
campaign_name
searchable
String
campaign_type
campaign_eby_marketplace_id
String
campaign_status
campaign_optimize
Boolean
campaign_optimization_type
campaign_optimization_support
campaign_labels
searchable
[ String ]
performance_group_id
searchable
Integer
Unique ID of the performance group
performance_group_name
searchable
String
Unique name of the performance group.
performance_group_enabled
Boolean
performance_group_optimization_type
Optimization type of the performance group.
Only campaigns of the same optimization type can be added to a given performance group.
performance_group_goals
[ Object ]
List of performance group goals
⤷
goal_type
Type of the performance group goal
⤷
goal_value
Float
Value of the performance group goal.
goal_value
should beNULL
ifgoal_type
isPROFIT-MAXIMIZATION
.goal_value
should be a ratio (> 0) ifgoal_type
isROAS
,CRR
andROI
,goal_value
should be specified in micros and be larger than 10000 ifgoal_type
isCOST-PER-DAY
,COST-PER-CONVERSION
andCOST-PER-CLICK
.⤷
goal_currency
Currency of the performance group goal.
Currency is required for
COST-PER-DAY
,COST-PER-CONVERSION
andCOST-PER-CLICK
goals.⤷
goal_micros
Value for
COST-PER-DAY
,COST-PER-CONVERSION
andCOST-PER-CLICK
goals.Same as
goal_value
, but in a properly typed field for easier client-side handling and improved representation in tabular response data like CSV.⤷
goal_ratio
Float
Value for
ROAS
,CRR
andROI
goals.Same as
goal_value
, but in a properly typed field for easier client-side handling and improved representation in tabular response data like CSV.performance_group_goal_types
List of performance group goal types
amz_portfolio_id
searchable
amz_portfolio_name
searchable
String
adgroup_id
searchable
adgroup_name
searchable
String
adgroup_status
adgroup_labels
searchable
[ String ]
Example
GET /v3/accounts/3420379091/log/bid-adjustments?search_adgroup_id=dolor+tucan&search_term=vehicula+ipsum&search_message_details=amet+vehicula HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl -i -X GET 'https://api.adspert.net/v3/accounts/3420379091/log/bid-adjustments?search_adgroup_id=dolor+tucan&search_term=vehicula+ipsum&search_message_details=amet+vehicula' -H "Accept: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
http 'https://api.adspert.net/v3/accounts/3420379091/log/bid-adjustments?search_adgroup_id=dolor+tucan&search_term=vehicula+ipsum&search_message_details=amet+vehicula' Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.get('https://api.adspert.net/v3/accounts/3420379091/log/bid-adjustments?search_adgroup_id=dolor+tucan&search_term=vehicula+ipsum&search_message_details=amet+vehicula', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": [ { "timestamp": "2018-10-21T16:45:23+02:00", "date": "2018-10-21T16:45:23+02:00", "message_title": "pariatur lorem", "message_details": "tucan sit", "bid_modifier_old": 7294321160, "bid_modifier_new": 7871912012, "dimension_name": "lorem tucan", "dimension_type": "AGE", "bid_modifier_increase": true, "campaign_id": "5555", "campaign_name": "sit ipsum", "campaign_type": "AMAZON-SPONSORED-BRANDS", "campaign_eby_marketplace_id": "amet pariatur", "campaign_status": "ACTIVE", "campaign_optimize": true, "campaign_optimization_type": "CLICK", "campaign_optimization_support": "SUPPORTED", "campaign_labels": [ "ipsum dolor" ], "performance_group_id": "1245", "performance_group_name": "dolor sit", "performance_group_enabled": true, "performance_group_optimization_type": "CLICK", "performance_group_goals": [ { "goal_type": "CLICKS-PER-DAY", "goal_value": 1.41, "goal_currency": "AED", "goal_micros": 6300000, "goal_ratio": 8.77 } ], "performance_group_goal_types": [ "CLICKS-PER-DAY" ], "amz_portfolio_id": "9999", "amz_portfolio_name": "elit adlora", "adgroup_id": "777", "adgroup_name": "tucan lorem", "adgroup_status": "ACTIVE", "adgroup_labels": [ "elit ipsum" ] } ], "meta": { "pagination": { "offset": 0, "limit": 10, "total": 74, "sort": { "timestamp": 1 } } } }
OptimizationStatsResource
GET
- GET /v3/preview/customers/(customer_id: int)/optimization-stats
-
Query Params
Name
Type
Description
include
Fields to include in response data.
exclude
Fields to exclude in response data.
filter_adspert_account_id
[ Integer ]
Only return results matching given
adspert_account_id
values.filter_account_id
[ String ]
Only return results matching given
account_id
values.filter_account_name
[ String ]
Only return results matching given
account_name
values.filter_account_platform
[ AdPlatform ]
Only return results matching given
account_platform
values.filter_account_optimize
[ Boolean ]
Only return results matching given
account_optimize
values.filter_account_tags_user
[ String ]
Only return results matching given
account_tags_user
values.filter_account_is_demo
[ Boolean ]
Only return results matching given
account_is_demo
values.filter_performance_group_id
[ Integer ]
Only return results matching given
performance_group_id
values.filter_performance_group_name
[ String ]
Only return results matching given
performance_group_name
values.filter_performance_group_enabled
[ Boolean ]
Only return results matching given
performance_group_enabled
values.filter_performance_group_optimization_type
[ OptimizationType ]
Only return results matching given
performance_group_optimization_type
values.filter_performance_group_goal_types
Only return results matching given
performance_group_goal_types
values.filter_adspert_portfolio_id
[ CompositeID ]
Only return results matching given
adspert_portfolio_id
values.filter_amz_portfolio_name
[ String ]
Only return results matching given
amz_portfolio_name
values.filter_adspert_campaign_id
[ CompositeID ]
Only return results matching given
adspert_campaign_id
values.filter_campaign_name
[ String ]
Only return results matching given
campaign_name
values.filter_campaign_type
[ CampaignType ]
Only return results matching given
campaign_type
values.filter_campaign_eby_marketplace_id
[ String ]
Only return results matching given
eby_marketplace_id
values.filter_campaign_status
[ CampaignStatus ]
Only return results matching given
campaign_status
values.filter_campaign_optimize
[ Boolean ]
Only return results matching given
campaign_optimize
values.filter_campaign_optimization_type
[ OptimizationType ]
Only return results matching given
campaign_optimization_type
values.filter_campaign_labels
[ String ]
Only return results matching given
campaign_labels
values.filter_date_ge
required
Aggregate data where
date
is on or after this date.filter_date_le
required
Aggregate data where
date
is on or before this date.search_account_id
String
Only return results where
account_id
matches the given string.search_account_name
String
Only return results where
account_name
matches the given string.search_account_tags_user
String
Only return results where
account_tags_user
matches the given string.search_performance_group_name
String
Only return results where
performance_group_name
matches the given string.search_portfolio_name
String
Only return results where
portfolio_name
matches the given string.search_campaign_name
String
Only return results where
campaign_name
matches the given string.Response Data (single object, json or csv or xlsx)
Name
Type
Description
optimized_campaigns
Integer
Number of optimized campaigns.
added_biddable_criteria
Integer
Number of biddable criteria, added by Adspert.
added_negative_criteria
Integer
Number of negative criteria, added by Adspert.
added_criteria_clicks
Integer
Number of clicks generated by criteria added by Adspert.
added_criteria_conversions
Integer
Number of conversions generated by criteria added by Adspert.
added_criteria_conversions_adjusted
Integer
Number of conversions generated by criteria added by Adspert (adjusted for conversion delay).
submitted_bids
Integer
Number of bids submitted by Adspert.
submitted_bid_modifiers
Integer
Number of bid modifiers submitted by Adspert.
Example
GET /v3/preview/customers/7027038674/optimization-stats?filter_account_is_demo=True&exclude=elit.amet&filter_date_le=2018-10-21 HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl -i -X GET 'https://api.adspert.net/v3/preview/customers/7027038674/optimization-stats?filter_account_is_demo=True&exclude=elit.amet&filter_date_le=2018-10-21' -H "Accept: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
http 'https://api.adspert.net/v3/preview/customers/7027038674/optimization-stats?filter_account_is_demo=True&exclude=elit.amet&filter_date_le=2018-10-21' Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.get('https://api.adspert.net/v3/preview/customers/7027038674/optimization-stats?filter_account_is_demo=True&exclude=elit.amet&filter_date_le=2018-10-21', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": { "optimized_campaigns": 7513044662, "added_biddable_criteria": 7634984109, "added_negative_criteria": 4778055772, "added_criteria_clicks": 7092403479, "added_criteria_conversions": 8103854293, "added_criteria_conversions_adjusted": 6617614278, "submitted_bids": 6904863387, "submitted_bid_modifiers": 6137890988 }, "meta": {} }
Miscellaneous
Endpoints which do not fit into any other category.
Retail Accounts
RetailAccountsCollection
GET
- GET /v3/customers/(customer_id: int)/retail-accounts
-
Query Params
Name
Type
Description
include
Fields to include in response data.
exclude
Fields to exclude in response data.
filter_access_status
Only return results matching given
access_status
values.filter_retail_account_id
[ String ]
Only return results matching given
retail_account_id
values.filter_retail_account_platform
[ AdPlatform ]
Only return results matching given
retail_account_platform
values.search_fields
Fields that should be searched using the
search_term
.search_term
String
Search term used to search the
search_fields
.search_accounts
String
Only return results where
accounts
matches the given string.search_retail_account_name
String
Only return results where
retail_account_name
matches the given string.sort_access_status
Sort results by
access_status
.sort_retail_account_id
Sort results by
retail_account_id
.sort_retail_account_name
Sort results by
retail_account_name
.sort_retail_account_platform
Sort results by
retail_account_platform
.offset
Integer
Start index for result list.
Default: 0
Min value: 0
limit
Integer
Maximum number of results to return. The maximum allowed value depends on the response media type (10000 for JSON and 100000 for tabular formats like CSV).
Default: 10
Min value: 1
Response Data (object list, json or csv or xlsx)
Name
Type
Description
retail_account_id
String
Retail account id.
retail_account_name
searchable
String
Retail account name.
retail_account_platform
The account’s advertising platform.
access_status
Indicates access to retail account platform.
accounts
searchable
[ Object ]
⤷
account_id
String
⤷
account_name
String
Example
GET /v3/customers/7027038674/retail-accounts?include=ipsum.amet&sort_retail_account_name=5&sort_access_status=3 HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl -i -X GET 'https://api.adspert.net/v3/customers/7027038674/retail-accounts?include=ipsum.amet&sort_retail_account_name=5&sort_access_status=3' -H "Accept: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
http 'https://api.adspert.net/v3/customers/7027038674/retail-accounts?include=ipsum.amet&sort_retail_account_name=5&sort_access_status=3' Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.get('https://api.adspert.net/v3/customers/7027038674/retail-accounts?include=ipsum.amet&sort_retail_account_name=5&sort_access_status=3', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": [ { "retail_account_id": "vehicula lorem", "retail_account_name": "pariatur sit", "retail_account_platform": "AMAZON", "access_status": "NO-ACCESS", "accounts": [ { "account_id": "amet lorem", "account_name": "vehicula ipsum" } ] } ], "meta": { "pagination": { "offset": 0, "limit": 10, "total": 74, "sort": { "retail_account_id": 1 } } } }
Currency Rates
CurrencyRateCollection
GET
- GET /v3/currency-rates
Retrieve a list of currency rates.
Query Params
Name
Type
Description
include
Fields to include in response data.
exclude
Fields to exclude in response data.
filter_currency
[ String ]
Only return results matching given
currency
values.search_fields
Fields that should be searched using the
search_term
.search_term
String
Search term used to search the
search_fields
.sort_currency
Sort results by
currency
.sort_rate_from_eur
Sort results by
rate_from_eur
.offset
Integer
Start index for result list.
Default: 0
Min value: 0
limit
Integer
Maximum number of results to return. The maximum allowed value depends on the response media type (10000 for JSON and 100000 for tabular formats like CSV).
Default: 10
Min value: 1
Response Data (object list, json or csv or xlsx)
Name
Type
Description
currency
String
ISO 4217 currency code
rate_from_eur
Float
Exchange rate from EUR to
currency
Example
GET /v3/currency-rates?sort_rate_from_eur=1&sort_currency=7&search_term=vehicula+ipsum HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl -i -X GET 'https://api.adspert.net/v3/currency-rates?sort_rate_from_eur=1&sort_currency=7&search_term=vehicula+ipsum' -H "Accept: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
http 'https://api.adspert.net/v3/currency-rates?sort_rate_from_eur=1&sort_currency=7&search_term=vehicula+ipsum' Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
requests.get('https://api.adspert.net/v3/currency-rates?sort_rate_from_eur=1&sort_currency=7&search_term=vehicula+ipsum', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": [ { "currency": "USD", "rate_from_eur": "1.1883" } ], "meta": { "pagination": { "offset": 0, "limit": 10, "total": 74, "sort": { "currency": 1 } } } }
API Status Check
StatusResource
GET
- GET /v3/status
A simple status check to check API availability.
Example
GET /v3/status HTTP/1.1 Host: api.adspert.net Accept: application/json
curl -i -X GET https://api.adspert.net/v3/status -H "Accept: application/json"
http https://api.adspert.net/v3/status Accept:application/json
requests.get('https://api.adspert.net/v3/status', headers={'Accept': 'application/json'})
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": null, "meta": {} }
WorkerStatusResource
GET
- GET /v3/status/worker
A simple status check to test API worker responsiveness.
Example
GET /v3/status/worker HTTP/1.1 Host: api.adspert.net Accept: application/json
curl -i -X GET https://api.adspert.net/v3/status/worker -H "Accept: application/json"
http https://api.adspert.net/v3/status/worker Accept:application/json
requests.get('https://api.adspert.net/v3/status/worker', headers={'Accept': 'application/json'})
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": null, "meta": {} }
Web hook endpoints for external services
StripeWebHookResource
POST
- POST /v3/hooks/stripe
Example
POST /v3/hooks/stripe HTTP/1.1 Host: api.adspert.net Accept: application/json
curl -i -X POST https://api.adspert.net/v3/hooks/stripe -H "Accept: application/json"
http POST https://api.adspert.net/v3/hooks/stripe Accept:application/json
requests.post('https://api.adspert.net/v3/hooks/stripe', headers={'Accept': 'application/json'})
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": null, "meta": {} }
EbayWebHookAccountDelete
GET
- GET /v3/hooks/ebay/delete-notifications
Example
GET /v3/hooks/ebay/delete-notifications HTTP/1.1 Host: api.adspert.net Accept: application/json
curl -i -X GET https://api.adspert.net/v3/hooks/ebay/delete-notifications -H "Accept: application/json"
http https://api.adspert.net/v3/hooks/ebay/delete-notifications Accept:application/json
requests.get('https://api.adspert.net/v3/hooks/ebay/delete-notifications', headers={'Accept': 'application/json'})
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": null, "meta": {} }
POST
- POST /v3/hooks/ebay/delete-notifications
Example
POST /v3/hooks/ebay/delete-notifications HTTP/1.1 Host: api.adspert.net Accept: application/json
curl -i -X POST https://api.adspert.net/v3/hooks/ebay/delete-notifications -H "Accept: application/json"
http POST https://api.adspert.net/v3/hooks/ebay/delete-notifications Accept:application/json
requests.post('https://api.adspert.net/v3/hooks/ebay/delete-notifications', headers={'Accept': 'application/json'})
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": null, "meta": {} }
EbayWebHookBudgetStatus
GET
- GET /v3/hooks/ebay/budget-status-notifications
Example
GET /v3/hooks/ebay/budget-status-notifications HTTP/1.1 Host: api.adspert.net Accept: application/json
curl -i -X GET https://api.adspert.net/v3/hooks/ebay/budget-status-notifications -H "Accept: application/json"
http https://api.adspert.net/v3/hooks/ebay/budget-status-notifications Accept:application/json
requests.get('https://api.adspert.net/v3/hooks/ebay/budget-status-notifications', headers={'Accept': 'application/json'})
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": null, "meta": {} }
POST
- POST /v3/hooks/ebay/budget-status-notifications
Example
POST /v3/hooks/ebay/budget-status-notifications HTTP/1.1 Host: api.adspert.net Accept: application/json
curl -i -X POST https://api.adspert.net/v3/hooks/ebay/budget-status-notifications -H "Accept: application/json"
http POST https://api.adspert.net/v3/hooks/ebay/budget-status-notifications Accept:application/json
requests.post('https://api.adspert.net/v3/hooks/ebay/budget-status-notifications', headers={'Accept': 'application/json'})
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": null, "meta": {} }
MerchantSpringHookResource
POST
- POST /v3/hooks/merchantspring
Example
POST /v3/hooks/merchantspring HTTP/1.1 Host: api.adspert.net Accept: application/json
curl -i -X POST https://api.adspert.net/v3/hooks/merchantspring -H "Accept: application/json"
http POST https://api.adspert.net/v3/hooks/merchantspring Accept:application/json
requests.post('https://api.adspert.net/v3/hooks/merchantspring', headers={'Accept': 'application/json'})
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": null, "meta": {} }