Class SponsoredDisplayReportOperation<ReportParams>

Type Parameters

Hierarchy

Constructors

Methods

  • Downloads the report corresponding to the reportId specified

    Returns

    {(Promise<Partial<Record<T, 'number' | 'string'>>[]>)}

    Type Parameters

    • T extends string

    Parameters

    • reportId: string

    Returns Promise<Partial<Record<T, "string" | "number">>[]>

  • Retrieve status, metadata and location of a previously requested performance report.

    Returns

    Parameters

    • reportId: string

    Returns Promise<{ reportId: string; status: "SUCCESS" | "IN_PROGRESS" | "FAILURE"; statusDetails: string } & { fileSize: undefined | number; location: undefined | string; recordType: undefined | string }>

  • Creates a report request. Record types can be: campaigns, adGroups, productAds, and targets

    Returns

    Parameters

    • params: ReportParams

    Returns Promise<{ reportId: string; status: "SUCCESS" | "IN_PROGRESS" | "FAILURE"; statusDetails: string } & { fileSize: undefined | number; location: undefined | string; recordType: undefined | string }>