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
tokenString
Session token to be used as bearer token for API interaction.
Example
http
POST /v3/auth/token HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Basic U2FNcExFMEtlWTpzQW1QbGUwU2VDckV0NDMyMQ==
curl
curl -i -X POST https://api.adspert.net/v3/auth/token -H "Accept: application/json" --user SaMpLE0KeY:sAmPle0SeCrEt4321
httpie
http POST https://api.adspert.net/v3/auth/token Accept:application/json -a SaMpLE0KeY:sAmPle0SeCrEt4321
python-requests
requests.post('https://api.adspert.net/v3/auth/token', headers={'Accept': 'application/json'}, auth=('SaMpLE0KeY', 'sAmPle0SeCrEt4321'))
response
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
http
DELETE /v3/auth/token HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl
curl -i -X DELETE https://api.adspert.net/v3/auth/token -H "Accept: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
httpie
http DELETE https://api.adspert.net/v3/auth/token Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
python-requests
requests.delete('https://api.adspert.net/v3/auth/token', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
response
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
includeFields to include in response data.
excludeFields to exclude in response data.
filter_active[ Boolean ]
Only return results matching given
activevalues.filter_created_at_geOnly return results where
created_atis equal or greater than this value.filter_created_at_leOnly return results where
created_atis equal or lower than this value.filter_last_used_at_geOnly return results where
last_used_atis equal or greater than this value.filter_last_used_at_leOnly return results where
last_used_atis equal or lower than this value.search_fieldsFields that should be searched using the
search_term.search_termString
Search term used to search the
search_fields.search_key_idString
Only return results where
key_idmatches the given string.search_nameString
Only return results where
namematches the given string.sort_activeSort results by
active.sort_created_atSort results by
created_at.sort_key_idSort results by
key_id.sort_last_used_atSort results by
last_used_at.sort_nameSort results by
name.offsetInteger
Start index for result list.
Default: 0
Min value: 0
limitInteger
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
namesearchableString
key_idsearchableString
activeBoolean
created_atlast_used_atExample
http
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
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..."
httpie
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..."
python-requests
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...'})
response
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 x-www-form-urlencoded or csv)
Name
Type
Description
namerequiredString
Response Data (single object, json or csv or xlsx)
Name
Type
Description
nameString
key_idString
activeBoolean
secretString
created_atlast_used_atExample
http
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
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"}'
httpie
echo '{ "name": "tucan lorem" }' | http POST https://api.adspert.net/v3/auth/keys Accept:application/json Content-Type:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
python-requests
requests.post('https://api.adspert.net/v3/auth/keys', headers={'Accept': 'application/json', 'Content-Type': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'}, json={'name': 'tucan lorem'})
response
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 x-www-form-urlencoded or csv)
Name
Type
Description
nameString
key_idrequiredString
activeBoolean
Response Data (single object, json or csv or xlsx)
Name
Type
Description
unchanged[ Object ]
List of objects which had no effective change.
⤷
nameString
See request data description.
⤷
key_idString
See request data description.
⤷
activeBoolean
See request data description.
unknown[ Object ]
List of objects which could not be found.
⤷
nameString
See request data description.
⤷
key_idString
See request data description.
⤷
activeBoolean
See request data description.
updated[ Object ]
List of objects which have been updated.
⤷
nameString
See request data description.
⤷
key_idString
See request data description.
⤷
activeBoolean
See request data description.
Example
http
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
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}]'
httpie
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..."
python-requests
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}])
response
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 x-www-form-urlencoded or csv)
Name
Type
Description
key_idrequiredString
Response Data (single object, json or csv or xlsx)
Name
Type
Description
deleted[ Object ]
List of objects which have been deleted.
⤷
nameString
See request data description.
⤷
key_idString
See request data description.
⤷
activeBoolean
See request data description.
unknown[ Object ]
List of objects which could not be found.
⤷
nameString
See request data description.
⤷
key_idString
See request data description.
⤷
activeBoolean
See request data description.
Example
http
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
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"}]'
httpie
echo '[ { "key_id": "vehicula lorem" } ]' | http DELETE https://api.adspert.net/v3/auth/keys Accept:application/json Content-Type:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
python-requests
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'}])
response
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
http
POST /v3/auth/invalidate-tokens HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl
curl -i -X POST https://api.adspert.net/v3/auth/invalidate-tokens -H "Accept: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
httpie
http POST https://api.adspert.net/v3/auth/invalidate-tokens Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
python-requests
requests.post('https://api.adspert.net/v3/auth/invalidate-tokens', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
response
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
includeFields to include in response data.
excludeFields to exclude in response data.
filter_access[ UserRole ]
Only return results matching given
accessvalues.filter_account_move_in_progress[ Boolean ]
Only return results matching given
account_move_in_progressvalues.filter_allow_start_optimization[ Boolean ]
Only return results matching given
allow_start_optimizationvalues.filter_archived[ Boolean ]
Only return results matching given
archivedvalues.filter_canceled[ Boolean ]
Only return results matching given
canceledvalues.filter_canceled_due_geOnly return results where
canceled_dueis equal or greater than this value.filter_canceled_due_leOnly return results where
canceled_dueis equal or lower than this value.filter_country_code[ String ]
Only return results matching given
country_codevalues.Min access level: customer-admin
filter_created_at_geOnly return results where
created_atis equal or greater than this value.filter_created_at_leOnly return results where
created_atis equal or lower than this value.filter_customer_id[ Integer ]
Only return results matching given
customer_idvalues.filter_is_demo[ Boolean ]
Only return results matching given
is_demovalues.filter_main_customer_id[ Integer ]
Only return results matching given
main_customer_idvalues.filter_notifications[ Boolean ]
Only return results matching given
notificationsvalues.filter_segment[ CustomerSegment ]
Only return results matching given
segmentvalues.filter_trial[ Boolean ]
Only return results matching given
trialvalues.filter_trial_end_geOnly return results where
trial_endis equal or greater than this value.filter_trial_end_leOnly return results where
trial_endis equal or lower than this value.filter_trial_start_geOnly return results where
trial_startis equal or greater than this value.filter_trial_start_leOnly return results where
trial_startis equal or lower than this value.filter_type[ CustomerType ]
Only return results matching given
typevalues.search_fieldsFields that should be searched using the
search_term.search_termString
Search term used to search the
search_fields.search_customer_idString
Only return results where
customer_idmatches the given string.search_emailString
Only return results where
emailmatches the given string.Min access level: customer-admin
search_main_customer_idString
Only return results where
main_customer_idmatches the given string.search_nameString
Only return results where
namematches the given string.search_tags_systemString
Only return results where
tags_systemmatches the given string.search_tags_userString
Only return results where
tags_usermatches the given string.sort_accessSort results by
access.sort_agency_admins_countSort results by
agency_admins_count.Min access level: customer-admin
sort_agency_clients_countSort results by
agency_clients_count.Min access level: customer-admin
sort_billing_subsidiaries_countSort results by
billing_subsidiaries_count.Min access level: customer-admin
sort_canceledSort results by
canceled.sort_canceled_dueSort results by
canceled_due.sort_country_codeSort results by
country_code.Min access level: customer-admin
sort_created_atSort results by
created_at.sort_customer_idSort results by
customer_id.sort_emailSort results by
email.Min access level: customer-admin
sort_main_customer_idSort results by
main_customer_id.sort_nameSort results by
name.sort_notificationsSort results by
notifications.sort_trialSort results by
trial.sort_trial_endSort results by
trial_end.sort_trial_startSort results by
trial_start.sort_typeSort results by
type.sort_unread_notifications_countSort results by
unread_notifications_count.offsetInteger
Start index for result list.
Default: 0
Min value: 0
limitInteger
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_idsearchableInteger
ID of the customer that this account belongs to.
typemain_customer_idsearchableInteger
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_nameString
If the customer type is not
MAIN, then this refers to the corresponding main customer.Min access level: customer-admin
billing_subsidiaries_countInteger
Number of billing subsidiary sub customers.
Min access level: customer-admin
agency_clients_countInteger
Number of agency client sub customers.
Min access level: customer-admin
agency_admins_countInteger
Number of users with agency admin access on the customer.
Min access level: customer-admin
account_move_in_progressBoolean
If accounts of this customer are currently moved to another customer.
namesearchableString
Name of the customer’s business (billing addressee).
emailsearchablePrimary e-mail contact for billing purposes.
Min access level: customer-admin
address_1String
Billing address: line 1.
Min access level: customer-admin
address_2String
Billing address: line 2.
Min access level: customer-admin
zipString
Billing address: postal code.
Min access level: customer-admin
cityString
Billing address: city.
Min access level: customer-admin
country_codeString
Billing address: two letter country code (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2).
Min access level: customer-admin
invoice_languageMin access level: customer-admin
order_numberString
Order number chosen by customer to appear on invoices.
Min access level: customer-admin
vat_idString
VAT-ID of the customer’s business.
Min access level: customer-admin
vat_id_validBoolean
VAT-ID validation status.
nullmeans the ID is not yet validated.Validation happens asynchronously, this is why no prompt feedback during a
PATCHrequest can be given.Min access level: customer-admin
trial_startStart 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_endLast 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.
trialBoolean
If the customer is currently within a trial.
canceled_dueCustomer 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/.../subscriptionto control cancelation.canceledBoolean
If the customer is in a canceled state (canceled_due is set and in the past, or the customer is archived).
plan_typeType of the plan the customer is subscribed to. Is
nullin case of no subscription or if the subscription does not match a plan.subscription_startsubscription_endsubscription_statusStatus of the customer’s latest subscription, if there is one.
subscription_currencyCurrency used for the upcoming invoice (
nullif the customer does not have a subscription).segmentThe current segment this customer is assigned to. For sub customers this is the segment of their main customer.
allow_start_optimizationBoolean
If optimization of ad accounts for this customer may be started.
metric_currencyDefault currency for displaying cross-account performance metrics (when no user-specific currency setting exists).
archivedBoolean
Flag indicating if this customer is in archived state. An archived customer cannot be modified.
created_atDate of the customer creation.
is_demoBoolean
Is this a demo customer?
tags_usersearchable[ String ]
List of user tags set on this customer.
tags_systemsearchable[ String ]
List of system tags set on this customer.
phoneString
Min access level: customer-admin
industryString
Company Industry
Min access level: customer-admin
monthly_sales_potentialAmazon total sales, only for Chinese customers.
Min access level: customer-admin
accessThe authenticated user’s effective role in context of the customer.
notificationsBoolean
If the authenticated user can see notifications for this customer.
unread_notifications_countInteger
Number of unread notifications on the customer for the authenticated user.
Example
http
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
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..."
httpie
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..."
python-requests
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...'})
response
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, "trial_start": "2018-10-21", "trial_end": "2018-10-21", "trial": true, "canceled_due": "2018-10-21", "canceled": true, "plan_type": "ESSENTIAL", "subscription_start": "2018-10-21", "subscription_end": "2018-10-21", "subscription_status": "ACTIVE", "subscription_currency": "EUR", "segment": "ENTERPRISE", "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" ], "phone": "sit dolor", "industry": "elit vehicula", "monthly_sales_potential": 19990000, "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
includeFields to include in response data.
excludeFields to exclude in response data.
Response Data (single object, json or csv or xlsx)
Name
Type
Description
customer_idInteger
ID of the customer that this account belongs to.
typemain_customer_idInteger
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_nameString
If the customer type is not
MAIN, then this refers to the corresponding main customer.Min access level: customer-admin
billing_subsidiaries_countInteger
Number of billing subsidiary sub customers.
Min access level: customer-admin
agency_clients_countInteger
Number of agency client sub customers.
Min access level: customer-admin
agency_admins_countInteger
Number of users with agency admin access on the customer.
Min access level: customer-admin
account_move_in_progressBoolean
If accounts of this customer are currently moved to another customer.
nameString
Name of the customer’s business (billing addressee).
emailPrimary e-mail contact for billing purposes.
Min access level: customer-admin
address_1String
Billing address: line 1.
Min access level: customer-admin
address_2String
Billing address: line 2.
Min access level: customer-admin
zipString
Billing address: postal code.
Min access level: customer-admin
cityString
Billing address: city.
Min access level: customer-admin
country_codeString
Billing address: two letter country code (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2).
Min access level: customer-admin
invoice_languageMin access level: customer-admin
order_numberString
Order number chosen by customer to appear on invoices.
Min access level: customer-admin
vat_idString
VAT-ID of the customer’s business.
Min access level: customer-admin
vat_id_validBoolean
VAT-ID validation status.
nullmeans the ID is not yet validated.Validation happens asynchronously, this is why no prompt feedback during a
PATCHrequest can be given.Min access level: customer-admin
trial_startStart 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_endLast 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.
trialBoolean
If the customer is currently within a trial.
canceled_dueCustomer 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/.../subscriptionto control cancelation.canceledBoolean
If the customer is in a canceled state (canceled_due is set and in the past, or the customer is archived).
plan_typeType of the plan the customer is subscribed to. Is
nullin case of no subscription or if the subscription does not match a plan.subscription_startsubscription_endsubscription_statusStatus of the customer’s latest subscription, if there is one.
subscription_currencyCurrency used for the upcoming invoice (
nullif the customer does not have a subscription).segmentThe current segment this customer is assigned to. For sub customers this is the segment of their main customer.
allow_start_optimizationBoolean
If optimization of ad accounts for this customer may be started.
metric_currencyDefault currency for displaying cross-account performance metrics (when no user-specific currency setting exists).
archivedBoolean
Flag indicating if this customer is in archived state. An archived customer cannot be modified.
created_atDate of the customer creation.
features[ String ]
Features enabled for the customer.
is_demoBoolean
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.
phoneString
Min access level: customer-admin
industryString
Company Industry
Min access level: customer-admin
monthly_sales_potentialAmazon total sales, only for Chinese customers.
Min access level: customer-admin
accessThe authenticated user’s effective role in context of the customer.
notificationsBoolean
If the authenticated user can see notifications for this customer.
unread_notifications_countInteger
Number of unread notifications on the customer for the authenticated user.
Example
http
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
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..."
httpie
http 'https://api.adspert.net/v3/customers/7027038674?include=ipsum.amet' Accept:application/json X-Adspert-Access-Level:"CUSTOMER-ADMIN" Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
python-requests
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...'})
response
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, "trial_start": "2018-10-21", "trial_end": "2018-10-21", "trial": true, "canceled_due": "2018-10-21", "canceled": true, "plan_type": "ESSENTIAL", "subscription_start": "2018-10-21", "subscription_end": "2018-10-21", "subscription_status": "ACTIVE", "subscription_currency": "EUR", "segment": "ENTERPRISE", "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" ], "phone": "sit dolor", "industry": "elit vehicula", "monthly_sales_potential": 19990000, "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 x-www-form-urlencoded or csv)
Name
Type
Description
nameString
Name of the customer’s business (billing addressee).
Min length: 1
emailPrimary e-mail contact for billing purposes.
Min length: 1
address_1String
Billing address: line 1.
Min length: 1
address_2String
Billing address: line 2.
zipString
Billing address: postal code.
Min length: 1
cityString
Billing address: city.
Min length: 1
country_codeString
Billing address: two letter country code (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2).
Min length: 2
Max length: 2
invoice_languageorder_numberString
Order number chosen by customer to appear on invoices.
vat_idString
VAT-ID of the customer’s business.
metric_currencyDefault currency for displaying cross-account performance metrics (when no user-specific currency setting exists).
phoneString
industryString
Company Industry
monthly_sales_potentialAmazon total sales, only for Chinese customers.
Min value: 1000
Example
http
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", "phone": "sit dolor", "industry": "elit vehicula", "monthly_sales_potential": 19990000 }
curl
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", "industry": "elit vehicula", "invoice_language": "DE", "metric_currency": "AED", "monthly_sales_potential": 19990000, "name": "tucan lorem", "order_number": "amet sit", "phone": "sit dolor", "vat_id": "amet elit", "zip": "vehicula ipsum"}'
httpie
echo '{ "address_1": "adlora dolor", "address_2": "tucan adlora", "city": "vehicula amet", "country_code": "nl", "email": "ipsum@example.com", "industry": "elit vehicula", "invoice_language": "DE", "metric_currency": "AED", "monthly_sales_potential": 19990000, "name": "tucan lorem", "order_number": "amet sit", "phone": "sit dolor", "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..."
python-requests
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', 'industry': 'elit vehicula', 'invoice_language': 'DE', 'metric_currency': 'AED', 'monthly_sales_potential': 19990000, 'name': 'tucan lorem', 'order_number': 'amet sit', 'phone': 'sit dolor', 'vat_id': 'amet elit', 'zip': 'vehicula ipsum'})
response
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
includeFields to include in response data.
excludeFields to exclude in response data.
filter_lang[ UserLanguage ]
Only return results matching given
langvalues.filter_notifications[ Boolean ]
Only return results matching given
notificationsvalues.filter_roleOnly return results matching given
rolevalues.filter_user_id[ Integer ]
Only return results matching given
user_idvalues.search_fieldsFields that should be searched using the
search_term.search_termString
Search term used to search the
search_fields.search_emailString
Only return results where
emailmatches the given string.search_first_nameString
Only return results where
first_namematches the given string.search_last_nameString
Only return results where
last_namematches the given string.sort_emailSort results by
email.sort_first_nameSort results by
first_name.sort_langSort results by
lang.sort_last_nameSort results by
last_name.sort_notificationsSort results by
notifications.sort_roleSort results by
role.sort_user_idSort results by
user_id.offsetInteger
Start index for result list.
Default: 0
Min value: 0
limitInteger
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_idInteger
ID of the user who did the change.
emailsearchableString
E-mail of the user who did the change. Is
nullif change was made by Adspert.first_namesearchableString
last_namesearchableString
langA user’s preferred language.
roleThe role assigned to a user on a customer.
notificationsBoolean
If the user is allowed to see notifications for this customer.
Example
http
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
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..."
httpie
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..."
python-requests
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...'})
response
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 x-www-form-urlencoded or csv)
Name
Type
Description
emailrequiredString
E-mail of the user who did the change. Is
nullif change was made by Adspert.first_nameString
last_nameString
langA user’s preferred language.
Default: EN
rolerequiredThe role assigned to a user on a customer.
notificationsrequiredBoolean
If the user is allowed to see notifications for this customer.
Response Data (single object, json or csv or xlsx)
Name
Type
Description
user_idInteger
ID of the user who did the change.
emailString
E-mail of the user who did the change. Is
nullif change was made by Adspert.first_nameString
last_nameString
langA user’s preferred language.
roleThe role assigned to a user on a customer.
notificationsBoolean
If the user is allowed to see notifications for this customer.
Example
http
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
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"}'
httpie
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..."
python-requests
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'})
response
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 x-www-form-urlencoded or csv)
Name
Type
Description
user_idrequiredInteger
ID of the user who did the change.
rolerequiredThe role assigned to a user on a customer.
notificationsrequiredBoolean
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_idInteger
See request data description.
⤷
emailString
See request data description.
⤷
first_nameString
See request data description.
⤷
last_nameString
See request data description.
⤷
langSee request data description.
⤷
roleSee request data description.
⤷
notificationsBoolean
See request data description.
unchanged[ Object ]
List of objects which had no effective change.
⤷
user_idInteger
See request data description.
⤷
emailString
See request data description.
⤷
first_nameString
See request data description.
⤷
last_nameString
See request data description.
⤷
langSee request data description.
⤷
roleSee request data description.
⤷
notificationsBoolean
See request data description.
updated[ Object ]
List of objects which have been updated.
⤷
user_idInteger
See request data description.
⤷
emailString
See request data description.
⤷
first_nameString
See request data description.
⤷
last_nameString
See request data description.
⤷
langSee request data description.
⤷
roleSee request data description.
⤷
notificationsBoolean
See request data description.
Example
http
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
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}]'
httpie
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..."
python-requests
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}])
response
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 x-www-form-urlencoded or csv)
Name
Type
Description
user_idrequiredInteger
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_idInteger
See request data description.
⤷
emailString
See request data description.
⤷
first_nameString
See request data description.
⤷
last_nameString
See request data description.
⤷
langSee request data description.
⤷
roleSee request data description.
⤷
notificationsBoolean
See request data description.
unknown[ Object ]
List of objects which could not be found.
⤷
user_idInteger
See request data description.
⤷
emailString
See request data description.
⤷
first_nameString
See request data description.
⤷
last_nameString
See request data description.
⤷
langSee request data description.
⤷
roleSee request data description.
⤷
notificationsBoolean
See request data description.
Example
http
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
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}]'
httpie
echo '[ { "user_id": 12345 } ]' | http DELETE https://api.adspert.net/v3/customers/7027038674/access Accept:application/json Content-Type:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
python-requests
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}])
response
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
includeFields to include in response data.
excludeFields to exclude in response data.
filter_customer_id[ Integer ]
Only return results matching given
customer_idvalues.filter_scope[ CustomerTagScope ]
Only return results matching given
scopevalues.search_fieldsFields that should be searched using the
search_term.search_termString
Search term used to search the
search_fields.search_customer_idString
Only return results where
customer_idmatches the given string.search_nameString
Only return results where
namematches the given string.sort_customer_idSort results by
customer_id.sort_nameSort results by
name.sort_scopeSort results by
scope.offsetInteger
Start index for result list.
Default: 0
Min value: 0
limitInteger
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_idsearchableInteger
ID of the tagged customer.
namesearchableString
Name of the tag (must not contain white space).
scopeScope of the tag. System-scope tags are read-only!
Example
http
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
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..."
httpie
http 'https://api.adspert.net/v3/customers/tags?exclude=elit.amet&search_customer_id=ipsum+sit&limit=10' Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
python-requests
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...'})
response
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 x-www-form-urlencoded or csv)
Name
Type
Description
customer_idrequiredInteger
ID of the tagged customer.
namerequiredString
Name of the tag (must not contain white space).
scoperequiredScope 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_idInteger
See request data description.
⤷
nameString
See request data description.
⤷
scopeSee request data description.
unchanged[ Object ]
List of objects which had no effective change.
⤷
customer_idInteger
See request data description.
⤷
nameString
See request data description.
⤷
scopeSee request data description.
updated[ Object ]
List of objects which have been updated.
⤷
customer_idInteger
See request data description.
⤷
nameString
See request data description.
⤷
scopeSee request data description.
Example
http
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
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"}]'
httpie
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..."
python-requests
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'}])
response
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 x-www-form-urlencoded or csv)
Name
Type
Description
customer_idrequiredInteger
ID of the tagged customer.
namerequiredString
Name of the tag (must not contain white space).
scoperequiredScope 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_idInteger
See request data description.
⤷
nameString
See request data description.
⤷
scopeSee request data description.
unknown[ Object ]
List of objects which could not be found.
⤷
customer_idInteger
See request data description.
⤷
nameString
See request data description.
⤷
scopeSee request data description.
Example
http
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
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"}]'
httpie
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..."
python-requests
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'}])
response
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
includeFields to include in response data.
excludeFields to exclude in response data.
filter_email_verified[ Boolean ]
Only return results matching given
email_verifiedvalues.filter_sys_admin[ Boolean ]
Only return results matching given
sys_adminvalues.filter_user_id[ Integer ]
Only return results matching given
user_idvalues.search_fieldsFields that should be searched using the
search_term.search_termString
Search term used to search the
search_fields.search_emailString
Only return results where
emailmatches the given string.search_first_nameString
Only return results where
first_namematches the given string.search_last_nameString
Only return results where
last_namematches the given string.sort_emailSort results by
email.sort_email_verifiedSort results by
email_verified.sort_first_nameSort results by
first_name.sort_last_nameSort results by
last_name.sort_sys_adminSort results by
sys_admin.sort_user_idSort results by
user_id.offsetInteger
Start index for result list.
Default: 0
Min value: 0
limitInteger
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_idInteger
ID of the user who did the change.
emailsearchableString
E-mail of the user who did the change. Is
nullif change was made by Adspert.email_verifiedBoolean
If the user confirmed ownership of the email address.
falsemeans a confirmation is outstanding whiletruemeans there was an explicit confirmation in the past. Anullvalue indicates implicit confirmation (e.g. for users created before email verification was enforced).intercom_user_hashString
User ID hash required for Intercom user identity verification.
first_namesearchableString
last_namesearchableString
langA user’s preferred language.
sys_adminBoolean
If the user has sys admin privileges.
is_auth0_userBoolean
Example
http
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
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..."
httpie
http 'https://api.adspert.net/v3/users?limit=10&sort_last_name=-8&filter_user_id=4034300999' Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
python-requests
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...'})
response
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, "is_auth0_user": 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
includeFields to include in response data.
excludeFields to exclude in response data.
Response Data (single object, json or csv or xlsx)
Name
Type
Description
user_idInteger
ID of the user who did the change.
emailString
E-mail of the user who did the change. Is
nullif change was made by Adspert.email_verifiedBoolean
If the user confirmed ownership of the email address.
falsemeans a confirmation is outstanding whiletruemeans there was an explicit confirmation in the past. Anullvalue indicates implicit confirmation (e.g. for users created before email verification was enforced).intercom_user_hashString
User ID hash required for Intercom user identity verification.
first_nameString
last_nameString
langA user’s preferred language.
sys_adminBoolean
If the user has sys admin privileges.
is_auth0_userBoolean
Example
http
GET /v3/users/4034300999?exclude=elit.amet HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl
curl -i -X GET 'https://api.adspert.net/v3/users/4034300999?exclude=elit.amet' -H "Accept: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
httpie
http 'https://api.adspert.net/v3/users/4034300999?exclude=elit.amet' Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
python-requests
requests.get('https://api.adspert.net/v3/users/4034300999?exclude=elit.amet', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
response
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, "is_auth0_user": 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 x-www-form-urlencoded or csv)
Name
Type
Description
emailString
E-mail of the user who did the change. Is
nullif change was made by Adspert.passwordString
Min length: 8
Max length: 128
first_nameString
last_nameString
langA user’s preferred language.
Example
http
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
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"}'
httpie
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..."
python-requests
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'})
response
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
includeFields to include in response data.
excludeFields to exclude in response data.
Response Data (single object, json or csv or xlsx)
Name
Type
Description
adspert_account_idInteger
Adspert internal ID of the advertising account
account_idString
account_nameString
is_demoBoolean
If the account is a generated account for demonstration purposes.
Demo accounts have no counterpart in the ad platform.
platformplatform_access_statusStatus of Adspert access to the ad platform for this account.
currencyString
timezoneString
connected_atoptimization_startFirst time account has been optimized by Adspert.
NULL if account hasn’t yet been optimized.
signup_completedBoolean
Has the signup process been successfully completed?
Account signup is considered completed only after first successful sync of data from the platform.
customer_idInteger
ID of the customer that this account belongs to.
customer_nameString
billing_subsidiary_customer_idInteger
If this account is billed under another billing subsidiary customer, then this is the corresponding customer ID.
Min access level: customer-admin
customer_change_targetInteger
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_startedBoolean
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_groupsObject
Default performance group settings.
⤷
optimization_type_revenueObject
Default performance group for revenue-optimized campaigns.
⤷
performance_group_idInteger
Unique ID of the performance group
⤷
nameString
Unique name of the performance group.
⤷
optimization_type_profitObject
Default performance group for profit-optimized campaigns.
⤷
performance_group_idInteger
Unique ID of the performance group
⤷
nameString
Unique name of the performance group.
⤷
optimization_type_clickObject
Default performance group for click-optimized campaigns.
⤷
performance_group_idInteger
Unique ID of the performance group
⤷
nameString
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_ruleBoolean
Indicates if the One Conversion Rule was activated for CA3
optimizeBoolean
If optimization by Adspert is enabled for this account.
disconnectedBoolean
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
snoozedis enabled.Setting this field w/o providing
snoozedwill automatically unsetsnoozed!snoozedBoolean
A snoozed account is a disconnected account which won’t be deleted automatically.
Setting this field w/o providing
disconnectedwill automatically setdisconnectedto the same value!conversion_valueAverage 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_factorFloat
Conversion value factor
conversion_value_sourceSource of the conversion value e.g., platform, manual and product
conversion_value_typeType of the conversion value e.g., revenue and profit
click_optimizationBoolean
If the account is set for click optimization
attention_scoreFloat
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_totalInteger
Number of non-deleted campaigns in the ad acccount.
campaign_count_activeInteger
Number of active campaigns in the ad acccount.
campaign_count_optimizedInteger
Number of campaigns in the ad account which are active and optimized by Adspert.
amz_account_typeAmazon Ads account type.
NULL if it’s not an Amazon Ads account.
amz_regionAmazon Region.
NULL if the account is not an Amazon account.
amz_marketplaceString
Amazon Marketplace.
NULL if the account is not an Amazon account.
product_feed_url[ String ]
Product feed URL for the account
conversions_last_30dFloat
Number of conversions including view impressions.
Always 0 for click optimized campaigns.
dimensions[ Object ]
⤷
dimension⤷
optimizedBoolean
Example
http
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
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..."
httpie
http 'https://api.adspert.net/v3/accounts/3420379091?exclude=elit.amet' Accept:application/json X-Adspert-Access-Level:"CUSTOMER-ADMIN" Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
python-requests
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...'})
response
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": 19990000, "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", "amz_marketplace": "vehicula lorem", "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 x-www-form-urlencoded or csv)
Name
Type
Description
activate_one_conversion_ruleBoolean
Indicates if the One Conversion Rule was activated for CA3
optimizeBoolean
If optimization by Adspert is enabled for this account.
conversion_valueAverage 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: 0
disconnectedBoolean
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
snoozedis enabled.Setting this field w/o providing
snoozedwill automatically unsetsnoozed!snoozedBoolean
A snoozed account is a disconnected account which won’t be deleted automatically.
Setting this field w/o providing
disconnectedwill automatically setdisconnectedto the same value!conversion_value_sourceSource of the conversion value e.g., platform, manual and product
conversion_value_typeType of the conversion value e.g., revenue and profit
click_optimizationBoolean
If the account is set for click optimization
conversion_value_factorFloat
Conversion value factor
Min value: 0
Max value: 100
Example
http
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": 19990000, "disconnected": true, "snoozed": true, "conversion_value_source": "MANUAL", "conversion_value_type": "PROFIT", "click_optimization": true, "conversion_value_factor": 1.09 }
curl
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": 19990000, "conversion_value_factor": 1.09, "conversion_value_source": "MANUAL", "conversion_value_type": "PROFIT", "disconnected": true, "optimize": true, "snoozed": true}'
httpie
echo '{ "activate_one_conversion_rule": true, "click_optimization": true, "conversion_value": 19990000, "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..."
python-requests
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': 19990000, 'conversion_value_factor': 1.09, 'conversion_value_source': 'MANUAL', 'conversion_value_type': 'PROFIT', 'disconnected': True, 'optimize': True, 'snoozed': True})
response
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
includeFields to include in response data.
excludeFields to exclude in response data.
filter_account_id[ String ]
Only return results matching given
account_idvalues.filter_activate_one_conversion_rule[ Boolean ]
Only return results matching given
activate_one_conversion_rulevalues.filter_adspert_account_id[ Integer ]
Only return results matching given
adspert_account_idvalues.filter_amz_account_typeOnly return results matching given
amz_account_typevalues.filter_amz_marketplace[ String ]
Only return results matching given
amz_marketplacevalues.filter_amz_region[ AmzEndpoint ]
Only return results matching given
amz_regionvalues.filter_billing_subsidiary_customer_id[ Integer ]
Only return results matching given
billing_subsidiary_customer_idvalues.Min access level: customer-admin
filter_click_optimization[ Boolean ]
Only return results matching given
click_optimizationvalues.filter_conversion_value_factor_geFloat
Only return results where
conversion_value_factoris equal or greater than this value.filter_conversion_value_factor_leFloat
Only return results where
conversion_value_factoris equal or lower than this value.filter_conversion_value_geOnly return results where
conversion_valueis equal or greater than this value.Min value: 1000
filter_conversion_value_leOnly return results where
conversion_valueis equal or lower than this value.Min value: 1000
filter_conversion_value_sourceOnly return results matching given
conversion_value_sourcevalues.filter_conversion_value_typeOnly return results matching given
conversion_value_typevalues.filter_conversions_last_30d_geFloat
Only return results where
conversions_last_30dis equal or greater than this value.filter_conversions_last_30d_leFloat
Only return results where
conversions_last_30dis equal or lower than this value.filter_currency[ String ]
Only return results matching given
currencyvalues.filter_customer_change_target[ Integer ]
Only return results matching given
customer_change_targetvalues.filter_customer_id[ Integer ]
Only return results matching given
customer_idvalues.filter_disconnected[ Boolean ]
Only return results matching given
disconnectedvalues.filter_is_demo[ Boolean ]
Only return results matching given
is_demovalues.filter_optimize[ Boolean ]
Only return results matching given
optimizevalues.filter_platform[ AdPlatform ]
Only return results matching given
platformvalues.filter_platform_access_statusOnly return results matching given
platform_access_statusvalues.filter_product_feed_url[ String ]
Only return results matching given
product_feed_urlvalues.filter_product_feed_url_set[ Boolean ]
Only return results matching given
product_feed_url_setvalues.filter_signup_completed[ Boolean ]
Only return results matching given
signup_completedvalues.filter_snoozed[ Boolean ]
Only return results matching given
snoozedvalues.filter_tags_system[ String ]
Only return results matching given
tags_systemvalues.filter_tags_user[ String ]
Only return results matching given
tags_uservalues.filter_timezone[ String ]
Only return results matching given
timezonevalues.search_fieldsFields that should be searched using the
search_term.search_termString
Search term used to search the
search_fields.search_account_idString
Only return results where
account_idmatches the given string.search_account_nameString
Only return results where
account_namematches the given string.search_adspert_account_idString
Only return results where
adspert_account_idmatches the given string.search_billing_subsidiary_customer_idString
Only return results where
billing_subsidiary_customer_idmatches the given string.Min access level: customer-admin
search_customer_change_targetString
Only return results where
customer_change_targetmatches the given string.search_customer_idString
Only return results where
customer_idmatches the given string.search_customer_nameString
Only return results where
customer_namematches the given string.search_product_feed_urlString
Only return results where
product_feed_urlmatches the given string.search_tags_systemString
Only return results where
tags_systemmatches the given string.search_tags_userString
Only return results where
tags_usermatches the given string.sort_account_idSort results by
account_id.sort_account_nameSort results by
account_name.sort_adspert_account_idSort results by
adspert_account_id.sort_amz_account_typeSort results by
amz_account_type.sort_amz_marketplaceSort results by
amz_marketplace.sort_amz_regionSort results by
amz_region.sort_attention_scoreSort results by
attention_score.sort_billing_subsidiary_customer_idSort results by
billing_subsidiary_customer_id.Min access level: customer-admin
sort_campaign_count_activeSort results by
campaign_count_active.sort_campaign_count_optimizedSort results by
campaign_count_optimized.sort_campaign_count_totalSort results by
campaign_count_total.sort_click_optimizationSort results by
click_optimization.sort_connected_atSort results by
connected_at.sort_conversion_valueSort results by
conversion_value.sort_conversion_value_factorSort results by
conversion_value_factor.sort_conversion_value_sourceSort results by
conversion_value_source.sort_conversion_value_typeSort results by
conversion_value_type.sort_conversions_last_30dSort results by
conversions_last_30d.sort_currencySort results by
currency.sort_customer_change_targetSort results by
customer_change_target.sort_customer_idSort results by
customer_id.sort_customer_nameSort results by
customer_name.sort_disconnectedSort results by
disconnected.sort_is_demoSort results by
is_demo.sort_optimization_startSort results by
optimization_start.sort_optimizeSort results by
optimize.sort_platformSort results by
platform.sort_platform_access_statusSort results by
platform_access_status.sort_product_feed_urlSort results by
product_feed_url.sort_snoozedSort results by
snoozed.offsetInteger
Start index for result list.
Default: 0
Min value: 0
limitInteger
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_idsearchableInteger
Adspert internal ID of the advertising account
account_idsearchableString
account_namesearchableString
is_demoBoolean
If the account is a generated account for demonstration purposes.
Demo accounts have no counterpart in the ad platform.
platformplatform_access_statusStatus of Adspert access to the ad platform for this account.
currencyString
timezoneString
connected_atoptimization_startFirst time account has been optimized by Adspert.
NULL if account hasn’t yet been optimized.
signup_completedBoolean
Has the signup process been successfully completed?
Account signup is considered completed only after first successful sync of data from the platform.
customer_idsearchableInteger
ID of the customer that this account belongs to.
customer_namesearchableString
billing_subsidiary_customer_idsearchableInteger
If this account is billed under another billing subsidiary customer, then this is the corresponding customer ID.
Min access level: customer-admin
customer_change_targetsearchableInteger
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_startedBoolean
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_groupsObject
Default performance group settings.
⤷
optimization_type_revenueObject
Default performance group for revenue-optimized campaigns.
⤷
performance_group_idsearchableInteger
Unique ID of the performance group
⤷
namesearchableString
Unique name of the performance group.
⤷
optimization_type_profitObject
Default performance group for profit-optimized campaigns.
⤷
performance_group_idsearchableInteger
Unique ID of the performance group
⤷
namesearchableString
Unique name of the performance group.
⤷
optimization_type_clickObject
Default performance group for click-optimized campaigns.
⤷
performance_group_idsearchableInteger
Unique ID of the performance group
⤷
namesearchableString
Unique name of the performance group.
tags_usersearchable[ String ]
List of user tags set on this account.
tags_systemsearchable[ String ]
List of system tags set on this account.
activate_one_conversion_ruleBoolean
Indicates if the One Conversion Rule was activated for CA3
optimizeBoolean
If optimization by Adspert is enabled for this account.
disconnectedBoolean
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
snoozedis enabled.Setting this field w/o providing
snoozedwill automatically unsetsnoozed!snoozedBoolean
A snoozed account is a disconnected account which won’t be deleted automatically.
Setting this field w/o providing
disconnectedwill automatically setdisconnectedto the same value!conversion_valueAverage 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_factorFloat
Conversion value factor
conversion_value_sourceSource of the conversion value e.g., platform, manual and product
conversion_value_typeType of the conversion value e.g., revenue and profit
click_optimizationBoolean
If the account is set for click optimization
attention_scoreFloat
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_totalInteger
Number of non-deleted campaigns in the ad acccount.
campaign_count_activeInteger
Number of active campaigns in the ad acccount.
campaign_count_optimizedInteger
Number of campaigns in the ad account which are active and optimized by Adspert.
amz_account_typeAmazon Ads account type.
NULL if it’s not an Amazon Ads account.
amz_regionAmazon Region.
NULL if the account is not an Amazon account.
amz_marketplaceString
Amazon Marketplace.
NULL if the account is not an Amazon account.
product_feed_urlsearchable[ String ]
Product feed URL for the account
conversions_last_30dFloat
Number of conversions including view impressions.
Always 0 for click optimized campaigns.
dimensions[ Object ]
⤷
dimension⤷
optimizedBoolean
Example
http
GET /v3/accounts?filter_snoozed=True&sort_platform_access_status=-4&offset=0 HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5... X-Adspert-Access-Level: CUSTOMER-ADMIN
curl
curl -i -X GET 'https://api.adspert.net/v3/accounts?filter_snoozed=True&sort_platform_access_status=-4&offset=0' -H "Accept: application/json" -H "X-Adspert-Access-Level: CUSTOMER-ADMIN" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
httpie
http 'https://api.adspert.net/v3/accounts?filter_snoozed=True&sort_platform_access_status=-4&offset=0' Accept:application/json X-Adspert-Access-Level:"CUSTOMER-ADMIN" Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
python-requests
requests.get('https://api.adspert.net/v3/accounts?filter_snoozed=True&sort_platform_access_status=-4&offset=0', headers={'Accept': 'application/json', 'X-Adspert-Access-Level': 'CUSTOMER-ADMIN', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
response
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": 19990000, "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", "amz_marketplace": "vehicula lorem", "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 or x-www-form-urlencoded)
Name
Type
Description
adspert_idInteger
Adspert internal ID of the advertising account
conversion_value_sourceSource of the conversion value e.g., platform, manual and product
conversion_value_typeType of the conversion value e.g., revenue and profit
click_optimizationBoolean
If the account is set for click optimization
conversion_valueAverage 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: 0
conversion_value_factorFloat
Conversion value factor
Min value: 0
Max value: 100
dimensions[ Object ]
⤷
dimensionrequired⤷
optimizedrequiredBoolean
Response Data (single object, json or csv or xlsx)
Name
Type
Description
unchanged[ Object ]
List of objects which had no effective change.
⤷
adspert_idInteger
See request data description.
⤷
conversion_value_sourceSee request data description.
⤷
conversion_value_typeSee request data description.
⤷
click_optimizationBoolean
See request data description.
⤷
conversion_valueSee request data description.
⤷
conversion_value_factorFloat
See request data description.
⤷
dimensions[ Object ]
See request data description.
⤷
dimensionSee request data description.
⤷
optimizedBoolean
See request data description.
unknown[ Object ]
List of objects which could not be found.
⤷
adspert_idInteger
See request data description.
⤷
conversion_value_sourceSee request data description.
⤷
conversion_value_typeSee request data description.
⤷
click_optimizationBoolean
See request data description.
⤷
conversion_valueSee request data description.
⤷
conversion_value_factorFloat
See request data description.
⤷
dimensions[ Object ]
See request data description.
⤷
dimensionSee request data description.
⤷
optimizedBoolean
See request data description.
updated[ Object ]
List of objects which have been updated.
⤷
adspert_idInteger
See request data description.
⤷
conversion_value_sourceSee request data description.
⤷
conversion_value_typeSee request data description.
⤷
click_optimizationBoolean
See request data description.
⤷
conversion_valueSee request data description.
⤷
conversion_value_factorFloat
See request data description.
⤷
dimensions[ Object ]
See request data description.
⤷
dimensionSee request data description.
⤷
optimizedBoolean
See request data description.
Example
http
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": 19990000, "conversion_value_factor": 1.09, "dimensions": [ { "dimension": "AGE", "optimized": true } ] } ]
curl
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": 19990000, "conversion_value_factor": 1.09, "dimensions": [{"dimension": "AGE", "optimized": true}]}]'
httpie
echo '[ { "adspert_id": 123, "click_optimization": true, "conversion_value": 19990000, "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..."
python-requests
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': 19990000, 'conversion_value_factor': 1.09, 'dimensions': [{'dimension': 'AGE', 'optimized': True}]}])
response
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": 19990000, "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": 19990000, "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": 19990000, "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
includeFields to include in response data.
excludeFields to exclude in response data.
filter_account_id[ String ]
Only return results matching given
account_idvalues.filter_adspert_account_id[ Integer ]
Only return results matching given
adspert_account_idvalues.filter_customer_id[ Integer ]
Only return results matching given
customer_idvalues.filter_tag_name[ String ]
Only return results matching given
tag_namevalues.filter_tag_scope[ AccountTagScope ]
Only return results matching given
tag_scopevalues.search_fieldsFields that should be searched using the
search_term.search_termString
Search term used to search the
search_fields.search_account_idString
Only return results where
account_idmatches the given string.search_account_nameString
Only return results where
account_namematches the given string.search_customer_idString
Only return results where
customer_idmatches the given string.search_tag_nameString
Only return results where
tag_namematches the given string.sort_account_idSort results by
account_id.sort_account_nameSort results by
account_name.sort_adspert_account_idSort results by
adspert_account_id.sort_customer_idSort results by
customer_id.sort_tag_nameSort results by
tag_name.sort_tag_scopeSort results by
tag_scope.offsetInteger
Start index for result list.
Default: 0
Min value: 0
limitInteger
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_idsearchableInteger
ID of the customer that the tagged account belongs to.
customer_nameString
Name of the customer that the tagged account belongs to.
adspert_account_idInteger
Adspert internal ID of the advertising account
account_idsearchableString
account_namesearchableString
tag_namesearchableString
Name of the tag (must not contain white space).
tag_scopeScope of the tag. System-scope tags are read-only!
Example
http
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
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..."
httpie
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..."
python-requests
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...'})
response
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 x-www-form-urlencoded or csv)
Name
Type
Description
customer_idInteger
ID of the customer that the tagged account belongs to.
adspert_account_idInteger
Adspert internal ID of the advertising account
tag_nameString
Name of the tag (must not contain white space).
tag_scopeScope 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_idInteger
See request data description.
⤷
adspert_account_idInteger
See request data description.
⤷
tag_nameString
See request data description.
⤷
tag_scopeSee request data description.
unchanged[ Object ]
List of objects which had no effective change.
⤷
customer_idInteger
See request data description.
⤷
adspert_account_idInteger
See request data description.
⤷
tag_nameString
See request data description.
⤷
tag_scopeSee request data description.
updated[ Object ]
List of objects which have been updated.
⤷
customer_idInteger
See request data description.
⤷
adspert_account_idInteger
See request data description.
⤷
tag_nameString
See request data description.
⤷
tag_scopeSee request data description.
Example
http
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
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"}]'
httpie
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..."
python-requests
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'}])
response
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 x-www-form-urlencoded or csv)
Name
Type
Description
customer_idInteger
ID of the customer that the tagged account belongs to.
adspert_account_idInteger
Adspert internal ID of the advertising account
tag_nameString
Name of the tag (must not contain white space).
tag_scopeScope 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_idInteger
See request data description.
⤷
adspert_account_idInteger
See request data description.
⤷
tag_nameString
See request data description.
⤷
tag_scopeSee request data description.
unknown[ Object ]
List of objects which could not be found.
⤷
customer_idInteger
See request data description.
⤷
adspert_account_idInteger
See request data description.
⤷
tag_nameString
See request data description.
⤷
tag_scopeSee request data description.
Example
http
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
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"}]'
httpie
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..."
python-requests
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'}])
response
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
dimensionoptimizedBoolean
Example
http
GET /v3/accounts/3420379091/bid-adjustment-settings HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl
curl -i -X GET https://api.adspert.net/v3/accounts/3420379091/bid-adjustment-settings -H "Accept: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
httpie
http https://api.adspert.net/v3/accounts/3420379091/bid-adjustment-settings Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
python-requests
requests.get('https://api.adspert.net/v3/accounts/3420379091/bid-adjustment-settings', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
response
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 x-www-form-urlencoded or csv)
Name
Type
Description
dimensionrequiredoptimizedrequiredBoolean
Example
http
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
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}]'
httpie
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..."
python-requests
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}])
response
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
includeFields to include in response data.
excludeFields to exclude in response data.
filter_adspert_account_id[ Integer ]
Only return results matching given
adspert_account_idvalues.filter_account_id[ String ]
Only return results matching given
account_idvalues.filter_account_name[ String ]
Only return results matching given
account_namevalues.filter_account_platform[ AdPlatform ]
Only return results matching given
account_platformvalues.filter_account_optimize[ Boolean ]
Only return results matching given
account_optimizevalues.filter_account_tags_user[ String ]
Only return results matching given
account_tags_uservalues.filter_account_is_demo[ Boolean ]
Only return results matching given
account_is_demovalues.filter_adspert_campaign_id[ CompositeID ]
Only return results matching given
adspert_campaign_idvalues.filter_campaign_id[ LargeInteger ]
Only return results matching given
campaign_idvalues.filter_campaign_name[ String ]
Only return results matching given
campaign_namevalues.filter_campaign_type[ CampaignType ]
Only return results matching given
campaign_typevalues.filter_campaign_eby_marketplace_id[ String ]
Only return results matching given
campaign_eby_marketplace_idvalues.filter_campaign_status[ CampaignStatus ]
Only return results matching given
campaign_statusvalues.filter_campaign_optimize[ Boolean ]
Only return results matching given
campaign_optimizevalues.filter_campaign_optimization_type[ OptimizationType ]
Only return results matching given
campaign_optimization_typevalues.filter_campaign_labels[ String ]
Only return results matching given
campaign_labelsvalues.filter_campaign_amz_targeting_type[ AmzTargetingType ]
Only return results matching given
campaign_amz_targeting_typevalues.filter_adspert_portfolio_id[ CompositeID ]
Only return results matching given
adspert_portfolio_idvalues.filter_amz_portfolio_name[ String ]
Only return results matching given
amz_portfolio_namevalues.filter_campaigns_count[ Integer ]
Only return results matching given
campaigns_countvalues.filter_campaigns_count_geInteger
Only return results where
campaigns_countis equal or greater than this value.filter_campaigns_count_leInteger
Only return results where
campaigns_countis equal or lower than this value.filter_enabled[ Boolean ]
Only return results matching given
enabledvalues.filter_goal_typesOnly return results matching given
goal_typesvalues.filter_name[ String ]
Only return results matching given
namevalues.filter_optimization_type[ OptimizationType ]
Only return results matching given
optimization_typevalues.filter_performance_group_id[ Integer ]
Only return results matching given
performance_group_idvalues.filter_reset_bidding_strategy[ Boolean ]
Only return results matching given
reset_bidding_strategyvalues.filter_warning_statusOnly return results matching given
warning_statusvalues.search_fieldsFields that should be searched using the
search_term.search_termString
Search term used to search the
search_fields.search_account_idString
Only return results where
account_idmatches the given string.search_account_nameString
Only return results where
account_namematches the given string.search_account_tags_userString
Only return results where
account_tags_usermatches the given string.search_campaign_nameString
Only return results where
campaign_namematches the given string.search_amz_portfolio_nameString
Only return results where
amz_portfolio_namematches the given string.search_nameString
Only return results where
namematches the given string.search_performance_group_idString
Only return results where
performance_group_idmatches the given string.sort_created_atSort results by
created_at.sort_enabledSort results by
enabled.sort_goal_typesSort results by
goal_types.sort_nameSort results by
name.sort_optimization_typeSort results by
optimization_type.sort_performance_group_idSort results by
performance_group_id.sort_reset_bidding_strategySort results by
reset_bidding_strategy.sort_warning_statusSort results by
warning_status.offsetInteger
Start index for result list.
Default: 0
Min value: 0
limitInteger
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_idsearchableInteger
Unique ID of the performance group
namesearchableString
Unique name of the performance group.
optimization_typeOptimization type of the performance group.
Only campaigns of the same optimization type can be added to a given performance group.
enabledBoolean
created_atgoals[ Object ]
List of performance group goals
⤷
goal_typeType of the performance group goal
⤷
goal_valueFloat
Value of the performance group goal.
goal_valueshould beNULLifgoal_typeisPROFIT-MAXIMIZATION.goal_valueshould be a ratio (> 0) ifgoal_typeisROAS,CRRandROI,goal_valueshould be specified in micros and be larger than 10000 ifgoal_typeisCOST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICK.⤷
goal_currencyCurrency of the performance group goal.
Currency is required for
COST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICKgoals.⤷
goal_microsValue for
COST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICKgoals.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_ratioFloat
Value for
ROAS,CRRandROIgoals.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_typesList 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_countInteger
warnings[ Object ]
⤷
typeType of the warning
⤷
priorityPriority of the warning
⤷
adspert_account_idsearchableInteger
Adspert internal ID of the advertising account
⤷
adspert_campaign_idAdspert internal ID of the campaign.
Composite ID specification:
{adspert_account_id}:{campaign_id}⤷
campaign_idsearchable⤷
created_at⤷
acknowledged_atwarning_statusStatus 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_min_bidObject
Min bid for the performance group or campaign
⤷
microsMonetary value in micros.
⤷
currencyCurrency of the monetary value.
user_max_bidObject
Max bid for the performance group or campaign
⤷
microsMonetary value in micros.
⤷
currencyCurrency of the monetary value.
pg_currencyPerformance Group currency. While mutating PG monetary goals or user_max_bid, monetary goals goal_currency and user_max_bid currency should match this currency.
reset_bidding_strategyBoolean
Example
http
GET /v3/customers/7027038674/performance-groups?filter_campaign_optimization_type=CLICK&filter_reset_bidding_strategy=True&search_amz_portfolio_name=lorem+tucan HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl
curl -i -X GET 'https://api.adspert.net/v3/customers/7027038674/performance-groups?filter_campaign_optimization_type=CLICK&filter_reset_bidding_strategy=True&search_amz_portfolio_name=lorem+tucan' -H "Accept: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
httpie
http 'https://api.adspert.net/v3/customers/7027038674/performance-groups?filter_campaign_optimization_type=CLICK&filter_reset_bidding_strategy=True&search_amz_portfolio_name=lorem+tucan' Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
python-requests
requests.get('https://api.adspert.net/v3/customers/7027038674/performance-groups?filter_campaign_optimization_type=CLICK&filter_reset_bidding_strategy=True&search_amz_portfolio_name=lorem+tucan', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
response
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": 19990000, "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_min_bid": { "micros": 19990000, "currency": "AED" }, "user_max_bid": { "micros": 19990000, "currency": "AED" }, "pg_currency": "AED", "reset_bidding_strategy": true } ], "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 or x-www-form-urlencoded)
Name
Type
Description
namerequiredString
Unique name of the performance group.
optimization_typerequiredOptimization type of the performance group.
Only campaigns of the same optimization type can be added to a given performance group.
enabledrequiredBoolean
goalsrequired[ Object ]
List of performance group goals
⤷
goal_typerequiredType of the performance group goal
⤷
goal_valueFloat
Value of the performance group goal.
goal_valueshould beNULLifgoal_typeisPROFIT-MAXIMIZATION.goal_valueshould be a ratio (> 0) ifgoal_typeisROAS,CRRandROI,goal_valueshould be specified in micros and be larger than 10000 ifgoal_typeisCOST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICK.⤷
goal_currencyCurrency of the performance group goal.
Currency is required for
COST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICKgoals.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_min_bidObject
Min bid for the performance group or campaign
⤷
microsrequiredMonetary value in micros.
Min value: 1000
⤷
currencyrequiredCurrency of the monetary value.
user_max_bidrequiredObject
Max bid for the performance group or campaign
⤷
microsrequiredMonetary value in micros.
Min value: 1000
⤷
currencyrequiredCurrency of the monetary value.
pg_currencyrequiredPerformance Group currency. While mutating PG monetary goals or user_max_bid, monetary goals goal_currency and user_max_bid currency should match this currency.
initiatorIndicates who initiated the action. If set to ‘assistant’, this will be logged in performance_group_log context.
Response Data (single object, json or csv or xlsx)
Name
Type
Description
performance_group_idInteger
Unique ID of the performance group
nameString
Unique name of the performance group.
optimization_typeOptimization type of the performance group.
Only campaigns of the same optimization type can be added to a given performance group.
enabledBoolean
created_atgoals[ Object ]
List of performance group goals
⤷
goal_typeType of the performance group goal
⤷
goal_valueFloat
Value of the performance group goal.
goal_valueshould beNULLifgoal_typeisPROFIT-MAXIMIZATION.goal_valueshould be a ratio (> 0) ifgoal_typeisROAS,CRRandROI,goal_valueshould be specified in micros and be larger than 10000 ifgoal_typeisCOST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICK.⤷
goal_currencyCurrency of the performance group goal.
Currency is required for
COST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICKgoals.⤷
goal_microsValue for
COST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICKgoals.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_ratioFloat
Value for
ROAS,CRRandROIgoals.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_typesList 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_countInteger
warnings[ Object ]
⤷
typeType of the warning
⤷
priorityPriority of the warning
⤷
adspert_account_idInteger
Adspert internal ID of the advertising account
⤷
adspert_campaign_idAdspert internal ID of the campaign.
Composite ID specification:
{adspert_account_id}:{campaign_id}⤷
campaign_id⤷
created_at⤷
acknowledged_atwarning_statusStatus 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_min_bidObject
Min bid for the performance group or campaign
⤷
microsMonetary value in micros.
⤷
currencyCurrency of the monetary value.
user_max_bidObject
Max bid for the performance group or campaign
⤷
microsMonetary value in micros.
⤷
currencyCurrency of the monetary value.
pg_currencyPerformance Group currency. While mutating PG monetary goals or user_max_bid, monetary goals goal_currency and user_max_bid currency should match this currency.
reset_bidding_strategyBoolean
Example
http
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_min_bid": { "micros": 19990000, "currency": "AED" }, "user_max_bid": { "micros": 19990000, "currency": "AED" }, "pg_currency": "AED", "initiator": "ASSISTANT" }
curl
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"}], "initiator": "ASSISTANT", "name": "tucan lorem", "optimization_type": "CLICK", "pg_currency": "AED", "user_max_bid": {"currency": "AED", "micros": 19990000}, "user_min_bid": {"currency": "AED", "micros": 19990000}}'
httpie
echo '{ "campaigns": [ "123:5555" ], "default_for_accounts": [ 123 ], "enabled": true, "goals": [ { "goal_currency": "AED", "goal_type": "CLICKS-PER-DAY", "goal_value": 1.41 } ], "initiator": "ASSISTANT", "name": "tucan lorem", "optimization_type": "CLICK", "pg_currency": "AED", "user_max_bid": { "currency": "AED", "micros": 19990000 }, "user_min_bid": { "currency": "AED", "micros": 19990000 } }' | http POST https://api.adspert.net/v3/customers/7027038674/performance-groups Accept:application/json Content-Type:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
python-requests
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'}], 'initiator': 'ASSISTANT', 'name': 'tucan lorem', 'optimization_type': 'CLICK', 'pg_currency': 'AED', 'user_max_bid': {'currency': 'AED', 'micros': 19990000}, 'user_min_bid': {'currency': 'AED', 'micros': 19990000}})
response
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": 19990000, "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_min_bid": { "micros": 19990000, "currency": "AED" }, "user_max_bid": { "micros": 19990000, "currency": "AED" }, "pg_currency": "AED", "reset_bidding_strategy": true }, "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 or x-www-form-urlencoded)
Name
Type
Description
performance_group_idrequiredInteger
Unique ID of the performance group
nameString
Unique name of the performance group.
enabledBoolean
goals[ Object ]
List of performance group goals
⤷
goal_typerequiredType of the performance group goal
⤷
goal_valueFloat
Value of the performance group goal.
goal_valueshould beNULLifgoal_typeisPROFIT-MAXIMIZATION.goal_valueshould be a ratio (> 0) ifgoal_typeisROAS,CRRandROI,goal_valueshould be specified in micros and be larger than 10000 ifgoal_typeisCOST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICK.⤷
goal_currencyCurrency of the performance group goal.
Currency is required for
COST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICKgoals.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_warningsBoolean
Acknowledge performance group warnings.
Acknowledging a warning results in either marking that warning as acknowledged (with a timestamp) or deleting it.
ApiPerformanceGroupWarningTypedescription can be used to find out which warnings are deleted on acknowledgement.user_min_bidObject
Min bid for the performance group or campaign
⤷
microsrequiredMonetary value in micros.
Min value: 1000
⤷
currencyrequiredCurrency of the monetary value.
user_max_bidObject
Max bid for the performance group or campaign
⤷
microsrequiredMonetary value in micros.
Min value: 1000
⤷
currencyrequiredCurrency of the monetary value.
pg_currencyPerformance Group currency. While mutating PG monetary goals or user_max_bid, monetary goals goal_currency and user_max_bid currency should match this currency.
reset_bidding_strategyBoolean
initiatorIndicates who initiated the action. If set to ‘assistant’, this will be logged in performance_group_log context.
Response Data (single object, json or csv or xlsx)
Name
Type
Description
unchanged[ Object ]
List of objects which had no effective change.
⤷
performance_group_idInteger
See request data description.
⤷
nameString
See request data description.
⤷
enabledBoolean
See request data description.
⤷
goals[ Object ]
See request data description.
⤷
goal_typeSee request data description.
⤷
goal_valueFloat
See request data description.
⤷
goal_currencySee request data description.
⤷
campaigns[ CompositeID ]
See request data description.
⤷
default_for_accounts[ Integer ]
See request data description.
⤷
acknowledge_warningsBoolean
See request data description.
⤷
user_min_bidObject
See request data description.
⤷
microsSee request data description.
⤷
currencySee request data description.
⤷
user_max_bidObject
See request data description.
⤷
microsSee request data description.
⤷
currencySee request data description.
⤷
pg_currencySee request data description.
⤷
reset_bidding_strategyBoolean
See request data description.
⤷
initiatorSee request data description.
unknown[ Object ]
List of objects which could not be found.
⤷
performance_group_idInteger
See request data description.
⤷
nameString
See request data description.
⤷
enabledBoolean
See request data description.
⤷
goals[ Object ]
See request data description.
⤷
goal_typeSee request data description.
⤷
goal_valueFloat
See request data description.
⤷
goal_currencySee request data description.
⤷
campaigns[ CompositeID ]
See request data description.
⤷
default_for_accounts[ Integer ]
See request data description.
⤷
acknowledge_warningsBoolean
See request data description.
⤷
user_min_bidObject
See request data description.
⤷
microsSee request data description.
⤷
currencySee request data description.
⤷
user_max_bidObject
See request data description.
⤷
microsSee request data description.
⤷
currencySee request data description.
⤷
pg_currencySee request data description.
⤷
reset_bidding_strategyBoolean
See request data description.
⤷
initiatorSee request data description.
updated[ Object ]
List of objects which have been updated.
⤷
performance_group_idInteger
See request data description.
⤷
nameString
See request data description.
⤷
enabledBoolean
See request data description.
⤷
goals[ Object ]
See request data description.
⤷
goal_typeSee request data description.
⤷
goal_valueFloat
See request data description.
⤷
goal_currencySee request data description.
⤷
campaigns[ CompositeID ]
See request data description.
⤷
default_for_accounts[ Integer ]
See request data description.
⤷
acknowledge_warningsBoolean
See request data description.
⤷
user_min_bidObject
See request data description.
⤷
microsSee request data description.
⤷
currencySee request data description.
⤷
user_max_bidObject
See request data description.
⤷
microsSee request data description.
⤷
currencySee request data description.
⤷
pg_currencySee request data description.
⤷
reset_bidding_strategyBoolean
See request data description.
⤷
initiatorSee request data description.
Example
http
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_min_bid": { "micros": 19990000, "currency": "AED" }, "user_max_bid": { "micros": 19990000, "currency": "AED" }, "pg_currency": "AED", "reset_bidding_strategy": true, "initiator": "ASSISTANT" } ]
curl
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_min_bid": {"micros": 19990000, "currency": "AED"}, "user_max_bid": {"micros": 19990000, "currency": "AED"}, "pg_currency": "AED", "reset_bidding_strategy": true, "initiator": "ASSISTANT"}]'
httpie
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 } ], "initiator": "ASSISTANT", "name": "tucan lorem", "performance_group_id": "1245", "pg_currency": "AED", "reset_bidding_strategy": true, "user_max_bid": { "currency": "AED", "micros": 19990000 }, "user_min_bid": { "currency": "AED", "micros": 19990000 } } ]' | http PATCH https://api.adspert.net/v3/customers/7027038674/performance-groups Accept:application/json Content-Type:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
python-requests
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_min_bid': {'micros': 19990000, 'currency': 'AED'}, 'user_max_bid': {'micros': 19990000, 'currency': 'AED'}, 'pg_currency': 'AED', 'reset_bidding_strategy': True, 'initiator': 'ASSISTANT'}])
response
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_min_bid": { "micros": 19990000, "currency": "AED" }, "user_max_bid": { "micros": 19990000, "currency": "AED" }, "pg_currency": "AED", "reset_bidding_strategy": true, "initiator": "ASSISTANT" } ], "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_min_bid": { "micros": 19990000, "currency": "AED" }, "user_max_bid": { "micros": 19990000, "currency": "AED" }, "pg_currency": "AED", "reset_bidding_strategy": true, "initiator": "ASSISTANT" } ], "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_min_bid": { "micros": 19990000, "currency": "AED" }, "user_max_bid": { "micros": 19990000, "currency": "AED" }, "pg_currency": "AED", "reset_bidding_strategy": true, "initiator": "ASSISTANT" } ] }, "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
includeFields to include in response data.
excludeFields to exclude in response data.
filter_adspert_campaign_idrequired[ CompositeID ]
Only return results matching given
adspert_campaign_idvalues.Min items: 1
filter_currencyRequest max bid suggestion in this currency
Response Data (single object, json or csv or xlsx)
Name
Type
Description
user_max_bidObject
Max bid for the performance group or campaign
⤷
microsMonetary value in micros.
⤷
currencyCurrency of the monetary value.
Example
http
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
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..."
httpie
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..."
python-requests
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...'})
response
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": { "user_max_bid": { "micros": 19990000, "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 or x-www-form-urlencoded)
Name
Type
Description
includeFields to include in response data.
excludeFields to exclude in response data.
filter_adspert_campaign_idrequired[ CompositeID ]
Only return results matching given
adspert_campaign_idvalues.Min items: 1
filter_currencyRequest max bid suggestion in this currency
Response Data (single object, json or csv or xlsx)
Name
Type
Description
user_max_bidObject
Max bid for the performance group or campaign
⤷
microsMonetary value in micros.
⤷
currencyCurrency of the monetary value.
Example
http
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
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"]}'
httpie
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..."
python-requests
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']})
response
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": { "user_max_bid": { "micros": 19990000, "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
includeFields to include in response data.
excludeFields to exclude in response data.
Response Data (single object, json or csv or xlsx)
Name
Type
Description
performance_group_idInteger
Unique ID of the performance group
nameString
Unique name of the performance group.
optimization_typeOptimization type of the performance group.
Only campaigns of the same optimization type can be added to a given performance group.
enabledBoolean
created_atgoals[ Object ]
List of performance group goals
⤷
goal_typeType of the performance group goal
⤷
goal_valueFloat
Value of the performance group goal.
goal_valueshould beNULLifgoal_typeisPROFIT-MAXIMIZATION.goal_valueshould be a ratio (> 0) ifgoal_typeisROAS,CRRandROI,goal_valueshould be specified in micros and be larger than 10000 ifgoal_typeisCOST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICK.⤷
goal_currencyCurrency of the performance group goal.
Currency is required for
COST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICKgoals.⤷
goal_microsValue for
COST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICKgoals.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_ratioFloat
Value for
ROAS,CRRandROIgoals.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_typesList 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_countInteger
warnings[ Object ]
⤷
typeType of the warning
⤷
priorityPriority of the warning
⤷
adspert_account_idInteger
Adspert internal ID of the advertising account
⤷
adspert_campaign_idAdspert internal ID of the campaign.
Composite ID specification:
{adspert_account_id}:{campaign_id}⤷
campaign_id⤷
created_at⤷
acknowledged_atwarning_statusStatus 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_min_bidObject
Min bid for the performance group or campaign
⤷
microsMonetary value in micros.
⤷
currencyCurrency of the monetary value.
user_max_bidObject
Max bid for the performance group or campaign
⤷
microsMonetary value in micros.
⤷
currencyCurrency of the monetary value.
pg_currencyPerformance Group currency. While mutating PG monetary goals or user_max_bid, monetary goals goal_currency and user_max_bid currency should match this currency.
reset_bidding_strategyBoolean
Example
http
GET /v3/customers/7027038674/performance-groups/6668648308?exclude=elit.amet HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl
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..."
httpie
http 'https://api.adspert.net/v3/customers/7027038674/performance-groups/6668648308?exclude=elit.amet' Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
python-requests
requests.get('https://api.adspert.net/v3/customers/7027038674/performance-groups/6668648308?exclude=elit.amet', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
response
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": 19990000, "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_min_bid": { "micros": 19990000, "currency": "AED" }, "user_max_bid": { "micros": 19990000, "currency": "AED" }, "pg_currency": "AED", "reset_bidding_strategy": true }, "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
http
DELETE /v3/customers/7027038674/performance-groups/6668648308 HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl
curl -i -X DELETE https://api.adspert.net/v3/customers/7027038674/performance-groups/6668648308 -H "Accept: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
httpie
http DELETE https://api.adspert.net/v3/customers/7027038674/performance-groups/6668648308 Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
python-requests
requests.delete('https://api.adspert.net/v3/customers/7027038674/performance-groups/6668648308', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
response
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
includeFields to include in response data.
excludeFields to exclude in response data.
filter_date_gerequiredOnly return results where date is on or after this date.
filter_date_lerequiredOnly return results where date is on or before this date.
filter_click_through_rate_clicks_geFloat
Only return results where
click_through_rate_clicksis equal or greater than this value.filter_click_through_rate_clicks_leFloat
Only return results where
click_through_rate_clicksis equal or lower than this value.filter_click_through_rate_geFloat
Only return results where
click_through_rateis equal or greater than this value.filter_click_through_rate_leFloat
Only return results where
click_through_rateis equal or lower than this value.filter_clicks[ Integer ]
Only return results matching given
clicksvalues.filter_clicks_geInteger
Only return results where
clicksis equal or greater than this value.filter_clicks_leInteger
Only return results where
clicksis equal or lower than this value.filter_conversion_rate_adjusted_geFloat
Only return results where
conversion_rate_adjustedis equal or greater than this value.filter_conversion_rate_adjusted_leFloat
Only return results where
conversion_rate_adjustedis equal or lower than this value.filter_conversion_rate_clicks_geFloat
Only return results where
conversion_rate_clicksis equal or greater than this value.filter_conversion_rate_clicks_leFloat
Only return results where
conversion_rate_clicksis equal or lower than this value.filter_conversion_rate_geFloat
Only return results where
conversion_rateis equal or greater than this value.filter_conversion_rate_leFloat
Only return results where
conversion_rateis equal or lower than this value.filter_conversions_adjusted_geFloat
Only return results where
conversions_adjustedis equal or greater than this value.filter_conversions_adjusted_leFloat
Only return results where
conversions_adjustedis equal or lower than this value.filter_conversions_clicks_geFloat
Only return results where
conversions_clicksis equal or greater than this value.filter_conversions_clicks_leFloat
Only return results where
conversions_clicksis equal or lower than this value.filter_conversions_for_revenue_adjusted_geFloat
Only return results where
conversions_for_revenue_adjustedis equal or greater than this value.filter_conversions_for_revenue_adjusted_leFloat
Only return results where
conversions_for_revenue_adjustedis equal or lower than this value.filter_conversions_for_revenue_geFloat
Only return results where
conversions_for_revenueis equal or greater than this value.filter_conversions_for_revenue_leFloat
Only return results where
conversions_for_revenueis equal or lower than this value.filter_conversions_geFloat
Only return results where
conversionsis equal or greater than this value.filter_conversions_leFloat
Only return results where
conversionsis equal or lower than this value.filter_cost_for_click_geOnly return results where
cost_for_clickis equal or greater than this value.Min value: 1000
filter_cost_for_click_leOnly return results where
cost_for_clickis equal or lower than this value.Min value: 1000
filter_cost_for_profit_geOnly return results where
cost_for_profitis equal or greater than this value.Min value: 1000
filter_cost_for_profit_leOnly return results where
cost_for_profitis equal or lower than this value.Min value: 1000
filter_cost_for_revenue_geOnly return results where
cost_for_revenueis equal or greater than this value.Min value: 1000
filter_cost_for_revenue_leOnly return results where
cost_for_revenueis equal or lower than this value.Min value: 1000
filter_cost_for_vcpm_geOnly return results where
cost_for_vcpmis equal or greater than this value.Min value: 1000
filter_cost_for_vcpm_leOnly return results where
cost_for_vcpmis equal or lower than this value.Min value: 1000
filter_cost_geOnly return results where
costis equal or greater than this value.Min value: 1000
filter_cost_leOnly return results where
costis equal or lower than this value.Min value: 1000
filter_cost_per_click_geOnly return results where
cost_per_clickis equal or greater than this value.Min value: 1000
filter_cost_per_click_leOnly return results where
cost_per_clickis equal or lower than this value.Min value: 1000
filter_cost_per_conversion_adjusted_geOnly return results where
cost_per_conversion_adjustedis equal or greater than this value.Min value: 1000
filter_cost_per_conversion_adjusted_leOnly return results where
cost_per_conversion_adjustedis equal or lower than this value.Min value: 1000
filter_cost_per_conversion_clicks_geOnly return results where
cost_per_conversion_clicksis equal or greater than this value.Min value: 1000
filter_cost_per_conversion_clicks_leOnly return results where
cost_per_conversion_clicksis equal or lower than this value.Min value: 1000
filter_cost_per_conversion_geOnly return results where
cost_per_conversionis equal or greater than this value.Min value: 1000
filter_cost_per_conversion_leOnly return results where
cost_per_conversionis equal or lower than this value.Min value: 1000
filter_cost_per_m_view_impressions_geOnly return results where
cost_per_m_view_impressionsis equal or greater than this value.Min value: 1000
filter_cost_per_m_view_impressions_leOnly return results where
cost_per_m_view_impressionsis equal or lower than this value.Min value: 1000
filter_cost_revenue_ratio_adjusted_geFloat
Only return results where
cost_revenue_ratio_adjustedis equal or greater than this value.filter_cost_revenue_ratio_adjusted_leFloat
Only return results where
cost_revenue_ratio_adjustedis equal or lower than this value.filter_cost_revenue_ratio_clicks_geFloat
Only return results where
cost_revenue_ratio_clicksis equal or greater than this value.filter_cost_revenue_ratio_clicks_leFloat
Only return results where
cost_revenue_ratio_clicksis equal or lower than this value.filter_cost_revenue_ratio_geFloat
Only return results where
cost_revenue_ratiois equal or greater than this value.filter_cost_revenue_ratio_leFloat
Only return results where
cost_revenue_ratiois equal or lower than this value.filter_impressions[ Integer ]
Only return results matching given
impressionsvalues.filter_impressions_geInteger
Only return results where
impressionsis equal or greater than this value.filter_impressions_leInteger
Only return results where
impressionsis equal or lower than this value.filter_profit_gross_adjusted_geOnly return results where
profit_gross_adjustedis equal or greater than this value.Min value: 1000
filter_profit_gross_adjusted_leOnly return results where
profit_gross_adjustedis equal or lower than this value.Min value: 1000
filter_profit_gross_geOnly return results where
profit_grossis equal or greater than this value.Min value: 1000
filter_profit_gross_leOnly return results where
profit_grossis equal or lower than this value.Min value: 1000
filter_profit_net_adjusted_geOnly return results where
profit_net_adjustedis equal or greater than this value.Min value: 1000
filter_profit_net_adjusted_leOnly return results where
profit_net_adjustedis equal or lower than this value.Min value: 1000
filter_profit_net_geOnly return results where
profit_netis equal or greater than this value.Min value: 1000
filter_profit_net_leOnly return results where
profit_netis equal or lower than this value.Min value: 1000
filter_return_on_ad_spend_adjusted_geFloat
Only return results where
return_on_ad_spend_adjustedis equal or greater than this value.filter_return_on_ad_spend_adjusted_leFloat
Only return results where
return_on_ad_spend_adjustedis equal or lower than this value.filter_return_on_ad_spend_clicks_geFloat
Only return results where
return_on_ad_spend_clicksis equal or greater than this value.filter_return_on_ad_spend_clicks_leFloat
Only return results where
return_on_ad_spend_clicksis equal or lower than this value.filter_return_on_ad_spend_geFloat
Only return results where
return_on_ad_spendis equal or greater than this value.filter_return_on_ad_spend_leFloat
Only return results where
return_on_ad_spendis equal or lower than this value.filter_return_on_investment_adjusted_geFloat
Only return results where
return_on_investment_adjustedis equal or greater than this value.filter_return_on_investment_adjusted_leFloat
Only return results where
return_on_investment_adjustedis equal or lower than this value.filter_return_on_investment_geFloat
Only return results where
return_on_investmentis equal or greater than this value.filter_return_on_investment_leFloat
Only return results where
return_on_investmentis equal or lower than this value.filter_revenue_adjusted_geOnly return results where
revenue_adjustedis equal or greater than this value.Min value: 1000
filter_revenue_adjusted_leOnly return results where
revenue_adjustedis equal or lower than this value.Min value: 1000
filter_revenue_clicks_geOnly return results where
revenue_clicksis equal or greater than this value.Min value: 1000
filter_revenue_clicks_leOnly return results where
revenue_clicksis equal or lower than this value.Min value: 1000
filter_revenue_geOnly return results where
revenueis equal or greater than this value.Min value: 1000
filter_revenue_leOnly return results where
revenueis equal or lower than this value.Min value: 1000
filter_revenue_per_conversion_adjusted_geOnly return results where
revenue_per_conversion_adjustedis equal or greater than this value.Min value: 1000
filter_revenue_per_conversion_adjusted_leOnly return results where
revenue_per_conversion_adjustedis equal or lower than this value.Min value: 1000
filter_revenue_per_conversion_geOnly return results where
revenue_per_conversionis equal or greater than this value.Min value: 1000
filter_revenue_per_conversion_leOnly return results where
revenue_per_conversionis equal or lower than this value.Min value: 1000
filter_view_impressions[ Integer ]
Only return results matching given
view_impressionsvalues.filter_view_impressions_geInteger
Only return results where
view_impressionsis equal or greater than this value.filter_view_impressions_leInteger
Only return results where
view_impressionsis equal or lower than this value.search_fieldsFields that should be searched using the
search_term.search_termString
Search term used to search the
search_fields.sort_click_through_rateSort results by
click_through_rate.sort_click_through_rate_clicksSort results by
click_through_rate_clicks.sort_clicksSort results by
clicks.sort_conversion_rateSort results by
conversion_rate.sort_conversion_rate_adjustedSort results by
conversion_rate_adjusted.sort_conversion_rate_clicksSort results by
conversion_rate_clicks.sort_conversionsSort results by
conversions.sort_conversions_adjustedSort results by
conversions_adjusted.sort_conversions_clicksSort results by
conversions_clicks.sort_conversions_for_revenueSort results by
conversions_for_revenue.sort_conversions_for_revenue_adjustedSort results by
conversions_for_revenue_adjusted.sort_costSort results by
cost.sort_cost_for_clickSort results by
cost_for_click.sort_cost_for_profitSort results by
cost_for_profit.sort_cost_for_revenueSort results by
cost_for_revenue.sort_cost_for_vcpmSort results by
cost_for_vcpm.sort_cost_per_clickSort results by
cost_per_click.sort_cost_per_conversionSort results by
cost_per_conversion.sort_cost_per_conversion_adjustedSort results by
cost_per_conversion_adjusted.sort_cost_per_conversion_clicksSort results by
cost_per_conversion_clicks.sort_cost_per_m_view_impressionsSort results by
cost_per_m_view_impressions.sort_cost_revenue_ratioSort results by
cost_revenue_ratio.sort_cost_revenue_ratio_adjustedSort results by
cost_revenue_ratio_adjusted.sort_cost_revenue_ratio_clicksSort results by
cost_revenue_ratio_clicks.sort_dateSort results by
date.sort_enabledSort results by
enabled.sort_impressionsSort results by
impressions.sort_profit_grossSort results by
profit_gross.sort_profit_gross_adjustedSort results by
profit_gross_adjusted.sort_profit_netSort results by
profit_net.sort_profit_net_adjustedSort results by
profit_net_adjusted.sort_return_on_ad_spendSort results by
return_on_ad_spend.sort_return_on_ad_spend_adjustedSort results by
return_on_ad_spend_adjusted.sort_return_on_ad_spend_clicksSort results by
return_on_ad_spend_clicks.sort_return_on_investmentSort results by
return_on_investment.sort_return_on_investment_adjustedSort results by
return_on_investment_adjusted.sort_revenueSort results by
revenue.sort_revenue_adjustedSort results by
revenue_adjusted.sort_revenue_clicksSort results by
revenue_clicks.sort_revenue_per_conversionSort results by
revenue_per_conversion.sort_revenue_per_conversion_adjustedSort results by
revenue_per_conversion_adjusted.sort_view_impressionsSort results by
view_impressions.offsetInteger
Start index for result list.
Default: 0
Min value: 0
limitInteger
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
currencyrequiredResponse Data (object list, json or csv or xlsx)
Name
Type
Description
dateenabledBoolean
goals[ Object ]
List of performance group goals
⤷
goal_typeType of the performance group goal
⤷
goal_valueFloat
Value of the performance group goal.
goal_valueshould beNULLifgoal_typeisPROFIT-MAXIMIZATION.goal_valueshould be a ratio (> 0) ifgoal_typeisROAS,CRRandROI,goal_valueshould be specified in micros and be larger than 10000 ifgoal_typeisCOST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICK.⤷
goal_currencyCurrency of the performance group goal.
Currency is required for
COST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICKgoals.⤷
goal_microsValue for
COST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICKgoals.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_ratioFloat
Value for
ROAS,CRRandROIgoals.Same as
goal_value, but in a properly typed field for easier client-side handling and improved representation in tabular response data like CSV.impressionsInteger
Number of impressions
view_impressionsInteger
Number of viewable impressions
clicksInteger
Number of clicks
conversionsFloat
Number of conversions including view impressions.
Always 0 for click optimized campaigns.
conversions_clicksFloat
Number of conversions from clicks only
Valid only for vCPM campaigns. For non-vCPM campaigns, this is the same as
conversions.conversions_adjustedFloat
Number of conversions adjusted for conversion delay.
Always 0 for click optimized campaigns.
conversions_for_revenueFloat
Number of conversions for campaigns that support revenues.
Always 0 for campaigns that don’t support revenue.
conversions_for_revenue_adjustedFloat
Number of conversions for campaigns that support revenues adjusted for conversion delay.
Always 0 for campaigns that don’t support revenue.
profit_grossGross profit.
Always 0 for click and revenue optimized campaigns.
profit_gross_adjustedGross profit adjusted for conversion delay.
Always 0 for click and revenue optimized campaigns.
profit_netNet profit.
profit_gross-cost_for_profitAlways 0 for click and revenue optimized campaigns.
profit_net_adjustedNet profit adjusted for conversion delay.
profit_gross_adjusted-cost_for_profitAlways 0 for click and revenue optimized campaigns.
revenueRevenue/sales.
Always 0 for click and profit optimized campaigns.
revenue_clicksRevenue/sales from clicks only.
Valid only for vCPM campaigns. For non-vCPM campaigns, this is the same as
revenue.revenue_adjustedRevenue/sales adjusted for conversion delay.
Always 0 for click and profit optimized campaigns.
costTotal ad spend / cost
cost_for_profitAd spend from campaigns that support profit.
Always 0 for campaigns that don’t support profit.
cost_for_revenueAd spend from campaigns that support revenue.
Always 0 for campaigns that don’t support revenue.
cost_for_clickAd spend / cost from click optimized campaigns.
Always 0 for revenue and profit optimized campaigns.
cost_for_vcpmAd spend from vcpm optimized campaigns.
Always 0 for campaigns that aren’t vcpm optimized.
cost_per_clickEffective CPC.
cost/clicksNULL if number of
clicksis 0.cost_per_m_view_impressionsCost per mille viewable impressions. Valid only for vCPM campaigns.
cost/view_impressionsNULL if number of
view_impressionsis 0.cost_per_conversionCost per conversion.
Only cost for profit and revenue optimized campaigns is included.
(
cost-cost_for_click) /conversionsNULL if number of
conversionsis 0.cost_per_conversion_clicksCost per conversion.
Only cost for profit and revenue optimized campaigns is included.
(
cost-cost_for_click) /conversionsNULL if number of
conversionsis 0.cost_per_conversion_adjustedCost per conversion, adjusted for conversion delay.
Only cost for profit and revenue optimized campaigns is included.
(
cost-cost_for_click) /conversions_adjustedNULL if number of
conversions_adjustedis 0.conversion_rateFloat
Conversion rate.
conversions/clicksNULL if number of
clicksis 0.conversion_rate_clicksFloat
Conversion rate from clicks only.
Valid only for vCPM campaigns. For non-vCPM campaigns, this is the same as
conversion_rate.view_conversions/clicksNULL if number of
clicksis 0.conversion_rate_adjustedFloat
Conversion rate, adjusted for conversion delay.
conversions_adjusted/clicksNULL if number of
clicksis 0.click_through_rateFloat
Clickthrough rate (CTR).
clicks/impressionsNULL if number of
impressionsis 0.click_through_rate_clicksFloat
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_impressionsNULL if number of
view_impressionsis 0.return_on_investmentFloat
Return on investment (ROI).
Only cost for profit optimized campaigns is included.
profit_gross/cost_for_profitNULL if
cost_for_profitis 0.return_on_investment_adjustedFloat
Return on investment (ROI), adjusted for conversion delay.
Only cost for profit optimized campaigns is included.
profit_gross_adjusted/cost_for_profitNULL if
cost_for_profitis 0.return_on_ad_spendFloat
Return on ad spend (ROAS).
Only cost for revenue optimized campaigns is included.
revenue/cost_for_revenueNULL if
cost_for_revenueis 0.return_on_ad_spend_clicksFloat
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_revenueNULL if
cost_for_revenueis 0.return_on_ad_spend_adjustedFloat
Return on ad spend (ROAS), adjusted for conversion delay.
Only cost for revenue optimized campaigns is included.
revenue_adjusted/cost_for_revenueNULL if
cost_for_revenueis 0.cost_revenue_ratioFloat
Cost Revenue Ratio (CRR).
Also called Advertising Cost of Sale (ACoS).
Only cost for revenue optimized campaigns is included.
cost_for_revenue/revenueNULL if
revenueis 0.cost_revenue_ratio_clicksFloat
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_clicksNULL if
revenue_clicksis 0.cost_revenue_ratio_adjustedFloat
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_adjustedNULL if
cost_for_revenueis 0.revenue_per_conversionRevenue per conversions.
Only revenue and conversions for revenue supporting campaigns are included.
revenue/conversions_for_revenueNULL if campaign doesn’t support revenue.
revenue_per_conversion_adjustedRevenue per conversions adjusted for conversion delay.
Only revenue and conversions for revenue supporting campaigns are included.
revenue_adjusted/conversions_for_revenue_adjustedNULL if campaign doesn’t support revenue.
has_vcpmBoolean
Whether the grouped-by entity has any campaigns with vCPM enabled.
Example
http
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
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..."
httpie
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..."
python-requests
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...'})
response
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": 19990000, "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": 19990000, "profit_gross_adjusted": 19990000, "profit_net": 19990000, "profit_net_adjusted": 19990000, "revenue": 19990000, "revenue_clicks": 19990000, "revenue_adjusted": 19990000, "cost": 19990000, "cost_for_profit": 19990000, "cost_for_revenue": 19990000, "cost_for_click": 19990000, "cost_for_vcpm": 19990000, "cost_per_click": 19990000, "cost_per_m_view_impressions": 19990000, "cost_per_conversion": 19990000, "cost_per_conversion_clicks": 19990000, "cost_per_conversion_adjusted": 19990000, "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": 19990000, "revenue_per_conversion_adjusted": 19990000, "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
includeFields to include in response data.
excludeFields to exclude in response data.
Response Data (single object, json or csv or xlsx)
Name
Type
Description
adspert_account_idInteger
Adspert internal ID of the advertising account
account_idString
Ad platform specific ID of an advertising account.
account_nameString
account_platformThe account’s advertising platform.
account_optimizeBoolean
If optimization by Adspert is enabled for this account.
account_tags_user[ String ]
account_is_demoBoolean
If the account is a generated account for demonstration purposes.
Demo accounts have no counterpart in the ad platform.
adspert_portfolio_idAdspert internal ID of Amazon portfolio.
Composite ID specification:
{adspert_account_id}:{portfolio_id}portfolio_idportfolio_nameString
Example
http
GET /v3/customers/7027038674/portfolios/ID-1234?include=ipsum.amet HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl
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..."
httpie
http 'https://api.adspert.net/v3/customers/7027038674/portfolios/ID-1234?include=ipsum.amet' Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
python-requests
requests.get('https://api.adspert.net/v3/customers/7027038674/portfolios/ID-1234?include=ipsum.amet', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
response
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
includeFields to include in response data.
excludeFields to exclude in response data.
filter_account_id[ String ]
Only return results matching given
account_idvalues.filter_account_is_demo[ Boolean ]
Only return results matching given
account_is_demovalues.filter_account_name[ String ]
Only return results matching given
account_namevalues.filter_account_optimize[ Boolean ]
Only return results matching given
account_optimizevalues.filter_account_platform[ AdPlatform ]
Only return results matching given
account_platformvalues.filter_account_tags_user[ String ]
Only return results matching given
account_tags_uservalues.filter_adspert_account_id[ Integer ]
Only return results matching given
adspert_account_idvalues.filter_adspert_portfolio_id[ CompositeID ]
Only return results matching given
adspert_portfolio_idvalues.filter_portfolio_name[ String ]
Only return results matching given
portfolio_namevalues.search_fieldsFields that should be searched using the
search_term.search_termString
Search term used to search the
search_fields.search_account_idString
Only return results where
account_idmatches the given string.search_account_nameString
Only return results where
account_namematches the given string.search_account_tags_userString
Only return results where
account_tags_usermatches the given string.search_adspert_account_idString
Only return results where
adspert_account_idmatches the given string.search_portfolio_idString
Only return results where
portfolio_idmatches the given string.search_portfolio_nameString
Only return results where
portfolio_namematches the given string.sort_account_idSort results by
account_id.sort_account_is_demoSort results by
account_is_demo.sort_account_nameSort results by
account_name.sort_account_optimizeSort results by
account_optimize.sort_account_platformSort results by
account_platform.sort_adspert_account_idSort results by
adspert_account_id.sort_adspert_portfolio_idSort results by
adspert_portfolio_id.sort_portfolio_idSort results by
portfolio_id.sort_portfolio_nameSort results by
portfolio_name.offsetInteger
Start index for result list.
Default: 0
Min value: 0
limitInteger
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_idsearchableInteger
Adspert internal ID of the advertising account
account_idsearchableString
Ad platform specific ID of an advertising account.
account_namesearchableString
account_platformThe account’s advertising platform.
account_optimizeBoolean
If optimization by Adspert is enabled for this account.
account_tags_usersearchable[ String ]
account_is_demoBoolean
If the account is a generated account for demonstration purposes.
Demo accounts have no counterpart in the ad platform.
adspert_portfolio_idAdspert internal ID of Amazon portfolio.
Composite ID specification:
{adspert_account_id}:{portfolio_id}portfolio_idsearchableportfolio_namesearchableString
Example
http
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
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..."
httpie
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..."
python-requests
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...'})
response
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 } } } }
PerformanceGroupExtendedCollection
GET
- GET /v3/customers/(customer_id: int)/performance-groups-extended
Retrieve a list of performance groups.
Query Params
Name
Type
Description
includeFields to include in response data.
excludeFields to exclude in response data.
filter_adspert_account_id[ Integer ]
Only return results matching given
adspert_account_idvalues.filter_account_id[ String ]
Only return results matching given
account_idvalues.filter_account_name[ String ]
Only return results matching given
account_namevalues.filter_account_platform[ AdPlatform ]
Only return results matching given
account_platformvalues.filter_account_optimize[ Boolean ]
Only return results matching given
account_optimizevalues.filter_account_tags_user[ String ]
Only return results matching given
account_tags_uservalues.filter_account_is_demo[ Boolean ]
Only return results matching given
account_is_demovalues.filter_date_gerequiredOnly return results where date is on or after this date
filter_date_lerequiredOnly return results where date is on or before this date
filter_adspert_campaign_id[ CompositeID ]
Only return results matching given
adspert_campaign_idvalues.filter_campaign_id[ LargeInteger ]
Only return results matching given
campaign_idvalues.filter_campaign_name[ String ]
Only return results matching given
campaign_namevalues.filter_campaign_type[ CampaignType ]
Only return results matching given
campaign_typevalues.filter_campaign_eby_marketplace_id[ String ]
Only return results matching given
campaign_eby_marketplace_idvalues.filter_campaign_status[ CampaignStatus ]
Only return results matching given
campaign_statusvalues.filter_campaign_optimize[ Boolean ]
Only return results matching given
campaign_optimizevalues.filter_campaign_optimization_type[ OptimizationType ]
Only return results matching given
campaign_optimization_typevalues.filter_campaign_labels[ String ]
Only return results matching given
campaign_labelsvalues.filter_campaign_amz_targeting_type[ AmzTargetingType ]
Only return results matching given
campaign_amz_targeting_typevalues.filter_adspert_portfolio_id[ CompositeID ]
Only return results matching given
adspert_portfolio_idvalues.filter_amz_portfolio_name[ String ]
Only return results matching given
amz_portfolio_namevalues.filter_campaigns_count[ Integer ]
Only return results matching given
campaigns_countvalues.filter_campaigns_count_geInteger
Only return results where
campaigns_countis equal or greater than this value.filter_campaigns_count_leInteger
Only return results where
campaigns_countis equal or lower than this value.filter_enabled[ Boolean ]
Only return results matching given
enabledvalues.filter_goal_typesOnly return results matching given
goal_typesvalues.filter_name[ String ]
Only return results matching given
namevalues.filter_optimization_type[ OptimizationType ]
Only return results matching given
optimization_typevalues.filter_performance_group_id[ Integer ]
Only return results matching given
performance_group_idvalues.filter_pg_currency[ ApiCurrency ]
Only return results matching given
pg_currencyvalues.filter_reset_bidding_strategy[ Boolean ]
Only return results matching given
reset_bidding_strategyvalues.filter_warning_severityOnly return results matching given
warning_severityvalues.search_fieldsFields that should be searched using the
search_term.search_termString
Search term used to search the
search_fields.search_account_idString
Only return results where
account_idmatches the given string.search_account_nameString
Only return results where
account_namematches the given string.search_account_tags_userString
Only return results where
account_tags_usermatches the given string.search_campaign_nameString
Only return results where
campaign_namematches the given string.search_amz_portfolio_nameString
Only return results where
amz_portfolio_namematches the given string.search_nameString
Only return results where
namematches the given string.search_performance_group_idString
Only return results where
performance_group_idmatches the given string.sort_metrics_return_on_investmentSort results by
metrics.return_on_investment.sort_metrics_costSort results by
metrics.cost.sort_metrics_revenueSort results by
metrics.revenue.sort_metrics_clicksSort results by
metrics.clicks.sort_metrics_conversionsSort results by
metrics.conversions.sort_metrics_impressionsSort results by
metrics.impressions.sort_metrics_view_impressionsSort results by
metrics.view_impressions.sort_metrics_conversion_rateSort results by
metrics.conversion_rate.sort_metrics_cost_per_conversionSort results by
metrics.cost_per_conversion.sort_metrics_cost_per_m_view_impressionsSort results by
metrics.cost_per_m_view_impressions.sort_metrics_cost_revenue_ratioSort results by
metrics.cost_revenue_ratio.sort_metrics_profit_grossSort results by
metrics.profit_gross.sort_metrics_profit_netSort results by
metrics.profit_net.sort_metrics_return_on_ad_spendSort results by
metrics.return_on_ad_spend.sort_metrics_budget_amountSort results by
metrics.budget_amount.sort_metrics_conversions_clicksSort results by
metrics.conversions_clicks.sort_metrics_revenue_clicksSort results by
metrics.revenue_clicks.sort_metrics_cost_per_conversion_clicksSort results by
metrics.cost_per_conversion_clicks.sort_metrics_conversion_rate_clicksSort results by
metrics.conversion_rate_clicks.sort_metrics_cost_revenue_ratio_clicksSort results by
metrics.cost_revenue_ratio_clicks.sort_metrics_return_on_ad_spend_clicksSort results by
metrics.return_on_ad_spend_clicks.sort_metrics_click_through_ratesSort results by
metrics.click_through_rate.sort_metrics_click_through_rate_clicksSort results by
metrics.click_through_rate_clicks.sort_metrics_cost_per_clickSort results by
metrics.cost_per_click.sort_created_atSort results by
created_at.sort_enabledSort results by
enabled.sort_goal_typesSort results by
goal_types.sort_last_goal_changeSort results by
last_goal_change.sort_nameSort results by
name.sort_optimization_typeSort results by
optimization_type.sort_performance_group_idSort results by
performance_group_id.sort_reset_bidding_strategySort results by
reset_bidding_strategy.sort_scoreSort results by
score.sort_warning_severitySort results by
warning_severity.sort_warning_severity_orderSort results by
warning_severity_order.offsetInteger
Start index for result list.
Default: 0
Min value: 0
limitInteger
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_paused_campaignsBoolean
Whether to include paused campaigns performance metrics in the PG. Defaults to True.
currencyTarget currency for metric conversion. If not provided, PG currency is used for metrics within each PG.
Response Data (object list, json or csv or xlsx)
Name
Type
Description
performance_group_idsearchableInteger
Unique ID of the performance group
namesearchableString
Unique name of the performance group.
optimization_typeOptimization type of the performance group.
Only campaigns of the same optimization type can be added to a given performance group.
enabledBoolean
created_atgoals[ Object ]
List of performance group goals
⤷
goal_typeType of the performance group goal
⤷
goal_valueFloat
Value of the performance group goal.
goal_valueshould beNULLifgoal_typeisPROFIT-MAXIMIZATION.goal_valueshould be a ratio (> 0) ifgoal_typeisROAS,CRRandROI,goal_valueshould be specified in micros and be larger than 10000 ifgoal_typeisCOST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICK.⤷
goal_currencyCurrency of the performance group goal.
Currency is required for
COST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICKgoals.⤷
goal_microsValue for
COST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICKgoals.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_ratioFloat
Value for
ROAS,CRRandROIgoals.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_typesList of performance group goal types
campaigns[ CompositeID ]
campaigns_countInteger
warnings[ Object ]
⤷
typeType of the warning
⤷
adspert_campaign_idAdspert internal ID of the campaign.
Composite ID specification:
{adspert_account_id}:{campaign_id}⤷
fix_suggestionObject
Suggested fix for this warning containing resource, entity, and recommended new value
⤷
entityString
The entity to be modified (e.g., “goal”)
⤷
goals[ Object ]
The goals to be modified. Only used for PG GOAL related warnings.
⤷
goal_typeType of the performance group goal
⤷
goal_valueFloat
Value of the performance group goal.
goal_valueshould beNULLifgoal_typeisPROFIT-MAXIMIZATION.goal_valueshould be a ratio (> 0) ifgoal_typeisROAS,CRRandROI,goal_valueshould be specified in micros and be larger than 10000 ifgoal_typeisCOST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICK.⤷
goal_currencyCurrency of the performance group goal.
Currency is required for
COST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICKgoals.⤷
goal_microsValue for
COST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICKgoals.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_ratioFloat
Value for
ROAS,CRRandROIgoals.Same as
goal_value, but in a properly typed field for easier client-side handling and improved representation in tabular response data like CSV.⤷
resourceThe resource being modified (e.g., “performance_group”)
⤷
budget_suggestion_idInteger
The ID of the budget suggestion to be used. Only used for BUDGET_TOO_LOW warning.
⤷
new_valueFloat
The new value to be used
notifications[ Object ]
⤷
typeType of the warning
⤷
priorityPriority of the warning
⤷
adspert_account_idsearchableInteger
Adspert internal ID of the advertising account
⤷
adspert_campaign_idAdspert internal ID of the campaign.
Composite ID specification:
{adspert_account_id}:{campaign_id}⤷
created_at⤷
acknowledged_atdefault_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_bidObject
Max bid for the performance group or campaign
⤷
microsMonetary value in micros.
⤷
currencyCurrency of the monetary value.
user_min_bidObject
Min bid for the performance group or campaign
⤷
microsMonetary value in micros.
⤷
currencyCurrency of the monetary value.
pg_currencyPerformance Group currency.
reset_bidding_strategyBoolean
metricsObject
⤷
clicksInteger
Number of clicks
⤷
conversion_rateFloat
Conversion rate.
conversions/clicksNULL if number of
clicksis 0.⤷
conversion_rate_clicksFloat
Conversion rate from clicks only.
Valid only for vCPM campaigns. For non-vCPM campaigns, this is the same as
conversion_rate.view_conversions/clicksNULL if number of
clicksis 0.⤷
conversionsFloat
Number of conversions including view impressions.
Always 0 for click optimized campaigns.
⤷
conversions_clicksFloat
Number of conversions from clicks only
Valid only for vCPM campaigns. For non-vCPM campaigns, this is the same as
conversions.⤷
costTotal ad spend / cost
⤷
cost_per_conversionCost per conversion.
Only cost for profit and revenue optimized campaigns is included.
(
cost-cost_for_click) /conversionsNULL if number of
conversionsis 0.⤷
cost_per_conversion_clicksCost 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
conversionsis 0.⤷
cost_per_m_view_impressionsCost per mille viewable impressions. Valid only for vCPM campaigns.
cost/view_impressionsNULL if number of
view_impressionsis 0.⤷
cost_revenue_ratioFloat
Cost Revenue Ratio (CRR).
Also called Advertising Cost of Sale (ACoS).
Only cost for revenue optimized campaigns is included.
cost_for_revenue/revenueNULL if
revenueis 0.⤷
cost_revenue_ratio_clicksFloat
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_clicksNULL if
revenue_clicksis 0.⤷
impressionsInteger
Number of impressions
⤷
profit_grossGross profit.
Always 0 for click and revenue optimized campaigns.
⤷
profit_netNet profit.
profit_gross-cost_for_profitAlways 0 for click and revenue optimized campaigns.
⤷
return_on_ad_spendFloat
Return on ad spend (ROAS).
Only cost for revenue optimized campaigns is included.
revenue/cost_for_revenueNULL if
cost_for_revenueis 0.⤷
return_on_ad_spend_clicksFloat
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_revenueNULL if
cost_for_revenueis 0.⤷
return_on_investmentFloat
Return on investment (ROI).
Only cost for profit optimized campaigns is included.
profit_gross/cost_for_profitNULL if
cost_for_profitis 0.⤷
revenueRevenue/sales.
Always 0 for click and profit optimized campaigns.
⤷
revenue_clicksRevenue/sales from clicks only.
Valid only for vCPM campaigns. For non-vCPM campaigns, this is the same as
revenue.⤷
view_impressionsInteger
Number of viewable impressions
⤷
budget_amount⤷
click_through_rate_clicksFloat
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_impressionsNULL if number of
view_impressionsis 0.⤷
click_through_rateFloat
Clickthrough rate (CTR).
clicks/impressionsNULL if number of
impressionsis 0.⤷
cost_per_clickEffective CPC.
cost/clicksNULL if number of
clicksis 0.historical_metricsObject
⤷
metric_nameName of the metric
⤷
datapoints[ Float ]
Historical data points for this metric
⤷
intervalInteger
Number of days over which each datapoint is averaged
last_goal_changescoreFloat
Total score for this PG (0.0-1.0)
warning_severityWarning severity based on total score
warning_severity_orderInteger
Integer representation of warning_severity, used for sorting only
Example
http
GET /v3/customers/7027038674/performance-groups-extended?sort_metrics_click_through_rate_clicks=3&filter_warning_severity=GREEN&offset=0 HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl
curl -i -X GET 'https://api.adspert.net/v3/customers/7027038674/performance-groups-extended?sort_metrics_click_through_rate_clicks=3&filter_warning_severity=GREEN&offset=0' -H "Accept: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
httpie
http 'https://api.adspert.net/v3/customers/7027038674/performance-groups-extended?sort_metrics_click_through_rate_clicks=3&filter_warning_severity=GREEN&offset=0' Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
python-requests
requests.get('https://api.adspert.net/v3/customers/7027038674/performance-groups-extended?sort_metrics_click_through_rate_clicks=3&filter_warning_severity=GREEN&offset=0', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
response
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": 19990000, "goal_ratio": 8.77 } ], "goal_types": [ "CLICKS-PER-DAY" ], "campaigns": [ "123:5555" ], "campaigns_count": 5928586564, "warnings": [ { "type": "ACCOUNT-API-ACCESS-NONE", "adspert_campaign_id": "123:5555", "fix_suggestion": { "entity": "tucan dolor", "goals": [ { "goal_type": "CLICKS-PER-DAY", "goal_value": 1.41, "goal_currency": "AED", "goal_micros": 19990000, "goal_ratio": 8.77 } ], "resource": "BUDGET-SUGGESTION", "budget_suggestion_id": 7064736404, "new_value": 2.48 } } ], "notifications": [ { "type": "ACCOUNT-API-ACCESS-NONE", "priority": "HIGH", "adspert_account_id": 123, "adspert_campaign_id": "123:5555", "created_at": "2018-10-21T16:45:23+02:00", "acknowledged_at": "2018-10-21T16:45:23+02:00" } ], "default_for_accounts": [ 123 ], "user_max_bid": { "micros": 19990000, "currency": "AED" }, "user_min_bid": { "micros": 19990000, "currency": "AED" }, "pg_currency": "AED", "reset_bidding_strategy": true, "metrics": { "clicks": 5857268080, "conversion_rate": 0.86, "conversion_rate_clicks": 5.66, "conversions": 3.92, "conversions_clicks": 11.04, "cost": 19990000, "cost_per_conversion": 19990000, "cost_per_conversion_clicks": 19990000, "cost_per_m_view_impressions": 19990000, "cost_revenue_ratio": 16.41, "cost_revenue_ratio_clicks": 19.69, "impressions": 2157218327, "profit_gross": 19990000, "profit_net": 19990000, "return_on_ad_spend": 2.29, "return_on_ad_spend_clicks": 5.1, "return_on_investment": 3.28, "revenue": 19990000, "revenue_clicks": 19990000, "view_impressions": 4923863656, "budget_amount": 19990000, "click_through_rate_clicks": 17.16, "click_through_rate": 7.58, "cost_per_click": 19990000 }, "historical_metrics": { "metric_name": "BUDGET-AMOUNT", "datapoints": [ 13.51 ], "interval": 5461815639 }, "last_goal_change": "2018-10-21T16:45:23+02:00", "score": 4.11, "warning_severity": "GREEN", "warning_severity_order": 3585836087 } ], "meta": { "pagination": { "offset": 0, "limit": 10, "total": 74, "sort": { "performance_group_id": 1 } } } }
CampaignResource
GET
- GET /v3/customers/(customer_id: int)/campaigns/(adspert_campaign_id: str)
Retrieve a single campaign.
Query Params
Name
Type
Description
includeFields to include in response data.
excludeFields to exclude in response data.
Response Data (single object, json or csv or xlsx)
Name
Type
Description
adspert_account_idInteger
Adspert internal ID of the advertising account
account_idString
Ad platform specific ID of an advertising account.
account_nameString
account_platformThe account’s advertising platform.
account_optimizeBoolean
If optimization by Adspert is enabled for this account.
account_tags_user[ String ]
account_is_demoBoolean
If the account is a generated account for demonstration purposes.
Demo accounts have no counterpart in the ad platform.
account_currencyString
performance_group_idInteger
Unique ID of the performance group
performance_group_nameString
Unique name of the performance group.
performance_group_enabledBoolean
performance_group_optimization_typeOptimization 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_typeType of the performance group goal
⤷
goal_valueFloat
Value of the performance group goal.
goal_valueshould beNULLifgoal_typeisPROFIT-MAXIMIZATION.goal_valueshould be a ratio (> 0) ifgoal_typeisROAS,CRRandROI,goal_valueshould be specified in micros and be larger than 10000 ifgoal_typeisCOST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICK.⤷
goal_currencyCurrency of the performance group goal.
Currency is required for
COST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICKgoals.⤷
goal_microsValue for
COST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICKgoals.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_ratioFloat
Value for
ROAS,CRRandROIgoals.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_typesList of performance group goal types
adspert_portfolio_idAdspert internal ID of Amazon portfolio.
Composite ID specification:
{adspert_account_id}:{portfolio_id}amz_portfolio_idamz_portfolio_nameString
adspert_campaign_idAdspert internal ID of the campaign.
Composite ID specification:
{adspert_account_id}:{campaign_id}campaign_idcampaign_nameString
campaign_typecampaign_eby_marketplace_idString
campaign_optimizeBoolean
campaign_statuscampaign_labels[ String ]
campaign_optimization_typecampaign_optimization_supportcampaign_amz_targeting_typeAmazon campaign targeting type.
campaign_conversion_valueConversion value in micros
campaign_conversion_value_factorFloat
Conversion value factor
campaign_conversion_value_sourceSource of the conversion value e.g., platform, manual and product
campaign_conversion_value_typeType of the conversion value e.g., revenue and profit
campaign_user_max_bidObject
Max bid for the performance group or campaign
⤷
microsMonetary value in micros.
⤷
currencyCurrency of the monetary value.
campaign_user_min_bidObject
Min bid for the performance group or campaign
⤷
microsMonetary value in micros.
⤷
currencyCurrency of the monetary value.
campaign_allow_change_dowhodBoolean
If ad schedule bid adjustment (day-of-week/hour-of-day) optimization is enabled
account_conversion_value_sourceSource of the conversion value e.g., platform, manual and product
account_conversion_value_typeType of the conversion value e.g., revenue and profit
account_conversion_valueConversion value in micros
account_conversion_value_factorFloat
Conversion value factor
effective_conversion_value_sourceSource of the conversion value e.g., platform, manual and product
effective_conversion_value_typeType of the conversion value e.g., revenue and profit
effective_conversion_valueConversion value in micros
effective_conversion_value_factorFloat
Conversion value factor
account_click_optimizationBoolean
If the account is set for click optimization
account_allow_change_dowhodBoolean
If ad schedule bid adjustment (day-of-week/hour-of-day) optimization is enabled
effective_allow_change_dowhodBoolean
If ad schedule bid adjustment (day-of-week/hour-of-day) optimization is enabled
budget_amountExample
http
GET /v3/customers/7027038674/campaigns/ID-1234?include=ipsum.amet HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl
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..."
httpie
http 'https://api.adspert.net/v3/customers/7027038674/campaigns/ID-1234?include=ipsum.amet' Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
python-requests
requests.get('https://api.adspert.net/v3/customers/7027038674/campaigns/ID-1234?include=ipsum.amet', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
response
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": 19990000, "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": 19990000, "campaign_conversion_value_factor": 4.36, "campaign_conversion_value_source": "MANUAL", "campaign_conversion_value_type": "PROFIT", "campaign_user_max_bid": { "micros": 19990000, "currency": "AED" }, "campaign_user_min_bid": { "micros": 19990000, "currency": "AED" }, "campaign_allow_change_dowhod": true, "account_conversion_value_source": "MANUAL", "account_conversion_value_type": "PROFIT", "account_conversion_value": 19990000, "account_conversion_value_factor": 2.24, "effective_conversion_value_source": "MANUAL", "effective_conversion_value_type": "PROFIT", "effective_conversion_value": 19990000, "effective_conversion_value_factor": 5.53, "account_click_optimization": true, "account_allow_change_dowhod": true, "effective_allow_change_dowhod": true, "budget_amount": 19990000 }, "meta": {} }
CampaignCollection
GET
- GET /v3/customers/(customer_id: int)/campaigns
Retrieve a list of campaigns.
Query Params
Name
Type
Description
includeFields to include in response data.
excludeFields to exclude in response data.
filter_account_allow_change_dowhod[ Boolean ]
Only return results matching given
account_allow_change_dowhodvalues.filter_account_click_optimization[ Boolean ]
Only return results matching given
account_click_optimizationvalues.filter_account_conversion_value_factor_geFloat
Only return results where
account_conversion_value_factoris equal or greater than this value.filter_account_conversion_value_factor_leFloat
Only return results where
account_conversion_value_factoris equal or lower than this value.filter_account_conversion_value_geOnly return results where
account_conversion_valueis equal or greater than this value.Min value: 1000
filter_account_conversion_value_leOnly return results where
account_conversion_valueis equal or lower than this value.Min value: 1000
filter_account_conversion_value_sourceOnly return results matching given
account_conversion_value_sourcevalues.filter_account_conversion_value_typeOnly return results matching given
account_conversion_value_typevalues.filter_account_currency[ String ]
Only return results matching given
account_currencyvalues.filter_account_id[ String ]
Only return results matching given
account_idvalues.filter_account_is_demo[ Boolean ]
Only return results matching given
account_is_demovalues.filter_account_name[ String ]
Only return results matching given
account_namevalues.filter_account_optimize[ Boolean ]
Only return results matching given
account_optimizevalues.filter_account_platform[ AdPlatform ]
Only return results matching given
account_platformvalues.filter_account_tags_user[ String ]
Only return results matching given
account_tags_uservalues.filter_adspert_account_id[ Integer ]
Only return results matching given
adspert_account_idvalues.filter_adspert_campaign_id[ CompositeID ]
Only return results matching given
adspert_campaign_idvalues.filter_adspert_portfolio_id[ CompositeID ]
Only return results matching given
adspert_portfolio_idvalues.filter_amz_portfolio_name[ String ]
Only return results matching given
amz_portfolio_namevalues.filter_budget_amount_geOnly return results where
budget_amountis equal or greater than this value.Min value: 1000
filter_budget_amount_leOnly return results where
budget_amountis equal or lower than this value.Min value: 1000
filter_campaign_allow_change_dowhod[ Boolean ]
Only return results matching given
campaign_allow_change_dowhodvalues.filter_campaign_amz_targeting_type[ AmzTargetingType ]
Only return results matching given
campaign_amz_targeting_typevalues.filter_campaign_conversion_value_factor_geFloat
Only return results where
campaign_conversion_value_factoris equal or greater than this value.filter_campaign_conversion_value_factor_leFloat
Only return results where
campaign_conversion_value_factoris equal or lower than this value.filter_campaign_conversion_value_factor_set[ Boolean ]
Only return results matching given
campaign_conversion_value_factor_setvalues.filter_campaign_conversion_value_geOnly return results where
campaign_conversion_valueis equal or greater than this value.Min value: 1000
filter_campaign_conversion_value_leOnly return results where
campaign_conversion_valueis equal or lower than this value.Min value: 1000
filter_campaign_conversion_value_set[ Boolean ]
Only return results matching given
campaign_conversion_value_setvalues.filter_campaign_conversion_value_sourceOnly return results matching given
campaign_conversion_value_sourcevalues.filter_campaign_conversion_value_typeOnly return results matching given
campaign_conversion_value_typevalues.filter_campaign_eby_marketplace_id[ String ]
Only return results matching given
campaign_eby_marketplace_idvalues.filter_campaign_labels[ String ]
Only return results matching given
campaign_labelsvalues.filter_campaign_name[ String ]
Only return results matching given
campaign_namevalues.filter_campaign_optimization_supportOnly return results matching given
campaign_optimization_supportvalues.filter_campaign_optimization_type[ OptimizationType ]
Only return results matching given
campaign_optimization_typevalues.filter_campaign_optimize[ Boolean ]
Only return results matching given
campaign_optimizevalues.filter_campaign_status[ CampaignStatus ]
Only return results matching given
campaign_statusvalues.filter_campaign_type[ CampaignType ]
Only return results matching given
campaign_typevalues.filter_campaign_user_max_bid_set[ Boolean ]
Only return results matching given
campaign_user_max_bid_setvalues.filter_effective_allow_change_dowhod[ Boolean ]
Only return results matching given
effective_allow_change_dowhodvalues.filter_effective_conversion_value_factor_geFloat
Only return results where
effective_conversion_value_factoris equal or greater than this value.filter_effective_conversion_value_factor_leFloat
Only return results where
effective_conversion_value_factoris equal or lower than this value.filter_effective_conversion_value_geOnly return results where
effective_conversion_valueis equal or greater than this value.Min value: 1000
filter_effective_conversion_value_leOnly return results where
effective_conversion_valueis equal or lower than this value.Min value: 1000
filter_effective_conversion_value_sourceOnly return results matching given
effective_conversion_value_sourcevalues.filter_effective_conversion_value_typeOnly return results matching given
effective_conversion_value_typevalues.filter_performance_group_enabled[ Boolean ]
Only return results matching given
performance_group_enabledvalues.filter_performance_group_goal_typesOnly return results matching given
performance_group_goal_typesvalues.filter_performance_group_id[ Integer ]
Only return results matching given
performance_group_idvalues.filter_performance_group_name[ String ]
Only return results matching given
performance_group_namevalues.filter_performance_group_optimization_type[ OptimizationType ]
Only return results matching given
performance_group_optimization_typevalues.search_fieldsFields that should be searched using the
search_term.search_termString
Search term used to search the
search_fields.search_account_idString
Only return results where
account_idmatches the given string.search_account_nameString
Only return results where
account_namematches the given string.search_account_tags_userString
Only return results where
account_tags_usermatches the given string.search_adspert_account_idString
Only return results where
adspert_account_idmatches the given string.search_amz_portfolio_idString
Only return results where
amz_portfolio_idmatches the given string.search_amz_portfolio_nameString
Only return results where
amz_portfolio_namematches the given string.search_campaign_idString
Only return results where
campaign_idmatches the given string.search_campaign_labelsString
Only return results where
campaign_labelsmatches the given string.search_campaign_nameString
Only return results where
campaign_namematches the given string.search_performance_group_idString
Only return results where
performance_group_idmatches the given string.search_performance_group_nameString
Only return results where
performance_group_namematches the given string.sort_account_allow_change_dowhodSort results by
account_allow_change_dowhod.sort_account_click_optimizationSort results by
account_click_optimization.sort_account_conversion_valueSort results by
account_conversion_value.sort_account_conversion_value_factorSort results by
account_conversion_value_factor.sort_account_conversion_value_sourceSort results by
account_conversion_value_source.sort_account_conversion_value_typeSort results by
account_conversion_value_type.sort_account_currencySort results by
account_currency.sort_account_idSort results by
account_id.sort_account_is_demoSort results by
account_is_demo.sort_account_nameSort results by
account_name.sort_account_optimizeSort results by
account_optimize.sort_account_platformSort results by
account_platform.sort_adspert_account_idSort results by
adspert_account_id.sort_adspert_campaign_idSort results by
adspert_campaign_id.sort_adspert_portfolio_idSort results by
adspert_portfolio_id.sort_amz_portfolio_idSort results by
amz_portfolio_id.sort_amz_portfolio_nameSort results by
amz_portfolio_name.sort_budget_amountSort results by
budget_amount.sort_campaign_allow_change_dowhodSort results by
campaign_allow_change_dowhod.sort_campaign_amz_targeting_typeSort results by
campaign_amz_targeting_type.sort_campaign_conversion_valueSort results by
campaign_conversion_value.sort_campaign_conversion_value_factorSort results by
campaign_conversion_value_factor.sort_campaign_conversion_value_sourceSort results by
campaign_conversion_value_source.sort_campaign_conversion_value_typeSort results by
campaign_conversion_value_type.sort_campaign_eby_marketplace_idSort results by
campaign_eby_marketplace_id.sort_campaign_idSort results by
campaign_id.sort_campaign_nameSort results by
campaign_name.sort_campaign_optimization_supportSort results by
campaign_optimization_support.sort_campaign_optimization_typeSort results by
campaign_optimization_type.sort_campaign_optimizeSort results by
campaign_optimize.sort_campaign_statusSort results by
campaign_status.sort_campaign_typeSort results by
campaign_type.sort_effective_allow_change_dowhodSort results by
effective_allow_change_dowhod.sort_effective_conversion_valueSort results by
effective_conversion_value.sort_effective_conversion_value_factorSort results by
effective_conversion_value_factor.sort_effective_conversion_value_sourceSort results by
effective_conversion_value_source.sort_effective_conversion_value_typeSort results by
effective_conversion_value_type.sort_performance_group_enabledSort results by
performance_group_enabled.sort_performance_group_goal_typesSort results by
performance_group_goal_types.sort_performance_group_idSort results by
performance_group_id.sort_performance_group_nameSort results by
performance_group_name.sort_performance_group_optimization_typeSort results by
performance_group_optimization_type.offsetInteger
Start index for result list.
Default: 0
Min value: 0
limitInteger
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_idsearchableInteger
Adspert internal ID of the advertising account
account_idsearchableString
Ad platform specific ID of an advertising account.
account_namesearchableString
account_platformThe account’s advertising platform.
account_optimizeBoolean
If optimization by Adspert is enabled for this account.
account_tags_usersearchable[ String ]
account_is_demoBoolean
If the account is a generated account for demonstration purposes.
Demo accounts have no counterpart in the ad platform.
account_currencyString
performance_group_idsearchableInteger
Unique ID of the performance group
performance_group_namesearchableString
Unique name of the performance group.
performance_group_enabledBoolean
performance_group_optimization_typeOptimization 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_typeType of the performance group goal
⤷
goal_valueFloat
Value of the performance group goal.
goal_valueshould beNULLifgoal_typeisPROFIT-MAXIMIZATION.goal_valueshould be a ratio (> 0) ifgoal_typeisROAS,CRRandROI,goal_valueshould be specified in micros and be larger than 10000 ifgoal_typeisCOST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICK.⤷
goal_currencyCurrency of the performance group goal.
Currency is required for
COST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICKgoals.⤷
goal_microsValue for
COST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICKgoals.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_ratioFloat
Value for
ROAS,CRRandROIgoals.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_typesList of performance group goal types
adspert_portfolio_idAdspert internal ID of Amazon portfolio.
Composite ID specification:
{adspert_account_id}:{portfolio_id}amz_portfolio_idsearchableamz_portfolio_namesearchableString
adspert_campaign_idAdspert internal ID of the campaign.
Composite ID specification:
{adspert_account_id}:{campaign_id}campaign_idsearchablecampaign_namesearchableString
campaign_typecampaign_eby_marketplace_idString
campaign_optimizeBoolean
campaign_statuscampaign_labelssearchable[ String ]
campaign_optimization_typecampaign_optimization_supportcampaign_amz_targeting_typeAmazon campaign targeting type.
campaign_conversion_valueConversion value in micros
campaign_conversion_value_factorFloat
Conversion value factor
campaign_conversion_value_sourceSource of the conversion value e.g., platform, manual and product
campaign_conversion_value_typeType of the conversion value e.g., revenue and profit
campaign_user_max_bidObject
Max bid for the performance group or campaign
⤷
microsMonetary value in micros.
⤷
currencyCurrency of the monetary value.
campaign_user_min_bidObject
Min bid for the performance group or campaign
⤷
microsMonetary value in micros.
⤷
currencyCurrency of the monetary value.
campaign_allow_change_dowhodBoolean
If ad schedule bid adjustment (day-of-week/hour-of-day) optimization is enabled
account_conversion_value_sourceSource of the conversion value e.g., platform, manual and product
account_conversion_value_typeType of the conversion value e.g., revenue and profit
account_conversion_valueConversion value in micros
account_conversion_value_factorFloat
Conversion value factor
effective_conversion_value_sourceSource of the conversion value e.g., platform, manual and product
effective_conversion_value_typeType of the conversion value e.g., revenue and profit
effective_conversion_valueConversion value in micros
effective_conversion_value_factorFloat
Conversion value factor
account_click_optimizationBoolean
If the account is set for click optimization
account_allow_change_dowhodBoolean
If ad schedule bid adjustment (day-of-week/hour-of-day) optimization is enabled
effective_allow_change_dowhodBoolean
If ad schedule bid adjustment (day-of-week/hour-of-day) optimization is enabled
budget_amountExample
http
GET /v3/customers/7027038674/campaigns?limit=10&sort_campaign_amz_targeting_type=0&search_account_name=sit+tucan HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl
curl -i -X GET 'https://api.adspert.net/v3/customers/7027038674/campaigns?limit=10&sort_campaign_amz_targeting_type=0&search_account_name=sit+tucan' -H "Accept: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
httpie
http 'https://api.adspert.net/v3/customers/7027038674/campaigns?limit=10&sort_campaign_amz_targeting_type=0&search_account_name=sit+tucan' Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
python-requests
requests.get('https://api.adspert.net/v3/customers/7027038674/campaigns?limit=10&sort_campaign_amz_targeting_type=0&search_account_name=sit+tucan', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
response
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": 19990000, "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": 19990000, "campaign_conversion_value_factor": 4.36, "campaign_conversion_value_source": "MANUAL", "campaign_conversion_value_type": "PROFIT", "campaign_user_max_bid": { "micros": 19990000, "currency": "AED" }, "campaign_user_min_bid": { "micros": 19990000, "currency": "AED" }, "campaign_allow_change_dowhod": true, "account_conversion_value_source": "MANUAL", "account_conversion_value_type": "PROFIT", "account_conversion_value": 19990000, "account_conversion_value_factor": 2.24, "effective_conversion_value_source": "MANUAL", "effective_conversion_value_type": "PROFIT", "effective_conversion_value": 19990000, "effective_conversion_value_factor": 5.53, "account_click_optimization": true, "account_allow_change_dowhod": true, "effective_allow_change_dowhod": true, "budget_amount": 19990000 } ], "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 or x-www-form-urlencoded)
Name
Type
Description
adspert_campaign_idrequiredAdspert internal ID of the campaign.
Composite ID specification:
{adspert_account_id}:{campaign_id}conversion_valueConversion value in micros
Min value: 0
conversion_value_factorFloat
Conversion value factor
Min value: 0
Max value: 100
conversion_value_sourceSource of the conversion value e.g., platform, manual and product
conversion_value_typeType of the conversion value e.g., revenue and profit
user_max_bidObject
Max bid for the performance group or campaign
⤷
microsrequiredMonetary value in micros.
Min value: 1000
⤷
currencyrequiredCurrency of the monetary value.
user_min_bidObject
Min bid for the performance group or campaign
⤷
microsrequiredMonetary value in micros.
Min value: 1000
⤷
currencyrequiredCurrency of the monetary value.
allow_change_dowhodBoolean
If ad schedule bid adjustment (day-of-week/hour-of-day) optimization is enabled
initiatorString
Simple initiator field
Response Data (single object, json or csv or xlsx)
Name
Type
Description
unchanged[ Object ]
List of objects which had no effective change.
⤷
adspert_campaign_idSee request data description.
⤷
conversion_valueSee request data description.
⤷
conversion_value_factorFloat
See request data description.
⤷
conversion_value_sourceSee request data description.
⤷
conversion_value_typeSee request data description.
⤷
user_max_bidObject
See request data description.
⤷
microsSee request data description.
⤷
currencySee request data description.
⤷
user_min_bidObject
See request data description.
⤷
microsSee request data description.
⤷
currencySee request data description.
⤷
allow_change_dowhodBoolean
See request data description.
⤷
initiatorString
See request data description.
unknown[ Object ]
List of objects which could not be found.
⤷
adspert_campaign_idSee request data description.
⤷
conversion_valueSee request data description.
⤷
conversion_value_factorFloat
See request data description.
⤷
conversion_value_sourceSee request data description.
⤷
conversion_value_typeSee request data description.
⤷
user_max_bidObject
See request data description.
⤷
microsSee request data description.
⤷
currencySee request data description.
⤷
user_min_bidObject
See request data description.
⤷
microsSee request data description.
⤷
currencySee request data description.
⤷
allow_change_dowhodBoolean
See request data description.
⤷
initiatorString
See request data description.
updated[ Object ]
List of objects which have been updated.
⤷
adspert_campaign_idSee request data description.
⤷
conversion_valueSee request data description.
⤷
conversion_value_factorFloat
See request data description.
⤷
conversion_value_sourceSee request data description.
⤷
conversion_value_typeSee request data description.
⤷
user_max_bidObject
See request data description.
⤷
microsSee request data description.
⤷
currencySee request data description.
⤷
user_min_bidObject
See request data description.
⤷
microsSee request data description.
⤷
currencySee request data description.
⤷
allow_change_dowhodBoolean
See request data description.
⤷
initiatorString
See request data description.
Example
http
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": 19990000, "conversion_value_factor": 1.09, "conversion_value_source": "MANUAL", "conversion_value_type": "PROFIT", "user_max_bid": { "micros": 19990000, "currency": "AED" }, "user_min_bid": { "micros": 19990000, "currency": "AED" }, "allow_change_dowhod": true, "initiator": "sit dolor" } ]
curl
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": 19990000, "conversion_value_factor": 1.09, "conversion_value_source": "MANUAL", "conversion_value_type": "PROFIT", "user_max_bid": {"micros": 19990000, "currency": "AED"}, "user_min_bid": {"micros": 19990000, "currency": "AED"}, "allow_change_dowhod": true, "initiator": "sit dolor"}]'
httpie
echo '[ { "adspert_campaign_id": "123:5555", "allow_change_dowhod": true, "conversion_value": 19990000, "conversion_value_factor": 1.09, "conversion_value_source": "MANUAL", "conversion_value_type": "PROFIT", "initiator": "sit dolor", "user_max_bid": { "currency": "AED", "micros": 19990000 }, "user_min_bid": { "currency": "AED", "micros": 19990000 } } ]' | http PATCH https://api.adspert.net/v3/customers/7027038674/campaigns Accept:application/json Content-Type:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
python-requests
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': 19990000, 'conversion_value_factor': 1.09, 'conversion_value_source': 'MANUAL', 'conversion_value_type': 'PROFIT', 'user_max_bid': {'micros': 19990000, 'currency': 'AED'}, 'user_min_bid': {'micros': 19990000, 'currency': 'AED'}, 'allow_change_dowhod': True, 'initiator': 'sit dolor'}])
response
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": { "unchanged": [ { "adspert_campaign_id": "123:5555", "conversion_value": 19990000, "conversion_value_factor": 1.09, "conversion_value_source": "MANUAL", "conversion_value_type": "PROFIT", "user_max_bid": { "micros": 19990000, "currency": "AED" }, "user_min_bid": { "micros": 19990000, "currency": "AED" }, "allow_change_dowhod": true, "initiator": "sit dolor" } ], "unknown": [ { "adspert_campaign_id": "123:5555", "conversion_value": 19990000, "conversion_value_factor": 1.09, "conversion_value_source": "MANUAL", "conversion_value_type": "PROFIT", "user_max_bid": { "micros": 19990000, "currency": "AED" }, "user_min_bid": { "micros": 19990000, "currency": "AED" }, "allow_change_dowhod": true, "initiator": "sit dolor" } ], "updated": [ { "adspert_campaign_id": "123:5555", "conversion_value": 19990000, "conversion_value_factor": 1.09, "conversion_value_source": "MANUAL", "conversion_value_type": "PROFIT", "user_max_bid": { "micros": 19990000, "currency": "AED" }, "user_min_bid": { "micros": 19990000, "currency": "AED" }, "allow_change_dowhod": true, "initiator": "sit dolor" } ] }, "meta": {} }
CampaignListCollection
POST
- POST /v3/customers/(customer_id: int)/campaigns/list
Retrieve a list of campaigns via POST request.
Request Data (single object, json or x-www-form-urlencoded)
Name
Type
Description
search_fieldsFields that should be searched using the
search_term.search_termString
Search term used to search the
search_fields.offsetInteger
Start index for result list.
Default: 0
Min value: 0
limitInteger
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
includeFields to include in response data.
excludeFields to exclude in response data.
filter_account_allow_change_dowhod[ Boolean ]
Only return results matching given
account_allow_change_dowhodvalues.filter_account_click_optimization[ Boolean ]
Only return results matching given
account_click_optimizationvalues.filter_account_conversion_value_factor_geFloat
Only return results where
account_conversion_value_factoris equal or greater than this value.filter_account_conversion_value_factor_leFloat
Only return results where
account_conversion_value_factoris equal or lower than this value.filter_account_conversion_value_geOnly return results where
account_conversion_valueis equal or greater than this value.Min value: 1000
filter_account_conversion_value_leOnly return results where
account_conversion_valueis equal or lower than this value.Min value: 1000
filter_account_conversion_value_sourceOnly return results matching given
account_conversion_value_sourcevalues.filter_account_conversion_value_typeOnly return results matching given
account_conversion_value_typevalues.filter_account_currency[ String ]
Only return results matching given
account_currencyvalues.filter_account_id[ String ]
Only return results matching given
account_idvalues.filter_account_is_demo[ Boolean ]
Only return results matching given
account_is_demovalues.filter_account_name[ String ]
Only return results matching given
account_namevalues.filter_account_optimize[ Boolean ]
Only return results matching given
account_optimizevalues.filter_account_platform[ AdPlatform ]
Only return results matching given
account_platformvalues.filter_account_tags_user[ String ]
Only return results matching given
account_tags_uservalues.filter_adspert_account_id[ Integer ]
Only return results matching given
adspert_account_idvalues.filter_adspert_campaign_id[ CompositeID ]
Only return results matching given
adspert_campaign_idvalues.filter_adspert_portfolio_id[ CompositeID ]
Only return results matching given
adspert_portfolio_idvalues.filter_amz_portfolio_name[ String ]
Only return results matching given
amz_portfolio_namevalues.filter_budget_amount_geOnly return results where
budget_amountis equal or greater than this value.Min value: 1000
filter_budget_amount_leOnly return results where
budget_amountis equal or lower than this value.Min value: 1000
filter_campaign_allow_change_dowhod[ Boolean ]
Only return results matching given
campaign_allow_change_dowhodvalues.filter_campaign_amz_targeting_type[ AmzTargetingType ]
Only return results matching given
campaign_amz_targeting_typevalues.filter_campaign_conversion_value_factor_geFloat
Only return results where
campaign_conversion_value_factoris equal or greater than this value.filter_campaign_conversion_value_factor_leFloat
Only return results where
campaign_conversion_value_factoris equal or lower than this value.filter_campaign_conversion_value_factor_set[ Boolean ]
Only return results matching given
campaign_conversion_value_factor_setvalues.filter_campaign_conversion_value_geOnly return results where
campaign_conversion_valueis equal or greater than this value.Min value: 1000
filter_campaign_conversion_value_leOnly return results where
campaign_conversion_valueis equal or lower than this value.Min value: 1000
filter_campaign_conversion_value_set[ Boolean ]
Only return results matching given
campaign_conversion_value_setvalues.filter_campaign_conversion_value_sourceOnly return results matching given
campaign_conversion_value_sourcevalues.filter_campaign_conversion_value_typeOnly return results matching given
campaign_conversion_value_typevalues.filter_campaign_eby_marketplace_id[ String ]
Only return results matching given
campaign_eby_marketplace_idvalues.filter_campaign_labels[ String ]
Only return results matching given
campaign_labelsvalues.filter_campaign_name[ String ]
Only return results matching given
campaign_namevalues.filter_campaign_optimization_supportOnly return results matching given
campaign_optimization_supportvalues.filter_campaign_optimization_type[ OptimizationType ]
Only return results matching given
campaign_optimization_typevalues.filter_campaign_optimize[ Boolean ]
Only return results matching given
campaign_optimizevalues.filter_campaign_status[ CampaignStatus ]
Only return results matching given
campaign_statusvalues.filter_campaign_type[ CampaignType ]
Only return results matching given
campaign_typevalues.filter_campaign_user_max_bid_set[ Boolean ]
Only return results matching given
campaign_user_max_bid_setvalues.filter_effective_allow_change_dowhod[ Boolean ]
Only return results matching given
effective_allow_change_dowhodvalues.filter_effective_conversion_value_factor_geFloat
Only return results where
effective_conversion_value_factoris equal or greater than this value.filter_effective_conversion_value_factor_leFloat
Only return results where
effective_conversion_value_factoris equal or lower than this value.filter_effective_conversion_value_geOnly return results where
effective_conversion_valueis equal or greater than this value.Min value: 1000
filter_effective_conversion_value_leOnly return results where
effective_conversion_valueis equal or lower than this value.Min value: 1000
filter_effective_conversion_value_sourceOnly return results matching given
effective_conversion_value_sourcevalues.filter_effective_conversion_value_typeOnly return results matching given
effective_conversion_value_typevalues.filter_performance_group_enabled[ Boolean ]
Only return results matching given
performance_group_enabledvalues.filter_performance_group_goal_typesOnly return results matching given
performance_group_goal_typesvalues.filter_performance_group_id[ Integer ]
Only return results matching given
performance_group_idvalues.filter_performance_group_name[ String ]
Only return results matching given
performance_group_namevalues.filter_performance_group_optimization_type[ OptimizationType ]
Only return results matching given
performance_group_optimization_typevalues.search_account_idString
Only return results where
account_idmatches the given string.search_account_nameString
Only return results where
account_namematches the given string.search_account_tags_userString
Only return results where
account_tags_usermatches the given string.search_adspert_account_idString
Only return results where
adspert_account_idmatches the given string.search_amz_portfolio_idString
Only return results where
amz_portfolio_idmatches the given string.search_amz_portfolio_nameString
Only return results where
amz_portfolio_namematches the given string.search_campaign_idString
Only return results where
campaign_idmatches the given string.search_campaign_labelsString
Only return results where
campaign_labelsmatches the given string.search_campaign_nameString
Only return results where
campaign_namematches the given string.search_performance_group_idString
Only return results where
performance_group_idmatches the given string.search_performance_group_nameString
Only return results where
performance_group_namematches the given string.sort_account_allow_change_dowhodSort results by
account_allow_change_dowhod.sort_account_click_optimizationSort results by
account_click_optimization.sort_account_conversion_valueSort results by
account_conversion_value.sort_account_conversion_value_factorSort results by
account_conversion_value_factor.sort_account_conversion_value_sourceSort results by
account_conversion_value_source.sort_account_conversion_value_typeSort results by
account_conversion_value_type.sort_account_currencySort results by
account_currency.sort_account_idSort results by
account_id.sort_account_is_demoSort results by
account_is_demo.sort_account_nameSort results by
account_name.sort_account_optimizeSort results by
account_optimize.sort_account_platformSort results by
account_platform.sort_adspert_account_idSort results by
adspert_account_id.sort_adspert_campaign_idSort results by
adspert_campaign_id.sort_adspert_portfolio_idSort results by
adspert_portfolio_id.sort_amz_portfolio_idSort results by
amz_portfolio_id.sort_amz_portfolio_nameSort results by
amz_portfolio_name.sort_budget_amountSort results by
budget_amount.sort_campaign_allow_change_dowhodSort results by
campaign_allow_change_dowhod.sort_campaign_amz_targeting_typeSort results by
campaign_amz_targeting_type.sort_campaign_conversion_valueSort results by
campaign_conversion_value.sort_campaign_conversion_value_factorSort results by
campaign_conversion_value_factor.sort_campaign_conversion_value_sourceSort results by
campaign_conversion_value_source.sort_campaign_conversion_value_typeSort results by
campaign_conversion_value_type.sort_campaign_eby_marketplace_idSort results by
campaign_eby_marketplace_id.sort_campaign_idSort results by
campaign_id.sort_campaign_nameSort results by
campaign_name.sort_campaign_optimization_supportSort results by
campaign_optimization_support.sort_campaign_optimization_typeSort results by
campaign_optimization_type.sort_campaign_optimizeSort results by
campaign_optimize.sort_campaign_statusSort results by
campaign_status.sort_campaign_typeSort results by
campaign_type.sort_effective_allow_change_dowhodSort results by
effective_allow_change_dowhod.sort_effective_conversion_valueSort results by
effective_conversion_value.sort_effective_conversion_value_factorSort results by
effective_conversion_value_factor.sort_effective_conversion_value_sourceSort results by
effective_conversion_value_source.sort_effective_conversion_value_typeSort results by
effective_conversion_value_type.sort_performance_group_enabledSort results by
performance_group_enabled.sort_performance_group_goal_typesSort results by
performance_group_goal_types.sort_performance_group_idSort results by
performance_group_id.sort_performance_group_nameSort results by
performance_group_name.sort_performance_group_optimization_typeSort results by
performance_group_optimization_type.Response Data (object list, json or csv or xlsx)
Name
Type
Description
adspert_account_idsearchableInteger
Adspert internal ID of the advertising account
account_idsearchableString
Ad platform specific ID of an advertising account.
account_namesearchableString
account_platformThe account’s advertising platform.
account_optimizeBoolean
If optimization by Adspert is enabled for this account.
account_tags_usersearchable[ String ]
account_is_demoBoolean
If the account is a generated account for demonstration purposes.
Demo accounts have no counterpart in the ad platform.
account_currencyString
performance_group_idsearchableInteger
Unique ID of the performance group
performance_group_namesearchableString
Unique name of the performance group.
performance_group_enabledBoolean
performance_group_optimization_typeOptimization 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_typeType of the performance group goal
⤷
goal_valueFloat
Value of the performance group goal.
goal_valueshould beNULLifgoal_typeisPROFIT-MAXIMIZATION.goal_valueshould be a ratio (> 0) ifgoal_typeisROAS,CRRandROI,goal_valueshould be specified in micros and be larger than 10000 ifgoal_typeisCOST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICK.⤷
goal_currencyCurrency of the performance group goal.
Currency is required for
COST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICKgoals.⤷
goal_microsValue for
COST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICKgoals.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_ratioFloat
Value for
ROAS,CRRandROIgoals.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_typesList of performance group goal types
adspert_portfolio_idAdspert internal ID of Amazon portfolio.
Composite ID specification:
{adspert_account_id}:{portfolio_id}amz_portfolio_idsearchableamz_portfolio_namesearchableString
adspert_campaign_idAdspert internal ID of the campaign.
Composite ID specification:
{adspert_account_id}:{campaign_id}campaign_idsearchablecampaign_namesearchableString
campaign_typecampaign_eby_marketplace_idString
campaign_optimizeBoolean
campaign_statuscampaign_labelssearchable[ String ]
campaign_optimization_typecampaign_optimization_supportcampaign_amz_targeting_typeAmazon campaign targeting type.
campaign_conversion_valueConversion value in micros
campaign_conversion_value_factorFloat
Conversion value factor
campaign_conversion_value_sourceSource of the conversion value e.g., platform, manual and product
campaign_conversion_value_typeType of the conversion value e.g., revenue and profit
campaign_user_max_bidObject
Max bid for the performance group or campaign
⤷
microsMonetary value in micros.
⤷
currencyCurrency of the monetary value.
campaign_user_min_bidObject
Min bid for the performance group or campaign
⤷
microsMonetary value in micros.
⤷
currencyCurrency of the monetary value.
campaign_allow_change_dowhodBoolean
If ad schedule bid adjustment (day-of-week/hour-of-day) optimization is enabled
account_conversion_value_sourceSource of the conversion value e.g., platform, manual and product
account_conversion_value_typeType of the conversion value e.g., revenue and profit
account_conversion_valueConversion value in micros
account_conversion_value_factorFloat
Conversion value factor
effective_conversion_value_sourceSource of the conversion value e.g., platform, manual and product
effective_conversion_value_typeType of the conversion value e.g., revenue and profit
effective_conversion_valueConversion value in micros
effective_conversion_value_factorFloat
Conversion value factor
account_click_optimizationBoolean
If the account is set for click optimization
account_allow_change_dowhodBoolean
If ad schedule bid adjustment (day-of-week/hour-of-day) optimization is enabled
effective_allow_change_dowhodBoolean
If ad schedule bid adjustment (day-of-week/hour-of-day) optimization is enabled
budget_amountExample
http
POST /v3/customers/7027038674/campaigns/list 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" ], "filter_account_allow_change_dowhod": [ true ], "filter_account_click_optimization": [ true ], "filter_account_conversion_value_factor_ge": 9.53, "filter_account_conversion_value_factor_le": 10.98, "filter_account_conversion_value_ge": 19990000, "filter_account_conversion_value_le": 19990000, "filter_account_conversion_value_source": [ "MANUAL" ], "filter_account_conversion_value_type": [ "PROFIT" ], "filter_account_currency": [ "ipsum adlora" ], "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": 19990000, "filter_budget_amount_le": 19990000, "filter_campaign_allow_change_dowhod": [ true ], "filter_campaign_amz_targeting_type": [ "AUTO" ], "filter_campaign_conversion_value_factor_ge": 5.12, "filter_campaign_conversion_value_factor_le": 2.47, "filter_campaign_conversion_value_factor_set": [ true ], "filter_campaign_conversion_value_ge": 19990000, "filter_campaign_conversion_value_le": 19990000, "filter_campaign_conversion_value_set": [ true ], "filter_campaign_conversion_value_source": [ "MANUAL" ], "filter_campaign_conversion_value_type": [ "PROFIT" ], "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_campaign_user_max_bid_set": [ true ], "filter_effective_allow_change_dowhod": [ true ], "filter_effective_conversion_value_factor_ge": 7.34, "filter_effective_conversion_value_factor_le": 11.56, "filter_effective_conversion_value_ge": 19990000, "filter_effective_conversion_value_le": 19990000, "filter_effective_conversion_value_source": [ "MANUAL" ], "filter_effective_conversion_value_type": [ "PROFIT" ], "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" ], "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_allow_change_dowhod": -8, "sort_account_click_optimization": 9, "sort_account_conversion_value": 1, "sort_account_conversion_value_factor": -4, "sort_account_conversion_value_source": 1, "sort_account_conversion_value_type": 5, "sort_account_currency": 1, "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_campaign_allow_change_dowhod": 9, "sort_campaign_amz_targeting_type": 0, "sort_campaign_conversion_value": 3, "sort_campaign_conversion_value_factor": 9, "sort_campaign_conversion_value_source": -2, "sort_campaign_conversion_value_type": -2, "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_effective_allow_change_dowhod": -4, "sort_effective_conversion_value": 0, "sort_effective_conversion_value_factor": 1, "sort_effective_conversion_value_source": 0, "sort_effective_conversion_value_type": -8, "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 }
curl
curl -i -X POST https://api.adspert.net/v3/customers/7027038674/campaigns/list -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..." --data-raw '{"exclude": ["elit.amet"], "filter_account_allow_change_dowhod": [true], "filter_account_click_optimization": [true], "filter_account_conversion_value_factor_ge": 9.53, "filter_account_conversion_value_factor_le": 10.98, "filter_account_conversion_value_ge": 19990000, "filter_account_conversion_value_le": 19990000, "filter_account_conversion_value_source": ["MANUAL"], "filter_account_conversion_value_type": ["PROFIT"], "filter_account_currency": ["ipsum adlora"], "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": 19990000, "filter_budget_amount_le": 19990000, "filter_campaign_allow_change_dowhod": [true], "filter_campaign_amz_targeting_type": ["AUTO"], "filter_campaign_conversion_value_factor_ge": 5.12, "filter_campaign_conversion_value_factor_le": 2.47, "filter_campaign_conversion_value_factor_set": [true], "filter_campaign_conversion_value_ge": 19990000, "filter_campaign_conversion_value_le": 19990000, "filter_campaign_conversion_value_set": [true], "filter_campaign_conversion_value_source": ["MANUAL"], "filter_campaign_conversion_value_type": ["PROFIT"], "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_campaign_user_max_bid_set": [true], "filter_effective_allow_change_dowhod": [true], "filter_effective_conversion_value_factor_ge": 7.34, "filter_effective_conversion_value_factor_le": 11.56, "filter_effective_conversion_value_ge": 19990000, "filter_effective_conversion_value_le": 19990000, "filter_effective_conversion_value_source": ["MANUAL"], "filter_effective_conversion_value_type": ["PROFIT"], "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"], "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_allow_change_dowhod": -8, "sort_account_click_optimization": 9, "sort_account_conversion_value": 1, "sort_account_conversion_value_factor": -4, "sort_account_conversion_value_source": 1, "sort_account_conversion_value_type": 5, "sort_account_currency": 1, "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_campaign_allow_change_dowhod": 9, "sort_campaign_amz_targeting_type": 0, "sort_campaign_conversion_value": 3, "sort_campaign_conversion_value_factor": 9, "sort_campaign_conversion_value_source": -2, "sort_campaign_conversion_value_type": -2, "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_effective_allow_change_dowhod": -4, "sort_effective_conversion_value": 0, "sort_effective_conversion_value_factor": 1, "sort_effective_conversion_value_source": 0, "sort_effective_conversion_value_type": -8, "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}'
httpie
echo '{ "exclude": [ "elit.amet" ], "filter_account_allow_change_dowhod": [ true ], "filter_account_click_optimization": [ true ], "filter_account_conversion_value_factor_ge": 9.53, "filter_account_conversion_value_factor_le": 10.98, "filter_account_conversion_value_ge": 19990000, "filter_account_conversion_value_le": 19990000, "filter_account_conversion_value_source": [ "MANUAL" ], "filter_account_conversion_value_type": [ "PROFIT" ], "filter_account_currency": [ "ipsum adlora" ], "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": 19990000, "filter_budget_amount_le": 19990000, "filter_campaign_allow_change_dowhod": [ true ], "filter_campaign_amz_targeting_type": [ "AUTO" ], "filter_campaign_conversion_value_factor_ge": 5.12, "filter_campaign_conversion_value_factor_le": 2.47, "filter_campaign_conversion_value_factor_set": [ true ], "filter_campaign_conversion_value_ge": 19990000, "filter_campaign_conversion_value_le": 19990000, "filter_campaign_conversion_value_set": [ true ], "filter_campaign_conversion_value_source": [ "MANUAL" ], "filter_campaign_conversion_value_type": [ "PROFIT" ], "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_campaign_user_max_bid_set": [ true ], "filter_effective_allow_change_dowhod": [ true ], "filter_effective_conversion_value_factor_ge": 7.34, "filter_effective_conversion_value_factor_le": 11.56, "filter_effective_conversion_value_ge": 19990000, "filter_effective_conversion_value_le": 19990000, "filter_effective_conversion_value_source": [ "MANUAL" ], "filter_effective_conversion_value_type": [ "PROFIT" ], "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" ], "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_allow_change_dowhod": -8, "sort_account_click_optimization": 9, "sort_account_conversion_value": 1, "sort_account_conversion_value_factor": -4, "sort_account_conversion_value_source": 1, "sort_account_conversion_value_type": 5, "sort_account_currency": 1, "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_campaign_allow_change_dowhod": 9, "sort_campaign_amz_targeting_type": 0, "sort_campaign_conversion_value": 3, "sort_campaign_conversion_value_factor": 9, "sort_campaign_conversion_value_source": -2, "sort_campaign_conversion_value_type": -2, "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_effective_allow_change_dowhod": -4, "sort_effective_conversion_value": 0, "sort_effective_conversion_value_factor": 1, "sort_effective_conversion_value_source": 0, "sort_effective_conversion_value_type": -8, "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 }' | http POST https://api.adspert.net/v3/customers/7027038674/campaigns/list Accept:application/json Content-Type:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
python-requests
requests.post('https://api.adspert.net/v3/customers/7027038674/campaigns/list', headers={'Accept': 'application/json', 'Content-Type': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'}, json={'exclude': ['elit.amet'], 'filter_account_allow_change_dowhod': [True], 'filter_account_click_optimization': [True], 'filter_account_conversion_value_factor_ge': 9.53, 'filter_account_conversion_value_factor_le': 10.98, 'filter_account_conversion_value_ge': 19990000, 'filter_account_conversion_value_le': 19990000, 'filter_account_conversion_value_source': ['MANUAL'], 'filter_account_conversion_value_type': ['PROFIT'], 'filter_account_currency': ['ipsum adlora'], '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': 19990000, 'filter_budget_amount_le': 19990000, 'filter_campaign_allow_change_dowhod': [True], 'filter_campaign_amz_targeting_type': ['AUTO'], 'filter_campaign_conversion_value_factor_ge': 5.12, 'filter_campaign_conversion_value_factor_le': 2.47, 'filter_campaign_conversion_value_factor_set': [True], 'filter_campaign_conversion_value_ge': 19990000, 'filter_campaign_conversion_value_le': 19990000, 'filter_campaign_conversion_value_set': [True], 'filter_campaign_conversion_value_source': ['MANUAL'], 'filter_campaign_conversion_value_type': ['PROFIT'], '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_campaign_user_max_bid_set': [True], 'filter_effective_allow_change_dowhod': [True], 'filter_effective_conversion_value_factor_ge': 7.34, 'filter_effective_conversion_value_factor_le': 11.56, 'filter_effective_conversion_value_ge': 19990000, 'filter_effective_conversion_value_le': 19990000, 'filter_effective_conversion_value_source': ['MANUAL'], 'filter_effective_conversion_value_type': ['PROFIT'], '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'], '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_allow_change_dowhod': -8, 'sort_account_click_optimization': 9, 'sort_account_conversion_value': 1, 'sort_account_conversion_value_factor': -4, 'sort_account_conversion_value_source': 1, 'sort_account_conversion_value_type': 5, 'sort_account_currency': 1, '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_campaign_allow_change_dowhod': 9, 'sort_campaign_amz_targeting_type': 0, 'sort_campaign_conversion_value': 3, 'sort_campaign_conversion_value_factor': 9, 'sort_campaign_conversion_value_source': -2, 'sort_campaign_conversion_value_type': -2, '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_effective_allow_change_dowhod': -4, 'sort_effective_conversion_value': 0, 'sort_effective_conversion_value_factor': 1, 'sort_effective_conversion_value_source': 0, 'sort_effective_conversion_value_type': -8, '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})
response
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": 19990000, "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": 19990000, "campaign_conversion_value_factor": 4.36, "campaign_conversion_value_source": "MANUAL", "campaign_conversion_value_type": "PROFIT", "campaign_user_max_bid": { "micros": 19990000, "currency": "AED" }, "campaign_user_min_bid": { "micros": 19990000, "currency": "AED" }, "campaign_allow_change_dowhod": true, "account_conversion_value_source": "MANUAL", "account_conversion_value_type": "PROFIT", "account_conversion_value": 19990000, "account_conversion_value_factor": 2.24, "effective_conversion_value_source": "MANUAL", "effective_conversion_value_type": "PROFIT", "effective_conversion_value": 19990000, "effective_conversion_value_factor": 5.53, "account_click_optimization": true, "account_allow_change_dowhod": true, "effective_allow_change_dowhod": true, "budget_amount": 19990000 } ], "meta": {} }
AmzSponsoredProductsCampaignCreateCollection [DEPRECATED]
GET
- GET /v3/customers/(customer_id: int)/campaigns/creation-queue/amazon/sp
Retrieve list of campaigns to be created.
DEPRECATED:use /v3/(CUS)/management/create/amazon/sp insteadQuery Params
Name
Type
Description
includeFields to include in response data.
excludeFields to exclude in response data.
filter_target_expressionOnly return results matching given
target_expressionvalues.filter_account_currency[ String ]
Only return results matching given
account_currencyvalues.filter_account_id[ String ]
Only return results matching given
account_idvalues.filter_account_is_demo[ Boolean ]
Only return results matching given
account_is_demovalues.filter_account_name[ String ]
Only return results matching given
account_namevalues.filter_account_optimize[ Boolean ]
Only return results matching given
account_optimizevalues.filter_account_platform[ AdPlatform ]
Only return results matching given
account_platformvalues.filter_account_tags_user[ String ]
Only return results matching given
account_tags_uservalues.filter_adgroup_name[ String ]
Only return results matching given
adgroups.namevalues.Min length: 1
Max length: 255
filter_adspert_account_id[ Integer ]
Only return results matching given
adspert_account_idvalues.filter_adspert_portfolio_id[ CompositeID ]
Only return results matching given
adspert_portfolio_idvalues.filter_allow_change_dowhod[ Boolean ]
Only return results matching given
allow_change_dowhodvalues.filter_amz_portfolio_name[ String ]
Only return results matching given
amz_portfolio_namevalues.filter_amz_targeting_type[ AmzTargetingType ]
Only return results matching given
amz_targeting_typevalues.filter_bidding_strategyOnly return results matching given
bidding_strategyvalues.filter_campaign_name[ String ]
Only return results matching given
namevalues.filter_campaign_type[ CampaignType ]
Only return results matching given
campaign_typevalues.filter_daily_budget_geOnly return results where
daily_budgetis equal or greater than this value.Min value: 1000
filter_daily_budget_leOnly return results where
daily_budgetis equal or lower than this value.Min value: 1000
filter_default_max_cpc_geOnly return results where
adgroups.default_max_cpcis equal or greater than this value.Min value: 1000
filter_default_max_cpc_leOnly return results where
adgroups.default_max_cpcis equal or lower than this value.Min value: 1000
filter_end_date_geOnly return results where
end_dateis equal or greater than this value.filter_end_date_leOnly return results where
end_dateis equal or lower than this value.filter_performance_group_enabled[ Boolean ]
Only return results matching given
performance_group_enabledvalues.filter_performance_group_goal_typesOnly return results matching given
performance_group_goal_typesvalues.filter_performance_group_id[ Integer ]
Only return results matching given
performance_group_idvalues.filter_performance_group_name[ String ]
Only return results matching given
performance_group_namevalues.filter_performance_group_optimization_type[ OptimizationType ]
Only return results matching given
performance_group_optimization_typevalues.filter_start_date_geOnly return results where
start_dateis equal or greater than this value.filter_start_date_leOnly return results where
start_dateis equal or lower than this value.search_fieldsFields that should be searched using the
search_term.search_termString
Search term used to search the
search_fields.search_product_nameString
Only return results where
product_namematches the given string.search_skuString
Only return results where
skumatches the given string.search_asinString
Only return results where
asinmatches the given string.search_account_idString
Only return results where
account_idmatches the given string.search_account_nameString
Only return results where
account_namematches the given string.search_account_tags_userString
Only return results where
account_tags_usermatches the given string.search_adgroup_nameString
Only return results where
adgroups.namematches the given string.search_adspert_account_idString
Only return results where
adspert_account_idmatches the given string.search_amz_portfolio_idString
Only return results where
amz_portfolio_idmatches the given string.search_amz_portfolio_nameString
Only return results where
amz_portfolio_namematches the given string.search_campaign_nameString
Only return results where
namematches the given string.search_performance_group_idString
Only return results where
performance_group_idmatches the given string.search_performance_group_nameString
Only return results where
performance_group_namematches the given string.sort_account_currencySort results by
account_currency.sort_account_idSort results by
account_id.sort_account_is_demoSort results by
account_is_demo.sort_account_nameSort results by
account_name.sort_account_optimizeSort results by
account_optimize.sort_account_platformSort results by
account_platform.sort_adgroup_nameSort results by
adgroups.name.sort_adspert_account_idSort results by
adspert_account_id.sort_adspert_portfolio_idSort results by
adspert_portfolio_id.sort_allow_change_dowhodSort results by
allow_change_dowhod.sort_amz_portfolio_idSort results by
amz_portfolio_id.sort_amz_portfolio_nameSort results by
amz_portfolio_name.sort_amz_targeting_typeSort results by
amz_targeting_type.sort_bidding_strategySort results by
bidding_strategy.sort_campaign_creation_idSort results by
campaign_creation_id.sort_campaign_nameSort results by
name.sort_campaign_typeSort results by
campaign_type.sort_daily_budgetSort results by
daily_budget.sort_default_max_cpcSort results by
adgroups.default_max_cpc.sort_end_dateSort results by
end_date.sort_performance_group_enabledSort results by
performance_group_enabled.sort_performance_group_goal_typesSort results by
performance_group_goal_types.sort_performance_group_idSort results by
performance_group_id.sort_performance_group_nameSort results by
performance_group_name.sort_performance_group_optimization_typeSort results by
performance_group_optimization_type.sort_start_dateSort results by
start_date.offsetInteger
Start index for result list.
Default: 0
Min value: 0
limitInteger
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_idsearchableInteger
Adspert internal ID of the advertising account
account_idsearchableString
Ad platform specific ID of an advertising account.
account_namesearchableString
account_platformThe account’s advertising platform.
account_optimizeBoolean
If optimization by Adspert is enabled for this account.
account_tags_usersearchable[ String ]
account_is_demoBoolean
If the account is a generated account for demonstration purposes.
Demo accounts have no counterpart in the ad platform.
account_currencyString
performance_group_idsearchableInteger
Unique ID of the performance group
performance_group_namesearchableString
Unique name of the performance group.
performance_group_optimization_typeOptimization type of the performance group.
Only campaigns of the same optimization type can be added to a given performance group.
performance_group_enabledBoolean
performance_group_goals[ Object ]
List of performance group goals
⤷
goal_typeType of the performance group goal
⤷
goal_valueFloat
Value of the performance group goal.
goal_valueshould beNULLifgoal_typeisPROFIT-MAXIMIZATION.goal_valueshould be a ratio (> 0) ifgoal_typeisROAS,CRRandROI,goal_valueshould be specified in micros and be larger than 10000 ifgoal_typeisCOST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICK.⤷
goal_currencyCurrency of the performance group goal.
Currency is required for
COST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICKgoals.⤷
goal_microsValue for
COST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICKgoals.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_ratioFloat
Value for
ROAS,CRRandROIgoals.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_typesList of performance group goal types
adspert_portfolio_idAdspert internal ID of Amazon portfolio.
Composite ID specification:
{adspert_account_id}:{portfolio_id}amz_portfolio_idsearchableamz_portfolio_namesearchableString
campaign_creation_idInteger
namesearchableString
Campaign name must be unique for the account (including any Campaigns already in the Queue).
Maximum length of 128 characters for Amazon sellers and 116 characters for Amazon Vendors.
campaign_typeamz_targeting_typeAmazon campaign targeting type.
bidding_strategyallow_change_dowhodBoolean
If ad schedule bid adjustment (day-of-week/hour-of-day) optimization is enabled
daily_budgetstart_dateend_dateadgroups[ Object ]
List of AdGroups to be created.
⤷
adgroup_creation_idInteger
⤷
namesearchableString
⤷
default_max_cpc⤷
target_bids[ Object ]
⤷
target_expression⤷
bidMin value: 1000
⤷
products[ Object ]
⤷
product_ad_creation_idInteger
⤷
skuString
Either ASIN or SKU is required.
⤷
asinString
Either ASIN or SKU is required.
For Amazon Vendors ASIN is always required.
⤷
namerequiredString
Name of the product
Example
http
GET /v3/customers/7027038674/campaigns/creation-queue/amazon/sp?offset=0&sort_performance_group_optimization_type=1&filter_account_tags_user=vehicula+amet HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl
curl -i -X GET 'https://api.adspert.net/v3/customers/7027038674/campaigns/creation-queue/amazon/sp?offset=0&sort_performance_group_optimization_type=1&filter_account_tags_user=vehicula+amet' -H "Accept: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
httpie
http 'https://api.adspert.net/v3/customers/7027038674/campaigns/creation-queue/amazon/sp?offset=0&sort_performance_group_optimization_type=1&filter_account_tags_user=vehicula+amet' Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
python-requests
requests.get('https://api.adspert.net/v3/customers/7027038674/campaigns/creation-queue/amazon/sp?offset=0&sort_performance_group_optimization_type=1&filter_account_tags_user=vehicula+amet', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
response
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": 19990000, "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", "campaign_creation_id": 8306624943, "name": "tucan lorem", "campaign_type": "AMAZON-SPONSORED-BRANDS", "amz_targeting_type": "AUTO", "bidding_strategy": "AUTO-FOR-SALES", "allow_change_dowhod": true, "daily_budget": 19990000, "start_date": "2018-10-21", "end_date": "2018-10-21", "adgroups": [ { "adgroup_creation_id": 7988567316, "name": "tucan lorem", "default_max_cpc": 19990000, "target_bids": [ { "target_expression": "ASINACCESSORYRELATED", "bid": 19990000 } ], "products": [ { "product_ad_creation_id": 3366613906, "sku": "00011", "asin": "B000000001", "name": "tucan lorem" } ] } ] } ], "meta": { "pagination": { "offset": 0, "limit": 10, "total": 74, "sort": { "adspert_account_id": 1 } } } }
POST
- POST /v3/customers/(customer_id: int)/campaigns/creation-queue/amazon/sp
Add Amazon SP campaign to creation queue
DEPRECATED:use /v3/(CUS)/management/create/amazon/sp insteadRequest Data (single object, json or x-www-form-urlencoded)
Name
Type
Description
adspert_account_idrequiredInteger
Adspert internal ID of the advertising account
performance_group_idInteger
Unique ID of the performance group
amz_portfolio_idcampaign_creation_idInteger
namerequiredString
Campaign name must be unique for the account (including any Campaigns already in the Queue).
Maximum length of 128 characters for Amazon sellers and 116 characters for Amazon Vendors.
campaign_typeamz_targeting_typeAmazon campaign targeting type.
bidding_strategyrequiredallow_change_dowhodBoolean
If ad schedule bid adjustment (day-of-week/hour-of-day) optimization is enabled
Default: False
daily_budgetrequiredMin value: 1000000
start_daterequiredend_dateadgroupsrequired[ Object ]
List of AdGroups to be created.
Min items: 1
⤷
adgroup_creation_idInteger
⤷
namerequiredString
Min length: 1
Max length: 255
⤷
default_max_cpcrequiredMin value: 1000
⤷
target_bids[ Object ]
⤷
target_expression⤷
bidMin value: 1000
⤷
productsrequired[ Object ]
Min items: 1
⤷
product_ad_creation_idInteger
⤷
skuString
Either ASIN or SKU is required.
⤷
asinString
Either ASIN or SKU is required.
For Amazon Vendors ASIN is always required.
⤷
namerequiredString
Name of the product
validate_onlyBoolean
If set to
TruePATCH/POST requests will only be validated, and will not (after successful validation) be saved.Default value is
False.Example
http
POST /v3/customers/7027038674/campaigns/creation-queue/amazon/sp HTTP/1.1 Host: api.adspert.net Accept: application/json Content-Type: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5... { "adspert_account_id": 123, "performance_group_id": "1245", "amz_portfolio_id": "9999", "campaign_creation_id": 8306624943, "name": "tucan lorem", "campaign_type": "AMAZON-SPONSORED-BRANDS", "amz_targeting_type": "AUTO", "bidding_strategy": "AUTO-FOR-SALES", "allow_change_dowhod": true, "daily_budget": 19990000, "start_date": "2018-10-21", "end_date": "2018-10-21", "adgroups": [ { "adgroup_creation_id": 7988567316, "name": "tucan lorem", "default_max_cpc": 19990000, "target_bids": [ { "target_expression": "ASINACCESSORYRELATED", "bid": 19990000 } ], "products": [ { "product_ad_creation_id": 3366613906, "sku": "00011", "asin": "B000000001", "name": "tucan lorem" } ] } ], "validate_only": true }
curl
curl -i -X POST https://api.adspert.net/v3/customers/7027038674/campaigns/creation-queue/amazon/sp -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..." --data-raw '{"adgroups": [{"adgroup_creation_id": 7988567316, "name": "tucan lorem", "default_max_cpc": 19990000, "target_bids": [{"target_expression": "ASINACCESSORYRELATED", "bid": 19990000}], "products": [{"product_ad_creation_id": 3366613906, "sku": "00011", "asin": "B000000001", "name": "tucan lorem"}]}], "adspert_account_id": 123, "allow_change_dowhod": true, "amz_portfolio_id": "9999", "amz_targeting_type": "AUTO", "bidding_strategy": "AUTO-FOR-SALES", "campaign_creation_id": 8306624943, "campaign_type": "AMAZON-SPONSORED-BRANDS", "daily_budget": 19990000, "end_date": "2018-10-21", "name": "tucan lorem", "performance_group_id": "1245", "start_date": "2018-10-21", "validate_only": true}'
httpie
echo '{ "adgroups": [ { "adgroup_creation_id": 7988567316, "default_max_cpc": 19990000, "name": "tucan lorem", "products": [ { "asin": "B000000001", "name": "tucan lorem", "product_ad_creation_id": 3366613906, "sku": "00011" } ], "target_bids": [ { "bid": 19990000, "target_expression": "ASINACCESSORYRELATED" } ] } ], "adspert_account_id": 123, "allow_change_dowhod": true, "amz_portfolio_id": "9999", "amz_targeting_type": "AUTO", "bidding_strategy": "AUTO-FOR-SALES", "campaign_creation_id": 8306624943, "campaign_type": "AMAZON-SPONSORED-BRANDS", "daily_budget": 19990000, "end_date": "2018-10-21", "name": "tucan lorem", "performance_group_id": "1245", "start_date": "2018-10-21", "validate_only": true }' | http POST https://api.adspert.net/v3/customers/7027038674/campaigns/creation-queue/amazon/sp Accept:application/json Content-Type:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
python-requests
requests.post('https://api.adspert.net/v3/customers/7027038674/campaigns/creation-queue/amazon/sp', headers={'Accept': 'application/json', 'Content-Type': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'}, json={'adgroups': [{'adgroup_creation_id': 7988567316, 'name': 'tucan lorem', 'default_max_cpc': 19990000, 'target_bids': [{'target_expression': 'ASINACCESSORYRELATED', 'bid': 19990000}], 'products': [{'product_ad_creation_id': 3366613906, 'sku': '00011', 'asin': 'B000000001', 'name': 'tucan lorem'}]}], 'adspert_account_id': 123, 'allow_change_dowhod': True, 'amz_portfolio_id': '9999', 'amz_targeting_type': 'AUTO', 'bidding_strategy': 'AUTO-FOR-SALES', 'campaign_creation_id': 8306624943, 'campaign_type': 'AMAZON-SPONSORED-BRANDS', 'daily_budget': 19990000, 'end_date': '2018-10-21', 'name': 'tucan lorem', 'performance_group_id': '1245', 'start_date': '2018-10-21', 'validate_only': True})
response
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": null, "meta": {} }
DELETE
- DELETE /v3/customers/(customer_id: int)/campaigns/creation-queue/amazon/sp
Bulk delete Amazon SP campaign in creation queue
DEPRECATED:use /v3/(CUS)/management/create/amazon/sp insteadRequest Data (object list, json or x-www-form-urlencoded)
Name
Type
Description
campaign_creation_idInteger
Example
http
DELETE /v3/customers/7027038674/campaigns/creation-queue/amazon/sp HTTP/1.1 Host: api.adspert.net Accept: application/json Content-Type: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5... [ { "campaign_creation_id": 8306624943 } ]
curl
curl -i -X DELETE https://api.adspert.net/v3/customers/7027038674/campaigns/creation-queue/amazon/sp -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..." --data-raw '[{"campaign_creation_id": 8306624943}]'
httpie
echo '[ { "campaign_creation_id": 8306624943 } ]' | http DELETE https://api.adspert.net/v3/customers/7027038674/campaigns/creation-queue/amazon/sp Accept:application/json Content-Type:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
python-requests
requests.delete('https://api.adspert.net/v3/customers/7027038674/campaigns/creation-queue/amazon/sp', headers={'Accept': 'application/json', 'Content-Type': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'}, json=[{'campaign_creation_id': 8306624943}])
response
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": null, "meta": {} }
AmzSponsoredProductsCampaignCreateResource [DEPRECATED]
PATCH
- PATCH /v3/customers/(customer_id: int)/campaigns/creation-queue/amazon/sp/(campaign_creation_id: int)
Update Amazon SP campaign in queue.
DEPRECATED:use /v3/(CUS)/management/create/amazon/sp/{campaign_creation_id:int} insteadRequest Data (single object, json or x-www-form-urlencoded)
Name
Type
Description
adspert_account_idrequiredInteger
Adspert internal ID of the advertising account
performance_group_idInteger
Unique ID of the performance group
amz_portfolio_idcampaign_creation_idInteger
namerequiredString
Campaign name must be unique for the account (including any Campaigns already in the Queue).
Maximum length of 128 characters for Amazon sellers and 116 characters for Amazon Vendors.
campaign_typeamz_targeting_typeAmazon campaign targeting type.
bidding_strategyrequiredallow_change_dowhodBoolean
If ad schedule bid adjustment (day-of-week/hour-of-day) optimization is enabled
Default: False
daily_budgetrequiredMin value: 1000000
start_daterequiredend_dateadgroupsrequired[ Object ]
List of AdGroups to be created.
Min items: 1
⤷
adgroup_creation_idInteger
⤷
namerequiredString
Min length: 1
Max length: 255
⤷
default_max_cpcrequiredMin value: 1000
⤷
target_bids[ Object ]
⤷
target_expression⤷
bidMin value: 1000
⤷
productsrequired[ Object ]
Min items: 1
⤷
product_ad_creation_idInteger
⤷
skuString
Either ASIN or SKU is required.
⤷
asinString
Either ASIN or SKU is required.
For Amazon Vendors ASIN is always required.
⤷
namerequiredString
Name of the product
validate_onlyBoolean
If set to
TruePATCH/POST requests will only be validated, and will not (after successful validation) be saved.Default value is
False.Example
http
PATCH /v3/customers/7027038674/campaigns/creation-queue/amazon/sp/8306624943 HTTP/1.1 Host: api.adspert.net Accept: application/json Content-Type: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5... { "adspert_account_id": 123, "performance_group_id": "1245", "amz_portfolio_id": "9999", "campaign_creation_id": 8306624943, "name": "tucan lorem", "campaign_type": "AMAZON-SPONSORED-BRANDS", "amz_targeting_type": "AUTO", "bidding_strategy": "AUTO-FOR-SALES", "allow_change_dowhod": true, "daily_budget": 19990000, "start_date": "2018-10-21", "end_date": "2018-10-21", "adgroups": [ { "adgroup_creation_id": 7988567316, "name": "tucan lorem", "default_max_cpc": 19990000, "target_bids": [ { "target_expression": "ASINACCESSORYRELATED", "bid": 19990000 } ], "products": [ { "product_ad_creation_id": 3366613906, "sku": "00011", "asin": "B000000001", "name": "tucan lorem" } ] } ], "validate_only": true }
curl
curl -i -X PATCH https://api.adspert.net/v3/customers/7027038674/campaigns/creation-queue/amazon/sp/8306624943 -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..." --data-raw '{"adgroups": [{"adgroup_creation_id": 7988567316, "name": "tucan lorem", "default_max_cpc": 19990000, "target_bids": [{"target_expression": "ASINACCESSORYRELATED", "bid": 19990000}], "products": [{"product_ad_creation_id": 3366613906, "sku": "00011", "asin": "B000000001", "name": "tucan lorem"}]}], "adspert_account_id": 123, "allow_change_dowhod": true, "amz_portfolio_id": "9999", "amz_targeting_type": "AUTO", "bidding_strategy": "AUTO-FOR-SALES", "campaign_creation_id": 8306624943, "campaign_type": "AMAZON-SPONSORED-BRANDS", "daily_budget": 19990000, "end_date": "2018-10-21", "name": "tucan lorem", "performance_group_id": "1245", "start_date": "2018-10-21", "validate_only": true}'
httpie
echo '{ "adgroups": [ { "adgroup_creation_id": 7988567316, "default_max_cpc": 19990000, "name": "tucan lorem", "products": [ { "asin": "B000000001", "name": "tucan lorem", "product_ad_creation_id": 3366613906, "sku": "00011" } ], "target_bids": [ { "bid": 19990000, "target_expression": "ASINACCESSORYRELATED" } ] } ], "adspert_account_id": 123, "allow_change_dowhod": true, "amz_portfolio_id": "9999", "amz_targeting_type": "AUTO", "bidding_strategy": "AUTO-FOR-SALES", "campaign_creation_id": 8306624943, "campaign_type": "AMAZON-SPONSORED-BRANDS", "daily_budget": 19990000, "end_date": "2018-10-21", "name": "tucan lorem", "performance_group_id": "1245", "start_date": "2018-10-21", "validate_only": true }' | http PATCH https://api.adspert.net/v3/customers/7027038674/campaigns/creation-queue/amazon/sp/8306624943 Accept:application/json Content-Type:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
python-requests
requests.patch('https://api.adspert.net/v3/customers/7027038674/campaigns/creation-queue/amazon/sp/8306624943', headers={'Accept': 'application/json', 'Content-Type': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'}, json={'adgroups': [{'adgroup_creation_id': 7988567316, 'name': 'tucan lorem', 'default_max_cpc': 19990000, 'target_bids': [{'target_expression': 'ASINACCESSORYRELATED', 'bid': 19990000}], 'products': [{'product_ad_creation_id': 3366613906, 'sku': '00011', 'asin': 'B000000001', 'name': 'tucan lorem'}]}], 'adspert_account_id': 123, 'allow_change_dowhod': True, 'amz_portfolio_id': '9999', 'amz_targeting_type': 'AUTO', 'bidding_strategy': 'AUTO-FOR-SALES', 'campaign_creation_id': 8306624943, 'campaign_type': 'AMAZON-SPONSORED-BRANDS', 'daily_budget': 19990000, 'end_date': '2018-10-21', 'name': 'tucan lorem', 'performance_group_id': '1245', 'start_date': '2018-10-21', 'validate_only': True})
response
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": null, "meta": {} }
AmzBidMetricsCollection
GET
- GET /v3/customers/(customer_id: int)/campaigns/utils/amazon/bid_metrics
Retrieve Amz Campaign Bid Metrics
Query Params
Name
Type
Description
includeFields to include in response data.
excludeFields to exclude in response data.
filter_account_typeOnly return results matching given
account_typevalues.filter_campaign_type[ AmzCampaignType ]
Only return results matching given
campaign_typevalues.filter_cost_type[ AmzCostType ]
Only return results matching given
cost_typevalues.filter_creative_typeOnly return results matching given
creative_typevalues.filter_currency[ String ]
Only return results matching given
currencyvalues.filter_max_bid_geOnly return results where
max_bidis equal or greater than this value.Min value: 1000
filter_max_bid_leOnly return results where
max_bidis equal or lower than this value.Min value: 1000
filter_min_bid_geOnly return results where
min_bidis equal or greater than this value.Min value: 1000
filter_min_bid_leOnly return results where
min_bidis equal or lower than this value.Min value: 1000
filter_region[ String ]
Only return results matching given
regionvalues.search_fieldsFields that should be searched using the
search_term.search_termString
Search term used to search the
search_fields.sort_currencySort results by
currency.offsetInteger
Start index for result list.
Default: 0
Min value: 0
limitInteger
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
account_typecurrencyString
campaign_typecreative_typeNULL for
sponsoredProductsandsponsoredDisplayregionString
cost_typemax_bidMaximum possible bid in
currencymin_bidMinimum possible bid in
currencystep_sizeStep size to (de-)/increase bid in
currencyExample
http
GET /v3/customers/7027038674/campaigns/utils/amazon/bid_metrics?filter_account_type=AGENCY&exclude=elit.amet&filter_region=amet+tucan HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl
curl -i -X GET 'https://api.adspert.net/v3/customers/7027038674/campaigns/utils/amazon/bid_metrics?filter_account_type=AGENCY&exclude=elit.amet&filter_region=amet+tucan' -H "Accept: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
httpie
http 'https://api.adspert.net/v3/customers/7027038674/campaigns/utils/amazon/bid_metrics?filter_account_type=AGENCY&exclude=elit.amet&filter_region=amet+tucan' Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
python-requests
requests.get('https://api.adspert.net/v3/customers/7027038674/campaigns/utils/amazon/bid_metrics?filter_account_type=AGENCY&exclude=elit.amet&filter_region=amet+tucan', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
response
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": [ { "account_type": "AGENCY", "currency": "elit tucan", "campaign_type": "SPONSOREDBRANDS", "creative_type": "COLLECTION", "region": "amet tucan", "cost_type": "CPC", "max_bid": 19990000, "min_bid": 19990000, "step_size": 19990000 } ], "meta": { "pagination": { "offset": 0, "limit": 10, "total": 74, "sort": { "account_type": 1 } } } }
AdgroupResource
GET
- GET /v3/customers/(customer_id: int)/adgroups/(adspert_adgroup_id: str)
Retrieve a single ad group.
Query Params
Name
Type
Description
includeFields to include in response data.
excludeFields to exclude in response data.
Response Data (single object, json or csv or xlsx)
Name
Type
Description
adspert_account_idInteger
Adspert internal ID of the advertising account
account_idString
Ad platform specific ID of an advertising account.
account_nameString
account_platformThe account’s advertising platform.
account_optimizeBoolean
If optimization by Adspert is enabled for this account.
account_tags_user[ String ]
account_is_demoBoolean
If the account is a generated account for demonstration purposes.
Demo accounts have no counterpart in the ad platform.
account_currencyString
performance_group_idInteger
Unique ID of the performance group
performance_group_nameString
Unique name of the performance group.
performance_group_optimization_typeOptimization type of the performance group.
Only campaigns of the same optimization type can be added to a given performance group.
performance_group_enabledBoolean
performance_group_goals[ Object ]
List of performance group goals
⤷
goal_typeType of the performance group goal
⤷
goal_valueFloat
Value of the performance group goal.
goal_valueshould beNULLifgoal_typeisPROFIT-MAXIMIZATION.goal_valueshould be a ratio (> 0) ifgoal_typeisROAS,CRRandROI,goal_valueshould be specified in micros and be larger than 10000 ifgoal_typeisCOST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICK.⤷
goal_currencyCurrency of the performance group goal.
Currency is required for
COST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICKgoals.⤷
goal_microsValue for
COST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICKgoals.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_ratioFloat
Value for
ROAS,CRRandROIgoals.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_typesList of performance group goal types
adspert_portfolio_idAdspert internal ID of Amazon portfolio.
Composite ID specification:
{adspert_account_id}:{portfolio_id}amz_portfolio_idamz_portfolio_nameString
adspert_campaign_idAdspert internal ID of the campaign.
Composite ID specification:
{adspert_account_id}:{campaign_id}campaign_idcampaign_nameString
campaign_typecampaign_eby_marketplace_idString
campaign_statuscampaign_optimizeBoolean
campaign_optimization_supportcampaign_optimization_typecampaign_amz_targeting_typeAmazon campaign targeting type.
campaign_labels[ String ]
adspert_adgroup_idAdspert internal ID of the adgroup.
Composite ID specification:
{adspert_account_id}:{adgroup_id}adgroup_idadgroup_nameString
adgroup_statusadgroup_labels[ String ]
adgroup_max_cpcamz_product_ads_sync_sourceObject
Details about the source AdGroup where the Product Ads are being synced from.
This can only be populated for Amazon SP Manual AdGroups.
NULLif the AdGroup isn’t yet being synced.⤷
adspert_campaign_idAdspert internal ID of the campaign.
Composite ID specification:
{adspert_account_id}:{campaign_id}⤷
campaign_nameString
⤷
adspert_adgroup_idAdspert internal ID of the adgroup.
Composite ID specification:
{adspert_account_id}:{adgroup_id}⤷
adgroup_nameString
⤷
sync_modeMode of the product ad sync.
⤷
read_onlyBoolean
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_idAmz auto SP Adspert Adgroup ID.
Composite ID specification:
{adspert_account_id}:{adgroup_id}⤷
amz_product_ads_matchesInteger
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_totalInteger
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_ratioFloat
Ratio of shared and total unique product ads between source and target AdGroups.
product_ads_matches/product_ads_totalNULL if any of the two AdGroups are not auto/manual SP.
amz_adgroup_similarity_max_ratioFloat
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
http
GET /v3/customers/7027038674/adgroups/ID-1234?exclude=elit.amet HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl
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..."
httpie
http 'https://api.adspert.net/v3/customers/7027038674/adgroups/ID-1234?exclude=elit.amet' Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
python-requests
requests.get('https://api.adspert.net/v3/customers/7027038674/adgroups/ID-1234?exclude=elit.amet', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
response
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": 19990000, "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": 19990000, "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
includeFields to include in response data.
excludeFields to exclude in response data.
filter_account_currency[ String ]
Only return results matching given
account_currencyvalues.filter_account_id[ String ]
Only return results matching given
account_idvalues.filter_account_is_demo[ Boolean ]
Only return results matching given
account_is_demovalues.filter_account_name[ String ]
Only return results matching given
account_namevalues.filter_account_optimize[ Boolean ]
Only return results matching given
account_optimizevalues.filter_account_platform[ AdPlatform ]
Only return results matching given
account_platformvalues.filter_account_tags_user[ String ]
Only return results matching given
account_tags_uservalues.filter_adgroup_labels[ String ]
Only return results matching given
adgroup_labelsvalues.filter_adgroup_name[ String ]
Only return results matching given
adgroup_namevalues.filter_adgroup_status[ AdgroupStatus ]
Only return results matching given
adgroup_statusvalues.filter_adspert_account_id[ Integer ]
Only return results matching given
adspert_account_idvalues.filter_adspert_adgroup_id[ CompositeID ]
Only return results matching given
adspert_adgroup_idvalues.filter_adspert_campaign_id[ CompositeID ]
Only return results matching given
adspert_campaign_idvalues.filter_adspert_portfolio_id[ CompositeID ]
Only return results matching given
adspert_portfolio_idvalues.filter_amz_portfolio_name[ String ]
Only return results matching given
amz_portfolio_namevalues.filter_amz_similarity_adspert_adgroup_id[ CompositeID ]
Only return results matching given
amz_auto_adgroup_similarity.adspert_adgroup_idvalues.filter_campaign_amz_targeting_type[ AmzTargetingType ]
Only return results matching given
campaign_amz_targeting_typevalues.filter_campaign_eby_marketplace_id[ String ]
Only return results matching given
campaign_eby_marketplace_idvalues.filter_campaign_labels[ String ]
Only return results matching given
campaign_labelsvalues.filter_campaign_name[ String ]
Only return results matching given
campaign_namevalues.filter_campaign_optimization_supportOnly return results matching given
campaign_optimization_supportvalues.filter_campaign_optimization_type[ OptimizationType ]
Only return results matching given
campaign_optimization_typevalues.filter_campaign_optimize[ Boolean ]
Only return results matching given
campaign_optimizevalues.filter_campaign_status[ CampaignStatus ]
Only return results matching given
campaign_statusvalues.filter_campaign_type[ CampaignType ]
Only return results matching given
campaign_typevalues.filter_performance_group_enabled[ Boolean ]
Only return results matching given
performance_group_enabledvalues.filter_performance_group_goal_typesOnly return results matching given
performance_group_goal_typesvalues.filter_performance_group_id[ Integer ]
Only return results matching given
performance_group_idvalues.filter_performance_group_name[ String ]
Only return results matching given
performance_group_namevalues.filter_performance_group_optimization_type[ OptimizationType ]
Only return results matching given
performance_group_optimization_typevalues.search_fieldsFields that should be searched using the
search_term.search_termString
Search term used to search the
search_fields.search_account_idString
Only return results where
account_idmatches the given string.search_account_nameString
Only return results where
account_namematches the given string.search_account_tags_userString
Only return results where
account_tags_usermatches the given string.search_adgroup_idString
Only return results where
adgroup_idmatches the given string.search_adgroup_labelsString
Only return results where
adgroup_labelsmatches the given string.search_adgroup_nameString
Only return results where
adgroup_namematches the given string.search_adspert_account_idString
Only return results where
adspert_account_idmatches the given string.search_amz_portfolio_idString
Only return results where
amz_portfolio_idmatches the given string.search_amz_portfolio_nameString
Only return results where
amz_portfolio_namematches the given string.search_campaign_idString
Only return results where
campaign_idmatches the given string.search_campaign_labelsString
Only return results where
campaign_labelsmatches the given string.search_campaign_nameString
Only return results where
campaign_namematches the given string.search_performance_group_idString
Only return results where
performance_group_idmatches the given string.search_performance_group_nameString
Only return results where
performance_group_namematches the given string.sort_account_currencySort results by
account_currency.sort_account_idSort results by
account_id.sort_account_is_demoSort results by
account_is_demo.sort_account_nameSort results by
account_name.sort_account_optimizeSort results by
account_optimize.sort_account_platformSort results by
account_platform.sort_adgroup_idSort results by
adgroup_id.sort_adgroup_max_cpcSort results by
adgroup_max_cpc.sort_adgroup_nameSort results by
adgroup_name.sort_adgroup_statusSort results by
adgroup_status.sort_adspert_account_idSort results by
adspert_account_id.sort_adspert_adgroup_idSort results by
adspert_adgroup_id.sort_adspert_campaign_idSort results by
adspert_campaign_id.sort_adspert_portfolio_idSort results by
adspert_portfolio_id.sort_amz_adgroup_similarity_max_ratioSort results by
amz_adgroup_similarity_max_ratio.sort_amz_portfolio_idSort results by
amz_portfolio_id.sort_amz_portfolio_nameSort results by
amz_portfolio_name.sort_campaign_amz_targeting_typeSort results by
campaign_amz_targeting_type.sort_campaign_eby_marketplace_idSort results by
campaign_eby_marketplace_id.sort_campaign_idSort results by
campaign_id.sort_campaign_nameSort results by
campaign_name.sort_campaign_optimization_supportSort results by
campaign_optimization_support.sort_campaign_optimization_typeSort results by
campaign_optimization_type.sort_campaign_optimizeSort results by
campaign_optimize.sort_campaign_statusSort results by
campaign_status.sort_campaign_typeSort results by
campaign_type.sort_performance_group_enabledSort results by
performance_group_enabled.sort_performance_group_goal_typesSort results by
performance_group_goal_types.sort_performance_group_idSort results by
performance_group_id.sort_performance_group_nameSort results by
performance_group_name.sort_performance_group_optimization_typeSort results by
performance_group_optimization_type.offsetInteger
Start index for result list.
Default: 0
Min value: 0
limitInteger
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_idsearchableInteger
Adspert internal ID of the advertising account
account_idsearchableString
Ad platform specific ID of an advertising account.
account_namesearchableString
account_platformThe account’s advertising platform.
account_optimizeBoolean
If optimization by Adspert is enabled for this account.
account_tags_usersearchable[ String ]
account_is_demoBoolean
If the account is a generated account for demonstration purposes.
Demo accounts have no counterpart in the ad platform.
account_currencyString
performance_group_idsearchableInteger
Unique ID of the performance group
performance_group_namesearchableString
Unique name of the performance group.
performance_group_optimization_typeOptimization type of the performance group.
Only campaigns of the same optimization type can be added to a given performance group.
performance_group_enabledBoolean
performance_group_goals[ Object ]
List of performance group goals
⤷
goal_typeType of the performance group goal
⤷
goal_valueFloat
Value of the performance group goal.
goal_valueshould beNULLifgoal_typeisPROFIT-MAXIMIZATION.goal_valueshould be a ratio (> 0) ifgoal_typeisROAS,CRRandROI,goal_valueshould be specified in micros and be larger than 10000 ifgoal_typeisCOST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICK.⤷
goal_currencyCurrency of the performance group goal.
Currency is required for
COST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICKgoals.⤷
goal_microsValue for
COST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICKgoals.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_ratioFloat
Value for
ROAS,CRRandROIgoals.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_typesList of performance group goal types
adspert_portfolio_idAdspert internal ID of Amazon portfolio.
Composite ID specification:
{adspert_account_id}:{portfolio_id}amz_portfolio_idsearchableamz_portfolio_namesearchableString
adspert_campaign_idAdspert internal ID of the campaign.
Composite ID specification:
{adspert_account_id}:{campaign_id}campaign_idsearchablecampaign_namesearchableString
campaign_typecampaign_eby_marketplace_idString
campaign_statuscampaign_optimizeBoolean
campaign_optimization_supportcampaign_optimization_typecampaign_amz_targeting_typeAmazon campaign targeting type.
campaign_labelssearchable[ String ]
adspert_adgroup_idAdspert internal ID of the adgroup.
Composite ID specification:
{adspert_account_id}:{adgroup_id}adgroup_idsearchableadgroup_namesearchableString
adgroup_statusadgroup_labelssearchable[ String ]
adgroup_max_cpcamz_product_ads_sync_sourceObject
Details about the source AdGroup where the Product Ads are being synced from.
This can only be populated for Amazon SP Manual AdGroups.
NULLif the AdGroup isn’t yet being synced.⤷
adspert_campaign_idAdspert internal ID of the campaign.
Composite ID specification:
{adspert_account_id}:{campaign_id}⤷
campaign_namesearchableString
⤷
adspert_adgroup_idAdspert internal ID of the adgroup.
Composite ID specification:
{adspert_account_id}:{adgroup_id}⤷
adgroup_namesearchableString
⤷
sync_modeMode of the product ad sync.
⤷
read_onlyBoolean
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_idAmz auto SP Adspert Adgroup ID.
Composite ID specification:
{adspert_account_id}:{adgroup_id}⤷
amz_product_ads_matchesInteger
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_totalInteger
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_ratioFloat
Ratio of shared and total unique product ads between source and target AdGroups.
product_ads_matches/product_ads_totalNULL if any of the two AdGroups are not auto/manual SP.
amz_adgroup_similarity_max_ratioFloat
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
http
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
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..."
httpie
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..."
python-requests
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...'})
response
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": 19990000, "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": 19990000, "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 } } } }
AdgroupBidSuggestionResource
GET
- GET /v3/accounts/(adspert_account_id: int)/adgroups/bid-suggestions
Get bid recommendations by task id.
Query Params
Name
Type
Description
includeFields to include in response data.
excludeFields to exclude in response data.
task_idrequiredString
Task identifier
Response Data (single object, json or csv or xlsx)
Name
Type
Description
targeting_expressions[ Object ]
⤷
typeSP targeting expression type
⤷
bid_valueFloat
Recommended bid value
statusStatus of the task
errorString
Error message if task failed
Example
http
GET /v3/accounts/3420379091/adgroups/bid-suggestions?exclude=elit.amet&task_id=tucan+dolor HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl
curl -i -X GET 'https://api.adspert.net/v3/accounts/3420379091/adgroups/bid-suggestions?exclude=elit.amet&task_id=tucan+dolor' -H "Accept: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
httpie
http 'https://api.adspert.net/v3/accounts/3420379091/adgroups/bid-suggestions?exclude=elit.amet&task_id=tucan+dolor' Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
python-requests
requests.get('https://api.adspert.net/v3/accounts/3420379091/adgroups/bid-suggestions?exclude=elit.amet&task_id=tucan+dolor', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
response
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": { "targeting_expressions": [ { "type": "CLOSEMATCH", "bid_value": 17.73 } ], "status": "FAILED", "error": "vehicula amet" }, "meta": {} }
POST
- POST /v3/accounts/(adspert_account_id: int)/adgroups/bid-suggestions
Get bid recommendations.
Request Data (single object, json or x-www-form-urlencoded)
Name
Type
Description
asins[ String ]
targeting_expressions[ Object ]
⤷
typeSP targeting expression type
bidding_strategyBidding strategy to use for the bid suggestions
Response Data (single object, json or csv or xlsx)
Name
Type
Description
task_idString
Task identifier
Example
http
POST /v3/accounts/3420379091/adgroups/bid-suggestions HTTP/1.1 Host: api.adspert.net Accept: application/json Content-Type: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5... { "asins": [ "B000000001" ], "targeting_expressions": [ { "type": "CLOSEMATCH" } ], "bidding_strategy": "AUTOFORSALES" }
curl
curl -i -X POST https://api.adspert.net/v3/accounts/3420379091/adgroups/bid-suggestions -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..." --data-raw '{"asins": ["B000000001"], "bidding_strategy": "AUTOFORSALES", "targeting_expressions": [{"type": "CLOSEMATCH"}]}'
httpie
echo '{ "asins": [ "B000000001" ], "bidding_strategy": "AUTOFORSALES", "targeting_expressions": [ { "type": "CLOSEMATCH" } ] }' | http POST https://api.adspert.net/v3/accounts/3420379091/adgroups/bid-suggestions Accept:application/json Content-Type:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
python-requests
requests.post('https://api.adspert.net/v3/accounts/3420379091/adgroups/bid-suggestions', headers={'Accept': 'application/json', 'Content-Type': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'}, json={'asins': ['B000000001'], 'bidding_strategy': 'AUTOFORSALES', 'targeting_expressions': [{'type': 'CLOSEMATCH'}]})
response
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": { "task_id": "tucan dolor" }, "meta": {} }
CriterionResource
GET
- GET /v3/accounts/(adspert_account_id: int)/criteria/(adspert_criterion_id: str)
Retrieve a single criterion.
Query Params
Name
Type
Description
includeFields to include in response data.
excludeFields to exclude in response data.
Response Data (single object, json or csv or xlsx)
Name
Type
Description
performance_group_idInteger
Unique ID of the performance group
performance_group_nameString
Unique name of the performance group.
performance_group_enabledBoolean
performance_group_optimization_typeOptimization 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_typeType of the performance group goal
⤷
goal_valueFloat
Value of the performance group goal.
goal_valueshould beNULLifgoal_typeisPROFIT-MAXIMIZATION.goal_valueshould be a ratio (> 0) ifgoal_typeisROAS,CRRandROI,goal_valueshould be specified in micros and be larger than 10000 ifgoal_typeisCOST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICK.⤷
goal_currencyCurrency of the performance group goal.
Currency is required for
COST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICKgoals.⤷
goal_microsValue for
COST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICKgoals.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_ratioFloat
Value for
ROAS,CRRandROIgoals.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_typesList of performance group goal types
adspert_portfolio_idAdspert internal ID of Amazon portfolio.
Composite ID specification:
{adspert_account_id}:{portfolio_id}amz_portfolio_idamz_portfolio_nameString
adspert_campaign_idAdspert internal ID of the campaign.
Composite ID specification:
{adspert_account_id}:{campaign_id}campaign_idcampaign_nameString
campaign_typecampaign_eby_marketplace_idString
campaign_statuscampaign_optimizeBoolean
campaign_optimization_typecampaign_labels[ String ]
adspert_adgroup_idAdspert internal ID of the adgroup.
Composite ID specification:
{adspert_account_id}:{adgroup_id}adgroup_idadgroup_nameString
adgroup_statusadgroup_labels[ String ]
adspert_criterion_idAdspert internal ID of the criterion.
Composite ID specification:
{adspert_account_id}:{adgroup_id}:{criterion_id}criterion_idcriterion_nameString
criterion_statuscriterion_typecriterion_match_typeMatch type of
Keywordcriterion.NULL if
criterion_typeis notKeyword.criterion_labels[ String ]
Example
http
GET /v3/accounts/3420379091/criteria/ID-1234?exclude=elit.amet HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl
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..."
httpie
http 'https://api.adspert.net/v3/accounts/3420379091/criteria/ID-1234?exclude=elit.amet' Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
python-requests
requests.get('https://api.adspert.net/v3/accounts/3420379091/criteria/ID-1234?exclude=elit.amet', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
response
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": 19990000, "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
includeFields to include in response data.
excludeFields to exclude in response data.
filter_adgroup_labels[ String ]
Only return results matching given
adgroup_labelsvalues.filter_adgroup_name[ String ]
Only return results matching given
adgroup_namevalues.filter_adgroup_status[ AdgroupStatus ]
Only return results matching given
adgroup_statusvalues.filter_adspert_adgroup_id[ CompositeID ]
Only return results matching given
adspert_adgroup_idvalues.filter_adspert_campaign_id[ CompositeID ]
Only return results matching given
adspert_campaign_idvalues.filter_adspert_criterion_id[ CompositeID ]
Only return results matching given
adspert_criterion_idvalues.filter_adspert_portfolio_id[ CompositeID ]
Only return results matching given
adspert_portfolio_idvalues.filter_amz_portfolio_name[ String ]
Only return results matching given
amz_portfolio_namevalues.filter_campaign_eby_marketplace_id[ String ]
Only return results matching given
campaign_eby_marketplace_idvalues.filter_campaign_labels[ String ]
Only return results matching given
campaign_labelsvalues.filter_campaign_name[ String ]
Only return results matching given
campaign_namevalues.filter_campaign_optimization_type[ OptimizationType ]
Only return results matching given
campaign_optimization_typevalues.filter_campaign_optimize[ Boolean ]
Only return results matching given
campaign_optimizevalues.filter_campaign_status[ CampaignStatus ]
Only return results matching given
campaign_statusvalues.filter_campaign_type[ CampaignType ]
Only return results matching given
campaign_typevalues.filter_criterion_labels[ String ]
Only return results matching given
criterion_labelsvalues.filter_criterion_match_typeOnly return results matching given
criterion_match_typevalues.filter_criterion_name[ String ]
Only return results matching given
criterion_namevalues.filter_criterion_status[ CriterionStatus ]
Only return results matching given
criterion_statusvalues.filter_criterion_type[ CriterionType ]
Only return results matching given
criterion_typevalues.filter_performance_group_enabled[ Boolean ]
Only return results matching given
performance_group_enabledvalues.filter_performance_group_goal_typesOnly return results matching given
performance_group_goal_typesvalues.filter_performance_group_id[ Integer ]
Only return results matching given
performance_group_idvalues.filter_performance_group_name[ String ]
Only return results matching given
performance_group_namevalues.filter_performance_group_optimization_type[ OptimizationType ]
Only return results matching given
performance_group_optimization_typevalues.search_fieldsFields that should be searched using the
search_term.search_termString
Search term used to search the
search_fields.search_adgroup_idString
Only return results where
adgroup_idmatches the given string.search_adgroup_labelsString
Only return results where
adgroup_labelsmatches the given string.search_adgroup_nameString
Only return results where
adgroup_namematches the given string.search_amz_portfolio_idString
Only return results where
amz_portfolio_idmatches the given string.search_amz_portfolio_nameString
Only return results where
amz_portfolio_namematches the given string.search_campaign_idString
Only return results where
campaign_idmatches the given string.search_campaign_labelsString
Only return results where
campaign_labelsmatches the given string.search_campaign_nameString
Only return results where
campaign_namematches the given string.search_criterion_idString
Only return results where
criterion_idmatches the given string.search_criterion_labelsString
Only return results where
criterion_labelsmatches the given string.search_criterion_nameString
Only return results where
criterion_namematches the given string.search_performance_group_idString
Only return results where
performance_group_idmatches the given string.search_performance_group_nameString
Only return results where
performance_group_namematches the given string.sort_adgroup_idSort results by
adgroup_id.sort_adgroup_nameSort results by
adgroup_name.sort_adgroup_statusSort results by
adgroup_status.sort_adspert_adgroup_idSort results by
adspert_adgroup_id.sort_adspert_campaign_idSort results by
adspert_campaign_id.sort_adspert_criterion_idSort results by
adspert_criterion_id.sort_adspert_portfolio_idSort results by
adspert_portfolio_id.sort_amz_portfolio_idSort results by
amz_portfolio_id.sort_amz_portfolio_nameSort results by
amz_portfolio_name.sort_campaign_eby_marketplace_idSort results by
campaign_eby_marketplace_id.sort_campaign_idSort results by
campaign_id.sort_campaign_nameSort results by
campaign_name.sort_campaign_optimization_typeSort results by
campaign_optimization_type.sort_campaign_optimizeSort results by
campaign_optimize.sort_campaign_statusSort results by
campaign_status.sort_campaign_typeSort results by
campaign_type.sort_criterion_idSort results by
criterion_id.sort_criterion_match_typeSort results by
criterion_match_type.sort_criterion_nameSort results by
criterion_name.sort_criterion_statusSort results by
criterion_status.sort_criterion_typeSort results by
criterion_type.sort_performance_group_enabledSort results by
performance_group_enabled.sort_performance_group_goal_typesSort results by
performance_group_goal_types.sort_performance_group_idSort results by
performance_group_id.sort_performance_group_nameSort results by
performance_group_name.sort_performance_group_optimization_typeSort results by
performance_group_optimization_type.offsetInteger
Start index for result list.
Default: 0
Min value: 0
limitInteger
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_idsearchableInteger
Unique ID of the performance group
performance_group_namesearchableString
Unique name of the performance group.
performance_group_enabledBoolean
performance_group_optimization_typeOptimization 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_typeType of the performance group goal
⤷
goal_valueFloat
Value of the performance group goal.
goal_valueshould beNULLifgoal_typeisPROFIT-MAXIMIZATION.goal_valueshould be a ratio (> 0) ifgoal_typeisROAS,CRRandROI,goal_valueshould be specified in micros and be larger than 10000 ifgoal_typeisCOST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICK.⤷
goal_currencyCurrency of the performance group goal.
Currency is required for
COST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICKgoals.⤷
goal_microsValue for
COST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICKgoals.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_ratioFloat
Value for
ROAS,CRRandROIgoals.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_typesList of performance group goal types
adspert_portfolio_idAdspert internal ID of Amazon portfolio.
Composite ID specification:
{adspert_account_id}:{portfolio_id}amz_portfolio_idsearchableamz_portfolio_namesearchableString
adspert_campaign_idAdspert internal ID of the campaign.
Composite ID specification:
{adspert_account_id}:{campaign_id}campaign_idsearchablecampaign_namesearchableString
campaign_typecampaign_eby_marketplace_idString
campaign_statuscampaign_optimizeBoolean
campaign_optimization_typecampaign_labelssearchable[ String ]
adspert_adgroup_idAdspert internal ID of the adgroup.
Composite ID specification:
{adspert_account_id}:{adgroup_id}adgroup_idsearchableadgroup_namesearchableString
adgroup_statusadgroup_labelssearchable[ String ]
adspert_criterion_idAdspert internal ID of the criterion.
Composite ID specification:
{adspert_account_id}:{adgroup_id}:{criterion_id}criterion_idsearchablecriterion_namesearchableString
criterion_statuscriterion_typecriterion_match_typeMatch type of
Keywordcriterion.NULL if
criterion_typeis notKeyword.criterion_labelssearchable[ String ]
Example
http
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
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..."
httpie
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..."
python-requests
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...'})
response
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": 19990000, "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
includeFields to include in response data.
excludeFields to exclude in response data.
Response Data (single object, json or csv or xlsx)
Name
Type
Description
adspert_product_idString
Adspert’s unique product ID.
titleString
Product title.
priceProduct price.
amz_parent_asinString
Amazon Parent ASIN
in_stockBoolean
Is this product currently in stock?
NULL if we do not have that information
image_urlString
Product image URL.
amz_asinString
Amazon ASIN.
amz_skuString
Amazon SKU.
ggl_offer_idString
Google Offer ID.
eby_listing_idString
eBay Listing ID.
Example
http
GET /v3/accounts/3420379091/products/JFCC2MJSGM2A====?include=ipsum.amet HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl
curl -i -X GET 'https://api.adspert.net/v3/accounts/3420379091/products/JFCC2MJSGM2A====?include=ipsum.amet' -H "Accept: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
httpie
http 'https://api.adspert.net/v3/accounts/3420379091/products/JFCC2MJSGM2A====?include=ipsum.amet' Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
python-requests
requests.get('https://api.adspert.net/v3/accounts/3420379091/products/JFCC2MJSGM2A====?include=ipsum.amet', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
response
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": { "adspert_product_id": "B0100000000|000-000-001", "title": "Product XYZ", "price": 19990000, "amz_parent_asin": "tucan dolor", "in_stock": true, "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
includeFields to include in response data.
excludeFields to exclude in response data.
filter_adspert_product_id[ String ]
Only return results matching given
adspert_product_idvalues.filter_amz_asin[ String ]
Only return results matching given
amz_asinvalues.filter_amz_parent_asin[ String ]
Only return results matching given
amz_parent_asinvalues.filter_amz_sku[ String ]
Only return results matching given
amz_skuvalues.filter_eby_listing_id[ String ]
Only return results matching given
eby_listing_idvalues.filter_ggl_offer_id[ String ]
Only return results matching given
ggl_offer_idvalues.filter_in_stock[ Boolean ]
Only return results matching given
in_stockvalues.filter_price_geOnly return results where
priceis equal or greater than this value.Min value: 1000
filter_price_leOnly return results where
priceis equal or lower than this value.Min value: 1000
search_fieldsFields that should be searched using the
search_term.search_termString
Search term used to search the
search_fields.search_amz_asinString
Only return results where
amz_asinmatches the given string.search_amz_parent_asinString
Only return results where
amz_parent_asinmatches the given string.search_amz_skuString
Only return results where
amz_skumatches the given string.search_eby_listing_idString
Only return results where
eby_listing_idmatches the given string.search_ggl_offer_idString
Only return results where
ggl_offer_idmatches the given string.search_titleString
Only return results where
titlematches the given string.sort_adspert_product_idSort results by
adspert_product_id.sort_amz_asinSort results by
amz_asin.sort_amz_skuSort results by
amz_sku.sort_eby_listing_idSort results by
eby_listing_id.sort_ggl_offer_idSort results by
ggl_offer_id.sort_image_urlSort results by
image_url.sort_priceSort results by
price.sort_titleSort results by
title.offsetInteger
Start index for result list.
Default: 0
Min value: 0
limitInteger
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_idString
Adspert’s unique product ID.
titlesearchableString
Product title.
priceProduct price.
amz_parent_asinsearchableString
Amazon Parent ASIN
in_stockBoolean
Is this product currently in stock?
NULL if we do not have that information
image_urlString
Product image URL.
amz_asinsearchableString
Amazon ASIN.
amz_skusearchableString
Amazon SKU.
ggl_offer_idsearchableString
Google Offer ID.
eby_listing_idsearchableString
eBay Listing ID.
Example
http
GET /v3/accounts/3420379091/products?sort_image_url=7&sort_price=-2&sort_amz_sku=7 HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl
curl -i -X GET 'https://api.adspert.net/v3/accounts/3420379091/products?sort_image_url=7&sort_price=-2&sort_amz_sku=7' -H "Accept: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
httpie
http 'https://api.adspert.net/v3/accounts/3420379091/products?sort_image_url=7&sort_price=-2&sort_amz_sku=7' Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
python-requests
requests.get('https://api.adspert.net/v3/accounts/3420379091/products?sort_image_url=7&sort_price=-2&sort_amz_sku=7', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
response
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": [ { "adspert_product_id": "B0100000000|000-000-001", "title": "Product XYZ", "price": 19990000, "amz_parent_asin": "tucan dolor", "in_stock": true, "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
includeFields to include in response data.
excludeFields to exclude in response data.
search_fieldsFields that should be searched using the
search_term.search_termString
Search term used to search the
search_fields.search_label_nameString
Only return results where
label_namematches the given string.sort_label_nameSort results by
label_name.offsetInteger
Start index for result list.
Default: 0
Min value: 0
limitInteger
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_levelDefault: ALL
Response Data (object list, json or csv or xlsx)
Name
Type
Description
label_namesearchableString
Example
http
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
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..."
httpie
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..."
python-requests
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...'})
response
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
includeFields to include in response data.
excludeFields to exclude in response data.
filter_account_currency[ String ]
Only return results matching given
account_currencyvalues.filter_account_id[ String ]
Only return results matching given
account_idvalues.filter_account_is_demo[ Boolean ]
Only return results matching given
account_is_demovalues.filter_account_name[ String ]
Only return results matching given
account_namevalues.filter_account_optimize[ Boolean ]
Only return results matching given
account_optimizevalues.filter_account_platform[ AdPlatform ]
Only return results matching given
account_platformvalues.filter_account_tags_user[ String ]
Only return results matching given
account_tags_uservalues.filter_adspert_account_id[ Integer ]
Only return results matching given
adspert_account_idvalues.filter_adspert_campaign_id[ CompositeID ]
Only return results matching given
adspert_campaign_idvalues.filter_adspert_portfolio_id[ CompositeID ]
Only return results matching given
adspert_portfolio_idvalues.filter_amz_portfolio_name[ String ]
Only return results matching given
amz_portfolio_namevalues.filter_avg_cost_7_geOnly return results where
metrics.avg_cost_7is equal or greater than this value.Min value: 1000
filter_avg_cost_7_leOnly return results where
metrics.avg_cost_7is equal or lower than this value.Min value: 1000
filter_avg_coverage_7_geFloat
Only return results where
metrics.avg_coverage_7is equal or greater than this value.filter_avg_coverage_7_leFloat
Only return results where
metrics.avg_coverage_7is equal or lower than this value.filter_avg_usage_7_geFloat
Only return results where
metrics.avg_usage_7is equal or greater than this value.filter_avg_usage_7_leFloat
Only return results where
metrics.avg_usage_7is equal or lower than this value.filter_budget_approved_account_currency_geOnly return results where
budget_approved_account_currencyis equal or greater than this value.Min value: 1000
filter_budget_approved_account_currency_leOnly return results where
budget_approved_account_currencyis equal or lower than this value.Min value: 1000
filter_budget_approved_euros_geOnly return results where
budget_approved_eurosis equal or greater than this value.Min value: 1000
filter_budget_approved_euros_leOnly return results where
budget_approved_eurosis equal or lower than this value.Min value: 1000
filter_budget_current_account_currency_geOnly return results where
budget_current_account_currencyis equal or greater than this value.Min value: 1000
filter_budget_current_account_currency_leOnly return results where
budget_current_account_currencyis equal or lower than this value.Min value: 1000
filter_budget_current_euros_geOnly return results where
budget_current_eurosis equal or greater than this value.Min value: 1000
filter_budget_current_euros_leOnly return results where
budget_current_eurosis equal or lower than this value.Min value: 1000
filter_budget_est_optimal_spending_geOnly return results where
budget_est_optimal_spendingis equal or greater than this value.Min value: 1000
filter_budget_est_optimal_spending_leOnly return results where
budget_est_optimal_spendingis equal or lower than this value.Min value: 1000
filter_budget_id[ Integer ]
Only return results matching given
budget_idvalues.filter_budget_increase[ Boolean ]
Only return results matching given
budget_increasevalues.filter_budget_state[ State ]
Only return results matching given
budget_statevalues.filter_budget_suggested_account_currency_geOnly return results where
budget_suggested_account_currencyis equal or greater than this value.Min value: 1000
filter_budget_suggested_account_currency_leOnly return results where
budget_suggested_account_currencyis equal or lower than this value.Min value: 1000
filter_budget_suggested_at_geOnly return results where
budget_suggested_atis equal or greater than this value.filter_budget_suggested_at_leOnly return results where
budget_suggested_atis equal or lower than this value.filter_budget_suggested_euros_geOnly return results where
budget_suggested_eurosis equal or greater than this value.Min value: 1000
filter_budget_suggested_euros_leOnly return results where
budget_suggested_eurosis equal or lower than this value.Min value: 1000
filter_campaign_eby_marketplace_id[ String ]
Only return results matching given
campaign_eby_marketplace_idvalues.filter_campaign_labels[ String ]
Only return results matching given
campaign_labelsvalues.filter_campaign_name[ String ]
Only return results matching given
campaign_namevalues.filter_campaign_optimization_supportOnly return results matching given
campaign_optimization_supportvalues.filter_campaign_optimization_type[ OptimizationType ]
Only return results matching given
campaign_optimization_typevalues.filter_campaign_optimize[ Boolean ]
Only return results matching given
campaign_optimizevalues.filter_campaign_status[ CampaignStatus ]
Only return results matching given
campaign_statusvalues.filter_campaign_type[ CampaignType ]
Only return results matching given
campaign_typevalues.filter_click_through_rate_clicks_30_geFloat
Only return results where
metrics.click_through_rate_clicks_30is equal or greater than this value.filter_click_through_rate_clicks_30_leFloat
Only return results where
metrics.click_through_rate_clicks_30is equal or lower than this value.filter_clicks_30[ Integer ]
Only return results matching given
metrics.clicks_30values.filter_clicks_30_geInteger
Only return results where
metrics.clicks_30is equal or greater than this value.filter_clicks_30_leInteger
Only return results where
metrics.clicks_30is equal or lower than this value.filter_conversion_rate_30_geFloat
Only return results where
metrics.conversion_rate_30is equal or greater than this value.filter_conversion_rate_30_leFloat
Only return results where
metrics.conversion_rate_30is equal or lower than this value.filter_conversion_rate_clicks_30_geFloat
Only return results where
metrics.conversion_rate_clicks_30is equal or greater than this value.filter_conversion_rate_clicks_30_leFloat
Only return results where
metrics.conversion_rate_clicks_30is equal or lower than this value.filter_conversions_30_geFloat
Only return results where
metrics.conversions_30is equal or greater than this value.filter_conversions_30_leFloat
Only return results where
metrics.conversions_30is equal or lower than this value.filter_conversions_clicks_30_geFloat
Only return results where
metrics.conversions_clicks_30is equal or greater than this value.filter_conversions_clicks_30_leFloat
Only return results where
metrics.conversions_clicks_30is equal or lower than this value.filter_cost_30_geOnly return results where
metrics.cost_30is equal or greater than this value.Min value: 1000
filter_cost_30_leOnly return results where
metrics.cost_30is equal or lower than this value.Min value: 1000
filter_cost_per_m_view_impressions_30_geOnly return results where
metrics.cost_per_m_view_impressions_30is equal or greater than this value.Min value: 1000
filter_cost_per_m_view_impressions_30_leOnly return results where
metrics.cost_per_m_view_impressions_30is equal or lower than this value.Min value: 1000
filter_cost_revenue_ratio_30_geFloat
Only return results where
metrics.cost_revenue_ratio_30is equal or greater than this value.filter_cost_revenue_ratio_30_leFloat
Only return results where
metrics.cost_revenue_ratio_30is equal or lower than this value.filter_cost_revenue_ratio_clicks_30_geFloat
Only return results where
metrics.cost_revenue_ratio_clicks_30is equal or greater than this value.filter_cost_revenue_ratio_clicks_30_leFloat
Only return results where
metrics.cost_revenue_ratio_clicks_30is equal or lower than this value.filter_impressions_30[ Integer ]
Only return results matching given
metrics.impressions_30values.filter_impressions_30_geInteger
Only return results where
metrics.impressions_30is equal or greater than this value.filter_impressions_30_leInteger
Only return results where
metrics.impressions_30is equal or lower than this value.filter_performance_group_enabled[ Boolean ]
Only return results matching given
performance_group_enabledvalues.filter_performance_group_goal_typesOnly return results matching given
performance_group_goal_typesvalues.filter_performance_group_id[ Integer ]
Only return results matching given
performance_group_idvalues.filter_performance_group_name[ String ]
Only return results matching given
performance_group_namevalues.filter_performance_group_optimization_type[ OptimizationType ]
Only return results matching given
performance_group_optimization_typevalues.filter_profit_gross_30_geOnly return results where
metrics.profit_gross_30is equal or greater than this value.Min value: 1000
filter_profit_gross_30_leOnly return results where
metrics.profit_gross_30is equal or lower than this value.Min value: 1000
filter_return_on_ad_spend_30_geFloat
Only return results where
metrics.return_on_ad_spend_30is equal or greater than this value.filter_return_on_ad_spend_30_leFloat
Only return results where
metrics.return_on_ad_spend_30is equal or lower than this value.filter_return_on_ad_spend_clicks_30_geFloat
Only return results where
metrics.return_on_ad_spend_clicks_30is equal or greater than this value.filter_return_on_ad_spend_clicks_30_leFloat
Only return results where
metrics.return_on_ad_spend_clicks_30is equal or lower than this value.filter_return_on_investment_30_geFloat
Only return results where
metrics.return_on_investment_30is equal or greater than this value.filter_return_on_investment_30_leFloat
Only return results where
metrics.return_on_investment_30is equal or lower than this value.filter_revenue_30_geOnly return results where
metrics.revenue_30is equal or greater than this value.Min value: 1000
filter_revenue_30_leOnly return results where
metrics.revenue_30is equal or lower than this value.Min value: 1000
filter_revenue_clicks_30_geFloat
Only return results where
metrics.revenue_clicks_30is equal or greater than this value.filter_revenue_clicks_30_leFloat
Only return results where
metrics.revenue_clicks_30is equal or lower than this value.filter_suggestion_id[ Integer ]
Only return results matching given
suggestion_idvalues.filter_view_impressions_30[ Integer ]
Only return results matching given
metrics.view_impressions_30values.filter_view_impressions_30_geInteger
Only return results where
metrics.view_impressions_30is equal or greater than this value.filter_view_impressions_30_leInteger
Only return results where
metrics.view_impressions_30is equal or lower than this value.search_fieldsFields that should be searched using the
search_term.search_termString
Search term used to search the
search_fields.search_account_idString
Only return results where
account_idmatches the given string.search_account_nameString
Only return results where
account_namematches the given string.search_account_tags_userString
Only return results where
account_tags_usermatches the given string.search_adspert_account_idString
Only return results where
adspert_account_idmatches the given string.search_amz_portfolio_idString
Only return results where
amz_portfolio_idmatches the given string.search_amz_portfolio_nameString
Only return results where
amz_portfolio_namematches the given string.search_campaign_idString
Only return results where
campaign_idmatches the given string.search_campaign_labelsString
Only return results where
campaign_labelsmatches the given string.search_campaign_nameString
Only return results where
campaign_namematches the given string.search_performance_group_idString
Only return results where
performance_group_idmatches the given string.search_performance_group_nameString
Only return results where
performance_group_namematches the given string.sort_account_currencySort results by
account_currency.sort_account_idSort results by
account_id.sort_account_is_demoSort results by
account_is_demo.sort_account_nameSort results by
account_name.sort_account_optimizeSort results by
account_optimize.sort_account_platformSort results by
account_platform.sort_adspert_account_idSort results by
adspert_account_id.sort_adspert_campaign_idSort results by
adspert_campaign_id.sort_adspert_portfolio_idSort results by
adspert_portfolio_id.sort_amz_portfolio_idSort results by
amz_portfolio_id.sort_amz_portfolio_nameSort results by
amz_portfolio_name.sort_avg_cost_7Sort results by
metrics.avg_cost_7.sort_avg_coverage_7Sort results by
metrics.avg_coverage_7.sort_avg_usage_7Sort results by
metrics.avg_usage_7.sort_budget_approved_account_currencySort results by
budget_approved_account_currency.sort_budget_approved_eurosSort results by
budget_approved_euros.sort_budget_current_account_currencySort results by
budget_current_account_currency.sort_budget_current_eurosSort results by
budget_current_euros.sort_budget_est_optimal_spendingSort results by
budget_est_optimal_spending.sort_budget_idSort results by
budget_id.sort_budget_increaseSort results by
budget_increase.sort_budget_stateSort results by
budget_state.sort_budget_suggested_account_currencySort results by
budget_suggested_account_currency.sort_budget_suggested_atSort results by
budget_suggested_at.sort_budget_suggested_eurosSort results by
budget_suggested_euros.sort_campaign_eby_marketplace_idSort results by
campaign_eby_marketplace_id.sort_campaign_idSort results by
campaign_id.sort_campaign_nameSort results by
campaign_name.sort_campaign_optimization_supportSort results by
campaign_optimization_support.sort_campaign_optimization_typeSort results by
campaign_optimization_type.sort_campaign_optimizeSort results by
campaign_optimize.sort_campaign_statusSort results by
campaign_status.sort_campaign_typeSort results by
campaign_type.sort_click_through_rate_clicks_30Sort results by
metrics.click_through_rate_clicks_30.sort_clicks_30Sort results by
metrics.clicks_30.sort_conversion_rate_30Sort results by
metrics.conversion_rate_30.sort_conversion_rate_clicks_30Sort results by
metrics.conversion_rate_clicks_30.sort_conversions_30Sort results by
metrics.conversions_30.sort_conversions_clicks_30Sort results by
metrics.conversions_clicks_30.sort_cost_30Sort results by
metrics.cost_30.sort_cost_per_conversion_clicks_30Sort results by
metrics.cost_per_conversion_clicks_30.sort_cost_per_m_view_impressions_30Sort results by
metrics.cost_per_m_view_impressions_30.sort_cost_revenue_ratio_30Sort results by
metrics.cost_revenue_ratio_30.sort_cost_revenue_ratio_clicks_30Sort results by
metrics.cost_revenue_ratio_clicks_30.sort_impressions_30Sort results by
metrics.impressions_30.sort_impressions_total_30Sort results by
metrics.impressions_total_30.sort_performance_group_enabledSort results by
performance_group_enabled.sort_performance_group_goal_typesSort results by
performance_group_goal_types.sort_performance_group_idSort results by
performance_group_id.sort_performance_group_nameSort results by
performance_group_name.sort_performance_group_optimization_typeSort results by
performance_group_optimization_type.sort_profit_gross_30Sort results by
metrics.profit_gross_30.sort_return_on_ad_spend_30Sort results by
metrics.return_on_ad_spend_30.sort_return_on_ad_spend_clicks_30Sort results by
metrics.return_on_ad_spend_clicks_30.sort_return_on_investment_30Sort results by
metrics.return_on_investment_30.sort_revenue_30Sort results by
metrics.revenue_30.sort_revenue_clicks_30Sort results by
metrics.revenue_clicks_30.sort_suggestion_idSort results by
suggestion_id.sort_view_impressions_30Sort results by
metrics.view_impressions_30.offsetInteger
Start index for result list.
Default: 0
Min value: 0
limitInteger
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_atTimestamp when the suggestion was made
budget_idInteger
Budget ID associated with the suggestion
suggestion_idInteger
Unique identifier for the suggestion
budget_stateState of the budget suggestion
budget_approved_eurosBudget amount in micros in EUR
Approved Budget.
budget_approved_account_currencyBudget amount in micros in account currency
Approved budget.
budget_current_eurosBudget amount in micros in EUR
Currently set budget.
budget_current_account_currencyBudget amount in micros in account currency
Currently set budget.
budget_suggested_eurosBudget amount in micros in EUR
Suggested budget.
budget_suggested_account_currencyBudget amount in micros in account currency
Suggested budget.
budget_increaseBoolean
True if the suggestion asks an increase in the current budget
budget_est_optimal_spendingEstimated optimal spending amount (in account currency).
metricsObject
⤷
avg_cost_7Average cost in the last 7 days.
⤷
avg_coverage_7Float
Average budget coverage in the last 7 days.
⤷
avg_usage_7Float
Average budget usage in the last 7 days.
⤷
cost_30Total ad spend / cost
Total cost in the last 30 days.
⤷
impressions_30Integer
Number of impressions
Total impressions in the last 30 days.
⤷
clicks_30Integer
Number of clicks
Total clicks in the last 30 days.
⤷
conversions_30Float
Number of conversions including view impressions.
Always 0 for click optimized campaigns.
Total conversions in the last 30 days.
⤷
profit_gross_30Gross profit.
Always 0 for click and revenue optimized campaigns.
Total profit gross in the last 30 days.
⤷
revenue_30Total Revenue/sales in the last 30 days.
⤷
conversion_rate_30Float
Conversion rate in the last 30 days.
conversions/clicksNULL if number of
clicksis 0.⤷
return_on_investment_30Float
Return on investment (ROI) in the last 30 days.
profit_gross/costNULL if
costis 0.⤷
return_on_ad_spend_30Float
Return on ad spend (ROAS).
Only cost for revenue optimized campaigns is included.
revenue/cost_for_revenueNULL if
cost_for_revenueis 0.Return on ad spend (ROAS) in the last 30 days.
revenue/costNULL if
costis 0.⤷
cost_revenue_ratio_30Float
Cost Revenue Ratio (CRR).
Also called Advertising Cost of Sale (ACoS).
Only cost for revenue optimized campaigns is included.
cost_for_revenue/revenueNULL if
revenueis 0.Cost Revenue Ratio (CRR) in the last 30 days.
Also called Advertising Cost of Sale (ACoS).
cost/revenueNULL if
revenueis 0.⤷
view_impressions_30Integer
Number of viewable impressions
⤷
impressions_total_30Integer
Number of total impressions, For vcpm, viewable impressions and impressions for all other campaigns.
Should be used internally.
⤷
conversions_clicks_30Float
Number of conversions from clicks only
Valid only for vCPM campaigns. For non-vCPM campaigns, this is the same as
conversions.⤷
revenue_clicks_30Float
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_30Cost per mille viewable impressions. Valid only for vCPM campaigns.
cost/view_impressionsNULL if number of
view_impressionsis 0.⤷
cost_per_conversion_clicks_30Cost 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
conversionsis 0.⤷
conversion_rate_clicks_30Float
Conversion rate from clicks only.
Valid only for vCPM campaigns. For non-vCPM campaigns, this is the same as
conversion_rate.view_conversions/clicksNULL if number of
clicksis 0.⤷
click_through_rate_clicks_30Float
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_impressionsNULL if number of
view_impressionsis 0.⤷
cost_revenue_ratio_clicks_30Float
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_clicksNULL if
revenue_clicksis 0.⤷
return_on_ad_spend_clicks_30Float
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_revenueNULL if
cost_for_revenueis 0.⤷
has_vcpm_30Boolean
Whether the grouped-by entity has any campaigns with vCPM enabled.
adspert_account_idsearchableInteger
Adspert internal ID of the advertising account
account_idsearchableString
Ad platform specific ID of an advertising account.
account_namesearchableString
account_tags_usersearchable[ String ]
account_is_demoBoolean
If the account is a generated account for demonstration purposes.
Demo accounts have no counterpart in the ad platform.
account_platformThe account’s advertising platform.
account_optimizeBoolean
If optimization by Adspert is enabled for this account.
account_currencyString
campaign_idsearchablecampaign_namesearchableString
campaign_typecampaign_eby_marketplace_idString
campaign_statuscampaign_optimizeBoolean
campaign_optimization_typecampaign_optimization_supportcampaign_labelssearchable[ String ]
performance_group_idsearchableInteger
Unique ID of the performance group
performance_group_namesearchableString
Unique name of the performance group.
performance_group_enabledBoolean
performance_group_optimization_typeOptimization 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_typeType of the performance group goal
⤷
goal_valueFloat
Value of the performance group goal.
goal_valueshould beNULLifgoal_typeisPROFIT-MAXIMIZATION.goal_valueshould be a ratio (> 0) ifgoal_typeisROAS,CRRandROI,goal_valueshould be specified in micros and be larger than 10000 ifgoal_typeisCOST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICK.⤷
goal_currencyCurrency of the performance group goal.
Currency is required for
COST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICKgoals.⤷
goal_microsValue for
COST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICKgoals.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_ratioFloat
Value for
ROAS,CRRandROIgoals.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_typesList of performance group goal types
amz_portfolio_idsearchableamz_portfolio_namesearchableString
adspert_campaign_idAdspert internal ID of the campaign.
Composite ID specification:
{adspert_account_id}:{campaign_id}adspert_portfolio_idAdspert internal ID of Amazon portfolio.
Composite ID specification:
{adspert_account_id}:{portfolio_id}Example
http
GET /v3/customers/7027038674/budget-suggestions?search_performance_group_name=tucan+lorem&filter_cost_30_le=19990000&sort_budget_suggested_euros=-2 HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl
curl -i -X GET 'https://api.adspert.net/v3/customers/7027038674/budget-suggestions?search_performance_group_name=tucan+lorem&filter_cost_30_le=19990000&sort_budget_suggested_euros=-2' -H "Accept: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
httpie
http 'https://api.adspert.net/v3/customers/7027038674/budget-suggestions?search_performance_group_name=tucan+lorem&filter_cost_30_le=19990000&sort_budget_suggested_euros=-2' Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
python-requests
requests.get('https://api.adspert.net/v3/customers/7027038674/budget-suggestions?search_performance_group_name=tucan+lorem&filter_cost_30_le=19990000&sort_budget_suggested_euros=-2', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
response
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": 19990000, "budget_approved_account_currency": 19990000, "budget_current_euros": 19990000, "budget_current_account_currency": 19990000, "budget_suggested_euros": 19990000, "budget_suggested_account_currency": 19990000, "budget_increase": true, "budget_est_optimal_spending": 19990000, "metrics": { "avg_cost_7": 19990000, "avg_coverage_7": 11.43, "avg_usage_7": 10.71, "cost_30": 19990000, "impressions_30": 1549552050, "clicks_30": 3460758478, "conversions_30": 1.95, "profit_gross_30": 19990000, "revenue_30": 19990000, "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": 19990000, "cost_per_conversion_clicks_30": 19990000, "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": 19990000, "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 x-www-form-urlencoded or csv)
Name
Type
Description
suggestion_idrequiredInteger
Unique identifier for the suggestion
budget_staterequiredState of the budget suggestion
budget_approved_account_currencyApproved budget suggestion in account currency.
Must be NULL if
budget_stateis set toREJECTEDorPENDING.Min value: 1000
initiatorIndicates who initiated the action. If set to ‘assistant’, this will be logged in budget_submission_log context.
Response Data (single object, json or csv or xlsx)
Name
Type
Description
unchanged[ Object ]
List of objects which had no effective change.
⤷
suggestion_idInteger
See request data description.
⤷
budget_stateSee request data description.
⤷
budget_approved_account_currencySee request data description.
⤷
initiatorSee request data description.
unknown[ Object ]
List of objects which could not be found.
⤷
suggestion_idInteger
See request data description.
⤷
budget_stateSee request data description.
⤷
budget_approved_account_currencySee request data description.
⤷
initiatorSee request data description.
updated[ Object ]
List of objects which have been updated.
⤷
suggestion_idInteger
See request data description.
⤷
budget_stateSee request data description.
⤷
budget_approved_account_currencySee request data description.
⤷
initiatorSee request data description.
Example
http
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": 19990000, "initiator": "ASSISTANT" } ]
curl
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": 19990000, "initiator": "ASSISTANT"}]'
httpie
echo '[ { "budget_approved_account_currency": 19990000, "budget_state": "ACCEPTED", "initiator": "ASSISTANT", "suggestion_id": 7559014817 } ]' | http PATCH https://api.adspert.net/v3/customers/7027038674/budget-suggestions Accept:application/json Content-Type:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
python-requests
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': 19990000, 'initiator': 'ASSISTANT'}])
response
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": 19990000, "initiator": "ASSISTANT" } ], "unknown": [ { "suggestion_id": 7559014817, "budget_state": "ACCEPTED", "budget_approved_account_currency": 19990000, "initiator": "ASSISTANT" } ], "updated": [ { "suggestion_id": 7559014817, "budget_state": "ACCEPTED", "budget_approved_account_currency": 19990000, "initiator": "ASSISTANT" } ] }, "meta": {} }
PlatformManagementCollection
POST
- POST /v3/customers/(customer_id: int)/management/edit
Add new items to platform management queue.
Request Data (object list, json or x-www-form-urlencoded or csv)
Name
Type
Description
adspert_account_idrequiredInteger
Adspert internal ID of the advertising account
levelrequiredOn what entity level should the edit be done?
campaign_idRequired when
levelis set toCAMPAIGNorADGROUP.adgroup_idRequired when
levelis set toADGROUPorCRITERION.criterion_idRequired when
levelis set toCRITERION.campaign_mutate_idInteger
adgroup_mutate_idInteger
criterion_mutate_idInteger
statusnameString
validate_onlyBoolean
If set to
TruePOST requests will only be validated, and will not (after successful validation) be saved.Default value is
False.Default: False
Response Data (single object, json or csv or xlsx)
Name
Type
Description
adspert_account_idInteger
Adspert internal ID of the advertising account
levelOn what entity level should the edit be done?
campaign_idRequired when
levelis set toCAMPAIGNorADGROUP.adgroup_idRequired when
levelis set toADGROUPorCRITERION.criterion_idRequired when
levelis set toCRITERION.campaign_mutate_idInteger
adgroup_mutate_idInteger
criterion_mutate_idInteger
statusnameString
validate_onlyBoolean
If set to
TruePOST requests will only be validated, and will not (after successful validation) be saved.Default value is
False.Example
http
POST /v3/customers/7027038674/management/edit HTTP/1.1 Host: api.adspert.net Accept: application/json Content-Type: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5... [ { "adspert_account_id": 123, "level": "ADGROUP", "campaign_id": "5555", "adgroup_id": "777", "criterion_id": "66789", "campaign_mutate_id": 8859368800, "adgroup_mutate_id": 8016044254, "criterion_mutate_id": 3059293499, "status": "ACTIVE", "name": "tucan lorem", "validate_only": true } ]
curl
curl -i -X POST https://api.adspert.net/v3/customers/7027038674/management/edit -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..." --data-raw '[{"adspert_account_id": 123, "level": "ADGROUP", "campaign_id": "5555", "adgroup_id": "777", "criterion_id": "66789", "campaign_mutate_id": 8859368800, "adgroup_mutate_id": 8016044254, "criterion_mutate_id": 3059293499, "status": "ACTIVE", "name": "tucan lorem", "validate_only": true}]'
httpie
echo '[ { "adgroup_id": "777", "adgroup_mutate_id": 8016044254, "adspert_account_id": 123, "campaign_id": "5555", "campaign_mutate_id": 8859368800, "criterion_id": "66789", "criterion_mutate_id": 3059293499, "level": "ADGROUP", "name": "tucan lorem", "status": "ACTIVE", "validate_only": true } ]' | http POST https://api.adspert.net/v3/customers/7027038674/management/edit Accept:application/json Content-Type:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
python-requests
requests.post('https://api.adspert.net/v3/customers/7027038674/management/edit', headers={'Accept': 'application/json', 'Content-Type': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'}, json=[{'adspert_account_id': 123, 'level': 'ADGROUP', 'campaign_id': '5555', 'adgroup_id': '777', 'criterion_id': '66789', 'campaign_mutate_id': 8859368800, 'adgroup_mutate_id': 8016044254, 'criterion_mutate_id': 3059293499, 'status': 'ACTIVE', 'name': 'tucan lorem', 'validate_only': True}])
response
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": { "adspert_account_id": 123, "level": "ADGROUP", "campaign_id": "5555", "adgroup_id": "777", "criterion_id": "66789", "campaign_mutate_id": 8859368800, "adgroup_mutate_id": 8016044254, "criterion_mutate_id": 3059293499, "status": "ACTIVE", "name": "tucan lorem", "validate_only": true }, "meta": {} }
DELETE
- DELETE /v3/customers/(customer_id: int)/management/edit
Bulk delete items in platform management queue.
Request Data (object list, json or x-www-form-urlencoded or csv)
Name
Type
Description
campaign_mutate_idInteger
adgroup_mutate_idInteger
criterion_mutate_idInteger
Example
http
DELETE /v3/customers/7027038674/management/edit HTTP/1.1 Host: api.adspert.net Accept: application/json Content-Type: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5... [ { "campaign_mutate_id": 8859368800, "adgroup_mutate_id": 8016044254, "criterion_mutate_id": 3059293499 } ]
curl
curl -i -X DELETE https://api.adspert.net/v3/customers/7027038674/management/edit -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..." --data-raw '[{"campaign_mutate_id": 8859368800, "adgroup_mutate_id": 8016044254, "criterion_mutate_id": 3059293499}]'
httpie
echo '[ { "adgroup_mutate_id": 8016044254, "campaign_mutate_id": 8859368800, "criterion_mutate_id": 3059293499 } ]' | http DELETE https://api.adspert.net/v3/customers/7027038674/management/edit Accept:application/json Content-Type:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
python-requests
requests.delete('https://api.adspert.net/v3/customers/7027038674/management/edit', headers={'Accept': 'application/json', 'Content-Type': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'}, json=[{'campaign_mutate_id': 8859368800, 'adgroup_mutate_id': 8016044254, 'criterion_mutate_id': 3059293499}])
response
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": null, "meta": {} }
AmzSponsoredProductsCampaignCreateCollection
POST
- POST /v3/customers/(customer_id: int)/management/create/amazon/sp
Add platform campaign to mutate queue
Request Data (single object, json or x-www-form-urlencoded)
Name
Type
Description
adspert_account_idrequiredInteger
Adspert internal ID of the advertising account
performance_group_idInteger
Unique ID of the performance group
amz_portfolio_idnamerequiredString
Campaign name must be unique for the account (including any Campaigns already in the Queue).
Maximum length of 128 characters for Amazon sellers and 116 characters for Amazon Vendors.
bidding_strategyrequiredallow_change_dowhodBoolean
If ad schedule bid adjustment (day-of-week/hour-of-day) optimization is enabled
Default: False
daily_budgetrequiredMin value: 1000000
start_daterequiredend_dateadgroupsrequired[ Object ]
List of AdGroups to be created.
Min items: 1
⤷
adgroup_mutate_idInteger
This should get passed in context of a
PATCHrequest so that we are including the already in the DB created AdGroup.⤷
namerequiredString
Min length: 1
Max length: 255
⤷
default_max_cpcrequiredMin value: 1000
⤷
target_bids[ Object ]
⤷
criterion_mutate_idInteger
⤷
target_expression⤷
bidMin value: 1000
⤷
productsrequired[ Object ]
Min items: 1
⤷
product_ad_mutate_idInteger
This should get passed in context of a
PATCHrequest so that we are including the already in the DB created product ad.⤷
skuString
For Amazon SP campaigns either ASIN or SKU is required.
Only available for Amazon SP Campaigns.
⤷
asinString
For Amazon SP campaigns either ASIN or SKU is required. For Amazon Vendors ASIN is always required.
Only available for Amazon SP Campaigns.
⤷
namerequiredString
Name of the product
validate_onlyBoolean
If set to
TruePATCH/POST requests will only be validated, and will not (after successful validation) be saved.Default value is
False.Example
http
POST /v3/customers/7027038674/management/create/amazon/sp HTTP/1.1 Host: api.adspert.net Accept: application/json Content-Type: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5... { "adspert_account_id": 123, "performance_group_id": "1245", "amz_portfolio_id": "9999", "name": "tucan lorem", "bidding_strategy": "AUTO-FOR-SALES", "allow_change_dowhod": true, "daily_budget": 19990000, "start_date": "2018-10-21", "end_date": "2018-10-21", "adgroups": [ { "adgroup_mutate_id": 8016044254, "name": "tucan lorem", "default_max_cpc": 19990000, "target_bids": [ { "criterion_mutate_id": 3059293499, "target_expression": "ASINACCESSORYRELATED", "bid": 19990000 } ], "products": [ { "product_ad_mutate_id": 8498480380, "sku": "00011", "asin": "B000000001", "name": "tucan lorem" } ] } ], "validate_only": true }
curl
curl -i -X POST https://api.adspert.net/v3/customers/7027038674/management/create/amazon/sp -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..." --data-raw '{"adgroups": [{"adgroup_mutate_id": 8016044254, "name": "tucan lorem", "default_max_cpc": 19990000, "target_bids": [{"criterion_mutate_id": 3059293499, "target_expression": "ASINACCESSORYRELATED", "bid": 19990000}], "products": [{"product_ad_mutate_id": 8498480380, "sku": "00011", "asin": "B000000001", "name": "tucan lorem"}]}], "adspert_account_id": 123, "allow_change_dowhod": true, "amz_portfolio_id": "9999", "bidding_strategy": "AUTO-FOR-SALES", "daily_budget": 19990000, "end_date": "2018-10-21", "name": "tucan lorem", "performance_group_id": "1245", "start_date": "2018-10-21", "validate_only": true}'
httpie
echo '{ "adgroups": [ { "adgroup_mutate_id": 8016044254, "default_max_cpc": 19990000, "name": "tucan lorem", "products": [ { "asin": "B000000001", "name": "tucan lorem", "product_ad_mutate_id": 8498480380, "sku": "00011" } ], "target_bids": [ { "bid": 19990000, "criterion_mutate_id": 3059293499, "target_expression": "ASINACCESSORYRELATED" } ] } ], "adspert_account_id": 123, "allow_change_dowhod": true, "amz_portfolio_id": "9999", "bidding_strategy": "AUTO-FOR-SALES", "daily_budget": 19990000, "end_date": "2018-10-21", "name": "tucan lorem", "performance_group_id": "1245", "start_date": "2018-10-21", "validate_only": true }' | http POST https://api.adspert.net/v3/customers/7027038674/management/create/amazon/sp Accept:application/json Content-Type:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
python-requests
requests.post('https://api.adspert.net/v3/customers/7027038674/management/create/amazon/sp', headers={'Accept': 'application/json', 'Content-Type': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'}, json={'adgroups': [{'adgroup_mutate_id': 8016044254, 'name': 'tucan lorem', 'default_max_cpc': 19990000, 'target_bids': [{'criterion_mutate_id': 3059293499, 'target_expression': 'ASINACCESSORYRELATED', 'bid': 19990000}], 'products': [{'product_ad_mutate_id': 8498480380, 'sku': '00011', 'asin': 'B000000001', 'name': 'tucan lorem'}]}], 'adspert_account_id': 123, 'allow_change_dowhod': True, 'amz_portfolio_id': '9999', 'bidding_strategy': 'AUTO-FOR-SALES', 'daily_budget': 19990000, 'end_date': '2018-10-21', 'name': 'tucan lorem', 'performance_group_id': '1245', 'start_date': '2018-10-21', 'validate_only': True})
response
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": null, "meta": {} }
AmzSponsoredProductsCampaignCreateResource
PATCH
- PATCH /v3/customers/(customer_id: int)/management/create/amazon/sp/(campaign_mutate_id: int)
Update platform campaign in queue.
Request Data (single object, json or x-www-form-urlencoded)
Name
Type
Description
adspert_account_idrequiredInteger
Adspert internal ID of the advertising account
performance_group_idInteger
Unique ID of the performance group
amz_portfolio_idnamerequiredString
Campaign name must be unique for the account (including any Campaigns already in the Queue).
Maximum length of 128 characters for Amazon sellers and 116 characters for Amazon Vendors.
bidding_strategyrequiredallow_change_dowhodBoolean
If ad schedule bid adjustment (day-of-week/hour-of-day) optimization is enabled
Default: False
daily_budgetrequiredMin value: 1000000
start_daterequiredend_dateadgroupsrequired[ Object ]
List of AdGroups to be created.
Min items: 1
⤷
adgroup_mutate_idInteger
This should get passed in context of a
PATCHrequest so that we are including the already in the DB created AdGroup.⤷
namerequiredString
Min length: 1
Max length: 255
⤷
default_max_cpcrequiredMin value: 1000
⤷
target_bids[ Object ]
⤷
criterion_mutate_idInteger
⤷
target_expression⤷
bidMin value: 1000
⤷
productsrequired[ Object ]
Min items: 1
⤷
product_ad_mutate_idInteger
This should get passed in context of a
PATCHrequest so that we are including the already in the DB created product ad.⤷
skuString
For Amazon SP campaigns either ASIN or SKU is required.
Only available for Amazon SP Campaigns.
⤷
asinString
For Amazon SP campaigns either ASIN or SKU is required. For Amazon Vendors ASIN is always required.
Only available for Amazon SP Campaigns.
⤷
namerequiredString
Name of the product
validate_onlyBoolean
If set to
TruePATCH/POST requests will only be validated, and will not (after successful validation) be saved.Default value is
False.Example
http
PATCH /v3/customers/7027038674/management/create/amazon/sp/8859368800 HTTP/1.1 Host: api.adspert.net Accept: application/json Content-Type: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5... { "adspert_account_id": 123, "performance_group_id": "1245", "amz_portfolio_id": "9999", "name": "tucan lorem", "bidding_strategy": "AUTO-FOR-SALES", "allow_change_dowhod": true, "daily_budget": 19990000, "start_date": "2018-10-21", "end_date": "2018-10-21", "adgroups": [ { "adgroup_mutate_id": 8016044254, "name": "tucan lorem", "default_max_cpc": 19990000, "target_bids": [ { "criterion_mutate_id": 3059293499, "target_expression": "ASINACCESSORYRELATED", "bid": 19990000 } ], "products": [ { "product_ad_mutate_id": 8498480380, "sku": "00011", "asin": "B000000001", "name": "tucan lorem" } ] } ], "validate_only": true }
curl
curl -i -X PATCH https://api.adspert.net/v3/customers/7027038674/management/create/amazon/sp/8859368800 -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..." --data-raw '{"adgroups": [{"adgroup_mutate_id": 8016044254, "name": "tucan lorem", "default_max_cpc": 19990000, "target_bids": [{"criterion_mutate_id": 3059293499, "target_expression": "ASINACCESSORYRELATED", "bid": 19990000}], "products": [{"product_ad_mutate_id": 8498480380, "sku": "00011", "asin": "B000000001", "name": "tucan lorem"}]}], "adspert_account_id": 123, "allow_change_dowhod": true, "amz_portfolio_id": "9999", "bidding_strategy": "AUTO-FOR-SALES", "daily_budget": 19990000, "end_date": "2018-10-21", "name": "tucan lorem", "performance_group_id": "1245", "start_date": "2018-10-21", "validate_only": true}'
httpie
echo '{ "adgroups": [ { "adgroup_mutate_id": 8016044254, "default_max_cpc": 19990000, "name": "tucan lorem", "products": [ { "asin": "B000000001", "name": "tucan lorem", "product_ad_mutate_id": 8498480380, "sku": "00011" } ], "target_bids": [ { "bid": 19990000, "criterion_mutate_id": 3059293499, "target_expression": "ASINACCESSORYRELATED" } ] } ], "adspert_account_id": 123, "allow_change_dowhod": true, "amz_portfolio_id": "9999", "bidding_strategy": "AUTO-FOR-SALES", "daily_budget": 19990000, "end_date": "2018-10-21", "name": "tucan lorem", "performance_group_id": "1245", "start_date": "2018-10-21", "validate_only": true }' | http PATCH https://api.adspert.net/v3/customers/7027038674/management/create/amazon/sp/8859368800 Accept:application/json Content-Type:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
python-requests
requests.patch('https://api.adspert.net/v3/customers/7027038674/management/create/amazon/sp/8859368800', headers={'Accept': 'application/json', 'Content-Type': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'}, json={'adgroups': [{'adgroup_mutate_id': 8016044254, 'name': 'tucan lorem', 'default_max_cpc': 19990000, 'target_bids': [{'criterion_mutate_id': 3059293499, 'target_expression': 'ASINACCESSORYRELATED', 'bid': 19990000}], 'products': [{'product_ad_mutate_id': 8498480380, 'sku': '00011', 'asin': 'B000000001', 'name': 'tucan lorem'}]}], 'adspert_account_id': 123, 'allow_change_dowhod': True, 'amz_portfolio_id': '9999', 'bidding_strategy': 'AUTO-FOR-SALES', 'daily_budget': 19990000, 'end_date': '2018-10-21', 'name': 'tucan lorem', 'performance_group_id': '1245', 'start_date': '2018-10-21', 'validate_only': True})
response
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": null, "meta": {} }
WmtSponsoredProductsCampaignCreateCollection
POST
- POST /v3/customers/(customer_id: int)/management/create/walmart/sp
Add platform campaign to mutate queue
Request Data (single object, json or x-www-form-urlencoded)
Name
Type
Description
adspert_account_idrequiredInteger
Adspert internal ID of the advertising account
performance_group_idInteger
Unique ID of the performance group
namerequiredString
Campaign name must be unique for the account (including any Campaigns already in the Queue).
Min length: 1
Max length: 128
bidding_strategyrequiredtroas_valueInteger
Required if bidding_strategy is set to TROAS.
Min value: 0
Max value: 10000
daily_budgetrequiredRequired for DAILY and BOTH budget_type.
For 1p Seller value must be at least 50000000.
For 3p Seller value must be at least 10000000.
Min value: 10000000
total_budgetRequired if budget_type is set to BOTH.
Should not be set if budget_type is set to DAILY.
For 1p Seller value must be at least 100000000.
For 3p Seller value must be at least 50000000.
Min value: 50000000
budget_typerequiredstart_daterequiredend_dateallow_brand_term_targetingBoolean
Default: False
allow_complementary_product_targetingBoolean
Default: False
adgroupsrequired[ Object ]
List of AdGroups to be created.
Min items: 1
⤷
adgroup_mutate_idInteger
This should get passed in context of a
PATCHrequest so that we are including the already in the DB created AdGroup.⤷
namerequiredString
Min length: 1
Max length: 128
⤷
productsrequired[ Object ]
Min items: 1
⤷
product_ad_mutate_idInteger
This should get passed in context of a
PATCHrequest so that we are including the already in the DB created product ad.⤷
namerequiredString
Name of the product
⤷
item_idrequiredString
Only available for Walmart SP Campaigns.
⤷
bidOnly available for Walmart SP Campaigns.
NULL for TROAS Campaigns. Otherwise needs to be at least 20000.
Min value: 20000
validate_onlyBoolean
If set to
TruePATCH/POST requests will only be validated, and will not (after successful validation) be saved.Default value is
False.Example
http
POST /v3/customers/7027038674/management/create/walmart/sp HTTP/1.1 Host: api.adspert.net Accept: application/json Content-Type: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5... { "adspert_account_id": 123, "performance_group_id": "1245", "name": "tucan lorem", "bidding_strategy": "DYNAMIC", "troas_value": 9830359863, "daily_budget": 19990000, "total_budget": 19990000, "budget_type": "BOTH", "start_date": "2018-10-21", "end_date": "2018-10-21", "allow_brand_term_targeting": true, "allow_complementary_product_targeting": true, "adgroups": [ { "adgroup_mutate_id": 8016044254, "name": "tucan lorem", "products": [ { "product_ad_mutate_id": 8498480380, "name": "tucan lorem", "item_id": "ASIN0001|SKU0001", "bid": 19990000 } ] } ], "validate_only": true }
curl
curl -i -X POST https://api.adspert.net/v3/customers/7027038674/management/create/walmart/sp -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..." --data-raw '{"adgroups": [{"adgroup_mutate_id": 8016044254, "name": "tucan lorem", "products": [{"product_ad_mutate_id": 8498480380, "name": "tucan lorem", "item_id": "ASIN0001|SKU0001", "bid": 19990000}]}], "adspert_account_id": 123, "allow_brand_term_targeting": true, "allow_complementary_product_targeting": true, "bidding_strategy": "DYNAMIC", "budget_type": "BOTH", "daily_budget": 19990000, "end_date": "2018-10-21", "name": "tucan lorem", "performance_group_id": "1245", "start_date": "2018-10-21", "total_budget": 19990000, "troas_value": 9830359863, "validate_only": true}'
httpie
echo '{ "adgroups": [ { "adgroup_mutate_id": 8016044254, "name": "tucan lorem", "products": [ { "bid": 19990000, "item_id": "ASIN0001|SKU0001", "name": "tucan lorem", "product_ad_mutate_id": 8498480380 } ] } ], "adspert_account_id": 123, "allow_brand_term_targeting": true, "allow_complementary_product_targeting": true, "bidding_strategy": "DYNAMIC", "budget_type": "BOTH", "daily_budget": 19990000, "end_date": "2018-10-21", "name": "tucan lorem", "performance_group_id": "1245", "start_date": "2018-10-21", "total_budget": 19990000, "troas_value": 9830359863, "validate_only": true }' | http POST https://api.adspert.net/v3/customers/7027038674/management/create/walmart/sp Accept:application/json Content-Type:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
python-requests
requests.post('https://api.adspert.net/v3/customers/7027038674/management/create/walmart/sp', headers={'Accept': 'application/json', 'Content-Type': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'}, json={'adgroups': [{'adgroup_mutate_id': 8016044254, 'name': 'tucan lorem', 'products': [{'product_ad_mutate_id': 8498480380, 'name': 'tucan lorem', 'item_id': 'ASIN0001|SKU0001', 'bid': 19990000}]}], 'adspert_account_id': 123, 'allow_brand_term_targeting': True, 'allow_complementary_product_targeting': True, 'bidding_strategy': 'DYNAMIC', 'budget_type': 'BOTH', 'daily_budget': 19990000, 'end_date': '2018-10-21', 'name': 'tucan lorem', 'performance_group_id': '1245', 'start_date': '2018-10-21', 'total_budget': 19990000, 'troas_value': 9830359863, 'validate_only': True})
response
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": null, "meta": {} }
WmtSponsoredProductsCampaignCreateResource
PATCH
- PATCH /v3/customers/(customer_id: int)/management/create/walmart/sp/(campaign_mutate_id: int)
Update platform campaign in queue.
Request Data (single object, json or x-www-form-urlencoded)
Name
Type
Description
adspert_account_idrequiredInteger
Adspert internal ID of the advertising account
performance_group_idInteger
Unique ID of the performance group
namerequiredString
Campaign name must be unique for the account (including any Campaigns already in the Queue).
Min length: 1
Max length: 128
bidding_strategyrequiredtroas_valueInteger
Required if bidding_strategy is set to TROAS.
Min value: 0
Max value: 10000
daily_budgetrequiredRequired for DAILY and BOTH budget_type.
For 1p Seller value must be at least 50000000.
For 3p Seller value must be at least 10000000.
Min value: 10000000
total_budgetRequired if budget_type is set to BOTH.
Should not be set if budget_type is set to DAILY.
For 1p Seller value must be at least 100000000.
For 3p Seller value must be at least 50000000.
Min value: 50000000
budget_typerequiredstart_daterequiredend_dateallow_brand_term_targetingBoolean
Default: False
allow_complementary_product_targetingBoolean
Default: False
adgroupsrequired[ Object ]
List of AdGroups to be created.
Min items: 1
⤷
adgroup_mutate_idInteger
This should get passed in context of a
PATCHrequest so that we are including the already in the DB created AdGroup.⤷
namerequiredString
Min length: 1
Max length: 128
⤷
productsrequired[ Object ]
Min items: 1
⤷
product_ad_mutate_idInteger
This should get passed in context of a
PATCHrequest so that we are including the already in the DB created product ad.⤷
namerequiredString
Name of the product
⤷
item_idrequiredString
Only available for Walmart SP Campaigns.
⤷
bidOnly available for Walmart SP Campaigns.
NULL for TROAS Campaigns. Otherwise needs to be at least 20000.
Min value: 20000
validate_onlyBoolean
If set to
TruePATCH/POST requests will only be validated, and will not (after successful validation) be saved.Default value is
False.Example
http
PATCH /v3/customers/7027038674/management/create/walmart/sp/8859368800 HTTP/1.1 Host: api.adspert.net Accept: application/json Content-Type: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5... { "adspert_account_id": 123, "performance_group_id": "1245", "name": "tucan lorem", "bidding_strategy": "DYNAMIC", "troas_value": 9830359863, "daily_budget": 19990000, "total_budget": 19990000, "budget_type": "BOTH", "start_date": "2018-10-21", "end_date": "2018-10-21", "allow_brand_term_targeting": true, "allow_complementary_product_targeting": true, "adgroups": [ { "adgroup_mutate_id": 8016044254, "name": "tucan lorem", "products": [ { "product_ad_mutate_id": 8498480380, "name": "tucan lorem", "item_id": "ASIN0001|SKU0001", "bid": 19990000 } ] } ], "validate_only": true }
curl
curl -i -X PATCH https://api.adspert.net/v3/customers/7027038674/management/create/walmart/sp/8859368800 -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..." --data-raw '{"adgroups": [{"adgroup_mutate_id": 8016044254, "name": "tucan lorem", "products": [{"product_ad_mutate_id": 8498480380, "name": "tucan lorem", "item_id": "ASIN0001|SKU0001", "bid": 19990000}]}], "adspert_account_id": 123, "allow_brand_term_targeting": true, "allow_complementary_product_targeting": true, "bidding_strategy": "DYNAMIC", "budget_type": "BOTH", "daily_budget": 19990000, "end_date": "2018-10-21", "name": "tucan lorem", "performance_group_id": "1245", "start_date": "2018-10-21", "total_budget": 19990000, "troas_value": 9830359863, "validate_only": true}'
httpie
echo '{ "adgroups": [ { "adgroup_mutate_id": 8016044254, "name": "tucan lorem", "products": [ { "bid": 19990000, "item_id": "ASIN0001|SKU0001", "name": "tucan lorem", "product_ad_mutate_id": 8498480380 } ] } ], "adspert_account_id": 123, "allow_brand_term_targeting": true, "allow_complementary_product_targeting": true, "bidding_strategy": "DYNAMIC", "budget_type": "BOTH", "daily_budget": 19990000, "end_date": "2018-10-21", "name": "tucan lorem", "performance_group_id": "1245", "start_date": "2018-10-21", "total_budget": 19990000, "troas_value": 9830359863, "validate_only": true }' | http PATCH https://api.adspert.net/v3/customers/7027038674/management/create/walmart/sp/8859368800 Accept:application/json Content-Type:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
python-requests
requests.patch('https://api.adspert.net/v3/customers/7027038674/management/create/walmart/sp/8859368800', headers={'Accept': 'application/json', 'Content-Type': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'}, json={'adgroups': [{'adgroup_mutate_id': 8016044254, 'name': 'tucan lorem', 'products': [{'product_ad_mutate_id': 8498480380, 'name': 'tucan lorem', 'item_id': 'ASIN0001|SKU0001', 'bid': 19990000}]}], 'adspert_account_id': 123, 'allow_brand_term_targeting': True, 'allow_complementary_product_targeting': True, 'bidding_strategy': 'DYNAMIC', 'budget_type': 'BOTH', 'daily_budget': 19990000, 'end_date': '2018-10-21', 'name': 'tucan lorem', 'performance_group_id': '1245', 'start_date': '2018-10-21', 'total_budget': 19990000, 'troas_value': 9830359863, 'validate_only': True})
response
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": null, "meta": {} }
CampaignCreateQueueCollection
GET
- GET /v3/customers/(customer_id: int)/management/create/queue
Retrieve list of campaigns to be created.
Query Params
Name
Type
Description
includeFields to include in response data.
excludeFields to exclude in response data.
filter_target_expressionOnly return results matching given
target_expressionvalues.filter_account_currency[ String ]
Only return results matching given
account_currencyvalues.filter_account_id[ String ]
Only return results matching given
account_idvalues.filter_account_is_demo[ Boolean ]
Only return results matching given
account_is_demovalues.filter_account_name[ String ]
Only return results matching given
account_namevalues.filter_account_optimize[ Boolean ]
Only return results matching given
account_optimizevalues.filter_account_platform[ AdPlatform ]
Only return results matching given
account_platformvalues.filter_account_tags_user[ String ]
Only return results matching given
account_tags_uservalues.filter_adgroup_name[ String ]
Only return results matching given
adgroups.namevalues.filter_adspert_account_id[ Integer ]
Only return results matching given
adspert_account_idvalues.filter_adspert_portfolio_id[ CompositeID ]
Only return results matching given
adspert_portfolio_idvalues.filter_amz_allow_change_dowhod[ Boolean ]
Only return results matching given
amz_allow_change_dowhodvalues.filter_amz_portfolio_name[ String ]
Only return results matching given
amz_portfolio_namevalues.filter_bidding_strategyOnly return results matching given
bidding_strategyvalues.filter_budget_typeOnly return results matching given
budget_typevalues.filter_campaign_name[ String ]
Only return results matching given
namevalues.filter_campaign_type[ CampaignType ]
Only return results matching given
campaign_typevalues.filter_daily_budget_geOnly return results where
daily_budgetis equal or greater than this value.Min value: 1000
filter_daily_budget_leOnly return results where
daily_budgetis equal or lower than this value.Min value: 1000
filter_default_max_cpc_geOnly return results where
adgroups.default_max_cpcis equal or greater than this value.Min value: 1000
filter_default_max_cpc_leOnly return results where
adgroups.default_max_cpcis equal or lower than this value.Min value: 1000
filter_end_date_geOnly return results where
end_dateis equal or greater than this value.filter_end_date_leOnly return results where
end_dateis equal or lower than this value.filter_performance_group_enabled[ Boolean ]
Only return results matching given
performance_group_enabledvalues.filter_performance_group_goal_typesOnly return results matching given
performance_group_goal_typesvalues.filter_performance_group_id[ Integer ]
Only return results matching given
performance_group_idvalues.filter_performance_group_name[ String ]
Only return results matching given
performance_group_namevalues.filter_performance_group_optimization_type[ OptimizationType ]
Only return results matching given
performance_group_optimization_typevalues.filter_start_date_geOnly return results where
start_dateis equal or greater than this value.filter_start_date_leOnly return results where
start_dateis equal or lower than this value.filter_targeting_typeOnly return results matching given
targeting_typevalues.filter_total_budget_geOnly return results where
total_budgetis equal or greater than this value.Min value: 1000
filter_total_budget_leOnly return results where
total_budgetis equal or lower than this value.Min value: 1000
filter_troas_value[ Integer ]
Only return results matching given
troas_valuevalues.filter_troas_value_geInteger
Only return results where
troas_valueis equal or greater than this value.filter_troas_value_leInteger
Only return results where
troas_valueis equal or lower than this value.filter_wmt_allow_brand_term_targeting[ Boolean ]
Only return results matching given
wmt_allow_brand_term_targetingvalues.filter_wmt_allow_complementary_product_targeting[ Boolean ]
Only return results matching given
wmt_allow_complementary_product_targetingvalues.search_fieldsFields that should be searched using the
search_term.search_termString
Search term used to search the
search_fields.search_product_nameString
Only return results where
product_namematches the given string.search_skuString
Only return results where
skumatches the given string.search_asinString
Only return results where
asinmatches the given string.search_account_idString
Only return results where
account_idmatches the given string.search_account_nameString
Only return results where
account_namematches the given string.search_account_tags_userString
Only return results where
account_tags_usermatches the given string.search_adgroup_nameString
Only return results where
adgroups.namematches the given string.search_adspert_account_idString
Only return results where
adspert_account_idmatches the given string.search_amz_portfolio_idString
Only return results where
amz_portfolio_idmatches the given string.search_amz_portfolio_nameString
Only return results where
amz_portfolio_namematches the given string.search_campaign_nameString
Only return results where
namematches the given string.search_performance_group_idString
Only return results where
performance_group_idmatches the given string.search_performance_group_nameString
Only return results where
performance_group_namematches the given string.sort_account_currencySort results by
account_currency.sort_account_idSort results by
account_id.sort_account_is_demoSort results by
account_is_demo.sort_account_nameSort results by
account_name.sort_account_optimizeSort results by
account_optimize.sort_account_platformSort results by
account_platform.sort_adgroup_nameSort results by
adgroups.name.sort_adspert_account_idSort results by
adspert_account_id.sort_adspert_portfolio_idSort results by
adspert_portfolio_id.sort_amz_allow_change_dowhodSort results by
amz_allow_change_dowhod.sort_amz_portfolio_idSort results by
amz_portfolio_id.sort_amz_portfolio_nameSort results by
amz_portfolio_name.sort_bidding_strategySort results by
bidding_strategy.sort_campaign_mutate_idSort results by
campaign_mutate_id.sort_campaign_nameSort results by
name.sort_campaign_typeSort results by
campaign_type.sort_daily_budgetSort results by
daily_budget.sort_default_max_cpcSort results by
adgroups.default_max_cpc.sort_end_dateSort results by
end_date.sort_performance_group_enabledSort results by
performance_group_enabled.sort_performance_group_goal_typesSort results by
performance_group_goal_types.sort_performance_group_idSort results by
performance_group_id.sort_performance_group_nameSort results by
performance_group_name.sort_performance_group_optimization_typeSort results by
performance_group_optimization_type.sort_start_dateSort results by
start_date.offsetInteger
Start index for result list.
Default: 0
Min value: 0
limitInteger
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_idsearchableInteger
Adspert internal ID of the advertising account
account_idsearchableString
Ad platform specific ID of an advertising account.
account_namesearchableString
account_platformThe account’s advertising platform.
account_optimizeBoolean
If optimization by Adspert is enabled for this account.
account_tags_usersearchable[ String ]
account_is_demoBoolean
If the account is a generated account for demonstration purposes.
Demo accounts have no counterpart in the ad platform.
account_currencyString
performance_group_idsearchableInteger
Unique ID of the performance group
performance_group_namesearchableString
Unique name of the performance group.
performance_group_optimization_typeOptimization type of the performance group.
Only campaigns of the same optimization type can be added to a given performance group.
performance_group_enabledBoolean
performance_group_goals[ Object ]
List of performance group goals
⤷
goal_typeType of the performance group goal
⤷
goal_valueFloat
Value of the performance group goal.
goal_valueshould beNULLifgoal_typeisPROFIT-MAXIMIZATION.goal_valueshould be a ratio (> 0) ifgoal_typeisROAS,CRRandROI,goal_valueshould be specified in micros and be larger than 10000 ifgoal_typeisCOST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICK.⤷
goal_currencyCurrency of the performance group goal.
Currency is required for
COST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICKgoals.⤷
goal_microsValue for
COST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICKgoals.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_ratioFloat
Value for
ROAS,CRRandROIgoals.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_typesList of performance group goal types
adspert_portfolio_idAdspert internal ID of Amazon portfolio.
Composite ID specification:
{adspert_account_id}:{portfolio_id}amz_portfolio_idsearchableamz_portfolio_namesearchableString
campaign_mutate_idInteger
namesearchableString
campaign_typetargeting_typebidding_strategydaily_budgetstart_dateend_dateamz_allow_change_dowhodBoolean
Ony available for Amazon SP Campaigns.
troas_valueInteger
Only available for Walmart SP campaigns with TROAS Bidding Strategy.
total_budgetOnly available for Walmart SP campaigns if budget_type is set to BOTH.
budget_typeOnly available for Walmart SP campaigns.
wmt_allow_brand_term_targetingBoolean
wmt_allow_complementary_product_targetingBoolean
adgroups[ Object ]
List of AdGroups to be created.
⤷
adgroup_mutate_idInteger
⤷
namesearchableString
⤷
default_max_cpcNULL for Walmart SP Campaigns.
⤷
target_bids[ Object ]
Only available for Amazon SP Campaigns.
⤷
criterion_mutate_idInteger
⤷
target_expression⤷
bidMin value: 1000
⤷
products[ Object ]
⤷
product_ad_mutate_idInteger
⤷
skuString
For Amazon SP campaigns either ASIN or SKU is required.
Only available for Amazon SP Campaigns.
⤷
asinString
For Amazon SP campaigns either ASIN or SKU is required. For Amazon Vendors ASIN is always required.
Only available for Amazon SP Campaigns.
⤷
namerequiredString
Name of the product
⤷
item_idrequiredString
Only available for Walmart SP Campaigns.
⤷
bidOnly available for Walmart SP Campaigns.
NULL for TROAS Campaigns. Otherwise needs to be at least 20000.
Min value: 20000
Example
http
GET /v3/customers/7027038674/management/create/queue?filter_account_currency=ipsum+adlora&include=ipsum.amet&filter_account_id=amet+lorem HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl
curl -i -X GET 'https://api.adspert.net/v3/customers/7027038674/management/create/queue?filter_account_currency=ipsum+adlora&include=ipsum.amet&filter_account_id=amet+lorem' -H "Accept: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
httpie
http 'https://api.adspert.net/v3/customers/7027038674/management/create/queue?filter_account_currency=ipsum+adlora&include=ipsum.amet&filter_account_id=amet+lorem' Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
python-requests
requests.get('https://api.adspert.net/v3/customers/7027038674/management/create/queue?filter_account_currency=ipsum+adlora&include=ipsum.amet&filter_account_id=amet+lorem', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
response
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": 19990000, "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", "campaign_mutate_id": 8859368800, "name": "tucan lorem", "campaign_type": "AMAZON-SPONSORED-BRANDS", "targeting_type": "AUTO", "bidding_strategy": "AUTO-FOR-SALES", "daily_budget": 19990000, "start_date": "2018-10-21", "end_date": "2018-10-21", "amz_allow_change_dowhod": true, "troas_value": 9830359863, "total_budget": 19990000, "budget_type": "BOTH", "wmt_allow_brand_term_targeting": true, "wmt_allow_complementary_product_targeting": true, "adgroups": [ { "adgroup_mutate_id": 8016044254, "name": "tucan lorem", "default_max_cpc": 19990000, "target_bids": [ { "criterion_mutate_id": 3059293499, "target_expression": "ASINACCESSORYRELATED", "bid": 19990000 } ], "products": [ { "product_ad_mutate_id": 8498480380, "sku": "00011", "asin": "B000000001", "name": "tucan lorem", "item_id": "ASIN0001|SKU0001", "bid": 19990000 } ] } ] } ], "meta": { "pagination": { "offset": 0, "limit": 10, "total": 74, "sort": { "adspert_account_id": 1 } } } }
DELETE
- DELETE /v3/customers/(customer_id: int)/management/create/queue
Bulk delete campaign in creation queue
Request Data (object list, json or x-www-form-urlencoded)
Name
Type
Description
campaign_mutate_idInteger
Example
http
DELETE /v3/customers/7027038674/management/create/queue HTTP/1.1 Host: api.adspert.net Accept: application/json Content-Type: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5... [ { "campaign_mutate_id": 8859368800 } ]
curl
curl -i -X DELETE https://api.adspert.net/v3/customers/7027038674/management/create/queue -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..." --data-raw '[{"campaign_mutate_id": 8859368800}]'
httpie
echo '[ { "campaign_mutate_id": 8859368800 } ]' | http DELETE https://api.adspert.net/v3/customers/7027038674/management/create/queue Accept:application/json Content-Type:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
python-requests
requests.delete('https://api.adspert.net/v3/customers/7027038674/management/create/queue', headers={'Accept': 'application/json', 'Content-Type': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'}, json=[{'campaign_mutate_id': 8859368800}])
response
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": null, "meta": {} }
Criterion Addition
RuleCollection
GET
- GET /v3/customers/(customer_id: int)/criterion-addition/rules
Get criterion addition rules.
Query Params
Name
Type
Description
includeFields to include in response data.
excludeFields to exclude in response data.
filter_rule_levelrequiredDefines level of rules that will be returned in the response.
filter_rule_inheritedBoolean
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_idvalues.filter_rule_id[ LargeInteger ]
Only return results matching given
rulesets.rules.rule_idvalues.filter_rule_actionOnly return results matching given
rulesets.rules.actionvalues.filter_rule_targeting_type[ AmzTargetingType ]
Only return results matching given
rulesets.rules.targeting_typevalues.filter_rule_platform[ AdPlatform ]
Only return results where rule type platform matches the given string.
filter_rule_match_typeOnly return results matching given
rulesets.rules.destinations.match_typevalues.filter_rule_negative[ Boolean ]
Only return results matching given
rulesets.rules.destinations.negativevalues.filter_rule_product_ad_sync_modeOnly return results matching given
rulesets.rules.destinations.effective_destinations.product_ad_sync_modevalues.filter_adspert_account_id[ Integer ]
Only return results matching given
location.adspert_account_idvalues.filter_account_id[ String ]
Only return results matching given
location.account_idvalues.filter_account_name[ String ]
Only return results matching given
location.account_namevalues.filter_account_platform[ AdPlatform ]
Only return results matching given
location.account_platformvalues.filter_account_optimize[ Boolean ]
Only return results matching given
location.account_optimizevalues.filter_account_tags_user[ String ]
Only return results matching given
location.account_tags_uservalues.filter_account_is_demo[ Boolean ]
Only return results matching given
location.account_is_demovalues.filter_performance_group_id[ Integer ]
Only return results matching given
location.performance_group_idvalues.filter_performance_group_name[ String ]
Only return results matching given
location.performance_group_namevalues.filter_performance_group_enabled[ Boolean ]
Only return results matching given
location.performance_group_enabledvalues.filter_performance_group_optimization_type[ OptimizationType ]
Only return results matching given
location.performance_group_optimization_typevalues.filter_performance_group_goal_typesOnly return results matching given
location.performance_group_goal_typesvalues.filter_adspert_portfolio_id[ CompositeID ]
Only return results matching given
location.adspert_portfolio_idvalues.filter_amz_portfolio_name[ String ]
Only return results matching given
location.amz_portfolio_namevalues.filter_adspert_campaign_id[ CompositeID ]
Only return results matching given
location.adspert_campaign_idvalues.filter_campaign_name[ String ]
Only return results matching given
location.campaign_namevalues.filter_campaign_type[ CampaignType ]
Only return results matching given
location.campaign_typevalues.filter_campaign_eby_marketplace_id[ String ]
Only return results matching given
location.campaign_eby_marketplace_idvalues.filter_campaign_status[ CampaignStatus ]
Only return results matching given
location.campaign_statusvalues.filter_campaign_optimize[ Boolean ]
Only return results matching given
location.campaign_optimizevalues.filter_campaign_optimization_type[ OptimizationType ]
Only return results matching given
location.campaign_optimization_typevalues.filter_campaign_labels[ String ]
Only return results matching given
location.campaign_labelsvalues.filter_adspert_adgroup_id[ CompositeID ]
Only return results matching given
location.adspert_adgroup_idvalues.filter_adgroup_name[ String ]
Only return results matching given
location.adgroup_namevalues.filter_adgroup_status[ AdgroupStatus ]
Only return results matching given
location.adgroup_statusvalues.filter_adgroup_labels[ String ]
Only return results matching given
location.adgroup_labelsvalues.search_fieldsFields that should be searched using the
search_term.search_termString
Search term used to search the
search_fields.search_account_idString
Only return results where
location.account_idmatches the given string.search_account_nameString
Only return results where
location.account_namematches the given string.search_account_tags_userString
Only return results where
location.account_tags_usermatches the given string.search_performance_group_nameString
Only return results where
location.performance_group_namematches the given string.search_portfolio_nameString
Only return results where
location.portfolio_namematches the given string.search_campaign_nameString
Only return results where
location.campaign_namematches the given string.search_campaign_labels[ String ]
Only return results where
location.campaign_labelsmatches the given string.search_adgroup_nameString
Only return results where
location.adgroup_namematches the given string.search_adgroup_labels[ String ]
Only return results where
location.adgroup_labelsmatches the given string.sort_platformSort results by
location.platform.sort_adspert_account_idSort results by
location.adspert_account_id.sort_adspert_campaign_idSort results by
location.adspert_campaign_id.sort_adspert_adgroup_idSort results by
location.adspert_adgroup_id.sort_account_nameSort results by
location.account_name.sort_campaign_nameSort results by
location.campaign_name.sort_adgroup_nameSort results by
location.adgroup_name.offsetInteger
Start index for result list.
Default: 0
Min value: 0
limitInteger
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
locationObject
Location for which the rulesets are defined or inherited.
Location essentially is a combination of level + IDs.
⤷
level⤷
platform⤷
adspert_account_idsearchableInteger
Adspert internal ID of the advertising account
⤷
account_idsearchableString
Ad platform specific ID of an advertising account.
⤷
account_namesearchableString
⤷
account_platformThe account’s advertising platform.
⤷
adspert_campaign_idAdspert internal ID of the campaign.
Composite ID specification:
{adspert_account_id}:{campaign_id}⤷
campaign_idsearchable⤷
campaign_namesearchableString
⤷
campaign_type⤷
adspert_adgroup_idAdspert internal ID of the adgroup.
Composite ID specification:
{adspert_account_id}:{adgroup_id}⤷
adgroup_idsearchable⤷
adgroup_namesearchableString
rulesets[ Object ]
List of rulesets that apply to the given location.
⤷
rule_type_idInteger
Id of the Rule Type the ruleset is defined for.
⤷
defined_atObject
Where is the ruleset defined?
This can be different from
locationfor rulesets that are inherited.⤷
level⤷
platform⤷
adspert_account_idsearchableInteger
Adspert internal ID of the advertising account
⤷
account_idsearchableString
Ad platform specific ID of an advertising account.
⤷
account_namesearchableString
⤷
account_platformThe account’s advertising platform.
⤷
adspert_campaign_idAdspert internal ID of the campaign.
Composite ID specification:
{adspert_account_id}:{campaign_id}⤷
campaign_idsearchable⤷
campaign_namesearchableString
⤷
campaign_type⤷
adspert_adgroup_idAdspert internal ID of the adgroup.
Composite ID specification:
{adspert_account_id}:{adgroup_id}⤷
adgroup_idsearchable⤷
adgroup_namesearchableString
⤷
inheritedBoolean
Is the ruleset inherited?
If
true,defined_atwill 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_idUnique ID of the rule
⤷
actionAction 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.
⤷
operandRule filter operand.
⤷
operationRule filter operation.
⤷
values[ Any ]
Rule filter values.
⤷
catch_allBoolean
Is the rule supposed to be used as a catch-all?
⤷
targeting_typeTargeting type of the rule.
⤷
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_idAdspert internal ID of the adgroup.
This field is populated only for
SELECTED-ADGROUPdestinations.Composite ID specification:
{adspert_account_id}:{adgroup_id}⤷
adgroup_idsearchableThis field is populated only for
SELECTED-ADGROUPdestinations.⤷
match_typeThis field is populated only for destinations that belong to
KEYWORDrules.⤷
negativeBoolean
⤷
created_at⤷
effective_destinationObject
Effective destination is available only for adgroup-level requests.
It’s NULL for all other levels.
⤷
campaign_idsearchable⤷
adspert_campaign_idAdspert internal ID of the campaign.
Composite ID specification:
{adspert_account_id}:{campaign_id}⤷
campaign_namesearchableString
⤷
adgroup_idsearchable⤷
adgroup_namesearchableString
⤷
adspert_adgroup_idAdspert internal ID of the adgroup.
Composite ID specification:
{adspert_account_id}:{adgroup_id}⤷
product_ad_sync_modeThis 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_matchesInteger
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_totalInteger
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_ratioFloat
Ratio of shared and total unique product ads between source and target AdGroups.
product_ads_matches/product_ads_totalNULL if any of the two AdGroups are not auto/manual SP.
⤷
created_atExample
http
GET /v3/customers/7027038674/criterion-addition/rules?search_performance_group_name=tucan+lorem&search_adgroup_labels=adlora+dolor&filter_adspert_campaign_id=123%3A5555 HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl
curl -i -X GET 'https://api.adspert.net/v3/customers/7027038674/criterion-addition/rules?search_performance_group_name=tucan+lorem&search_adgroup_labels=adlora+dolor&filter_adspert_campaign_id=123%3A5555' -H "Accept: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
httpie
http 'https://api.adspert.net/v3/customers/7027038674/criterion-addition/rules?search_performance_group_name=tucan+lorem&search_adgroup_labels=adlora+dolor&filter_adspert_campaign_id=123%3A5555' Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
python-requests
requests.get('https://api.adspert.net/v3/customers/7027038674/criterion-addition/rules?search_performance_group_name=tucan+lorem&search_adgroup_labels=adlora+dolor&filter_adspert_campaign_id=123%3A5555', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
response
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, "targeting_type": "AUTO", "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 or x-www-form-urlencoded)
Name
Type
Description
rule_type_idrequiredInteger
Id of the Rule Type the ruleset is defined for.
levelrequiredLevel at which the ruleset should be created.
adspert_account_idInteger
ID of the account for which the ruleset should be created.
This field is required (and allowed only) at the
ACCOUNTlevel.adspert_campaign_idID of the campaign for which the ruleset should be created.
This field is required (and allowed only) at the
CAMPAIGNlevel.Composite ID specification:
{adspert_account_id}:{campaign_id}adspert_adgroup_idID of the adgroup for which the ruleset should be created.
This field is required (and allowed only) at the
ADGROUPlevel.Composite ID specification:
{adspert_account_id}:{adgroup_id}rulesrequired[ Object ]
If there is no need for rule filters, the
rulesarray should contain exactly one rule.If there is a need for filters,
rulesarray 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_idID 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.
⤷
actionrequiredAction 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.
⤷
operandSee request data description.
⤷
operationSee request data description.
⤷
values[ Any ]
See request data description.
⤷
catch_allBoolean
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
actionis set toreject, cannot have any destinations.Proposals where
actionis set toaddhave to have at least one destination.⤷
destination_typeSee request data description.
⤷
adspert_adgroup_idSee request data description.
⤷
match_typeSee request data description.
⤷
negativeBoolean
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_idInteger
See request data description.
⤷
levelSee request data description.
⤷
adspert_account_idInteger
See request data description.
⤷
adspert_campaign_idSee request data description.
⤷
adspert_adgroup_idSee request data description.
⤷
rules[ Object ]
See request data description.
⤷
rule_idSee request data description.
⤷
actionSee request data description.
⤷
filters[ Object ]
See request data description.
⤷
operandSee request data description.
⤷
operationSee request data description.
⤷
values[ Any ]
See request data description.
⤷
catch_allBoolean
See request data description.
⤷
destinations[ Object ]
See request data description.
⤷
destination_typeSee request data description.
⤷
adspert_adgroup_idSee request data description.
⤷
match_typeSee request data description.
⤷
negativeBoolean
See request data description.
unchanged[ Object ]
List of objects which had no effective change.
⤷
rule_type_idInteger
See request data description.
⤷
levelSee request data description.
⤷
adspert_account_idInteger
See request data description.
⤷
adspert_campaign_idSee request data description.
⤷
adspert_adgroup_idSee request data description.
⤷
rules[ Object ]
See request data description.
⤷
rule_idSee request data description.
⤷
actionSee request data description.
⤷
filters[ Object ]
See request data description.
⤷
operandSee request data description.
⤷
operationSee request data description.
⤷
values[ Any ]
See request data description.
⤷
catch_allBoolean
See request data description.
⤷
destinations[ Object ]
See request data description.
⤷
destination_typeSee request data description.
⤷
adspert_adgroup_idSee request data description.
⤷
match_typeSee request data description.
⤷
negativeBoolean
See request data description.
updated[ Object ]
List of objects which have been updated.
⤷
rule_type_idInteger
See request data description.
⤷
levelSee request data description.
⤷
adspert_account_idInteger
See request data description.
⤷
adspert_campaign_idSee request data description.
⤷
adspert_adgroup_idSee request data description.
⤷
rules[ Object ]
See request data description.
⤷
rule_idSee request data description.
⤷
actionSee request data description.
⤷
filters[ Object ]
See request data description.
⤷
operandSee request data description.
⤷
operationSee request data description.
⤷
values[ Any ]
See request data description.
⤷
catch_allBoolean
See request data description.
⤷
destinations[ Object ]
See request data description.
⤷
destination_typeSee request data description.
⤷
adspert_adgroup_idSee request data description.
⤷
match_typeSee request data description.
⤷
negativeBoolean
See request data description.
Example
http
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
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}]}]}]'
httpie
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..."
python-requests
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}]}]}])
response
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 x-www-form-urlencoded or csv)
Name
Type
Description
rule_type_idrequiredInteger
Id of the Rule Type the ruleset is defined for.
levelrequiredLevel of the ruleset that should be deleted.
adspert_account_idInteger
ID of the account for which the ruleset should be deleted.
This field is required (and allowed only) at the
ACCOUNTlevel.adspert_campaign_idID of the campaign for which the ruleset should be deleted.
This field is required (and allowed only) at the
CAMPAIGNlevel.Composite ID specification:
{adspert_account_id}:{campaign_id}adspert_adgroup_idID of the adgroup for which the ruleset should be deleted.
This field is required (and allowed only) at the
ADGROUPlevel.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_idInteger
See request data description.
⤷
levelSee request data description.
⤷
adspert_account_idInteger
See request data description.
⤷
adspert_campaign_idSee request data description.
⤷
adspert_adgroup_idSee request data description.
unknown[ Object ]
List of objects which could not be found.
⤷
rule_type_idInteger
See request data description.
⤷
levelSee request data description.
⤷
adspert_account_idInteger
See request data description.
⤷
adspert_campaign_idSee request data description.
⤷
adspert_adgroup_idSee request data description.
Example
http
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
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"}]'
httpie
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..."
python-requests
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'}])
response
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
includeFields to include in response data.
excludeFields to exclude in response data.
filter_amz_product_ads_match_ratio_leFloat
Only return results where
amz_product_ads_match_ratiois equal or lower than this value.filter_amz_product_ads_match_ratio_geFloat
Only return results where
amz_product_ads_match_ratiois equal or greater than this value.filter_account_id[ String ]
Only return results matching given
source.account_idvalues.filter_account_is_demo[ Boolean ]
Only return results matching given
source.account_is_demovalues.filter_account_name[ String ]
Only return results matching given
source.account_namevalues.filter_account_optimize[ Boolean ]
Only return results matching given
source.account_optimizevalues.filter_account_platform[ AdPlatform ]
Only return results matching given
source.account_platformvalues.filter_account_tags_user[ String ]
Only return results matching given
source.account_tags_uservalues.filter_adspert_account_id[ Integer ]
Only return results matching given
source.adspert_account_idvalues.filter_click_through_rate_geFloat
Only return results where
metrics.click_through_rateis equal or greater than this value.filter_click_through_rate_leFloat
Only return results where
metrics.click_through_rateis equal or lower than this value.filter_clicks[ Integer ]
Only return results matching given
metrics.clicksvalues.filter_clicks_geInteger
Only return results where
metrics.clicksis equal or greater than this value.filter_clicks_leInteger
Only return results where
metrics.clicksis equal or lower than this value.filter_conversion_rate_geFloat
Only return results where
metrics.conversion_rateis equal or greater than this value.filter_conversion_rate_leFloat
Only return results where
metrics.conversion_rateis equal or lower than this value.filter_conversions_geFloat
Only return results where
metrics.conversionsis equal or greater than this value.filter_conversions_leFloat
Only return results where
metrics.conversionsis equal or lower than this value.filter_cost_geOnly return results where
metrics.costis equal or greater than this value.Min value: 1000
filter_cost_leOnly return results where
metrics.costis equal or lower than this value.Min value: 1000
filter_cost_per_click_geOnly return results where
metrics.cost_per_clickis equal or greater than this value.Min value: 1000
filter_cost_per_click_leOnly return results where
metrics.cost_per_clickis equal or lower than this value.Min value: 1000
filter_cost_per_conversion_geOnly return results where
metrics.cost_per_conversionis equal or greater than this value.Min value: 1000
filter_cost_per_conversion_leOnly return results where
metrics.cost_per_conversionis equal or lower than this value.Min value: 1000
filter_cost_revenue_ratio_geFloat
Only return results where
metrics.cost_revenue_ratiois equal or greater than this value.filter_cost_revenue_ratio_leFloat
Only return results where
metrics.cost_revenue_ratiois equal or lower than this value.filter_criterion_name[ String ]
Only return results matching given
criterion_namevalues.filter_criterion_subtypeOnly return results matching given
criterion_subtypevalues.filter_criterion_typeOnly return results matching given
criterion_typevalues.filter_destination_adgroup_labels[ String ]
Only return results matching given
destinations.effective_destination.adgroup_labelsvalues.filter_destination_adgroup_name[ String ]
Only return results matching given
destinations.effective_destination.adgroup_namevalues.filter_destination_adgroup_status[ AdgroupStatus ]
Only return results matching given
destinations.effective_destination.adgroup_statusvalues.filter_destination_adspert_adgroup_id[ CompositeID ]
Only return results matching given
destinations.effective_destination.adspert_adgroup_idvalues.filter_destination_adspert_campaign_id[ CompositeID ]
Only return results matching given
destinations.effective_destination.adspert_campaign_idvalues.filter_destination_adspert_portfolio_id[ CompositeID ]
Only return results matching given
destinations.effective_destination.adspert_portfolio_idvalues.filter_destination_amz_portfolio_name[ String ]
Only return results matching given
destinations.effective_destination.amz_portfolio_namevalues.filter_destination_campaign_eby_marketplace_id[ String ]
Only return results matching given
destinations.effective_destination.campaign_eby_marketplace_idvalues.filter_destination_campaign_labels[ String ]
Only return results matching given
destinations.effective_destination.campaign_labelsvalues.filter_destination_campaign_name[ String ]
Only return results matching given
destinations.effective_destination.campaign_namevalues.filter_destination_campaign_optimization_supportOnly return results matching given
destinations.effective_destination.campaign_optimization_supportvalues.filter_destination_campaign_optimization_type[ OptimizationType ]
Only return results matching given
destinations.effective_destination.campaign_optimization_typevalues.filter_destination_campaign_optimize[ Boolean ]
Only return results matching given
destinations.effective_destination.campaign_optimizevalues.filter_destination_campaign_status[ CampaignStatus ]
Only return results matching given
destinations.effective_destination.campaign_statusvalues.filter_destination_campaign_type[ CampaignType ]
Only return results matching given
destinations.effective_destination.campaign_typevalues.filter_destination_id[ LargeInteger ]
Only return results matching given
destinations.destination_idvalues.filter_destination_performance_group_enabled[ Boolean ]
Only return results matching given
destinations.effective_destination.performance_group_enabledvalues.filter_destination_performance_group_goal_typesOnly return results matching given
destinations.effective_destination.performance_group_goal_typesvalues.filter_destination_performance_group_id[ Integer ]
Only return results matching given
destinations.effective_destination.performance_group_idvalues.filter_destination_performance_group_name[ String ]
Only return results matching given
destinations.effective_destination.performance_group_namevalues.filter_destination_performance_group_optimization_type[ OptimizationType ]
Only return results matching given
destinations.effective_destination.performance_group_optimization_typevalues.filter_destination_typeOnly return results matching given
destinations.destination_typevalues.filter_impressions[ Integer ]
Only return results matching given
metrics.impressionsvalues.filter_impressions_geInteger
Only return results where
metrics.impressionsis equal or greater than this value.filter_impressions_leInteger
Only return results where
metrics.impressionsis equal or lower than this value.filter_profit_gross_geOnly return results where
metrics.profit_grossis equal or greater than this value.Min value: 1000
filter_profit_gross_leOnly return results where
metrics.profit_grossis equal or lower than this value.Min value: 1000
filter_profit_net_geOnly return results where
metrics.profit_netis equal or greater than this value.Min value: 1000
filter_profit_net_leOnly return results where
metrics.profit_netis equal or lower than this value.Min value: 1000
filter_proposal_id[ LargeInteger ]
Only return results matching given
proposal_idvalues.filter_proposal_reasonsOnly return results matching given
proposal_reasonsvalues.filter_proposal_stateOnly return results matching given
proposal_statevalues.filter_proposal_typeOnly return results matching given
proposal_typevalues.filter_return_on_ad_spend_geFloat
Only return results where
metrics.return_on_ad_spendis equal or greater than this value.filter_return_on_ad_spend_leFloat
Only return results where
metrics.return_on_ad_spendis equal or lower than this value.filter_return_on_investment_geFloat
Only return results where
metrics.return_on_investmentis equal or greater than this value.filter_return_on_investment_leFloat
Only return results where
metrics.return_on_investmentis equal or lower than this value.filter_revenue_geOnly return results where
metrics.revenueis equal or greater than this value.Min value: 1000
filter_revenue_leOnly return results where
metrics.revenueis equal or lower than this value.Min value: 1000
filter_revenue_per_conversion_geOnly return results where
metrics.revenue_per_conversionis equal or greater than this value.Min value: 1000
filter_revenue_per_conversion_leOnly return results where
metrics.revenue_per_conversionis equal or lower than this value.Min value: 1000
filter_rule_type_id[ Integer ]
Only return results matching given
rule_type_idvalues.filter_source_adgroup_labels[ String ]
Only return results matching given
source.adgroup_labelsvalues.filter_source_adgroup_name[ String ]
Only return results matching given
source.adgroup_namevalues.filter_source_adgroup_status[ AdgroupStatus ]
Only return results matching given
source.adgroup_statusvalues.filter_source_adspert_adgroup_id[ CompositeID ]
Only return results matching given
source.adspert_adgroup_idvalues.filter_source_adspert_campaign_id[ CompositeID ]
Only return results matching given
source.adspert_campaign_idvalues.filter_source_adspert_portfolio_id[ CompositeID ]
Only return results matching given
source.adspert_portfolio_idvalues.filter_source_amz_portfolio_name[ String ]
Only return results matching given
source.amz_portfolio_namevalues.filter_source_campaign_eby_marketplace_id[ String ]
Only return results matching given
source.campaign_eby_marketplace_idvalues.filter_source_campaign_labels[ String ]
Only return results matching given
source.campaign_labelsvalues.filter_source_campaign_name[ String ]
Only return results matching given
source.campaign_namevalues.filter_source_campaign_optimization_supportOnly return results matching given
source.campaign_optimization_supportvalues.filter_source_campaign_optimization_type[ OptimizationType ]
Only return results matching given
source.campaign_optimization_typevalues.filter_source_campaign_optimize[ Boolean ]
Only return results matching given
source.campaign_optimizevalues.filter_source_campaign_status[ CampaignStatus ]
Only return results matching given
source.campaign_statusvalues.filter_source_campaign_type[ CampaignType ]
Only return results matching given
source.campaign_typevalues.filter_source_performance_group_enabled[ Boolean ]
Only return results matching given
source.performance_group_enabledvalues.filter_source_performance_group_goal_typesOnly return results matching given
source.performance_group_goal_typesvalues.filter_source_performance_group_id[ Integer ]
Only return results matching given
source.performance_group_idvalues.filter_source_performance_group_name[ String ]
Only return results matching given
source.performance_group_namevalues.filter_source_performance_group_optimization_type[ OptimizationType ]
Only return results matching given
source.performance_group_optimization_typevalues.search_fieldsFields that should be searched using the
search_term.search_termString
Search term used to search the
search_fields.search_account_idString
Only return results where
source.account_idmatches the given string.search_account_nameString
Only return results where
source.account_namematches the given string.search_account_tags_userString
Only return results where
source.account_tags_usermatches the given string.search_adspert_account_idString
Only return results where
source.adspert_account_idmatches the given string.search_criterion_nameString
Only return results where
criterion_namematches the given string.search_destination_adgroup_idString
Only return results where
destinations.effective_destination.adgroup_idmatches the given string.search_destination_adgroup_labelsString
Only return results where
destinations.effective_destination.adgroup_labelsmatches the given string.search_destination_adgroup_nameString
Only return results where
destinations.effective_destination.adgroup_namematches the given string.search_destination_amz_portfolio_idString
Only return results where
destinations.effective_destination.amz_portfolio_idmatches the given string.search_destination_amz_portfolio_nameString
Only return results where
destinations.effective_destination.amz_portfolio_namematches the given string.search_destination_campaign_idString
Only return results where
destinations.effective_destination.campaign_idmatches the given string.search_destination_campaign_labelsString
Only return results where
destinations.effective_destination.campaign_labelsmatches the given string.search_destination_campaign_nameString
Only return results where
destinations.effective_destination.campaign_namematches the given string.search_destination_performance_group_idString
Only return results where
destinations.effective_destination.performance_group_idmatches the given string.search_destination_performance_group_nameString
Only return results where
destinations.effective_destination.performance_group_namematches the given string.search_source_adgroup_idString
Only return results where
source.adgroup_idmatches the given string.search_source_adgroup_labelsString
Only return results where
source.adgroup_labelsmatches the given string.search_source_adgroup_nameString
Only return results where
source.adgroup_namematches the given string.search_source_amz_portfolio_idString
Only return results where
source.amz_portfolio_idmatches the given string.search_source_amz_portfolio_nameString
Only return results where
source.amz_portfolio_namematches the given string.search_source_campaign_idString
Only return results where
source.campaign_idmatches the given string.search_source_campaign_labelsString
Only return results where
source.campaign_labelsmatches the given string.search_source_campaign_nameString
Only return results where
source.campaign_namematches the given string.search_source_performance_group_idString
Only return results where
source.performance_group_idmatches the given string.search_source_performance_group_nameString
Only return results where
source.performance_group_namematches the given string.sort_account_idSort results by
source.account_id.sort_account_is_demoSort results by
source.account_is_demo.sort_account_nameSort results by
source.account_name.sort_account_optimizeSort results by
source.account_optimize.sort_account_platformSort results by
source.account_platform.sort_adspert_account_idSort results by
source.adspert_account_id.sort_click_through_rateSort results by
metrics.click_through_rate.sort_clicksSort results by
metrics.clicks.sort_conversion_rateSort results by
metrics.conversion_rate.sort_conversionsSort results by
metrics.conversions.sort_costSort results by
metrics.cost.sort_cost_per_clickSort results by
metrics.cost_per_click.sort_cost_per_conversionSort results by
metrics.cost_per_conversion.sort_cost_revenue_ratioSort results by
metrics.cost_revenue_ratio.sort_criterion_nameSort results by
criterion_name.sort_criterion_subtypeSort results by
criterion_subtype.sort_criterion_typeSort results by
criterion_type.sort_impressionsSort results by
metrics.impressions.sort_profit_grossSort results by
metrics.profit_gross.sort_profit_netSort results by
metrics.profit_net.sort_proposal_idSort results by
proposal_id.sort_proposal_stateSort results by
proposal_state.sort_proposal_typeSort results by
proposal_type.sort_return_on_ad_spendSort results by
metrics.return_on_ad_spend.sort_return_on_investmentSort results by
metrics.return_on_investment.sort_revenueSort results by
metrics.revenue.sort_revenue_per_conversionSort results by
metrics.revenue_per_conversion.sort_rule_type_idSort results by
rule_type_id.sort_source_adgroup_idSort results by
source.adgroup_id.sort_source_adgroup_nameSort results by
source.adgroup_name.sort_source_adgroup_statusSort results by
source.adgroup_status.sort_source_adspert_adgroup_idSort results by
source.adspert_adgroup_id.sort_source_adspert_campaign_idSort results by
source.adspert_campaign_id.sort_source_adspert_portfolio_idSort results by
source.adspert_portfolio_id.sort_source_amz_portfolio_idSort results by
source.amz_portfolio_id.sort_source_amz_portfolio_nameSort results by
source.amz_portfolio_name.sort_source_campaign_eby_marketplace_idSort results by
source.campaign_eby_marketplace_id.sort_source_campaign_idSort results by
source.campaign_id.sort_source_campaign_nameSort results by
source.campaign_name.sort_source_campaign_optimization_supportSort results by
source.campaign_optimization_support.sort_source_campaign_optimization_typeSort results by
source.campaign_optimization_type.sort_source_campaign_optimizeSort results by
source.campaign_optimize.sort_source_campaign_statusSort results by
source.campaign_status.sort_source_campaign_typeSort results by
source.campaign_type.sort_source_performance_group_enabledSort results by
source.performance_group_enabled.sort_source_performance_group_goal_typesSort results by
source.performance_group_goal_types.sort_source_performance_group_idSort results by
source.performance_group_id.sort_source_performance_group_nameSort results by
source.performance_group_name.sort_source_performance_group_optimization_typeSort results by
source.performance_group_optimization_type.offsetInteger
Start index for result list.
Default: 0
Min value: 0
limitInteger
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
currencyCurrency for all of the monetary metrics in the
metricssection 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_idUnique ID of the proposal.
rule_type_idInteger
Id of the matched Rule Type.
proposal_typeType of the proposal.
proposal_reasonsA list of reasons why the proposal was generated.
proposal_stateState of the proposal.
criterion_typeType of criterion proposed to be created.
criterion_subtypeSubtype of criterion proposed to be created.
criterion_namesearchableString
Name of criterion proposed to be created.
forced_review_reasonsIf proposal was forced into the
reviewstates, those are the reasons why.sourceObject
⤷
adspert_account_idsearchableInteger
Adspert internal ID of the advertising account
⤷
account_idsearchableString
Ad platform specific ID of an advertising account.
⤷
account_namesearchableString
⤷
account_platformThe account’s advertising platform.
⤷
account_optimizeBoolean
If optimization by Adspert is enabled for this account.
⤷
account_tags_usersearchable[ String ]
⤷
account_is_demoBoolean
If the account is a generated account for demonstration purposes.
Demo accounts have no counterpart in the ad platform.
⤷
performance_group_idsearchableInteger
Unique ID of the performance group
⤷
performance_group_namesearchableString
Unique name of the performance group.
⤷
performance_group_enabledBoolean
⤷
performance_group_optimization_typeOptimization 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_typeType of the performance group goal
⤷
goal_valueFloat
Value of the performance group goal.
goal_valueshould beNULLifgoal_typeisPROFIT-MAXIMIZATION.goal_valueshould be a ratio (> 0) ifgoal_typeisROAS,CRRandROI,goal_valueshould be specified in micros and be larger than 10000 ifgoal_typeisCOST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICK.⤷
goal_currencyCurrency of the performance group goal.
Currency is required for
COST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICKgoals.⤷
goal_microsValue for
COST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICKgoals.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_ratioFloat
Value for
ROAS,CRRandROIgoals.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_typesList of performance group goal types
⤷
adspert_portfolio_idAdspert internal ID of Amazon portfolio.
Composite ID specification:
{adspert_account_id}:{portfolio_id}⤷
amz_portfolio_idsearchable⤷
amz_portfolio_namesearchableString
⤷
adspert_campaign_idAdspert internal ID of the campaign.
Composite ID specification:
{adspert_account_id}:{campaign_id}⤷
campaign_idsearchable⤷
campaign_namesearchableString
⤷
campaign_type⤷
campaign_eby_marketplace_idString
⤷
campaign_status⤷
campaign_optimizeBoolean
⤷
campaign_optimization_type⤷
campaign_optimization_support⤷
campaign_labelssearchable[ String ]
⤷
adspert_adgroup_idAdspert internal ID of the adgroup.
Composite ID specification:
{adspert_account_id}:{adgroup_id}⤷
adgroup_idsearchable⤷
adgroup_namesearchableString
⤷
adgroup_status⤷
adgroup_labelssearchable[ String ]
metricsObject
⤷
cost⤷
impressionsInteger
⤷
clicksInteger
⤷
conversionsFloat
⤷
profit_grossGross profit
⤷
profit_netNet profit.
profit_gross-cost⤷
revenueRevenue/sales
⤷
cost_per_clickEffective CPC.
cost/clicksNULL if number of
clicksis 0.⤷
cost_per_conversionCost per conversion.
cost/conversionsNULL if number of
conversionsis 0.⤷
revenue_per_conversionRevenue per conversions.
revenue/conversions⤷
conversion_rateFloat
Conversion rate.
conversions/clicksNULL if number of
clicksis 0.⤷
click_through_rateFloat
Clickthrough rate (CTR).
clicks/impressionsNULL if number of
impressionsis 0.⤷
return_on_investmentFloat
Return on investment (ROI).
profit_gross/costNULL if
costis 0.⤷
return_on_ad_spendFloat
Return on ad spend (ROAS).
revenue/costNULL if
costis 0.⤷
cost_revenue_ratioFloat
Cost Revenue Ratio (CRR).
Also called Advertising Cost of Sale (ACoS).
cost/revenueNULL if
revenueis 0.rule_snapshots[ Object ]
⤷
rule_snapshot_idId of the rule snapshot.
⤷
rule_idId of the rule that this snapshot was created for.
⤷
actionRule action at the time that the snapshot was generated.
⤷
filters[ Object ]
Rule filters at the time that the snapshot was generated.
⤷
operandRule filter operand.
⤷
operationRule filter operation.
⤷
values[ Any ]
Rule filter values.
⤷
catch_allBoolean
Rule
catch_allvalue at the time that the snapshot was generated.⤷
defined_atObject
Extra information about the location where snapshotted rule was defined at.
⤷
level⤷
platform⤷
adspert_account_idsearchableInteger
Adspert internal ID of the advertising account
⤷
account_idsearchableString
Ad platform specific ID of an advertising account.
⤷
account_namesearchableString
⤷
account_platformThe account’s advertising platform.
⤷
adspert_campaign_idAdspert internal ID of the campaign.
Composite ID specification:
{adspert_account_id}:{campaign_id}⤷
campaign_idsearchable⤷
campaign_namesearchableString
⤷
campaign_type⤷
adspert_adgroup_idAdspert internal ID of the adgroup.
Composite ID specification:
{adspert_account_id}:{adgroup_id}⤷
adgroup_idsearchable⤷
adgroup_namesearchableString
destinations[ Object ]
⤷
destination_id⤷
stateState of the proposal destination.
⤷
rule_snapshot_idId of the snapshot of the rule that defined current destination.
NULLif destination had been created by the user.⤷
destination_type⤷
selected_adgroup_idAdspert internal ID of the adgroup.
Id of an explicitly selected destination adgroup.
This field is populated only for
SELECTED-ADGROUPdestinations and isNULLfor all other destination types.Composite ID specification:
{adspert_account_id}:{adgroup_id}⤷
match_typeKeyword match type.
This field is populated only for destinations that belong to proposals where
criterion_typeisKEYWORD.⤷
negativeBoolean
Is the criterion created for this destination supposed to be negative?
⤷
effective_destinationObject
Details about the effective destination adgroup.
Can be
NULLfor some destination types, if the adgroup hasn’t yet been created.⤷
performance_group_idsearchableInteger
Unique ID of the performance group
⤷
performance_group_namesearchableString
Unique name of the performance group.
⤷
performance_group_enabledBoolean
⤷
performance_group_optimization_typeOptimization 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_typeType of the performance group goal
⤷
goal_valueFloat
Value of the performance group goal.
goal_valueshould beNULLifgoal_typeisPROFIT-MAXIMIZATION.goal_valueshould be a ratio (> 0) ifgoal_typeisROAS,CRRandROI,goal_valueshould be specified in micros and be larger than 10000 ifgoal_typeisCOST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICK.⤷
goal_currencyCurrency of the performance group goal.
Currency is required for
COST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICKgoals.⤷
goal_microsValue for
COST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICKgoals.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_ratioFloat
Value for
ROAS,CRRandROIgoals.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_typesList of performance group goal types
⤷
adspert_portfolio_idAdspert internal ID of Amazon portfolio.
Composite ID specification:
{adspert_account_id}:{portfolio_id}⤷
amz_portfolio_idsearchable⤷
amz_portfolio_namesearchableString
⤷
adspert_campaign_idAdspert internal ID of the campaign.
Composite ID specification:
{adspert_account_id}:{campaign_id}⤷
campaign_idsearchable⤷
campaign_namesearchableString
⤷
campaign_type⤷
campaign_eby_marketplace_idString
⤷
campaign_status⤷
campaign_optimizeBoolean
⤷
campaign_optimization_type⤷
campaign_optimization_support⤷
campaign_labelssearchable[ String ]
⤷
adspert_adgroup_idAdspert internal ID of the adgroup.
Composite ID specification:
{adspert_account_id}:{adgroup_id}⤷
adgroup_idsearchable⤷
adgroup_namesearchableString
⤷
adgroup_status⤷
adgroup_labelssearchable[ String ]
⤷
amz_product_ads_matchesInteger
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_totalInteger
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_ratioFloat
Ratio of shared and total unique product ads between source and target AdGroups.
product_ads_matches/product_ads_totalNULL if any of the two AdGroups are not auto/manual SP.
⤷
warnings[ Object ]
Destination warnings.
⤷
warning_typeDestination warning type.
⤷
contextDict
Extra information about the warning.
Not all warning types support this extra information.
⤷
criticalBoolean
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
http
GET /v3/customers/7027038674/criterion-addition/proposals?filter_click_through_rate_ge=3.91&filter_profit_net_ge=19990000&search_source_performance_group_id=dolor+sit HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl
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=19990000&search_source_performance_group_id=dolor+sit' -H "Accept: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
httpie
http 'https://api.adspert.net/v3/customers/7027038674/criterion-addition/proposals?filter_click_through_rate_ge=3.91&filter_profit_net_ge=19990000&search_source_performance_group_id=dolor+sit' Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
python-requests
requests.get('https://api.adspert.net/v3/customers/7027038674/criterion-addition/proposals?filter_click_through_rate_ge=3.91&filter_profit_net_ge=19990000&search_source_performance_group_id=dolor+sit', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
response
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": 19990000, "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": 19990000, "impressions": 2157218327, "clicks": 5857268080, "conversions": 3.92, "profit_gross": 19990000, "profit_net": 19990000, "revenue": 19990000, "cost_per_click": 19990000, "cost_per_conversion": 19990000, "revenue_per_conversion": 19990000, "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": 19990000, "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 or x-www-form-urlencoded)
Name
Type
Description
proposal_idrequiredUnique ID of the proposal.
proposal_stateState of the proposal.
destinations[ Object ]
Proposal destinations.
This field should be skipped (or set to
NULL) whenproposal_stateis set toREJECTEDorREVIEW.This field is required (with at least one destination) when
proposal_stateis set toACCEPTED.⤷
destination_typerequiredType of the destination.
⤷
selected_adgroup_idAdspert internal ID of the adgroup.
Id of an explicitly selected destination adgroup.
This field is required for
SELECTED-ADGROUPdestinations and should beNULLfor any other destination type.Composite ID specification:
{adspert_account_id}:{adgroup_id}⤷
match_typeKeyword match type.
This field is required for destinations that belong to proposals where
criterion_typeisKEYWORD.⤷
negativerequiredBoolean
Is the criterion created for this destination supposed to be negative?
validate_onlyBoolean
If set to
TruePATCH 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_idSee request data description.
⤷
proposal_stateSee request data description.
⤷
destinations[ Object ]
See request data description.
⤷
destination_typeSee request data description.
⤷
selected_adgroup_idSee request data description.
⤷
match_typeSee request data description.
⤷
negativeBoolean
See request data description.
⤷
validate_onlyBoolean
See request data description.
unknown[ Object ]
List of objects which could not be found.
⤷
proposal_idSee request data description.
⤷
proposal_stateSee request data description.
⤷
destinations[ Object ]
See request data description.
⤷
destination_typeSee request data description.
⤷
selected_adgroup_idSee request data description.
⤷
match_typeSee request data description.
⤷
negativeBoolean
See request data description.
⤷
validate_onlyBoolean
See request data description.
updated[ Object ]
List of objects which have been updated.
⤷
proposal_idSee request data description.
⤷
proposal_stateSee request data description.
⤷
destinations[ Object ]
See request data description.
⤷
destination_typeSee request data description.
⤷
selected_adgroup_idSee request data description.
⤷
match_typeSee request data description.
⤷
negativeBoolean
See request data description.
⤷
validate_onlyBoolean
See request data description.
Example
http
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
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}]'
httpie
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..."
python-requests
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}])
response
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
includeFields to include in response data.
excludeFields to exclude in response data.
filter_levelrequiredfilter_account_id[ String ]
Only return results matching given
account_idvalues.filter_account_is_demo[ Boolean ]
Only return results matching given
account_is_demovalues.filter_account_name[ String ]
Only return results matching given
account_namevalues.filter_account_optimize[ Boolean ]
Only return results matching given
account_optimizevalues.filter_account_platform[ AdPlatform ]
Only return results matching given
account_platformvalues.filter_account_tags_user[ String ]
Only return results matching given
account_tags_uservalues.filter_adspert_account_id[ Integer ]
Only return results matching given
adspert_account_idvalues.filter_setting_typeOnly return results matching given
setting_typevalues.filter_setting_value[ String ]
Only return results matching given
setting_valuevalues.filter_setting_value_inherited[ Boolean ]
Only return results matching given
setting_value_inheritedvalues.search_fieldsFields that should be searched using the
search_term.search_termString
Search term used to search the
search_fields.search_account_idString
Only return results where
account_idmatches the given string.search_account_nameString
Only return results where
account_namematches the given string.search_account_tags_userString
Only return results where
account_tags_usermatches the given string.search_adspert_account_idString
Only return results where
adspert_account_idmatches the given string.sort_account_idSort results by
account_id.sort_account_is_demoSort results by
account_is_demo.sort_account_nameSort results by
account_name.sort_account_optimizeSort results by
account_optimize.sort_account_platformSort results by
account_platform.sort_adspert_account_idSort results by
adspert_account_id.offsetInteger
Start index for result list.
Default: 0
Min value: 0
limitInteger
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_typeType of the setting
setting_value_typeType of the setting value.
It’s a data type that the
setting_valueshould be casted to.setting_valueString
All setting values are returned as strings and should be casted to a proper type (
setting_value_type) by the client.setting_value_inheritedBoolean
Was the setting value defined at the account-level or inherited from the customer-level?
Always
falsefor customer-level settings.adspert_account_idsearchableInteger
Adspert internal ID of the advertising account
NULLfor customer-level settings.account_idsearchableString
Ad platform specific ID of an advertising account.
NULLfor customer-level settings.account_namesearchableString
NULLfor customer-level settings.account_platformThe account’s advertising platform.
NULLfor customer-level settings.account_optimizeBoolean
If optimization by Adspert is enabled for this account.
NULLfor customer-level settings.account_tags_usersearchable[ String ]
NULLfor customer-level settings.account_is_demoBoolean
If the account is a generated account for demonstration purposes.
Demo accounts have no counterpart in the ad platform.
NULLfor customer-level settings.Example
http
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
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..."
httpie
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..."
python-requests
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...'})
response
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 x-www-form-urlencoded or csv)
Name
Type
Description
adspert_account_idInteger
Should be set to NULL for customer-level settings.
Should be set to a non-NULL value for account-level settings.
setting_typerequiredType of the setting
setting_valuerequiredString
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_idInteger
See request data description.
⤷
setting_typeSee request data description.
⤷
setting_valueString
See request data description.
unknown[ Object ]
List of objects which could not be found.
⤷
adspert_account_idInteger
See request data description.
⤷
setting_typeSee request data description.
⤷
setting_valueString
See request data description.
updated[ Object ]
List of objects which have been updated.
⤷
adspert_account_idInteger
See request data description.
⤷
setting_typeSee request data description.
⤷
setting_valueString
See request data description.
Example
http
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
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"}]'
httpie
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..."
python-requests
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'}])
response
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
includeFields to include in response data.
excludeFields to exclude in response data.
filter_campaign_typeOnly return results matching given
campaign_typevalues.filter_criterion_subtypeOnly return results matching given
criterion_subtypevalues.filter_criterion_typeOnly return results matching given
criterion_typevalues.filter_enabled[ Boolean ]
Only return results matching given
enabledvalues.filter_platform[ AdPlatform ]
Only return results matching given
platformvalues.filter_proposal_typeOnly return results matching given
proposal_typevalues.filter_rule_type_id[ Integer ]
Only return results matching given
rule_type_idvalues.search_fieldsFields that should be searched using the
search_term.search_termString
Search term used to search the
search_fields.sort_campaign_typeSort results by
campaign_type.sort_criterion_subtypeSort results by
criterion_subtype.sort_criterion_typeSort results by
criterion_type.sort_enabledSort results by
enabled.sort_platformSort results by
platform.sort_proposal_typeSort results by
proposal_type.sort_rule_type_idSort results by
rule_type_id.offsetInteger
Start index for result list.
Default: 0
Min value: 0
limitInteger
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_idInteger
Unique Rule Type ID.
platformPlatform that the Rule Type is defined for.
campaign_typeType of campaigns that the Rule Type is defined for.
proposal_typeType of proposals that the Rule Type is defined for.
criterion_typeType of criteria that the Rule Type is defined for.
criterion_subtypeSubtype of criteria that the Rule Type is defined for.
enabledBoolean
Is the rule type enabled?
Rules that belong to a disabled Rule Type, won’t generate any proposals.
Example
http
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
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..."
httpie
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..."
python-requests
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...'})
response
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
includeFields to include in response data.
excludeFields to exclude in response data.
filter_account_id[ String ]
Only return results matching given
account_idvalues.filter_account_is_demo[ Boolean ]
Only return results matching given
account_is_demovalues.filter_account_name[ String ]
Only return results matching given
account_namevalues.filter_account_optimize[ Boolean ]
Only return results matching given
account_optimizevalues.filter_account_platform[ AdPlatform ]
Only return results matching given
account_platformvalues.filter_account_tags_user[ String ]
Only return results matching given
account_tags_uservalues.filter_adgroup_labels[ String ]
Only return results matching given
adgroup_labelsvalues.filter_adgroup_name[ String ]
Only return results matching given
adgroup_namevalues.filter_adgroup_status[ AdgroupStatus ]
Only return results matching given
adgroup_statusvalues.filter_adspert_account_id[ Integer ]
Only return results matching given
adspert_account_idvalues.filter_adspert_adgroup_id[ CompositeID ]
Only return results matching given
adspert_adgroup_idvalues.filter_adspert_campaign_id[ CompositeID ]
Only return results matching given
adspert_campaign_idvalues.filter_adspert_portfolio_id[ CompositeID ]
Only return results matching given
adspert_portfolio_idvalues.filter_amz_portfolio_name[ String ]
Only return results matching given
amz_portfolio_namevalues.filter_amz_product_ads_match_ratio_geFloat
Only return results where
amz_product_ads_match_ratiois equal or greater than this value.filter_amz_product_ads_match_ratio_leFloat
Only return results where
amz_product_ads_match_ratiois equal or lower than this value.filter_amz_product_ads_matches[ Integer ]
Only return results matching given
amz_product_ads_matchesvalues.filter_amz_product_ads_matches_geInteger
Only return results where
amz_product_ads_matchesis equal or greater than this value.filter_amz_product_ads_matches_leInteger
Only return results where
amz_product_ads_matchesis equal or lower than this value.filter_amz_product_ads_total[ Integer ]
Only return results matching given
amz_product_ads_totalvalues.filter_amz_product_ads_total_geInteger
Only return results where
amz_product_ads_totalis equal or greater than this value.filter_amz_product_ads_total_leInteger
Only return results where
amz_product_ads_totalis equal or lower than this value.filter_campaign_eby_marketplace_id[ String ]
Only return results matching given
campaign_eby_marketplace_idvalues.filter_campaign_labels[ String ]
Only return results matching given
campaign_labelsvalues.filter_campaign_name[ String ]
Only return results matching given
campaign_namevalues.filter_campaign_optimization_supportOnly return results matching given
campaign_optimization_supportvalues.filter_campaign_optimization_type[ OptimizationType ]
Only return results matching given
campaign_optimization_typevalues.filter_campaign_optimize[ Boolean ]
Only return results matching given
campaign_optimizevalues.filter_campaign_status[ CampaignStatus ]
Only return results matching given
campaign_statusvalues.filter_campaign_type[ CampaignType ]
Only return results matching given
campaign_typevalues.filter_performance_group_enabled[ Boolean ]
Only return results matching given
performance_group_enabledvalues.filter_performance_group_goal_typesOnly return results matching given
performance_group_goal_typesvalues.filter_performance_group_id[ Integer ]
Only return results matching given
performance_group_idvalues.filter_performance_group_name[ String ]
Only return results matching given
performance_group_namevalues.filter_performance_group_optimization_type[ OptimizationType ]
Only return results matching given
performance_group_optimization_typevalues.search_fieldsFields that should be searched using the
search_term.search_termString
Search term used to search the
search_fields.search_account_idString
Only return results where
account_idmatches the given string.search_account_nameString
Only return results where
account_namematches the given string.search_account_tags_userString
Only return results where
account_tags_usermatches the given string.search_adgroup_idString
Only return results where
adgroup_idmatches the given string.search_adgroup_labelsString
Only return results where
adgroup_labelsmatches the given string.search_adgroup_nameString
Only return results where
adgroup_namematches the given string.search_adspert_account_idString
Only return results where
adspert_account_idmatches the given string.search_amz_portfolio_idString
Only return results where
amz_portfolio_idmatches the given string.search_amz_portfolio_nameString
Only return results where
amz_portfolio_namematches the given string.search_campaign_idString
Only return results where
campaign_idmatches the given string.search_campaign_labelsString
Only return results where
campaign_labelsmatches the given string.search_campaign_nameString
Only return results where
campaign_namematches the given string.search_performance_group_idString
Only return results where
performance_group_idmatches the given string.search_performance_group_nameString
Only return results where
performance_group_namematches the given string.sort_account_idSort results by
account_id.sort_account_is_demoSort results by
account_is_demo.sort_account_nameSort results by
account_name.sort_account_optimizeSort results by
account_optimize.sort_account_platformSort results by
account_platform.sort_adgroup_idSort results by
adgroup_id.sort_adgroup_nameSort results by
adgroup_name.sort_adgroup_statusSort results by
adgroup_status.sort_adspert_account_idSort results by
adspert_account_id.sort_adspert_adgroup_idSort results by
adspert_adgroup_id.sort_adspert_campaign_idSort results by
adspert_campaign_id.sort_adspert_portfolio_idSort results by
adspert_portfolio_id.sort_amz_portfolio_idSort results by
amz_portfolio_id.sort_amz_portfolio_nameSort results by
amz_portfolio_name.sort_amz_product_ads_match_ratioSort results by
amz_product_ads_match_ratio.sort_amz_product_ads_matchesSort results by
amz_product_ads_matches.sort_amz_product_ads_totalSort results by
amz_product_ads_total.sort_campaign_eby_marketplace_idSort results by
campaign_eby_marketplace_id.sort_campaign_idSort results by
campaign_id.sort_campaign_nameSort results by
campaign_name.sort_campaign_optimization_supportSort results by
campaign_optimization_support.sort_campaign_optimization_typeSort results by
campaign_optimization_type.sort_campaign_optimizeSort results by
campaign_optimize.sort_campaign_statusSort results by
campaign_status.sort_campaign_typeSort results by
campaign_type.sort_destination_enabledSort results by
destination_enabled.sort_performance_group_enabledSort results by
performance_group_enabled.sort_performance_group_goal_typesSort results by
performance_group_goal_types.sort_performance_group_idSort results by
performance_group_id.sort_performance_group_nameSort results by
performance_group_name.sort_performance_group_optimization_typeSort results by
performance_group_optimization_type.offsetInteger
Start index for result list.
Default: 0
Min value: 0
limitInteger
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_idInteger
Type of the rule to get the destination adgroups for.
If
rule_type_idis specified,rule_adspert_adgroup_idmust be included as well.rule_adspert_adgroup_idRequired when
rule_type_idis set.Composite ID specification:
{adspert_account_id}:{adgroup_id}proposal_idId of the proposal to get the destination adgroups for.
If
proposal_idis specified , none of therule_prefixed query params should be included.Response Data (object list, json or csv or xlsx)
Name
Type
Description
adspert_account_idsearchableInteger
Adspert internal ID of the advertising account
account_idsearchableString
Ad platform specific ID of an advertising account.
account_namesearchableString
account_platformThe account’s advertising platform.
account_optimizeBoolean
If optimization by Adspert is enabled for this account.
account_tags_usersearchable[ String ]
account_is_demoBoolean
If the account is a generated account for demonstration purposes.
Demo accounts have no counterpart in the ad platform.
performance_group_idsearchableInteger
Unique ID of the performance group
performance_group_namesearchableString
Unique name of the performance group.
performance_group_enabledBoolean
performance_group_optimization_typeOptimization 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_typeType of the performance group goal
⤷
goal_valueFloat
Value of the performance group goal.
goal_valueshould beNULLifgoal_typeisPROFIT-MAXIMIZATION.goal_valueshould be a ratio (> 0) ifgoal_typeisROAS,CRRandROI,goal_valueshould be specified in micros and be larger than 10000 ifgoal_typeisCOST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICK.⤷
goal_currencyCurrency of the performance group goal.
Currency is required for
COST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICKgoals.⤷
goal_microsValue for
COST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICKgoals.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_ratioFloat
Value for
ROAS,CRRandROIgoals.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_typesList of performance group goal types
adspert_portfolio_idAdspert internal ID of Amazon portfolio.
Composite ID specification:
{adspert_account_id}:{portfolio_id}amz_portfolio_idsearchableamz_portfolio_namesearchableString
adspert_campaign_idAdspert internal ID of the campaign.
Composite ID specification:
{adspert_account_id}:{campaign_id}campaign_idsearchablecampaign_namesearchableString
campaign_typecampaign_eby_marketplace_idString
campaign_statuscampaign_optimizeBoolean
campaign_optimization_typecampaign_optimization_supportcampaign_labelssearchable[ String ]
adspert_adgroup_idAdspert internal ID of the adgroup.
Composite ID specification:
{adspert_account_id}:{adgroup_id}adgroup_idsearchableadgroup_namesearchableString
adgroup_statusadgroup_labelssearchable[ String ]
amz_product_ads_matchesInteger
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_totalInteger
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_ratioFloat
Ratio of shared and total unique product ads between source and target AdGroups.
product_ads_matches/product_ads_totalNULL if any of the two AdGroups are not auto/manual SP.
destination_options[ Object ]
Destination options for each combination of
match_typeandnegativeflag.⤷
match_typeKeyword match type.
NULLfor rules/proposals wherecriterion_typeis notKEYWORD.⤷
negativeBoolean
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_typeDestination warning type.
⤷
contextDict
Extra information about the warning.
Not all warning types support this extra information.
⤷
criticalBoolean
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_enabledBoolean
Indicates if the destination is enabled. This can only be the case if at least one destination option has no critical warning.
is_limited_selectionBoolean
Indicates if we had to limit the number of AdGroups that we are validating.
Example
http
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
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..."
httpie
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..."
python-requests
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...'})
response
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": 19990000, "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
includeFields to include in response data.
excludeFields to exclude in response data.
rule_type_idInteger
Type of the rule to get the destination types for.
If
rule_type_idis specified,rule_levelmust be included as well.rule_levelLevel of the rule to get the destination types for.
If set to
ACCOUNT,rule_adspert_account_idmust be specified.If set to
CAMPAIGN,rule_adspert_campaign_idmust be specified.If set to
ADGROUP,rule_adspert_adgroup_idmust be specified.rule_adspert_account_idInteger
Required when
rule_levelis set toACCOUNT.rule_adspert_campaign_idRequired when
rule_levelis set toCAMPAIGN.Composite ID specification:
{adspert_account_id}:{campaign_id}rule_adspert_adgroup_idRequired when
rule_levelis set toADGROUP.Composite ID specification:
{adspert_account_id}:{adgroup_id}proposal_idId of the proposal to get the destination types for.
If
proposal_idis specified , none of therule_prefixed query params should be included.Response Data (object list, json or csv or xlsx)
Name
Type
Description
destination_typeType of rule / proposal destination.
allowedBoolean
Is the destination type allowed for the requested rule / proposal?
Checking
optionscan 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_typeandnegativeflag.⤷
match_typeKeyword match type.
NULLfor rules/proposals wherecriterion_typeis notKEYWORD.⤷
negativeBoolean
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_typeDestination warning type.
⤷
contextDict
Extra information about the warning.
Not all warning types support this extra information.
⤷
criticalBoolean
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
http
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
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..."
httpie
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..."
python-requests
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...'})
response
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
includeFields to include in response data.
excludeFields to exclude in response data.
filter_amz_product_ads_match_ratio_leFloat
Only return results where
amz_product_ads_match_ratiois equal or lower than this value.filter_amz_product_ads_match_ratio_geFloat
Only return results where
amz_product_ads_match_ratiois equal or greater than this value.filter_account_currency[ String ]
Only return results matching given
account_currencyvalues.filter_account_id[ String ]
Only return results matching given
account_idvalues.filter_account_is_demo[ Boolean ]
Only return results matching given
account_is_demovalues.filter_account_name[ String ]
Only return results matching given
account_namevalues.filter_account_optimize[ Boolean ]
Only return results matching given
account_optimizevalues.filter_account_platform[ AdPlatform ]
Only return results matching given
account_platformvalues.filter_account_tags_user[ String ]
Only return results matching given
account_tags_uservalues.filter_adgroup_labels[ String ]
Only return results matching given
adgroup_labelsvalues.filter_adgroup_name[ String ]
Only return results matching given
adgroup_namevalues.filter_adgroup_status[ AdgroupStatus ]
Only return results matching given
adgroup_statusvalues.filter_adspert_account_id[ Integer ]
Only return results matching given
adspert_account_idvalues.filter_adspert_adgroup_id[ CompositeID ]
Only return results matching given
adspert_adgroup_idvalues.filter_adspert_campaign_id[ CompositeID ]
Only return results matching given
adspert_campaign_idvalues.filter_adspert_portfolio_id[ CompositeID ]
Only return results matching given
adspert_portfolio_idvalues.filter_amz_portfolio_name[ String ]
Only return results matching given
amz_portfolio_namevalues.filter_campaign_eby_marketplace_id[ String ]
Only return results matching given
campaign_eby_marketplace_idvalues.filter_campaign_labels[ String ]
Only return results matching given
campaign_labelsvalues.filter_campaign_name[ String ]
Only return results matching given
campaign_namevalues.filter_campaign_optimization_supportOnly return results matching given
campaign_optimization_supportvalues.filter_campaign_optimization_type[ OptimizationType ]
Only return results matching given
campaign_optimization_typevalues.filter_campaign_optimize[ Boolean ]
Only return results matching given
campaign_optimizevalues.filter_campaign_type[ CampaignType ]
Only return results matching given
campaign_typevalues.filter_performance_group_enabled[ Boolean ]
Only return results matching given
performance_group_enabledvalues.filter_performance_group_goal_typesOnly return results matching given
performance_group_goal_typesvalues.filter_performance_group_id[ Integer ]
Only return results matching given
performance_group_idvalues.filter_performance_group_name[ String ]
Only return results matching given
performance_group_namevalues.filter_performance_group_optimization_type[ OptimizationType ]
Only return results matching given
performance_group_optimization_typevalues.filter_target_adgroup_labels[ String ]
Only return results matching given
targets.adgroup_labelsvalues.filter_target_adgroup_name[ String ]
Only return results matching given
targets.adgroup_namevalues.filter_target_adgroup_status[ AdgroupStatus ]
Only return results matching given
targets.adgroup_statusvalues.filter_target_adspert_adgroup_id[ CompositeID ]
Only return results matching given
targets.adspert_adgroup_idvalues.filter_target_adspert_campaign_id[ CompositeID ]
Only return results matching given
targets.adspert_campaign_idvalues.filter_target_adspert_portfolio_id[ CompositeID ]
Only return results matching given
targets.adspert_portfolio_idvalues.filter_target_amz_portfolio_name[ String ]
Only return results matching given
targets.amz_portfolio_namevalues.filter_target_amz_product_ads_match_ratio_geFloat
Only return results where
targets.amz_product_ads_match_ratiois equal or greater than this value.filter_target_amz_product_ads_match_ratio_leFloat
Only return results where
targets.amz_product_ads_match_ratiois equal or lower than this value.filter_target_amz_product_ads_matches[ Integer ]
Only return results matching given
targets.amz_product_ads_matchesvalues.filter_target_amz_product_ads_matches_geInteger
Only return results where
targets.amz_product_ads_matchesis equal or greater than this value.filter_target_amz_product_ads_matches_leInteger
Only return results where
targets.amz_product_ads_matchesis equal or lower than this value.filter_target_amz_product_ads_total[ Integer ]
Only return results matching given
targets.amz_product_ads_totalvalues.filter_target_amz_product_ads_total_geInteger
Only return results where
targets.amz_product_ads_totalis equal or greater than this value.filter_target_amz_product_ads_total_leInteger
Only return results where
targets.amz_product_ads_totalis equal or lower than this value.filter_target_campaign_eby_marketplace_id[ String ]
Only return results matching given
targets.campaign_eby_marketplace_idvalues.filter_target_campaign_labels[ String ]
Only return results matching given
targets.campaign_labelsvalues.filter_target_campaign_name[ String ]
Only return results matching given
targets.campaign_namevalues.filter_target_campaign_optimization_supportOnly return results matching given
targets.campaign_optimization_supportvalues.filter_target_campaign_optimization_type[ OptimizationType ]
Only return results matching given
targets.campaign_optimization_typevalues.filter_target_campaign_optimize[ Boolean ]
Only return results matching given
targets.campaign_optimizevalues.filter_target_campaign_type[ CampaignType ]
Only return results matching given
targets.campaign_typevalues.filter_target_performance_group_enabled[ Boolean ]
Only return results matching given
targets.performance_group_enabledvalues.filter_target_performance_group_goal_typesOnly return results matching given
targets.performance_group_goal_typesvalues.filter_target_performance_group_id[ Integer ]
Only return results matching given
targets.performance_group_idvalues.filter_target_performance_group_name[ String ]
Only return results matching given
targets.performance_group_namevalues.filter_target_performance_group_optimization_type[ OptimizationType ]
Only return results matching given
targets.performance_group_optimization_typevalues.filter_target_read_only[ Boolean ]
Only return results matching given
targets.read_onlyvalues.filter_target_sync_mode[ ApiEnumSyncMode ]
Only return results matching given
targets.sync_modevalues.search_fieldsFields that should be searched using the
search_term.search_termString
Search term used to search the
search_fields.search_account_idString
Only return results where
account_idmatches the given string.search_account_nameString
Only return results where
account_namematches the given string.search_account_tags_userString
Only return results where
account_tags_usermatches the given string.search_adgroup_idString
Only return results where
adgroup_idmatches the given string.search_adgroup_labelsString
Only return results where
adgroup_labelsmatches the given string.search_adgroup_nameString
Only return results where
adgroup_namematches the given string.search_adspert_account_idString
Only return results where
adspert_account_idmatches the given string.search_amz_portfolio_idString
Only return results where
amz_portfolio_idmatches the given string.search_amz_portfolio_nameString
Only return results where
amz_portfolio_namematches the given string.search_campaign_idString
Only return results where
campaign_idmatches the given string.search_campaign_labelsString
Only return results where
campaign_labelsmatches the given string.search_campaign_nameString
Only return results where
campaign_namematches the given string.search_performance_group_idString
Only return results where
performance_group_idmatches the given string.search_performance_group_nameString
Only return results where
performance_group_namematches the given string.search_target_adgroup_idString
Only return results where
targets.adgroup_idmatches the given string.search_target_adgroup_labelsString
Only return results where
targets.adgroup_labelsmatches the given string.search_target_adgroup_nameString
Only return results where
targets.adgroup_namematches the given string.search_target_amz_portfolio_idString
Only return results where
targets.amz_portfolio_idmatches the given string.search_target_amz_portfolio_nameString
Only return results where
targets.amz_portfolio_namematches the given string.search_target_campaign_idString
Only return results where
targets.campaign_idmatches the given string.search_target_campaign_labelsString
Only return results where
targets.campaign_labelsmatches the given string.search_target_campaign_nameString
Only return results where
targets.campaign_namematches the given string.search_target_performance_group_idString
Only return results where
targets.performance_group_idmatches the given string.search_target_performance_group_nameString
Only return results where
targets.performance_group_namematches the given string.sort_account_currencySort results by
account_currency.sort_account_idSort results by
account_id.sort_account_is_demoSort results by
account_is_demo.sort_account_nameSort results by
account_name.sort_account_optimizeSort results by
account_optimize.sort_account_platformSort results by
account_platform.sort_adgroup_idSort results by
adgroup_id.sort_adgroup_nameSort results by
adgroup_name.sort_adgroup_statusSort results by
adgroup_status.sort_adspert_account_idSort results by
adspert_account_id.sort_adspert_adgroup_idSort results by
adspert_adgroup_id.sort_adspert_campaign_idSort results by
adspert_campaign_id.sort_adspert_portfolio_idSort results by
adspert_portfolio_id.sort_amz_portfolio_idSort results by
amz_portfolio_id.sort_amz_portfolio_nameSort results by
amz_portfolio_name.sort_campaign_eby_marketplace_idSort results by
campaign_eby_marketplace_id.sort_campaign_idSort results by
campaign_id.sort_campaign_nameSort results by
campaign_name.sort_campaign_optimization_supportSort results by
campaign_optimization_support.sort_campaign_optimization_typeSort results by
campaign_optimization_type.sort_campaign_optimizeSort results by
campaign_optimize.sort_campaign_typeSort results by
campaign_type.sort_performance_group_enabledSort results by
performance_group_enabled.sort_performance_group_goal_typesSort results by
performance_group_goal_types.sort_performance_group_idSort results by
performance_group_id.sort_performance_group_nameSort results by
performance_group_name.sort_performance_group_optimization_typeSort results by
performance_group_optimization_type.sort_target_amz_product_ads_match_ratioSort results by
targets.amz_product_ads_match_ratio.sort_target_amz_product_ads_matchesSort results by
targets.amz_product_ads_matches.sort_target_amz_product_ads_totalSort results by
targets.amz_product_ads_total.sort_target_read_onlySort results by
targets.read_only.sort_target_sync_modeSort results by
targets.sync_mode.offsetInteger
Start index for result list.
Default: 0
Min value: 0
limitInteger
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_idsearchableInteger
Adspert internal ID of the advertising account
account_idsearchableString
Ad platform specific ID of an advertising account.
account_namesearchableString
account_platformThe account’s advertising platform.
account_optimizeBoolean
If optimization by Adspert is enabled for this account.
account_currencyString
account_is_demoBoolean
If the account is a generated account for demonstration purposes.
Demo accounts have no counterpart in the ad platform.
account_tags_usersearchable[ String ]
adspert_adgroup_idAdspert internal ID of the adgroup.
Composite ID specification:
{adspert_account_id}:{adgroup_id}adgroup_idsearchableadgroup_namesearchableString
adgroup_statusadgroup_labelssearchable[ String ]
adspert_campaign_idAdspert internal ID of the campaign.
Composite ID specification:
{adspert_account_id}:{campaign_id}campaign_idsearchablecampaign_namesearchableString
campaign_typecampaign_optimizeBoolean
campaign_labelssearchable[ String ]
campaign_optimization_typecampaign_optimization_supportcampaign_eby_marketplace_idString
performance_group_idsearchableInteger
Unique ID of the performance group
performance_group_namesearchableString
Unique name of the performance group.
performance_group_optimization_typeOptimization type of the performance group.
Only campaigns of the same optimization type can be added to a given performance group.
performance_group_enabledBoolean
performance_group_goals[ Object ]
List of performance group goals
⤷
goal_typeType of the performance group goal
⤷
goal_valueFloat
Value of the performance group goal.
goal_valueshould beNULLifgoal_typeisPROFIT-MAXIMIZATION.goal_valueshould be a ratio (> 0) ifgoal_typeisROAS,CRRandROI,goal_valueshould be specified in micros and be larger than 10000 ifgoal_typeisCOST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICK.⤷
goal_currencyCurrency of the performance group goal.
Currency is required for
COST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICKgoals.⤷
goal_microsValue for
COST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICKgoals.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_ratioFloat
Value for
ROAS,CRRandROIgoals.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_typesList of performance group goal types
adspert_portfolio_idAdspert internal ID of Amazon portfolio.
Composite ID specification:
{adspert_account_id}:{portfolio_id}amz_portfolio_idsearchableamz_portfolio_namesearchableString
targets[ Object ]
Details about the target AdGroups which the Product Ads are being synced to.
[]if the AdGroup isn’t yet being synced.⤷
adgroup_idsearchable⤷
adspert_adgroup_idAdspert internal ID of the adgroup.
Composite ID specification:
{adspert_account_id}:{adgroup_id}⤷
adgroup_namesearchableString
When including this field in search_fields, use
targets.adgroup_name⤷
adgroup_status⤷
adgroup_labelssearchable[ String ]
When including this field in search_fields, use
targets.adgroup_labels⤷
adspert_campaign_idAdspert internal ID of the campaign.
Composite ID specification:
{adspert_account_id}:{campaign_id}⤷
campaign_idsearchable⤷
campaign_namesearchableString
When including this field in search_fields, use
targets.campaign_name⤷
campaign_type⤷
campaign_optimizeBoolean
⤷
campaign_labelssearchable[ String ]
When including this field in search_fields, use
targets.campaign_labels⤷
campaign_optimization_type⤷
campaign_optimization_support⤷
campaign_eby_marketplace_idString
⤷
performance_group_idsearchableInteger
Unique ID of the performance group
⤷
performance_group_namesearchableString
Unique name of the performance group.
When including this field in search_fields, use
targets.performance_group_name⤷
performance_group_optimization_typeOptimization type of the performance group.
Only campaigns of the same optimization type can be added to a given performance group.
⤷
performance_group_enabledBoolean
⤷
performance_group_goals[ Object ]
List of performance group goals
⤷
goal_typeType of the performance group goal
⤷
goal_valueFloat
Value of the performance group goal.
goal_valueshould beNULLifgoal_typeisPROFIT-MAXIMIZATION.goal_valueshould be a ratio (> 0) ifgoal_typeisROAS,CRRandROI,goal_valueshould be specified in micros and be larger than 10000 ifgoal_typeisCOST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICK.⤷
goal_currencyCurrency of the performance group goal.
Currency is required for
COST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICKgoals.⤷
goal_microsValue for
COST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICKgoals.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_ratioFloat
Value for
ROAS,CRRandROIgoals.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_typesList of performance group goal types
⤷
adspert_portfolio_idAdspert internal ID of Amazon portfolio.
Composite ID specification:
{adspert_account_id}:{portfolio_id}⤷
amz_portfolio_idsearchable⤷
amz_portfolio_namesearchableString
When including this field in search_fields, use
targets.amz_portfolio_name⤷
amz_product_ads_matchesInteger
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_totalInteger
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_ratioFloat
Ratio of shared and total unique product ads between source and target AdGroups.
product_ads_matches/product_ads_totalNULL if any of the two AdGroups are not auto/manual SP.
⤷
sync_modeMode of the product ad sync.
⤷
read_onlyBoolean
Indicates if the target AdGroup can be modified.
Example
http
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
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..."
httpie
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..."
python-requests
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...'})
response
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": 19990000, "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": 19990000, "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 x-www-form-urlencoded or csv)
Name
Type
Description
source_adspert_adgroup_idrequiredAdspert 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_idrequiredAdspert internal ID of the adgroup.
Target manual adgroup that we will sync product to.
Composite ID specification:
{adspert_account_id}:{adgroup_id}sync_moderequiredMode 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_idSee request data description.
⤷
target_adspert_adgroup_idSee request data description.
⤷
sync_modeSee request data description.
unchanged[ Object ]
List of objects which had no effective change.
⤷
source_adspert_adgroup_idSee request data description.
⤷
target_adspert_adgroup_idSee request data description.
⤷
sync_modeSee request data description.
updated[ Object ]
List of objects which have been updated.
⤷
source_adspert_adgroup_idSee request data description.
⤷
target_adspert_adgroup_idSee request data description.
⤷
sync_modeSee request data description.
Example
http
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
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"}]'
httpie
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..."
python-requests
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'}])
response
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 x-www-form-urlencoded or csv)
Name
Type
Description
target_adspert_adgroup_idrequiredAdspert 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_idSee request data description.
unknown[ Object ]
List of objects which could not be found.
⤷
target_adspert_adgroup_idSee request data description.
Example
http
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
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"}]'
httpie
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..."
python-requests
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'}])
response
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
includeFields to include in response data.
excludeFields to exclude in response data.
filter_date_gerequiredOnly return results where
dateis on or after this date.filter_date_lerequiredOnly return results where
dateis on or before this date.filter_adgroup_id[ LargeInteger ]
Only return results matching given
adgroup_idvalues.filter_adgroup_labels[ String ]
Only return results matching given
adgroup_labelsvalues.filter_adgroup_name[ String ]
Only return results matching given
adgroup_namevalues.filter_adgroup_status[ AdgroupStatus ]
Only return results matching given
adgroup_statusvalues.filter_adspert_adgroup_id[ CompositeID ]
Only return results matching given
adspert_adgroup_idvalues.filter_adspert_campaign_id[ CompositeID ]
Only return results matching given
adspert_campaign_idvalues.filter_adspert_criterion_id[ CompositeID ]
Only return results matching given
adspert_criterion_idvalues.filter_adspert_portfolio_id[ CompositeID ]
Only return results matching given
adspert_portfolio_idvalues.filter_amz_portfolio_id[ LargeInteger ]
Only return results matching given
amz_portfolio_idvalues.filter_amz_portfolio_name[ String ]
Only return results matching given
amz_portfolio_namevalues.filter_campaign_eby_marketplace_id[ String ]
Only return results matching given
campaign_eby_marketplace_idvalues.filter_campaign_id[ LargeInteger ]
Only return results matching given
campaign_idvalues.filter_campaign_labels[ String ]
Only return results matching given
campaign_labelsvalues.filter_campaign_name[ String ]
Only return results matching given
campaign_namevalues.filter_campaign_optimization_supportOnly return results matching given
campaign_optimization_supportvalues.filter_campaign_optimization_type[ OptimizationType ]
Only return results matching given
campaign_optimization_typevalues.filter_campaign_optimize[ Boolean ]
Only return results matching given
campaign_optimizevalues.filter_campaign_status[ CampaignStatus ]
Only return results matching given
campaign_statusvalues.filter_campaign_type[ CampaignType ]
Only return results matching given
campaign_typevalues.filter_click_through_rate_clicks_geFloat
Only return results where
click_through_rate_clicksis equal or greater than this value.filter_click_through_rate_clicks_leFloat
Only return results where
click_through_rate_clicksis equal or lower than this value.filter_click_through_rate_geFloat
Only return results where
click_through_rateis equal or greater than this value.filter_click_through_rate_leFloat
Only return results where
click_through_rateis equal or lower than this value.filter_clicks[ Integer ]
Only return results matching given
clicksvalues.filter_clicks_geInteger
Only return results where
clicksis equal or greater than this value.filter_clicks_leInteger
Only return results where
clicksis equal or lower than this value.filter_conversion_rate_adjusted_geFloat
Only return results where
conversion_rate_adjustedis equal or greater than this value.filter_conversion_rate_adjusted_leFloat
Only return results where
conversion_rate_adjustedis equal or lower than this value.filter_conversion_rate_clicks_geFloat
Only return results where
conversion_rate_clicksis equal or greater than this value.filter_conversion_rate_clicks_leFloat
Only return results where
conversion_rate_clicksis equal or lower than this value.filter_conversion_rate_geFloat
Only return results where
conversion_rateis equal or greater than this value.filter_conversion_rate_leFloat
Only return results where
conversion_rateis equal or lower than this value.filter_conversions_adjusted_geFloat
Only return results where
conversions_adjustedis equal or greater than this value.filter_conversions_adjusted_leFloat
Only return results where
conversions_adjustedis equal or lower than this value.filter_conversions_clicks_geFloat
Only return results where
conversions_clicksis equal or greater than this value.filter_conversions_clicks_leFloat
Only return results where
conversions_clicksis equal or lower than this value.filter_conversions_for_revenue_adjusted_geFloat
Only return results where
conversions_for_revenue_adjustedis equal or greater than this value.filter_conversions_for_revenue_adjusted_leFloat
Only return results where
conversions_for_revenue_adjustedis equal or lower than this value.filter_conversions_for_revenue_geFloat
Only return results where
conversions_for_revenueis equal or greater than this value.filter_conversions_for_revenue_leFloat
Only return results where
conversions_for_revenueis equal or lower than this value.filter_conversions_geFloat
Only return results where
conversionsis equal or greater than this value.filter_conversions_leFloat
Only return results where
conversionsis equal or lower than this value.filter_cost_for_click_geOnly return results where
cost_for_clickis equal or greater than this value.Min value: 1000
filter_cost_for_click_leOnly return results where
cost_for_clickis equal or lower than this value.Min value: 1000
filter_cost_for_profit_geOnly return results where
cost_for_profitis equal or greater than this value.Min value: 1000
filter_cost_for_profit_leOnly return results where
cost_for_profitis equal or lower than this value.Min value: 1000
filter_cost_for_revenue_geOnly return results where
cost_for_revenueis equal or greater than this value.Min value: 1000
filter_cost_for_revenue_leOnly return results where
cost_for_revenueis equal or lower than this value.Min value: 1000
filter_cost_for_vcpm_geOnly return results where
cost_for_vcpmis equal or greater than this value.Min value: 1000
filter_cost_for_vcpm_leOnly return results where
cost_for_vcpmis equal or lower than this value.Min value: 1000
filter_cost_geOnly return results where
costis equal or greater than this value.Min value: 1000
filter_cost_leOnly return results where
costis equal or lower than this value.Min value: 1000
filter_cost_per_click_geOnly return results where
cost_per_clickis equal or greater than this value.Min value: 1000
filter_cost_per_click_leOnly return results where
cost_per_clickis equal or lower than this value.Min value: 1000
filter_cost_per_conversion_adjusted_geOnly return results where
cost_per_conversion_adjustedis equal or greater than this value.Min value: 1000
filter_cost_per_conversion_adjusted_leOnly return results where
cost_per_conversion_adjustedis equal or lower than this value.Min value: 1000
filter_cost_per_conversion_geOnly return results where
cost_per_conversionis equal or greater than this value.Min value: 1000
filter_cost_per_conversion_leOnly return results where
cost_per_conversionis equal or lower than this value.Min value: 1000
filter_cost_per_m_view_impressions_geOnly return results where
cost_per_m_view_impressionsis equal or greater than this value.Min value: 1000
filter_cost_per_m_view_impressions_leOnly return results where
cost_per_m_view_impressionsis equal or lower than this value.Min value: 1000
filter_cost_revenue_ratio_adjusted_geFloat
Only return results where
cost_revenue_ratio_adjustedis equal or greater than this value.filter_cost_revenue_ratio_adjusted_leFloat
Only return results where
cost_revenue_ratio_adjustedis equal or lower than this value.filter_cost_revenue_ratio_clicks_geFloat
Only return results where
cost_revenue_ratio_clicksis equal or greater than this value.filter_cost_revenue_ratio_clicks_leFloat
Only return results where
cost_revenue_ratio_clicksis equal or lower than this value.filter_cost_revenue_ratio_geFloat
Only return results where
cost_revenue_ratiois equal or greater than this value.filter_cost_revenue_ratio_leFloat
Only return results where
cost_revenue_ratiois equal or lower than this value.filter_criterion_labels[ String ]
Only return results matching given
criterion_labelsvalues.filter_criterion_match_typeOnly return results matching given
criterion_match_typevalues.filter_criterion_name[ String ]
Only return results matching given
criterion_namevalues.filter_criterion_negative[ Boolean ]
Only return results matching given
criterion_negativevalues.filter_criterion_status[ CriterionStatus ]
Only return results matching given
criterion_statusvalues.filter_criterion_type[ CriterionType ]
Only return results matching given
criterion_typevalues.filter_impressions[ Integer ]
Only return results matching given
impressionsvalues.filter_impressions_geInteger
Only return results where
impressionsis equal or greater than this value.filter_impressions_leInteger
Only return results where
impressionsis equal or lower than this value.filter_performance_group_enabled[ Boolean ]
Only return results matching given
performance_group_enabledvalues.filter_performance_group_goal_typesOnly return results matching given
performance_group_goal_typesvalues.filter_performance_group_id[ Integer ]
Only return results matching given
performance_group_idvalues.filter_performance_group_name[ String ]
Only return results matching given
performance_group_namevalues.filter_performance_group_optimization_type[ OptimizationType ]
Only return results matching given
performance_group_optimization_typevalues.filter_profit_gross_adjusted_geOnly return results where
profit_gross_adjustedis equal or greater than this value.Min value: 1000
filter_profit_gross_adjusted_leOnly return results where
profit_gross_adjustedis equal or lower than this value.Min value: 1000
filter_profit_gross_geOnly return results where
profit_grossis equal or greater than this value.Min value: 1000
filter_profit_gross_leOnly return results where
profit_grossis equal or lower than this value.Min value: 1000
filter_profit_net_adjusted_geOnly return results where
profit_net_adjustedis equal or greater than this value.Min value: 1000
filter_profit_net_adjusted_leOnly return results where
profit_net_adjustedis equal or lower than this value.Min value: 1000
filter_profit_net_geOnly return results where
profit_netis equal or greater than this value.Min value: 1000
filter_profit_net_leOnly return results where
profit_netis equal or lower than this value.Min value: 1000
filter_return_on_ad_spend_adjusted_geFloat
Only return results where
return_on_ad_spend_adjustedis equal or greater than this value.filter_return_on_ad_spend_adjusted_leFloat
Only return results where
return_on_ad_spend_adjustedis equal or lower than this value.filter_return_on_ad_spend_clicks_geFloat
Only return results where
return_on_ad_spend_clicksis equal or greater than this value.filter_return_on_ad_spend_clicks_leFloat
Only return results where
return_on_ad_spend_clicksis equal or lower than this value.filter_return_on_ad_spend_geFloat
Only return results where
return_on_ad_spendis equal or greater than this value.filter_return_on_ad_spend_leFloat
Only return results where
return_on_ad_spendis equal or lower than this value.filter_return_on_investment_adjusted_geFloat
Only return results where
return_on_investment_adjustedis equal or greater than this value.filter_return_on_investment_adjusted_leFloat
Only return results where
return_on_investment_adjustedis equal or lower than this value.filter_return_on_investment_geFloat
Only return results where
return_on_investmentis equal or greater than this value.filter_return_on_investment_leFloat
Only return results where
return_on_investmentis equal or lower than this value.filter_revenue_adjusted_geOnly return results where
revenue_adjustedis equal or greater than this value.Min value: 1000
filter_revenue_adjusted_leOnly return results where
revenue_adjustedis equal or lower than this value.Min value: 1000
filter_revenue_clicks_geOnly return results where
revenue_clicksis equal or greater than this value.Min value: 1000
filter_revenue_clicks_leOnly return results where
revenue_clicksis equal or lower than this value.Min value: 1000
filter_revenue_geOnly return results where
revenueis equal or greater than this value.Min value: 1000
filter_revenue_leOnly return results where
revenueis equal or lower than this value.Min value: 1000
filter_revenue_per_conversion_adjusted_geOnly return results where
revenue_per_conversion_adjustedis equal or greater than this value.Min value: 1000
filter_revenue_per_conversion_adjusted_leOnly return results where
revenue_per_conversion_adjustedis equal or lower than this value.Min value: 1000
filter_revenue_per_conversion_geOnly return results where
revenue_per_conversionis equal or greater than this value.Min value: 1000
filter_revenue_per_conversion_leOnly return results where
revenue_per_conversionis equal or lower than this value.Min value: 1000
filter_tos_impression_share_geFloat
Only return results where
tos_impression_shareis equal or greater than this value.filter_tos_impression_share_leFloat
Only return results where
tos_impression_shareis equal or lower than this value.filter_view_impressions[ Integer ]
Only return results matching given
view_impressionsvalues.filter_view_impressions_geInteger
Only return results where
view_impressionsis equal or greater than this value.filter_view_impressions_leInteger
Only return results where
view_impressionsis equal or lower than this value.search_fieldsFields that should be searched using the
search_term.search_termString
Search term used to search the
search_fields.search_adgroup_idString
Only return results where
adgroup_idmatches the given string.search_adgroup_labelsString
Only return results where
adgroup_labelsmatches the given string.search_adgroup_nameString
Only return results where
adgroup_namematches the given string.search_amz_portfolio_idString
Only return results where
amz_portfolio_idmatches the given string.search_amz_portfolio_nameString
Only return results where
amz_portfolio_namematches the given string.search_campaign_idString
Only return results where
campaign_idmatches the given string.search_campaign_labelsString
Only return results where
campaign_labelsmatches the given string.search_campaign_nameString
Only return results where
campaign_namematches the given string.search_criterion_idString
Only return results where
criterion_idmatches the given string.search_criterion_labelsString
Only return results where
criterion_labelsmatches the given string.search_criterion_nameString
Only return results where
criterion_namematches the given string.search_performance_group_idString
Only return results where
performance_group_idmatches the given string.search_performance_group_nameString
Only return results where
performance_group_namematches the given string.sort_adgroup_idSort results by
adgroup_id.sort_adgroup_nameSort results by
adgroup_name.sort_adgroup_statusSort results by
adgroup_status.sort_adspert_adgroup_idSort results by
adspert_adgroup_id.sort_adspert_campaign_idSort results by
adspert_campaign_id.sort_adspert_criterion_idSort results by
adspert_criterion_id.sort_adspert_portfolio_idSort results by
adspert_portfolio_id.sort_amz_portfolio_idSort results by
amz_portfolio_id.sort_amz_portfolio_nameSort results by
amz_portfolio_name.sort_campaign_eby_marketplace_idSort results by
campaign_eby_marketplace_id.sort_campaign_idSort results by
campaign_id.sort_campaign_nameSort results by
campaign_name.sort_campaign_optimization_supportSort results by
campaign_optimization_support.sort_campaign_optimization_typeSort results by
campaign_optimization_type.sort_campaign_optimizeSort results by
campaign_optimize.sort_campaign_statusSort results by
campaign_status.sort_campaign_typeSort results by
campaign_type.sort_click_through_rateSort results by
click_through_rate.sort_click_through_rate_clicksSort results by
click_through_rate_clicks.sort_clicksSort results by
clicks.sort_conversion_rateSort results by
conversion_rate.sort_conversion_rate_adjustedSort results by
conversion_rate_adjusted.sort_conversion_rate_clicksSort results by
conversion_rate_clicks.sort_conversionsSort results by
conversions.sort_conversions_adjustedSort results by
conversions_adjusted.sort_conversions_clicksSort results by
conversions_clicks.sort_conversions_for_revenueSort results by
conversions_for_revenue.sort_conversions_for_revenue_adjustedSort results by
conversions_for_revenue_adjusted.sort_costSort results by
cost.sort_cost_for_clickSort results by
cost_for_click.sort_cost_for_profitSort results by
cost_for_profit.sort_cost_for_revenueSort results by
cost_for_revenue.sort_cost_for_vcpmSort results by
cost_for_vcpm.sort_cost_per_clickSort results by
cost_per_click.sort_cost_per_conversionSort results by
cost_per_conversion.sort_cost_per_conversion_adjustedSort results by
cost_per_conversion_adjusted.sort_cost_per_conversion_clicksSort results by
cost_per_conversion_clicks.sort_cost_per_m_view_impressionsSort results by
cost_per_m_view_impressions.sort_cost_revenue_ratioSort results by
cost_revenue_ratio.sort_cost_revenue_ratio_adjustedSort results by
cost_revenue_ratio_adjusted.sort_cost_revenue_ratio_clicksSort results by
cost_revenue_ratio_clicks.sort_criterion_idSort results by
criterion_id.sort_criterion_match_typeSort results by
criterion_match_type.sort_criterion_nameSort results by
criterion_name.sort_criterion_statusSort results by
criterion_status.sort_criterion_typeSort results by
criterion_type.sort_dateSort results by
date.sort_impressionsSort results by
impressions.sort_impressions_totalSort results by
impressions_total.sort_performance_group_enabledSort results by
performance_group_enabled.sort_performance_group_goal_typesSort results by
performance_group_goal_types.sort_performance_group_idSort results by
performance_group_id.sort_performance_group_nameSort results by
performance_group_name.sort_performance_group_optimization_typeSort results by
performance_group_optimization_type.sort_profit_grossSort results by
profit_gross.sort_profit_gross_adjustedSort results by
profit_gross_adjusted.sort_profit_netSort results by
profit_net.sort_profit_net_adjustedSort results by
profit_net_adjusted.sort_return_on_ad_spendSort results by
return_on_ad_spend.sort_return_on_ad_spend_adjustedSort results by
return_on_ad_spend_adjusted.sort_return_on_ad_spend_clicksSort results by
return_on_ad_spend_clicks.sort_return_on_investmentSort results by
return_on_investment.sort_return_on_investment_adjustedSort results by
return_on_investment_adjusted.sort_revenueSort results by
revenue.sort_revenue_adjustedSort results by
revenue_adjusted.sort_revenue_clicksSort results by
revenue_clicks.sort_revenue_per_conversionSort results by
revenue_per_conversion.sort_revenue_per_conversion_adjustedSort results by
revenue_per_conversion_adjusted.sort_tos_impression_shareSort results by
tos_impression_share.sort_view_impressionsSort results by
view_impressions.offsetInteger
Start index for result list.
Default: 0
Min value: 0
limitInteger
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_byrequiredGrouping/segementation level for the results.
currencyrequiredResponse Data (object list, json or csv or xlsx)
Name
Type
Description
dateperformance_group_idsearchableInteger
Unique ID of the performance group
performance_group_namesearchableString
Unique name of the performance group.
performance_group_enabledBoolean
performance_group_optimization_typeOptimization 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_typeType of the performance group goal
⤷
goal_valueFloat
Value of the performance group goal.
goal_valueshould beNULLifgoal_typeisPROFIT-MAXIMIZATION.goal_valueshould be a ratio (> 0) ifgoal_typeisROAS,CRRandROI,goal_valueshould be specified in micros and be larger than 10000 ifgoal_typeisCOST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICK.⤷
goal_currencyCurrency of the performance group goal.
Currency is required for
COST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICKgoals.⤷
goal_microsValue for
COST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICKgoals.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_ratioFloat
Value for
ROAS,CRRandROIgoals.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_typesList of performance group goal types
performance_group_user_max_bidObject
Max bid for the performance group or campaign
⤷
microsMonetary value in micros.
⤷
currencyCurrency of the monetary value.
adspert_portfolio_idAdspert internal ID of Amazon portfolio.
Composite ID specification:
{adspert_account_id}:{portfolio_id}amz_portfolio_idsearchableamz_portfolio_namesearchableString
adspert_campaign_idAdspert internal ID of the campaign.
Composite ID specification:
{adspert_account_id}:{campaign_id}campaign_idsearchablecampaign_namesearchableString
campaign_typecampaign_eby_marketplace_idString
campaign_statuscampaign_optimizeBoolean
campaign_optimization_typecampaign_optimization_supportcampaign_labelssearchable[ String ]
campaign_user_max_bidObject
Max bid for the performance group or campaign
⤷
microsMonetary value in micros.
⤷
currencyCurrency of the monetary value.
adspert_adgroup_idAdspert internal ID of the adgroup.
Composite ID specification:
{adspert_account_id}:{adgroup_id}adgroup_idsearchableadgroup_namesearchableString
adgroup_statusadgroup_labelssearchable[ String ]
adspert_criterion_idAdspert internal ID of the criterion.
Composite ID specification:
{adspert_account_id}:{adgroup_id}:{criterion_id}criterion_idsearchablecriterion_namesearchableString
criterion_statuscriterion_typecriterion_match_typeMatch type of
Keywordcriterion.NULL if
criterion_typeis notKeyword.criterion_labelssearchable[ String ]
criterion_negativeBoolean
Indicates if criterion is a negative criterion.
criterion_max_cpcMax CPC for criterion.
impressionsInteger
Number of impressions
view_impressionsInteger
Number of viewable impressions
impressions_totalInteger
Number of total impressions, For vcpm, viewable impressions and impressions for all other campaigns.
Should be used internally.
clicksInteger
Number of clicks
conversionsFloat
Number of conversions including view impressions.
Always 0 for click optimized campaigns.
conversions_clicksFloat
Number of conversions from clicks only
Valid only for vCPM campaigns. For non-vCPM campaigns, this is the same as
conversions.conversions_adjustedFloat
Number of conversions adjusted for conversion delay.
Always 0 for click optimized campaigns.
conversions_for_revenueFloat
Number of conversions for campaigns that support revenues.
Always 0 for campaigns that don’t support revenue.
conversions_for_revenue_adjustedFloat
Number of conversions for campaigns that support revenues adjusted for conversion delay.
Always 0 for campaigns that don’t support revenue.
profit_grossGross profit.
Always 0 for click and revenue optimized campaigns.
profit_gross_adjustedGross profit adjusted for conversion delay.
Always 0 for click and revenue optimized campaigns.
profit_netNet profit.
profit_gross-cost_for_profitAlways 0 for click and revenue optimized campaigns.
profit_net_adjustedNet profit adjusted for conversion delay.
profit_gross_adjusted-cost_for_profitAlways 0 for click and revenue optimized campaigns.
revenueRevenue/sales.
Always 0 for click and profit optimized campaigns.
revenue_clicksRevenue/sales from clicks only.
Valid only for vCPM campaigns. For non-vCPM campaigns, this is the same as
revenue.revenue_adjustedRevenue/sales adjusted for conversion delay.
Always 0 for click and profit optimized campaigns.
tos_impression_shareFloat
Top of search impression share. Will be 0 unless filtered for a single criterion or campaign id in a daily breakdown.
costTotal ad spend / cost
cost_for_profitAd spend from campaigns that support profit.
Always 0 for campaigns that don’t support profit.
cost_for_revenueAd spend from campaigns that support revenue.
Always 0 for campaigns that don’t support revenue.
cost_for_clickAd spend / cost from click optimized campaigns.
Always 0 for revenue and profit optimized campaigns.
cost_for_vcpmAd spend from vcpm optimized campaigns.
Always 0 for campaigns that aren’t vcpm optimized.
cost_per_clickEffective CPC.
cost/clicksNULL if number of
clicksis 0.cost_per_m_view_impressionsCost per mille viewable impressions. Valid only for vCPM campaigns.
cost/view_impressionsNULL if number of
view_impressionsis 0.cost_per_conversionCost per conversion.
Only cost for profit and revenue optimized campaigns is included.
(
cost-cost_for_click) /conversionsNULL if number of
conversionsis 0.cost_per_conversion_clicksCost 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
conversionsis 0.cost_per_conversion_adjustedCost per conversion, adjusted for conversion delay.
Only cost for profit and revenue optimized campaigns is included.
(
cost-cost_for_click) /conversions_adjustedNULL if number of
conversions_adjustedis 0.conversion_rateFloat
Conversion rate.
conversions/clicksNULL if number of
clicksis 0.conversion_rate_clicksFloat
Conversion rate from clicks only.
Valid only for vCPM campaigns. For non-vCPM campaigns, this is the same as
conversion_rate.view_conversions/clicksNULL if number of
clicksis 0.conversion_rate_adjustedFloat
Conversion rate, adjusted for conversion delay.
conversions_adjusted/clicksNULL if number of
clicksis 0.click_through_rateFloat
Clickthrough rate (CTR).
clicks/impressionsNULL if number of
impressionsis 0.click_through_rate_clicksFloat
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_impressionsNULL if number of
view_impressionsis 0.return_on_investmentFloat
Return on investment (ROI).
Only cost for profit optimized campaigns is included.
profit_gross/cost_for_profitNULL if
cost_for_profitis 0.return_on_investment_adjustedFloat
Return on investment (ROI), adjusted for conversion delay.
Only cost for profit optimized campaigns is included.
profit_gross_adjusted/cost_for_profitNULL if
cost_for_profitis 0.return_on_ad_spendFloat
Return on ad spend (ROAS).
Only cost for revenue optimized campaigns is included.
revenue/cost_for_revenueNULL if
cost_for_revenueis 0.return_on_ad_spend_clicksFloat
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_revenueNULL if
cost_for_revenueis 0.return_on_ad_spend_adjustedFloat
Return on ad spend (ROAS), adjusted for conversion delay.
Only cost for revenue optimized campaigns is included.
revenue_adjusted/cost_for_revenueNULL if
cost_for_revenueis 0.cost_revenue_ratioFloat
Cost Revenue Ratio (CRR).
Also called Advertising Cost of Sale (ACoS).
Only cost for revenue optimized campaigns is included.
cost_for_revenue/revenueNULL if
revenueis 0.cost_revenue_ratio_clicksFloat
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_clicksNULL if
revenue_clicksis 0.cost_revenue_ratio_adjustedFloat
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_adjustedNULL if
cost_for_revenueis 0.revenue_per_conversionRevenue per conversions.
Only revenue and conversions for revenue supporting campaigns are included.
revenue/conversions_for_revenueNULL if campaign doesn’t support revenue.
revenue_per_conversion_adjustedRevenue per conversions adjusted for conversion delay.
Only revenue and conversions for revenue supporting campaigns are included.
revenue_adjusted/conversions_for_revenue_adjustedNULL if campaign doesn’t support revenue.
has_vcpmBoolean
Whether the grouped-by entity has any campaigns with vCPM enabled.
mutate_update_queue[ Object ]
⤷
campaign_mutate_idInteger
⤷
adgroup_mutate_idInteger
⤷
criterion_mutate_idInteger
⤷
nameString
Queued name that is to be changed on the platform.
If
campaign_mutate_idis not NULL then this refers to a Campaign. Ifadgroup_mutate_idis not NULL then this refers to an AdGroup.⤷
statusStatus that is to be changed on the platform.
If
campaign_mutate_idis not NULL then this refers to a Campaign. Ifadgroup_mutate_idis not NULL then this refers to an AdGroup. Ifcriterion_mutate_idis not NULL then this refers to a Criterion.Example
http
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
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..."
httpie
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..."
python-requests
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...'})
response
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": 19990000, "goal_ratio": 8.77 } ], "performance_group_goal_types": [ "CLICKS-PER-DAY" ], "performance_group_user_max_bid": { "micros": 19990000, "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": 19990000, "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": 19990000, "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": 19990000, "profit_gross_adjusted": 19990000, "profit_net": 19990000, "profit_net_adjusted": 19990000, "revenue": 19990000, "revenue_clicks": 19990000, "revenue_adjusted": 19990000, "tos_impression_share": 1.86, "cost": 19990000, "cost_for_profit": 19990000, "cost_for_revenue": 19990000, "cost_for_click": 19990000, "cost_for_vcpm": 19990000, "cost_per_click": 19990000, "cost_per_m_view_impressions": 19990000, "cost_per_conversion": 19990000, "cost_per_conversion_clicks": 19990000, "cost_per_conversion_adjusted": 19990000, "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": 19990000, "revenue_per_conversion_adjusted": 19990000, "has_vcpm": true, "mutate_update_queue": [ { "campaign_mutate_id": 8859368800, "adgroup_mutate_id": 8016044254, "criterion_mutate_id": 3059293499, "name": "tucan lorem", "status": "ACTIVE" } ] } ], "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
includeFields to include in response data.
excludeFields to exclude in response data.
filter_date_gerequiredOnly return results where
dateis on or after this date.filter_date_lerequiredOnly return results where
dateis on or before this date.filter_account_id[ String ]
Only return results matching given
account_idvalues.filter_account_is_demo[ Boolean ]
Only return results matching given
account_is_demovalues.filter_account_name[ String ]
Only return results matching given
account_namevalues.filter_account_optimize[ Boolean ]
Only return results matching given
account_optimizevalues.filter_account_platform[ AdPlatform ]
Only return results matching given
account_platformvalues.filter_account_tags_user[ String ]
Only return results matching given
account_tags_uservalues.filter_adspert_account_id[ Integer ]
Only return results matching given
adspert_account_idvalues.filter_adspert_campaign_id[ CompositeID ]
Only return results matching given
adspert_campaign_idvalues.filter_adspert_portfolio_id[ CompositeID ]
Only return results matching given
adspert_portfolio_idvalues.filter_amz_portfolio_name[ String ]
Only return results matching given
amz_portfolio_namevalues.filter_budget_amount_geOnly return results where
budget_amountis equal or greater than this value.Min value: 1000
filter_budget_amount_leOnly return results where
budget_amountis equal or lower than this value.Min value: 1000
filter_budget_coverage_geFloat
Only return results where
budget_coverageis equal or greater than this value.filter_budget_coverage_leFloat
Only return results where
budget_coverageis equal or lower than this value.filter_campaign_eby_marketplace_id[ String ]
Only return results matching given
campaign_eby_marketplace_idvalues.filter_campaign_labels[ String ]
Only return results matching given
campaign_labelsvalues.filter_campaign_name[ String ]
Only return results matching given
campaign_namevalues.filter_campaign_optimization_supportOnly return results matching given
campaign_optimization_supportvalues.filter_campaign_optimization_type[ OptimizationType ]
Only return results matching given
campaign_optimization_typevalues.filter_campaign_optimize[ Boolean ]
Only return results matching given
campaign_optimizevalues.filter_campaign_status[ CampaignStatus ]
Only return results matching given
campaign_statusvalues.filter_campaign_type[ CampaignType ]
Only return results matching given
campaign_typevalues.filter_click_through_rate_clicks_geFloat
Only return results where
click_through_rate_clicksis equal or greater than this value.filter_click_through_rate_clicks_leFloat
Only return results where
click_through_rate_clicksis equal or lower than this value.filter_click_through_rate_geFloat
Only return results where
click_through_rateis equal or greater than this value.filter_click_through_rate_leFloat
Only return results where
click_through_rateis equal or lower than this value.filter_clicks[ Integer ]
Only return results matching given
clicksvalues.filter_clicks_geInteger
Only return results where
clicksis equal or greater than this value.filter_clicks_leInteger
Only return results where
clicksis equal or lower than this value.filter_conversion_rate_adjusted_geFloat
Only return results where
conversion_rate_adjustedis equal or greater than this value.filter_conversion_rate_adjusted_leFloat
Only return results where
conversion_rate_adjustedis equal or lower than this value.filter_conversion_rate_clicks_geFloat
Only return results where
conversion_rate_clicksis equal or greater than this value.filter_conversion_rate_clicks_leFloat
Only return results where
conversion_rate_clicksis equal or lower than this value.filter_conversion_rate_geFloat
Only return results where
conversion_rateis equal or greater than this value.filter_conversion_rate_leFloat
Only return results where
conversion_rateis equal or lower than this value.filter_conversions_adjusted_geFloat
Only return results where
conversions_adjustedis equal or greater than this value.filter_conversions_adjusted_leFloat
Only return results where
conversions_adjustedis equal or lower than this value.filter_conversions_clicks_geFloat
Only return results where
conversions_clicksis equal or greater than this value.filter_conversions_clicks_leFloat
Only return results where
conversions_clicksis equal or lower than this value.filter_conversions_for_revenue_adjusted_geFloat
Only return results where
conversions_for_revenue_adjustedis equal or greater than this value.filter_conversions_for_revenue_adjusted_leFloat
Only return results where
conversions_for_revenue_adjustedis equal or lower than this value.filter_conversions_for_revenue_geFloat
Only return results where
conversions_for_revenueis equal or greater than this value.filter_conversions_for_revenue_leFloat
Only return results where
conversions_for_revenueis equal or lower than this value.filter_conversions_geFloat
Only return results where
conversionsis equal or greater than this value.filter_conversions_leFloat
Only return results where
conversionsis equal or lower than this value.filter_cost_for_click_geOnly return results where
cost_for_clickis equal or greater than this value.Min value: 1000
filter_cost_for_click_leOnly return results where
cost_for_clickis equal or lower than this value.Min value: 1000
filter_cost_for_organic_geOnly return results where
cost_for_organicis equal or greater than this value.Min value: 1000
filter_cost_for_organic_leOnly return results where
cost_for_organicis equal or lower than this value.Min value: 1000
filter_cost_for_organic_rolling_avg_geOnly return results where
cost_for_organic_rolling_avgis equal or greater than this value.Min value: 1000
filter_cost_for_organic_rolling_avg_leOnly return results where
cost_for_organic_rolling_avgis equal or lower than this value.Min value: 1000
filter_cost_for_profit_geOnly return results where
cost_for_profitis equal or greater than this value.Min value: 1000
filter_cost_for_profit_leOnly return results where
cost_for_profitis equal or lower than this value.Min value: 1000
filter_cost_for_revenue_geOnly return results where
cost_for_revenueis equal or greater than this value.Min value: 1000
filter_cost_for_revenue_leOnly return results where
cost_for_revenueis equal or lower than this value.Min value: 1000
filter_cost_for_vcpm_geOnly return results where
cost_for_vcpmis equal or greater than this value.Min value: 1000
filter_cost_for_vcpm_leOnly return results where
cost_for_vcpmis equal or lower than this value.Min value: 1000
filter_cost_geOnly return results where
costis equal or greater than this value.Min value: 1000
filter_cost_leOnly return results where
costis equal or lower than this value.Min value: 1000
filter_cost_per_click_geOnly return results where
cost_per_clickis equal or greater than this value.Min value: 1000
filter_cost_per_click_leOnly return results where
cost_per_clickis equal or lower than this value.Min value: 1000
filter_cost_per_conversion_adjusted_geOnly return results where
cost_per_conversion_adjustedis equal or greater than this value.Min value: 1000
filter_cost_per_conversion_adjusted_leOnly return results where
cost_per_conversion_adjustedis equal or lower than this value.Min value: 1000
filter_cost_per_conversion_geOnly return results where
cost_per_conversionis equal or greater than this value.Min value: 1000
filter_cost_per_conversion_leOnly return results where
cost_per_conversionis equal or lower than this value.Min value: 1000
filter_cost_per_m_view_impressions_geOnly return results where
cost_per_m_view_impressionsis equal or greater than this value.Min value: 1000
filter_cost_per_m_view_impressions_leOnly return results where
cost_per_m_view_impressionsis equal or lower than this value.Min value: 1000
filter_cost_revenue_ratio_adjusted_geFloat
Only return results where
cost_revenue_ratio_adjustedis equal or greater than this value.filter_cost_revenue_ratio_adjusted_leFloat
Only return results where
cost_revenue_ratio_adjustedis equal or lower than this value.filter_cost_revenue_ratio_clicks_geFloat
Only return results where
cost_revenue_ratio_clicksis equal or greater than this value.filter_cost_revenue_ratio_clicks_leFloat
Only return results where
cost_revenue_ratio_clicksis equal or lower than this value.filter_cost_revenue_ratio_geFloat
Only return results where
cost_revenue_ratiois equal or greater than this value.filter_cost_revenue_ratio_leFloat
Only return results where
cost_revenue_ratiois equal or lower than this value.filter_cost_revenue_total_ratio_geFloat
Only return results where
cost_revenue_total_ratiois equal or greater than this value.filter_cost_revenue_total_ratio_leFloat
Only return results where
cost_revenue_total_ratiois equal or lower than this value.filter_cost_revenue_total_ratio_rolling_avg_geFloat
Only return results where
cost_revenue_total_ratio_rolling_avgis equal or greater than this value.filter_cost_revenue_total_ratio_rolling_avg_leFloat
Only return results where
cost_revenue_total_ratio_rolling_avgis equal or lower than this value.filter_impressions[ Integer ]
Only return results matching given
impressionsvalues.filter_impressions_geInteger
Only return results where
impressionsis equal or greater than this value.filter_impressions_leInteger
Only return results where
impressionsis equal or lower than this value.filter_performance_group_enabled[ Boolean ]
Only return results matching given
performance_group_enabledvalues.filter_performance_group_goal_typesOnly return results matching given
performance_group_goal_typesvalues.filter_performance_group_id[ Integer ]
Only return results matching given
performance_group_idvalues.filter_performance_group_name[ String ]
Only return results matching given
performance_group_namevalues.filter_performance_group_optimization_type[ OptimizationType ]
Only return results matching given
performance_group_optimization_typevalues.filter_profit_gross_adjusted_geOnly return results where
profit_gross_adjustedis equal or greater than this value.Min value: 1000
filter_profit_gross_adjusted_leOnly return results where
profit_gross_adjustedis equal or lower than this value.Min value: 1000
filter_profit_gross_geOnly return results where
profit_grossis equal or greater than this value.Min value: 1000
filter_profit_gross_leOnly return results where
profit_grossis equal or lower than this value.Min value: 1000
filter_profit_net_adjusted_geOnly return results where
profit_net_adjustedis equal or greater than this value.Min value: 1000
filter_profit_net_adjusted_leOnly return results where
profit_net_adjustedis equal or lower than this value.Min value: 1000
filter_profit_net_geOnly return results where
profit_netis equal or greater than this value.Min value: 1000
filter_profit_net_leOnly return results where
profit_netis equal or lower than this value.Min value: 1000
filter_return_on_ad_spend_adjusted_geFloat
Only return results where
return_on_ad_spend_adjustedis equal or greater than this value.filter_return_on_ad_spend_adjusted_leFloat
Only return results where
return_on_ad_spend_adjustedis equal or lower than this value.filter_return_on_ad_spend_clicks_geFloat
Only return results where
return_on_ad_spend_clicksis equal or greater than this value.filter_return_on_ad_spend_clicks_leFloat
Only return results where
return_on_ad_spend_clicksis equal or lower than this value.filter_return_on_ad_spend_geFloat
Only return results where
return_on_ad_spendis equal or greater than this value.filter_return_on_ad_spend_leFloat
Only return results where
return_on_ad_spendis equal or lower than this value.filter_return_on_investment_adjusted_geFloat
Only return results where
return_on_investment_adjustedis equal or greater than this value.filter_return_on_investment_adjusted_leFloat
Only return results where
return_on_investment_adjustedis equal or lower than this value.filter_return_on_investment_geFloat
Only return results where
return_on_investmentis equal or greater than this value.filter_return_on_investment_leFloat
Only return results where
return_on_investmentis equal or lower than this value.filter_revenue_adjusted_geOnly return results where
revenue_adjustedis equal or greater than this value.Min value: 1000
filter_revenue_adjusted_leOnly return results where
revenue_adjustedis equal or lower than this value.Min value: 1000
filter_revenue_clicks_geOnly return results where
revenue_clicksis equal or greater than this value.Min value: 1000
filter_revenue_clicks_leOnly return results where
revenue_clicksis equal or lower than this value.Min value: 1000
filter_revenue_geOnly return results where
revenueis equal or greater than this value.Min value: 1000
filter_revenue_leOnly return results where
revenueis equal or lower than this value.Min value: 1000
filter_revenue_organic_adjusted_geOnly return results where
revenue_organic_adjustedis equal or greater than this value.Min value: 1000
filter_revenue_organic_adjusted_leOnly return results where
revenue_organic_adjustedis equal or lower than this value.Min value: 1000
filter_revenue_organic_geOnly return results where
revenue_organicis equal or greater than this value.Min value: 1000
filter_revenue_organic_leOnly return results where
revenue_organicis equal or lower than this value.Min value: 1000
filter_revenue_per_conversion_adjusted_geOnly return results where
revenue_per_conversion_adjustedis equal or greater than this value.Min value: 1000
filter_revenue_per_conversion_adjusted_leOnly return results where
revenue_per_conversion_adjustedis equal or lower than this value.Min value: 1000
filter_revenue_per_conversion_geOnly return results where
revenue_per_conversionis equal or greater than this value.Min value: 1000
filter_revenue_per_conversion_leOnly return results where
revenue_per_conversionis equal or lower than this value.Min value: 1000
filter_revenue_total_geOnly return results where
revenue_totalis equal or greater than this value.Min value: 1000
filter_revenue_total_leOnly return results where
revenue_totalis equal or lower than this value.Min value: 1000
filter_revenue_total_rolling_avg_geOnly return results where
revenue_total_rolling_avgis equal or greater than this value.Min value: 1000
filter_revenue_total_rolling_avg_leOnly return results where
revenue_total_rolling_avgis equal or lower than this value.Min value: 1000
filter_view_impressions[ Integer ]
Only return results matching given
view_impressionsvalues.filter_view_impressions_geInteger
Only return results where
view_impressionsis equal or greater than this value.filter_view_impressions_leInteger
Only return results where
view_impressionsis equal or lower than this value.search_fieldsFields that should be searched using the
search_term.search_termString
Search term used to search the
search_fields.search_account_idString
Only return results where
account_idmatches the given string.search_account_nameString
Only return results where
account_namematches the given string.search_account_tags_userString
Only return results where
account_tags_usermatches the given string.search_adspert_account_idString
Only return results where
adspert_account_idmatches the given string.search_amz_portfolio_idString
Only return results where
amz_portfolio_idmatches the given string.search_amz_portfolio_nameString
Only return results where
amz_portfolio_namematches the given string.search_campaign_idString
Only return results where
campaign_idmatches the given string.search_campaign_labelsString
Only return results where
campaign_labelsmatches the given string.search_campaign_nameString
Only return results where
campaign_namematches the given string.search_performance_group_idString
Only return results where
performance_group_idmatches the given string.search_performance_group_nameString
Only return results where
performance_group_namematches the given string.sort_account_idSort results by
account_id.sort_account_is_demoSort results by
account_is_demo.sort_account_nameSort results by
account_name.sort_account_optimizeSort results by
account_optimize.sort_account_platformSort results by
account_platform.sort_adspert_account_idSort results by
adspert_account_id.sort_adspert_campaign_idSort results by
adspert_campaign_id.sort_adspert_portfolio_idSort results by
adspert_portfolio_id.sort_amz_portfolio_idSort results by
amz_portfolio_id.sort_amz_portfolio_nameSort results by
amz_portfolio_name.sort_budget_amountSort results by
budget_amount.sort_budget_coverageSort results by
budget_coverage.sort_campaign_eby_marketplace_idSort results by
campaign_eby_marketplace_id.sort_campaign_idSort results by
campaign_id.sort_campaign_nameSort results by
campaign_name.sort_campaign_optimization_supportSort results by
campaign_optimization_support.sort_campaign_optimization_typeSort results by
campaign_optimization_type.sort_campaign_optimizeSort results by
campaign_optimize.sort_campaign_statusSort results by
campaign_status.sort_campaign_typeSort results by
campaign_type.sort_click_through_rateSort results by
click_through_rate.sort_click_through_rate_clicksSort results by
click_through_rate_clicks.sort_clicksSort results by
clicks.sort_conversion_rateSort results by
conversion_rate.sort_conversion_rate_adjustedSort results by
conversion_rate_adjusted.sort_conversion_rate_clicksSort results by
conversion_rate_clicks.sort_conversionsSort results by
conversions.sort_conversions_adjustedSort results by
conversions_adjusted.sort_conversions_clicksSort results by
conversions_clicks.sort_conversions_for_revenueSort results by
conversions_for_revenue.sort_conversions_for_revenue_adjustedSort results by
conversions_for_revenue_adjusted.sort_costSort results by
cost.sort_cost_for_clickSort results by
cost_for_click.sort_cost_for_organicSort results by
cost_for_organic.sort_cost_for_organic_rolling_avgSort results by
cost_for_organic_rolling_avg.sort_cost_for_profitSort results by
cost_for_profit.sort_cost_for_revenueSort results by
cost_for_revenue.sort_cost_for_vcpmSort results by
cost_for_vcpm.sort_cost_per_clickSort results by
cost_per_click.sort_cost_per_conversionSort results by
cost_per_conversion.sort_cost_per_conversion_adjustedSort results by
cost_per_conversion_adjusted.sort_cost_per_conversion_clicksSort results by
cost_per_conversion_clicks.sort_cost_per_m_view_impressionsSort results by
cost_per_m_view_impressions.sort_cost_revenue_ratioSort results by
cost_revenue_ratio.sort_cost_revenue_ratio_adjustedSort results by
cost_revenue_ratio_adjusted.sort_cost_revenue_ratio_clicksSort results by
cost_revenue_ratio_clicks.sort_cost_revenue_total_ratioSort results by
cost_revenue_total_ratio.sort_cost_revenue_total_ratio_rolling_avgSort results by
cost_revenue_total_ratio_rolling_avg.sort_dateSort results by
date.sort_impressionsSort results by
impressions.sort_impressions_totalSort results by
impressions_total.sort_performance_group_enabledSort results by
performance_group_enabled.sort_performance_group_goal_typesSort results by
performance_group_goal_types.sort_performance_group_idSort results by
performance_group_id.sort_performance_group_nameSort results by
performance_group_name.sort_performance_group_optimization_typeSort results by
performance_group_optimization_type.sort_profit_grossSort results by
profit_gross.sort_profit_gross_adjustedSort results by
profit_gross_adjusted.sort_profit_netSort results by
profit_net.sort_profit_net_adjustedSort results by
profit_net_adjusted.sort_return_on_ad_spendSort results by
return_on_ad_spend.sort_return_on_ad_spend_adjustedSort results by
return_on_ad_spend_adjusted.sort_return_on_ad_spend_clicksSort results by
return_on_ad_spend_clicks.sort_return_on_investmentSort results by
return_on_investment.sort_return_on_investment_adjustedSort results by
return_on_investment_adjusted.sort_revenueSort results by
revenue.sort_revenue_adjustedSort results by
revenue_adjusted.sort_revenue_clicksSort results by
revenue_clicks.sort_revenue_organicSort results by
revenue_organic.sort_revenue_organic_adjustedSort results by
revenue_organic_adjusted.sort_revenue_per_conversionSort results by
revenue_per_conversion.sort_revenue_per_conversion_adjustedSort results by
revenue_per_conversion_adjusted.sort_revenue_totalSort results by
revenue_total.sort_revenue_total_rolling_avgSort results by
revenue_total_rolling_avg.sort_view_impressionsSort results by
view_impressions.offsetInteger
Start index for result list.
Default: 0
Min value: 0
limitInteger
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_byrequiredGrouping/segementation level for the results.
currencyrequiredResponse Data (object list, json or csv or xlsx)
Name
Type
Description
dateadspert_account_idsearchableInteger
Adspert internal ID of the advertising account
account_idsearchableString
Ad platform specific ID of an advertising account.
account_namesearchableString
account_platformThe account’s advertising platform.
account_optimizeBoolean
If optimization by Adspert is enabled for this account.
account_tags_usersearchable[ String ]
account_is_demoBoolean
If the account is a generated account for demonstration purposes.
Demo accounts have no counterpart in the ad platform.
performance_group_idsearchableInteger
Unique ID of the performance group
performance_group_namesearchableString
Unique name of the performance group.
performance_group_enabledBoolean
performance_group_optimization_typeOptimization 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_typeType of the performance group goal
⤷
goal_valueFloat
Value of the performance group goal.
goal_valueshould beNULLifgoal_typeisPROFIT-MAXIMIZATION.goal_valueshould be a ratio (> 0) ifgoal_typeisROAS,CRRandROI,goal_valueshould be specified in micros and be larger than 10000 ifgoal_typeisCOST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICK.⤷
goal_currencyCurrency of the performance group goal.
Currency is required for
COST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICKgoals.⤷
goal_microsValue for
COST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICKgoals.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_ratioFloat
Value for
ROAS,CRRandROIgoals.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_typesList of performance group goal types
performance_group_platforms[ AdPlatform ]
List of platforms that PG runs on.
NULL when grouped by
date,account,amz_portfolioperformance_group_user_max_bidObject
Max bid for the performance group or campaign
⤷
microsMonetary value in micros.
⤷
currencyCurrency of the monetary value.
performance_group_user_min_bidObject
Min bid for the performance group or campaign
⤷
microsMonetary value in micros.
⤷
currencyCurrency of the monetary value.
adspert_portfolio_idAdspert internal ID of Amazon portfolio.
Composite ID specification:
{adspert_account_id}:{portfolio_id}amz_portfolio_idsearchableamz_portfolio_namesearchableString
adspert_campaign_idAdspert internal ID of the campaign.
Composite ID specification:
{adspert_account_id}:{campaign_id}campaign_idsearchablecampaign_namesearchableString
campaign_typecampaign_eby_marketplace_idString
campaign_statuscampaign_optimizeBoolean
campaign_optimization_typecampaign_optimization_supportcampaign_labelssearchable[ String ]
campaign_user_max_bidObject
Max bid for the performance group or campaign
⤷
microsMonetary value in micros.
⤷
currencyCurrency of the monetary value.
campaign_user_min_bidObject
Min bid for the performance group or campaign
⤷
microsMonetary value in micros.
⤷
currencyCurrency of the monetary value.
mutate_update_queue[ Object ]
⤷
campaign_mutate_idInteger
⤷
adgroup_mutate_idInteger
⤷
criterion_mutate_idInteger
⤷
nameString
Queued name that is to be changed on the platform.
If
campaign_mutate_idis not NULL then this refers to a Campaign. Ifadgroup_mutate_idis not NULL then this refers to an AdGroup.⤷
statusStatus that is to be changed on the platform.
If
campaign_mutate_idis not NULL then this refers to a Campaign. Ifadgroup_mutate_idis not NULL then this refers to an AdGroup. Ifcriterion_mutate_idis not NULL then this refers to a Criterion.impressionsInteger
Number of impressions
view_impressionsInteger
Number of viewable impressions
impressions_totalInteger
Number of total impressions, For vcpm, viewable impressions and impressions for all other campaigns.
Should be used internally.
clicksInteger
Number of clicks
conversionsFloat
Number of conversions including view impressions.
Always 0 for click optimized campaigns.
conversions_clicksFloat
Number of conversions from clicks only
Valid only for vCPM campaigns. For non-vCPM campaigns, this is the same as
conversions.conversions_adjustedFloat
Number of conversions adjusted for conversion delay.
Always 0 for click optimized campaigns.
conversions_for_revenueFloat
Number of conversions for campaigns that support revenues.
Always 0 for campaigns that don’t support revenue.
conversions_for_revenue_adjustedFloat
Number of conversions for campaigns that support revenues adjusted for conversion delay.
Always 0 for campaigns that don’t support revenue.
profit_grossGross profit.
Always 0 for click and revenue optimized campaigns.
profit_gross_adjustedGross profit adjusted for conversion delay.
Always 0 for click and revenue optimized campaigns.
profit_netNet profit.
profit_gross-cost_for_profitAlways 0 for click and revenue optimized campaigns.
profit_net_adjustedNet profit adjusted for conversion delay.
profit_gross_adjusted-cost_for_profitAlways 0 for click and revenue optimized campaigns.
revenueRevenue/sales.
Always 0 for click and profit optimized campaigns.
revenue_clicksRevenue/sales from clicks only.
Valid only for vCPM campaigns. For non-vCPM campaigns, this is the same as
revenue.revenue_adjustedRevenue/sales adjusted for conversion delay.
Always 0 for click and profit optimized campaigns.
revenue_totalTotal 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_avgSame as
revenue_totalbut as a 7-day rolling average.revenue_organicOrganic 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_adjustedOrganic 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_amountThis field is
nullby default, unless explicitly mentioned inincludequery param.When grouping by
date, it provides historic budget amounts for each date. Otherwise it gives the current budget amount across all campaigns matching the filters.costTotal ad spend / cost
cost_for_profitAd spend from campaigns that support profit.
Always 0 for campaigns that don’t support profit.
cost_for_revenueAd spend from campaigns that support revenue.
Always 0 for campaigns that don’t support revenue.
cost_for_clickAd spend / cost from click optimized campaigns.
Always 0 for revenue and profit optimized campaigns.
cost_for_vcpmAd spend from vcpm optimized campaigns.
Always 0 for campaigns that aren’t vcpm optimized.
cost_for_organicAd 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_avgSame as
cost_for_organicbut as a 7-day rolling average.cost_per_clickEffective CPC.
cost/clicksNULL if number of
clicksis 0.cost_per_m_view_impressionsCost per mille viewable impressions. Valid only for vCPM campaigns.
cost/view_impressionsNULL if number of
view_impressionsis 0.cost_per_conversionCost per conversion.
Only cost for profit and revenue optimized campaigns is included.
(
cost-cost_for_click) /conversionsNULL if number of
conversionsis 0.cost_per_conversion_clicksCost 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
conversionsis 0.cost_per_conversion_adjustedCost per conversion, adjusted for conversion delay.
Only cost for profit and revenue optimized campaigns is included.
(
cost-cost_for_click) /conversions_adjustedNULL if number of
conversions_adjustedis 0.conversion_rateFloat
Conversion rate.
conversions/clicksNULL if number of
clicksis 0.conversion_rate_clicksFloat
Conversion rate from clicks only.
Valid only for vCPM campaigns. For non-vCPM campaigns, this is the same as
conversion_rate.view_conversions/clicksNULL if number of
clicksis 0.conversion_rate_adjustedFloat
Conversion rate, adjusted for conversion delay.
conversions_adjusted/clicksNULL if number of
clicksis 0.click_through_rateFloat
Clickthrough rate (CTR).
clicks/impressionsNULL if number of
impressionsis 0.click_through_rate_clicksFloat
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_impressionsNULL if number of
view_impressionsis 0.return_on_investmentFloat
Return on investment (ROI).
Only cost for profit optimized campaigns is included.
profit_gross/cost_for_profitNULL if
cost_for_profitis 0.return_on_investment_adjustedFloat
Return on investment (ROI), adjusted for conversion delay.
Only cost for profit optimized campaigns is included.
profit_gross_adjusted/cost_for_profitNULL if
cost_for_profitis 0.return_on_ad_spendFloat
Return on ad spend (ROAS).
Only cost for revenue optimized campaigns is included.
revenue/cost_for_revenueNULL if
cost_for_revenueis 0.return_on_ad_spend_clicksFloat
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_revenueNULL if
cost_for_revenueis 0.return_on_ad_spend_adjustedFloat
Return on ad spend (ROAS), adjusted for conversion delay.
Only cost for revenue optimized campaigns is included.
revenue_adjusted/cost_for_revenueNULL if
cost_for_revenueis 0.cost_revenue_ratioFloat
Cost Revenue Ratio (CRR).
Also called Advertising Cost of Sale (ACoS).
Only cost for revenue optimized campaigns is included.
cost_for_revenue/revenueNULL if
revenueis 0.cost_revenue_ratio_clicksFloat
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_clicksNULL if
revenue_clicksis 0.cost_revenue_ratio_adjustedFloat
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_adjustedNULL if
cost_for_revenueis 0.cost_revenue_total_ratioFloat
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_totalis 0.cost_revenue_total_ratio_rolling_avgFloat
Same as
cost_revenue_total_ratiobut as a 7-day rolling average.NULL if
total_revenue_rolling_avgis 0.revenue_per_conversionRevenue per conversions.
Only revenue and conversions for revenue supporting campaigns are included.
revenue/conversions_for_revenueNULL if campaign doesn’t support revenue.
revenue_per_conversion_adjustedRevenue per conversions adjusted for conversion delay.
Only revenue and conversions for revenue supporting campaigns are included.
revenue_adjusted/conversions_for_revenue_adjustedNULL if campaign doesn’t support revenue.
budget_coverageFloat
This field is
nullby default, unless explicitly mentioned inincludequery param. Furthermore, it is only available when grouping by date.has_vcpmBoolean
Whether the grouped-by entity has any campaigns with vCPM enabled.
Example
http
GET /v3/customers/7027038674/performance?sort_performance_group_name=-6&filter_conversion_rate_adjusted_ge=2.14&filter_cost_for_vcpm_le=19990000 HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl
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=19990000' -H "Accept: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
httpie
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=19990000' Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
python-requests
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=19990000', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
response
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": 19990000, "goal_ratio": 8.77 } ], "performance_group_goal_types": [ "CLICKS-PER-DAY" ], "performance_group_platforms": [ "AMAZON" ], "performance_group_user_max_bid": { "micros": 19990000, "currency": "AED" }, "performance_group_user_min_bid": { "micros": 19990000, "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": 19990000, "currency": "AED" }, "campaign_user_min_bid": { "micros": 19990000, "currency": "AED" }, "mutate_update_queue": [ { "campaign_mutate_id": 8859368800, "adgroup_mutate_id": 8016044254, "criterion_mutate_id": 3059293499, "name": "tucan lorem", "status": "ACTIVE" } ], "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": 19990000, "profit_gross_adjusted": 19990000, "profit_net": 19990000, "profit_net_adjusted": 19990000, "revenue": 19990000, "revenue_clicks": 19990000, "revenue_adjusted": 19990000, "revenue_total": 19990000, "revenue_total_rolling_avg": 19990000, "revenue_organic": 19990000, "revenue_organic_adjusted": 19990000, "budget_amount": 19990000, "cost": 19990000, "cost_for_profit": 19990000, "cost_for_revenue": 19990000, "cost_for_click": 19990000, "cost_for_vcpm": 19990000, "cost_for_organic": 19990000, "cost_for_organic_rolling_avg": 19990000, "cost_per_click": 19990000, "cost_per_m_view_impressions": 19990000, "cost_per_conversion": 19990000, "cost_per_conversion_clicks": 19990000, "cost_per_conversion_adjusted": 19990000, "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": 19990000, "revenue_per_conversion_adjusted": 19990000, "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 or x-www-form-urlencoded)
Name
Type
Description
search_fieldsFields that should be searched using the
search_term.search_termString
Search term used to search the
search_fields.offsetInteger
Start index for result list.
Default: 0
Min value: 0
limitInteger
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
includeFields to include in response data.
excludeFields to exclude in response data.
group_byrequiredGrouping/segementation level for the results.
filter_date_gerequiredOnly return results where
dateis on or after this date.filter_date_lerequiredOnly return results where
dateis on or before this date.currencyrequiredfilter_account_id[ String ]
Only return results matching given
account_idvalues.filter_account_is_demo[ Boolean ]
Only return results matching given
account_is_demovalues.filter_account_name[ String ]
Only return results matching given
account_namevalues.filter_account_optimize[ Boolean ]
Only return results matching given
account_optimizevalues.filter_account_platform[ AdPlatform ]
Only return results matching given
account_platformvalues.filter_account_tags_user[ String ]
Only return results matching given
account_tags_uservalues.filter_adspert_account_id[ Integer ]
Only return results matching given
adspert_account_idvalues.filter_adspert_campaign_id[ CompositeID ]
Only return results matching given
adspert_campaign_idvalues.filter_adspert_portfolio_id[ CompositeID ]
Only return results matching given
adspert_portfolio_idvalues.filter_amz_portfolio_name[ String ]
Only return results matching given
amz_portfolio_namevalues.filter_budget_amount_geOnly return results where
budget_amountis equal or greater than this value.Min value: 1000
filter_budget_amount_leOnly return results where
budget_amountis equal or lower than this value.Min value: 1000
filter_budget_coverage_geFloat
Only return results where
budget_coverageis equal or greater than this value.filter_budget_coverage_leFloat
Only return results where
budget_coverageis equal or lower than this value.filter_campaign_eby_marketplace_id[ String ]
Only return results matching given
campaign_eby_marketplace_idvalues.filter_campaign_labels[ String ]
Only return results matching given
campaign_labelsvalues.filter_campaign_name[ String ]
Only return results matching given
campaign_namevalues.filter_campaign_optimization_supportOnly return results matching given
campaign_optimization_supportvalues.filter_campaign_optimization_type[ OptimizationType ]
Only return results matching given
campaign_optimization_typevalues.filter_campaign_optimize[ Boolean ]
Only return results matching given
campaign_optimizevalues.filter_campaign_status[ CampaignStatus ]
Only return results matching given
campaign_statusvalues.filter_campaign_type[ CampaignType ]
Only return results matching given
campaign_typevalues.filter_click_through_rate_clicks_geFloat
Only return results where
click_through_rate_clicksis equal or greater than this value.filter_click_through_rate_clicks_leFloat
Only return results where
click_through_rate_clicksis equal or lower than this value.filter_click_through_rate_geFloat
Only return results where
click_through_rateis equal or greater than this value.filter_click_through_rate_leFloat
Only return results where
click_through_rateis equal or lower than this value.filter_clicks[ Integer ]
Only return results matching given
clicksvalues.filter_clicks_geInteger
Only return results where
clicksis equal or greater than this value.filter_clicks_leInteger
Only return results where
clicksis equal or lower than this value.filter_conversion_rate_adjusted_geFloat
Only return results where
conversion_rate_adjustedis equal or greater than this value.filter_conversion_rate_adjusted_leFloat
Only return results where
conversion_rate_adjustedis equal or lower than this value.filter_conversion_rate_clicks_geFloat
Only return results where
conversion_rate_clicksis equal or greater than this value.filter_conversion_rate_clicks_leFloat
Only return results where
conversion_rate_clicksis equal or lower than this value.filter_conversion_rate_geFloat
Only return results where
conversion_rateis equal or greater than this value.filter_conversion_rate_leFloat
Only return results where
conversion_rateis equal or lower than this value.filter_conversions_adjusted_geFloat
Only return results where
conversions_adjustedis equal or greater than this value.filter_conversions_adjusted_leFloat
Only return results where
conversions_adjustedis equal or lower than this value.filter_conversions_clicks_geFloat
Only return results where
conversions_clicksis equal or greater than this value.filter_conversions_clicks_leFloat
Only return results where
conversions_clicksis equal or lower than this value.filter_conversions_for_revenue_adjusted_geFloat
Only return results where
conversions_for_revenue_adjustedis equal or greater than this value.filter_conversions_for_revenue_adjusted_leFloat
Only return results where
conversions_for_revenue_adjustedis equal or lower than this value.filter_conversions_for_revenue_geFloat
Only return results where
conversions_for_revenueis equal or greater than this value.filter_conversions_for_revenue_leFloat
Only return results where
conversions_for_revenueis equal or lower than this value.filter_conversions_geFloat
Only return results where
conversionsis equal or greater than this value.filter_conversions_leFloat
Only return results where
conversionsis equal or lower than this value.filter_cost_for_click_geOnly return results where
cost_for_clickis equal or greater than this value.Min value: 1000
filter_cost_for_click_leOnly return results where
cost_for_clickis equal or lower than this value.Min value: 1000
filter_cost_for_organic_geOnly return results where
cost_for_organicis equal or greater than this value.Min value: 1000
filter_cost_for_organic_leOnly return results where
cost_for_organicis equal or lower than this value.Min value: 1000
filter_cost_for_organic_rolling_avg_geOnly return results where
cost_for_organic_rolling_avgis equal or greater than this value.Min value: 1000
filter_cost_for_organic_rolling_avg_leOnly return results where
cost_for_organic_rolling_avgis equal or lower than this value.Min value: 1000
filter_cost_for_profit_geOnly return results where
cost_for_profitis equal or greater than this value.Min value: 1000
filter_cost_for_profit_leOnly return results where
cost_for_profitis equal or lower than this value.Min value: 1000
filter_cost_for_revenue_geOnly return results where
cost_for_revenueis equal or greater than this value.Min value: 1000
filter_cost_for_revenue_leOnly return results where
cost_for_revenueis equal or lower than this value.Min value: 1000
filter_cost_for_vcpm_geOnly return results where
cost_for_vcpmis equal or greater than this value.Min value: 1000
filter_cost_for_vcpm_leOnly return results where
cost_for_vcpmis equal or lower than this value.Min value: 1000
filter_cost_geOnly return results where
costis equal or greater than this value.Min value: 1000
filter_cost_leOnly return results where
costis equal or lower than this value.Min value: 1000
filter_cost_per_click_geOnly return results where
cost_per_clickis equal or greater than this value.Min value: 1000
filter_cost_per_click_leOnly return results where
cost_per_clickis equal or lower than this value.Min value: 1000
filter_cost_per_conversion_adjusted_geOnly return results where
cost_per_conversion_adjustedis equal or greater than this value.Min value: 1000
filter_cost_per_conversion_adjusted_leOnly return results where
cost_per_conversion_adjustedis equal or lower than this value.Min value: 1000
filter_cost_per_conversion_geOnly return results where
cost_per_conversionis equal or greater than this value.Min value: 1000
filter_cost_per_conversion_leOnly return results where
cost_per_conversionis equal or lower than this value.Min value: 1000
filter_cost_per_m_view_impressions_geOnly return results where
cost_per_m_view_impressionsis equal or greater than this value.Min value: 1000
filter_cost_per_m_view_impressions_leOnly return results where
cost_per_m_view_impressionsis equal or lower than this value.Min value: 1000
filter_cost_revenue_ratio_adjusted_geFloat
Only return results where
cost_revenue_ratio_adjustedis equal or greater than this value.filter_cost_revenue_ratio_adjusted_leFloat
Only return results where
cost_revenue_ratio_adjustedis equal or lower than this value.filter_cost_revenue_ratio_clicks_geFloat
Only return results where
cost_revenue_ratio_clicksis equal or greater than this value.filter_cost_revenue_ratio_clicks_leFloat
Only return results where
cost_revenue_ratio_clicksis equal or lower than this value.filter_cost_revenue_ratio_geFloat
Only return results where
cost_revenue_ratiois equal or greater than this value.filter_cost_revenue_ratio_leFloat
Only return results where
cost_revenue_ratiois equal or lower than this value.filter_cost_revenue_total_ratio_geFloat
Only return results where
cost_revenue_total_ratiois equal or greater than this value.filter_cost_revenue_total_ratio_leFloat
Only return results where
cost_revenue_total_ratiois equal or lower than this value.filter_cost_revenue_total_ratio_rolling_avg_geFloat
Only return results where
cost_revenue_total_ratio_rolling_avgis equal or greater than this value.filter_cost_revenue_total_ratio_rolling_avg_leFloat
Only return results where
cost_revenue_total_ratio_rolling_avgis equal or lower than this value.filter_impressions[ Integer ]
Only return results matching given
impressionsvalues.filter_impressions_geInteger
Only return results where
impressionsis equal or greater than this value.filter_impressions_leInteger
Only return results where
impressionsis equal or lower than this value.filter_performance_group_enabled[ Boolean ]
Only return results matching given
performance_group_enabledvalues.filter_performance_group_goal_typesOnly return results matching given
performance_group_goal_typesvalues.filter_performance_group_id[ Integer ]
Only return results matching given
performance_group_idvalues.filter_performance_group_name[ String ]
Only return results matching given
performance_group_namevalues.filter_performance_group_optimization_type[ OptimizationType ]
Only return results matching given
performance_group_optimization_typevalues.filter_profit_gross_adjusted_geOnly return results where
profit_gross_adjustedis equal or greater than this value.Min value: 1000
filter_profit_gross_adjusted_leOnly return results where
profit_gross_adjustedis equal or lower than this value.Min value: 1000
filter_profit_gross_geOnly return results where
profit_grossis equal or greater than this value.Min value: 1000
filter_profit_gross_leOnly return results where
profit_grossis equal or lower than this value.Min value: 1000
filter_profit_net_adjusted_geOnly return results where
profit_net_adjustedis equal or greater than this value.Min value: 1000
filter_profit_net_adjusted_leOnly return results where
profit_net_adjustedis equal or lower than this value.Min value: 1000
filter_profit_net_geOnly return results where
profit_netis equal or greater than this value.Min value: 1000
filter_profit_net_leOnly return results where
profit_netis equal or lower than this value.Min value: 1000
filter_return_on_ad_spend_adjusted_geFloat
Only return results where
return_on_ad_spend_adjustedis equal or greater than this value.filter_return_on_ad_spend_adjusted_leFloat
Only return results where
return_on_ad_spend_adjustedis equal or lower than this value.filter_return_on_ad_spend_clicks_geFloat
Only return results where
return_on_ad_spend_clicksis equal or greater than this value.filter_return_on_ad_spend_clicks_leFloat
Only return results where
return_on_ad_spend_clicksis equal or lower than this value.filter_return_on_ad_spend_geFloat
Only return results where
return_on_ad_spendis equal or greater than this value.filter_return_on_ad_spend_leFloat
Only return results where
return_on_ad_spendis equal or lower than this value.filter_return_on_investment_adjusted_geFloat
Only return results where
return_on_investment_adjustedis equal or greater than this value.filter_return_on_investment_adjusted_leFloat
Only return results where
return_on_investment_adjustedis equal or lower than this value.filter_return_on_investment_geFloat
Only return results where
return_on_investmentis equal or greater than this value.filter_return_on_investment_leFloat
Only return results where
return_on_investmentis equal or lower than this value.filter_revenue_adjusted_geOnly return results where
revenue_adjustedis equal or greater than this value.Min value: 1000
filter_revenue_adjusted_leOnly return results where
revenue_adjustedis equal or lower than this value.Min value: 1000
filter_revenue_clicks_geOnly return results where
revenue_clicksis equal or greater than this value.Min value: 1000
filter_revenue_clicks_leOnly return results where
revenue_clicksis equal or lower than this value.Min value: 1000
filter_revenue_geOnly return results where
revenueis equal or greater than this value.Min value: 1000
filter_revenue_leOnly return results where
revenueis equal or lower than this value.Min value: 1000
filter_revenue_organic_adjusted_geOnly return results where
revenue_organic_adjustedis equal or greater than this value.Min value: 1000
filter_revenue_organic_adjusted_leOnly return results where
revenue_organic_adjustedis equal or lower than this value.Min value: 1000
filter_revenue_organic_geOnly return results where
revenue_organicis equal or greater than this value.Min value: 1000
filter_revenue_organic_leOnly return results where
revenue_organicis equal or lower than this value.Min value: 1000
filter_revenue_per_conversion_adjusted_geOnly return results where
revenue_per_conversion_adjustedis equal or greater than this value.Min value: 1000
filter_revenue_per_conversion_adjusted_leOnly return results where
revenue_per_conversion_adjustedis equal or lower than this value.Min value: 1000
filter_revenue_per_conversion_geOnly return results where
revenue_per_conversionis equal or greater than this value.Min value: 1000
filter_revenue_per_conversion_leOnly return results where
revenue_per_conversionis equal or lower than this value.Min value: 1000
filter_revenue_total_geOnly return results where
revenue_totalis equal or greater than this value.Min value: 1000
filter_revenue_total_leOnly return results where
revenue_totalis equal or lower than this value.Min value: 1000
filter_revenue_total_rolling_avg_geOnly return results where
revenue_total_rolling_avgis equal or greater than this value.Min value: 1000
filter_revenue_total_rolling_avg_leOnly return results where
revenue_total_rolling_avgis equal or lower than this value.Min value: 1000
filter_view_impressions[ Integer ]
Only return results matching given
view_impressionsvalues.filter_view_impressions_geInteger
Only return results where
view_impressionsis equal or greater than this value.filter_view_impressions_leInteger
Only return results where
view_impressionsis equal or lower than this value.search_account_idString
Only return results where
account_idmatches the given string.search_account_nameString
Only return results where
account_namematches the given string.search_account_tags_userString
Only return results where
account_tags_usermatches the given string.search_adspert_account_idString
Only return results where
adspert_account_idmatches the given string.search_amz_portfolio_idString
Only return results where
amz_portfolio_idmatches the given string.search_amz_portfolio_nameString
Only return results where
amz_portfolio_namematches the given string.search_campaign_idString
Only return results where
campaign_idmatches the given string.search_campaign_labelsString
Only return results where
campaign_labelsmatches the given string.search_campaign_nameString
Only return results where
campaign_namematches the given string.search_performance_group_idString
Only return results where
performance_group_idmatches the given string.search_performance_group_nameString
Only return results where
performance_group_namematches the given string.sort_account_idSort results by
account_id.sort_account_is_demoSort results by
account_is_demo.sort_account_nameSort results by
account_name.sort_account_optimizeSort results by
account_optimize.sort_account_platformSort results by
account_platform.sort_adspert_account_idSort results by
adspert_account_id.sort_adspert_campaign_idSort results by
adspert_campaign_id.sort_adspert_portfolio_idSort results by
adspert_portfolio_id.sort_amz_portfolio_idSort results by
amz_portfolio_id.sort_amz_portfolio_nameSort results by
amz_portfolio_name.sort_budget_amountSort results by
budget_amount.sort_budget_coverageSort results by
budget_coverage.sort_campaign_eby_marketplace_idSort results by
campaign_eby_marketplace_id.sort_campaign_idSort results by
campaign_id.sort_campaign_nameSort results by
campaign_name.sort_campaign_optimization_supportSort results by
campaign_optimization_support.sort_campaign_optimization_typeSort results by
campaign_optimization_type.sort_campaign_optimizeSort results by
campaign_optimize.sort_campaign_statusSort results by
campaign_status.sort_campaign_typeSort results by
campaign_type.sort_click_through_rateSort results by
click_through_rate.sort_click_through_rate_clicksSort results by
click_through_rate_clicks.sort_clicksSort results by
clicks.sort_conversion_rateSort results by
conversion_rate.sort_conversion_rate_adjustedSort results by
conversion_rate_adjusted.sort_conversion_rate_clicksSort results by
conversion_rate_clicks.sort_conversionsSort results by
conversions.sort_conversions_adjustedSort results by
conversions_adjusted.sort_conversions_clicksSort results by
conversions_clicks.sort_conversions_for_revenueSort results by
conversions_for_revenue.sort_conversions_for_revenue_adjustedSort results by
conversions_for_revenue_adjusted.sort_costSort results by
cost.sort_cost_for_clickSort results by
cost_for_click.sort_cost_for_organicSort results by
cost_for_organic.sort_cost_for_organic_rolling_avgSort results by
cost_for_organic_rolling_avg.sort_cost_for_profitSort results by
cost_for_profit.sort_cost_for_revenueSort results by
cost_for_revenue.sort_cost_for_vcpmSort results by
cost_for_vcpm.sort_cost_per_clickSort results by
cost_per_click.sort_cost_per_conversionSort results by
cost_per_conversion.sort_cost_per_conversion_adjustedSort results by
cost_per_conversion_adjusted.sort_cost_per_conversion_clicksSort results by
cost_per_conversion_clicks.sort_cost_per_m_view_impressionsSort results by
cost_per_m_view_impressions.sort_cost_revenue_ratioSort results by
cost_revenue_ratio.sort_cost_revenue_ratio_adjustedSort results by
cost_revenue_ratio_adjusted.sort_cost_revenue_ratio_clicksSort results by
cost_revenue_ratio_clicks.sort_cost_revenue_total_ratioSort results by
cost_revenue_total_ratio.sort_cost_revenue_total_ratio_rolling_avgSort results by
cost_revenue_total_ratio_rolling_avg.sort_dateSort results by
date.sort_impressionsSort results by
impressions.sort_impressions_totalSort results by
impressions_total.sort_performance_group_enabledSort results by
performance_group_enabled.sort_performance_group_goal_typesSort results by
performance_group_goal_types.sort_performance_group_idSort results by
performance_group_id.sort_performance_group_nameSort results by
performance_group_name.sort_performance_group_optimization_typeSort results by
performance_group_optimization_type.sort_profit_grossSort results by
profit_gross.sort_profit_gross_adjustedSort results by
profit_gross_adjusted.sort_profit_netSort results by
profit_net.sort_profit_net_adjustedSort results by
profit_net_adjusted.sort_return_on_ad_spendSort results by
return_on_ad_spend.sort_return_on_ad_spend_adjustedSort results by
return_on_ad_spend_adjusted.sort_return_on_ad_spend_clicksSort results by
return_on_ad_spend_clicks.sort_return_on_investmentSort results by
return_on_investment.sort_return_on_investment_adjustedSort results by
return_on_investment_adjusted.sort_revenueSort results by
revenue.sort_revenue_adjustedSort results by
revenue_adjusted.sort_revenue_clicksSort results by
revenue_clicks.sort_revenue_organicSort results by
revenue_organic.sort_revenue_organic_adjustedSort results by
revenue_organic_adjusted.sort_revenue_per_conversionSort results by
revenue_per_conversion.sort_revenue_per_conversion_adjustedSort results by
revenue_per_conversion_adjusted.sort_revenue_totalSort results by
revenue_total.sort_revenue_total_rolling_avgSort results by
revenue_total_rolling_avg.sort_view_impressionsSort results by
view_impressions.Response Data (object list, json or csv or xlsx)
Name
Type
Description
dateadspert_account_idsearchableInteger
Adspert internal ID of the advertising account
account_idsearchableString
Ad platform specific ID of an advertising account.
account_namesearchableString
account_platformThe account’s advertising platform.
account_optimizeBoolean
If optimization by Adspert is enabled for this account.
account_tags_usersearchable[ String ]
account_is_demoBoolean
If the account is a generated account for demonstration purposes.
Demo accounts have no counterpart in the ad platform.
performance_group_idsearchableInteger
Unique ID of the performance group
performance_group_namesearchableString
Unique name of the performance group.
performance_group_enabledBoolean
performance_group_optimization_typeOptimization 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_typeType of the performance group goal
⤷
goal_valueFloat
Value of the performance group goal.
goal_valueshould beNULLifgoal_typeisPROFIT-MAXIMIZATION.goal_valueshould be a ratio (> 0) ifgoal_typeisROAS,CRRandROI,goal_valueshould be specified in micros and be larger than 10000 ifgoal_typeisCOST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICK.⤷
goal_currencyCurrency of the performance group goal.
Currency is required for
COST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICKgoals.⤷
goal_microsValue for
COST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICKgoals.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_ratioFloat
Value for
ROAS,CRRandROIgoals.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_typesList of performance group goal types
performance_group_platforms[ AdPlatform ]
List of platforms that PG runs on.
NULL when grouped by
date,account,amz_portfolioperformance_group_user_max_bidObject
Max bid for the performance group or campaign
⤷
microsMonetary value in micros.
⤷
currencyCurrency of the monetary value.
performance_group_user_min_bidObject
Min bid for the performance group or campaign
⤷
microsMonetary value in micros.
⤷
currencyCurrency of the monetary value.
adspert_portfolio_idAdspert internal ID of Amazon portfolio.
Composite ID specification:
{adspert_account_id}:{portfolio_id}amz_portfolio_idsearchableamz_portfolio_namesearchableString
adspert_campaign_idAdspert internal ID of the campaign.
Composite ID specification:
{adspert_account_id}:{campaign_id}campaign_idsearchablecampaign_namesearchableString
campaign_typecampaign_eby_marketplace_idString
campaign_statuscampaign_optimizeBoolean
campaign_optimization_typecampaign_optimization_supportcampaign_labelssearchable[ String ]
campaign_user_max_bidObject
Max bid for the performance group or campaign
⤷
microsMonetary value in micros.
⤷
currencyCurrency of the monetary value.
campaign_user_min_bidObject
Min bid for the performance group or campaign
⤷
microsMonetary value in micros.
⤷
currencyCurrency of the monetary value.
mutate_update_queue[ Object ]
⤷
campaign_mutate_idInteger
⤷
adgroup_mutate_idInteger
⤷
criterion_mutate_idInteger
⤷
nameString
Queued name that is to be changed on the platform.
If
campaign_mutate_idis not NULL then this refers to a Campaign. Ifadgroup_mutate_idis not NULL then this refers to an AdGroup.⤷
statusStatus that is to be changed on the platform.
If
campaign_mutate_idis not NULL then this refers to a Campaign. Ifadgroup_mutate_idis not NULL then this refers to an AdGroup. Ifcriterion_mutate_idis not NULL then this refers to a Criterion.impressionsInteger
Number of impressions
view_impressionsInteger
Number of viewable impressions
impressions_totalInteger
Number of total impressions, For vcpm, viewable impressions and impressions for all other campaigns.
Should be used internally.
clicksInteger
Number of clicks
conversionsFloat
Number of conversions including view impressions.
Always 0 for click optimized campaigns.
conversions_clicksFloat
Number of conversions from clicks only
Valid only for vCPM campaigns. For non-vCPM campaigns, this is the same as
conversions.conversions_adjustedFloat
Number of conversions adjusted for conversion delay.
Always 0 for click optimized campaigns.
conversions_for_revenueFloat
Number of conversions for campaigns that support revenues.
Always 0 for campaigns that don’t support revenue.
conversions_for_revenue_adjustedFloat
Number of conversions for campaigns that support revenues adjusted for conversion delay.
Always 0 for campaigns that don’t support revenue.
profit_grossGross profit.
Always 0 for click and revenue optimized campaigns.
profit_gross_adjustedGross profit adjusted for conversion delay.
Always 0 for click and revenue optimized campaigns.
profit_netNet profit.
profit_gross-cost_for_profitAlways 0 for click and revenue optimized campaigns.
profit_net_adjustedNet profit adjusted for conversion delay.
profit_gross_adjusted-cost_for_profitAlways 0 for click and revenue optimized campaigns.
revenueRevenue/sales.
Always 0 for click and profit optimized campaigns.
revenue_clicksRevenue/sales from clicks only.
Valid only for vCPM campaigns. For non-vCPM campaigns, this is the same as
revenue.revenue_adjustedRevenue/sales adjusted for conversion delay.
Always 0 for click and profit optimized campaigns.
revenue_totalTotal 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_avgSame as
revenue_totalbut as a 7-day rolling average.revenue_organicOrganic 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_adjustedOrganic 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_amountThis field is
nullby default, unless explicitly mentioned inincludequery param.When grouping by
date, it provides historic budget amounts for each date. Otherwise it gives the current budget amount across all campaigns matching the filters.costTotal ad spend / cost
cost_for_profitAd spend from campaigns that support profit.
Always 0 for campaigns that don’t support profit.
cost_for_revenueAd spend from campaigns that support revenue.
Always 0 for campaigns that don’t support revenue.
cost_for_clickAd spend / cost from click optimized campaigns.
Always 0 for revenue and profit optimized campaigns.
cost_for_vcpmAd spend from vcpm optimized campaigns.
Always 0 for campaigns that aren’t vcpm optimized.
cost_for_organicAd 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_avgSame as
cost_for_organicbut as a 7-day rolling average.cost_per_clickEffective CPC.
cost/clicksNULL if number of
clicksis 0.cost_per_m_view_impressionsCost per mille viewable impressions. Valid only for vCPM campaigns.
cost/view_impressionsNULL if number of
view_impressionsis 0.cost_per_conversionCost per conversion.
Only cost for profit and revenue optimized campaigns is included.
(
cost-cost_for_click) /conversionsNULL if number of
conversionsis 0.cost_per_conversion_clicksCost 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
conversionsis 0.cost_per_conversion_adjustedCost per conversion, adjusted for conversion delay.
Only cost for profit and revenue optimized campaigns is included.
(
cost-cost_for_click) /conversions_adjustedNULL if number of
conversions_adjustedis 0.conversion_rateFloat
Conversion rate.
conversions/clicksNULL if number of
clicksis 0.conversion_rate_clicksFloat
Conversion rate from clicks only.
Valid only for vCPM campaigns. For non-vCPM campaigns, this is the same as
conversion_rate.view_conversions/clicksNULL if number of
clicksis 0.conversion_rate_adjustedFloat
Conversion rate, adjusted for conversion delay.
conversions_adjusted/clicksNULL if number of
clicksis 0.click_through_rateFloat
Clickthrough rate (CTR).
clicks/impressionsNULL if number of
impressionsis 0.click_through_rate_clicksFloat
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_impressionsNULL if number of
view_impressionsis 0.return_on_investmentFloat
Return on investment (ROI).
Only cost for profit optimized campaigns is included.
profit_gross/cost_for_profitNULL if
cost_for_profitis 0.return_on_investment_adjustedFloat
Return on investment (ROI), adjusted for conversion delay.
Only cost for profit optimized campaigns is included.
profit_gross_adjusted/cost_for_profitNULL if
cost_for_profitis 0.return_on_ad_spendFloat
Return on ad spend (ROAS).
Only cost for revenue optimized campaigns is included.
revenue/cost_for_revenueNULL if
cost_for_revenueis 0.return_on_ad_spend_clicksFloat
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_revenueNULL if
cost_for_revenueis 0.return_on_ad_spend_adjustedFloat
Return on ad spend (ROAS), adjusted for conversion delay.
Only cost for revenue optimized campaigns is included.
revenue_adjusted/cost_for_revenueNULL if
cost_for_revenueis 0.cost_revenue_ratioFloat
Cost Revenue Ratio (CRR).
Also called Advertising Cost of Sale (ACoS).
Only cost for revenue optimized campaigns is included.
cost_for_revenue/revenueNULL if
revenueis 0.cost_revenue_ratio_clicksFloat
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_clicksNULL if
revenue_clicksis 0.cost_revenue_ratio_adjustedFloat
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_adjustedNULL if
cost_for_revenueis 0.cost_revenue_total_ratioFloat
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_totalis 0.cost_revenue_total_ratio_rolling_avgFloat
Same as
cost_revenue_total_ratiobut as a 7-day rolling average.NULL if
total_revenue_rolling_avgis 0.revenue_per_conversionRevenue per conversions.
Only revenue and conversions for revenue supporting campaigns are included.
revenue/conversions_for_revenueNULL if campaign doesn’t support revenue.
revenue_per_conversion_adjustedRevenue per conversions adjusted for conversion delay.
Only revenue and conversions for revenue supporting campaigns are included.
revenue_adjusted/conversions_for_revenue_adjustedNULL if campaign doesn’t support revenue.
budget_coverageFloat
This field is
nullby default, unless explicitly mentioned inincludequery param. Furthermore, it is only available when grouping by date.has_vcpmBoolean
Whether the grouped-by entity has any campaigns with vCPM enabled.
Example
http
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": 19990000, "filter_budget_amount_le": 19990000, "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": 19990000, "filter_cost_for_click_le": 19990000, "filter_cost_for_organic_ge": 19990000, "filter_cost_for_organic_le": 19990000, "filter_cost_for_organic_rolling_avg_ge": 19990000, "filter_cost_for_organic_rolling_avg_le": 19990000, "filter_cost_for_profit_ge": 19990000, "filter_cost_for_profit_le": 19990000, "filter_cost_for_revenue_ge": 19990000, "filter_cost_for_revenue_le": 19990000, "filter_cost_for_vcpm_ge": 19990000, "filter_cost_for_vcpm_le": 19990000, "filter_cost_ge": 19990000, "filter_cost_le": 19990000, "filter_cost_per_click_ge": 19990000, "filter_cost_per_click_le": 19990000, "filter_cost_per_conversion_adjusted_ge": 19990000, "filter_cost_per_conversion_adjusted_le": 19990000, "filter_cost_per_conversion_ge": 19990000, "filter_cost_per_conversion_le": 19990000, "filter_cost_per_m_view_impressions_ge": 19990000, "filter_cost_per_m_view_impressions_le": 19990000, "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": 19990000, "filter_profit_gross_adjusted_le": 19990000, "filter_profit_gross_ge": 19990000, "filter_profit_gross_le": 19990000, "filter_profit_net_adjusted_ge": 19990000, "filter_profit_net_adjusted_le": 19990000, "filter_profit_net_ge": 19990000, "filter_profit_net_le": 19990000, "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": 19990000, "filter_revenue_adjusted_le": 19990000, "filter_revenue_clicks_ge": 19990000, "filter_revenue_clicks_le": 19990000, "filter_revenue_ge": 19990000, "filter_revenue_le": 19990000, "filter_revenue_organic_adjusted_ge": 19990000, "filter_revenue_organic_adjusted_le": 19990000, "filter_revenue_organic_ge": 19990000, "filter_revenue_organic_le": 19990000, "filter_revenue_per_conversion_adjusted_ge": 19990000, "filter_revenue_per_conversion_adjusted_le": 19990000, "filter_revenue_per_conversion_ge": 19990000, "filter_revenue_per_conversion_le": 19990000, "filter_revenue_total_ge": 19990000, "filter_revenue_total_le": 19990000, "filter_revenue_total_rolling_avg_ge": 19990000, "filter_revenue_total_rolling_avg_le": 19990000, "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
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": 19990000, "filter_budget_amount_le": 19990000, "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": 19990000, "filter_cost_for_click_le": 19990000, "filter_cost_for_organic_ge": 19990000, "filter_cost_for_organic_le": 19990000, "filter_cost_for_organic_rolling_avg_ge": 19990000, "filter_cost_for_organic_rolling_avg_le": 19990000, "filter_cost_for_profit_ge": 19990000, "filter_cost_for_profit_le": 19990000, "filter_cost_for_revenue_ge": 19990000, "filter_cost_for_revenue_le": 19990000, "filter_cost_for_vcpm_ge": 19990000, "filter_cost_for_vcpm_le": 19990000, "filter_cost_ge": 19990000, "filter_cost_le": 19990000, "filter_cost_per_click_ge": 19990000, "filter_cost_per_click_le": 19990000, "filter_cost_per_conversion_adjusted_ge": 19990000, "filter_cost_per_conversion_adjusted_le": 19990000, "filter_cost_per_conversion_ge": 19990000, "filter_cost_per_conversion_le": 19990000, "filter_cost_per_m_view_impressions_ge": 19990000, "filter_cost_per_m_view_impressions_le": 19990000, "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": 19990000, "filter_profit_gross_adjusted_le": 19990000, "filter_profit_gross_ge": 19990000, "filter_profit_gross_le": 19990000, "filter_profit_net_adjusted_ge": 19990000, "filter_profit_net_adjusted_le": 19990000, "filter_profit_net_ge": 19990000, "filter_profit_net_le": 19990000, "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": 19990000, "filter_revenue_adjusted_le": 19990000, "filter_revenue_clicks_ge": 19990000, "filter_revenue_clicks_le": 19990000, "filter_revenue_ge": 19990000, "filter_revenue_le": 19990000, "filter_revenue_organic_adjusted_ge": 19990000, "filter_revenue_organic_adjusted_le": 19990000, "filter_revenue_organic_ge": 19990000, "filter_revenue_organic_le": 19990000, "filter_revenue_per_conversion_adjusted_ge": 19990000, "filter_revenue_per_conversion_adjusted_le": 19990000, "filter_revenue_per_conversion_ge": 19990000, "filter_revenue_per_conversion_le": 19990000, "filter_revenue_total_ge": 19990000, "filter_revenue_total_le": 19990000, "filter_revenue_total_rolling_avg_ge": 19990000, "filter_revenue_total_rolling_avg_le": 19990000, "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}'
httpie
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": 19990000, "filter_budget_amount_le": 19990000, "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": 19990000, "filter_cost_for_click_le": 19990000, "filter_cost_for_organic_ge": 19990000, "filter_cost_for_organic_le": 19990000, "filter_cost_for_organic_rolling_avg_ge": 19990000, "filter_cost_for_organic_rolling_avg_le": 19990000, "filter_cost_for_profit_ge": 19990000, "filter_cost_for_profit_le": 19990000, "filter_cost_for_revenue_ge": 19990000, "filter_cost_for_revenue_le": 19990000, "filter_cost_for_vcpm_ge": 19990000, "filter_cost_for_vcpm_le": 19990000, "filter_cost_ge": 19990000, "filter_cost_le": 19990000, "filter_cost_per_click_ge": 19990000, "filter_cost_per_click_le": 19990000, "filter_cost_per_conversion_adjusted_ge": 19990000, "filter_cost_per_conversion_adjusted_le": 19990000, "filter_cost_per_conversion_ge": 19990000, "filter_cost_per_conversion_le": 19990000, "filter_cost_per_m_view_impressions_ge": 19990000, "filter_cost_per_m_view_impressions_le": 19990000, "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": 19990000, "filter_profit_gross_adjusted_le": 19990000, "filter_profit_gross_ge": 19990000, "filter_profit_gross_le": 19990000, "filter_profit_net_adjusted_ge": 19990000, "filter_profit_net_adjusted_le": 19990000, "filter_profit_net_ge": 19990000, "filter_profit_net_le": 19990000, "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": 19990000, "filter_revenue_adjusted_le": 19990000, "filter_revenue_clicks_ge": 19990000, "filter_revenue_clicks_le": 19990000, "filter_revenue_ge": 19990000, "filter_revenue_le": 19990000, "filter_revenue_organic_adjusted_ge": 19990000, "filter_revenue_organic_adjusted_le": 19990000, "filter_revenue_organic_ge": 19990000, "filter_revenue_organic_le": 19990000, "filter_revenue_per_conversion_adjusted_ge": 19990000, "filter_revenue_per_conversion_adjusted_le": 19990000, "filter_revenue_per_conversion_ge": 19990000, "filter_revenue_per_conversion_le": 19990000, "filter_revenue_total_ge": 19990000, "filter_revenue_total_le": 19990000, "filter_revenue_total_rolling_avg_ge": 19990000, "filter_revenue_total_rolling_avg_le": 19990000, "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..."
python-requests
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': 19990000, 'filter_budget_amount_le': 19990000, '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': 19990000, 'filter_cost_for_click_le': 19990000, 'filter_cost_for_organic_ge': 19990000, 'filter_cost_for_organic_le': 19990000, 'filter_cost_for_organic_rolling_avg_ge': 19990000, 'filter_cost_for_organic_rolling_avg_le': 19990000, 'filter_cost_for_profit_ge': 19990000, 'filter_cost_for_profit_le': 19990000, 'filter_cost_for_revenue_ge': 19990000, 'filter_cost_for_revenue_le': 19990000, 'filter_cost_for_vcpm_ge': 19990000, 'filter_cost_for_vcpm_le': 19990000, 'filter_cost_ge': 19990000, 'filter_cost_le': 19990000, 'filter_cost_per_click_ge': 19990000, 'filter_cost_per_click_le': 19990000, 'filter_cost_per_conversion_adjusted_ge': 19990000, 'filter_cost_per_conversion_adjusted_le': 19990000, 'filter_cost_per_conversion_ge': 19990000, 'filter_cost_per_conversion_le': 19990000, 'filter_cost_per_m_view_impressions_ge': 19990000, 'filter_cost_per_m_view_impressions_le': 19990000, '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': 19990000, 'filter_profit_gross_adjusted_le': 19990000, 'filter_profit_gross_ge': 19990000, 'filter_profit_gross_le': 19990000, 'filter_profit_net_adjusted_ge': 19990000, 'filter_profit_net_adjusted_le': 19990000, 'filter_profit_net_ge': 19990000, 'filter_profit_net_le': 19990000, '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': 19990000, 'filter_revenue_adjusted_le': 19990000, 'filter_revenue_clicks_ge': 19990000, 'filter_revenue_clicks_le': 19990000, 'filter_revenue_ge': 19990000, 'filter_revenue_le': 19990000, 'filter_revenue_organic_adjusted_ge': 19990000, 'filter_revenue_organic_adjusted_le': 19990000, 'filter_revenue_organic_ge': 19990000, 'filter_revenue_organic_le': 19990000, 'filter_revenue_per_conversion_adjusted_ge': 19990000, 'filter_revenue_per_conversion_adjusted_le': 19990000, 'filter_revenue_per_conversion_ge': 19990000, 'filter_revenue_per_conversion_le': 19990000, 'filter_revenue_total_ge': 19990000, 'filter_revenue_total_le': 19990000, 'filter_revenue_total_rolling_avg_ge': 19990000, 'filter_revenue_total_rolling_avg_le': 19990000, '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})
response
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": 19990000, "goal_ratio": 8.77 } ], "performance_group_goal_types": [ "CLICKS-PER-DAY" ], "performance_group_platforms": [ "AMAZON" ], "performance_group_user_max_bid": { "micros": 19990000, "currency": "AED" }, "performance_group_user_min_bid": { "micros": 19990000, "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": 19990000, "currency": "AED" }, "campaign_user_min_bid": { "micros": 19990000, "currency": "AED" }, "mutate_update_queue": [ { "campaign_mutate_id": 8859368800, "adgroup_mutate_id": 8016044254, "criterion_mutate_id": 3059293499, "name": "tucan lorem", "status": "ACTIVE" } ], "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": 19990000, "profit_gross_adjusted": 19990000, "profit_net": 19990000, "profit_net_adjusted": 19990000, "revenue": 19990000, "revenue_clicks": 19990000, "revenue_adjusted": 19990000, "revenue_total": 19990000, "revenue_total_rolling_avg": 19990000, "revenue_organic": 19990000, "revenue_organic_adjusted": 19990000, "budget_amount": 19990000, "cost": 19990000, "cost_for_profit": 19990000, "cost_for_revenue": 19990000, "cost_for_click": 19990000, "cost_for_vcpm": 19990000, "cost_for_organic": 19990000, "cost_for_organic_rolling_avg": 19990000, "cost_per_click": 19990000, "cost_per_m_view_impressions": 19990000, "cost_per_conversion": 19990000, "cost_per_conversion_clicks": 19990000, "cost_per_conversion_adjusted": 19990000, "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": 19990000, "revenue_per_conversion_adjusted": 19990000, "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
includeFields to include in response data.
excludeFields to exclude in response data.
filter_date_gerequiredOnly return results where
dateis on or after this date.filter_date_lerequiredOnly return results where
dateis on or before this date.filter_performance_group_id[ Integer ]
Only return results matching given
performance_group_idvalues.filter_performance_group_name[ String ]
Only return results matching given
performance_group_namevalues.filter_performance_group_enabled[ Boolean ]
Only return results matching given
performance_group_enabledvalues.filter_performance_group_optimization_type[ OptimizationType ]
Only return results matching given
performance_group_optimization_typevalues.filter_performance_group_goal_typesOnly return results matching given
performance_group_goal_typesvalues.filter_adspert_adgroup_id[ CompositeID ]
Only return results matching given
adspert_adgroup_idvalues.filter_adgroup_id[ LargeInteger ]
Only return results matching given
adgroup_idvalues.filter_adgroup_name[ String ]
Only return results matching given
adgroup_namevalues.filter_adgroup_status[ AdgroupStatus ]
Only return results matching given
adgroup_statusvalues.filter_adgroup_labels[ String ]
Only return results matching given
adgroup_labelsvalues.filter_adspert_campaign_id[ CompositeID ]
Only return results matching given
adspert_campaign_idvalues.filter_campaign_id[ LargeInteger ]
Only return results matching given
campaign_idvalues.filter_campaign_name[ String ]
Only return results matching given
campaign_namevalues.filter_campaign_type[ CampaignType ]
Only return results matching given
campaign_typevalues.filter_campaign_eby_marketplace_id[ String ]
Only return results matching given
campaign_eby_marketplace_idvalues.filter_campaign_status[ CampaignStatus ]
Only return results matching given
campaign_statusvalues.filter_campaign_optimize[ Boolean ]
Only return results matching given
campaign_optimizevalues.filter_campaign_optimization_type[ OptimizationType ]
Only return results matching given
campaign_optimization_typevalues.filter_campaign_optimization_supportOnly return results matching given
campaign_optimization_supportvalues.filter_campaign_labels[ String ]
Only return results matching given
campaign_labelsvalues.filter_adspert_portfolio_id[ CompositeID ]
Only return results matching given
adspert_portfolio_idvalues.filter_amz_portfolio_id[ LargeInteger ]
Only return results matching given
amz_portfolio_idvalues.filter_amz_portfolio_name[ String ]
Only return results matching given
amz_portfolio_namevalues.filter_adspert_product_id[ String ]
Only return results matching given
adspert_product_idvalues.filter_amz_asin[ String ]
Only return results matching given
amz_asinvalues.filter_amz_effective_statusOnly return results matching given
amz_effective_statusvalues.filter_amz_sku[ String ]
Only return results matching given
amz_skuvalues.filter_click_through_rate_clicks_geFloat
Only return results where
click_through_rate_clicksis equal or greater than this value.filter_click_through_rate_clicks_leFloat
Only return results where
click_through_rate_clicksis equal or lower than this value.filter_click_through_rate_geFloat
Only return results where
click_through_rateis equal or greater than this value.filter_click_through_rate_leFloat
Only return results where
click_through_rateis equal or lower than this value.filter_clicks[ Integer ]
Only return results matching given
clicksvalues.filter_clicks_geInteger
Only return results where
clicksis equal or greater than this value.filter_clicks_leInteger
Only return results where
clicksis equal or lower than this value.filter_conversion_rate_clicks_geFloat
Only return results where
conversion_rate_clicksis equal or greater than this value.filter_conversion_rate_clicks_leFloat
Only return results where
conversion_rate_clicksis equal or lower than this value.filter_conversion_rate_geFloat
Only return results where
conversion_rateis equal or greater than this value.filter_conversion_rate_leFloat
Only return results where
conversion_rateis equal or lower than this value.filter_conversions_clicks_geFloat
Only return results where
conversions_clicksis equal or greater than this value.filter_conversions_clicks_leFloat
Only return results where
conversions_clicksis equal or lower than this value.filter_conversions_for_revenue_geFloat
Only return results where
conversions_for_revenueis equal or greater than this value.filter_conversions_for_revenue_leFloat
Only return results where
conversions_for_revenueis equal or lower than this value.filter_conversions_geFloat
Only return results where
conversionsis equal or greater than this value.filter_conversions_leFloat
Only return results where
conversionsis equal or lower than this value.filter_cost_for_click_geOnly return results where
cost_for_clickis equal or greater than this value.Min value: 1000
filter_cost_for_click_leOnly return results where
cost_for_clickis equal or lower than this value.Min value: 1000
filter_cost_for_profit_geOnly return results where
cost_for_profitis equal or greater than this value.Min value: 1000
filter_cost_for_profit_leOnly return results where
cost_for_profitis equal or lower than this value.Min value: 1000
filter_cost_for_revenue_geOnly return results where
cost_for_revenueis equal or greater than this value.Min value: 1000
filter_cost_for_revenue_leOnly return results where
cost_for_revenueis equal or lower than this value.Min value: 1000
filter_cost_for_vcpm_geOnly return results where
cost_for_vcpmis equal or greater than this value.Min value: 1000
filter_cost_for_vcpm_leOnly return results where
cost_for_vcpmis equal or lower than this value.Min value: 1000
filter_cost_geOnly return results where
costis equal or greater than this value.Min value: 1000
filter_cost_leOnly return results where
costis equal or lower than this value.Min value: 1000
filter_cost_per_click_geOnly return results where
cost_per_clickis equal or greater than this value.Min value: 1000
filter_cost_per_click_leOnly return results where
cost_per_clickis equal or lower than this value.Min value: 1000
filter_cost_per_conversion_geOnly return results where
cost_per_conversionis equal or greater than this value.Min value: 1000
filter_cost_per_conversion_leOnly return results where
cost_per_conversionis equal or lower than this value.Min value: 1000
filter_cost_per_m_view_impressions_geOnly return results where
cost_per_m_view_impressionsis equal or greater than this value.Min value: 1000
filter_cost_per_m_view_impressions_leOnly return results where
cost_per_m_view_impressionsis equal or lower than this value.Min value: 1000
filter_cost_revenue_ratio_clicks_geFloat
Only return results where
cost_revenue_ratio_clicksis equal or greater than this value.filter_cost_revenue_ratio_clicks_leFloat
Only return results where
cost_revenue_ratio_clicksis equal or lower than this value.filter_cost_revenue_ratio_geFloat
Only return results where
cost_revenue_ratiois equal or greater than this value.filter_cost_revenue_ratio_leFloat
Only return results where
cost_revenue_ratiois equal or lower than this value.filter_eby_listing_id[ String ]
Only return results matching given
eby_listing_idvalues.filter_ggl_offer_id[ String ]
Only return results matching given
ggl_offer_idvalues.filter_impressions[ Integer ]
Only return results matching given
impressionsvalues.filter_impressions_geInteger
Only return results where
impressionsis equal or greater than this value.filter_impressions_leInteger
Only return results where
impressionsis equal or lower than this value.filter_profit_gross_geOnly return results where
profit_grossis equal or greater than this value.Min value: 1000
filter_profit_gross_leOnly return results where
profit_grossis equal or lower than this value.Min value: 1000
filter_profit_net_geOnly return results where
profit_netis equal or greater than this value.Min value: 1000
filter_profit_net_leOnly return results where
profit_netis equal or lower than this value.Min value: 1000
filter_return_on_ad_spend_clicks_geFloat
Only return results where
return_on_ad_spend_clicksis equal or greater than this value.filter_return_on_ad_spend_clicks_leFloat
Only return results where
return_on_ad_spend_clicksis equal or lower than this value.filter_return_on_ad_spend_geFloat
Only return results where
return_on_ad_spendis equal or greater than this value.filter_return_on_ad_spend_leFloat
Only return results where
return_on_ad_spendis equal or lower than this value.filter_return_on_investment_geFloat
Only return results where
return_on_investmentis equal or greater than this value.filter_return_on_investment_leFloat
Only return results where
return_on_investmentis equal or lower than this value.filter_revenue_clicks_geOnly return results where
revenue_clicksis equal or greater than this value.Min value: 1000
filter_revenue_clicks_leOnly return results where
revenue_clicksis equal or lower than this value.Min value: 1000
filter_revenue_geOnly return results where
revenueis equal or greater than this value.Min value: 1000
filter_revenue_leOnly return results where
revenueis equal or lower than this value.Min value: 1000
filter_revenue_per_conversion_geOnly return results where
revenue_per_conversionis equal or greater than this value.Min value: 1000
filter_revenue_per_conversion_leOnly return results where
revenue_per_conversionis equal or lower than this value.Min value: 1000
filter_view_impressions[ Integer ]
Only return results matching given
view_impressionsvalues.filter_view_impressions_geInteger
Only return results where
view_impressionsis equal or greater than this value.filter_view_impressions_leInteger
Only return results where
view_impressionsis equal or lower than this value.search_fieldsFields that should be searched using the
search_term.search_termString
Search term used to search the
search_fields.search_performance_group_idInteger
Only return results where
performance_group_idmatches the given string.search_performance_group_nameString
Only return results where
performance_group_namematches the given string.search_adgroup_idInteger
Only return results where
adgroup_idmatches the given string.search_adgroup_nameString
Only return results where
adgroup_namematches the given string.search_adgroup_labelsString
Only return results where
adgroup_labelsmatches the given string.search_campaign_idInteger
Only return results where
campaign_idmatches the given string.search_campaign_nameString
Only return results where
campaign_namematches the given string.search_campaign_labelsString
Only return results where
campaign_labelsmatches the given string.search_amz_portfolio_idInteger
Only return results where
amz_portfolio_idmatches the given string.search_amz_portfolio_nameString
Only return results where
amz_portfolio_namematches the given string.search_amz_asinString
Only return results where
amz_asinmatches the given string.search_amz_skuString
Only return results where
amz_skumatches the given string.search_eby_listing_idString
Only return results where
eby_listing_idmatches the given string.search_ggl_offer_idString
Only return results where
ggl_offer_idmatches the given string.search_titleString
Only return results where
titlematches the given string.sort_adspert_product_idSort results by
adspert_product_id.sort_amz_asinSort results by
amz_asin.sort_amz_effective_statusSort results by
amz_effective_status.sort_amz_skuSort results by
amz_sku.sort_click_through_rateSort results by
click_through_rate.sort_click_through_rate_clicksSort results by
click_through_rate_clicks.sort_clicksSort results by
clicks.sort_conversion_rateSort results by
conversion_rate.sort_conversion_rate_clicksSort results by
conversion_rate_clicks.sort_conversionsSort results by
conversions.sort_conversions_clicksSort results by
conversions_clicks.sort_conversions_for_revenueSort results by
conversions_for_revenue.sort_costSort results by
cost.sort_cost_for_clickSort results by
cost_for_click.sort_cost_for_profitSort results by
cost_for_profit.sort_cost_for_revenueSort results by
cost_for_revenue.sort_cost_for_vcpmSort results by
cost_for_vcpm.sort_cost_per_clickSort results by
cost_per_click.sort_cost_per_conversionSort results by
cost_per_conversion.sort_cost_per_conversion_clicksSort results by
cost_per_conversion_clicks.sort_cost_per_m_view_impressionsSort results by
cost_per_m_view_impressions.sort_cost_revenue_ratioSort results by
cost_revenue_ratio.sort_cost_revenue_ratio_clicksSort results by
cost_revenue_ratio_clicks.sort_dateSort results by
date.sort_eby_listing_idSort results by
eby_listing_id.sort_ggl_offer_idSort results by
ggl_offer_id.sort_image_urlSort results by
image_url.sort_impressionsSort results by
impressions.sort_impressions_totalSort results by
impressions_total.sort_priceSort results by
price.sort_profit_grossSort results by
profit_gross.sort_profit_netSort results by
profit_net.sort_return_on_ad_spendSort results by
return_on_ad_spend.sort_return_on_ad_spend_clicksSort results by
return_on_ad_spend_clicks.sort_return_on_investmentSort results by
return_on_investment.sort_revenueSort results by
revenue.sort_revenue_clicksSort results by
revenue_clicks.sort_revenue_per_conversionSort results by
revenue_per_conversion.sort_titleSort results by
title.sort_view_impressionsSort results by
view_impressions.offsetInteger
Start index for result list.
Default: 0
Min value: 0
limitInteger
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_byrequiredGrouping/segementation level for the results.
currencyrequiredResponse Data (object list, json or csv or xlsx)
Name
Type
Description
dateNULL when grouped by
adspert_product_id.adspert_product_idString
Adspert’s unique product ID.
NULL when grouped by
date.titlesearchableString
Product title.
NULL when grouped by
date.image_urlString
Product image URL.
NULL when grouped by
date.priceProduct price.
NULL when grouped by
date.amz_effective_statusEffective 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_asinsearchableString
Amazon ASIN.
NULL when grouped by
date.amz_skusearchableString
Amazon SKU.
NULL when grouped by
date.ggl_offer_idsearchableString
Google Offer ID.
NULL when grouped by
date.eby_listing_idsearchableString
eBay listing ID.
NULL when grouped by
date.impressionsInteger
Number of impressions
view_impressionsInteger
Number of viewable impressions
impressions_totalInteger
Number of total impressions, For vcpm, viewable impressions and impressions for all other campaigns.
Should be used internally.
clicksInteger
Number of clicks
conversionsFloat
Number of conversions including view impressions.
Always 0 for click optimized campaigns.
conversions_clicksFloat
Number of conversions from clicks only
Valid only for vCPM campaigns. For non-vCPM campaigns, this is the same as
conversions.costTotal ad spend / cost
revenueRevenue/sales.
Always 0 for click and profit optimized campaigns.
revenue_clicksRevenue/sales from clicks only.
Valid only for vCPM campaigns. For non-vCPM campaigns, this is the same as
revenue.profit_grossGross profit.
Always 0 for click and revenue optimized campaigns.
profit_netNet profit.
profit_gross-cost_for_profitAlways 0 for click and revenue optimized campaigns.
cost_per_clickEffective CPC.
cost/clicksNULL if number of
clicksis 0.cost_per_m_view_impressionsCost per mille viewable impressions. Valid only for vCPM campaigns.
cost/view_impressionsNULL if number of
view_impressionsis 0.cost_per_conversionCost per conversion.
Only cost for profit and revenue optimized campaigns is included.
(
cost-cost_for_click) /conversionsNULL if number of
conversionsis 0.cost_per_conversion_clicksCost 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
conversionsis 0.cost_for_profitAd spend from campaigns that support profit.
Always 0 for campaigns that don’t support profit.
cost_for_clickAd spend / cost from click optimized campaigns.
Always 0 for revenue and profit optimized campaigns.
cost_for_revenueAd spend from campaigns that support revenue.
Always 0 for campaigns that don’t support revenue.
cost_for_vcpmAd spend from vcpm optimized campaigns.
Always 0 for campaigns that aren’t vcpm optimized.
conversion_rateFloat
Conversion rate.
conversions/clicksNULL if number of
clicksis 0.conversion_rate_clicksFloat
Conversion rate from clicks only.
Valid only for vCPM campaigns. For non-vCPM campaigns, this is the same as
conversion_rate.view_conversions/clicksNULL if number of
clicksis 0.conversions_for_revenueFloat
Number of conversions for campaigns that support revenues.
Always 0 for campaigns that don’t support revenue.
revenue_per_conversionRevenue per conversions.
Only revenue and conversions for revenue supporting campaigns are included.
revenue/conversions_for_revenueNULL if campaign doesn’t support revenue.
click_through_rateFloat
Clickthrough rate (CTR).
clicks/impressionsNULL if number of
impressionsis 0.click_through_rate_clicksFloat
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_impressionsNULL if number of
view_impressionsis 0.return_on_investmentFloat
Return on investment (ROI).
Only cost for profit optimized campaigns is included.
profit_gross/cost_for_profitNULL if
cost_for_profitis 0.return_on_ad_spendFloat
Return on ad spend (ROAS).
Only cost for revenue optimized campaigns is included.
revenue/cost_for_revenueNULL if
cost_for_revenueis 0.return_on_ad_spend_clicksFloat
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_revenueNULL if
cost_for_revenueis 0.cost_revenue_ratioFloat
Cost Revenue Ratio (CRR).
Also called Advertising Cost of Sale (ACoS).
Only cost for revenue optimized campaigns is included.
cost_for_revenue/revenueNULL if
revenueis 0.cost_revenue_ratio_clicksFloat
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_clicksNULL if
revenue_clicksis 0.has_vcpmBoolean
Whether the grouped-by entity has any campaigns with vCPM enabled.
Example
http
GET /v3/preview/accounts/3420379091/performance/products?filter_conversions_clicks_ge=15.11&filter_profit_net_le=19990000&filter_cost_per_conversion_le=19990000 HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl
curl -i -X GET 'https://api.adspert.net/v3/preview/accounts/3420379091/performance/products?filter_conversions_clicks_ge=15.11&filter_profit_net_le=19990000&filter_cost_per_conversion_le=19990000' -H "Accept: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
httpie
http 'https://api.adspert.net/v3/preview/accounts/3420379091/performance/products?filter_conversions_clicks_ge=15.11&filter_profit_net_le=19990000&filter_cost_per_conversion_le=19990000' Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
python-requests
requests.get('https://api.adspert.net/v3/preview/accounts/3420379091/performance/products?filter_conversions_clicks_ge=15.11&filter_profit_net_le=19990000&filter_cost_per_conversion_le=19990000', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
response
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": 19990000, "revenue": 19990000, "revenue_clicks": 19990000, "profit_gross": 19990000, "profit_net": 19990000, "cost_per_click": 19990000, "cost_per_m_view_impressions": 19990000, "cost_per_conversion": 19990000, "cost_per_conversion_clicks": 19990000, "cost_for_profit": 19990000, "cost_for_click": 19990000, "cost_for_revenue": 19990000, "cost_for_vcpm": 19990000, "conversion_rate": 0.86, "conversion_rate_clicks": 5.66, "conversions_for_revenue": 4.57, "revenue_per_conversion": 19990000, "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
includeFields to include in response data.
excludeFields to exclude in response data.
filter_date_gerequiredOnly return results where
dateis on or after this date.filter_date_lerequiredOnly return results where
dateis on or before this date.filter_adspert_campaign_id[ CompositeID ]
Only return results matching given
adspert_campaign_idvalues.filter_adspert_portfolio_id[ CompositeID ]
Only return results matching given
adspert_portfolio_idvalues.filter_amz_effective_statusOnly return results matching given
amz_effective_statusvalues.filter_amz_portfolio_id[ LargeInteger ]
Only return results matching given
amz_portfolio_idvalues.filter_amz_portfolio_name[ String ]
Only return results matching given
amz_portfolio_namevalues.filter_campaign_eby_marketplace_id[ String ]
Only return results matching given
campaign_eby_marketplace_idvalues.filter_campaign_id[ LargeInteger ]
Only return results matching given
campaign_idvalues.filter_campaign_labels[ String ]
Only return results matching given
campaign_labelsvalues.filter_campaign_name[ String ]
Only return results matching given
campaign_namevalues.filter_campaign_optimization_supportOnly return results matching given
campaign_optimization_supportvalues.filter_campaign_optimization_type[ OptimizationType ]
Only return results matching given
campaign_optimization_typevalues.filter_campaign_optimize[ Boolean ]
Only return results matching given
campaign_optimizevalues.filter_campaign_status[ CampaignStatus ]
Only return results matching given
campaign_statusvalues.filter_campaign_type[ CampaignType ]
Only return results matching given
campaign_typevalues.filter_click_through_rate_clicks_geFloat
Only return results where
click_through_rate_clicksis equal or greater than this value.filter_click_through_rate_clicks_leFloat
Only return results where
click_through_rate_clicksis equal or lower than this value.filter_click_through_rate_geFloat
Only return results where
click_through_rateis equal or greater than this value.filter_click_through_rate_leFloat
Only return results where
click_through_rateis equal or lower than this value.filter_clicks[ Integer ]
Only return results matching given
clicksvalues.filter_clicks_geInteger
Only return results where
clicksis equal or greater than this value.filter_clicks_leInteger
Only return results where
clicksis equal or lower than this value.filter_conversion_rate_clicks_geFloat
Only return results where
conversion_rate_clicksis equal or greater than this value.filter_conversion_rate_clicks_leFloat
Only return results where
conversion_rate_clicksis equal or lower than this value.filter_conversion_rate_geFloat
Only return results where
conversion_rateis equal or greater than this value.filter_conversion_rate_leFloat
Only return results where
conversion_rateis equal or lower than this value.filter_conversions_clicks_geFloat
Only return results where
conversions_clicksis equal or greater than this value.filter_conversions_clicks_leFloat
Only return results where
conversions_clicksis equal or lower than this value.filter_conversions_for_revenue_geFloat
Only return results where
conversions_for_revenueis equal or greater than this value.filter_conversions_for_revenue_leFloat
Only return results where
conversions_for_revenueis equal or lower than this value.filter_conversions_geFloat
Only return results where
conversionsis equal or greater than this value.filter_conversions_leFloat
Only return results where
conversionsis equal or lower than this value.filter_cost_for_click_geOnly return results where
cost_for_clickis equal or greater than this value.Min value: 1000
filter_cost_for_click_leOnly return results where
cost_for_clickis equal or lower than this value.Min value: 1000
filter_cost_for_profit_geOnly return results where
cost_for_profitis equal or greater than this value.Min value: 1000
filter_cost_for_profit_leOnly return results where
cost_for_profitis equal or lower than this value.Min value: 1000
filter_cost_for_revenue_geOnly return results where
cost_for_revenueis equal or greater than this value.Min value: 1000
filter_cost_for_revenue_leOnly return results where
cost_for_revenueis equal or lower than this value.Min value: 1000
filter_cost_for_vcpm_geOnly return results where
cost_for_vcpmis equal or greater than this value.Min value: 1000
filter_cost_for_vcpm_leOnly return results where
cost_for_vcpmis equal or lower than this value.Min value: 1000
filter_cost_geOnly return results where
costis equal or greater than this value.Min value: 1000
filter_cost_leOnly return results where
costis equal or lower than this value.Min value: 1000
filter_cost_per_click_geOnly return results where
cost_per_clickis equal or greater than this value.Min value: 1000
filter_cost_per_click_leOnly return results where
cost_per_clickis equal or lower than this value.Min value: 1000
filter_cost_per_conversion_geOnly return results where
cost_per_conversionis equal or greater than this value.Min value: 1000
filter_cost_per_conversion_leOnly return results where
cost_per_conversionis equal or lower than this value.Min value: 1000
filter_cost_per_m_view_impressions_geOnly return results where
cost_per_m_view_impressionsis equal or greater than this value.Min value: 1000
filter_cost_per_m_view_impressions_leOnly return results where
cost_per_m_view_impressionsis equal or lower than this value.Min value: 1000
filter_cost_revenue_ratio_clicks_geFloat
Only return results where
cost_revenue_ratio_clicksis equal or greater than this value.filter_cost_revenue_ratio_clicks_leFloat
Only return results where
cost_revenue_ratio_clicksis equal or lower than this value.filter_cost_revenue_ratio_geFloat
Only return results where
cost_revenue_ratiois equal or greater than this value.filter_cost_revenue_ratio_leFloat
Only return results where
cost_revenue_ratiois equal or lower than this value.filter_impressions[ Integer ]
Only return results matching given
impressionsvalues.filter_impressions_geInteger
Only return results where
impressionsis equal or greater than this value.filter_impressions_leInteger
Only return results where
impressionsis equal or lower than this value.filter_performance_group_enabled[ Boolean ]
Only return results matching given
performance_group_enabledvalues.filter_performance_group_goal_typesOnly return results matching given
performance_group_goal_typesvalues.filter_performance_group_id[ Integer ]
Only return results matching given
performance_group_idvalues.filter_performance_group_name[ String ]
Only return results matching given
performance_group_namevalues.filter_performance_group_optimization_type[ OptimizationType ]
Only return results matching given
performance_group_optimization_typevalues.filter_profit_gross_geOnly return results where
profit_grossis equal or greater than this value.Min value: 1000
filter_profit_gross_leOnly return results where
profit_grossis equal or lower than this value.Min value: 1000
filter_profit_net_geOnly return results where
profit_netis equal or greater than this value.Min value: 1000
filter_profit_net_leOnly return results where
profit_netis equal or lower than this value.Min value: 1000
filter_return_on_ad_spend_clicks_geFloat
Only return results where
return_on_ad_spend_clicksis equal or greater than this value.filter_return_on_ad_spend_clicks_leFloat
Only return results where
return_on_ad_spend_clicksis equal or lower than this value.filter_return_on_ad_spend_geFloat
Only return results where
return_on_ad_spendis equal or greater than this value.filter_return_on_ad_spend_leFloat
Only return results where
return_on_ad_spendis equal or lower than this value.filter_return_on_investment_geFloat
Only return results where
return_on_investmentis equal or greater than this value.filter_return_on_investment_leFloat
Only return results where
return_on_investmentis equal or lower than this value.filter_revenue_clicks_geOnly return results where
revenue_clicksis equal or greater than this value.Min value: 1000
filter_revenue_clicks_leOnly return results where
revenue_clicksis equal or lower than this value.Min value: 1000
filter_revenue_geOnly return results where
revenueis equal or greater than this value.Min value: 1000
filter_revenue_leOnly return results where
revenueis equal or lower than this value.Min value: 1000
filter_revenue_per_conversion_geOnly return results where
revenue_per_conversionis equal or greater than this value.Min value: 1000
filter_revenue_per_conversion_leOnly return results where
revenue_per_conversionis equal or lower than this value.Min value: 1000
filter_view_impressions[ Integer ]
Only return results matching given
view_impressionsvalues.filter_view_impressions_geInteger
Only return results where
view_impressionsis equal or greater than this value.filter_view_impressions_leInteger
Only return results where
view_impressionsis equal or lower than this value.search_fieldsFields that should be searched using the
search_term.search_termString
Search term used to search the
search_fields.search_amz_portfolio_idString
Only return results where
amz_portfolio_idmatches the given string.search_amz_portfolio_nameString
Only return results where
amz_portfolio_namematches the given string.search_campaign_idString
Only return results where
campaign_idmatches the given string.search_campaign_labelsString
Only return results where
campaign_labelsmatches the given string.search_campaign_nameString
Only return results where
campaign_namematches the given string.search_performance_group_idString
Only return results where
performance_group_idmatches the given string.search_performance_group_nameString
Only return results where
performance_group_namematches the given string.sort_adspert_campaign_idSort results by
adspert_campaign_id.sort_adspert_portfolio_idSort results by
adspert_portfolio_id.sort_amz_effective_statusSort results by
amz_effective_status.sort_amz_portfolio_idSort results by
amz_portfolio_id.sort_amz_portfolio_nameSort results by
amz_portfolio_name.sort_amz_targeting_typeSort results by
amz_targeting_type.sort_campaign_eby_marketplace_idSort results by
campaign_eby_marketplace_id.sort_campaign_idSort results by
campaign_id.sort_campaign_nameSort results by
campaign_name.sort_campaign_optimization_supportSort results by
campaign_optimization_support.sort_campaign_optimization_typeSort results by
campaign_optimization_type.sort_campaign_optimizeSort results by
campaign_optimize.sort_campaign_statusSort results by
campaign_status.sort_campaign_typeSort results by
campaign_type.sort_click_through_rateSort results by
click_through_rate.sort_click_through_rate_clicksSort results by
click_through_rate_clicks.sort_clicksSort results by
clicks.sort_conversion_rateSort results by
conversion_rate.sort_conversion_rate_clicksSort results by
conversion_rate_clicks.sort_conversionsSort results by
conversions.sort_conversions_clicksSort results by
conversions_clicks.sort_conversions_for_revenueSort results by
conversions_for_revenue.sort_costSort results by
cost.sort_cost_for_clickSort results by
cost_for_click.sort_cost_for_profitSort results by
cost_for_profit.sort_cost_for_revenueSort results by
cost_for_revenue.sort_cost_for_vcpmSort results by
cost_for_vcpm.sort_cost_per_clickSort results by
cost_per_click.sort_cost_per_conversionSort results by
cost_per_conversion.sort_cost_per_conversion_clicksSort results by
cost_per_conversion_clicks.sort_cost_per_m_view_impressionsSort results by
cost_per_m_view_impressions.sort_cost_revenue_ratioSort results by
cost_revenue_ratio.sort_cost_revenue_ratio_clicksSort results by
cost_revenue_ratio_clicks.sort_dateSort results by
date.sort_impressionsSort results by
impressions.sort_impressions_totalSort results by
impressions_total.sort_performance_group_enabledSort results by
performance_group_enabled.sort_performance_group_goal_typesSort results by
performance_group_goal_types.sort_performance_group_idSort results by
performance_group_id.sort_performance_group_nameSort results by
performance_group_name.sort_performance_group_optimization_typeSort results by
performance_group_optimization_type.sort_priceSort results by
price.sort_profit_grossSort results by
profit_gross.sort_profit_netSort results by
profit_net.sort_return_on_ad_spendSort results by
return_on_ad_spend.sort_return_on_ad_spend_clicksSort results by
return_on_ad_spend_clicks.sort_return_on_investmentSort results by
return_on_investment.sort_revenueSort results by
revenue.sort_revenue_clicksSort results by
revenue_clicks.sort_revenue_per_conversionSort results by
revenue_per_conversion.sort_view_impressionsSort results by
view_impressions.offsetInteger
Start index for result list.
Default: 0
Min value: 0
limitInteger
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_byrequiredGrouping/segmentation level for the results.
currencyrequiredResponse Data (object list, json or csv or xlsx)
Name
Type
Description
dateNULL when grouped by
campaign_id.amz_effective_statusEffective status of Amazon product.
NULL when grouped by
date.amz_targeting_typeAmazon campaign targeting type.
NULL when grouped by
date.performance_group_idsearchableInteger
Unique ID of the performance group
NULL when grouped by
date.performance_group_namesearchableString
Unique name of the performance group.
NULL when grouped by
date.performance_group_enabledBoolean
NULL when grouped by
date.performance_group_optimization_typeOptimization 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_typesList of performance group goal types
NULL when grouped by
date.pricePrice of the product.
Current price When grouped by
campaign_id. Historical prices when grouped bydate.adspert_campaign_idAdspert internal ID of the campaign.
NULL when grouped by
date.Composite ID specification:
{adspert_account_id}:{campaign_id}campaign_idsearchableNULL when grouped by
date.campaign_namesearchableString
NULL when grouped by
date.campaign_typeNULL when grouped by
date.campaign_eby_marketplace_idString
NULL when grouped by
date.campaign_statusNULL when grouped by
date.campaign_optimizeBoolean
NULL when grouped by
date.campaign_optimization_typeNULL when grouped by
date.campaign_optimization_supportNULL when grouped by
date.campaign_labelssearchable[ String ]
NULL when grouped by
date.adspert_portfolio_idAdspert internal ID of Amazon portfolio.
NULL when grouped by
date.Composite ID specification:
{adspert_account_id}:{portfolio_id}amz_portfolio_idsearchableNULL when grouped by
date.amz_portfolio_namesearchableString
NULL when grouped by
date.impressionsInteger
Number of impressions
view_impressionsInteger
Number of viewable impressions
impressions_totalInteger
Number of total impressions, For vcpm, viewable impressions and impressions for all other campaigns.
Should be used internally.
clicksInteger
Number of clicks
conversionsFloat
Number of conversions including view impressions.
Always 0 for click optimized campaigns.
conversions_clicksFloat
Number of conversions from clicks only
Valid only for vCPM campaigns. For non-vCPM campaigns, this is the same as
conversions.costTotal ad spend / cost
revenueRevenue/sales.
Always 0 for click and profit optimized campaigns.
revenue_clicksRevenue/sales from clicks only.
Valid only for vCPM campaigns. For non-vCPM campaigns, this is the same as
revenue.profit_grossGross profit.
Always 0 for click and revenue optimized campaigns.
profit_netNet profit.
profit_gross-cost_for_profitAlways 0 for click and revenue optimized campaigns.
cost_per_clickEffective CPC.
cost/clicksNULL if number of
clicksis 0.cost_per_m_view_impressionsCost per mille viewable impressions. Valid only for vCPM campaigns.
cost/view_impressionsNULL if number of
view_impressionsis 0.cost_per_conversionCost per conversion.
Only cost for profit and revenue optimized campaigns is included.
(
cost-cost_for_click) /conversionsNULL if number of
conversionsis 0.cost_per_conversion_clicksCost 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
conversionsis 0.cost_for_profitAd spend from campaigns that support profit.
Always 0 for campaigns that don’t support profit.
cost_for_clickAd spend / cost from click optimized campaigns.
Always 0 for revenue and profit optimized campaigns.
cost_for_revenueAd spend from campaigns that support revenue.
Always 0 for campaigns that don’t support revenue.
cost_for_vcpmAd spend from vcpm optimized campaigns.
Always 0 for campaigns that aren’t vcpm optimized.
conversion_rateFloat
Conversion rate.
conversions/clicksNULL if number of
clicksis 0.conversion_rate_clicksFloat
Conversion rate from clicks only.
Valid only for vCPM campaigns. For non-vCPM campaigns, this is the same as
conversion_rate.view_conversions/clicksNULL if number of
clicksis 0.conversions_for_revenueFloat
Number of conversions for campaigns that support revenues.
Always 0 for campaigns that don’t support revenue.
revenue_per_conversionRevenue per conversions.
Only revenue and conversions for revenue supporting campaigns are included.
revenue/conversions_for_revenueNULL if campaign doesn’t support revenue.
click_through_rateFloat
Clickthrough rate (CTR).
clicks/impressionsNULL if number of
impressionsis 0.click_through_rate_clicksFloat
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_impressionsNULL if number of
view_impressionsis 0.return_on_investmentFloat
Return on investment (ROI).
Only cost for profit optimized campaigns is included.
profit_gross/cost_for_profitNULL if
cost_for_profitis 0.return_on_ad_spendFloat
Return on ad spend (ROAS).
Only cost for revenue optimized campaigns is included.
revenue/cost_for_revenueNULL if
cost_for_revenueis 0.return_on_ad_spend_clicksFloat
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_revenueNULL if
cost_for_revenueis 0.cost_revenue_ratioFloat
Cost Revenue Ratio (CRR).
Also called Advertising Cost of Sale (ACoS).
Only cost for revenue optimized campaigns is included.
cost_for_revenue/revenueNULL if
revenueis 0.cost_revenue_ratio_clicksFloat
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_clicksNULL if
revenue_clicksis 0.has_vcpmBoolean
Whether the grouped-by entity has any campaigns with vCPM enabled.
Example
http
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
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..."
httpie
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..."
python-requests
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...'})
response
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": 19990000, "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": 19990000, "revenue": 19990000, "revenue_clicks": 19990000, "profit_gross": 19990000, "profit_net": 19990000, "cost_per_click": 19990000, "cost_per_m_view_impressions": 19990000, "cost_per_conversion": 19990000, "cost_per_conversion_clicks": 19990000, "cost_for_profit": 19990000, "cost_for_click": 19990000, "cost_for_revenue": 19990000, "cost_for_vcpm": 19990000, "conversion_rate": 0.86, "conversion_rate_clicks": 5.66, "conversions_for_revenue": 4.57, "revenue_per_conversion": 19990000, "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
includeFields to include in response data.
excludeFields to exclude in response data.
filter_date_gerequiredOnly return results where
dateis on or after this date.filter_date_lerequiredOnly return results where
dateis on or before this date.filter_adgroup_id[ LargeInteger ]
Only return results matching given
adgroup_idvalues.filter_adgroup_labels[ String ]
Only return results matching given
adgroup_labelsvalues.filter_adgroup_name[ String ]
Only return results matching given
adgroup_namevalues.filter_adgroup_status[ AdgroupStatus ]
Only return results matching given
adgroup_statusvalues.filter_adspert_adgroup_id[ CompositeID ]
Only return results matching given
adspert_adgroup_idvalues.filter_adspert_campaign_id[ CompositeID ]
Only return results matching given
adspert_campaign_idvalues.filter_adspert_portfolio_id[ CompositeID ]
Only return results matching given
adspert_portfolio_idvalues.filter_amz_effective_statusOnly return results matching given
amz_effective_statusvalues.filter_amz_portfolio_id[ LargeInteger ]
Only return results matching given
amz_portfolio_idvalues.filter_amz_portfolio_name[ String ]
Only return results matching given
amz_portfolio_namevalues.filter_campaign_eby_marketplace_id[ String ]
Only return results matching given
campaign_eby_marketplace_idvalues.filter_campaign_id[ LargeInteger ]
Only return results matching given
campaign_idvalues.filter_campaign_labels[ String ]
Only return results matching given
campaign_labelsvalues.filter_campaign_name[ String ]
Only return results matching given
campaign_namevalues.filter_campaign_optimization_supportOnly return results matching given
campaign_optimization_supportvalues.filter_campaign_optimization_type[ OptimizationType ]
Only return results matching given
campaign_optimization_typevalues.filter_campaign_optimize[ Boolean ]
Only return results matching given
campaign_optimizevalues.filter_campaign_status[ CampaignStatus ]
Only return results matching given
campaign_statusvalues.filter_campaign_type[ CampaignType ]
Only return results matching given
campaign_typevalues.filter_click_through_rate_clicks_geFloat
Only return results where
click_through_rate_clicksis equal or greater than this value.filter_click_through_rate_clicks_leFloat
Only return results where
click_through_rate_clicksis equal or lower than this value.filter_click_through_rate_geFloat
Only return results where
click_through_rateis equal or greater than this value.filter_click_through_rate_leFloat
Only return results where
click_through_rateis equal or lower than this value.filter_clicks[ Integer ]
Only return results matching given
clicksvalues.filter_clicks_geInteger
Only return results where
clicksis equal or greater than this value.filter_clicks_leInteger
Only return results where
clicksis equal or lower than this value.filter_conversion_rate_clicks_geFloat
Only return results where
conversion_rate_clicksis equal or greater than this value.filter_conversion_rate_clicks_leFloat
Only return results where
conversion_rate_clicksis equal or lower than this value.filter_conversion_rate_geFloat
Only return results where
conversion_rateis equal or greater than this value.filter_conversion_rate_leFloat
Only return results where
conversion_rateis equal or lower than this value.filter_conversions_clicks_geFloat
Only return results where
conversions_clicksis equal or greater than this value.filter_conversions_clicks_leFloat
Only return results where
conversions_clicksis equal or lower than this value.filter_conversions_for_revenue_geFloat
Only return results where
conversions_for_revenueis equal or greater than this value.filter_conversions_for_revenue_leFloat
Only return results where
conversions_for_revenueis equal or lower than this value.filter_conversions_geFloat
Only return results where
conversionsis equal or greater than this value.filter_conversions_leFloat
Only return results where
conversionsis equal or lower than this value.filter_cost_for_click_geOnly return results where
cost_for_clickis equal or greater than this value.Min value: 1000
filter_cost_for_click_leOnly return results where
cost_for_clickis equal or lower than this value.Min value: 1000
filter_cost_for_profit_geOnly return results where
cost_for_profitis equal or greater than this value.Min value: 1000
filter_cost_for_profit_leOnly return results where
cost_for_profitis equal or lower than this value.Min value: 1000
filter_cost_for_revenue_geOnly return results where
cost_for_revenueis equal or greater than this value.Min value: 1000
filter_cost_for_revenue_leOnly return results where
cost_for_revenueis equal or lower than this value.Min value: 1000
filter_cost_for_vcpm_geOnly return results where
cost_for_vcpmis equal or greater than this value.Min value: 1000
filter_cost_for_vcpm_leOnly return results where
cost_for_vcpmis equal or lower than this value.Min value: 1000
filter_cost_geOnly return results where
costis equal or greater than this value.Min value: 1000
filter_cost_leOnly return results where
costis equal or lower than this value.Min value: 1000
filter_cost_per_click_geOnly return results where
cost_per_clickis equal or greater than this value.Min value: 1000
filter_cost_per_click_leOnly return results where
cost_per_clickis equal or lower than this value.Min value: 1000
filter_cost_per_conversion_geOnly return results where
cost_per_conversionis equal or greater than this value.Min value: 1000
filter_cost_per_conversion_leOnly return results where
cost_per_conversionis equal or lower than this value.Min value: 1000
filter_cost_per_m_view_impressions_geOnly return results where
cost_per_m_view_impressionsis equal or greater than this value.Min value: 1000
filter_cost_per_m_view_impressions_leOnly return results where
cost_per_m_view_impressionsis equal or lower than this value.Min value: 1000
filter_cost_revenue_ratio_clicks_geFloat
Only return results where
cost_revenue_ratio_clicksis equal or greater than this value.filter_cost_revenue_ratio_clicks_leFloat
Only return results where
cost_revenue_ratio_clicksis equal or lower than this value.filter_cost_revenue_ratio_geFloat
Only return results where
cost_revenue_ratiois equal or greater than this value.filter_cost_revenue_ratio_leFloat
Only return results where
cost_revenue_ratiois equal or lower than this value.filter_impressions[ Integer ]
Only return results matching given
impressionsvalues.filter_impressions_geInteger
Only return results where
impressionsis equal or greater than this value.filter_impressions_leInteger
Only return results where
impressionsis equal or lower than this value.filter_performance_group_enabled[ Boolean ]
Only return results matching given
performance_group_enabledvalues.filter_performance_group_goal_typesOnly return results matching given
performance_group_goal_typesvalues.filter_performance_group_id[ Integer ]
Only return results matching given
performance_group_idvalues.filter_performance_group_name[ String ]
Only return results matching given
performance_group_namevalues.filter_performance_group_optimization_type[ OptimizationType ]
Only return results matching given
performance_group_optimization_typevalues.filter_profit_gross_geOnly return results where
profit_grossis equal or greater than this value.Min value: 1000
filter_profit_gross_leOnly return results where
profit_grossis equal or lower than this value.Min value: 1000
filter_profit_net_geOnly return results where
profit_netis equal or greater than this value.Min value: 1000
filter_profit_net_leOnly return results where
profit_netis equal or lower than this value.Min value: 1000
filter_return_on_ad_spend_clicks_geFloat
Only return results where
return_on_ad_spend_clicksis equal or greater than this value.filter_return_on_ad_spend_clicks_leFloat
Only return results where
return_on_ad_spend_clicksis equal or lower than this value.filter_return_on_ad_spend_geFloat
Only return results where
return_on_ad_spendis equal or greater than this value.filter_return_on_ad_spend_leFloat
Only return results where
return_on_ad_spendis equal or lower than this value.filter_return_on_investment_geFloat
Only return results where
return_on_investmentis equal or greater than this value.filter_return_on_investment_leFloat
Only return results where
return_on_investmentis equal or lower than this value.filter_revenue_clicks_geOnly return results where
revenue_clicksis equal or greater than this value.Min value: 1000
filter_revenue_clicks_leOnly return results where
revenue_clicksis equal or lower than this value.Min value: 1000
filter_revenue_geOnly return results where
revenueis equal or greater than this value.Min value: 1000
filter_revenue_leOnly return results where
revenueis equal or lower than this value.Min value: 1000
filter_revenue_per_conversion_geOnly return results where
revenue_per_conversionis equal or greater than this value.Min value: 1000
filter_revenue_per_conversion_leOnly return results where
revenue_per_conversionis equal or lower than this value.Min value: 1000
filter_view_impressions[ Integer ]
Only return results matching given
view_impressionsvalues.filter_view_impressions_geInteger
Only return results where
view_impressionsis equal or greater than this value.filter_view_impressions_leInteger
Only return results where
view_impressionsis equal or lower than this value.search_fieldsFields that should be searched using the
search_term.search_termString
Search term used to search the
search_fields.search_adgroup_idString
Only return results where
adgroup_idmatches the given string.search_adgroup_labelsString
Only return results where
adgroup_labelsmatches the given string.search_adgroup_nameString
Only return results where
adgroup_namematches the given string.search_amz_portfolio_idString
Only return results where
amz_portfolio_idmatches the given string.search_amz_portfolio_nameString
Only return results where
amz_portfolio_namematches the given string.search_campaign_idString
Only return results where
campaign_idmatches the given string.search_campaign_labelsString
Only return results where
campaign_labelsmatches the given string.search_campaign_nameString
Only return results where
campaign_namematches the given string.search_performance_group_idString
Only return results where
performance_group_idmatches the given string.search_performance_group_nameString
Only return results where
performance_group_namematches the given string.sort_adgroup_idSort results by
adgroup_id.sort_adgroup_nameSort results by
adgroup_name.sort_adgroup_statusSort results by
adgroup_status.sort_adspert_adgroup_idSort results by
adspert_adgroup_id.sort_adspert_campaign_idSort results by
adspert_campaign_id.sort_adspert_portfolio_idSort results by
adspert_portfolio_id.sort_amz_adgroup_typeSort results by
amz_adgroup_type.sort_amz_effective_statusSort results by
amz_effective_status.sort_amz_portfolio_idSort results by
amz_portfolio_id.sort_amz_portfolio_nameSort results by
amz_portfolio_name.sort_campaign_eby_marketplace_idSort results by
campaign_eby_marketplace_id.sort_campaign_idSort results by
campaign_id.sort_campaign_nameSort results by
campaign_name.sort_campaign_optimization_supportSort results by
campaign_optimization_support.sort_campaign_optimization_typeSort results by
campaign_optimization_type.sort_campaign_optimizeSort results by
campaign_optimize.sort_campaign_statusSort results by
campaign_status.sort_campaign_typeSort results by
campaign_type.sort_click_through_rateSort results by
click_through_rate.sort_click_through_rate_clicksSort results by
click_through_rate_clicks.sort_clicksSort results by
clicks.sort_conversion_rateSort results by
conversion_rate.sort_conversion_rate_clicksSort results by
conversion_rate_clicks.sort_conversionsSort results by
conversions.sort_conversions_clicksSort results by
conversions_clicks.sort_conversions_for_revenueSort results by
conversions_for_revenue.sort_costSort results by
cost.sort_cost_for_clickSort results by
cost_for_click.sort_cost_for_profitSort results by
cost_for_profit.sort_cost_for_revenueSort results by
cost_for_revenue.sort_cost_for_vcpmSort results by
cost_for_vcpm.sort_cost_per_clickSort results by
cost_per_click.sort_cost_per_conversionSort results by
cost_per_conversion.sort_cost_per_conversion_clicksSort results by
cost_per_conversion_clicks.sort_cost_per_m_view_impressionsSort results by
cost_per_m_view_impressions.sort_cost_revenue_ratioSort results by
cost_revenue_ratio.sort_cost_revenue_ratio_clicksSort results by
cost_revenue_ratio_clicks.sort_dateSort results by
date.sort_impressionsSort results by
impressions.sort_impressions_totalSort results by
impressions_total.sort_performance_group_enabledSort results by
performance_group_enabled.sort_performance_group_goal_typesSort results by
performance_group_goal_types.sort_performance_group_idSort results by
performance_group_id.sort_performance_group_nameSort results by
performance_group_name.sort_performance_group_optimization_typeSort results by
performance_group_optimization_type.sort_priceSort results by
price.sort_profit_grossSort results by
profit_gross.sort_profit_netSort results by
profit_net.sort_return_on_ad_spendSort results by
return_on_ad_spend.sort_return_on_ad_spend_clicksSort results by
return_on_ad_spend_clicks.sort_return_on_investmentSort results by
return_on_investment.sort_revenueSort results by
revenue.sort_revenue_clicksSort results by
revenue_clicks.sort_revenue_per_conversionSort results by
revenue_per_conversion.sort_view_impressionsSort results by
view_impressions.offsetInteger
Start index for result list.
Default: 0
Min value: 0
limitInteger
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_byrequiredGrouping/segementation level for the results.
currencyrequiredResponse Data (object list, json or csv or xlsx)
Name
Type
Description
dateNULL when grouped by
adgroup_id.amz_effective_statusEffective status of Amazon product.
NULL when grouped by
date.amz_adgroup_typeAmazon Ad Group type.
NULL when grouped by
date.performance_group_idsearchableInteger
Unique ID of the performance group
NULL when grouped by
date.performance_group_namesearchableString
Unique name of the performance group.
NULL when grouped by
date.performance_group_enabledBoolean
NULL when grouped by
date.performance_group_optimization_typeOptimization 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_typesList of performance group goal types
NULL when grouped by
date.adspert_campaign_idAdspert internal ID of the campaign.
NULL when grouped by
date.Composite ID specification:
{adspert_account_id}:{campaign_id}campaign_idsearchableNULL when grouped by
date.campaign_namesearchableString
NULL when grouped by
date.campaign_typeNULL when grouped by
date.pricePrice of the product.
Current price When grouped by
adgroup_id. Historical prices when grouped bydate.campaign_eby_marketplace_idString
NULL when grouped by
date.campaign_statusNULL when grouped by
date.campaign_optimizeBoolean
NULL when grouped by
date.campaign_optimization_typeNULL when grouped by
date.campaign_optimization_supportNULL when grouped by
date.campaign_labelssearchable[ String ]
NULL when grouped by
date.adspert_adgroup_idAdspert internal ID of the adgroup.
NULL when grouped by
date.Composite ID specification:
{adspert_account_id}:{adgroup_id}adgroup_idsearchableNULL when grouped by
date.adgroup_namesearchableString
NULL when grouped by
date.adgroup_statusNULL when grouped by
date.adgroup_labelssearchable[ String ]
NULL when grouped by
date.adspert_portfolio_idAdspert internal ID of Amazon portfolio.
NULL when grouped by
date.Composite ID specification:
{adspert_account_id}:{portfolio_id}amz_portfolio_idsearchableNULL when grouped by
date.amz_portfolio_namesearchableString
NULL when grouped by
date.impressionsInteger
Number of impressions
view_impressionsInteger
Number of viewable impressions
impressions_totalInteger
Number of total impressions, For vcpm, viewable impressions and impressions for all other campaigns.
Should be used internally.
clicksInteger
Number of clicks
conversionsFloat
Number of conversions including view impressions.
Always 0 for click optimized campaigns.
conversions_clicksFloat
Number of conversions from clicks only
Valid only for vCPM campaigns. For non-vCPM campaigns, this is the same as
conversions.costTotal ad spend / cost
revenueRevenue/sales.
Always 0 for click and profit optimized campaigns.
revenue_clicksRevenue/sales from clicks only.
Valid only for vCPM campaigns. For non-vCPM campaigns, this is the same as
revenue.profit_grossGross profit.
Always 0 for click and revenue optimized campaigns.
profit_netNet profit.
profit_gross-cost_for_profitAlways 0 for click and revenue optimized campaigns.
cost_per_clickEffective CPC.
cost/clicksNULL if number of
clicksis 0.cost_per_m_view_impressionsCost per mille viewable impressions. Valid only for vCPM campaigns.
cost/view_impressionsNULL if number of
view_impressionsis 0.cost_per_conversionCost per conversion.
Only cost for profit and revenue optimized campaigns is included.
(
cost-cost_for_click) /conversionsNULL if number of
conversionsis 0.cost_per_conversion_clicksCost 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
conversionsis 0.cost_for_profitAd spend from campaigns that support profit.
Always 0 for campaigns that don’t support profit.
cost_for_clickAd spend / cost from click optimized campaigns.
Always 0 for revenue and profit optimized campaigns.
cost_for_revenueAd spend from campaigns that support revenue.
Always 0 for campaigns that don’t support revenue.
cost_for_vcpmAd spend from vcpm optimized campaigns.
Always 0 for campaigns that aren’t vcpm optimized.
conversion_rateFloat
Conversion rate.
conversions/clicksNULL if number of
clicksis 0.conversion_rate_clicksFloat
Conversion rate from clicks only.
Valid only for vCPM campaigns. For non-vCPM campaigns, this is the same as
conversion_rate.view_conversions/clicksNULL if number of
clicksis 0.conversions_for_revenueFloat
Number of conversions for campaigns that support revenues.
Always 0 for campaigns that don’t support revenue.
revenue_per_conversionRevenue per conversions.
Only revenue and conversions for revenue supporting campaigns are included.
revenue/conversions_for_revenueNULL if campaign doesn’t support revenue.
click_through_rateFloat
Clickthrough rate (CTR).
clicks/impressionsNULL if number of
impressionsis 0.click_through_rate_clicksFloat
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_impressionsNULL if number of
view_impressionsis 0.return_on_investmentFloat
Return on investment (ROI).
Only cost for profit optimized campaigns is included.
profit_gross/cost_for_profitNULL if
cost_for_profitis 0.return_on_ad_spendFloat
Return on ad spend (ROAS).
Only cost for revenue optimized campaigns is included.
revenue/cost_for_revenueNULL if
cost_for_revenueis 0.return_on_ad_spend_clicksFloat
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_revenueNULL if
cost_for_revenueis 0.cost_revenue_ratioFloat
Cost Revenue Ratio (CRR).
Also called Advertising Cost of Sale (ACoS).
Only cost for revenue optimized campaigns is included.
cost_for_revenue/revenueNULL if
revenueis 0.cost_revenue_ratio_clicksFloat
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_clicksNULL if
revenue_clicksis 0.has_vcpmBoolean
Whether the grouped-by entity has any campaigns with vCPM enabled.
Example
http
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
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..."
httpie
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..."
python-requests
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...'})
response
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": 19990000, "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": 19990000, "revenue": 19990000, "revenue_clicks": 19990000, "profit_gross": 19990000, "profit_net": 19990000, "cost_per_click": 19990000, "cost_per_m_view_impressions": 19990000, "cost_per_conversion": 19990000, "cost_per_conversion_clicks": 19990000, "cost_for_profit": 19990000, "cost_for_click": 19990000, "cost_for_revenue": 19990000, "cost_for_vcpm": 19990000, "conversion_rate": 0.86, "conversion_rate_clicks": 5.66, "conversions_for_revenue": 4.57, "revenue_per_conversion": 19990000, "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
includeFields to include in response data.
excludeFields to exclude in response data.
search_fieldsFields that should be searched using the
search_term.search_termString
Search term used to search the
search_fields.sort_criterion_nameSort results by
criterion_name.sort_criterion_typeSort results by
criterion_type.sort_match_typeSort results by
match_type.sort_share_of_conversionsSort results by
share_of_conversions.offsetInteger
Start index for result list.
Default: 0
Min value: 0
limitInteger
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_nameString
Criterion name.
criterion_typeCriterion type.
match_typeKeyword match type.
NULL if criterion is not a keyword.
share_of_conversionsFloat
Ratio of conversions this criterion has generated, to total number of conversions generated by all non-automatic criteria for this product.
Example
http
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
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..."
httpie
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..."
python-requests
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...'})
response
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
includeFields to include in response data.
excludeFields to exclude in response data.
offsetInteger
Start index for result list.
Default: 0
Min value: 0
limitInteger
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_idInteger
Performance group to create scenarios for.
If
performance_group_idis defined, we will generate the scenarios for the performance group’s optimization type. Validation of any campaigns passed inadspert_campaign_idswill be skipped.If
adspert_campaign_idsis 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_typeifperformance_group_idis not passed.currencyrequiredgoal_typeType of the goal to include in scenarios.
Specifying
goal_type,goal_value, and (optionally)goal_currencywill add a scenario that matches the selected goal value.goal_type,goal_valueandgoal_currencyshould beNULLifperformance_group_idis specified.goal_valueFloat
Value of the goal to include in scenarios.
Specifying
goal_type,goal_value, and (optionally)goal_currencywill add a scenario that matches the selected goal value.goal_type,goal_valueandgoal_currencyshould beNULLifperformance_group_idis specified.goal_currencyCurrency of the goal to include in scenarios.
Specifying
goal_type,goal_value, and (optionally)goal_currencywill add a scenario that matches the selected goal value.goal_type,goal_valueandgoal_currencyshould beNULLifperformance_group_idis 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
impressionsFloat
Number of projected impressions
clicksFloat
Number of projected clicks
conversionsFloat
Number of projected conversions.
Always None for click optimized performance groups and campaigns.
costProjected ad spend/cost.
revenueProjected revenue/sales.
Always None for click and profit optimized performance groups and campaigns.
profit_netProjected net profit.
Always None for click and revenue optimized performance groups and campaigns.
profit_grossProjected gross profit.
Always None for click and revenue optimized performance groups and campaigns.
cost_per_clickProjected effective CPC.
cost_per_conversionProjected cost per conversion.
Always None for click optimized performance groups and campaigns.
return_on_investmentFloat
Projected return on investment (ROI).
Always None for click and revenue optimized performance groups and campaigns.
return_on_ad_spendFloat
Projected return on ad spend (ROAS).
Always None for click and profit optimized performance groups and campaigns.
cost_revenue_ratioFloat
Projected cost revenue ratio (CRR).
Always None for click and profit optimized performance groups and campaigns.
Example
http
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
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..."
httpie
http 'https://api.adspert.net/v3/customers/7027038674/scenarios?goal_value=1.41&exclude=elit.amet¤cy=AED' Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
python-requests
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...'})
response
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": [ { "impressions": 4.68, "clicks": 10.56, "conversions": 3.92, "cost": 19990000, "revenue": 19990000, "profit_net": 19990000, "profit_gross": 19990000, "cost_per_click": 19990000, "cost_per_conversion": 19990000, "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": { "impressions": 1 } } } }
POST
- POST /v3/customers/(customer_id: int)/scenarios
-
Request Data (single object, json or x-www-form-urlencoded)
Name
Type
Description
offsetInteger
Start index for result list.
Default: 0
Min value: 0
limitInteger
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
includeFields to include in response data.
excludeFields to exclude in response data.
performance_group_idInteger
Performance group to create scenarios for.
If
performance_group_idis defined, we will generate the scenarios for the performance group’s optimization type. Validation of any campaigns passed inadspert_campaign_idswill be skipped.If
adspert_campaign_idsis 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_typeifperformance_group_idis not passed.currencyrequiredgoal_typeType of the goal to include in scenarios.
Specifying
goal_type,goal_value, and (optionally)goal_currencywill add a scenario that matches the selected goal value.goal_type,goal_valueandgoal_currencyshould beNULLifperformance_group_idis specified.goal_valueFloat
Value of the goal to include in scenarios.
Specifying
goal_type,goal_value, and (optionally)goal_currencywill add a scenario that matches the selected goal value.goal_type,goal_valueandgoal_currencyshould beNULLifperformance_group_idis specified.goal_currencyCurrency of the goal to include in scenarios.
Specifying
goal_type,goal_value, and (optionally)goal_currencywill add a scenario that matches the selected goal value.goal_type,goal_valueandgoal_currencyshould beNULLifperformance_group_idis 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
impressionsFloat
Number of projected impressions
clicksFloat
Number of projected clicks
conversionsFloat
Number of projected conversions.
Always None for click optimized performance groups and campaigns.
costProjected ad spend/cost.
revenueProjected revenue/sales.
Always None for click and profit optimized performance groups and campaigns.
profit_netProjected net profit.
Always None for click and revenue optimized performance groups and campaigns.
profit_grossProjected gross profit.
Always None for click and revenue optimized performance groups and campaigns.
cost_per_clickProjected effective CPC.
cost_per_conversionProjected cost per conversion.
Always None for click optimized performance groups and campaigns.
return_on_investmentFloat
Projected return on investment (ROI).
Always None for click and revenue optimized performance groups and campaigns.
return_on_ad_spendFloat
Projected return on ad spend (ROAS).
Always None for click and profit optimized performance groups and campaigns.
cost_revenue_ratioFloat
Projected cost revenue ratio (CRR).
Always None for click and profit optimized performance groups and campaigns.
Example
http
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
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"}'
httpie
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..."
python-requests
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'})
response
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": [ { "impressions": 4.68, "clicks": 10.56, "conversions": 3.92, "cost": 19990000, "revenue": 19990000, "profit_net": 19990000, "profit_gross": 19990000, "cost_per_click": 19990000, "cost_per_conversion": 19990000, "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
includeFields to include in response data.
excludeFields to exclude in response data.
filter_date_gerequiredOnly return results where
dateis on or after this date.filter_date_lerequiredOnly return results where
dateis on or before this date.search_fieldsFields that should be searched using the
search_term.search_termString
Search term used to search the
search_fields.offsetInteger
Start index for result list.
Default: 0
Min value: 0
limitInteger
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_sizerequiredInteger
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•24currencyrequiredResponse Data (object list, json or csv or xlsx)
Name
Type
Description
day_of_weekInteger
Day of the week (0=Sunday, 6=Saturday)
hourly_metrics[ Object ]
⤷
impressionsInteger
Number of impressions
⤷
view_impressionsInteger
Number of viewable impressions
⤷
impressions_totalInteger
Number of total impressions, For vcpm, viewable impressions and impressions for all other campaigns.
Should be used internally.
⤷
clicksInteger
Number of clicks
⤷
click_through_rateFloat
Clickthrough rate (CTR).
clicks/impressionsNULL if number of
impressionsis 0.⤷
click_through_rate_clicksFloat
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_impressionsNULL if number of
view_impressionsis 0.⤷
conversionsFloat
Number of conversions including view impressions.
Always 0 for click optimized campaigns.
⤷
conversions_clicksFloat
Number of conversions from clicks only
Valid only for vCPM campaigns. For non-vCPM campaigns, this is the same as
conversions.⤷
conversion_rateFloat
Conversion rate.
conversions/clicksNULL if number of
clicksis 0.⤷
conversion_rate_clicksFloat
Conversion rate from clicks only.
Valid only for vCPM campaigns. For non-vCPM campaigns, this is the same as
conversion_rate.view_conversions/clicksNULL if number of
clicksis 0.⤷
costTotal ad spend / cost
⤷
revenueRevenue/sales.
Always 0 for click and profit optimized campaigns.
⤷
revenue_clicksRevenue/sales from clicks only.
Valid only for vCPM campaigns. For non-vCPM campaigns, this is the same as
revenue.⤷
profit_grossGross profit.
Always 0 for click and revenue optimized campaigns.
⤷
profit_netNet profit.
profit_gross-cost_for_profitAlways 0 for click and revenue optimized campaigns.
⤷
hour_intervalInteger
Hour interval number for the metrics
Example
http
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
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..."
httpie
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..."
python-requests
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...'})
response
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, "click_through_rate_clicks": 17.16, "conversions": 3.92, "conversions_clicks": 11.04, "conversion_rate": 0.86, "conversion_rate_clicks": 5.66, "cost": 19990000, "revenue": 19990000, "revenue_clicks": 19990000, "profit_gross": 19990000, "profit_net": 19990000, "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
includeFields to include in response data.
excludeFields to exclude in response data.
filter_date_gerequiredOnly return results where
dateis on or after this date.filter_date_lerequiredOnly return results where
dateis on or before this date.search_fieldsFields that should be searched using the
search_term.search_termString
Search term used to search the
search_fields.offsetInteger
Start index for result list.
Default: 0
Min value: 0
limitInteger
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_sizerequiredInteger
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•24currencyrequiredResponse Data (object list, json or csv or xlsx)
Name
Type
Description
day_of_weekInteger
Day of the week (0=Sunday, 6=Saturday)
hourly_metrics[ Object ]
⤷
impressionsInteger
Number of impressions
⤷
view_impressionsInteger
Number of viewable impressions
⤷
impressions_totalInteger
Number of total impressions, For vcpm, viewable impressions and impressions for all other campaigns.
Should be used internally.
⤷
clicksInteger
Number of clicks
⤷
click_through_rateFloat
Clickthrough rate (CTR).
clicks/impressionsNULL if number of
impressionsis 0.⤷
click_through_rate_clicksFloat
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_impressionsNULL if number of
view_impressionsis 0.⤷
conversionsFloat
Number of conversions including view impressions.
Always 0 for click optimized campaigns.
⤷
conversions_clicksFloat
Number of conversions from clicks only
Valid only for vCPM campaigns. For non-vCPM campaigns, this is the same as
conversions.⤷
conversion_rateFloat
Conversion rate.
conversions/clicksNULL if number of
clicksis 0.⤷
conversion_rate_clicksFloat
Conversion rate from clicks only.
Valid only for vCPM campaigns. For non-vCPM campaigns, this is the same as
conversion_rate.view_conversions/clicksNULL if number of
clicksis 0.⤷
costTotal ad spend / cost
⤷
revenueRevenue/sales.
Always 0 for click and profit optimized campaigns.
⤷
revenue_clicksRevenue/sales from clicks only.
Valid only for vCPM campaigns. For non-vCPM campaigns, this is the same as
revenue.⤷
profit_grossGross profit.
Always 0 for click and revenue optimized campaigns.
⤷
profit_netNet profit.
profit_gross-cost_for_profitAlways 0 for click and revenue optimized campaigns.
⤷
hour_intervalInteger
Hour interval number for the metrics
Example
http
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
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..."
httpie
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..."
python-requests
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...'})
response
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, "click_through_rate_clicks": 17.16, "conversions": 3.92, "conversions_clicks": 11.04, "conversion_rate": 0.86, "conversion_rate_clicks": 5.66, "cost": 19990000, "revenue": 19990000, "revenue_clicks": 19990000, "profit_gross": 19990000, "profit_net": 19990000, "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
includeFields to include in response data.
excludeFields to exclude in response data.
filter_date_gerequiredOnly return results where
filter_date_geis equal or greater than this value.filter_date_lerequiredOnly return results where
filter_date_leis equal or lower than this value.filter_account_is_demo[ Boolean ]
Only return results matching given
account_is_demovalues.filter_account_optimize[ Boolean ]
Only return results matching given
account_optimizevalues.filter_account_tags_user[ String ]
Only return results matching given
account_tags_uservalues.filter_performance_group_enabled[ Boolean ]
Only return results matching given
performance_group_enabledvalues.filter_performance_group_optimization_type[ OptimizationType ]
Only return results matching given
performance_group_optimization_typevalues.filter_performance_group_goal_typesOnly return results matching given
performance_group_goal_typesvalues.filter_adspert_campaign_id[ CompositeID ]
Only return results matching given
adspert_campaign_idvalues.filter_campaign_type[ CampaignType ]
Only return results matching given
campaign_typevalues.filter_campaign_eby_marketplace_id[ String ]
Only return results matching given
campaign_eby_marketplace_idvalues.filter_campaign_status[ CampaignStatus ]
Only return results matching given
campaign_statusvalues.filter_campaign_optimize[ Boolean ]
Only return results matching given
campaign_optimizevalues.filter_campaign_optimization_type[ OptimizationType ]
Only return results matching given
campaign_optimization_typevalues.filter_campaign_optimization_supportOnly return results matching given
campaign_optimization_supportvalues.filter_campaign_labels[ String ]
Only return results matching given
campaign_labelsvalues.filter_adspert_portfolio_id[ CompositeID ]
Only return results matching given
adspert_portfolio_idvalues.filter_amz_portfolio_id[ LargeInteger ]
Only return results matching given
amz_portfolio_idvalues.filter_amz_portfolio_name[ String ]
Only return results matching given
amz_portfolio_namevalues.filter_account_id[ String ]
Only return results matching given
account_idvalues.filter_account_name[ String ]
Only return results matching given
account_namevalues.filter_account_platform[ AdPlatform ]
Only return results matching given
account_platformvalues.filter_adspert_account_id[ Integer ]
Only return results matching given
adspert_account_idvalues.filter_campaign_name[ String ]
Only return results matching given
campaign_namevalues.filter_entry_typeOnly return results matching given
entry_typevalues.filter_performance_group_id[ Integer ]
Only return results matching given
performance_group_idvalues.filter_performance_group_name[ String ]
Only return results matching given
performance_group_namevalues.filter_user_id[ Integer ]
Only return results matching given
user_idvalues.search_fieldsFields that should be searched using the
search_term.search_termString
Search term used to search the
search_fields.search_goal_nameString
Only return results where
goal_namematches the given string.search_performance_group_goal_typesString
Only return results where
performance_group_goal_typesmatches the given string.search_campaign_labelsString
Only return results where
campaign_labelsmatches the given string.search_amz_portfolio_idInteger
Only return results where
amz_portfolio_idmatches the given string.search_amz_portfolio_nameString
Only return results where
amz_portfolio_namematches the given string.search_user_nameString
Only return results where
user_namematches the given string.search_user_emailString
Only return results where
user_emailmatches the given string.search_account_tags_userString
Only return results where
account_tags_usermatches the given string.search_account_idString
Only return results where
account_idmatches the given string.search_account_nameString
Only return results where
account_namematches the given string.search_adspert_account_idString
Only return results where
adspert_account_idmatches the given string.search_campaign_idString
Only return results where
campaign_idmatches the given string.search_campaign_nameString
Only return results where
campaign_namematches the given string.search_performance_group_idString
Only return results where
performance_group_idmatches the given string.search_performance_group_nameString
Only return results where
performance_group_namematches the given string.sort_account_idSort results by
account_id.sort_account_nameSort results by
account_name.sort_account_platformSort results by
account_platform.sort_adspert_account_idSort results by
adspert_account_id.sort_adspert_campaign_idSort results by
adspert_campaign_id.sort_campaign_idSort results by
campaign_id.sort_campaign_nameSort results by
campaign_name.sort_entry_typeSort results by
entry_type.sort_log_idSort results by
log_id.sort_performance_group_idSort results by
performance_group_id.sort_performance_group_nameSort results by
performance_group_name.sort_timestampSort results by
timestamp.sort_user_emailSort results by
user_email.sort_user_idSort results by
user_id.sort_user_nameSort results by
user_name.offsetInteger
Start index for result list.
Default: 0
Min value: 0
limitInteger
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
timestamplog_idInteger
user_idInteger
ID of the user who did the change.
Is
-1if change was made by Adspert.user_emailsearchableString
E-mail of the user who did the change. Is
nullif change was made by Adspert.user_namesearchableString
Concatenated name of the user.
performance_group_idsearchableInteger
Unique ID of the performance group
performance_group_namesearchableString
Unique name of the performance group.
account_idsearchableString
Ad platform specific ID of an advertising account.
adspert_account_idsearchableInteger
Adspert internal ID of the advertising account
account_namesearchableString
account_platformThe account’s advertising platform.
adspert_campaign_idAdspert internal ID of the campaign.
Composite ID specification:
{adspert_account_id}:{campaign_id}campaign_idsearchablecampaign_namesearchableString
entry_typeEntry type of the respective Performance Group Log row.
message_titleString
Localized and human-readable message title for the respective Performance Group Log row.
message_detailsString
Localized and human-readable message details for the respective Performance Group Log row.
Example
http
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
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..."
httpie
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..."
python-requests
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...'})
response
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
includeFields to include in response data.
excludeFields to exclude in response data.
filter_date_gerequiredOnly return results where
filter_date_geis equal or greater than this value.filter_date_lerequiredOnly return results where
filter_date_leis equal or lower than this value.Response Data (object list, json or csv or xlsx)
Name
Type
Description
user_idInteger
ID of the user who did the change.
Is
-1if change was made by Adspert.user_emailsearchableString
E-mail of the user who did the change. Is
nullif change was made by Adspert.user_namesearchableString
Concatenated name of the user.
Example
http
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
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..."
httpie
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..."
python-requests
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...'})
response
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
includeFields to include in response data.
excludeFields to exclude in response data.
filter_date_gerequiredOnly return results where
filter_date_geis equal or greater than this value.filter_date_lerequiredOnly return results where
filter_date_leis equal or lower than this value.Response Data (object list, json or csv or xlsx)
Name
Type
Description
entry_typeExample
http
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
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..."
httpie
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..."
python-requests
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...'})
response
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": [ { "entry_type": "ACCOUNT-DEFAULT-ADDED-ACCOUNT-MOVED" } ], "meta": {} }
AmzSponsoredProductsCampaignCreateLogCollection [DEPRECATED]
GET
- GET /v3/customers/(customer_id: int)/campaigns/creation-queue/amazon/sp/log
-
Query Params
Name
Type
Description
includeFields to include in response data.
excludeFields to exclude in response data.
filter_date_gerequiredOnly return results where
filter_date_geis equal or greater than this value.filter_date_lerequiredOnly return results where
filter_date_leis equal or lower than this value.filter_account_currency[ String ]
Only return results matching given
account_currencyvalues.filter_account_id[ String ]
Only return results matching given
account_idvalues.filter_account_is_demo[ Boolean ]
Only return results matching given
account_is_demovalues.filter_account_name[ String ]
Only return results matching given
account_namevalues.filter_account_optimize[ Boolean ]
Only return results matching given
account_optimizevalues.filter_account_platform[ AdPlatform ]
Only return results matching given
account_platformvalues.filter_account_tags_user[ String ]
Only return results matching given
account_tags_uservalues.filter_adgroup_name[ String ]
Only return results matching given
adgroups.namevalues.filter_adgroup_status[ AdgroupStatus ]
Only return results matching given
adgroups.statusvalues.filter_adspert_account_id[ Integer ]
Only return results matching given
adspert_account_idvalues.filter_adspert_campaign_id[ CompositeID ]
Only return results matching given
adspert_campaign_idvalues.filter_adspert_portfolio_id[ CompositeID ]
Only return results matching given
adspert_portfolio_idvalues.filter_allow_change_dowhod[ Boolean ]
Only return results matching given
allow_change_dowhodvalues.filter_amz_portfolio_name[ String ]
Only return results matching given
amz_portfolio_namevalues.filter_campaign_eby_marketplace_id[ String ]
Only return results matching given
campaign_eby_marketplace_idvalues.filter_campaign_labels[ String ]
Only return results matching given
campaign_labelsvalues.filter_campaign_name[ String ]
Only return results matching given
campaign_namevalues.filter_campaign_optimization_supportOnly return results matching given
campaign_optimization_supportvalues.filter_campaign_optimization_type[ OptimizationType ]
Only return results matching given
campaign_optimization_typevalues.filter_campaign_optimize[ Boolean ]
Only return results matching given
campaign_optimizevalues.filter_campaign_status[ CampaignStatus ]
Only return results matching given
campaign_statusvalues.filter_campaign_type[ CampaignType ]
Only return results matching given
campaign_typevalues.filter_performance_group_enabled[ Boolean ]
Only return results matching given
performance_group_enabledvalues.filter_performance_group_goal_typesOnly return results matching given
performance_group_goal_typesvalues.filter_performance_group_id[ Integer ]
Only return results matching given
performance_group_idvalues.filter_performance_group_name[ String ]
Only return results matching given
performance_group_namevalues.filter_performance_group_optimization_type[ OptimizationType ]
Only return results matching given
performance_group_optimization_typevalues.filter_user_id[ Integer ]
Only return results matching given
user_idvalues.search_fieldsFields that should be searched using the
search_term.search_termString
Search term used to search the
search_fields.search_account_idString
Only return results where
account_idmatches the given string.search_account_nameString
Only return results where
account_namematches the given string.search_account_tags_userString
Only return results where
account_tags_usermatches the given string.search_adgroup_nameString
Only return results where
adgroups.namematches the given string.search_adspert_account_idString
Only return results where
adspert_account_idmatches the given string.search_amz_portfolio_idString
Only return results where
amz_portfolio_idmatches the given string.search_amz_portfolio_nameString
Only return results where
amz_portfolio_namematches the given string.search_campaign_idString
Only return results where
campaign_idmatches the given string.search_campaign_labelsString
Only return results where
campaign_labelsmatches the given string.search_campaign_nameString
Only return results where
campaign_namematches the given string.search_performance_group_idString
Only return results where
performance_group_idmatches the given string.search_performance_group_nameString
Only return results where
performance_group_namematches the given string.search_product_nameString
Only return results where
adgroups.products.namematches the given string.search_user_emailString
Only return results where
user_emailmatches the given string.search_user_nameString
Only return results where
user_namematches the given string.sort_account_currencySort results by
account_currency.sort_account_idSort results by
account_id.sort_account_is_demoSort results by
account_is_demo.sort_account_nameSort results by
account_name.sort_account_optimizeSort results by
account_optimize.sort_account_platformSort results by
account_platform.sort_adspert_account_idSort results by
adspert_account_id.sort_adspert_campaign_idSort results by
adspert_campaign_id.sort_adspert_portfolio_idSort results by
adspert_portfolio_id.sort_allow_change_dowhodSort results by
allow_change_dowhod.sort_amz_portfolio_idSort results by
amz_portfolio_id.sort_amz_portfolio_nameSort results by
amz_portfolio_name.sort_campaign_eby_marketplace_idSort results by
campaign_eby_marketplace_id.sort_campaign_idSort results by
campaign_id.sort_campaign_nameSort results by
campaign_name.sort_campaign_optimization_supportSort results by
campaign_optimization_support.sort_campaign_optimization_typeSort results by
campaign_optimization_type.sort_campaign_optimizeSort results by
campaign_optimize.sort_campaign_statusSort results by
campaign_status.sort_campaign_typeSort results by
campaign_type.sort_performance_group_enabledSort results by
performance_group_enabled.sort_performance_group_goal_typesSort results by
performance_group_goal_types.sort_performance_group_idSort results by
performance_group_id.sort_performance_group_nameSort results by
performance_group_name.sort_performance_group_optimization_typeSort results by
performance_group_optimization_type.sort_timestampSort results by
timestamp.sort_user_emailSort results by
user_email.sort_user_idSort results by
user_id.sort_user_nameSort results by
user_name.offsetInteger
Start index for result list.
Default: 0
Min value: 0
limitInteger
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_idInteger
timestampadspert_account_idsearchableInteger
Adspert internal ID of the advertising account
account_idsearchableString
Ad platform specific ID of an advertising account.
account_namesearchableString
account_tags_usersearchable[ String ]
account_is_demoBoolean
If the account is a generated account for demonstration purposes.
Demo accounts have no counterpart in the ad platform.
account_platformThe account’s advertising platform.
account_optimizeBoolean
If optimization by Adspert is enabled for this account.
account_currencyString
adspert_campaign_idAdspert internal ID of the campaign.
Composite ID specification:
{adspert_account_id}:{campaign_id}campaign_idsearchablecampaign_namesearchableString
campaign_typecampaign_eby_marketplace_idString
campaign_statuscampaign_optimizeBoolean
campaign_optimization_typecampaign_optimization_supportcampaign_labelssearchable[ String ]
bidding_strategyallow_change_dowhodBoolean
If ad schedule bid adjustment (day-of-week/hour-of-day) optimization is enabled
daily_budgetstart_dateend_dateperformance_group_idsearchableInteger
Unique ID of the performance group
performance_group_namesearchableString
Unique name of the performance group.
performance_group_enabledBoolean
performance_group_optimization_typeOptimization 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_typeType of the performance group goal
⤷
goal_valueFloat
Value of the performance group goal.
goal_valueshould beNULLifgoal_typeisPROFIT-MAXIMIZATION.goal_valueshould be a ratio (> 0) ifgoal_typeisROAS,CRRandROI,goal_valueshould be specified in micros and be larger than 10000 ifgoal_typeisCOST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICK.⤷
goal_currencyCurrency of the performance group goal.
Currency is required for
COST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICKgoals.⤷
goal_microsValue for
COST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICKgoals.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_ratioFloat
Value for
ROAS,CRRandROIgoals.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_typesList of performance group goal types
adspert_portfolio_idAdspert internal ID of Amazon portfolio.
Composite ID specification:
{adspert_account_id}:{portfolio_id}amz_portfolio_idsearchableamz_portfolio_namesearchableString
adgroups[ Object ]
⤷
adgroup_idsearchable⤷
adspert_adgroup_idAdspert internal ID of the adgroup.
Composite ID specification:
{adspert_account_id}:{adgroup_id}⤷
namesearchableString
⤷
default_max_cpc⤷
status⤷
adgroup_labelssearchable[ String ]
⤷
created_atNULL if not created yet.
⤷
target_bids[ Object ]
⤷
target_expression⤷
bid⤷
created_atNULL if not created yet.
⤷
products[ Object ]
⤷
skuString
⤷
asinString
⤷
namesearchableString
Name of the product
⤷
created_atNULL if not created yet.
user_idInteger
ID of the user who did the change.
Is
-1if change was made by Adspert.user_emailsearchableString
E-mail of the user who did the change. Is
nullif change was made by Adspert.user_namesearchableString
Concatenated name of the user.
Example
http
GET /v3/customers/7027038674/campaigns/creation-queue/amazon/sp/log?search_performance_group_name=tucan+lorem&search_campaign_id=dolor+amet&sort_account_optimize=0 HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl
curl -i -X GET 'https://api.adspert.net/v3/customers/7027038674/campaigns/creation-queue/amazon/sp/log?search_performance_group_name=tucan+lorem&search_campaign_id=dolor+amet&sort_account_optimize=0' -H "Accept: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
httpie
http 'https://api.adspert.net/v3/customers/7027038674/campaigns/creation-queue/amazon/sp/log?search_performance_group_name=tucan+lorem&search_campaign_id=dolor+amet&sort_account_optimize=0' Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
python-requests
requests.get('https://api.adspert.net/v3/customers/7027038674/campaigns/creation-queue/amazon/sp/log?search_performance_group_name=tucan+lorem&search_campaign_id=dolor+amet&sort_account_optimize=0', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
response
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": [ { "log_id": 5332652616, "timestamp": "2018-10-21T16:45:23+02:00", "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", "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" ], "bidding_strategy": "AUTO-FOR-SALES", "allow_change_dowhod": true, "daily_budget": 19990000, "start_date": "2018-10-21", "end_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": 19990000, "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", "adgroups": [ { "adgroup_id": "777", "adspert_adgroup_id": "123:777", "name": "tucan lorem", "default_max_cpc": 19990000, "status": "ACTIVE", "adgroup_labels": [ "elit ipsum" ], "created_at": "2018-10-21", "target_bids": [ { "target_expression": "ASINACCESSORYRELATED", "bid": 19990000, "created_at": "2018-10-21" } ], "products": [ { "sku": "00011", "asin": "B000000001", "name": "tucan lorem", "created_at": "2018-10-21" } ] } ], "user_id": 12345, "user_email": "test@example.com", "user_name": "adlora ipsum" } ], "meta": { "pagination": { "offset": 0, "limit": 10, "total": 74, "sort": { "log_id": 1 } } } }
FilterUserCollectionAmzCampaignCreationLog [DEPRECATED]
GET
- GET /v3/customers/(customer_id: int)/campaigns/creation-queue/amazon/sp/log/users
Get users that can be used as filters in the log endpoint.
DEPRECATED:use /v3/(CUS)/management/log/users insteadQuery Params
Name
Type
Description
includeFields to include in response data.
excludeFields to exclude in response data.
filter_date_gerequiredOnly return results where
filter_date_geis equal or greater than this value.filter_date_lerequiredOnly return results where
filter_date_leis equal or lower than this value.Response Data (object list, json or csv or xlsx)
Name
Type
Description
user_idInteger
ID of the user who did the change.
Is
-1if change was made by Adspert.user_emailsearchableString
E-mail of the user who did the change. Is
nullif change was made by Adspert.user_namesearchableString
Concatenated name of the user.
Example
http
GET /v3/customers/7027038674/campaigns/creation-queue/amazon/sp/log/users?include=ipsum.amet&exclude=elit.amet&filter_date_le=2018-10-21 HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl
curl -i -X GET 'https://api.adspert.net/v3/customers/7027038674/campaigns/creation-queue/amazon/sp/log/users?include=ipsum.amet&exclude=elit.amet&filter_date_le=2018-10-21' -H "Accept: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
httpie
http 'https://api.adspert.net/v3/customers/7027038674/campaigns/creation-queue/amazon/sp/log/users?include=ipsum.amet&exclude=elit.amet&filter_date_le=2018-10-21' Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
python-requests
requests.get('https://api.adspert.net/v3/customers/7027038674/campaigns/creation-queue/amazon/sp/log/users?include=ipsum.amet&exclude=elit.amet&filter_date_le=2018-10-21', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
response
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": {} }
PlatformManagementLogCollection
GET
- GET /v3/customers/(customer_id: int)/management/log
-
Query Params
Name
Type
Description
includeFields to include in response data.
excludeFields to exclude in response data.
filter_date_gerequiredOnly return results where
filter_date_geis equal or greater than this value.filter_date_lerequiredOnly return results where
filter_date_leis equal or lower than this value.filter_account_currency[ String ]
Only return results matching given
account_currencyvalues.filter_account_id[ String ]
Only return results matching given
account_idvalues.filter_account_is_demo[ Boolean ]
Only return results matching given
account_is_demovalues.filter_account_name[ String ]
Only return results matching given
account_namevalues.filter_account_optimize[ Boolean ]
Only return results matching given
account_optimizevalues.filter_account_platform[ AdPlatform ]
Only return results matching given
account_platformvalues.filter_account_tags_user[ String ]
Only return results matching given
account_tags_uservalues.filter_action[ Action ]
Only return results matching given
actionvalues.filter_adgroup_name[ String ]
Only return results matching given
adgroups.namevalues.filter_adgroup_status[ AdgroupStatus ]
Only return results matching given
adgroups.statusvalues.filter_adspert_account_id[ Integer ]
Only return results matching given
adspert_account_idvalues.filter_adspert_campaign_id[ CompositeID ]
Only return results matching given
adspert_campaign_idvalues.filter_adspert_portfolio_id[ CompositeID ]
Only return results matching given
adspert_portfolio_idvalues.filter_amz_allow_change_dowhod[ Boolean ]
Only return results matching given
amz_allow_change_dowhodvalues.filter_amz_portfolio_name[ String ]
Only return results matching given
amz_portfolio_namevalues.filter_budget_typeOnly return results matching given
budget_typevalues.filter_campaign_eby_marketplace_id[ String ]
Only return results matching given
campaign_eby_marketplace_idvalues.filter_campaign_labels[ String ]
Only return results matching given
campaign_labelsvalues.filter_campaign_name[ String ]
Only return results matching given
campaign_namevalues.filter_campaign_optimization_supportOnly return results matching given
campaign_optimization_supportvalues.filter_campaign_optimization_type[ OptimizationType ]
Only return results matching given
campaign_optimization_typevalues.filter_campaign_optimize[ Boolean ]
Only return results matching given
campaign_optimizevalues.filter_campaign_status[ CampaignStatus ]
Only return results matching given
campaign_statusvalues.filter_campaign_type[ CampaignType ]
Only return results matching given
campaign_typevalues.filter_level[ Level ]
Only return results matching given
levelvalues.filter_performance_group_enabled[ Boolean ]
Only return results matching given
performance_group_enabledvalues.filter_performance_group_goal_typesOnly return results matching given
performance_group_goal_typesvalues.filter_performance_group_id[ Integer ]
Only return results matching given
performance_group_idvalues.filter_performance_group_name[ String ]
Only return results matching given
performance_group_namevalues.filter_performance_group_optimization_type[ OptimizationType ]
Only return results matching given
performance_group_optimization_typevalues.filter_user_id[ Integer ]
Only return results matching given
user_idvalues.filter_wmt_allow_brand_term_targeting[ Boolean ]
Only return results matching given
wmt_allow_brand_term_targetingvalues.filter_wmt_allow_complementary_product_targeting[ Boolean ]
Only return results matching given
wmt_allow_complementary_product_targetingvalues.search_fieldsFields that should be searched using the
search_term.search_termString
Search term used to search the
search_fields.search_account_idString
Only return results where
account_idmatches the given string.search_account_nameString
Only return results where
account_namematches the given string.search_account_tags_userString
Only return results where
account_tags_usermatches the given string.search_adgroup_nameString
Only return results where
adgroups.namematches the given string.search_adspert_account_idString
Only return results where
adspert_account_idmatches the given string.search_amz_portfolio_idString
Only return results where
amz_portfolio_idmatches the given string.search_amz_portfolio_nameString
Only return results where
amz_portfolio_namematches the given string.search_campaign_idString
Only return results where
campaign_idmatches the given string.search_campaign_labelsString
Only return results where
campaign_labelsmatches the given string.search_campaign_nameString
Only return results where
campaign_namematches the given string.search_criterion_nameString
Only return results where
adgroups.criteria.criterion_namematches the given string.search_performance_group_idString
Only return results where
performance_group_idmatches the given string.search_performance_group_nameString
Only return results where
performance_group_namematches the given string.search_product_nameString
Only return results where
adgroups.products.namematches the given string.search_target_nameString
Only return results where
adgroups.target_bids.criterion_namematches the given string.search_user_emailString
Only return results where
user_emailmatches the given string.search_user_nameString
Only return results where
user_namematches the given string.sort_account_currencySort results by
account_currency.sort_account_idSort results by
account_id.sort_account_is_demoSort results by
account_is_demo.sort_account_nameSort results by
account_name.sort_account_optimizeSort results by
account_optimize.sort_account_platformSort results by
account_platform.sort_adspert_account_idSort results by
adspert_account_id.sort_adspert_campaign_idSort results by
adspert_campaign_id.sort_adspert_portfolio_idSort results by
adspert_portfolio_id.sort_amz_allow_change_dowhodSort results by
amz_allow_change_dowhod.sort_amz_portfolio_idSort results by
amz_portfolio_id.sort_amz_portfolio_nameSort results by
amz_portfolio_name.sort_campaign_eby_marketplace_idSort results by
campaign_eby_marketplace_id.sort_campaign_idSort results by
campaign_id.sort_campaign_nameSort results by
campaign_name.sort_campaign_optimization_supportSort results by
campaign_optimization_support.sort_campaign_optimization_typeSort results by
campaign_optimization_type.sort_campaign_optimizeSort results by
campaign_optimize.sort_campaign_statusSort results by
campaign_status.sort_campaign_typeSort results by
campaign_type.sort_performance_group_enabledSort results by
performance_group_enabled.sort_performance_group_goal_typesSort results by
performance_group_goal_types.sort_performance_group_idSort results by
performance_group_id.sort_performance_group_nameSort results by
performance_group_name.sort_performance_group_optimization_typeSort results by
performance_group_optimization_type.sort_timestampSort results by
timestamp.sort_user_emailSort results by
user_email.sort_user_idSort results by
user_id.sort_user_nameSort results by
user_name.offsetInteger
Start index for result list.
Default: 0
Min value: 0
limitInteger
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_idInteger
timestampactionleveladspert_account_idsearchableInteger
Adspert internal ID of the advertising account
account_idsearchableString
Ad platform specific ID of an advertising account.
account_namesearchableString
account_tags_usersearchable[ String ]
account_is_demoBoolean
If the account is a generated account for demonstration purposes.
Demo accounts have no counterpart in the ad platform.
account_platformThe account’s advertising platform.
account_optimizeBoolean
If optimization by Adspert is enabled for this account.
account_currencyString
adspert_campaign_idAdspert internal ID of the campaign.
Composite ID specification:
{adspert_account_id}:{campaign_id}campaign_idsearchablecampaign_namesearchableString
campaign_typecampaign_eby_marketplace_idString
campaign_statuscampaign_optimizeBoolean
campaign_optimization_typecampaign_optimization_supportcampaign_labelssearchable[ String ]
bidding_strategyamz_allow_change_dowhodBoolean
If ad schedule bid adjustment (day-of-week/hour-of-day) optimization is enabled
wmt_allow_brand_term_targetingBoolean
wmt_allow_complementary_product_targetingBoolean
budget_typetroas_valueInteger
total_budgetdaily_budgetstart_dateend_dateperformance_group_idsearchableInteger
Unique ID of the performance group
performance_group_namesearchableString
Unique name of the performance group.
performance_group_enabledBoolean
performance_group_optimization_typeOptimization 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_typeType of the performance group goal
⤷
goal_valueFloat
Value of the performance group goal.
goal_valueshould beNULLifgoal_typeisPROFIT-MAXIMIZATION.goal_valueshould be a ratio (> 0) ifgoal_typeisROAS,CRRandROI,goal_valueshould be specified in micros and be larger than 10000 ifgoal_typeisCOST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICK.⤷
goal_currencyCurrency of the performance group goal.
Currency is required for
COST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICKgoals.⤷
goal_microsValue for
COST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICKgoals.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_ratioFloat
Value for
ROAS,CRRandROIgoals.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_typesList of performance group goal types
adspert_portfolio_idAdspert internal ID of Amazon portfolio.
Composite ID specification:
{adspert_account_id}:{portfolio_id}amz_portfolio_idsearchableamz_portfolio_namesearchableString
adgroups[ Object ]
⤷
adgroup_idsearchable⤷
adspert_adgroup_idAdspert internal ID of the adgroup.
Composite ID specification:
{adspert_account_id}:{adgroup_id}⤷
namesearchableString
⤷
default_max_cpc⤷
status⤷
adgroup_labelssearchable[ String ]
⤷
failed_atTimestamp of failed submission.
⤷
created_atNULL if not created or if failed.
⤷
target_bids[ Object ]
⤷
target_expression⤷
bid⤷
criterion_id⤷
criterion_namesearchableString
⤷
match_typeMatch type of
Keywordcriterion.NULL if
criterion_typeis notKeyword.⤷
criterion_type⤷
negativeBoolean
Indicates if criterion is a negative criterion.
⤷
failed_atTimestamp of failed submission.
⤷
created_atNULL if not created or if failed.
⤷
products[ Object ]
⤷
skuString
⤷
asinString
⤷
namesearchableString
Name of the product
⤷
item_idString
Adspert internal ID of the product.
⤷
bid⤷
failed_atTimestamp of failed submission.
⤷
created_atNULL if not created or if failed.
⤷
criteria[ Object ]
⤷
criterion_id⤷
criterion_namesearchableString
⤷
match_typeMatch type of
Keywordcriterion.NULL if
criterion_typeis notKeyword.⤷
criterion_type⤷
negativeBoolean
Indicates if criterion is a negative criterion.
⤷
failed_atTimestamp of failed submission.
⤷
created_atNULL if not created or if failed.
user_idInteger
ID of the user who did the change.
Is
-1if change was made by Adspert.user_emailsearchableString
E-mail of the user who did the change. Is
nullif change was made by Adspert.user_namesearchableString
Concatenated name of the user.
oldObject
Only populated if
actionisupdate.⤷
nameString
⤷
statusnewObject
Only populated if
actionisupdate.⤷
nameString
⤷
statusExample
http
GET /v3/customers/7027038674/management/log?filter_adgroup_name=tucan+lorem&sort_performance_group_enabled=7&sort_user_email=-4 HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl
curl -i -X GET 'https://api.adspert.net/v3/customers/7027038674/management/log?filter_adgroup_name=tucan+lorem&sort_performance_group_enabled=7&sort_user_email=-4' -H "Accept: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
httpie
http 'https://api.adspert.net/v3/customers/7027038674/management/log?filter_adgroup_name=tucan+lorem&sort_performance_group_enabled=7&sort_user_email=-4' Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
python-requests
requests.get('https://api.adspert.net/v3/customers/7027038674/management/log?filter_adgroup_name=tucan+lorem&sort_performance_group_enabled=7&sort_user_email=-4', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
response
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": [ { "log_id": 5332652616, "timestamp": "2018-10-21T16:45:23+02:00", "action": "CREATE", "level": "ADGROUP", "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", "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" ], "bidding_strategy": "AUTO-FOR-SALES", "amz_allow_change_dowhod": true, "wmt_allow_brand_term_targeting": true, "wmt_allow_complementary_product_targeting": true, "budget_type": "BOTH", "troas_value": 9830359863, "total_budget": 19990000, "daily_budget": 19990000, "start_date": "2018-10-21", "end_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": 19990000, "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", "adgroups": [ { "adgroup_id": "777", "adspert_adgroup_id": "123:777", "name": "tucan lorem", "default_max_cpc": 19990000, "status": "ACTIVE", "adgroup_labels": [ "elit ipsum" ], "failed_at": "2018-10-21", "created_at": "2018-10-21", "target_bids": [ { "target_expression": "ASINACCESSORYRELATED", "bid": 19990000, "criterion_id": "66789", "criterion_name": "dolor adlora", "match_type": "BROAD", "criterion_type": "AUDIENCE", "negative": true, "failed_at": "2018-10-21", "created_at": "2018-10-21" } ], "products": [ { "sku": "00011", "asin": "B000000001", "name": "tucan lorem", "item_id": "ASIN0001|SKU0001", "bid": 19990000, "failed_at": "2018-10-21", "created_at": "2018-10-21" } ], "criteria": [ { "criterion_id": "66789", "criterion_name": "dolor adlora", "match_type": "BROAD", "criterion_type": "AUDIENCE", "negative": true, "failed_at": "2018-10-21", "created_at": "2018-10-21" } ] } ], "user_id": 12345, "user_email": "test@example.com", "user_name": "adlora ipsum", "old": { "name": "tucan lorem", "status": "ACTIVE" }, "new": { "name": "tucan lorem", "status": "ACTIVE" } } ], "meta": { "pagination": { "offset": 0, "limit": 10, "total": 74, "sort": { "log_id": 1 } } } }
FilterUserCollectionPlatformMutateLog
GET
- GET /v3/customers/(customer_id: int)/management/log/users
Get users that can be used as filters in the log endpoint.
Query Params
Name
Type
Description
includeFields to include in response data.
excludeFields to exclude in response data.
filter_date_gerequiredOnly return results where
filter_date_geis equal or greater than this value.filter_date_lerequiredOnly return results where
filter_date_leis equal or lower than this value.Response Data (object list, json or csv or xlsx)
Name
Type
Description
user_idInteger
ID of the user who did the change.
Is
-1if change was made by Adspert.user_emailsearchableString
E-mail of the user who did the change. Is
nullif change was made by Adspert.user_namesearchableString
Concatenated name of the user.
Example
http
GET /v3/customers/7027038674/management/log/users?exclude=elit.amet&include=ipsum.amet&filter_date_le=2018-10-21 HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl
curl -i -X GET 'https://api.adspert.net/v3/customers/7027038674/management/log/users?exclude=elit.amet&include=ipsum.amet&filter_date_le=2018-10-21' -H "Accept: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
httpie
http 'https://api.adspert.net/v3/customers/7027038674/management/log/users?exclude=elit.amet&include=ipsum.amet&filter_date_le=2018-10-21' Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
python-requests
requests.get('https://api.adspert.net/v3/customers/7027038674/management/log/users?exclude=elit.amet&include=ipsum.amet&filter_date_le=2018-10-21', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
response
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": {} }
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
includeFields to include in response data.
excludeFields to exclude in response data.
filter_account_is_demo[ Boolean ]
Only return results matching given
account_is_demovalues.filter_account_optimize[ Boolean ]
Only return results matching given
account_optimizevalues.filter_account_tags_user[ String ]
Only return results matching given
account_tags_uservalues.filter_account_currency[ String ]
Only return results matching given
account_currencyvalues.filter_source_performance_group_id[ Integer ]
Only return results matching given
source_performance_group_idvalues.filter_source_performance_group_name[ String ]
Only return results matching given
source_performance_group_namevalues.filter_source_performance_group_enabled[ Boolean ]
Only return results matching given
source_performance_group_enabledvalues.filter_source_performance_group_optimization_type[ OptimizationType ]
Only return results matching given
source_performance_group_optimization_typevalues.filter_source_performance_group_goal_typesOnly return results matching given
source_performance_group_goal_typesvalues.filter_target_performance_group_id[ Integer ]
Only return results matching given
target_performance_group_idvalues.filter_target_performance_group_name[ String ]
Only return results matching given
target_performance_group_namevalues.filter_target_performance_group_enabled[ Boolean ]
Only return results matching given
target_performance_group_enabledvalues.filter_target_performance_group_optimization_type[ OptimizationType ]
Only return results matching given
target_performance_group_optimization_typevalues.filter_target_performance_group_goal_typesOnly return results matching given
target_performance_group_goal_typesvalues.filter_source_adspert_portfolio_id[ CompositeID ]
Only return results matching given
source_adspert_portfolio_idvalues.filter_source_amz_portfolio_id[ LargeInteger ]
Only return results matching given
source_amz_portfolio_idvalues.filter_source_amz_portfolio_name[ String ]
Only return results matching given
source_amz_portfolio_namevalues.filter_target_adspert_portfolio_id[ CompositeID ]
Only return results matching given
target_adspert_portfolio_idvalues.filter_target_amz_portfolio_id[ LargeInteger ]
Only return results matching given
target_amz_portfolio_idvalues.filter_target_amz_portfolio_name[ String ]
Only return results matching given
target_amz_portfolio_namevalues.filter_source_campaign_type[ CampaignType ]
Only return results matching given
source_campaign_typevalues.filter_source_campaign_eby_marketplace_id[ String ]
Only return results matching given
source_campaign_eby_marketplace_idvalues.filter_source_campaign_status[ CampaignStatus ]
Only return results matching given
source_campaign_statusvalues.filter_source_campaign_optimize[ Boolean ]
Only return results matching given
source_campaign_optimizevalues.filter_source_campaign_optimization_type[ OptimizationType ]
Only return results matching given
source_campaign_optimization_typevalues.filter_source_campaign_optimization_supportOnly return results matching given
source_campaign_optimization_supportvalues.filter_source_campaign_amz_targeting_type[ AmzTargetingType ]
Only return results matching given
source_campaign_amz_targeting_typevalues.filter_source_campaign_labels[ String ]
Only return results matching given
source_campaign_labelsvalues.filter_target_campaign_type[ CampaignType ]
Only return results matching given
target_campaign_typevalues.filter_target_campaign_eby_marketplace_id[ String ]
Only return results matching given
target_campaign_eby_marketplace_idvalues.filter_target_campaign_status[ CampaignStatus ]
Only return results matching given
target_campaign_statusvalues.filter_target_campaign_optimize[ Boolean ]
Only return results matching given
target_campaign_optimizevalues.filter_target_campaign_optimization_type[ OptimizationType ]
Only return results matching given
target_campaign_optimization_typevalues.filter_target_campaign_optimization_supportOnly return results matching given
target_campaign_optimization_supportvalues.filter_target_campaign_amz_targeting_type[ AmzTargetingType ]
Only return results matching given
target_campaign_amz_targeting_typevalues.filter_target_campaign_labels[ String ]
Only return results matching given
target_campaign_labelsvalues.filter_source_adgroup_status[ AdgroupStatus ]
Only return results matching given
source_adgroup_statusvalues.filter_source_adgroup_labels[ String ]
Only return results matching given
source_adgroup_labelsvalues.filter_target_adgroup_status[ AdgroupStatus ]
Only return results matching given
target_adgroup_statusvalues.filter_target_adgroup_labels[ String ]
Only return results matching given
target_adgroup_labelsvalues.filter_date_gerequiredOnly return results where
filter_date_geis equal or greater than this value.filter_date_lerequiredOnly return results where
filter_date_leis equal or lower than this value.filter_actionOnly return results matching given
statusvalues.filter_account_id[ String ]
Only return results matching given
account_idvalues.filter_account_name[ String ]
Only return results matching given
account_namevalues.filter_account_platform[ AdPlatform ]
Only return results matching given
account_platformvalues.filter_adspert_account_id[ Integer ]
Only return results matching given
adspert_account_idvalues.filter_source_adgroup_name[ String ]
Only return results matching given
source_adgroup_namevalues.filter_source_adspert_adgroup_id[ CompositeID ]
Only return results matching given
source_adspert_adgroup_idvalues.filter_source_adspert_campaign_id[ CompositeID ]
Only return results matching given
source_adspert_campaign_idvalues.filter_source_campaign_name[ String ]
Only return results matching given
source_campaign_namevalues.filter_sync_mode[ ApiEnumSyncMode ]
Only return results matching given
sync_modevalues.filter_target_adgroup_name[ String ]
Only return results matching given
target_adgroup_namevalues.filter_target_adspert_adgroup_id[ CompositeID ]
Only return results matching given
target_adspert_adgroup_idvalues.filter_target_adspert_campaign_id[ CompositeID ]
Only return results matching given
target_adspert_campaign_idvalues.filter_target_campaign_name[ String ]
Only return results matching given
target_campaign_namevalues.search_fieldsFields that should be searched using the
search_term.search_termString
Search term used to search the
search_fields.search_account_tags_userString
Only return results where
account_tags_usermatches the given string.search_source_performance_group_nameString
Only return results where
source_performance_group_namematches the given string.search_source_amz_portfolio_nameString
Only return results where
source_amz_portfolio_namematches the given string.search_target_performance_group_nameString
Only return results where
target_performance_group_namematches the given string.search_target_amz_portfolio_nameString
Only return results where
target_amz_portfolio_namematches the given string.search_source_campaign_labelsString
Only return results where
source_campaign_labelsmatches the given string.search_target_campaign_labelsString
Only return results where
target_campaign_labelsmatches the given string.search_source_adgroup_labelsString
Only return results where
source_adgroup_labelsmatches the given string.search_target_adgroup_labelsString
Only return results where
target_adgroup_labelsmatches the given string.search_account_idString
Only return results where
account_idmatches the given string.search_account_nameString
Only return results where
account_namematches the given string.search_adspert_account_idString
Only return results where
adspert_account_idmatches the given string.search_source_adgroup_idString
Only return results where
source_adgroup_idmatches the given string.search_source_adgroup_nameString
Only return results where
source_adgroup_namematches the given string.search_source_campaign_idString
Only return results where
source_campaign_idmatches the given string.search_source_campaign_nameString
Only return results where
source_campaign_namematches the given string.search_target_adgroup_idString
Only return results where
target_adgroup_idmatches the given string.search_target_adgroup_nameString
Only return results where
target_adgroup_namematches the given string.search_target_campaign_idString
Only return results where
target_campaign_idmatches the given string.search_target_campaign_nameString
Only return results where
target_campaign_namematches the given string.sort_account_idSort results by
account_id.sort_account_nameSort results by
account_name.sort_account_platformSort results by
account_platform.sort_adspert_account_idSort results by
adspert_account_id.sort_source_adgroup_idSort results by
source_adgroup_id.sort_source_adgroup_nameSort results by
source_adgroup_name.sort_source_adspert_adgroup_idSort results by
source_adspert_adgroup_id.sort_source_adspert_campaign_idSort results by
source_adspert_campaign_id.sort_source_campaign_idSort results by
source_campaign_id.sort_source_campaign_nameSort results by
source_campaign_name.sort_sync_modeSort results by
sync_mode.sort_target_adgroup_idSort results by
target_adgroup_id.sort_target_adgroup_nameSort results by
target_adgroup_name.sort_target_adspert_adgroup_idSort results by
target_adspert_adgroup_id.sort_target_adspert_campaign_idSort results by
target_adspert_campaign_id.sort_target_campaign_idSort results by
target_campaign_id.sort_target_campaign_nameSort results by
target_campaign_name.sort_timestampSort results by
timestamp.offsetInteger
Start index for result list.
Default: 0
Min value: 0
limitInteger
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
timestampmutation_summaryObject
⤷
count_createdInteger
Count of created items during product ad sync.
⤷
count_pausedInteger
Count of created items during product ad sync.
⤷
count_archivedInteger
Count of archived items during product ad sync.
⤷
count_failedInteger
Count of failed items during product ad sync.
⤷
count_enabledInteger
Count of enabled items during product ad sync.
mutation_details[ Object ]
NULL if there were only failures during the sync.
⤷
skuString
Only populated for Amazon
⤷
asinString
Only populated for Amazon
⤷
item_idString
Only populated for Walmart
⤷
actionMutate action for the product.
adspert_account_idsearchableInteger
Adspert internal ID of the advertising account
account_idsearchableString
Ad platform specific ID of an advertising account.
account_namesearchableString
account_platformThe account’s advertising platform.
source_adspert_adgroup_idAdspert internal ID of the adgroup.
Composite ID specification:
{adspert_account_id}:{adgroup_id}source_adgroup_idsearchablesource_adgroup_namesearchableString
source_adspert_campaign_idAdspert internal ID of the campaign.
Composite ID specification:
{adspert_account_id}:{campaign_id}source_campaign_idsearchablesource_campaign_namesearchableString
target_adspert_adgroup_idAdspert internal ID of the adgroup.
Composite ID specification:
{adspert_account_id}:{adgroup_id}target_adgroup_idsearchabletarget_adgroup_namesearchableString
target_adspert_campaign_idAdspert internal ID of the campaign.
Composite ID specification:
{adspert_account_id}:{campaign_id}target_campaign_idsearchabletarget_campaign_namesearchableString
sync_modeMode of the product ad sync.
Example
http
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
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..."
httpie
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..."
python-requests
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...'})
response
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", "item_id": "tucan dolor", "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
includeFields to include in response data.
excludeFields to exclude in response data.
filter_account_is_demo[ Boolean ]
Only return results matching given
account_is_demovalues.filter_account_optimize[ Boolean ]
Only return results matching given
account_optimizevalues.filter_account_tags_user[ String ]
Only return results matching given
account_tags_uservalues.filter_account_currency[ String ]
Only return results matching given
account_currencyvalues.filter_source_performance_group_id[ Integer ]
Only return results matching given
source_performance_group_idvalues.filter_source_performance_group_name[ String ]
Only return results matching given
source_performance_group_namevalues.filter_source_performance_group_enabled[ Boolean ]
Only return results matching given
source_performance_group_enabledvalues.filter_source_performance_group_optimization_type[ OptimizationType ]
Only return results matching given
source_performance_group_optimization_typevalues.filter_source_performance_group_goal_typesOnly return results matching given
source_performance_group_goal_typesvalues.filter_target_performance_group_id[ Integer ]
Only return results matching given
target_performance_group_idvalues.filter_target_performance_group_name[ String ]
Only return results matching given
target_performance_group_namevalues.filter_target_performance_group_enabled[ Boolean ]
Only return results matching given
target_performance_group_enabledvalues.filter_target_performance_group_optimization_type[ OptimizationType ]
Only return results matching given
target_performance_group_optimization_typevalues.filter_target_performance_group_goal_typesOnly return results matching given
target_performance_group_goal_typesvalues.filter_source_adspert_portfolio_id[ CompositeID ]
Only return results matching given
source_adspert_portfolio_idvalues.filter_source_amz_portfolio_id[ LargeInteger ]
Only return results matching given
source_amz_portfolio_idvalues.filter_source_amz_portfolio_name[ String ]
Only return results matching given
source_amz_portfolio_namevalues.filter_target_adspert_portfolio_id[ CompositeID ]
Only return results matching given
target_adspert_portfolio_idvalues.filter_target_amz_portfolio_id[ LargeInteger ]
Only return results matching given
target_amz_portfolio_idvalues.filter_target_amz_portfolio_name[ String ]
Only return results matching given
target_amz_portfolio_namevalues.filter_source_campaign_type[ CampaignType ]
Only return results matching given
source_campaign_typevalues.filter_source_campaign_eby_marketplace_id[ String ]
Only return results matching given
source_campaign_eby_marketplace_idvalues.filter_source_campaign_status[ CampaignStatus ]
Only return results matching given
source_campaign_statusvalues.filter_source_campaign_optimize[ Boolean ]
Only return results matching given
source_campaign_optimizevalues.filter_source_campaign_optimization_type[ OptimizationType ]
Only return results matching given
source_campaign_optimization_typevalues.filter_source_campaign_optimization_supportOnly return results matching given
source_campaign_optimization_supportvalues.filter_source_campaign_amz_targeting_type[ AmzTargetingType ]
Only return results matching given
source_campaign_amz_targeting_typevalues.filter_source_campaign_labels[ String ]
Only return results matching given
source_campaign_labelsvalues.filter_target_campaign_type[ CampaignType ]
Only return results matching given
target_campaign_typevalues.filter_target_campaign_eby_marketplace_id[ String ]
Only return results matching given
target_campaign_eby_marketplace_idvalues.filter_target_campaign_status[ CampaignStatus ]
Only return results matching given
target_campaign_statusvalues.filter_target_campaign_optimize[ Boolean ]
Only return results matching given
target_campaign_optimizevalues.filter_target_campaign_optimization_type[ OptimizationType ]
Only return results matching given
target_campaign_optimization_typevalues.filter_target_campaign_optimization_supportOnly return results matching given
target_campaign_optimization_supportvalues.filter_target_campaign_amz_targeting_type[ AmzTargetingType ]
Only return results matching given
target_campaign_amz_targeting_typevalues.filter_target_campaign_labels[ String ]
Only return results matching given
target_campaign_labelsvalues.filter_source_adgroup_status[ AdgroupStatus ]
Only return results matching given
source_adgroup_statusvalues.filter_source_adgroup_labels[ String ]
Only return results matching given
source_adgroup_labelsvalues.filter_target_adgroup_status[ AdgroupStatus ]
Only return results matching given
target_adgroup_statusvalues.filter_target_adgroup_labels[ String ]
Only return results matching given
target_adgroup_labelsvalues.filter_date_gerequiredOnly return results where
filter_date_geis equal or greater than this value.filter_date_lerequiredOnly return results where
filter_date_leis equal or lower than this value.filter_account_id[ String ]
Only return results matching given
account_idvalues.filter_account_name[ String ]
Only return results matching given
account_namevalues.filter_account_platform[ AdPlatform ]
Only return results matching given
account_platformvalues.filter_adspert_account_id[ Integer ]
Only return results matching given
adspert_account_idvalues.filter_source_adgroup_name[ String ]
Only return results matching given
source_adgroup_namevalues.filter_source_adspert_adgroup_id[ CompositeID ]
Only return results matching given
source_adspert_adgroup_idvalues.filter_source_adspert_campaign_id[ CompositeID ]
Only return results matching given
source_adspert_campaign_idvalues.filter_source_campaign_name[ String ]
Only return results matching given
source_campaign_namevalues.filter_target_adgroup_name[ String ]
Only return results matching given
target_adgroup_namevalues.filter_target_adspert_adgroup_id[ CompositeID ]
Only return results matching given
target_adspert_adgroup_idvalues.filter_target_adspert_campaign_id[ CompositeID ]
Only return results matching given
target_adspert_campaign_idvalues.filter_target_campaign_name[ String ]
Only return results matching given
target_campaign_namevalues.search_fieldsFields that should be searched using the
search_term.search_termString
Search term used to search the
search_fields.search_account_tags_userString
Only return results where
account_tags_usermatches the given string.search_source_performance_group_nameString
Only return results where
source_performance_group_namematches the given string.search_source_amz_portfolio_nameString
Only return results where
source_amz_portfolio_namematches the given string.search_target_performance_group_nameString
Only return results where
target_performance_group_namematches the given string.search_target_amz_portfolio_nameString
Only return results where
target_amz_portfolio_namematches the given string.search_source_campaign_labelsString
Only return results where
source_campaign_labelsmatches the given string.search_target_campaign_labelsString
Only return results where
target_campaign_labelsmatches the given string.search_source_adgroup_labelsString
Only return results where
source_adgroup_labelsmatches the given string.search_target_adgroup_labelsString
Only return results where
target_adgroup_labelsmatches the given string.search_account_idString
Only return results where
account_idmatches the given string.search_account_nameString
Only return results where
account_namematches the given string.search_adspert_account_idString
Only return results where
adspert_account_idmatches the given string.search_message_detailsString
Only return results where
message_detailsmatches the given string.search_message_titleString
Only return results where
message_titlematches the given string.search_source_adgroup_idString
Only return results where
source_adgroup_idmatches the given string.search_source_adgroup_nameString
Only return results where
source_adgroup_namematches the given string.search_source_campaign_idString
Only return results where
source_campaign_idmatches the given string.search_source_campaign_nameString
Only return results where
source_campaign_namematches the given string.search_target_adgroup_idString
Only return results where
target_adgroup_idmatches the given string.search_target_adgroup_nameString
Only return results where
target_adgroup_namematches the given string.search_target_campaign_idString
Only return results where
target_campaign_idmatches the given string.search_target_campaign_nameString
Only return results where
target_campaign_namematches the given string.sort_account_idSort results by
account_id.sort_account_nameSort results by
account_name.sort_account_platformSort results by
account_platform.sort_adspert_account_idSort results by
adspert_account_id.sort_source_adgroup_idSort results by
source_adgroup_id.sort_source_adgroup_nameSort results by
source_adgroup_name.sort_source_adspert_adgroup_idSort results by
source_adspert_adgroup_id.sort_source_adspert_campaign_idSort results by
source_adspert_campaign_id.sort_source_campaign_idSort results by
source_campaign_id.sort_source_campaign_nameSort results by
source_campaign_name.sort_target_adgroup_idSort results by
target_adgroup_id.sort_target_adgroup_nameSort results by
target_adgroup_name.sort_target_adspert_adgroup_idSort results by
target_adspert_adgroup_id.sort_target_adspert_campaign_idSort results by
target_adspert_campaign_id.sort_target_campaign_idSort results by
target_campaign_id.sort_target_campaign_nameSort results by
target_campaign_name.sort_timestampSort results by
timestamp.offsetInteger
Start index for result list.
Default: 0
Min value: 0
limitInteger
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
timestampmessage_titlesearchableString
message_detailssearchableString
adspert_account_idsearchableInteger
Adspert internal ID of the advertising account
account_idsearchableString
Ad platform specific ID of an advertising account.
account_namesearchableString
account_platformThe account’s advertising platform.
source_adspert_adgroup_idAdspert internal ID of the adgroup.
Composite ID specification:
{adspert_account_id}:{adgroup_id}source_adgroup_idsearchablesource_adgroup_namesearchableString
source_adspert_campaign_idAdspert internal ID of the campaign.
Composite ID specification:
{adspert_account_id}:{campaign_id}source_campaign_idsearchablesource_campaign_namesearchableString
target_adspert_adgroup_idAdspert internal ID of the adgroup.
Composite ID specification:
{adspert_account_id}:{adgroup_id}target_adgroup_idsearchabletarget_adgroup_namesearchableString
target_adspert_campaign_idAdspert internal ID of the campaign.
Composite ID specification:
{adspert_account_id}:{campaign_id}target_campaign_idsearchabletarget_campaign_namesearchableString
Example
http
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
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..."
httpie
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..."
python-requests
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...'})
response
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
includeFields to include in response data.
excludeFields to exclude in response data.
filter_account_is_demo[ Boolean ]
Only return results matching given
account_is_demovalues.filter_account_optimize[ Boolean ]
Only return results matching given
account_optimizevalues.filter_account_tags_user[ String ]
Only return results matching given
account_tags_uservalues.filter_account_currency[ String ]
Only return results matching given
account_currencyvalues.filter_source_performance_group_id[ Integer ]
Only return results matching given
source_performance_group_idvalues.filter_source_performance_group_name[ String ]
Only return results matching given
source_performance_group_namevalues.filter_source_performance_group_enabled[ Boolean ]
Only return results matching given
source_performance_group_enabledvalues.filter_source_performance_group_optimization_type[ OptimizationType ]
Only return results matching given
source_performance_group_optimization_typevalues.filter_source_performance_group_goal_typesOnly return results matching given
source_performance_group_goal_typesvalues.filter_target_performance_group_id[ Integer ]
Only return results matching given
target_performance_group_idvalues.filter_target_performance_group_name[ String ]
Only return results matching given
target_performance_group_namevalues.filter_target_performance_group_enabled[ Boolean ]
Only return results matching given
target_performance_group_enabledvalues.filter_target_performance_group_optimization_type[ OptimizationType ]
Only return results matching given
target_performance_group_optimization_typevalues.filter_target_performance_group_goal_typesOnly return results matching given
target_performance_group_goal_typesvalues.filter_source_adspert_portfolio_id[ CompositeID ]
Only return results matching given
source_adspert_portfolio_idvalues.filter_source_amz_portfolio_id[ LargeInteger ]
Only return results matching given
source_amz_portfolio_idvalues.filter_source_amz_portfolio_name[ String ]
Only return results matching given
source_amz_portfolio_namevalues.filter_target_adspert_portfolio_id[ CompositeID ]
Only return results matching given
target_adspert_portfolio_idvalues.filter_target_amz_portfolio_id[ LargeInteger ]
Only return results matching given
target_amz_portfolio_idvalues.filter_target_amz_portfolio_name[ String ]
Only return results matching given
target_amz_portfolio_namevalues.filter_source_campaign_type[ CampaignType ]
Only return results matching given
source_campaign_typevalues.filter_source_campaign_eby_marketplace_id[ String ]
Only return results matching given
source_campaign_eby_marketplace_idvalues.filter_source_campaign_status[ CampaignStatus ]
Only return results matching given
source_campaign_statusvalues.filter_source_campaign_optimize[ Boolean ]
Only return results matching given
source_campaign_optimizevalues.filter_source_campaign_optimization_type[ OptimizationType ]
Only return results matching given
source_campaign_optimization_typevalues.filter_source_campaign_optimization_supportOnly return results matching given
source_campaign_optimization_supportvalues.filter_source_campaign_amz_targeting_type[ AmzTargetingType ]
Only return results matching given
source_campaign_amz_targeting_typevalues.filter_source_campaign_labels[ String ]
Only return results matching given
source_campaign_labelsvalues.filter_target_campaign_type[ CampaignType ]
Only return results matching given
target_campaign_typevalues.filter_target_campaign_eby_marketplace_id[ String ]
Only return results matching given
target_campaign_eby_marketplace_idvalues.filter_target_campaign_status[ CampaignStatus ]
Only return results matching given
target_campaign_statusvalues.filter_target_campaign_optimize[ Boolean ]
Only return results matching given
target_campaign_optimizevalues.filter_target_campaign_optimization_type[ OptimizationType ]
Only return results matching given
target_campaign_optimization_typevalues.filter_target_campaign_optimization_supportOnly return results matching given
target_campaign_optimization_supportvalues.filter_target_campaign_amz_targeting_type[ AmzTargetingType ]
Only return results matching given
target_campaign_amz_targeting_typevalues.filter_target_campaign_labels[ String ]
Only return results matching given
target_campaign_labelsvalues.filter_date_gerequiredOnly return results where
filter_date_geis equal or greater than this value.filter_date_lerequiredOnly return results where
filter_date_leis equal or lower than this value.filter_account_id[ String ]
Only return results matching given
account_idvalues.filter_account_name[ String ]
Only return results matching given
account_namevalues.filter_account_platform[ AdPlatform ]
Only return results matching given
account_platformvalues.filter_adspert_account_id[ Integer ]
Only return results matching given
adspert_account_idvalues.filter_source_adspert_campaign_id[ CompositeID ]
Only return results matching given
source_adspert_campaign_idvalues.filter_source_campaign_name[ String ]
Only return results matching given
source_campaign_namevalues.filter_target_adspert_campaign_id[ CompositeID ]
Only return results matching given
target_adspert_campaign_idvalues.filter_target_campaign_name[ String ]
Only return results matching given
target_campaign_namevalues.search_fieldsFields that should be searched using the
search_term.search_termString
Search term used to search the
search_fields.search_account_tags_userString
Only return results where
account_tags_usermatches the given string.search_source_performance_group_nameString
Only return results where
source_performance_group_namematches the given string.search_source_amz_portfolio_nameString
Only return results where
source_amz_portfolio_namematches the given string.search_target_performance_group_nameString
Only return results where
target_performance_group_namematches the given string.search_target_amz_portfolio_nameString
Only return results where
target_amz_portfolio_namematches the given string.search_source_campaign_labelsString
Only return results where
source_campaign_labelsmatches the given string.search_target_campaign_labelsString
Only return results where
target_campaign_labelsmatches the given string.search_account_idString
Only return results where
account_idmatches the given string.search_account_nameString
Only return results where
account_namematches the given string.search_adspert_account_idString
Only return results where
adspert_account_idmatches the given string.search_message_detailsString
Only return results where
message_detailsmatches the given string.search_message_titleString
Only return results where
message_titlematches the given string.search_source_campaign_idString
Only return results where
source_campaign_idmatches the given string.search_source_campaign_nameString
Only return results where
source_campaign_namematches the given string.search_target_campaign_idString
Only return results where
target_campaign_idmatches the given string.search_target_campaign_nameString
Only return results where
target_campaign_namematches the given string.sort_account_idSort results by
account_id.sort_account_nameSort results by
account_name.sort_account_platformSort results by
account_platform.sort_adspert_account_idSort results by
adspert_account_id.sort_source_adspert_campaign_idSort results by
source_adspert_campaign_id.sort_source_campaign_idSort results by
source_campaign_id.sort_source_campaign_nameSort results by
source_campaign_name.sort_target_adspert_campaign_idSort results by
target_adspert_campaign_id.sort_target_campaign_idSort results by
target_campaign_id.sort_target_campaign_nameSort results by
target_campaign_name.sort_timestampSort results by
timestamp.offsetInteger
Start index for result list.
Default: 0
Min value: 0
limitInteger
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
timestampmessage_titlesearchableString
message_detailssearchableString
adspert_account_idsearchableInteger
Adspert internal ID of the advertising account
account_idsearchableString
Ad platform specific ID of an advertising account.
account_namesearchableString
account_platformThe account’s advertising platform.
source_adspert_campaign_idAdspert internal ID of the campaign.
Composite ID specification:
{adspert_account_id}:{campaign_id}source_campaign_idsearchablesource_campaign_namesearchableString
target_adspert_campaign_idAdspert internal ID of the campaign.
Composite ID specification:
{adspert_account_id}:{campaign_id}target_campaign_idsearchabletarget_campaign_namesearchableString
Example
http
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
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..."
httpie
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..."
python-requests
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...'})
response
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
includeFields to include in response data.
excludeFields to exclude in response data.
filter_date_gerequiredOnly return results where
filter_date_geis equal or greater than this value.filter_date_lerequiredOnly return results where
filter_date_leis equal or lower than this value.filter_account_is_demo[ Boolean ]
Only return results matching given
account_is_demovalues.filter_account_optimize[ Boolean ]
Only return results matching given
account_optimizevalues.filter_account_tags_user[ String ]
Only return results matching given
account_tags_uservalues.filter_account_currency[ String ]
Only return results matching given
account_currencyvalues.filter_source_performance_group_id[ Integer ]
Only return results matching given
source_performance_group_idvalues.filter_source_performance_group_name[ String ]
Only return results matching given
source_performance_group_namevalues.filter_source_performance_group_enabled[ Boolean ]
Only return results matching given
source_performance_group_enabledvalues.filter_source_performance_group_optimization_type[ OptimizationType ]
Only return results matching given
source_performance_group_optimization_typevalues.filter_source_performance_group_goal_typesOnly return results matching given
source_performance_group_goal_typesvalues.filter_target_performance_group_id[ Integer ]
Only return results matching given
target_performance_group_idvalues.filter_target_performance_group_name[ String ]
Only return results matching given
target_performance_group_namevalues.filter_target_performance_group_enabled[ Boolean ]
Only return results matching given
target_performance_group_enabledvalues.filter_target_performance_group_optimization_type[ OptimizationType ]
Only return results matching given
target_performance_group_optimization_typevalues.filter_target_performance_group_goal_typesOnly return results matching given
target_performance_group_goal_typesvalues.filter_source_adspert_portfolio_id[ CompositeID ]
Only return results matching given
source_adspert_portfolio_idvalues.filter_source_amz_portfolio_id[ LargeInteger ]
Only return results matching given
source_amz_portfolio_idvalues.filter_source_amz_portfolio_name[ String ]
Only return results matching given
source_amz_portfolio_namevalues.filter_target_adspert_portfolio_id[ CompositeID ]
Only return results matching given
target_adspert_portfolio_idvalues.filter_target_amz_portfolio_id[ LargeInteger ]
Only return results matching given
target_amz_portfolio_idvalues.filter_target_amz_portfolio_name[ String ]
Only return results matching given
target_amz_portfolio_namevalues.filter_source_campaign_type[ CampaignType ]
Only return results matching given
source_campaign_typevalues.filter_source_campaign_eby_marketplace_id[ String ]
Only return results matching given
source_campaign_eby_marketplace_idvalues.filter_source_campaign_status[ CampaignStatus ]
Only return results matching given
source_campaign_statusvalues.filter_source_campaign_optimize[ Boolean ]
Only return results matching given
source_campaign_optimizevalues.filter_source_campaign_optimization_type[ OptimizationType ]
Only return results matching given
source_campaign_optimization_typevalues.filter_source_campaign_optimization_supportOnly return results matching given
source_campaign_optimization_supportvalues.filter_source_campaign_amz_targeting_typeOnly return results matching given
source_campaign_amz_targeting_typevalues.filter_source_campaign_labels[ String ]
Only return results matching given
source_campaign_labelsvalues.filter_target_campaign_type[ CampaignType ]
Only return results matching given
target_campaign_typevalues.filter_target_campaign_eby_marketplace_id[ String ]
Only return results matching given
target_campaign_eby_marketplace_idvalues.filter_target_campaign_status[ CampaignStatus ]
Only return results matching given
target_campaign_statusvalues.filter_target_campaign_optimize[ Boolean ]
Only return results matching given
target_campaign_optimizevalues.filter_target_campaign_optimization_type[ OptimizationType ]
Only return results matching given
target_campaign_optimization_typevalues.filter_target_campaign_optimization_supportOnly return results matching given
target_campaign_optimization_supportvalues.filter_target_campaign_amz_targeting_typeOnly return results matching given
target_campaign_amz_targeting_typevalues.filter_target_campaign_labels[ String ]
Only return results matching given
target_campaign_labelsvalues.filter_source_adgroup_status[ AdgroupStatus ]
Only return results matching given
source_adgroup_statusvalues.filter_source_adgroup_labels[ String ]
Only return results matching given
source_adgroup_labelsvalues.filter_target_adgroup_status[ AdgroupStatus ]
Only return results matching given
target_adgroup_statusvalues.filter_target_adgroup_labels[ String ]
Only return results matching given
target_adgroup_labelsvalues.filter_reasons[ SyncTargetReason ]
Only return results matching given
reasonsvalues.filter_source_campaign_wmt_targeting_typeOnly return results matching given
source_campaign_wmt_targeting_typevalues.filter_target_campaign_wmt_targeting_typeOnly return results matching given
target_campaign_wmt_targeting_typevalues.filter_account_id[ String ]
Only return results matching given
account_idvalues.filter_account_name[ String ]
Only return results matching given
account_namevalues.filter_account_platform[ AdPlatform ]
Only return results matching given
account_platformvalues.filter_action[ SyncTargetAction ]
Only return results matching given
actionvalues.filter_adspert_account_id[ Integer ]
Only return results matching given
adspert_account_idvalues.filter_source_adgroup_name[ String ]
Only return results matching given
source_adgroup_namevalues.filter_source_adspert_adgroup_id[ CompositeID ]
Only return results matching given
source_adspert_adgroup_idvalues.filter_source_adspert_campaign_id[ CompositeID ]
Only return results matching given
source_adspert_campaign_idvalues.filter_source_campaign_name[ String ]
Only return results matching given
source_campaign_namevalues.filter_target_adgroup_name[ String ]
Only return results matching given
target_adgroup_namevalues.filter_target_adspert_adgroup_id[ CompositeID ]
Only return results matching given
target_adspert_adgroup_idvalues.filter_target_adspert_campaign_id[ CompositeID ]
Only return results matching given
target_adspert_campaign_idvalues.filter_target_campaign_name[ String ]
Only return results matching given
target_campaign_namevalues.filter_user_id[ Integer ]
Only return results matching given
user_idvalues.search_fieldsFields that should be searched using the
search_term.search_termString
Search term used to search the
search_fields.search_account_tags_userString
Only return results where
account_tags_usermatches the given string.search_source_performance_group_nameString
Only return results where
source_performance_group_namematches the given string.search_source_amz_portfolio_nameString
Only return results where
source_amz_portfolio_namematches the given string.search_target_performance_group_nameString
Only return results where
target_performance_group_namematches the given string.search_target_amz_portfolio_nameString
Only return results where
target_amz_portfolio_namematches the given string.search_source_campaign_labelsString
Only return results where
source_campaign_labelsmatches the given string.search_target_campaign_labelsString
Only return results where
target_campaign_labelsmatches the given string.search_source_adgroup_labelsString
Only return results where
source_adgroup_labelsmatches the given string.search_target_adgroup_labelsString
Only return results where
target_adgroup_labelsmatches the given string.search_account_idString
Only return results where
account_idmatches the given string.search_account_nameString
Only return results where
account_namematches the given string.search_adspert_account_idString
Only return results where
adspert_account_idmatches the given string.search_message_detailsString
Only return results where
message_detailsmatches the given string.search_message_titleString
Only return results where
message_titlematches the given string.search_source_adgroup_idString
Only return results where
source_adgroup_idmatches the given string.search_source_adgroup_nameString
Only return results where
source_adgroup_namematches the given string.search_source_campaign_idString
Only return results where
source_campaign_idmatches the given string.search_source_campaign_nameString
Only return results where
source_campaign_namematches the given string.search_target_adgroup_idString
Only return results where
target_adgroup_idmatches the given string.search_target_adgroup_nameString
Only return results where
target_adgroup_namematches the given string.search_target_campaign_idString
Only return results where
target_campaign_idmatches the given string.search_target_campaign_nameString
Only return results where
target_campaign_namematches the given string.search_user_emailString
Only return results where
user_emailmatches the given string.search_user_nameString
Only return results where
user_namematches the given string.sort_account_idSort results by
account_id.sort_account_nameSort results by
account_name.sort_account_platformSort results by
account_platform.sort_adspert_account_idSort results by
adspert_account_id.sort_source_adgroup_idSort results by
source_adgroup_id.sort_source_adgroup_nameSort results by
source_adgroup_name.sort_source_adspert_adgroup_idSort results by
source_adspert_adgroup_id.sort_source_adspert_campaign_idSort results by
source_adspert_campaign_id.sort_source_campaign_idSort results by
source_campaign_id.sort_source_campaign_nameSort results by
source_campaign_name.sort_target_adgroup_idSort results by
target_adgroup_id.sort_target_adgroup_nameSort results by
target_adgroup_name.sort_target_adspert_adgroup_idSort results by
target_adspert_adgroup_id.sort_target_adspert_campaign_idSort results by
target_adspert_campaign_id.sort_target_campaign_idSort results by
target_campaign_id.sort_target_campaign_nameSort results by
target_campaign_name.sort_timestampSort results by
timestamp.sort_user_emailSort results by
user_email.sort_user_idSort results by
user_id.sort_user_nameSort results by
user_name.offsetInteger
Start index for result list.
Default: 0
Min value: 0
limitInteger
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
timestampactionreasons[ SyncTargetReason ]
user_idInteger
ID of the user who did the change.
Is
-1if change was made by Adspert.user_emailsearchableString
E-mail of the user who did the change. Is
nullif change was made by Adspert.user_namesearchableString
Concatenated name of the user.
message_titlesearchableString
message_detailssearchableString
adspert_account_idsearchableInteger
Adspert internal ID of the advertising account
account_idsearchableString
Ad platform specific ID of an advertising account.
account_namesearchableString
account_platformThe account’s advertising platform.
source_adspert_campaign_idAdspert internal ID of the campaign.
Composite ID specification:
{adspert_account_id}:{campaign_id}source_campaign_idsearchablesource_campaign_namesearchableString
source_adspert_adgroup_idAdspert internal ID of the adgroup.
Composite ID specification:
{adspert_account_id}:{adgroup_id}source_adgroup_idsearchablesource_adgroup_namesearchableString
target_adspert_campaign_idAdspert internal ID of the campaign.
Composite ID specification:
{adspert_account_id}:{campaign_id}target_campaign_idsearchabletarget_campaign_namesearchableString
target_adspert_adgroup_idAdspert internal ID of the adgroup.
Composite ID specification:
{adspert_account_id}:{adgroup_id}target_adgroup_idsearchabletarget_adgroup_namesearchableString
Example
http
GET /v3/customers/7027038674/product-ax/log/sync-targets?search_message_details=amet+vehicula&search_source_adgroup_name=amet+ipsum&filter_target_performance_group_goal_types=CLICKS-PER-DAY HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl
curl -i -X GET 'https://api.adspert.net/v3/customers/7027038674/product-ax/log/sync-targets?search_message_details=amet+vehicula&search_source_adgroup_name=amet+ipsum&filter_target_performance_group_goal_types=CLICKS-PER-DAY' -H "Accept: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
httpie
http 'https://api.adspert.net/v3/customers/7027038674/product-ax/log/sync-targets?search_message_details=amet+vehicula&search_source_adgroup_name=amet+ipsum&filter_target_performance_group_goal_types=CLICKS-PER-DAY' Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
python-requests
requests.get('https://api.adspert.net/v3/customers/7027038674/product-ax/log/sync-targets?search_message_details=amet+vehicula&search_source_adgroup_name=amet+ipsum&filter_target_performance_group_goal_types=CLICKS-PER-DAY', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
response
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": [ { "timestamp": "2018-10-21T16:45:23+02:00", "action": "CREATE", "reasons": [ "CREATE-CA-AMZ-CREATE-DESTINATION" ], "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
includeFields to include in response data.
excludeFields to exclude in response data.
filter_date_gerequiredOnly return results where
filter_date_geis equal or greater than this value.filter_date_lerequiredOnly return results where
filter_date_leis equal or lower than this value.Response Data (object list, json or csv or xlsx)
Name
Type
Description
user_idInteger
ID of the user who did the change.
Is
-1if change was made by Adspert.user_emailsearchableString
E-mail of the user who did the change. Is
nullif change was made by Adspert.user_namesearchableString
Concatenated name of the user.
Example
http
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
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..."
httpie
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..."
python-requests
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...'})
response
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
includeFields to include in response data.
excludeFields to exclude in response data.
filter_date_gerequiredOnly return results where
filter_date_geis equal or greater than this value.filter_date_lerequiredOnly return results where
filter_date_leis equal or lower than this value.filter_account_id[ String ]
Only return results matching given
source.account_idvalues.filter_account_is_demo[ Boolean ]
Only return results matching given
source.account_is_demovalues.filter_account_name[ String ]
Only return results matching given
source.account_namevalues.filter_account_optimize[ Boolean ]
Only return results matching given
source.account_optimizevalues.filter_account_platform[ AdPlatform ]
Only return results matching given
source.account_platformvalues.filter_account_tags_user[ String ]
Only return results matching given
source.account_tags_uservalues.filter_adspert_account_id[ Integer ]
Only return results matching given
source.adspert_account_idvalues.filter_criterion_name[ String ]
Only return results matching given
criterion_namevalues.filter_criterion_subtypeOnly return results matching given
criterion_subtypevalues.filter_criterion_typeOnly return results matching given
criterion_typevalues.filter_destination_adgroup_labels[ String ]
Only return results matching given
destinations.effective_destination.adgroup_labelsvalues.filter_destination_adgroup_name[ String ]
Only return results matching given
destinations.effective_destination.adgroup_namevalues.filter_destination_adgroup_status[ AdgroupStatus ]
Only return results matching given
destinations.effective_destination.adgroup_statusvalues.filter_destination_adspert_adgroup_id[ CompositeID ]
Only return results matching given
destinations.effective_destination.adspert_adgroup_idvalues.filter_destination_adspert_campaign_id[ CompositeID ]
Only return results matching given
destinations.effective_destination.adspert_campaign_idvalues.filter_destination_adspert_portfolio_id[ CompositeID ]
Only return results matching given
destinations.effective_destination.adspert_portfolio_idvalues.filter_destination_amz_portfolio_name[ String ]
Only return results matching given
destinations.effective_destination.amz_portfolio_namevalues.filter_destination_campaign_eby_marketplace_id[ String ]
Only return results matching given
destinations.effective_destination.campaign_eby_marketplace_idvalues.filter_destination_campaign_labels[ String ]
Only return results matching given
destinations.effective_destination.campaign_labelsvalues.filter_destination_campaign_name[ String ]
Only return results matching given
destinations.effective_destination.campaign_namevalues.filter_destination_campaign_optimization_supportOnly return results matching given
destinations.effective_destination.campaign_optimization_supportvalues.filter_destination_campaign_optimization_type[ OptimizationType ]
Only return results matching given
destinations.effective_destination.campaign_optimization_typevalues.filter_destination_campaign_optimize[ Boolean ]
Only return results matching given
destinations.effective_destination.campaign_optimizevalues.filter_destination_campaign_status[ CampaignStatus ]
Only return results matching given
destinations.effective_destination.campaign_statusvalues.filter_destination_campaign_type[ CampaignType ]
Only return results matching given
destinations.effective_destination.campaign_typevalues.filter_destination_id[ LargeInteger ]
Only return results matching given
destinations.destination_idvalues.filter_destination_match_typeOnly return results matching given
destinations.match_typevalues.filter_destination_negative[ Boolean ]
Only return results matching given
destinations.negativevalues.filter_destination_performance_group_enabled[ Boolean ]
Only return results matching given
destinations.effective_destination.performance_group_enabledvalues.filter_destination_performance_group_goal_typesOnly return results matching given
destinations.effective_destination.performance_group_goal_typesvalues.filter_destination_performance_group_id[ Integer ]
Only return results matching given
destinations.effective_destination.performance_group_idvalues.filter_destination_performance_group_name[ String ]
Only return results matching given
destinations.effective_destination.performance_group_namevalues.filter_destination_performance_group_optimization_type[ OptimizationType ]
Only return results matching given
destinations.effective_destination.performance_group_optimization_typevalues.filter_destination_stateOnly return results matching given
destinations.statevalues.filter_destination_typeOnly return results matching given
destinations.destination_typevalues.filter_proposal_id[ LargeInteger ]
Only return results matching given
proposal_idvalues.filter_proposal_reasonsOnly return results matching given
proposal_reasonsvalues.filter_proposal_stateOnly return results matching given
proposal_statevalues.filter_proposal_typeOnly return results matching given
proposal_typevalues.filter_rule_type_id[ Integer ]
Only return results matching given
rule_type_idvalues.filter_source_adgroup_labels[ String ]
Only return results matching given
source.adgroup_labelsvalues.filter_source_adgroup_name[ String ]
Only return results matching given
source.adgroup_namevalues.filter_source_adgroup_status[ AdgroupStatus ]
Only return results matching given
source.adgroup_statusvalues.filter_source_adspert_adgroup_id[ CompositeID ]
Only return results matching given
source.adspert_adgroup_idvalues.filter_source_adspert_campaign_id[ CompositeID ]
Only return results matching given
source.adspert_campaign_idvalues.filter_source_adspert_portfolio_id[ CompositeID ]
Only return results matching given
source.adspert_portfolio_idvalues.filter_source_amz_portfolio_name[ String ]
Only return results matching given
source.amz_portfolio_namevalues.filter_source_campaign_eby_marketplace_id[ String ]
Only return results matching given
source.campaign_eby_marketplace_idvalues.filter_source_campaign_labels[ String ]
Only return results matching given
source.campaign_labelsvalues.filter_source_campaign_name[ String ]
Only return results matching given
source.campaign_namevalues.filter_source_campaign_optimization_supportOnly return results matching given
source.campaign_optimization_supportvalues.filter_source_campaign_optimization_type[ OptimizationType ]
Only return results matching given
source.campaign_optimization_typevalues.filter_source_campaign_optimize[ Boolean ]
Only return results matching given
source.campaign_optimizevalues.filter_source_campaign_status[ CampaignStatus ]
Only return results matching given
source.campaign_statusvalues.filter_source_campaign_type[ CampaignType ]
Only return results matching given
source.campaign_typevalues.filter_source_performance_group_enabled[ Boolean ]
Only return results matching given
source.performance_group_enabledvalues.filter_source_performance_group_goal_typesOnly return results matching given
source.performance_group_goal_typesvalues.filter_source_performance_group_id[ Integer ]
Only return results matching given
source.performance_group_idvalues.filter_source_performance_group_name[ String ]
Only return results matching given
source.performance_group_namevalues.filter_source_performance_group_optimization_type[ OptimizationType ]
Only return results matching given
source.performance_group_optimization_typevalues.filter_user_id[ Integer ]
Only return results matching given
user_idvalues.search_fieldsFields that should be searched using the
search_term.search_termString
Search term used to search the
search_fields.search_account_idString
Only return results where
source.account_idmatches the given string.search_account_nameString
Only return results where
source.account_namematches the given string.search_account_tags_userString
Only return results where
source.account_tags_usermatches the given string.search_adspert_account_idString
Only return results where
source.adspert_account_idmatches the given string.search_criterion_nameString
Only return results where
criterion_namematches the given string.search_destination_adgroup_idString
Only return results where
destinations.effective_destination.adgroup_idmatches the given string.search_destination_adgroup_labelsString
Only return results where
destinations.effective_destination.adgroup_labelsmatches the given string.search_destination_adgroup_nameString
Only return results where
destinations.effective_destination.adgroup_namematches the given string.search_destination_amz_portfolio_idString
Only return results where
destinations.effective_destination.amz_portfolio_idmatches the given string.search_destination_amz_portfolio_nameString
Only return results where
destinations.effective_destination.amz_portfolio_namematches the given string.search_destination_campaign_idString
Only return results where
destinations.effective_destination.campaign_idmatches the given string.search_destination_campaign_labelsString
Only return results where
destinations.effective_destination.campaign_labelsmatches the given string.search_destination_campaign_nameString
Only return results where
destinations.effective_destination.campaign_namematches the given string.search_destination_performance_group_idString
Only return results where
destinations.effective_destination.performance_group_idmatches the given string.search_destination_performance_group_nameString
Only return results where
destinations.effective_destination.performance_group_namematches the given string.search_source_adgroup_idString
Only return results where
source.adgroup_idmatches the given string.search_source_adgroup_labelsString
Only return results where
source.adgroup_labelsmatches the given string.search_source_adgroup_nameString
Only return results where
source.adgroup_namematches the given string.search_source_amz_portfolio_idString
Only return results where
source.amz_portfolio_idmatches the given string.search_source_amz_portfolio_nameString
Only return results where
source.amz_portfolio_namematches the given string.search_source_campaign_idString
Only return results where
source.campaign_idmatches the given string.search_source_campaign_labelsString
Only return results where
source.campaign_labelsmatches the given string.search_source_campaign_nameString
Only return results where
source.campaign_namematches the given string.search_source_performance_group_idString
Only return results where
source.performance_group_idmatches the given string.search_source_performance_group_nameString
Only return results where
source.performance_group_namematches the given string.search_user_emailString
Only return results where
user_emailmatches the given string.search_user_nameString
Only return results where
user_namematches the given string.sort_account_idSort results by
source.account_id.sort_account_is_demoSort results by
source.account_is_demo.sort_account_nameSort results by
source.account_name.sort_account_optimizeSort results by
source.account_optimize.sort_account_platformSort results by
source.account_platform.sort_adspert_account_idSort results by
source.adspert_account_id.sort_criterion_nameSort results by
criterion_name.sort_criterion_subtypeSort results by
criterion_subtype.sort_criterion_typeSort results by
criterion_type.sort_proposal_idSort results by
proposal_id.sort_proposal_stateSort results by
proposal_state.sort_proposal_typeSort results by
proposal_type.sort_rule_type_idSort results by
rule_type_id.sort_source_adgroup_idSort results by
source.adgroup_id.sort_source_adgroup_nameSort results by
source.adgroup_name.sort_source_adgroup_statusSort results by
source.adgroup_status.sort_source_adspert_adgroup_idSort results by
source.adspert_adgroup_id.sort_source_adspert_campaign_idSort results by
source.adspert_campaign_id.sort_source_adspert_portfolio_idSort results by
source.adspert_portfolio_id.sort_source_amz_portfolio_idSort results by
source.amz_portfolio_id.sort_source_amz_portfolio_nameSort results by
source.amz_portfolio_name.sort_source_campaign_eby_marketplace_idSort results by
source.campaign_eby_marketplace_id.sort_source_campaign_idSort results by
source.campaign_id.sort_source_campaign_nameSort results by
source.campaign_name.sort_source_campaign_optimization_supportSort results by
source.campaign_optimization_support.sort_source_campaign_optimization_typeSort results by
source.campaign_optimization_type.sort_source_campaign_optimizeSort results by
source.campaign_optimize.sort_source_campaign_statusSort results by
source.campaign_status.sort_source_campaign_typeSort results by
source.campaign_type.sort_source_performance_group_enabledSort results by
source.performance_group_enabled.sort_source_performance_group_goal_typesSort results by
source.performance_group_goal_types.sort_source_performance_group_idSort results by
source.performance_group_id.sort_source_performance_group_nameSort results by
source.performance_group_name.sort_source_performance_group_optimization_typeSort results by
source.performance_group_optimization_type.sort_timestampSort results by
timestamp.sort_user_emailSort results by
user_email.sort_user_idSort results by
user_id.sort_user_nameSort results by
user_name.offsetInteger
Start index for result list.
Default: 0
Min value: 0
limitInteger
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
timestampuser_idInteger
ID of the user who did the change.
Is
-1if proposal was made by Adspert.user_emailsearchableString
NULL if proposal was made by Adspert.
user_namesearchableString
Adspert user if proposal was made by Adspert.
proposal_idUnique ID of the proposal.
proposal_typeType of the proposal.
proposal_reasonsA list of reasons why the proposal was generated.
proposal_stateState of the proposal.
rule_type_idInteger
Id of the matched Rule Type.
criterion_namesearchableString
Name of criterion proposed to be created.
criterion_typeType of criterion proposed to be created.
criterion_subtypeSubtype of criterion proposed to be created.
destinations[ Object ]
⤷
destination_id⤷
state⤷
rule_snapshot_idId of the snapshot of the rule that defined current destination.
NULLif destination had been created by the user.⤷
destination_type⤷
match_typeKeyword match type.
This field is populated only for destinations that belong to proposals where
criterion_typeisKEYWORD.⤷
negativeBoolean
Is the criterion created for this destination supposed to be negative?
⤷
rejection_reasonString
⤷
failure_reasonString
⤷
criterion_idCriterion id that was created for this destination.
NULL when state is not added.
⤷
effective_destinationObject
Details about the effective destination adgroup.
⤷
performance_group_idsearchableInteger
Unique ID of the performance group
⤷
performance_group_namesearchableString
Unique name of the performance group.
⤷
performance_group_enabledBoolean
⤷
performance_group_optimization_typeOptimization 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_typeType of the performance group goal
⤷
goal_valueFloat
Value of the performance group goal.
goal_valueshould beNULLifgoal_typeisPROFIT-MAXIMIZATION.goal_valueshould be a ratio (> 0) ifgoal_typeisROAS,CRRandROI,goal_valueshould be specified in micros and be larger than 10000 ifgoal_typeisCOST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICK.⤷
goal_currencyCurrency of the performance group goal.
Currency is required for
COST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICKgoals.⤷
goal_microsValue for
COST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICKgoals.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_ratioFloat
Value for
ROAS,CRRandROIgoals.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_typesList of performance group goal types
⤷
adspert_portfolio_idAdspert internal ID of Amazon portfolio.
Composite ID specification:
{adspert_account_id}:{portfolio_id}⤷
amz_portfolio_idsearchable⤷
amz_portfolio_namesearchableString
⤷
adspert_campaign_idAdspert internal ID of the campaign.
Composite ID specification:
{adspert_account_id}:{campaign_id}⤷
campaign_idsearchable⤷
campaign_namesearchableString
⤷
campaign_type⤷
campaign_eby_marketplace_idString
⤷
campaign_status⤷
campaign_optimizeBoolean
⤷
campaign_optimization_type⤷
campaign_optimization_support⤷
campaign_labelssearchable[ String ]
⤷
adspert_adgroup_idAdspert internal ID of the adgroup.
Composite ID specification:
{adspert_account_id}:{adgroup_id}⤷
adgroup_idsearchable⤷
adgroup_namesearchableString
⤷
adgroup_status⤷
adgroup_labelssearchable[ String ]
sourceObject
⤷
adspert_account_idsearchableInteger
Adspert internal ID of the advertising account
⤷
account_idsearchableString
Ad platform specific ID of an advertising account.
⤷
account_namesearchableString
⤷
account_platformThe account’s advertising platform.
⤷
account_optimizeBoolean
If optimization by Adspert is enabled for this account.
⤷
account_tags_usersearchable[ String ]
⤷
account_is_demoBoolean
If the account is a generated account for demonstration purposes.
Demo accounts have no counterpart in the ad platform.
⤷
performance_group_idsearchableInteger
Unique ID of the performance group
⤷
performance_group_namesearchableString
Unique name of the performance group.
⤷
performance_group_enabledBoolean
⤷
performance_group_optimization_typeOptimization 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_typeType of the performance group goal
⤷
goal_valueFloat
Value of the performance group goal.
goal_valueshould beNULLifgoal_typeisPROFIT-MAXIMIZATION.goal_valueshould be a ratio (> 0) ifgoal_typeisROAS,CRRandROI,goal_valueshould be specified in micros and be larger than 10000 ifgoal_typeisCOST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICK.⤷
goal_currencyCurrency of the performance group goal.
Currency is required for
COST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICKgoals.⤷
goal_microsValue for
COST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICKgoals.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_ratioFloat
Value for
ROAS,CRRandROIgoals.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_typesList of performance group goal types
⤷
adspert_portfolio_idAdspert internal ID of Amazon portfolio.
Composite ID specification:
{adspert_account_id}:{portfolio_id}⤷
amz_portfolio_idsearchable⤷
amz_portfolio_namesearchableString
⤷
adspert_campaign_idAdspert internal ID of the campaign.
Composite ID specification:
{adspert_account_id}:{campaign_id}⤷
campaign_idsearchable⤷
campaign_namesearchableString
⤷
campaign_type⤷
campaign_eby_marketplace_idString
⤷
campaign_status⤷
campaign_optimizeBoolean
⤷
campaign_optimization_type⤷
campaign_optimization_support⤷
campaign_labelssearchable[ String ]
⤷
adspert_adgroup_idAdspert internal ID of the adgroup.
Composite ID specification:
{adspert_account_id}:{adgroup_id}⤷
adgroup_idsearchable⤷
adgroup_namesearchableString
⤷
adgroup_status⤷
adgroup_labelssearchable[ String ]
rule_snapshots[ Object ]
⤷
rule_snapshot_idId of the rule snapshot.
⤷
rule_idId of the rule that this snapshot was created for.
⤷
actionRule action at the time that the snapshot was generated.
⤷
filters[ Object ]
Rule filters at the time that the snapshot was generated.
⤷
operandRule filter operand.
⤷
operationRule filter operation.
⤷
values[ Any ]
Rule filter values.
⤷
catch_allBoolean
Rule
catch_allvalue at the time that the snapshot was generated.⤷
defined_atObject
Extra information about the location where snapshotted rule was defined at.
⤷
level⤷
platform⤷
adspert_account_idsearchableInteger
Adspert internal ID of the advertising account
⤷
account_idsearchableString
Ad platform specific ID of an advertising account.
⤷
account_namesearchableString
⤷
account_platformThe account’s advertising platform.
⤷
adspert_campaign_idAdspert internal ID of the campaign.
Composite ID specification:
{adspert_account_id}:{campaign_id}⤷
campaign_idsearchable⤷
campaign_namesearchableString
⤷
campaign_type⤷
adspert_adgroup_idAdspert internal ID of the adgroup.
Composite ID specification:
{adspert_account_id}:{adgroup_id}⤷
adgroup_idsearchable⤷
adgroup_namesearchableString
Example
http
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
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..."
httpie
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..."
python-requests
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...'})
response
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": 19990000, "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": 19990000, "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
includeFields to include in response data.
excludeFields to exclude in response data.
filter_date_gerequiredOnly return results where
filter_date_geis equal or greater than this value.filter_date_lerequiredOnly return results where
filter_date_leis equal or lower than this value.Response Data (object list, json or csv or xlsx)
Name
Type
Description
user_idInteger
ID of the user who did the change.
Is
-1if change was made by Adspert.user_emailsearchableString
E-mail of the user who did the change. Is
nullif change was made by Adspert.user_namesearchableString
Concatenated name of the user.
Example
http
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
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..."
httpie
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..."
python-requests
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...'})
response
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
includeFields to include in response data.
excludeFields to exclude in response data.
filter_date_gerequiredOnly return results where
filter_date_geis equal or greater than this value.filter_date_lerequiredOnly return results where
filter_date_leis equal or lower than this value.Response Data (object list, json or csv or xlsx)
Name
Type
Description
destination_stateExample
http
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
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..."
httpie
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..."
python-requests
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...'})
response
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
includeFields to include in response data.
excludeFields to exclude in response data.
filter_date_gerequiredOnly return results where
filter_date_geis equal or greater than this value.filter_date_lerequiredOnly return results where
filter_date_leis equal or lower than this value.filter_rule_type_id[ Integer ]
Only return results matching given
rule_type.rule_type_idvalues.filter_rule_levelOnly return results matching given
defined_at.levelvalues.filter_rule_platform[ AdPlatform ]
Only return results matching given
rule_type.platformvalues.filter_rule_campaign_typeOnly return results matching given
rule_type.campaign_typevalues.filter_proposal_typeOnly return results matching given
rule_type.proposal_typevalues.filter_criterion_typeOnly return results matching given
rule_type.criterion_typevalues.filter_criterion_subtypeOnly return results matching given
rule_type.criterion_subtypevalues.filter_account_id[ String ]
Only return results matching given
defined_at.account_idvalues.filter_account_is_demo[ Boolean ]
Only return results matching given
defined_at.account_is_demovalues.filter_account_name[ String ]
Only return results matching given
defined_at.account_namevalues.filter_account_optimize[ Boolean ]
Only return results matching given
defined_at.account_optimizevalues.filter_account_platform[ AdPlatform ]
Only return results matching given
defined_at.account_platformvalues.filter_account_tags_user[ String ]
Only return results matching given
defined_at.account_tags_uservalues.filter_adgroup_labels[ String ]
Only return results matching given
defined_at.adgroup_labelsvalues.filter_adgroup_name[ String ]
Only return results matching given
defined_at.adgroup_namevalues.filter_adgroup_status[ AdgroupStatus ]
Only return results matching given
defined_at.adgroup_statusvalues.filter_adspert_account_id[ Integer ]
Only return results matching given
defined_at.adspert_account_idvalues.filter_adspert_adgroup_id[ CompositeID ]
Only return results matching given
defined_at.adspert_adgroup_idvalues.filter_adspert_campaign_id[ CompositeID ]
Only return results matching given
defined_at.adspert_campaign_idvalues.filter_adspert_portfolio_id[ CompositeID ]
Only return results matching given
defined_at.adspert_portfolio_idvalues.filter_amz_portfolio_name[ String ]
Only return results matching given
defined_at.amz_portfolio_namevalues.filter_campaign_eby_marketplace_id[ String ]
Only return results matching given
defined_at.campaign_eby_marketplace_idvalues.filter_campaign_labels[ String ]
Only return results matching given
defined_at.campaign_labelsvalues.filter_campaign_name[ String ]
Only return results matching given
defined_at.campaign_namevalues.filter_campaign_optimization_supportOnly return results matching given
defined_at.campaign_optimization_supportvalues.filter_campaign_optimization_type[ OptimizationType ]
Only return results matching given
defined_at.campaign_optimization_typevalues.filter_campaign_optimize[ Boolean ]
Only return results matching given
defined_at.campaign_optimizevalues.filter_campaign_status[ CampaignStatus ]
Only return results matching given
defined_at.campaign_statusvalues.filter_campaign_type[ CampaignType ]
Only return results matching given
defined_at.campaign_typevalues.filter_log_actionOnly return results matching given
log_actionvalues.filter_log_reasonOnly return results matching given
log_reasonvalues.filter_performance_group_enabled[ Boolean ]
Only return results matching given
defined_at.performance_group_enabledvalues.filter_performance_group_goal_typesOnly return results matching given
defined_at.performance_group_goal_typesvalues.filter_performance_group_id[ Integer ]
Only return results matching given
defined_at.performance_group_idvalues.filter_performance_group_name[ String ]
Only return results matching given
defined_at.performance_group_namevalues.filter_performance_group_optimization_type[ OptimizationType ]
Only return results matching given
defined_at.performance_group_optimization_typevalues.filter_user_id[ Integer ]
Only return results matching given
user_idvalues.search_fieldsFields that should be searched using the
search_term.search_termString
Search term used to search the
search_fields.search_account_idString
Only return results where
defined_at.account_idmatches the given string.search_account_nameString
Only return results where
defined_at.account_namematches the given string.search_account_tags_userString
Only return results where
defined_at.account_tags_usermatches the given string.search_adgroup_idString
Only return results where
defined_at.adgroup_idmatches the given string.search_adgroup_labelsString
Only return results where
defined_at.adgroup_labelsmatches the given string.search_adgroup_nameString
Only return results where
defined_at.adgroup_namematches the given string.search_adspert_account_idString
Only return results where
defined_at.adspert_account_idmatches the given string.search_amz_portfolio_idString
Only return results where
defined_at.amz_portfolio_idmatches the given string.search_amz_portfolio_nameString
Only return results where
defined_at.amz_portfolio_namematches the given string.search_campaign_idString
Only return results where
defined_at.campaign_idmatches the given string.search_campaign_labelsString
Only return results where
defined_at.campaign_labelsmatches the given string.search_campaign_nameString
Only return results where
defined_at.campaign_namematches the given string.search_message_detailsString
Only return results where
message_detailsmatches the given string.search_message_titleString
Only return results where
message_titlematches the given string.search_performance_group_idString
Only return results where
defined_at.performance_group_idmatches the given string.search_performance_group_nameString
Only return results where
defined_at.performance_group_namematches the given string.search_user_emailString
Only return results where
user_emailmatches the given string.search_user_nameString
Only return results where
user_namematches the given string.sort_account_idSort results by
defined_at.account_id.sort_account_is_demoSort results by
defined_at.account_is_demo.sort_account_nameSort results by
defined_at.account_name.sort_account_optimizeSort results by
defined_at.account_optimize.sort_account_platformSort results by
defined_at.account_platform.sort_adgroup_idSort results by
defined_at.adgroup_id.sort_adgroup_nameSort results by
defined_at.adgroup_name.sort_adgroup_statusSort results by
defined_at.adgroup_status.sort_adspert_account_idSort results by
defined_at.adspert_account_id.sort_adspert_adgroup_idSort results by
defined_at.adspert_adgroup_id.sort_adspert_campaign_idSort results by
defined_at.adspert_campaign_id.sort_adspert_portfolio_idSort results by
defined_at.adspert_portfolio_id.sort_amz_portfolio_idSort results by
defined_at.amz_portfolio_id.sort_amz_portfolio_nameSort results by
defined_at.amz_portfolio_name.sort_campaign_eby_marketplace_idSort results by
defined_at.campaign_eby_marketplace_id.sort_campaign_idSort results by
defined_at.campaign_id.sort_campaign_nameSort results by
defined_at.campaign_name.sort_campaign_optimization_supportSort results by
defined_at.campaign_optimization_support.sort_campaign_optimization_typeSort results by
defined_at.campaign_optimization_type.sort_campaign_optimizeSort results by
defined_at.campaign_optimize.sort_campaign_statusSort results by
defined_at.campaign_status.sort_campaign_typeSort results by
defined_at.campaign_type.sort_performance_group_enabledSort results by
defined_at.performance_group_enabled.sort_performance_group_goal_typesSort results by
defined_at.performance_group_goal_types.sort_performance_group_idSort results by
defined_at.performance_group_id.sort_performance_group_nameSort results by
defined_at.performance_group_name.sort_performance_group_optimization_typeSort results by
defined_at.performance_group_optimization_type.sort_timestampSort results by
timestamp.sort_user_emailSort results by
user_email.sort_user_idSort results by
user_id.sort_user_nameSort results by
user_name.offsetInteger
Start index for result list.
Default: 0
Min value: 0
limitInteger
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
timestamplog_actionlog_reasonmessage_titlesearchableString
message_detailssearchableString
user_idInteger
ID of the user who did the change.
Is
-1if rule was made by Adspert.user_emailsearchableString
NULL if rule was made by Adspert.
user_namesearchableString
Adspert user if rule was made by Adspert.
rule_typeObject
⤷
rule_type_idInteger
Id of the Rule Type the ruleset is defined for.
⤷
platformPlatform that the Rule Type is defined for.
⤷
campaign_typeType of campaigns that the Rule Type is defined for.
⤷
proposal_typeType of the proposal.
⤷
criterion_typeType of criterion proposed to be created.
⤷
criterion_subtypeSubtype of criterion proposed to be created.
defined_atObject
⤷
levelLevel of the rule.
⤷
platformPlatform that the rule is defined for.
⤷
adspert_account_idsearchableInteger
Adspert internal ID of the advertising account
⤷
account_idsearchableString
Ad platform specific ID of an advertising account.
⤷
account_namesearchableString
⤷
account_platformThe account’s advertising platform.
⤷
account_optimizeBoolean
If optimization by Adspert is enabled for this account.
⤷
account_tags_usersearchable[ String ]
⤷
account_is_demoBoolean
If the account is a generated account for demonstration purposes.
Demo accounts have no counterpart in the ad platform.
⤷
performance_group_idsearchableInteger
Unique ID of the performance group
⤷
performance_group_namesearchableString
Unique name of the performance group.
⤷
performance_group_enabledBoolean
⤷
performance_group_optimization_typeOptimization 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_typeType of the performance group goal
⤷
goal_valueFloat
Value of the performance group goal.
goal_valueshould beNULLifgoal_typeisPROFIT-MAXIMIZATION.goal_valueshould be a ratio (> 0) ifgoal_typeisROAS,CRRandROI,goal_valueshould be specified in micros and be larger than 10000 ifgoal_typeisCOST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICK.⤷
goal_currencyCurrency of the performance group goal.
Currency is required for
COST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICKgoals.⤷
goal_microsValue for
COST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICKgoals.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_ratioFloat
Value for
ROAS,CRRandROIgoals.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_typesList of performance group goal types
⤷
adspert_portfolio_idAdspert internal ID of Amazon portfolio.
Composite ID specification:
{adspert_account_id}:{portfolio_id}⤷
amz_portfolio_idsearchable⤷
amz_portfolio_namesearchableString
⤷
adspert_campaign_idAdspert internal ID of the campaign.
Composite ID specification:
{adspert_account_id}:{campaign_id}⤷
campaign_idsearchable⤷
campaign_namesearchableString
⤷
campaign_type⤷
campaign_eby_marketplace_idString
⤷
campaign_status⤷
campaign_optimizeBoolean
⤷
campaign_optimization_type⤷
campaign_optimization_support⤷
campaign_labelssearchable[ String ]
⤷
adspert_adgroup_idAdspert internal ID of the adgroup.
Composite ID specification:
{adspert_account_id}:{adgroup_id}⤷
adgroup_idsearchable⤷
adgroup_namesearchableString
⤷
adgroup_status⤷
adgroup_labelssearchable[ String ]
newObject
Shows new/updated rule.
NULL if rule was deleted.
⤷
actionAction that Adspert is supposed to take when generating proposals that match this rule.
⤷
catch_allBoolean
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.
⤷
operandRule filter operand.
⤷
operationRule filter operation.
⤷
values[ Any ]
Rule filter values.
⤷
destinations[ Object ]
⤷
destination_id⤷
destination_type⤷
adspert_adgroup_idAdspert internal ID of the adgroup.
This field is populated only for
SELECTED-ADGROUPdestinations.Composite ID specification:
{adspert_account_id}:{adgroup_id}⤷
adgroup_idsearchableThis field is populated only for
SELECTED-ADGROUPdestinations.⤷
match_typeThis field is populated only for destinations that belong to
KEYWORDrules.⤷
negativeBoolean
⤷
created_at⤷
effective_destinationObject
Effective destination is available only for adgroup-level requests.
It’s NULL for all other levels.
⤷
campaign_idsearchable⤷
adspert_campaign_idAdspert internal ID of the campaign.
Composite ID specification:
{adspert_account_id}:{campaign_id}⤷
campaign_namesearchableString
⤷
adgroup_idsearchable⤷
adgroup_namesearchableString
⤷
adspert_adgroup_idAdspert internal ID of the adgroup.
Composite ID specification:
{adspert_account_id}:{adgroup_id}⤷
product_ad_sync_modeThis 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_matchesInteger
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_totalInteger
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_ratioFloat
Ratio of shared and total unique product ads between source and target AdGroups.
product_ads_matches/product_ads_totalNULL if any of the two AdGroups are not auto/manual SP.
oldObject
Shows old/deleted rule.
NULL if rule was created.
⤷
actionAction that Adspert is supposed to take when generating proposals that match this rule.
⤷
catch_allBoolean
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.
⤷
operandRule filter operand.
⤷
operationRule filter operation.
⤷
values[ Any ]
Rule filter values.
⤷
destinations[ Object ]
⤷
destination_id⤷
destination_type⤷
adspert_adgroup_idAdspert internal ID of the adgroup.
This field is populated only for
SELECTED-ADGROUPdestinations.Composite ID specification:
{adspert_account_id}:{adgroup_id}⤷
adgroup_idsearchableThis field is populated only for
SELECTED-ADGROUPdestinations.⤷
match_typeThis field is populated only for destinations that belong to
KEYWORDrules.⤷
negativeBoolean
⤷
created_at⤷
effective_destinationObject
Effective destination is available only for adgroup-level requests.
It’s NULL for all other levels.
⤷
campaign_idsearchable⤷
adspert_campaign_idAdspert internal ID of the campaign.
Composite ID specification:
{adspert_account_id}:{campaign_id}⤷
campaign_namesearchableString
⤷
adgroup_idsearchable⤷
adgroup_namesearchableString
⤷
adspert_adgroup_idAdspert internal ID of the adgroup.
Composite ID specification:
{adspert_account_id}:{adgroup_id}⤷
product_ad_sync_modeThis 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_matchesInteger
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_totalInteger
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_ratioFloat
Ratio of shared and total unique product ads between source and target AdGroups.
product_ads_matches/product_ads_totalNULL if any of the two AdGroups are not auto/manual SP.
Example
http
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
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..."
httpie
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..."
python-requests
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...'})
response
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": 19990000, "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
includeFields to include in response data.
excludeFields to exclude in response data.
filter_date_gerequiredOnly return results where
filter_date_geis equal or greater than this value.filter_date_lerequiredOnly return results where
filter_date_leis equal or lower than this value.Response Data (object list, json or csv or xlsx)
Name
Type
Description
user_idInteger
ID of the user who did the change.
Is
-1if change was made by Adspert.user_emailsearchableString
E-mail of the user who did the change. Is
nullif change was made by Adspert.user_namesearchableString
Concatenated name of the user.
Example
http
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
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..."
httpie
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..."
python-requests
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...'})
response
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
includeFields to include in response data.
excludeFields to exclude in response data.
filter_date_gerequiredOnly return results where
filter_date_geis equal or greater than this value.filter_date_lerequiredOnly return results where
filter_date_leis equal or lower than this value.filter_account_id[ String ]
Only return results matching given
account_idvalues.filter_account_is_demo[ Boolean ]
Only return results matching given
account_is_demovalues.filter_account_name[ String ]
Only return results matching given
account_namevalues.filter_account_optimize[ Boolean ]
Only return results matching given
account_optimizevalues.filter_account_platform[ AdPlatform ]
Only return results matching given
account_platformvalues.filter_account_tags_user[ String ]
Only return results matching given
account_tags_uservalues.filter_adspert_account_id[ Integer ]
Only return results matching given
adspert_account_idvalues.filter_adspert_campaign_id[ CompositeID ]
Only return results matching given
adspert_campaign_idvalues.filter_adspert_portfolio_id[ CompositeID ]
Only return results matching given
adspert_portfolio_idvalues.filter_amz_portfolio_name[ String ]
Only return results matching given
amz_portfolio_namevalues.filter_campaign_eby_marketplace_id[ String ]
Only return results matching given
campaign_eby_marketplace_idvalues.filter_campaign_labels[ String ]
Only return results matching given
campaign_labelsvalues.filter_campaign_name[ String ]
Only return results matching given
campaign_namevalues.filter_campaign_optimization_supportOnly return results matching given
campaign_optimization_supportvalues.filter_campaign_optimization_type[ OptimizationType ]
Only return results matching given
campaign_optimization_typevalues.filter_campaign_optimize[ Boolean ]
Only return results matching given
campaign_optimizevalues.filter_campaign_status[ CampaignStatus ]
Only return results matching given
campaign_statusvalues.filter_campaign_type[ CampaignType ]
Only return results matching given
campaign_typevalues.filter_object_typeOnly return results matching given
object_typevalues.filter_opt_setting_type[ OptSettingsType ]
Only return results matching given
opt_setting_typevalues.filter_performance_group_enabled[ Boolean ]
Only return results matching given
performance_group_enabledvalues.filter_performance_group_goal_typesOnly return results matching given
performance_group_goal_typesvalues.filter_performance_group_id[ Integer ]
Only return results matching given
performance_group_idvalues.filter_performance_group_name[ String ]
Only return results matching given
performance_group_namevalues.filter_performance_group_optimization_type[ OptimizationType ]
Only return results matching given
performance_group_optimization_typevalues.filter_user_id[ Integer ]
Only return results matching given
user_idvalues.search_fieldsFields that should be searched using the
search_term.search_termString
Search term used to search the
search_fields.search_account_idString
Only return results where
account_idmatches the given string.search_account_nameString
Only return results where
account_namematches the given string.search_account_tags_userString
Only return results where
account_tags_usermatches the given string.search_adspert_account_idString
Only return results where
adspert_account_idmatches the given string.search_amz_portfolio_idString
Only return results where
amz_portfolio_idmatches the given string.search_amz_portfolio_nameString
Only return results where
amz_portfolio_namematches the given string.search_campaign_idString
Only return results where
campaign_idmatches the given string.search_campaign_labelsString
Only return results where
campaign_labelsmatches the given string.search_campaign_nameString
Only return results where
campaign_namematches the given string.search_message_detailsString
Only return results where
message_detailsmatches the given string.search_message_titleString
Only return results where
message_titlematches the given string.search_performance_group_idString
Only return results where
performance_group_idmatches the given string.search_performance_group_nameString
Only return results where
performance_group_namematches the given string.search_user_emailString
Only return results where
user_emailmatches the given string.search_user_nameString
Only return results where
user_namematches the given string.sort_account_idSort results by
account_id.sort_account_is_demoSort results by
account_is_demo.sort_account_nameSort results by
account_name.sort_account_optimizeSort results by
account_optimize.sort_account_platformSort results by
account_platform.sort_adspert_account_idSort results by
adspert_account_id.sort_adspert_campaign_idSort results by
adspert_campaign_id.sort_adspert_portfolio_idSort results by
adspert_portfolio_id.sort_amz_portfolio_idSort results by
amz_portfolio_id.sort_amz_portfolio_nameSort results by
amz_portfolio_name.sort_campaign_eby_marketplace_idSort results by
campaign_eby_marketplace_id.sort_campaign_idSort results by
campaign_id.sort_campaign_nameSort results by
campaign_name.sort_campaign_optimization_supportSort results by
campaign_optimization_support.sort_campaign_optimization_typeSort results by
campaign_optimization_type.sort_campaign_optimizeSort results by
campaign_optimize.sort_campaign_statusSort results by
campaign_status.sort_campaign_typeSort results by
campaign_type.sort_log_idSort results by
log_id.sort_opt_setting_typeSort results by
opt_setting_type.sort_performance_group_enabledSort results by
performance_group_enabled.sort_performance_group_goal_typesSort results by
performance_group_goal_types.sort_performance_group_idSort results by
performance_group_id.sort_performance_group_nameSort results by
performance_group_name.sort_performance_group_optimization_typeSort results by
performance_group_optimization_type.sort_timestampSort results by
timestamp.sort_user_emailSort results by
user_email.sort_user_idSort results by
user_id.sort_user_nameSort results by
user_name.offsetInteger
Start index for result list.
Default: 0
Min value: 0
limitInteger
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_idchangelog_idDEPRECATED:Uselog_id.timestampmessage_titlesearchableString
message_detailssearchableString
opt_setting_typeOptimization Setting types, e.g. conversion_value, conversion_value_type etc.
object_typeOptimization Settings Log scope, e.g. campaign and account.
account_idsearchableString
Ad platform specific ID of an advertising account.
adspert_account_idsearchableInteger
Adspert internal ID of the advertising account
account_platformThe account’s advertising platform.
account_namesearchableString
account_is_demoBoolean
If the account is a generated account for demonstration purposes.
Demo accounts have no counterpart in the ad platform.
account_optimizeBoolean
If optimization by Adspert is enabled for this account.
account_tags_usersearchable[ String ]
adspert_campaign_idAdspert internal ID of the campaign.
Composite ID specification:
{adspert_account_id}:{campaign_id}campaign_namesearchableString
campaign_typecampaign_eby_marketplace_idString
campaign_statuscampaign_optimizeBoolean
campaign_optimization_typecampaign_optimization_supportcampaign_labelssearchable[ String ]
campaign_idsearchableperformance_group_idsearchableInteger
Unique ID of the performance group
performance_group_namesearchableString
Unique name of the performance group.
performance_group_enabledBoolean
performance_group_optimization_typeOptimization 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_typeType of the performance group goal
⤷
goal_valueFloat
Value of the performance group goal.
goal_valueshould beNULLifgoal_typeisPROFIT-MAXIMIZATION.goal_valueshould be a ratio (> 0) ifgoal_typeisROAS,CRRandROI,goal_valueshould be specified in micros and be larger than 10000 ifgoal_typeisCOST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICK.⤷
goal_currencyCurrency of the performance group goal.
Currency is required for
COST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICKgoals.⤷
goal_microsValue for
COST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICKgoals.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_ratioFloat
Value for
ROAS,CRRandROIgoals.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_typesList of performance group goal types
adspert_portfolio_idAdspert internal ID of Amazon portfolio.
Composite ID specification:
{adspert_account_id}:{portfolio_id}amz_portfolio_idsearchableamz_portfolio_namesearchableString
user_idInteger
ID of the user who did the change.
Is
-1if change was made by Adspert.user_emailsearchableString
E-mail of the user who did the change. Is
nullif change was made by Adspert.user_namesearchableString
Concatenated name of the user.
Example
http
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
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..."
httpie
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..."
python-requests
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...'})
response
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": 19990000, "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
includeFields to include in response data.
excludeFields to exclude in response data.
filter_date_gerequiredOnly return results where
filter_date_geis equal or greater than this value.filter_date_lerequiredOnly return results where
filter_date_leis equal or lower than this value.Response Data (object list, json or csv or xlsx)
Name
Type
Description
user_idInteger
ID of the user who did the change.
Is
-1if change was made by Adspert.user_emailsearchableString
E-mail of the user who did the change. Is
nullif change was made by Adspert.user_namesearchableString
Concatenated name of the user.
Example
http
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
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..."
httpie
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..."
python-requests
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...'})
response
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
includeFields to include in response data.
excludeFields to exclude in response data.
filter_date_geOnly return results where
filter_date_geis equal or greater than this value.filter_date_leOnly return results where
filter_date_leis equal or lower than this value.filter_account_currency[ String ]
Only return results matching given
account_currencyvalues.filter_account_id[ String ]
Only return results matching given
account_idvalues.filter_account_is_demo[ Boolean ]
Only return results matching given
account_is_demovalues.filter_account_name[ String ]
Only return results matching given
account_namevalues.filter_account_optimize[ Boolean ]
Only return results matching given
account_optimizevalues.filter_account_platform[ AdPlatform ]
Only return results matching given
account_platformvalues.filter_account_tags_user[ String ]
Only return results matching given
account_tags_uservalues.filter_adspert_account_id[ Integer ]
Only return results matching given
adspert_account_idvalues.filter_adspert_campaign_id[ CompositeID ]
Only return results matching given
adspert_campaign_idvalues.filter_adspert_portfolio_id[ CompositeID ]
Only return results matching given
adspert_portfolio_idvalues.filter_amz_portfolio_name[ String ]
Only return results matching given
amz_portfolio_namevalues.filter_budget_id[ Integer ]
Only return results matching given
budget_idvalues.filter_campaign_eby_marketplace_id[ String ]
Only return results matching given
campaign_eby_marketplace_idvalues.filter_campaign_labels[ String ]
Only return results matching given
campaign_labelsvalues.filter_campaign_name[ String ]
Only return results matching given
campaign_namevalues.filter_campaign_optimization_supportOnly return results matching given
campaign_optimization_supportvalues.filter_campaign_optimization_type[ OptimizationType ]
Only return results matching given
campaign_optimization_typevalues.filter_campaign_optimize[ Boolean ]
Only return results matching given
campaign_optimizevalues.filter_campaign_status[ CampaignStatus ]
Only return results matching given
campaign_statusvalues.filter_campaign_type[ CampaignType ]
Only return results matching given
campaign_typevalues.filter_performance_group_enabled[ Boolean ]
Only return results matching given
performance_group_enabledvalues.filter_performance_group_goal_typesOnly return results matching given
performance_group_goal_typesvalues.filter_performance_group_id[ Integer ]
Only return results matching given
performance_group_idvalues.filter_performance_group_name[ String ]
Only return results matching given
performance_group_namevalues.filter_performance_group_optimization_type[ OptimizationType ]
Only return results matching given
performance_group_optimization_typevalues.filter_stateOnly return results matching given
statevalues.filter_suggestion_id[ Integer ]
Only return results matching given
suggestion_idvalues.filter_user_id[ Integer ]
Only return results matching given
user_idvalues.search_fieldsFields that should be searched using the
search_term.search_termString
Search term used to search the
search_fields.search_account_idString
Only return results where
account_idmatches the given string.search_account_nameString
Only return results where
account_namematches the given string.search_account_tags_userString
Only return results where
account_tags_usermatches the given string.search_adspert_account_idString
Only return results where
adspert_account_idmatches the given string.search_amz_portfolio_idString
Only return results where
amz_portfolio_idmatches the given string.search_amz_portfolio_nameString
Only return results where
amz_portfolio_namematches the given string.search_campaign_idString
Only return results where
campaign_idmatches the given string.search_campaign_labelsString
Only return results where
campaign_labelsmatches the given string.search_campaign_nameString
Only return results where
campaign_namematches the given string.search_message_detailsString
Only return results where
message_detailsmatches the given string.search_message_titleString
Only return results where
message_titlematches the given string.search_performance_group_idString
Only return results where
performance_group_idmatches the given string.search_performance_group_nameString
Only return results where
performance_group_namematches the given string.search_stateString
Only return results where
statematches the given string.search_user_emailString
Only return results where
user_emailmatches the given string.search_user_nameString
Only return results where
user_namematches the given string.sort_account_currencySort results by
account_currency.sort_account_idSort results by
account_id.sort_account_is_demoSort results by
account_is_demo.sort_account_nameSort results by
account_name.sort_account_optimizeSort results by
account_optimize.sort_account_platformSort results by
account_platform.sort_adspert_account_idSort results by
adspert_account_id.sort_adspert_campaign_idSort results by
adspert_campaign_id.sort_adspert_portfolio_idSort results by
adspert_portfolio_id.sort_amz_portfolio_idSort results by
amz_portfolio_id.sort_amz_portfolio_nameSort results by
amz_portfolio_name.sort_budget_idSort results by
budget_id.sort_campaign_eby_marketplace_idSort results by
campaign_eby_marketplace_id.sort_campaign_idSort results by
campaign_id.sort_campaign_nameSort results by
campaign_name.sort_campaign_optimization_supportSort results by
campaign_optimization_support.sort_campaign_optimization_typeSort results by
campaign_optimization_type.sort_campaign_optimizeSort results by
campaign_optimize.sort_campaign_statusSort results by
campaign_status.sort_campaign_typeSort results by
campaign_type.sort_performance_group_enabledSort results by
performance_group_enabled.sort_performance_group_goal_typesSort results by
performance_group_goal_types.sort_performance_group_idSort results by
performance_group_id.sort_performance_group_nameSort results by
performance_group_name.sort_performance_group_optimization_typeSort results by
performance_group_optimization_type.sort_stateSort results by
state.sort_suggestion_idSort results by
suggestion_id.sort_timestampSort results by
timestamp.sort_user_emailSort results by
user_email.sort_user_idSort results by
user_id.sort_user_nameSort results by
user_name.offsetInteger
Start index for result list.
Default: 0
Min value: 0
limitInteger
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
timestampstatesearchableState of a Budget Submission.
user_idInteger
ID of the user who did the change.
Is
-1if change was made by Adspert.user_emailsearchableString
E-mail of the user who did the change. Is
nullif change was made by Adspert.user_namesearchableString
Concatenated name of the user.
message_titlesearchableString
message_detailssearchableString
adspert_account_idsearchableInteger
Adspert internal ID of the advertising account
account_idsearchableString
Ad platform specific ID of an advertising account.
account_namesearchableString
account_platformThe account’s advertising platform.
account_optimizeBoolean
If optimization by Adspert is enabled for this account.
account_tags_usersearchable[ String ]
account_is_demoBoolean
If the account is a generated account for demonstration purposes.
Demo accounts have no counterpart in the ad platform.
account_currencyString
adspert_campaign_idAdspert internal ID of the campaign.
Composite ID specification:
{adspert_account_id}:{campaign_id}campaign_idsearchablecampaign_namesearchableString
campaign_typecampaign_eby_marketplace_idString
campaign_statuscampaign_optimizeBoolean
campaign_optimization_typecampaign_optimization_supportcampaign_labelssearchable[ String ]
performance_group_idsearchableInteger
Unique ID of the performance group
performance_group_namesearchableString
Unique name of the performance group.
performance_group_enabledBoolean
performance_group_optimization_typeOptimization 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_typeType of the performance group goal
⤷
goal_valueFloat
Value of the performance group goal.
goal_valueshould beNULLifgoal_typeisPROFIT-MAXIMIZATION.goal_valueshould be a ratio (> 0) ifgoal_typeisROAS,CRRandROI,goal_valueshould be specified in micros and be larger than 10000 ifgoal_typeisCOST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICK.⤷
goal_currencyCurrency of the performance group goal.
Currency is required for
COST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICKgoals.⤷
goal_microsValue for
COST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICKgoals.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_ratioFloat
Value for
ROAS,CRRandROIgoals.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_typesList of performance group goal types
adspert_portfolio_idAdspert internal ID of Amazon portfolio.
Composite ID specification:
{adspert_account_id}:{portfolio_id}amz_portfolio_idsearchableamz_portfolio_namesearchableString
suggestion_idInteger
Unique identifier for the suggestion
budget_idInteger
Budget ID associated with the suggestion
budget_approvedApproved budget in account currency.
budget_suggestedSuggested budget in account currency.
Example
http
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
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..."
httpie
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..."
python-requests
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...'})
response
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": 19990000, "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": 19990000, "budget_suggested": 19990000 } ], "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
includeFields to include in response data.
excludeFields to exclude in response data.
filter_date_gerequiredOnly return results where
filter_date_geis equal or greater than this value.filter_date_lerequiredOnly return results where
filter_date_leis equal or lower than this value.Response Data (object list, json or csv or xlsx)
Name
Type
Description
user_idInteger
ID of the user who did the change.
Is
-1if change was made by Adspert.user_emailsearchableString
E-mail of the user who did the change. Is
nullif change was made by Adspert.user_namesearchableString
Concatenated name of the user.
Example
http
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
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..."
httpie
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..."
python-requests
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...'})
response
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": {} }
Optimization Log & Stats
BiddingLogCollection
GET
- GET /v3/accounts/(adspert_account_id: int)/log/bidding
Retrieve bids changed by Adspert.
Query Params
Name
Type
Description
includeFields to include in response data.
excludeFields to exclude in response data.
filter_adgroup_id[ LargeInteger ]
Only return results matching given
adgroup_idvalues.filter_adgroup_labels[ String ]
Only return results matching given
adgroup_labelsvalues.filter_adgroup_name[ String ]
Only return results matching given
adgroup_namevalues.filter_adgroup_status[ AdgroupStatus ]
Only return results matching given
adgroup_statusvalues.filter_amz_portfolio_name[ String ]
Only return results matching given
amz_portfolio_namevalues.filter_bid_increased[ Boolean ]
Only return results matching given
bid_increasedvalues.filter_bid_type[ BidType ]
Only return results matching given
bid_typevalues.filter_campaign_eby_marketplace_id[ String ]
Only return results matching given
campaign_eby_marketplace_idvalues.filter_campaign_id[ LargeInteger ]
Only return results matching given
campaign_idvalues.filter_campaign_labels[ String ]
Only return results matching given
campaign_labelsvalues.filter_campaign_name[ String ]
Only return results matching given
campaign_namevalues.filter_campaign_optimization_supportOnly return results matching given
campaign_optimization_supportvalues.filter_campaign_optimization_type[ OptimizationType ]
Only return results matching given
campaign_optimization_typevalues.filter_campaign_optimize[ Boolean ]
Only return results matching given
campaign_optimizevalues.filter_campaign_status[ CampaignStatus ]
Only return results matching given
campaign_statusvalues.filter_campaign_type[ CampaignType ]
Only return results matching given
campaign_typevalues.filter_criterion_id[ LargeInteger ]
Only return results matching given
criterion_idvalues.filter_criterion_match_typeOnly return results matching given
criterion_match_typevalues.filter_criterion_name[ String ]
Only return results matching given
criterion_namevalues.filter_criterion_status[ CriterionStatus ]
Only return results matching given
criterion_statusvalues.filter_criterion_type[ CriterionType ]
Only return results matching given
criterion_typevalues.filter_date_geOnly return results where
dateis equal or greater than this value.filter_date_leOnly return results where
dateis equal or lower than this value.filter_performance_group_enabled[ Boolean ]
Only return results matching given
performance_group_enabledvalues.filter_performance_group_goal_typesOnly return results matching given
performance_group_goal_typesvalues.filter_performance_group_id[ Integer ]
Only return results matching given
performance_group_idvalues.filter_performance_group_name[ String ]
Only return results matching given
performance_group_namevalues.filter_performance_group_optimization_type[ OptimizationType ]
Only return results matching given
performance_group_optimization_typevalues.search_fieldsFields that should be searched using the
search_term.search_termString
Search term used to search the
search_fields.search_adgroup_idString
Only return results where
adgroup_idmatches the given string.search_adgroup_labelsString
Only return results where
adgroup_labelsmatches the given string.search_adgroup_nameString
Only return results where
adgroup_namematches the given string.search_amz_portfolio_idString
Only return results where
amz_portfolio_idmatches the given string.search_amz_portfolio_nameString
Only return results where
amz_portfolio_namematches the given string.search_campaign_idString
Only return results where
campaign_idmatches the given string.search_campaign_labelsString
Only return results where
campaign_labelsmatches the given string.search_campaign_nameString
Only return results where
campaign_namematches the given string.search_criterion_idString
Only return results where
criterion_idmatches the given string.search_criterion_nameString
Only return results where
criterion_namematches the given string.search_performance_group_idString
Only return results where
performance_group_idmatches the given string.search_performance_group_nameString
Only return results where
performance_group_namematches the given string.sort_adgroup_idSort results by
adgroup_id.sort_adgroup_nameSort results by
adgroup_name.sort_adgroup_statusSort results by
adgroup_status.sort_amz_portfolio_idSort results by
amz_portfolio_id.sort_amz_portfolio_nameSort results by
amz_portfolio_name.sort_bid_newSort results by
bid_new.sort_bid_oldSort results by
bid_old.sort_bid_typeSort results by
bid_type.sort_campaign_eby_marketplace_idSort results by
campaign_eby_marketplace_id.sort_campaign_idSort results by
campaign_id.sort_campaign_nameSort results by
campaign_name.sort_campaign_optimization_supportSort results by
campaign_optimization_support.sort_campaign_optimization_typeSort results by
campaign_optimization_type.sort_campaign_optimizeSort results by
campaign_optimize.sort_campaign_statusSort results by
campaign_status.sort_campaign_typeSort results by
campaign_type.sort_criterion_idSort results by
criterion_id.sort_criterion_match_typeSort results by
criterion_match_type.sort_criterion_nameSort results by
criterion_name.sort_criterion_statusSort results by
criterion_status.sort_criterion_typeSort results by
criterion_type.sort_dateSort results by
date.sort_performance_group_enabledSort results by
performance_group_enabled.sort_performance_group_goal_typesSort results by
performance_group_goal_types.sort_performance_group_idSort results by
performance_group_id.sort_performance_group_nameSort results by
performance_group_name.sort_performance_group_optimization_typeSort results by
performance_group_optimization_type.sort_timestampSort results by
timestamp.offsetInteger
Start index for result list.
Default: 0
Min value: 0
limitInteger
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
timestampdatebid_typebid_oldbid_newbid_increasedBoolean
campaign_idsearchablecampaign_namesearchableString
campaign_typecampaign_eby_marketplace_idString
campaign_statuscampaign_optimizeBoolean
campaign_optimization_typecampaign_optimization_supportcampaign_labelssearchable[ String ]
performance_group_idsearchableInteger
Unique ID of the performance group
performance_group_namesearchableString
Unique name of the performance group.
performance_group_enabledBoolean
performance_group_optimization_typeOptimization 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_typeType of the performance group goal
⤷
goal_valueFloat
Value of the performance group goal.
goal_valueshould beNULLifgoal_typeisPROFIT-MAXIMIZATION.goal_valueshould be a ratio (> 0) ifgoal_typeisROAS,CRRandROI,goal_valueshould be specified in micros and be larger than 10000 ifgoal_typeisCOST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICK.⤷
goal_currencyCurrency of the performance group goal.
Currency is required for
COST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICKgoals.⤷
goal_microsValue for
COST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICKgoals.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_ratioFloat
Value for
ROAS,CRRandROIgoals.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_typesList of performance group goal types
amz_portfolio_idsearchableamz_portfolio_namesearchableString
adgroup_idsearchableadgroup_namesearchableString
adgroup_statusadgroup_labelssearchable[ String ]
criterion_statuscriterion_idsearchablecriterion_match_typeMatch type of
Keywordcriterion.NULL if
criterion_typeis notKeyword.criterion_namesearchableString
criterion_typeExample
http
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
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..."
httpie
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..."
python-requests
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...'})
response
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": 19990000, "bid_new": 19990000, "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": 19990000, "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
includeFields to include in response data.
excludeFields to exclude in response data.
filter_adgroup_id[ LargeInteger ]
Only return results matching given
adgroup_idvalues.filter_adgroup_labels[ String ]
Only return results matching given
adgroup_labelsvalues.filter_adgroup_name[ String ]
Only return results matching given
adgroup_namevalues.filter_adgroup_status[ AdgroupStatus ]
Only return results matching given
adgroup_statusvalues.filter_amz_portfolio_name[ String ]
Only return results matching given
amz_portfolio_namevalues.filter_bid_modifier_increase[ Boolean ]
Only return results matching given
bid_modifier_increasevalues.filter_campaign_eby_marketplace_id[ String ]
Only return results matching given
campaign_eby_marketplace_idvalues.filter_campaign_id[ LargeInteger ]
Only return results matching given
campaign_idvalues.filter_campaign_labels[ String ]
Only return results matching given
campaign_labelsvalues.filter_campaign_name[ String ]
Only return results matching given
campaign_namevalues.filter_campaign_optimization_supportOnly return results matching given
campaign_optimization_supportvalues.filter_campaign_optimization_type[ OptimizationType ]
Only return results matching given
campaign_optimization_typevalues.filter_campaign_optimize[ Boolean ]
Only return results matching given
campaign_optimizevalues.filter_campaign_status[ CampaignStatus ]
Only return results matching given
campaign_statusvalues.filter_campaign_type[ CampaignType ]
Only return results matching given
campaign_typevalues.filter_date_geOnly return results where
dateis equal or greater than this value.filter_date_leOnly return results where
dateis equal or lower than this value.filter_dimension_type[ DimensionType ]
Only return results matching given
dimension_typevalues.filter_performance_group_enabled[ Boolean ]
Only return results matching given
performance_group_enabledvalues.filter_performance_group_goal_typesOnly return results matching given
performance_group_goal_typesvalues.filter_performance_group_id[ Integer ]
Only return results matching given
performance_group_idvalues.filter_performance_group_name[ String ]
Only return results matching given
performance_group_namevalues.filter_performance_group_optimization_type[ OptimizationType ]
Only return results matching given
performance_group_optimization_typevalues.search_fieldsFields that should be searched using the
search_term.search_termString
Search term used to search the
search_fields.search_adgroup_idString
Only return results where
adgroup_idmatches the given string.search_adgroup_labelsString
Only return results where
adgroup_labelsmatches the given string.search_adgroup_nameString
Only return results where
adgroup_namematches the given string.search_amz_portfolio_idString
Only return results where
amz_portfolio_idmatches the given string.search_amz_portfolio_nameString
Only return results where
amz_portfolio_namematches the given string.search_campaign_idString
Only return results where
campaign_idmatches the given string.search_campaign_labelsString
Only return results where
campaign_labelsmatches the given string.search_campaign_nameString
Only return results where
campaign_namematches the given string.search_dimension_nameString
Only return results where
dimension_namematches the given string.search_message_detailsString
Only return results where
message_detailsmatches the given string.search_message_titleString
Only return results where
message_titlematches the given string.search_performance_group_idString
Only return results where
performance_group_idmatches the given string.search_performance_group_nameString
Only return results where
performance_group_namematches the given string.sort_adgroup_idSort results by
adgroup_id.sort_adgroup_nameSort results by
adgroup_name.sort_adgroup_statusSort results by
adgroup_status.sort_amz_portfolio_idSort results by
amz_portfolio_id.sort_amz_portfolio_nameSort results by
amz_portfolio_name.sort_bid_modifier_increaseSort results by
bid_modifier_increase.sort_campaign_eby_marketplace_idSort results by
campaign_eby_marketplace_id.sort_campaign_idSort results by
campaign_id.sort_campaign_nameSort results by
campaign_name.sort_campaign_optimization_supportSort results by
campaign_optimization_support.sort_campaign_optimization_typeSort results by
campaign_optimization_type.sort_campaign_optimizeSort results by
campaign_optimize.sort_campaign_statusSort results by
campaign_status.sort_campaign_typeSort results by
campaign_type.sort_dateSort results by
date.sort_performance_group_enabledSort results by
performance_group_enabled.sort_performance_group_goal_typesSort results by
performance_group_goal_types.sort_performance_group_idSort results by
performance_group_id.sort_performance_group_nameSort results by
performance_group_name.sort_performance_group_optimization_typeSort results by
performance_group_optimization_type.sort_timestampSort results by
timestamp.offsetInteger
Start index for result list.
Default: 0
Min value: 0
limitInteger
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
timestampdatemessage_titlesearchableString
message_detailssearchableString
bid_modifier_oldInteger
bid_modifier_newInteger
dimension_namesearchableString
dimension_typebid_modifier_increaseBoolean
True if the bid adjustment has increased
campaign_idsearchablecampaign_namesearchableString
campaign_typecampaign_eby_marketplace_idString
campaign_statuscampaign_optimizeBoolean
campaign_optimization_typecampaign_optimization_supportcampaign_labelssearchable[ String ]
performance_group_idsearchableInteger
Unique ID of the performance group
performance_group_namesearchableString
Unique name of the performance group.
performance_group_enabledBoolean
performance_group_optimization_typeOptimization 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_typeType of the performance group goal
⤷
goal_valueFloat
Value of the performance group goal.
goal_valueshould beNULLifgoal_typeisPROFIT-MAXIMIZATION.goal_valueshould be a ratio (> 0) ifgoal_typeisROAS,CRRandROI,goal_valueshould be specified in micros and be larger than 10000 ifgoal_typeisCOST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICK.⤷
goal_currencyCurrency of the performance group goal.
Currency is required for
COST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICKgoals.⤷
goal_microsValue for
COST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICKgoals.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_ratioFloat
Value for
ROAS,CRRandROIgoals.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_typesList of performance group goal types
amz_portfolio_idsearchableamz_portfolio_namesearchableString
adgroup_idsearchableadgroup_namesearchableString
adgroup_statusadgroup_labelssearchable[ String ]
Example
http
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
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..."
httpie
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..."
python-requests
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...'})
response
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": 19990000, "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 } } } }
PlatformSettingLogCollection
GET
- GET /v3/accounts/(adspert_account_id: int)/log/platform-settings
Retrieve platform settings adjusted by Adspert.
Query Params
Name
Type
Description
includeFields to include in response data.
excludeFields to exclude in response data.
filter_adgroup_id[ LargeInteger ]
Only return results matching given
adgroup_idvalues.filter_adgroup_labels[ String ]
Only return results matching given
adgroup_labelsvalues.filter_adgroup_name[ String ]
Only return results matching given
adgroup_namevalues.filter_adgroup_status[ AdgroupStatus ]
Only return results matching given
adgroup_statusvalues.filter_amz_portfolio_name[ String ]
Only return results matching given
amz_portfolio_namevalues.filter_campaign_eby_marketplace_id[ String ]
Only return results matching given
campaign_eby_marketplace_idvalues.filter_campaign_id[ LargeInteger ]
Only return results matching given
campaign_idvalues.filter_campaign_labels[ String ]
Only return results matching given
campaign_labelsvalues.filter_campaign_name[ String ]
Only return results matching given
campaign_namevalues.filter_campaign_optimization_supportOnly return results matching given
campaign_optimization_supportvalues.filter_campaign_optimization_type[ OptimizationType ]
Only return results matching given
campaign_optimization_typevalues.filter_campaign_optimize[ Boolean ]
Only return results matching given
campaign_optimizevalues.filter_campaign_status[ CampaignStatus ]
Only return results matching given
campaign_statusvalues.filter_campaign_type[ CampaignType ]
Only return results matching given
campaign_typevalues.filter_criterion_id[ LargeInteger ]
Only return results matching given
criterion_idvalues.filter_criterion_match_typeOnly return results matching given
criterion_match_typevalues.filter_criterion_name[ String ]
Only return results matching given
criterion_namevalues.filter_criterion_status[ CriterionStatus ]
Only return results matching given
criterion_statusvalues.filter_criterion_type[ CriterionType ]
Only return results matching given
criterion_typevalues.filter_date_geOnly return results where
dateis equal or greater than this value.filter_date_leOnly return results where
dateis equal or lower than this value.filter_dimension_type[ DimensionType ]
Only return results matching given
dimension_typevalues.filter_performance_group_enabled[ Boolean ]
Only return results matching given
performance_group_enabledvalues.filter_performance_group_goal_typesOnly return results matching given
performance_group_goal_typesvalues.filter_performance_group_id[ Integer ]
Only return results matching given
performance_group_idvalues.filter_performance_group_name[ String ]
Only return results matching given
performance_group_namevalues.filter_performance_group_optimization_type[ OptimizationType ]
Only return results matching given
performance_group_optimization_typevalues.filter_setting_typeOnly return results matching given
setting_typevalues.search_fieldsFields that should be searched using the
search_term.search_termString
Search term used to search the
search_fields.search_adgroup_idString
Only return results where
adgroup_idmatches the given string.search_adgroup_labelsString
Only return results where
adgroup_labelsmatches the given string.search_adgroup_nameString
Only return results where
adgroup_namematches the given string.search_amz_portfolio_idString
Only return results where
amz_portfolio_idmatches the given string.search_amz_portfolio_nameString
Only return results where
amz_portfolio_namematches the given string.search_campaign_idString
Only return results where
campaign_idmatches the given string.search_campaign_labelsString
Only return results where
campaign_labelsmatches the given string.search_campaign_nameString
Only return results where
campaign_namematches the given string.search_criterion_idString
Only return results where
criterion_idmatches the given string.search_criterion_nameString
Only return results where
criterion_namematches the given string.search_message_detailsString
Only return results where
message_detailsmatches the given string.search_message_titleString
Only return results where
message_titlematches the given string.search_performance_group_idString
Only return results where
performance_group_idmatches the given string.search_performance_group_nameString
Only return results where
performance_group_namematches the given string.sort_adgroup_idSort results by
adgroup_id.sort_adgroup_nameSort results by
adgroup_name.sort_adgroup_statusSort results by
adgroup_status.sort_amz_portfolio_idSort results by
amz_portfolio_id.sort_amz_portfolio_nameSort results by
amz_portfolio_name.sort_campaign_eby_marketplace_idSort results by
campaign_eby_marketplace_id.sort_campaign_idSort results by
campaign_id.sort_campaign_nameSort results by
campaign_name.sort_campaign_optimization_supportSort results by
campaign_optimization_support.sort_campaign_optimization_typeSort results by
campaign_optimization_type.sort_campaign_optimizeSort results by
campaign_optimize.sort_campaign_statusSort results by
campaign_status.sort_campaign_typeSort results by
campaign_type.sort_criterion_idSort results by
criterion_id.sort_criterion_match_typeSort results by
criterion_match_type.sort_criterion_nameSort results by
criterion_name.sort_criterion_statusSort results by
criterion_status.sort_criterion_typeSort results by
criterion_type.sort_dateSort results by
date.sort_performance_group_enabledSort results by
performance_group_enabled.sort_performance_group_goal_typesSort results by
performance_group_goal_types.sort_performance_group_idSort results by
performance_group_id.sort_performance_group_nameSort results by
performance_group_name.sort_performance_group_optimization_typeSort results by
performance_group_optimization_type.sort_setting_typeSort results by
setting_type.sort_timestampSort results by
timestamp.offsetInteger
Start index for result list.
Default: 0
Min value: 0
limitInteger
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
timestampdatesetting_typedimension_typeNULL if setting_type is anything other than
DIMENSION-ADDorDIMENSION-REMOVEsetting_oldString
NULL if setting_type is
DIMENSION-ADDorDIMENSION-REMOVEsetting_newString
NULL if setting_type is
DIMENSION-ADDorDIMENSION-REMOVEmessage_titlesearchableString
message_detailssearchableString
campaign_idsearchablecampaign_namesearchableString
campaign_typecampaign_eby_marketplace_idString
campaign_statuscampaign_optimizeBoolean
campaign_optimization_typecampaign_optimization_supportcampaign_labelssearchable[ String ]
performance_group_idsearchableInteger
Unique ID of the performance group
performance_group_namesearchableString
Unique name of the performance group.
performance_group_enabledBoolean
performance_group_optimization_typeOptimization 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_typeType of the performance group goal
⤷
goal_valueFloat
Value of the performance group goal.
goal_valueshould beNULLifgoal_typeisPROFIT-MAXIMIZATION.goal_valueshould be a ratio (> 0) ifgoal_typeisROAS,CRRandROI,goal_valueshould be specified in micros and be larger than 10000 ifgoal_typeisCOST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICK.⤷
goal_currencyCurrency of the performance group goal.
Currency is required for
COST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICKgoals.⤷
goal_microsValue for
COST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICKgoals.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_ratioFloat
Value for
ROAS,CRRandROIgoals.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_typesList of performance group goal types
amz_portfolio_idsearchableamz_portfolio_namesearchableString
adgroup_idsearchableadgroup_namesearchableString
adgroup_statusadgroup_labelssearchable[ String ]
criterion_statuscriterion_idsearchablecriterion_match_typeMatch type of
Keywordcriterion.NULL if
criterion_typeis notKeyword.criterion_namesearchableString
criterion_typeExample
http
GET /v3/accounts/3420379091/log/platform-settings?sort_performance_group_id=7&search_campaign_name=lorem+tucan&sort_criterion_name=3 HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl
curl -i -X GET 'https://api.adspert.net/v3/accounts/3420379091/log/platform-settings?sort_performance_group_id=7&search_campaign_name=lorem+tucan&sort_criterion_name=3' -H "Accept: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
httpie
http 'https://api.adspert.net/v3/accounts/3420379091/log/platform-settings?sort_performance_group_id=7&search_campaign_name=lorem+tucan&sort_criterion_name=3' Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
python-requests
requests.get('https://api.adspert.net/v3/accounts/3420379091/log/platform-settings?sort_performance_group_id=7&search_campaign_name=lorem+tucan&sort_criterion_name=3', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
response
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", "setting_type": "AD-ROTATION", "dimension_type": "AGE", "setting_old": "pariatur adlora", "setting_new": "adlora ipsum", "message_title": "pariatur lorem", "message_details": "tucan sit", "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": 19990000, "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 } } } }
OptimizationStatsResource
GET
- GET /v3/preview/customers/(customer_id: int)/optimization-stats
-
Query Params
Name
Type
Description
includeFields to include in response data.
excludeFields to exclude in response data.
filter_adspert_account_id[ Integer ]
Only return results matching given
adspert_account_idvalues.filter_account_id[ String ]
Only return results matching given
account_idvalues.filter_account_name[ String ]
Only return results matching given
account_namevalues.filter_account_platform[ AdPlatform ]
Only return results matching given
account_platformvalues.filter_account_optimize[ Boolean ]
Only return results matching given
account_optimizevalues.filter_account_tags_user[ String ]
Only return results matching given
account_tags_uservalues.filter_account_is_demo[ Boolean ]
Only return results matching given
account_is_demovalues.filter_performance_group_id[ Integer ]
Only return results matching given
performance_group_idvalues.filter_performance_group_name[ String ]
Only return results matching given
performance_group_namevalues.filter_performance_group_enabled[ Boolean ]
Only return results matching given
performance_group_enabledvalues.filter_performance_group_optimization_type[ OptimizationType ]
Only return results matching given
performance_group_optimization_typevalues.filter_performance_group_goal_typesOnly return results matching given
performance_group_goal_typesvalues.filter_adspert_portfolio_id[ CompositeID ]
Only return results matching given
adspert_portfolio_idvalues.filter_amz_portfolio_name[ String ]
Only return results matching given
amz_portfolio_namevalues.filter_adspert_campaign_id[ CompositeID ]
Only return results matching given
adspert_campaign_idvalues.filter_campaign_name[ String ]
Only return results matching given
campaign_namevalues.filter_campaign_type[ CampaignType ]
Only return results matching given
campaign_typevalues.filter_campaign_eby_marketplace_id[ String ]
Only return results matching given
eby_marketplace_idvalues.filter_campaign_status[ CampaignStatus ]
Only return results matching given
campaign_statusvalues.filter_campaign_optimize[ Boolean ]
Only return results matching given
campaign_optimizevalues.filter_campaign_optimization_type[ OptimizationType ]
Only return results matching given
campaign_optimization_typevalues.filter_campaign_labels[ String ]
Only return results matching given
campaign_labelsvalues.filter_date_gerequiredAggregate data where
dateis on or after this date.filter_date_lerequiredAggregate data where
dateis on or before this date.search_account_idString
Only return results where
account_idmatches the given string.search_account_nameString
Only return results where
account_namematches the given string.search_account_tags_userString
Only return results where
account_tags_usermatches the given string.search_performance_group_nameString
Only return results where
performance_group_namematches the given string.search_portfolio_nameString
Only return results where
portfolio_namematches the given string.search_campaign_nameString
Only return results where
campaign_namematches the given string.Response Data (single object, json or csv or xlsx)
Name
Type
Description
optimized_campaignsInteger
Number of optimized campaigns.
added_biddable_criteriaInteger
Number of biddable criteria, added by Adspert.
added_negative_criteriaInteger
Number of negative criteria, added by Adspert.
added_criteria_clicksInteger
Number of clicks generated by criteria added by Adspert.
added_criteria_conversionsInteger
Number of conversions generated by criteria added by Adspert.
added_criteria_conversions_adjustedInteger
Number of conversions generated by criteria added by Adspert (adjusted for conversion delay).
submitted_bidsInteger
Number of bids submitted by Adspert.
submitted_bid_modifiersInteger
Number of bid modifiers submitted by Adspert.
Example
http
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
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..."
httpie
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..."
python-requests
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...'})
response
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
includeFields to include in response data.
excludeFields to exclude in response data.
filter_access_statusOnly return results matching given
access_statusvalues.filter_retail_account_id[ String ]
Only return results matching given
retail_account_idvalues.filter_retail_account_platform[ AdPlatform ]
Only return results matching given
retail_account_platformvalues.search_fieldsFields that should be searched using the
search_term.search_termString
Search term used to search the
search_fields.search_accountsString
Only return results where
accountsmatches the given string.search_retail_account_nameString
Only return results where
retail_account_namematches the given string.sort_access_statusSort results by
access_status.sort_retail_account_idSort results by
retail_account_id.sort_retail_account_nameSort results by
retail_account_name.sort_retail_account_platformSort results by
retail_account_platform.offsetInteger
Start index for result list.
Default: 0
Min value: 0
limitInteger
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_idString
Retail account id.
retail_account_namesearchableString
Retail account name.
retail_account_platformThe account’s advertising platform.
access_statusIndicates access to retail account platform.
accountssearchable[ Object ]
⤷
account_idString
⤷
account_nameString
Example
http
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
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..."
httpie
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..."
python-requests
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...'})
response
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 } } } }
Third Party Accounts
ThirdPartyAccountsCollection
GET
- GET /v3/customers/(customer_id: int)/third-party-accounts
-
Query Params
Name
Type
Description
includeFields to include in response data.
excludeFields to exclude in response data.
filter_access_statusOnly return results matching given
access_statusvalues.filter_customer_id[ Integer ]
Only return results matching given
customer_idvalues.filter_third_party_platformOnly return results matching given
third_party_platformvalues.search_fieldsFields that should be searched using the
search_term.search_termString
Search term used to search the
search_fields.search_accountsString
Only return results where
accountsmatches the given string.search_customer_idString
Only return results where
customer_idmatches the given string.sort_access_statusSort results by
access_status.sort_customer_idSort results by
customer_id.sort_third_party_platformSort results by
third_party_platform.offsetInteger
Start index for result list.
Default: 0
Min value: 0
limitInteger
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_idsearchableInteger
ID of the customer that this account belongs to.
third_party_platformaccess_statusIndicates access to Third Party Platform.
accountssearchable[ Object ]
⤷
account_idString
⤷
account_nameString
created_atTimestamp of when the third party account was connected.
archived_atTimestamp of when the third party account was scheduled for archival.
billing_amountIf
null, then the integration is not billed explicitly but included in the customer’s subscription. Otherwise it is billed explicitly with a fixed monthly fee of this amount.billing_currencyCurrency of the amount in
billing_amount.Example
http
GET /v3/customers/7027038674/third-party-accounts?sort_third_party_platform=-2&filter_access_status=NO-ACCESS&search_term=vehicula+ipsum HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl
curl -i -X GET 'https://api.adspert.net/v3/customers/7027038674/third-party-accounts?sort_third_party_platform=-2&filter_access_status=NO-ACCESS&search_term=vehicula+ipsum' -H "Accept: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
httpie
http 'https://api.adspert.net/v3/customers/7027038674/third-party-accounts?sort_third_party_platform=-2&filter_access_status=NO-ACCESS&search_term=vehicula+ipsum' Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
python-requests
requests.get('https://api.adspert.net/v3/customers/7027038674/third-party-accounts?sort_third_party_platform=-2&filter_access_status=NO-ACCESS&search_term=vehicula+ipsum', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
response
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": [ { "customer_id": 2022024680, "third_party_platform": "MERCHANTSPRING", "access_status": "NO-ACCESS", "accounts": [ { "account_id": "amet lorem", "account_name": "vehicula ipsum" } ], "created_at": "2018-10-21T16:45:23+02:00", "archived_at": "2018-10-21T16:45:23+02:00", "billing_amount": 19990000, "billing_currency": "EUR" } ], "meta": { "pagination": { "offset": 0, "limit": 10, "total": 74, "sort": { "customer_id": 1 } } } }
MerchantSpring
MerchantSpringResource
PATCH
- PATCH /v3/customers/(customer_id: int)/merchantspring
Removes a MerchantSpring Account’s flag for archival
Example
http
PATCH /v3/customers/7027038674/merchantspring HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl
curl -i -X PATCH https://api.adspert.net/v3/customers/7027038674/merchantspring -H "Accept: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
httpie
http PATCH https://api.adspert.net/v3/customers/7027038674/merchantspring Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
python-requests
requests.patch('https://api.adspert.net/v3/customers/7027038674/merchantspring', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
response
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": null, "meta": {} }
DELETE
- DELETE /v3/customers/(customer_id: int)/merchantspring
Flags a MerchantSpring Account for archival
Example
http
DELETE /v3/customers/7027038674/merchantspring HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl
curl -i -X DELETE https://api.adspert.net/v3/customers/7027038674/merchantspring -H "Accept: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
httpie
http DELETE https://api.adspert.net/v3/customers/7027038674/merchantspring Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
python-requests
requests.delete('https://api.adspert.net/v3/customers/7027038674/merchantspring', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
response
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": null, "meta": {} }
Currency Rates
CurrencyRateCollection
GET
- GET /v3/currency-rates
Retrieve a list of currency rates.
Query Params
Name
Type
Description
includeFields to include in response data.
excludeFields to exclude in response data.
filter_currency[ String ]
Only return results matching given
currencyvalues.search_fieldsFields that should be searched using the
search_term.search_termString
Search term used to search the
search_fields.sort_currencySort results by
currency.sort_rate_from_eurSort results by
rate_from_eur.offsetInteger
Start index for result list.
Default: 0
Min value: 0
limitInteger
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
currencyString
ISO 4217 currency code
rate_from_eurFloat
Exchange rate from EUR to
currencyExample
http
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
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..."
httpie
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..."
python-requests
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...'})
response
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
http
GET /v3/status HTTP/1.1 Host: api.adspert.net Accept: application/json
curl
curl -i -X GET https://api.adspert.net/v3/status -H "Accept: application/json"
httpie
http https://api.adspert.net/v3/status Accept:application/json
python-requests
requests.get('https://api.adspert.net/v3/status', headers={'Accept': 'application/json'})
response
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
http
GET /v3/status/worker HTTP/1.1 Host: api.adspert.net Accept: application/json
curl
curl -i -X GET https://api.adspert.net/v3/status/worker -H "Accept: application/json"
httpie
http https://api.adspert.net/v3/status/worker Accept:application/json
python-requests
requests.get('https://api.adspert.net/v3/status/worker', headers={'Accept': 'application/json'})
response
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": null, "meta": {} }
Constants and Enums
ConstantsResource
GET
- GET /v3/constants
Get general enums and constants used across the API.
Response Data (single object, json or csv or xlsx)
Name
Type
Description
metric_currencies[ ApiCurrency ]
invoice_currencies[ InvoiceCurrency ]
user_languages[ UserLanguage ]
invoice_languages[ InvoiceLanguage ]
customer_segments[ CustomerSegment ]
Example
http
GET /v3/constants HTTP/1.1 Host: api.adspert.net Accept: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5...
curl
curl -i -X GET https://api.adspert.net/v3/constants -H "Accept: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..."
httpie
http https://api.adspert.net/v3/constants Accept:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
python-requests
requests.get('https://api.adspert.net/v3/constants', headers={'Accept': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'})
response
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": { "metric_currencies": [ "AED" ], "invoice_currencies": [ "EUR" ], "user_languages": [ "DE" ], "invoice_languages": [ "DE" ], "customer_segments": [ "ENTERPRISE" ] }, "meta": {} }
Suggestions Feedback
User feedback on suggestions provided by Adspert
SuggestionsFeedbackCollection
POST
- POST /v3/customers/(customer_id: int)/suggestions-feedback
Create a new suggestions feedback record.
Request Data (single object, json or x-www-form-urlencoded)
Name
Type
Description
sourcerequiredThe source page where the feedback was provided (e.g., pg-assistant)
suggested_entityrequiredThe entity on which the feedback was provided (e.g., budget, goal etc.)
adspert_idInteger
request_idrequiredString
The request ID where the suggestion was actually provided by Adspert
contextrequiredObject
The actual suggestion that was provided to the user by Adspert
⤷
typeType of the warning
⤷
adspert_campaign_idAdspert internal ID of the campaign.
Composite ID specification:
{adspert_account_id}:{campaign_id}⤷
fix_suggestionObject
Suggested fix for this warning containing resource, entity, and recommended new value
⤷
entityString
The entity to be modified (e.g., “goal”)
⤷
goals[ Object ]
The goals to be modified. Only used for PG GOAL related warnings.
⤷
goal_typeType of the performance group goal
⤷
goal_valueFloat
Value of the performance group goal.
goal_valueshould beNULLifgoal_typeisPROFIT-MAXIMIZATION.goal_valueshould be a ratio (> 0) ifgoal_typeisROAS,CRRandROI,goal_valueshould be specified in micros and be larger than 10000 ifgoal_typeisCOST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICK.⤷
goal_currencyCurrency of the performance group goal.
Currency is required for
COST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICKgoals.⤷
goal_microsValue for
COST-PER-DAY,COST-PER-CONVERSIONandCOST-PER-CLICKgoals.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_ratioFloat
Value for
ROAS,CRRandROIgoals.Same as
goal_value, but in a properly typed field for easier client-side handling and improved representation in tabular response data like CSV.⤷
resourceThe resource being modified (e.g., “performance_group”)
⤷
budget_suggestion_idInteger
The ID of the budget suggestion to be used. Only used for BUDGET_TOO_LOW warning.
⤷
new_valueFloat
The new value to be used
⤷
performance_group_idInteger
Unique ID of the performance group
feedbackrequiredThe feedback provided by the user on the suggestion i.e. good, bad, ok
reasonString
The reason for the feedback
Response Data (single object, json or csv or xlsx)
Name
Type
Description
feedback_idInteger
The ID of the suggestions feedback record
Example
http
POST /v3/customers/7027038674/suggestions-feedback HTTP/1.1 Host: api.adspert.net Accept: application/json Content-Type: application/json Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5... { "source": "PG-ASSISTANT", "suggested_entity": "BUDGET", "adspert_id": 1931331423, "request_id": "tucan adlora", "context": { "type": "ACCOUNT-API-ACCESS-NONE", "adspert_campaign_id": "123:5555", "fix_suggestion": { "entity": "tucan dolor", "goals": [ { "goal_type": "CLICKS-PER-DAY", "goal_value": 1.41, "goal_currency": "AED", "goal_micros": 19990000, "goal_ratio": 8.77 } ], "resource": "BUDGET-SUGGESTION", "budget_suggestion_id": 7064736404, "new_value": 2.48 }, "performance_group_id": "1245" }, "feedback": "BAD", "reason": "pariatur tucan" }
curl
curl -i -X POST https://api.adspert.net/v3/customers/7027038674/suggestions-feedback -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Bearer 433126ffa47f453c21f26d9f15ea11f5..." --data-raw '{"adspert_id": 1931331423, "context": {"adspert_campaign_id": "123:5555", "fix_suggestion": {"budget_suggestion_id": 7064736404, "entity": "tucan dolor", "goals": [{"goal_type": "CLICKS-PER-DAY", "goal_value": 1.41, "goal_currency": "AED", "goal_micros": 19990000, "goal_ratio": 8.77}], "new_value": 2.48, "resource": "BUDGET-SUGGESTION"}, "performance_group_id": "1245", "type": "ACCOUNT-API-ACCESS-NONE"}, "feedback": "BAD", "reason": "pariatur tucan", "request_id": "tucan adlora", "source": "PG-ASSISTANT", "suggested_entity": "BUDGET"}'
httpie
echo '{ "adspert_id": 1931331423, "context": { "adspert_campaign_id": "123:5555", "fix_suggestion": { "budget_suggestion_id": 7064736404, "entity": "tucan dolor", "goals": [ { "goal_currency": "AED", "goal_micros": 19990000, "goal_ratio": 8.77, "goal_type": "CLICKS-PER-DAY", "goal_value": 1.41 } ], "new_value": 2.48, "resource": "BUDGET-SUGGESTION" }, "performance_group_id": "1245", "type": "ACCOUNT-API-ACCESS-NONE" }, "feedback": "BAD", "reason": "pariatur tucan", "request_id": "tucan adlora", "source": "PG-ASSISTANT", "suggested_entity": "BUDGET" }' | http POST https://api.adspert.net/v3/customers/7027038674/suggestions-feedback Accept:application/json Content-Type:application/json Authorization:"Bearer 433126ffa47f453c21f26d9f15ea11f5..."
python-requests
requests.post('https://api.adspert.net/v3/customers/7027038674/suggestions-feedback', headers={'Accept': 'application/json', 'Content-Type': 'application/json', 'Authorization': 'Bearer 433126ffa47f453c21f26d9f15ea11f5...'}, json={'adspert_id': 1931331423, 'context': {'adspert_campaign_id': '123:5555', 'fix_suggestion': {'budget_suggestion_id': 7064736404, 'entity': 'tucan dolor', 'goals': [{'goal_type': 'CLICKS-PER-DAY', 'goal_value': 1.41, 'goal_currency': 'AED', 'goal_micros': 19990000, 'goal_ratio': 8.77}], 'new_value': 2.48, 'resource': 'BUDGET-SUGGESTION'}, 'performance_group_id': '1245', 'type': 'ACCOUNT-API-ACCESS-NONE'}, 'feedback': 'BAD', 'reason': 'pariatur tucan', 'request_id': 'tucan adlora', 'source': 'PG-ASSISTANT', 'suggested_entity': 'BUDGET'})
response
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": { "feedback_id": 57832100 }, "meta": {} }
Web hook endpoints for external services
StripeWebHookResource
POST
- POST /v3/hooks/stripe
Example
http
POST /v3/hooks/stripe HTTP/1.1 Host: api.adspert.net Accept: application/json
curl
curl -i -X POST https://api.adspert.net/v3/hooks/stripe -H "Accept: application/json"
httpie
http POST https://api.adspert.net/v3/hooks/stripe Accept:application/json
python-requests
requests.post('https://api.adspert.net/v3/hooks/stripe', headers={'Accept': 'application/json'})
response
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
http
GET /v3/hooks/ebay/delete-notifications HTTP/1.1 Host: api.adspert.net Accept: application/json
curl
curl -i -X GET https://api.adspert.net/v3/hooks/ebay/delete-notifications -H "Accept: application/json"
httpie
http https://api.adspert.net/v3/hooks/ebay/delete-notifications Accept:application/json
python-requests
requests.get('https://api.adspert.net/v3/hooks/ebay/delete-notifications', headers={'Accept': 'application/json'})
response
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": null, "meta": {} }
POST
- POST /v3/hooks/ebay/delete-notifications
Example
http
POST /v3/hooks/ebay/delete-notifications HTTP/1.1 Host: api.adspert.net Accept: application/json
curl
curl -i -X POST https://api.adspert.net/v3/hooks/ebay/delete-notifications -H "Accept: application/json"
httpie
http POST https://api.adspert.net/v3/hooks/ebay/delete-notifications Accept:application/json
python-requests
requests.post('https://api.adspert.net/v3/hooks/ebay/delete-notifications', headers={'Accept': 'application/json'})
response
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
http
GET /v3/hooks/ebay/budget-status-notifications HTTP/1.1 Host: api.adspert.net Accept: application/json
curl
curl -i -X GET https://api.adspert.net/v3/hooks/ebay/budget-status-notifications -H "Accept: application/json"
httpie
http https://api.adspert.net/v3/hooks/ebay/budget-status-notifications Accept:application/json
python-requests
requests.get('https://api.adspert.net/v3/hooks/ebay/budget-status-notifications', headers={'Accept': 'application/json'})
response
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
http
POST /v3/hooks/ebay/budget-status-notifications HTTP/1.1 Host: api.adspert.net Accept: application/json
curl
curl -i -X POST https://api.adspert.net/v3/hooks/ebay/budget-status-notifications -H "Accept: application/json"
httpie
http POST https://api.adspert.net/v3/hooks/ebay/budget-status-notifications Accept:application/json
python-requests
requests.post('https://api.adspert.net/v3/hooks/ebay/budget-status-notifications', headers={'Accept': 'application/json'})
response
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": null, "meta": {} }
MerchantSpringHookResource
POST
- POST /v3/hooks/merchantspring
Example
http
POST /v3/hooks/merchantspring HTTP/1.1 Host: api.adspert.net Accept: application/json
curl
curl -i -X POST https://api.adspert.net/v3/hooks/merchantspring -H "Accept: application/json"
httpie
http POST https://api.adspert.net/v3/hooks/merchantspring Accept:application/json
python-requests
requests.post('https://api.adspert.net/v3/hooks/merchantspring', headers={'Accept': 'application/json'})
response
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": null, "meta": {} }
SentryErrorsWebHookResource
POST
- POST /v3/hooks/sentry
Example
http
POST /v3/hooks/sentry HTTP/1.1 Host: api.adspert.net Accept: application/json
curl
curl -i -X POST https://api.adspert.net/v3/hooks/sentry -H "Accept: application/json"
httpie
http POST https://api.adspert.net/v3/hooks/sentry Accept:application/json
python-requests
requests.post('https://api.adspert.net/v3/hooks/sentry', headers={'Accept': 'application/json'})
response
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": null, "meta": {} }
SentryCommentsWebHookResource
POST
- POST /v3/hooks/sentry-comments
Example
http
POST /v3/hooks/sentry-comments HTTP/1.1 Host: api.adspert.net Accept: application/json
curl
curl -i -X POST https://api.adspert.net/v3/hooks/sentry-comments -H "Accept: application/json"
httpie
http POST https://api.adspert.net/v3/hooks/sentry-comments Accept:application/json
python-requests
requests.post('https://api.adspert.net/v3/hooks/sentry-comments', headers={'Accept': 'application/json'})
response
HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "message": "OK", "data": null, "meta": {} }