Hierarchy

Constructors

Methods

  • Sets the ad group 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

    • adGroupId: number

    Returns Promise<{ adGroupId: number; code: "NOT_FOUND" | "SUCCESS" | "INVALID_ARGUMENT" } & { details: undefined | string }>

  • Creates one or more ad groups. Successfully created ad groups will be assigned a unique adGroupId

    Returns

    Parameters

    • adGroups: { campaignId: number; defaultBid: number; name: string; state: "paused" | "enabled" | "archived" }[]

    Returns Promise<({ adGroupId: number; code: "NOT_FOUND" | "SUCCESS" | "INVALID_ARGUMENT" } & { details: undefined | string })[]>

  • Retrieves an ad group by ID. Note that this call returns the minimal set of ad group fields, but is more efficient than getAdGroupExtended

    Returns

    Parameters

    • adGroupId: number

    Returns Promise<{ adGroupId: number; campaignId: number; defaultBid: number; name: string; state: "paused" | "enabled" | "archived" }>

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

    Returns

    Parameters

    • adGroupId: number

    Returns Promise<{ adGroupId: number; campaignId: number; defaultBid: number; name: string; state: "paused" | "enabled" | "archived" } & { creationDate: Date; lastUpdatedDate: Date; servingStatus: "CAMPAIGN_ARCHIVED" | "CAMPAIGN_PAUSED" | "ADVERTISER_PAYMENT_FAILURE" | "CAMPAIGN_OUT_OF_BUDGET" | "ACCOUNT_OUT_OF_BUDGET" | "PORTFOLIO_ENDED" | "CAMPAIGN_INCOMPLETE" | "ENDED" | "AD_GROUP_ARCHIVED" | "AD_GROUP_INCOMPLETE" | "AD_GROUP_PAUSED" | "AD_GROUP_STATUS_ENABLED" | "AD_POLICING_SUSPENDED" | "PORTFOLIO_PENDING_START_DATE" }>

  • Retrieves a list of ad groups satisfying optional criteria.

    Returns

    Parameters

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

    Returns Promise<{ adGroupId: number; campaignId: number; defaultBid: number; name: string; state: "paused" | "enabled" | "archived" }[]>

  • Retrieves a list of ad groups with extended fields satisfying optional filtering criteria.

    Returns

    Parameters

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

    Returns Promise<({ adGroupId: number; campaignId: number; defaultBid: number; name: string; state: "paused" | "enabled" | "archived" } & { creationDate: Date; lastUpdatedDate: Date; servingStatus: "CAMPAIGN_ARCHIVED" | "CAMPAIGN_PAUSED" | "ADVERTISER_PAYMENT_FAILURE" | "CAMPAIGN_OUT_OF_BUDGET" | "ACCOUNT_OUT_OF_BUDGET" | "PORTFOLIO_ENDED" | "CAMPAIGN_INCOMPLETE" | "ENDED" | "AD_GROUP_ARCHIVED" | "AD_GROUP_INCOMPLETE" | "AD_GROUP_PAUSED" | "AD_GROUP_STATUS_ENABLED" | "AD_POLICING_SUSPENDED" | "PORTFOLIO_PENDING_START_DATE" })[]>

  • Updates one or more ad groups. Ad groups are identified using their adGroupId

    Returns

    Parameters

    • adGroups: ({ adGroupId: number } & { defaultBid: undefined | number; name: undefined | string; state: undefined | "paused" | "enabled" | "archived" })[]

    Returns Promise<({ adGroupId: number; code: "NOT_FOUND" | "SUCCESS" | "INVALID_ARGUMENT" } & { details: undefined | string })[]>