Hierarchy

  • Operation
    • SponsoredDisplayNegativeTargetingOperation

Constructors

Methods

  • Sets the state of a negative targeting clause to archived.

    Returns

    Parameters

    • id: number

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

  • Creates one or more negative targeting clauses.

    Returns

    Parameters

    • params: { adGroupId: number; expression: ({ type: "asinBrandSameAs" | "asinSameAs"; value: string; })[]; expressionType: "auto" | "manual"; state: "paused" | "enabled" | "archived" }[]

    Returns Promise<{ code: undefined | string; details: undefined | string; targetId: undefined | number }[]>

  • Gets a negative targeting clause specified by identifier.

    Returns

    Parameters

    • id: number

    Returns Promise<{ adGroupId: number; expression: ({ type: "asinBrandSameAs" | "asinSameAs"; value: string; })[]; expressionType: "auto" | "manual"; state: "paused" | "enabled" | "archived" } & { targetId: number }>

  • Gets extended information for a negative targeting clause.

    Returns

    Parameters

    • id: number

    Returns Promise<{ adGroupId: number; expression: ({ type: "asinBrandSameAs" | "asinSameAs"; value: string; })[]; expressionType: "auto" | "manual"; state: "paused" | "enabled" | "archived" } & { targetId: number } & { creationDate: Date; lastUpdatedDate: Date; servingStatus: "CAMPAIGN_ARCHIVED" | "CAMPAIGN_PAUSED" | "ADVERTISER_PAYMENT_FAILURE" | "CAMPAIGN_OUT_OF_BUDGET" | "ACCOUNT_OUT_OF_BUDGET" | "PORTFOLIO_ENDED" | "AD_GROUP_ARCHIVED" | "AD_GROUP_PAUSED" | "TARGETING_CLAUSE_ARCHIVED" | "TARGETING_CLAUSE_PAUSED" | "TARGETING_CLAUSE_STATUS_LIVE" | "TARGETING_CLAUSE_POLICING_SUSPENDED" }>

  • Gets a list of negative targeting clauses.

    Returns

    Parameters

    • Optional params: { count: undefined | number; startIndex: undefined | number } & { adGroupIdFilter: undefined | number[]; campaignIdFilter: undefined | number[]; stateFilter: undefined | "paused" | "enabled" | "archived"; targetIdFilter: undefined | number[] }

    Returns Promise<({ adGroupId: number; expression: ({ type: "asinBrandSameAs" | "asinSameAs"; value: string; })[]; expressionType: "auto" | "manual"; state: "paused" | "enabled" | "archived" } & { targetId: number })[]>

  • Gets a list of negative targeting clause objects with extended fields.

    Returns

    Parameters

    • Optional params: { count: undefined | number; startIndex: undefined | number } & { adGroupIdFilter: undefined | number[]; campaignIdFilter: undefined | number[]; stateFilter: undefined | "paused" | "enabled" | "archived"; targetIdFilter: undefined | number[] }

    Returns Promise<({ adGroupId: number; expression: ({ type: "asinBrandSameAs" | "asinSameAs"; value: string; })[]; expressionType: "auto" | "manual"; state: "paused" | "enabled" | "archived" } & { targetId: number } & { creationDate: Date; lastUpdatedDate: Date; servingStatus: "CAMPAIGN_ARCHIVED" | "CAMPAIGN_PAUSED" | "ADVERTISER_PAYMENT_FAILURE" | "CAMPAIGN_OUT_OF_BUDGET" | "ACCOUNT_OUT_OF_BUDGET" | "PORTFOLIO_ENDED" | "AD_GROUP_ARCHIVED" | "AD_GROUP_PAUSED" | "TARGETING_CLAUSE_ARCHIVED" | "TARGETING_CLAUSE_PAUSED" | "TARGETING_CLAUSE_STATUS_LIVE" | "TARGETING_CLAUSE_POLICING_SUSPENDED" })[]>

  • Updates one or more negative targeting clauses.

    Returns

    Parameters

    • params: { state: "paused" | "enabled" | "archived"; targetId: number }[]

    Returns Promise<{ code: undefined | string; details: undefined | string; targetId: undefined | number }[]>