Hierarchy

  • Operation
    • SponsoredProductsProductTargetingOperation

Constructors

Methods

  • Set the status of targeting clauses to archived. This same operation can also be performed via an update (PUT method), but is included for completeness. Archived entities cannot be made active again.

    Returns

    Parameters

    • targetId: number

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

  • Generate list of recommended products to target, based on the ASIN that is input. Successful response will be a list of recommended ASINs to target.

    Returns

    Parameters

    • params: { asins: string[]; pageNumber: number; pageSize: number }
      • asins: string[]

        A list of asins for which to get recommendations for

      • pageNumber: number

        The number of pages to index into the result set

      • pageSize: number

        The number of recommendations to return in one page.

    Returns Promise<{ recommendedProducts: ({ recommendedTargetAsin: string; })[]; totalResultCount: number }>

  • Creates one or more targeting expressions.

    Returns

    Parameters

    • params: { adGroupId: undefined | number; bid: undefined | number; campaignId: undefined | number; expression: undefined | ({ type: "asinCategorySameAs" | "asinBrandSameAs" | "asinPriceLessThan" | "asinPriceBetween" | "asinPriceGreaterThan" | "asinReviewRatingLessThan" | "asinReviewRatingBetween" | "asinReviewRatingGreaterThan" | "asinSameAs" | "queryBroadRelMatches" | "queryHighRelMatches" | "asinSubstituteRelated" | "asinAccessoryRelated" | "asinIsPrimeShippingEligible" | "asinAgeRangeSameAs" | "asinGenreSameAs" } & ({ value?: string | undefined; }))[]; expressionType: undefined | "auto" | "manual"; state: undefined | "paused" | "enabled" | "archived" }[]

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

  • Get recommended brands for Sponsored Products. Only one parameter (keyword or categoryId) per request is allowed.

    Returns

    Parameters

    • params: { categoryId: undefined | number; keyword: undefined | string }
      • categoryId: undefined | number
      • keyword: undefined | string

    Returns Promise<{ id: number; name: string }>

  • Get refinements for a single category. Categories and Refinements are determined based on marketplaceId of the profile in the request. Note that refinements will differ between marketplaces.

    Returns

    Parameters

    • categoryId: number

    Returns Promise<{ ageRanges: ({ id: number; name: string; })[]; brands: ({ id: number; name: string; })[]; categoryId: number }>

  • Retrieve a targeting clause with a specific target ID.

    Returns

    Parameters

    • targetId: number

    Returns Promise<{ adGroupId: number; campaignId: number; expression: (({ type: "asinCategorySameAs" | "asinBrandSameAs" | "asinPriceLessThan" | "asinPriceBetween" | "asinPriceGreaterThan" | "asinReviewRatingLessThan" | "asinReviewRatingBetween" | "asinReviewRatingGreaterThan" | "asinSameAs" | "queryBroadRelMatches" | "queryHighRelMatches" | "asinSubstituteRelated" | "asinAccessoryRelated" | "asinIsPrimeShippingEligible" | "asinAgeRangeSameAs" | "asinGenreSameAs"; }) & { value: undefined | string })[]; expressionType: "auto" | "manual"; state: "paused" | "enabled" | "archived"; targetId: number } & { bid: undefined | number }>

  • Retrieve a targeting clause with additional attributes using a specific target ID.

    Returns

    Parameters

    • targetId: number

    Returns Promise<{ adGroupId: number; campaignId: number; expression: (({ type: "asinCategorySameAs" | "asinBrandSameAs" | "asinPriceLessThan" | "asinPriceBetween" | "asinPriceGreaterThan" | "asinReviewRatingLessThan" | "asinReviewRatingBetween" | "asinReviewRatingGreaterThan" | "asinSameAs" | "queryBroadRelMatches" | "queryHighRelMatches" | "asinSubstituteRelated" | "asinAccessoryRelated" | "asinIsPrimeShippingEligible" | "asinAgeRangeSameAs" | "asinGenreSameAs"; }) & { value: undefined | string })[]; expressionType: "auto" | "manual"; state: "paused" | "enabled" | "archived"; targetId: number } & { bid: undefined | 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" }>

  • Retrieves a list of 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; campaignId: number; expression: (({ type: "asinCategorySameAs" | "asinBrandSameAs" | "asinPriceLessThan" | "asinPriceBetween" | "asinPriceGreaterThan" | "asinReviewRatingLessThan" | "asinReviewRatingBetween" | "asinReviewRatingGreaterThan" | "asinSameAs" | "queryBroadRelMatches" | "queryHighRelMatches" | "asinSubstituteRelated" | "asinAccessoryRelated" | "asinIsPrimeShippingEligible" | "asinAgeRangeSameAs" | "asinGenreSameAs"; }) & { value: undefined | string })[]; expressionType: "auto" | "manual"; state: "paused" | "enabled" | "archived"; targetId: number } & { bid: undefined | number })[]>

  • Retrieve a list of targeting clauses with extended properties.

    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; campaignId: number; expression: (({ type: "asinCategorySameAs" | "asinBrandSameAs" | "asinPriceLessThan" | "asinPriceBetween" | "asinPriceGreaterThan" | "asinReviewRatingLessThan" | "asinReviewRatingBetween" | "asinReviewRatingGreaterThan" | "asinSameAs" | "queryBroadRelMatches" | "queryHighRelMatches" | "asinSubstituteRelated" | "asinAccessoryRelated" | "asinIsPrimeShippingEligible" | "asinAgeRangeSameAs" | "asinGenreSameAs"; }) & { value: undefined | string })[]; expressionType: "auto" | "manual"; state: "paused" | "enabled" | "archived"; targetId: number } & { bid: undefined | 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" })[]>

  • Update one or more targeting clauses.

    Returns

    Parameters

    • params: { adGroupId: undefined | number; bid: undefined | number; campaignId: undefined | number; expression: undefined | ({ type: "asinCategorySameAs" | "asinBrandSameAs" | "asinPriceLessThan" | "asinPriceBetween" | "asinPriceGreaterThan" | "asinReviewRatingLessThan" | "asinReviewRatingBetween" | "asinReviewRatingGreaterThan" | "asinSameAs" | "queryBroadRelMatches" | "queryHighRelMatches" | "asinSubstituteRelated" | "asinAccessoryRelated" | "asinIsPrimeShippingEligible" | "asinAgeRangeSameAs" | "asinGenreSameAs" } & ({ value?: string | undefined; }))[]; expressionType: undefined | "auto" | "manual"; state: undefined | "paused" | "enabled" | "archived"; targetId: undefined | number }[]

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