Hierarchy

Constructors

Methods

  • This operation is equivalent to an update operation that sets the status field to 'archived'. Note that setting the status field to 'archived' is permanent and can't be undone. See Developer Notes for more information.

    Returns

    Parameters

    • id: number

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

  • Creates one or more campaigns. Successfully created campaigns will be assigned a unique campaignId.

    Returns

    Parameters

    • params: ({ budget: number; budgetType: "daily"; name: string; startDate: string; state: "paused" | "enabled" | "archived"; tactic: "T00001" | "T00020" | "T00030" | "remarketing" } & { endDate: undefined | string })[]

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

  • Returns a Campaign object for a requested campaign. Note that the Campaign object is designed for performance, with a small set of commonly used campaign fields to reduce size. If the extended set of fields is required, use the campaign operations that return the CampaignResponseEx object.

    Returns

    Parameters

    • id: number

    Returns Promise<{ budget: number; budgetType: "daily"; campaignId: number; name: string; startDate: string; state: "paused" | "enabled" | "archived"; tactic: "T00001" | "T00020" | "T00030" | "remarketing" } & { costType: undefined | "cpc" | "vcpm"; deliveryProfile: undefined | "as_soon_as_possible"; endDate: undefined | string }>

  • Gets an array of CampaignResponseEx objects for a set of requested campaigns.

    Returns

    Parameters

    • id: number

    Returns Promise<{ budget: number; budgetType: "daily"; campaignId: number; name: string; startDate: string; state: "paused" | "enabled" | "archived"; tactic: "T00001" | "T00020" | "T00030" | "remarketing" } & { costType: undefined | "cpc" | "vcpm"; deliveryProfile: undefined | "as_soon_as_possible"; endDate: undefined | string } & { creationDate: undefined | Date; lastUpdatedDate: undefined | Date; servingStatus: undefined | "CAMPAIGN_ARCHIVED" | "CAMPAIGN_PAUSED" | "CAMPAIGN_STATUS_ENABLED" | "ADVERTISER_PAYMENT_FAILURE" | "CAMPAIGN_OUT_OF_BUDGET" | "ACCOUNT_OUT_OF_BUDGET" | "PORTFOLIO_ENDED" | "CAMPAIGN_INCOMPLETE" | "PENDING_START_DATE" | "ENDED" }>

  • Gets an array of Campaign objects for a requested set of Sponsored Display campaigns. Note that the Campaign object is designed for performance, and includes a small set of commonly used fields to reduce size. If the extended set of fields is required, use the campaign operations that return the CampaignResponseEx object.

    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: "daily"; campaignId: number; name: string; startDate: string; state: "paused" | "enabled" | "archived"; tactic: "T00001" | "T00020" | "T00030" | "remarketing" } & { costType: undefined | "cpc" | "vcpm"; deliveryProfile: undefined | "as_soon_as_possible"; endDate: undefined | string })[]>

  • Gets an array of CampaignResponseEx objects for a set of requested campaigns.

    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: "daily"; campaignId: number; name: string; startDate: string; state: "paused" | "enabled" | "archived"; tactic: "T00001" | "T00020" | "T00030" | "remarketing" } & { costType: undefined | "cpc" | "vcpm"; deliveryProfile: undefined | "as_soon_as_possible"; endDate: undefined | string } & { creationDate: undefined | Date; lastUpdatedDate: undefined | Date; servingStatus: undefined | "CAMPAIGN_ARCHIVED" | "CAMPAIGN_PAUSED" | "CAMPAIGN_STATUS_ENABLED" | "ADVERTISER_PAYMENT_FAILURE" | "CAMPAIGN_OUT_OF_BUDGET" | "ACCOUNT_OUT_OF_BUDGET" | "PORTFOLIO_ENDED" | "CAMPAIGN_INCOMPLETE" | "PENDING_START_DATE" | "ENDED" })[]>

  • Updates one or more campaigns.

    Returns

    Parameters

    • params: ({ campaignId: number } & { budget: undefined | number; endDate: undefined | string; name: undefined | string; startDate: undefined | string; state: undefined | "paused" | "enabled" | "archived" })[]

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