Hierarchy

  • Operation
    • SponsoredBrandsNegativeKeywordsOperation

Constructors

Methods

  • Archives a negative keyword specified by identifier. This operation is equivalent to an update operation that sets the status field to 'archived'. Note that setting the status field to 'archived' is permanent and can't be undone. See Developer Notes for more information.

    Returns

    Parameters

    • keywordId: number

    Returns Promise<{ code: string; keywordId: number } & { details: undefined | string }>

  • Creates one or more negative keywords. Note that bid and state can't be set at negative keyword creation. Negative keywords submitted for creation have state set to pending while under moderation review. Note that moderation review may take up to 72 hours.

    Returns

    Parameters

    • params: { adGroupId: number; campaignId: number; keywordText: string; matchType: "negativeExact" | "negativePhrase" }[]

    Returns Promise<({ code: string; keywordId: number } & { details: undefined | string })[]>

  • Gets a negative keyword specified by identifier.

    Returns

    Parameters

    • keywordId: number

    Returns Promise<{ adGroupId: number; campaignId: number; keywordId: number; keywordText: string; matchType: "negativeExact" | "negativePhrase"; state: "pending" | "enabled" | "archived" | "draft" }>

  • Updates one or more negative keywords. Negative keywords submitted for update have state set to pending while under moderation review. Note that moderation may take up to 72 hours.

    Returns

    Parameters

    • params: { adGroupId: undefined | number; campaignId: undefined | number; keywordId: undefined | number; state: undefined | "pending" | "enabled" | "archived" | "draft" }[]

    Returns Promise<({ code: string; keywordId: number } & { details: undefined | string })[]>