我尝试创建projects.locations.transferConfigs / scheduleRuns
首先我创建传输配置。有用。但是当我尝试创建scheduleRuns时,我会收到错误。
我得到了服务 $ this-> client = new Google_Client(); $ this-> client-> setAuthConfig(MCC_DIR。' protected / config / client_secret_1.json'); $这 - >客户机> setAccessType("离线&#34); $这 - >客户机> setIncludeGrantedScopes(真); $这 - >客户机> setScopes(阵列( Google_Service_Bigquery :: BIGQUERY, Google_Service_Bigquery :: CLOUD_PLATFORM, Google_Service_Bigquery :: CLOUD_PLATFORM_READ_ONLY ) ); $ this-> service = new Google_Service_BigQueryDataTransfer($ this-> client);我尝试创建转移和计划
if (!$config_id = $this->getTransfer($adword_id))
$config_id = $this->create($adword_id);
$params = new Google_Service_BigQueryDataTransfer_ScheduleTransferRunsRequest();
$params->setRangeStartTime("2017-08-17T00:00:00Z");
$params->setRangeEndTime("2017-09-03T00:00:00Z");
return $this->service->projects_locations_transferConfigs->scheduleRuns(
'projects/' . self::PROJECT_ID . '/locations/europe/transferConfigs/' . $config_id,
$params
);
并在try创建计划中我收到错误
Google_Service_Exception: {
"error": {
"code": 400,
"message": "Request contains an invalid argument.",
"errors": [
{
"message": "Request contains an invalid argument.",
"domain": "global",
"reason": "badRequest"
}
],
"status": "INVALID_ARGUMENT"
}
}
可能需要其他范围吗?