@niur/google-admanager-api
Version:
Google Ad Manager API Client Library for NodeJs
42 lines • 1.39 kB
TypeScript
import { ReportDownloadOptions } from '../../client/services/report/report.type';
import { AdsReportUtilities, ReportResponse } from './reports';
import { ReportService } from '../../client';
/**
* Utility class for DFP API report downloads.
*/
export declare class ReportUtilities extends AdsReportUtilities {
/**
* The report service object to make calls with
*/
private reportService;
/**
* The ID of the report job to check
*/
private reportJobId;
/**
* The options to use when downloading the completed report.
*/
reportDownloadOptions: ReportDownloadOptions;
/**
* @param reportService ReportService to be used
* @param reportJobId The ID of the report job
*/
constructor(reportService: ReportService, reportJobId: number);
/**
* Returns a flag indicating whether the caller should wait more time for
* the report download to complete.
* @returns True, if the caller should wait more, false otherwise.
*/
shouldWaitMore(): Promise<boolean>;
/**
* Gets the report response.
* @returns The report response.
*/
protected getReport(): Promise<ReportResponse>;
/**
* Builds an HTTP request for downloading reports.
* @param downloadUrl The download url.
*/
private buildRequest;
}
//# sourceMappingURL=reportUtilities.util.d.ts.map