Hierarchy

Constructors

Methods

  • Archives a draft campaign specified by identifier.

    Returns

    Parameters

    • draftCampaignId: number

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

  • Creates one or more new draft campaigns.

    Returns

    Parameters

    • params: ({ brandEntityId: undefined | string; draftCampaignId: undefined | number } & { bidMultiplier: number; bidOptimization: boolean; budget: number; budgetType: "lifetime" | "daily"; creative: { brandName: string; brandLogoAssetID: string; brandLogoUrl: string; headline: string; asins: string[]; shouldOptimizeAsins: boolean; }; endDate: string; landingPage: { asins: undefined | string[] } & ({ url: string; }); name: string; portfolioId: number; startDate: string } & { keywords: ({ keywordText: string; matchType: "exact" | "broad" | "phrase"; bid: number; })[]; negativeKeywords: ({ keywordText: string; matchType: "negativeExact" | "negativePhrase"; })[] })[]

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

  • Gets a draft campaign specified by identifier.

    Returns

    Parameters

    • draftCampaignId: number

    Returns Promise<{ brandEntityId: undefined | string; draftCampaignId: undefined | number } & { bidMultiplier: number; bidOptimization: boolean; budget: number; budgetType: "lifetime" | "daily"; creative: { brandName: string; brandLogoAssetID: string; brandLogoUrl: string; headline: string; asins: string[]; shouldOptimizeAsins: boolean; }; endDate: string; landingPage: { asins: undefined | string[] } & ({ url: string; }); name: string; portfolioId: number; startDate: string } & { keywords: ({ keywordText: string; matchType: "exact" | "broad" | "phrase"; bid: number; })[]; negativeKeywords: ({ keywordText: string; matchType: "negativeExact" | "negativePhrase"; })[] }>

  • Gets an array of draft campaign objects.

    Returns

    Parameters

    • params: { count: undefined | number; startIndex: undefined | number } & { draftCampaignIdFilter: undefined | number; name: undefined | string; portfolioIdFilter: undefined | number }

    Returns Promise<({ brandEntityId: undefined | string; draftCampaignId: undefined | number } & { bidMultiplier: number; bidOptimization: boolean; budget: number; budgetType: "lifetime" | "daily"; creative: { brandName: string; brandLogoAssetID: string; brandLogoUrl: string; headline: string; asins: string[]; shouldOptimizeAsins: boolean; }; endDate: string; landingPage: { asins: undefined | string[] } & ({ url: string; }); name: string; portfolioId: number; startDate: string })[]>

  • Submits one or more existing draft campaigns to the moderation approval queue.

    Returns

    Parameters

    • draftCampaignIds: number[]

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

  • Updates one or more draft campaigns.

    Returns

    Parameters

    • params: ({ brandEntityId: undefined | string; draftCampaignId: undefined | number } & { bidMultiplier: number; bidOptimization: boolean; budget: number; budgetType: "lifetime" | "daily"; creative: { brandName: string; brandLogoAssetID: string; brandLogoUrl: string; headline: string; asins: string[]; shouldOptimizeAsins: boolean; }; endDate: string; landingPage: { asins: undefined | string[] } & ({ url: string; }); name: string; portfolioId: number; startDate: string } & { keywords: ({ keywordText: string; matchType: "exact" | "broad" | "phrase"; bid: number; })[]; negativeKeywords: ({ keywordText: string; matchType: "negativeExact" | "negativePhrase"; })[] })[]

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