Negative Keywords

Warning

This replaces the version 2 of Negative Keywords

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

Creating negative 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’: ‘[ NEGATIVE_EXACT, NEGATIVE_PHRASE, NEGATIVE_BROAD ]
Returns

ApiResponse

delete_negative_keywords(**kwargs)

Deleting negative product keywords.

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

ApiResponse

edit_negative_keyword(**kwargs)

Updating negative 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 ]’}
Returns

ApiResponse

list_negative_keywords(**kwargs)

Listing negative product keywords.

Request Body (optional)

Returns

ApiResponse