Negative Product Targeting

Warning

This replaces the version 2 of Negative Product Targeting

class ad_api.api.sp.NegativeTargetsV3(account='default', marketplace: Marketplaces = Marketplaces.EU, credentials=None, proxies=None, verify=True, timeout=None, debug=False, access_token=None)
create_negative_product_targets(**kwargs)

Creating negative product targets.

Request Body (required)
campaignId’: number, {‘description’: ‘The identifier of the campaign to which this negative target is associated.’}
adGroupId’: number, {‘description’: ‘The identifier of the ad group to which this negative target is associated.’}
state’: number, {‘description’: ‘The current resource state. [ enabled, paused, archived ]’}
expression’ | ‘value’: string, {‘description’: ‘The expression value. ‘} | ‘type’: string, {‘description’: The type of negative targeting expression. You can only specify values for the following predicates: ‘Enum : [ ASIN_BRAND_SAME_AS, ASIN_SAME_AS ]’}
Returns

ApiResponse

delete_negative_product_targets(**kwargs)

Deleting negative product targets.

Request Body (required)
keywordIdFilter {} : Filter negative targets by the list of objectIds include [string] : list of negativeTargetIds as String to be used as filter. MinItems : 0, MaxItems :1000
Returns

ApiResponse

edit_negative_product_targets(**kwargs)

Updating negative product targets.

Request Body (required)
targetId : string, The target identifier
state’: string, The current resource state. [ enabled, paused, archived ]
expression
value’: string, The expression value.
type’: string, The type of nagative targeting expression. You can only specify values for the following predicates: Enum : [ASIN_BRAND_SAME_AS, ASIN_SAME_AS]
Returns

ApiResponse

list_negative_product_targets(**kwargs)

Listing negative product targets.

Request Body (optional)

Returns

ApiResponse

list_negative_targets_brands_recommendations(**kwargs)

Returns brands recommended for negative targeting. Only available for Sellers and Vendors. These recommendations include your own brands because targeting your own brands usually results in lower performance than targeting competitors’ brands.

header Prefer:string | Used to indicate the behavior preferred by the client but is not required for successful completion of the request. Supported values will be updated in the future.

Returns:

ApiResponse

Returns brands related to keyword input for negative targeting.

header Prefer:string | Used to indicate the behavior preferred by the client but is not required for successful completion of the request. Supported values will be updated in the future.

Returns:

ApiResponse