get_targeting_expression

Localization.get_targeting_expression(version: int = 1, **kwargs) → ApiResponse

Localizes targeting expressions used for advertising targeting.

Localizes (maps) targeting expressions from a source marketplace to one or more target marketplaces.

Requires one of these permissions: ["advertiser_campaign_edit","advertiser_campaign_view"]

‘version’: int [optional] Will use content body “application/vnd.targetingexpressionlocalization.v”+str(version)+”+json”

body: | REQUIRED | { | ‘targetingExpressionLocalizationRequest’: list | [ | ‘targetDetailsList’: dict LocalizationTargetingTargetDetails | { | ‘marketplaceId’: string The ID of the target marketplace. For example, when mapping data from the UK (marketplace ID A1F83G8C2ARO7P) to Germany (marketplace ID A1PA6795UKMFR9), the target marketplace ID is that of the UK, i.e., A1F83G8C2ARO7P. | ‘countryCode’: string The ID of the target marketplace. For example, when mapping data from the UK (marketplace ID A1F83G8C2ARO7P) to Germany (marketplace ID A1PA6795UKMFR9), the target marketplace ID is that of the UK, i.e., A1F83G8C2ARO7P. | } | ] | ‘requests’: list LocalizationTargetingExpressionRequest | [ | ‘LocalizationTargetingExpressionRequest’: dict | { | ‘isForNegativeTargeting’: bool Specifies whether the expression is for positive targeting (false) or negative targeting (true). | ‘expression’: LocalizationTargetingExpressionPredicate: dict | { | ‘type’: LocalizationTargetingExpressionPredicateType: string Targeting predicate type. The following predicate types are supported [ asinCategorySameAs, asinBrandSameAs, asinPriceLessThan, asinPriceBetween, asinPriceGreaterThan, asinReviewRatingLessThan, asinReviewRatingBetween, asinReviewRatingGreaterThan, asinSameAs, asinIsPrimeShippingEligible, asinAgeRangeSameAs, asinGenreSameAs ] | ‘value’: string The value of the predicate. Targeting expression syntax, including examples of predicates and the values they support, is documented here (https://advertising.amazon.com/API/docs/en-us/bulksheets/sp/sp-general-info/sp-product-attribute-targeting). Only predicates using the following types of data will be localized: | } | } | ] | ‘sourceDetails’: dict, LocalizationTargetingSourceDetails | { | ‘marketplaceId’: string The ID of the source marketplace. For example, when mapping data from the UK (marketplace ID A1F83G8C2ARO7P) to Germany (marketplace ID A1PA6795UKMFR9), the source marketplace ID is that of the UK, i.e., A1F83G8C2ARO7P. | ‘countryCode’: string A two-letter country code. Please refer to the table above for a list of supported country codes. | } }