All URIs are relative to https://api.criteo.com/marketing
Method | HTTP request | Description |
---|---|---|
create_seller_budgets | POST /v2/crp/budgets | Create a collection of budgets. |
create_seller_campaigns_by_seller | POST /v2/crp/sellers/{sellerId}/seller-campaigns | Create a SellerCampaign |
create_sellers | POST /v2/crp/advertisers/{advertiserId}/sellers | Create new sellers for an advertiser |
get_advertiser | GET /v2/crp/advertisers/{advertiserId} | Get an advertiser. |
get_advertiser_campaigns | GET /v2/crp/advertisers/{advertiserId}/campaigns | Get the collection of CRP campaigns associated with the advertiserId. |
get_advertiser_preview_limits | GET /v2/crp/advertisers/preview-limit | Get the collection of advertisers preview limits associated with the authorized user. |
get_advertisers | GET /v2/crp/advertisers | Get the collection of advertisers associated with the user. |
get_budgets_by_advertiser | GET /v2/crp/advertisers/{advertiserId}/budgets | Get CRP budgets for a specific advertiser |
get_budgets_by_seller | GET /v2/crp/sellers/{sellerId}/budgets | Get a collection of budgets for this seller. |
get_budgets_by_seller_campaign_id | GET /v2/crp/seller-campaigns/{sellerCampaignId}/budgets | Get a collection of budgets for this seller campaign. |
get_seller | GET /v2/crp/sellers/{sellerId} | Get details for a seller. |
get_seller_ad_demo | GET /v2/crp/advertisers/{advertiserId}/ad-preview | Get a preview of an HTML ad with products belonging to the provided seller |
get_seller_budget | GET /v2/crp/budgets/{budgetId} | Get details for a budget. |
get_seller_budgets | GET /v2/crp/budgets | Get a collection of budgets. |
get_seller_campaign | GET /v2/crp/seller-campaigns/{sellerCampaignId} | Get details for a seller campaign. |
get_seller_campaigns | GET /v2/crp/seller-campaigns | Get a collection of seller campaigns. |
get_seller_campaigns_by_advertiser | GET /v2/crp/advertisers/{advertiserId}/seller-campaigns | Get CRP seller-campaigns for a specific advertiser |
get_seller_campaigns_by_seller | GET /v2/crp/sellers/{sellerId}/seller-campaigns | Get a collection of seller campaigns for this seller. |
get_sellers | GET /v2/crp/sellers | Get a collection of sellers. |
update_seller_budget | PATCH /v2/crp/budgets/{budgetId} | Modify a single budget. |
update_seller_budgets | PATCH /v2/crp/budgets | Modify a collection of budgets. |
update_seller_campaign | PATCH /v2/crp/seller-campaigns/{sellerCampaignId} | Update an existing seller campaign. |
update_seller_campaigns | PATCH /v2/crp/seller-campaigns | Update a collection of seller campaigns. |
list[SellerBudgetMessage] create_seller_budgets(authorization, create_seller_budgets)
Create a collection of budgets.
Create one or more new budgets to enable spending with the given limitations. All three types of budgets can be created this way. The following constraints apply when creating a new budget. • sellerId: the seller MUST be supplied
• campaignIds: a non-empty array of campaign ids MUST be supplied
• budgetType: a budget type MUST be supplied
• amount: an amount MAY be supplied only if the type is not Uncapped and if supplied it MUST be non-negative
• startDate: a future start date MUST be supplied
• endDate: an end date MAY be supplied and if supplied MUST be greater than the start date
Other attributes MUST NOT be supplied.
- Api Key Authentication (Authorization):
from __future__ import print_function
import time
import criteo_marketing
from criteo_marketing.rest import ApiException
from pprint import pprint
configuration = criteo_marketing.Configuration()
# Configure API key authorization: Authorization
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization'] = 'Bearer'
# Defining host is optional and default to https://api.criteo.com/marketing
configuration.host = "https://api.criteo.com/marketing"
# Create an instance of the API class
api_instance = criteo_marketing.SellersV2Api(criteo_marketing.ApiClient(configuration))
authorization = 'Bearer VALID_JWT_TOKEN_BASE64' # str | JWT Bearer Token (default to 'Bearer VALID_JWT_TOKEN_BASE64')
create_seller_budgets = [criteo_marketing.CreateSellerBudgetMapiMessage()] # list[CreateSellerBudgetMapiMessage] |
try:
# Create a collection of budgets.
api_response = api_instance.create_seller_budgets(authorization, create_seller_budgets)
pprint(api_response)
except ApiException as e:
print("Exception when calling SellersV2Api->create_seller_budgets: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
authorization | str | JWT Bearer Token | [default to 'Bearer VALID_JWT_TOKEN_BASE64'] |
create_seller_budgets | list[CreateSellerBudgetMapiMessage] |
- Content-Type: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded, text/html
- Accept: application/json, text/json, application/xml, text/xml, text/html
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
401 | Authentication failed. | - |
403 | You do not have access to the requested records | - |
429 | Throttling failure. Maximum sending rate exceeded. | - |
500 | Unknown error. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SellerCampaignMessage create_seller_campaigns_by_seller(seller_id, authorization, seller_campaign)
Create a SellerCampaign
Associate an existing Seller with an existing Campaign allowing for budget creation
- Api Key Authentication (Authorization):
from __future__ import print_function
import time
import criteo_marketing
from criteo_marketing.rest import ApiException
from pprint import pprint
configuration = criteo_marketing.Configuration()
# Configure API key authorization: Authorization
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization'] = 'Bearer'
# Defining host is optional and default to https://api.criteo.com/marketing
configuration.host = "https://api.criteo.com/marketing"
# Create an instance of the API class
api_instance = criteo_marketing.SellersV2Api(criteo_marketing.ApiClient(configuration))
seller_id = 'seller_id_example' # str | Supply a generated Id of an existing Seller
authorization = 'Bearer VALID_JWT_TOKEN_BASE64' # str | JWT Bearer Token (default to 'Bearer VALID_JWT_TOKEN_BASE64')
seller_campaign = criteo_marketing.CreateSellerCampaignMessageMapi() # CreateSellerCampaignMessageMapi | Supply the campaign Id and bid to create the mapping
try:
# Create a SellerCampaign
api_response = api_instance.create_seller_campaigns_by_seller(seller_id, authorization, seller_campaign)
pprint(api_response)
except ApiException as e:
print("Exception when calling SellersV2Api->create_seller_campaigns_by_seller: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
seller_id | str | Supply a generated Id of an existing Seller | |
authorization | str | JWT Bearer Token | [default to 'Bearer VALID_JWT_TOKEN_BASE64'] |
seller_campaign | CreateSellerCampaignMessageMapi | Supply the campaign Id and bid to create the mapping |
- Content-Type: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded, text/html
- Accept: application/json, text/json, text/html
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
401 | Authentication failed. | - |
403 | You do not have access to the requested records | - |
429 | Throttling failure. Maximum sending rate exceeded. | - |
500 | Unknown error. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[SellerBase] create_sellers(advertiser_id, authorization, seller_names, partner_id=partner_id)
Create new sellers for an advertiser
- Api Key Authentication (Authorization):
from __future__ import print_function
import time
import criteo_marketing
from criteo_marketing.rest import ApiException
from pprint import pprint
configuration = criteo_marketing.Configuration()
# Configure API key authorization: Authorization
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization'] = 'Bearer'
# Defining host is optional and default to https://api.criteo.com/marketing
configuration.host = "https://api.criteo.com/marketing"
# Create an instance of the API class
api_instance = criteo_marketing.SellersV2Api(criteo_marketing.ApiClient(configuration))
advertiser_id = 56 # int |
authorization = 'Bearer VALID_JWT_TOKEN_BASE64' # str | JWT Bearer Token (default to 'Bearer VALID_JWT_TOKEN_BASE64')
seller_names = ['seller_names_example'] # list[str] |
partner_id = 56 # int | (optional)
try:
# Create new sellers for an advertiser
api_response = api_instance.create_sellers(advertiser_id, authorization, seller_names, partner_id=partner_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling SellersV2Api->create_sellers: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
advertiser_id | int | ||
authorization | str | JWT Bearer Token | [default to 'Bearer VALID_JWT_TOKEN_BASE64'] |
seller_names | list[str] | ||
partner_id | int | [optional] |
- Content-Type: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded, text/html
- Accept: application/json, text/json, application/xml, text/xml, text/html
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
401 | Authentication failed. | - |
403 | You do not have access to the requested records | - |
429 | Throttling failure. Maximum sending rate exceeded. | - |
500 | Unknown error. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AdvertiserInfoMessage get_advertiser(advertiser_id, authorization)
Get an advertiser.
- Api Key Authentication (Authorization):
from __future__ import print_function
import time
import criteo_marketing
from criteo_marketing.rest import ApiException
from pprint import pprint
configuration = criteo_marketing.Configuration()
# Configure API key authorization: Authorization
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization'] = 'Bearer'
# Defining host is optional and default to https://api.criteo.com/marketing
configuration.host = "https://api.criteo.com/marketing"
# Create an instance of the API class
api_instance = criteo_marketing.SellersV2Api(criteo_marketing.ApiClient(configuration))
advertiser_id = 56 # int |
authorization = 'Bearer VALID_JWT_TOKEN_BASE64' # str | JWT Bearer Token (default to 'Bearer VALID_JWT_TOKEN_BASE64')
try:
# Get an advertiser.
api_response = api_instance.get_advertiser(advertiser_id, authorization)
pprint(api_response)
except ApiException as e:
print("Exception when calling SellersV2Api->get_advertiser: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
advertiser_id | int | ||
authorization | str | JWT Bearer Token | [default to 'Bearer VALID_JWT_TOKEN_BASE64'] |
- Content-Type: Not defined
- Accept: application/json, text/json, text/html
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
401 | Authentication failed. | - |
403 | You do not have access to the requested records | - |
429 | Throttling failure. Maximum sending rate exceeded. | - |
500 | Unknown error. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[AdvertiserCampaignMessage] get_advertiser_campaigns(advertiser_id, authorization)
Get the collection of CRP campaigns associated with the advertiserId.
- Api Key Authentication (Authorization):
from __future__ import print_function
import time
import criteo_marketing
from criteo_marketing.rest import ApiException
from pprint import pprint
configuration = criteo_marketing.Configuration()
# Configure API key authorization: Authorization
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization'] = 'Bearer'
# Defining host is optional and default to https://api.criteo.com/marketing
configuration.host = "https://api.criteo.com/marketing"
# Create an instance of the API class
api_instance = criteo_marketing.SellersV2Api(criteo_marketing.ApiClient(configuration))
advertiser_id = 56 # int |
authorization = 'Bearer VALID_JWT_TOKEN_BASE64' # str | JWT Bearer Token (default to 'Bearer VALID_JWT_TOKEN_BASE64')
try:
# Get the collection of CRP campaigns associated with the advertiserId.
api_response = api_instance.get_advertiser_campaigns(advertiser_id, authorization)
pprint(api_response)
except ApiException as e:
print("Exception when calling SellersV2Api->get_advertiser_campaigns: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
advertiser_id | int | ||
authorization | str | JWT Bearer Token | [default to 'Bearer VALID_JWT_TOKEN_BASE64'] |
list[AdvertiserCampaignMessage]
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml, text/html
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
401 | Authentication failed. | - |
403 | You do not have access to the requested records | - |
429 | Throttling failure. Maximum sending rate exceeded. | - |
500 | Unknown error. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[AdvertiserQuotaMessage] get_advertiser_preview_limits(authorization)
Get the collection of advertisers preview limits associated with the authorized user.
- Api Key Authentication (Authorization):
from __future__ import print_function
import time
import criteo_marketing
from criteo_marketing.rest import ApiException
from pprint import pprint
configuration = criteo_marketing.Configuration()
# Configure API key authorization: Authorization
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization'] = 'Bearer'
# Defining host is optional and default to https://api.criteo.com/marketing
configuration.host = "https://api.criteo.com/marketing"
# Create an instance of the API class
api_instance = criteo_marketing.SellersV2Api(criteo_marketing.ApiClient(configuration))
authorization = 'Bearer VALID_JWT_TOKEN_BASE64' # str | JWT Bearer Token (default to 'Bearer VALID_JWT_TOKEN_BASE64')
try:
# Get the collection of advertisers preview limits associated with the authorized user.
api_response = api_instance.get_advertiser_preview_limits(authorization)
pprint(api_response)
except ApiException as e:
print("Exception when calling SellersV2Api->get_advertiser_preview_limits: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
authorization | str | JWT Bearer Token | [default to 'Bearer VALID_JWT_TOKEN_BASE64'] |
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml, text/html
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
401 | Authentication failed. | - |
403 | You do not have access to the requested records | - |
429 | Throttling failure. Maximum sending rate exceeded. | - |
500 | Unknown error. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[AdvertiserInfoMessage] get_advertisers(authorization)
Get the collection of advertisers associated with the user.
- Api Key Authentication (Authorization):
from __future__ import print_function
import time
import criteo_marketing
from criteo_marketing.rest import ApiException
from pprint import pprint
configuration = criteo_marketing.Configuration()
# Configure API key authorization: Authorization
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization'] = 'Bearer'
# Defining host is optional and default to https://api.criteo.com/marketing
configuration.host = "https://api.criteo.com/marketing"
# Create an instance of the API class
api_instance = criteo_marketing.SellersV2Api(criteo_marketing.ApiClient(configuration))
authorization = 'Bearer VALID_JWT_TOKEN_BASE64' # str | JWT Bearer Token (default to 'Bearer VALID_JWT_TOKEN_BASE64')
try:
# Get the collection of advertisers associated with the user.
api_response = api_instance.get_advertisers(authorization)
pprint(api_response)
except ApiException as e:
print("Exception when calling SellersV2Api->get_advertisers: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
authorization | str | JWT Bearer Token | [default to 'Bearer VALID_JWT_TOKEN_BASE64'] |
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml, text/html
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
401 | Authentication failed. | - |
403 | You do not have access to the requested records | - |
429 | Throttling failure. Maximum sending rate exceeded. | - |
500 | Unknown error. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[SellerBudgetMessage] get_budgets_by_advertiser(advertiser_id, authorization, status=status, with_balance=with_balance, with_spend=with_spend, end_after_date=end_after_date, start_before_date=start_before_date, budget_id=budget_id, seller_id=seller_id, type=type)
Get CRP budgets for a specific advertiser
- Api Key Authentication (Authorization):
from __future__ import print_function
import time
import criteo_marketing
from criteo_marketing.rest import ApiException
from pprint import pprint
configuration = criteo_marketing.Configuration()
# Configure API key authorization: Authorization
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization'] = 'Bearer'
# Defining host is optional and default to https://api.criteo.com/marketing
configuration.host = "https://api.criteo.com/marketing"
# Create an instance of the API class
api_instance = criteo_marketing.SellersV2Api(criteo_marketing.ApiClient(configuration))
advertiser_id = 56 # int |
authorization = 'Bearer VALID_JWT_TOKEN_BASE64' # str | JWT Bearer Token (default to 'Bearer VALID_JWT_TOKEN_BASE64')
status = 'status_example' # str | (optional)
with_balance = True # bool | (optional)
with_spend = True # bool | (optional)
end_after_date = '2013-10-20T19:20:30+01:00' # datetime | (optional)
start_before_date = '2013-10-20T19:20:30+01:00' # datetime | (optional)
budget_id = 56 # int | (optional)
seller_id = 56 # int | (optional)
type = 'type_example' # str | (optional)
try:
# Get CRP budgets for a specific advertiser
api_response = api_instance.get_budgets_by_advertiser(advertiser_id, authorization, status=status, with_balance=with_balance, with_spend=with_spend, end_after_date=end_after_date, start_before_date=start_before_date, budget_id=budget_id, seller_id=seller_id, type=type)
pprint(api_response)
except ApiException as e:
print("Exception when calling SellersV2Api->get_budgets_by_advertiser: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
advertiser_id | int | ||
authorization | str | JWT Bearer Token | [default to 'Bearer VALID_JWT_TOKEN_BASE64'] |
status | str | [optional] | |
with_balance | bool | [optional] | |
with_spend | bool | [optional] | |
end_after_date | datetime | [optional] | |
start_before_date | datetime | [optional] | |
budget_id | int | [optional] | |
seller_id | int | [optional] | |
type | str | [optional] |
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml, text/html
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
401 | Authentication failed. | - |
403 | You do not have access to the requested records | - |
429 | Throttling failure. Maximum sending rate exceeded. | - |
500 | Unknown error. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[SellerBudgetMessage] get_budgets_by_seller(seller_id, authorization, status=status, with_balance=with_balance, with_spend=with_spend, end_after_date=end_after_date, start_before_date=start_before_date, campaign_id=campaign_id, type=type)
Get a collection of budgets for this seller.
Return a collection of budgets for this seller filtered by optional filter parameters. If all parameters are omitted the entire collection to which the user has access is returned, except those whose endDate is in the past. Returned budgets must satisfy all supplied filter criteria if multiple parameters are used. See the budgets endpoint for additional details.
- Api Key Authentication (Authorization):
from __future__ import print_function
import time
import criteo_marketing
from criteo_marketing.rest import ApiException
from pprint import pprint
configuration = criteo_marketing.Configuration()
# Configure API key authorization: Authorization
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization'] = 'Bearer'
# Defining host is optional and default to https://api.criteo.com/marketing
configuration.host = "https://api.criteo.com/marketing"
# Create an instance of the API class
api_instance = criteo_marketing.SellersV2Api(criteo_marketing.ApiClient(configuration))
seller_id = 'seller_id_example' # str | Return only budgets belonging to the given seller.
authorization = 'Bearer VALID_JWT_TOKEN_BASE64' # str | JWT Bearer Token (default to 'Bearer VALID_JWT_TOKEN_BASE64')
status = 'status_example' # str | Return only budgets with the given status. (optional)
with_balance = True # bool | Return only budgets with the given status. (optional)
with_spend = True # bool | Return budgets with any positive spend. (optional)
end_after_date = '2013-10-20T19:20:30+01:00' # datetime | Return budgets that end after the given date using the `yyyy-MM-DD` format. If param is not provided, default behavior is to only return budgets that have not yet ended. (optional)
start_before_date = '2013-10-20T19:20:30+01:00' # datetime | Return budgets that start on or before the given date using the `yyyy-MM-DD` format. (optional)
campaign_id = 56 # int | Return only budgets that pay for a given campaign. (optional)
type = 'type_example' # str | Return only budgets with the given budget type. (optional)
try:
# Get a collection of budgets for this seller.
api_response = api_instance.get_budgets_by_seller(seller_id, authorization, status=status, with_balance=with_balance, with_spend=with_spend, end_after_date=end_after_date, start_before_date=start_before_date, campaign_id=campaign_id, type=type)
pprint(api_response)
except ApiException as e:
print("Exception when calling SellersV2Api->get_budgets_by_seller: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
seller_id | str | Return only budgets belonging to the given seller. | |
authorization | str | JWT Bearer Token | [default to 'Bearer VALID_JWT_TOKEN_BASE64'] |
status | str | Return only budgets with the given status. | [optional] |
with_balance | bool | Return only budgets with the given status. | [optional] |
with_spend | bool | Return budgets with any positive spend. | [optional] |
end_after_date | datetime | Return budgets that end after the given date using the `yyyy-MM-DD` format. If param is not provided, default behavior is to only return budgets that have not yet ended. | [optional] |
start_before_date | datetime | Return budgets that start on or before the given date using the `yyyy-MM-DD` format. | [optional] |
campaign_id | int | Return only budgets that pay for a given campaign. | [optional] |
type | str | Return only budgets with the given budget type. | [optional] |
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml, text/html
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
400 | List of errors encountered | - |
401 | Authentication failed. | - |
403 | You do not have access to the requested records | - |
429 | Throttling failure. Maximum sending rate exceeded. | - |
500 | Unknown error. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[SellerBudgetMessage] get_budgets_by_seller_campaign_id(seller_campaign_id, authorization, status=status, with_balance=with_balance, with_spend=with_spend, end_after_date=end_after_date, start_before_date=start_before_date, type=type)
Get a collection of budgets for this seller campaign.
Return a collection of budgets for this seller campaign filtered by optional filter parameters. If all parameters are omitted the entire collection to which the user has access is returned, except those whose endDate is in the past. Returned budgets must satisfy all supplied filter criteria if multiple parameters are used. See the budgets endpoint for additional details.
- Api Key Authentication (Authorization):
from __future__ import print_function
import time
import criteo_marketing
from criteo_marketing.rest import ApiException
from pprint import pprint
configuration = criteo_marketing.Configuration()
# Configure API key authorization: Authorization
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization'] = 'Bearer'
# Defining host is optional and default to https://api.criteo.com/marketing
configuration.host = "https://api.criteo.com/marketing"
# Create an instance of the API class
api_instance = criteo_marketing.SellersV2Api(criteo_marketing.ApiClient(configuration))
seller_campaign_id = 'seller_campaign_id_example' # str | Return only budgets belonging to the given seller campaign.
authorization = 'Bearer VALID_JWT_TOKEN_BASE64' # str | JWT Bearer Token (default to 'Bearer VALID_JWT_TOKEN_BASE64')
status = 'status_example' # str | Return only budgets with the given status. (optional)
with_balance = True # bool | Return only budgets with a positive balance. (optional)
with_spend = True # bool | Return budgets with a positive spend. (optional)
end_after_date = '2013-10-20T19:20:30+01:00' # datetime | Return budgets that end after the given date using the `yyyy-MM-DD` format. If param is not provided, default behavior is to only return budgets that have not yet ended. (optional)
start_before_date = '2013-10-20T19:20:30+01:00' # datetime | Return budgets that start on or before the given date using the `yyyy-MM-DD` format. (optional)
type = 'type_example' # str | Return only budgets with the given budget type. (optional)
try:
# Get a collection of budgets for this seller campaign.
api_response = api_instance.get_budgets_by_seller_campaign_id(seller_campaign_id, authorization, status=status, with_balance=with_balance, with_spend=with_spend, end_after_date=end_after_date, start_before_date=start_before_date, type=type)
pprint(api_response)
except ApiException as e:
print("Exception when calling SellersV2Api->get_budgets_by_seller_campaign_id: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
seller_campaign_id | str | Return only budgets belonging to the given seller campaign. | |
authorization | str | JWT Bearer Token | [default to 'Bearer VALID_JWT_TOKEN_BASE64'] |
status | str | Return only budgets with the given status. | [optional] |
with_balance | bool | Return only budgets with a positive balance. | [optional] |
with_spend | bool | Return budgets with a positive spend. | [optional] |
end_after_date | datetime | Return budgets that end after the given date using the `yyyy-MM-DD` format. If param is not provided, default behavior is to only return budgets that have not yet ended. | [optional] |
start_before_date | datetime | Return budgets that start on or before the given date using the `yyyy-MM-DD` format. | [optional] |
type | str | Return only budgets with the given budget type. | [optional] |
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml, text/html
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
400 | List of errors encountered | - |
401 | Authentication failed. | - |
403 | You do not have access to the requested records | - |
429 | Throttling failure. Maximum sending rate exceeded. | - |
500 | Unknown error. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SellerBase get_seller(seller_id, authorization)
Get details for a seller.
Returns details for the selected seller. For example { "id" : "123456" "sellerName": "HBogart", }
- Api Key Authentication (Authorization):
from __future__ import print_function
import time
import criteo_marketing
from criteo_marketing.rest import ApiException
from pprint import pprint
configuration = criteo_marketing.Configuration()
# Configure API key authorization: Authorization
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization'] = 'Bearer'
# Defining host is optional and default to https://api.criteo.com/marketing
configuration.host = "https://api.criteo.com/marketing"
# Create an instance of the API class
api_instance = criteo_marketing.SellersV2Api(criteo_marketing.ApiClient(configuration))
seller_id = 'seller_id_example' # str | Id of the seller.
authorization = 'Bearer VALID_JWT_TOKEN_BASE64' # str | JWT Bearer Token (default to 'Bearer VALID_JWT_TOKEN_BASE64')
try:
# Get details for a seller.
api_response = api_instance.get_seller(seller_id, authorization)
pprint(api_response)
except ApiException as e:
print("Exception when calling SellersV2Api->get_seller: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
seller_id | str | Id of the seller. | |
authorization | str | JWT Bearer Token | [default to 'Bearer VALID_JWT_TOKEN_BASE64'] |
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml, text/html
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
400 | List of errors encountered | - |
401 | Authentication failed. | - |
403 | You do not have access to the requested records | - |
429 | Throttling failure. Maximum sending rate exceeded. | - |
500 | Unknown error. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
str get_seller_ad_demo(advertiser_id, seller_id, authorization, campaign_id=campaign_id, height=height, width=width)
Get a preview of an HTML ad with products belonging to the provided seller
• advertiserId: Valid crp advertiserId, seller belongs to provided advertiser
• sellerId: Products from given SellerId will fill the ad preview, must be existing crp sellerId
• campaignId: CampaignId may be supplied if there is a specific design set configured for the provided campaign, Seller-Campaign must be valid in crp
• height: height may be supplied to request a specific ad preview height. Default height: 250
• width: width may be supplied to request a specific ad preview width. Default width: 300
Ad preview api calls are capped to 1000 per day per advertiser by default. Current usage, limit, and period can be found using v2/crp/advertisers/preview-limit
- Api Key Authentication (Authorization):
from __future__ import print_function
import time
import criteo_marketing
from criteo_marketing.rest import ApiException
from pprint import pprint
configuration = criteo_marketing.Configuration()
# Configure API key authorization: Authorization
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization'] = 'Bearer'
# Defining host is optional and default to https://api.criteo.com/marketing
configuration.host = "https://api.criteo.com/marketing"
# Create an instance of the API class
api_instance = criteo_marketing.SellersV2Api(criteo_marketing.ApiClient(configuration))
advertiser_id = 56 # int |
seller_id = 56 # int |
authorization = 'Bearer VALID_JWT_TOKEN_BASE64' # str | JWT Bearer Token (default to 'Bearer VALID_JWT_TOKEN_BASE64')
campaign_id = 56 # int | (optional)
height = 56 # int | (optional)
width = 56 # int | (optional)
try:
# Get a preview of an HTML ad with products belonging to the provided seller
api_response = api_instance.get_seller_ad_demo(advertiser_id, seller_id, authorization, campaign_id=campaign_id, height=height, width=width)
pprint(api_response)
except ApiException as e:
print("Exception when calling SellersV2Api->get_seller_ad_demo: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
advertiser_id | int | ||
seller_id | int | ||
authorization | str | JWT Bearer Token | [default to 'Bearer VALID_JWT_TOKEN_BASE64'] |
campaign_id | int | [optional] | |
height | int | [optional] | |
width | int | [optional] |
str
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml, text/html
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
401 | Authentication failed. | - |
403 | You do not have access to the requested records | - |
429 | Throttling failure. Maximum sending rate exceeded. | - |
500 | Unknown error. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SellerBudgetMessage get_seller_budget(budget_id, authorization)
Get details for a budget.
Return a budget. For example: { "id": "1759183", "sellerId": "321392", "campaignIds": [ 143962 ], "budgetType": "Capped", "amount": 1000, "startDate": "2021-01-11", "endDate": "2021-01-12", "spend": null, "status": "Active" } A budget limits the spend of a seller for one or more campaigns. There are three types of budget:
Uncapped budgets put no limit on the total amount of spend.
Capped budgets limit the total spend to a fixed amount.
Daily budgets limit daily spend to a fixed amount.
In addition, budgets can limit the spend to a specific range of dates using the start and end date attributes. Finally a budget must be active to be used. Spend approximates the current spend against this budget. There may be a lag between when an ad is clicked and the time it accrues to the spend. Daily budgets show spend against the most recent day only.
- Api Key Authentication (Authorization):
from __future__ import print_function
import time
import criteo_marketing
from criteo_marketing.rest import ApiException
from pprint import pprint
configuration = criteo_marketing.Configuration()
# Configure API key authorization: Authorization
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization'] = 'Bearer'
# Defining host is optional and default to https://api.criteo.com/marketing
configuration.host = "https://api.criteo.com/marketing"
# Create an instance of the API class
api_instance = criteo_marketing.SellersV2Api(criteo_marketing.ApiClient(configuration))
budget_id = 56 # int | Id of the budget.
authorization = 'Bearer VALID_JWT_TOKEN_BASE64' # str | JWT Bearer Token (default to 'Bearer VALID_JWT_TOKEN_BASE64')
try:
# Get details for a budget.
api_response = api_instance.get_seller_budget(budget_id, authorization)
pprint(api_response)
except ApiException as e:
print("Exception when calling SellersV2Api->get_seller_budget: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
budget_id | int | Id of the budget. | |
authorization | str | JWT Bearer Token | [default to 'Bearer VALID_JWT_TOKEN_BASE64'] |
- Content-Type: Not defined
- Accept: application/json, text/json, text/html
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
400 | List of errors encountered | - |
401 | Authentication failed. | - |
403 | You do not have access to the requested records | - |
429 | Throttling failure. Maximum sending rate exceeded. | - |
500 | Unknown error. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[SellerBudgetMessage] get_seller_budgets(authorization, status=status, with_balance=with_balance, with_spend=with_spend, end_after_date=end_after_date, start_before_date=start_before_date, campaign_id=campaign_id, seller_id=seller_id, type=type, advertiser_id=advertiser_id)
Get a collection of budgets.
Return a collection of budgets filtered by optional filter parameters. If all parameters are omitted the entire collection to which the user has access is returned, except those whose endDate is in the past. Returned budgets must satisfy all supplied filter criteria if multiple parameters are used. Date filter. Filtering can return only budgets that were active for a date range by specifying the startBeforeDate and endAfterDate. Leaving off the startBeforeDate value makes budgets with any startDate qualify, whereas when leaving off the endAfterDate value will only return budgets whose endDate has not already passed. To get budgets that were active on a specific date, set both values to that day. Spend. If the endAfterDate is supplied, the spend excludes spend that happened after that date. In the case of a daily budget, only the spend for the final day is displayed. See the budgets endpoint for additional details.
- Api Key Authentication (Authorization):
from __future__ import print_function
import time
import criteo_marketing
from criteo_marketing.rest import ApiException
from pprint import pprint
configuration = criteo_marketing.Configuration()
# Configure API key authorization: Authorization
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization'] = 'Bearer'
# Defining host is optional and default to https://api.criteo.com/marketing
configuration.host = "https://api.criteo.com/marketing"
# Create an instance of the API class
api_instance = criteo_marketing.SellersV2Api(criteo_marketing.ApiClient(configuration))
authorization = 'Bearer VALID_JWT_TOKEN_BASE64' # str | JWT Bearer Token (default to 'Bearer VALID_JWT_TOKEN_BASE64')
status = 'status_example' # str | Return only budgets with the given status. (optional)
with_balance = True # bool | Return only budgets with the given status. (optional)
with_spend = True # bool | Return budgets with any positive spend. (optional)
end_after_date = '2013-10-20T19:20:30+01:00' # datetime | Return budgets that end after the given date using the `yyyy-MM-DD` format. If param is not provided, default behavior is to only return budgets that have not yet ended. (optional)
start_before_date = '2013-10-20T19:20:30+01:00' # datetime | Return budgets that start on or before the given date using the `yyyy-MM-DD` format. (optional)
campaign_id = 56 # int | Return only budgets that pay for a given campaign. (optional)
seller_id = 'seller_id_example' # str | Return only budgets belonging to the given seller. (optional)
type = 'type_example' # str | Return only budgets with the given budget type. (optional)
advertiser_id = 56 # int | Return only budgets belonging to the specified advertiser (optional)
try:
# Get a collection of budgets.
api_response = api_instance.get_seller_budgets(authorization, status=status, with_balance=with_balance, with_spend=with_spend, end_after_date=end_after_date, start_before_date=start_before_date, campaign_id=campaign_id, seller_id=seller_id, type=type, advertiser_id=advertiser_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling SellersV2Api->get_seller_budgets: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
authorization | str | JWT Bearer Token | [default to 'Bearer VALID_JWT_TOKEN_BASE64'] |
status | str | Return only budgets with the given status. | [optional] |
with_balance | bool | Return only budgets with the given status. | [optional] |
with_spend | bool | Return budgets with any positive spend. | [optional] |
end_after_date | datetime | Return budgets that end after the given date using the `yyyy-MM-DD` format. If param is not provided, default behavior is to only return budgets that have not yet ended. | [optional] |
start_before_date | datetime | Return budgets that start on or before the given date using the `yyyy-MM-DD` format. | [optional] |
campaign_id | int | Return only budgets that pay for a given campaign. | [optional] |
seller_id | str | Return only budgets belonging to the given seller. | [optional] |
type | str | Return only budgets with the given budget type. | [optional] |
advertiser_id | int | Return only budgets belonging to the specified advertiser | [optional] |
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml, text/html
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
400 | List of errors encountered | - |
401 | Authentication failed. | - |
403 | You do not have access to the requested records | - |
429 | Throttling failure. Maximum sending rate exceeded. | - |
500 | Unknown error. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SellerCampaignMessage get_seller_campaign(seller_campaign_id, authorization)
Get details for a seller campaign.
Return details for a seller campaign. For example, { "id": "543210.123456", "suspendedSince": "2018-07-30", "sellerId": "543210", "campaignId": 123456, "bid": 1.55 } An active seller campaign is one for which the value of suspendedSince is null and the bid is positive. The currency of the bid is the bidCurrency of the associated campaign. Any active seller campaign must also have an active total (capped or uncapped) budget. It may optionally have an active daily budget as well to further limit spending.
- Api Key Authentication (Authorization):
from __future__ import print_function
import time
import criteo_marketing
from criteo_marketing.rest import ApiException
from pprint import pprint
configuration = criteo_marketing.Configuration()
# Configure API key authorization: Authorization
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization'] = 'Bearer'
# Defining host is optional and default to https://api.criteo.com/marketing
configuration.host = "https://api.criteo.com/marketing"
# Create an instance of the API class
api_instance = criteo_marketing.SellersV2Api(criteo_marketing.ApiClient(configuration))
seller_campaign_id = 'seller_campaign_id_example' # str | Id of the seller campaign.
authorization = 'Bearer VALID_JWT_TOKEN_BASE64' # str | JWT Bearer Token (default to 'Bearer VALID_JWT_TOKEN_BASE64')
try:
# Get details for a seller campaign.
api_response = api_instance.get_seller_campaign(seller_campaign_id, authorization)
pprint(api_response)
except ApiException as e:
print("Exception when calling SellersV2Api->get_seller_campaign: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
seller_campaign_id | str | Id of the seller campaign. | |
authorization | str | JWT Bearer Token | [default to 'Bearer VALID_JWT_TOKEN_BASE64'] |
- Content-Type: Not defined
- Accept: application/json, text/json, text/html
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
400 | List of errors encountered | - |
401 | Authentication failed. | - |
403 | You do not have access to the requested records | - |
429 | Throttling failure. Maximum sending rate exceeded. | - |
500 | Unknown error. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[SellerCampaignMessage] get_seller_campaigns(authorization, seller_status=seller_status, seller_id=seller_id, campaign_id=campaign_id, budget_status=budget_status, advertiser_id=advertiser_id)
Get a collection of seller campaigns.
Return a collection of seller campaigns filtered by optional filter parameters. If all parameters are omitted the entire collection to which the user has access is returned. Returned sellers must satisfy all supplied filter criteria if multiple parameters are used.
- Api Key Authentication (Authorization):
from __future__ import print_function
import time
import criteo_marketing
from criteo_marketing.rest import ApiException
from pprint import pprint
configuration = criteo_marketing.Configuration()
# Configure API key authorization: Authorization
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization'] = 'Bearer'
# Defining host is optional and default to https://api.criteo.com/marketing
configuration.host = "https://api.criteo.com/marketing"
# Create an instance of the API class
api_instance = criteo_marketing.SellersV2Api(criteo_marketing.ApiClient(configuration))
authorization = 'Bearer VALID_JWT_TOKEN_BASE64' # str | JWT Bearer Token (default to 'Bearer VALID_JWT_TOKEN_BASE64')
seller_status = 'seller_status_example' # str | Return only seller campaigns for sellers with the given status. (optional)
seller_id = 'seller_id_example' # str | Return only seller campaigns belonging to the given seller. (optional)
campaign_id = 56 # int | Return only seller campaigns associated with the given campaign. (optional)
budget_status = 'budget_status_example' # str | Return only seller campaigns whose budget has the given status. (optional)
advertiser_id = 56 # int | Return only seller belonging to the specified advertiser (optional)
try:
# Get a collection of seller campaigns.
api_response = api_instance.get_seller_campaigns(authorization, seller_status=seller_status, seller_id=seller_id, campaign_id=campaign_id, budget_status=budget_status, advertiser_id=advertiser_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling SellersV2Api->get_seller_campaigns: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
authorization | str | JWT Bearer Token | [default to 'Bearer VALID_JWT_TOKEN_BASE64'] |
seller_status | str | Return only seller campaigns for sellers with the given status. | [optional] |
seller_id | str | Return only seller campaigns belonging to the given seller. | [optional] |
campaign_id | int | Return only seller campaigns associated with the given campaign. | [optional] |
budget_status | str | Return only seller campaigns whose budget has the given status. | [optional] |
advertiser_id | int | Return only seller belonging to the specified advertiser | [optional] |
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml, text/html
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
400 | List of errors encountered | - |
401 | Authentication failed. | - |
403 | You do not have access to the requested records | - |
429 | Throttling failure. Maximum sending rate exceeded. | - |
500 | Unknown error. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[SellerCampaignMessage] get_seller_campaigns_by_advertiser(advertiser_id, authorization)
Get CRP seller-campaigns for a specific advertiser
- Api Key Authentication (Authorization):
from __future__ import print_function
import time
import criteo_marketing
from criteo_marketing.rest import ApiException
from pprint import pprint
configuration = criteo_marketing.Configuration()
# Configure API key authorization: Authorization
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization'] = 'Bearer'
# Defining host is optional and default to https://api.criteo.com/marketing
configuration.host = "https://api.criteo.com/marketing"
# Create an instance of the API class
api_instance = criteo_marketing.SellersV2Api(criteo_marketing.ApiClient(configuration))
advertiser_id = 56 # int |
authorization = 'Bearer VALID_JWT_TOKEN_BASE64' # str | JWT Bearer Token (default to 'Bearer VALID_JWT_TOKEN_BASE64')
try:
# Get CRP seller-campaigns for a specific advertiser
api_response = api_instance.get_seller_campaigns_by_advertiser(advertiser_id, authorization)
pprint(api_response)
except ApiException as e:
print("Exception when calling SellersV2Api->get_seller_campaigns_by_advertiser: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
advertiser_id | int | ||
authorization | str | JWT Bearer Token | [default to 'Bearer VALID_JWT_TOKEN_BASE64'] |
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml, text/html
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
401 | Authentication failed. | - |
403 | You do not have access to the requested records | - |
429 | Throttling failure. Maximum sending rate exceeded. | - |
500 | Unknown error. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[SellerCampaignMessage] get_seller_campaigns_by_seller(seller_id, authorization, seller_status=seller_status, campaign_id=campaign_id, budget_status=budget_status)
Get a collection of seller campaigns for this seller.
Return a collection of seller campaigns for this seller filtered by optional filter parameters. If all parameters are omitted the entire collection to which the user has access is returned. Returned sellers must satisfy all supplied filter criteria if multiple parameters are used. See the seller campaigns endpoint for additional details.
- Api Key Authentication (Authorization):
from __future__ import print_function
import time
import criteo_marketing
from criteo_marketing.rest import ApiException
from pprint import pprint
configuration = criteo_marketing.Configuration()
# Configure API key authorization: Authorization
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization'] = 'Bearer'
# Defining host is optional and default to https://api.criteo.com/marketing
configuration.host = "https://api.criteo.com/marketing"
# Create an instance of the API class
api_instance = criteo_marketing.SellersV2Api(criteo_marketing.ApiClient(configuration))
seller_id = 'seller_id_example' # str | Return only seller campaigns belonging to the given seller.
authorization = 'Bearer VALID_JWT_TOKEN_BASE64' # str | JWT Bearer Token (default to 'Bearer VALID_JWT_TOKEN_BASE64')
seller_status = 'seller_status_example' # str | Return only seller campaigns for sellers with the given status. (optional)
campaign_id = 56 # int | Return only seller campaigns associated with the given campaign. (optional)
budget_status = 'budget_status_example' # str | Return only seller campaigns whose budget has the given status. (optional)
try:
# Get a collection of seller campaigns for this seller.
api_response = api_instance.get_seller_campaigns_by_seller(seller_id, authorization, seller_status=seller_status, campaign_id=campaign_id, budget_status=budget_status)
pprint(api_response)
except ApiException as e:
print("Exception when calling SellersV2Api->get_seller_campaigns_by_seller: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
seller_id | str | Return only seller campaigns belonging to the given seller. | |
authorization | str | JWT Bearer Token | [default to 'Bearer VALID_JWT_TOKEN_BASE64'] |
seller_status | str | Return only seller campaigns for sellers with the given status. | [optional] |
campaign_id | int | Return only seller campaigns associated with the given campaign. | [optional] |
budget_status | str | Return only seller campaigns whose budget has the given status. | [optional] |
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml, text/html
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
400 | List of errors encountered | - |
401 | Authentication failed. | - |
403 | You do not have access to the requested records | - |
429 | Throttling failure. Maximum sending rate exceeded. | - |
500 | Unknown error. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[SellerBase] get_sellers(authorization, seller_status=seller_status, with_products=with_products, with_budget_status=with_budget_status, seller_name=seller_name, advertiser_id=advertiser_id, campaign_id=campaign_id)
Get a collection of sellers.
Return a collection of sellers filtered by optional filter parameters. If all parameters are omitted the entire collection to which the user has access is returned. Returned sellers must satisfy all supplied filter criteria if multiple parameters are used.
- Api Key Authentication (Authorization):
from __future__ import print_function
import time
import criteo_marketing
from criteo_marketing.rest import ApiException
from pprint import pprint
configuration = criteo_marketing.Configuration()
# Configure API key authorization: Authorization
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization'] = 'Bearer'
# Defining host is optional and default to https://api.criteo.com/marketing
configuration.host = "https://api.criteo.com/marketing"
# Create an instance of the API class
api_instance = criteo_marketing.SellersV2Api(criteo_marketing.ApiClient(configuration))
authorization = 'Bearer VALID_JWT_TOKEN_BASE64' # str | JWT Bearer Token (default to 'Bearer VALID_JWT_TOKEN_BASE64')
seller_status = 'seller_status_example' # str | Return only sellers with specific status. (optional)
with_products = True # bool | Return only sellers with or without products in catalog. (optional)
with_budget_status = 'with_budget_status_example' # str | Return only sellers with specific budget status. (optional)
seller_name = 'seller_name_example' # str | Return only sellers with the matching name. (optional)
advertiser_id = 56 # int | Return only sellers belonging to the specified advertiser (optional)
campaign_id = 56 # int | Return only sellers belonging to the specified campaign (optional)
try:
# Get a collection of sellers.
api_response = api_instance.get_sellers(authorization, seller_status=seller_status, with_products=with_products, with_budget_status=with_budget_status, seller_name=seller_name, advertiser_id=advertiser_id, campaign_id=campaign_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling SellersV2Api->get_sellers: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
authorization | str | JWT Bearer Token | [default to 'Bearer VALID_JWT_TOKEN_BASE64'] |
seller_status | str | Return only sellers with specific status. | [optional] |
with_products | bool | Return only sellers with or without products in catalog. | [optional] |
with_budget_status | str | Return only sellers with specific budget status. | [optional] |
seller_name | str | Return only sellers with the matching name. | [optional] |
advertiser_id | int | Return only sellers belonging to the specified advertiser | [optional] |
campaign_id | int | Return only sellers belonging to the specified campaign | [optional] |
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml, text/html
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
400 | List of errors encountered | - |
401 | Authentication failed. | - |
403 | You do not have access to the requested records | - |
429 | Throttling failure. Maximum sending rate exceeded. | - |
500 | Unknown error. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SellerBudgetMessage update_seller_budget(budget_id, authorization, message)
Modify a single budget.
Modify an existing active budget to change its limitations or status. All three types of budgets can be modified. See the additional restrictions listed in the PATCH budgets endpoint.
- Api Key Authentication (Authorization):
from __future__ import print_function
import time
import criteo_marketing
from criteo_marketing.rest import ApiException
from pprint import pprint
configuration = criteo_marketing.Configuration()
# Configure API key authorization: Authorization
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization'] = 'Bearer'
# Defining host is optional and default to https://api.criteo.com/marketing
configuration.host = "https://api.criteo.com/marketing"
# Create an instance of the API class
api_instance = criteo_marketing.SellersV2Api(criteo_marketing.ApiClient(configuration))
budget_id = 56 # int |
authorization = 'Bearer VALID_JWT_TOKEN_BASE64' # str | JWT Bearer Token (default to 'Bearer VALID_JWT_TOKEN_BASE64')
message = criteo_marketing.UpdateSellerBudgetMessageBase() # UpdateSellerBudgetMessageBase |
try:
# Modify a single budget.
api_response = api_instance.update_seller_budget(budget_id, authorization, message)
pprint(api_response)
except ApiException as e:
print("Exception when calling SellersV2Api->update_seller_budget: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
budget_id | int | ||
authorization | str | JWT Bearer Token | [default to 'Bearer VALID_JWT_TOKEN_BASE64'] |
message | UpdateSellerBudgetMessageBase |
- Content-Type: application/json, text/json, application/x-www-form-urlencoded, text/html
- Accept: application/json, text/json, text/html
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
401 | Authentication failed. | - |
403 | You do not have access to the requested records | - |
429 | Throttling failure. Maximum sending rate exceeded. | - |
500 | Unknown error. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[SellerBudgetMessage] update_seller_budgets(authorization, update_seller_budgets)
Modify a collection of budgets.
Modify one or more existing active budgets to change their limitations or status. All three types of budgets can be modified. The following constraints apply when modifying an existing budget. • campaignIds: a non-empty subset of the original campaign ids MAY be supplied
• amount: an amount MAY be supplied only if the type is not Uncapped and if supplied it MUST be non-negative
• startDate: a future start date MAY be supplied for budgets that have not yet started
• endDate: an end date MAY be supplied and if supplied MUST be a future date greater than the start date
Other attributes MUST NOT be supplied. Adding new campaigns to a budget is not allowed. In addition, reducing the amount for a Capped budget to a value less than the current spend not allowed.
- Api Key Authentication (Authorization):
from __future__ import print_function
import time
import criteo_marketing
from criteo_marketing.rest import ApiException
from pprint import pprint
configuration = criteo_marketing.Configuration()
# Configure API key authorization: Authorization
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization'] = 'Bearer'
# Defining host is optional and default to https://api.criteo.com/marketing
configuration.host = "https://api.criteo.com/marketing"
# Create an instance of the API class
api_instance = criteo_marketing.SellersV2Api(criteo_marketing.ApiClient(configuration))
authorization = 'Bearer VALID_JWT_TOKEN_BASE64' # str | JWT Bearer Token (default to 'Bearer VALID_JWT_TOKEN_BASE64')
update_seller_budgets = [criteo_marketing.UpdateSellerBudgetMessage()] # list[UpdateSellerBudgetMessage] |
try:
# Modify a collection of budgets.
api_response = api_instance.update_seller_budgets(authorization, update_seller_budgets)
pprint(api_response)
except ApiException as e:
print("Exception when calling SellersV2Api->update_seller_budgets: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
authorization | str | JWT Bearer Token | [default to 'Bearer VALID_JWT_TOKEN_BASE64'] |
update_seller_budgets | list[UpdateSellerBudgetMessage] |
- Content-Type: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded, text/html
- Accept: application/json, text/json, application/xml, text/xml, text/html
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
401 | Authentication failed. | - |
403 | You do not have access to the requested records | - |
429 | Throttling failure. Maximum sending rate exceeded. | - |
500 | Unknown error. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SellerCampaignMessage update_seller_campaign(seller_campaign_id, bid, authorization)
Update an existing seller campaign.
Patching a seller campaign allows the bid to be modified. The bid must be a non-negative value. Setting the bid to zero will make a seller campaign inactive. The currency used for bids will be the default currency of the campaign.
- Api Key Authentication (Authorization):
from __future__ import print_function
import time
import criteo_marketing
from criteo_marketing.rest import ApiException
from pprint import pprint
configuration = criteo_marketing.Configuration()
# Configure API key authorization: Authorization
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization'] = 'Bearer'
# Defining host is optional and default to https://api.criteo.com/marketing
configuration.host = "https://api.criteo.com/marketing"
# Create an instance of the API class
api_instance = criteo_marketing.SellersV2Api(criteo_marketing.ApiClient(configuration))
seller_campaign_id = 'seller_campaign_id_example' # str | Id of the existing seller campaign to update
bid = 3.4 # float | The new bid for the seller campaign.
authorization = 'Bearer VALID_JWT_TOKEN_BASE64' # str | JWT Bearer Token (default to 'Bearer VALID_JWT_TOKEN_BASE64')
try:
# Update an existing seller campaign.
api_response = api_instance.update_seller_campaign(seller_campaign_id, bid, authorization)
pprint(api_response)
except ApiException as e:
print("Exception when calling SellersV2Api->update_seller_campaign: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
seller_campaign_id | str | Id of the existing seller campaign to update | |
bid | float | The new bid for the seller campaign. | |
authorization | str | JWT Bearer Token | [default to 'Bearer VALID_JWT_TOKEN_BASE64'] |
- Content-Type: Not defined
- Accept: application/json, text/json, text/html
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
400 | List of errors encountered | - |
401 | Authentication failed. | - |
403 | You do not have access to the requested records | - |
429 | Throttling failure. Maximum sending rate exceeded. | - |
500 | Unknown error. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[SellerCampaignMessage] update_seller_campaigns(authorization, campaign_messages)
Update a collection of seller campaigns.
Patching a collection of seller campaigns allows their bids to be modified. Each bid must be a non-negative value. Setting the bid to zero will make a seller campaign inactive. The currency used for bids will be the default currency of the campaign.
- Api Key Authentication (Authorization):
from __future__ import print_function
import time
import criteo_marketing
from criteo_marketing.rest import ApiException
from pprint import pprint
configuration = criteo_marketing.Configuration()
# Configure API key authorization: Authorization
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization'] = 'Bearer'
# Defining host is optional and default to https://api.criteo.com/marketing
configuration.host = "https://api.criteo.com/marketing"
# Create an instance of the API class
api_instance = criteo_marketing.SellersV2Api(criteo_marketing.ApiClient(configuration))
authorization = 'Bearer VALID_JWT_TOKEN_BASE64' # str | JWT Bearer Token (default to 'Bearer VALID_JWT_TOKEN_BASE64')
campaign_messages = [criteo_marketing.SellerCampaignUpdate()] # list[SellerCampaignUpdate] |
try:
# Update a collection of seller campaigns.
api_response = api_instance.update_seller_campaigns(authorization, campaign_messages)
pprint(api_response)
except ApiException as e:
print("Exception when calling SellersV2Api->update_seller_campaigns: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
authorization | str | JWT Bearer Token | [default to 'Bearer VALID_JWT_TOKEN_BASE64'] |
campaign_messages | list[SellerCampaignUpdate] |
- Content-Type: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded, text/html
- Accept: application/json, text/json, application/xml, text/xml, text/html
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
400 | List of errors encountered | - |
401 | Authentication failed. | - |
403 | You do not have access to the requested records | - |
429 | Throttling failure. Maximum sending rate exceeded. | - |
500 | Unknown error. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]