Hierarchy

Constructors

Methods

  • Archives a campaign specified by identifier.

    Returns

    Parameters

    • campaignId: number

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

  • Creates one or more new Campaigns

    Returns

    Parameters

    • campaigns: { dailyBudget: number; name: string; startDate: string; state: "paused" | "enabled" | "archived"; targetingType: "auto" | "manual" }[]

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

  • Gets a campaign specified by identifier

    Returns

    Parameters

    • campaignId: number

    Returns Promise<{ budget: number; budgetType: "lifetime" | "daily"; campaignId: number; landingPage: undefined | ({ pageType: "store" | "detailPage"; url: string; }); name: string; servingStatus: Readonly<"paused" | "running" | "ended" | "rejected" | "asinNotBuyable" | "billingError" | "landingPageNotAvailable" | "outOfBudget" | "pendingReview" | "ready" | "scheduled" | "terminated" | "portfolioEnded">; startDate: string; state: "paused" | "enabled" | "archived" } & { bidMultiplier: undefined | number; bidOptimization: undefined | boolean; brandEntityId: undefined | string; creative: undefined | { asins: string[] } & ({ headline?: string | undefined; brandLogoUrl?: string | undefined; brandName?: string | undefined; brandLogoAssetID?: string | undefined; }); endDate: undefined | string; keywords: undefined | { keywordText: string; matchType: "exact" | "broad" | "phrase" } & ({ bid?: number | undefined; }); portfolioId: undefined | number }>

  • Gets an array of all campaigns associated with the client identifier passed in the authorization header, filtered by specified criteria.

    Returns

    Parameters

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

    Returns Promise<({ budget: number; budgetType: "lifetime" | "daily"; campaignId: number; landingPage: undefined | ({ pageType: "store" | "detailPage"; url: string; }); name: string; servingStatus: Readonly<"paused" | "running" | "ended" | "rejected" | "asinNotBuyable" | "billingError" | "landingPageNotAvailable" | "outOfBudget" | "pendingReview" | "ready" | "scheduled" | "terminated" | "portfolioEnded">; startDate: string; state: "paused" | "enabled" | "archived" } & { bidMultiplier: undefined | number; bidOptimization: undefined | boolean; brandEntityId: undefined | string; creative: undefined | { asins: string[] } & ({ headline?: string | undefined; brandLogoUrl?: string | undefined; brandName?: string | undefined; brandLogoAssetID?: string | undefined; }); endDate: undefined | string; keywords: undefined | { keywordText: string; matchType: "exact" | "broad" | "phrase" } & ({ bid?: number | undefined; }); portfolioId: undefined | number })[]>

  • Updates one or more campaigns.

    Returns

    Parameters

    • campaigns: ({ campaignId: number } & { bidMultiplier: undefined | number; bidOptimization: undefined | boolean; budget: undefined | number; endDate: undefined | string; portfolioId: undefined | number; state: undefined | "paused" | "enabled" | "archived" })[]

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