Php 终止脚本后,通过APIlity连接到Google Adwords时出错。为什么?

Php 终止脚本后,通过APIlity连接到Google Adwords时出错。为什么?,php,google-ads-api,Php,Google Ads Api,我必须使用GoogleApility客户端(通过v13)访问帐户信息。如果我正在运行我编写的脚本,并在命令行中使用CTRL+C终止它,那么当我尝试使用以下命令访问API时,会出现错误: $apilityUser->getManagersClientAccounts() 有什么想法吗 require_once('apility/apility.php'); $apilityUser = new APIlityUser( $email, $password, $client_email

我必须使用GoogleApility客户端(通过v13)访问帐户信息。如果我正在运行我编写的脚本,并在命令行中使用CTRL+C终止它,那么当我尝试使用以下命令访问API时,会出现错误:

$apilityUser->getManagersClientAccounts()
有什么想法吗

require_once('apility/apility.php');
$apilityUser = new APIlityUser(
 $email,
 $password,
 $client_email,
 $developer_token,
 $application_token
);

# get all of the accounts (IT DIES HERE)
if(!$emailAccounts = $apilityUser->getManagersClientAccounts()){
 fwrite($STDERR, '** ERROR ** There was an error while trying to connect to the partner!'."\n");
 fclose($STDERR);
 exit;
}

当脚本停止时,如果它正在缓存WSDL,它会将缓存的WSDL保留在缓存文件夹中。当我删除缓存的WSDL时,它允许我再次连接。我终于找到了解决方案,我想我会把它贴在这里,以防其他人遇到同样的问题