代码之家  ›  专栏  ›  技术社区  ›  Chuck Burgess

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

  •  0
  • Chuck Burgess  · 技术社区  · 15 年前

    $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;
    }
    
    1 回复  |  直到 15 年前
        1
  •  0
  •   Chuck Burgess    15 年前

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

    推荐文章