Hierarchy

  • Operation
    • SponsoredProductsProductAdsOperation

Constructors

Methods

  • Sets the product ad status to archived. This same operation can be performed via an update, but is included for completeness. Archived entities cannot be made active again. See developer notes for more information.

    Returns

    Parameters

    • adId: number

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

  • Retrieves a product ad by ID. Note that this call returns the minimal set of product ad fields, but is more efficient than getProductAdEx.

    Returns

    Parameters

    • adId: number

    Returns Promise<{ adGroupId: number; adId: number; campaignId: number; state: "paused" | "enabled" | "archived" } & { sku: string } | { adGroupId: number; adId: number; campaignId: number; state: "paused" | "enabled" | "archived" } & { asin: string }>

  • Retrieves a product ad and its extended fields by ID. Note that this call returns the complete set of product ad fields (including serving status and other read-only fields), but is less efficient than getProductAd.

    Returns

    Parameters

    • adId: number

    Returns Promise<{ adGroupId: number; adId: number; campaignId: number; state: "paused" | "enabled" | "archived" } & { sku: string } & { 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" | "AD_POLICING_SUSPENDED" | "AD_ARCHIVED" | "AD_PAUSED" | "AD_STATUS_LIVE" | "MISSING_DECORATION" | "NOT_BUYABLE" } & { adGroupId: number; adId: number; campaignId: number; state: "paused" | "enabled" | "archived" } & { asin: string } & { 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" | "AD_POLICING_SUSPENDED" | "AD_ARCHIVED" | "AD_PAUSED" | "AD_STATUS_LIVE" | "MISSING_DECORATION" | "NOT_BUYABLE" }>

  • Retrieves a list of product ads satisfying optional criteria.

    Returns

    Parameters

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

    Returns Promise<({ adGroupId: number; adId: number; campaignId: number; state: "paused" | "enabled" | "archived" } & { sku: string } | { adGroupId: number; adId: number; campaignId: number; state: "paused" | "enabled" | "archived" } & { asin: string })[]>

  • Retrieves a list of product ads with extended fields satisfying optional criteria.

    Returns

    Parameters

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

    Returns Promise<({ adGroupId: number; adId: number; campaignId: number; state: "paused" | "enabled" | "archived" } & { sku: string } & { 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" | "AD_POLICING_SUSPENDED" | "AD_ARCHIVED" | "AD_PAUSED" | "AD_STATUS_LIVE" | "MISSING_DECORATION" | "NOT_BUYABLE" } & { adGroupId: number; adId: number; campaignId: number; state: "paused" | "enabled" | "archived" } & { asin: string } & { 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" | "AD_POLICING_SUSPENDED" | "AD_ARCHIVED" | "AD_PAUSED" | "AD_STATUS_LIVE" | "MISSING_DECORATION" | "NOT_BUYABLE" })[]>

  • Updates one or more product ads. Product ads are identified using their adId.

    Returns

    Parameters

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

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