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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 UTC."],[[["\u003cp\u003eExports customer account job history to a BigQuery dataset selected by the customer.\u003c/p\u003e\n"],["\u003cp\u003eRequires specifying the project ID, dataset, start and end dates for the export.\u003c/p\u003e\n"],["\u003cp\u003eUses a POST request to \u003ccode\u003ehttps://adsdatahub.googleapis.com/v1/{customer=customers/*}:exportJobHistory\u003c/code\u003e with the customer ID in the path.\u003c/p\u003e\n"],["\u003cp\u003eThe start date for the export cannot be more than 30 days in the past and only a single day's worth of job history can be exported currently.\u003c/p\u003e\n"],["\u003cp\u003eNeeds authorization with the \u003ccode\u003ehttps://www.googleapis.com/auth/adsdatahub\u003c/code\u003e scope.\u003c/p\u003e\n"]]],["This API exports a customer account's job history to a BigQuery dataset. A `POST` request to `https://adsdatahub.googleapis.com/v1/{customer=customers/*}:exportJobHistory` requires the customer ID in the path. The request body, in JSON, mandates the `projectId`, `dataset`, `startDate`, and `endDate` for the export; `timeZone` is optional. The `startDate` must be within 30 days of the current date. A successful response returns an `Operation` instance, and the `https://www.googleapis.com/auth/adsdatahub` OAuth scope is needed.\n"],null,["# Method: customers.exportJobHistory\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n - [JSON representation](#body.request_body.SCHEMA_REPRESENTATION)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n\nExports job history of a customer account to customer-selected BigQuery dataset.\n\n### HTTP request\n\n`POST https://adsdatahub.googleapis.com/v1/{customer=customers/*}:exportJobHistory`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|------------|----------------------------------------------------------------------------------------|\n| `customer` | `string` Required. ADH customer ID to fetch jobs for, with the format 'customers/123'. |\n\n### Request body\n\nThe request body contains data with the following structure:\n\n| JSON representation |\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"projectId\": string, \"dataset\": string, \"startDate\": { object (/ads-data-hub/marketers/reference/rest/v1/Date) }, \"endDate\": { object (/ads-data-hub/marketers/reference/rest/v1/Date) }, \"timeZone\": string } ``` |\n\n| Fields ||\n|-------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `projectId` | `string` Required. Customer project ID that the query audit log will be written to. |\n| `dataset` | `string` Required. Customer dataset that the query audit log will be written to. |\n| `startDate` | `object (`[Date](/ads-data-hub/marketers/reference/rest/v1/Date)`)` 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. |\n| `endDate` | `object (`[Date](/ads-data-hub/marketers/reference/rest/v1/Date)`)` 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. |\n| `timeZone` | `string` Optional. The time zone for the start date. If not specified, defaults to 'UTC'. |\n\n### Response body\n\nIf successful, the response body contains an instance of [Operation](/ads-data-hub/marketers/reference/rest/v1/operations#Operation).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/adsdatahub`"]]