Keywords

Warning

This replaces the version 2 of SP Keywords

Vendor docs

https://advertising.amazon.com/API/docs/en-us/sponsored-products/3-0/openapi/prod

Specification

https://d1y2lf8k3vrkfu.cloudfront.net/openapi/en-us/dest/SponsoredProducts_prod_3p.json

class ad_api.api.sp.KeywordsV3(account: str = 'default', marketplace: Marketplaces = Marketplaces.EU, credentials: Dict[str, str] | None = None, proxies: Dict[str, str] | None = None, verify: bool = True, timeout: int | None = None, debug: bool = False, access_token: str | None = None, verify_additional_credentials: bool = True)
list_keywords(version: int = 3, **kwargs) → ApiResponse

Listing product keywords.

Request Body (optional)

Returns

ApiResponse

create_keyword(version: int = 3, prefer: bool = False, **kwargs) → ApiResponse

Creating product keywords.

Request Body (required)
nativeLanguageKeyword : (string), The unlocalized keyword text in the preferred locale of the advertiser
nativeLanguageLocale : (string), The locale preference of the advertiser.
campaignId: string, The identifer of the campaign to which the keyword is associated.
adGroupId: string, The identifier of the ad group to which this keyword is associated
state: string, The current resource state.’ , ‘Enum’: ‘[ enabled ]
keywordText: string, The text of the expression to match against a search query.
matchType: string, ‘The type of match.’ , ‘Enum’: ‘[EXACT, PHRASE, BROAD]
Returns

ApiResponse

edit_keyword(version: int = 3, prefer: bool = False, **kwargs) → ApiResponse

Updating product keywords.

Request Body (required)
‘keywordId’: string, (required) {‘description’: ‘The identifer of the campaign to which the keyword is associated.’}
‘state’: string, {‘description’: ‘The current resource state.’ , ‘Enum’: ‘[ enabled, paused, archived ]’}
‘bid’: float {‘description’: ‘Bid associated with this keyword. Applicable to biddable match types only.’}
Returns

ApiResponse

delete_keywords(version: int = 3, **kwargs) → ApiResponse

Deleting product keywords.

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

ApiResponse