Exports job history of a customer account to customer-selected BigQuery dataset.
HTTP request
POST https://adsdatahub.googleapis.com/v1/{customer=customers/*}:exportJobHistory
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
customer |
Required. ADH customer ID to fetch jobs for, with the format 'customers/123'. |
Request body
The request body contains data with the following structure:
JSON representation |
---|
{ "projectId": string, "dataset": string, "startDate": { object ( |
Fields | |
---|---|
projectId |
Required. Customer project ID that the query audit log will be written to. |
dataset |
Required. Customer dataset that the query audit log will be written to. |
startDate |
Required. Job history will be exported for jobs started on or after startDate but before endDate. startDate cannot be more than 30 days from the current date. |
endDate |
Required. End date for date range for job history export, exclusive. Currently, only a single day's worth of query job history can be exported. |
timeZone |
Optional. The time zone for the start date. If not specified, defaults to 'UTC'. |
Response body
If successful, the response body contains an instance of Operation
.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/adsdatahub