2013-08-07 52 views
3

我有AdWords API技術的一個問題。我沒有code.google.com/apis/console的client_secret。 我創建的項目,我添加API訪問我的應用程序,但我沒有看到在箱子服務帳戶client_secret。阿比谷歌的AdWords - client_secret對OAuth2.0的

我有客戶端ID,郵箱地址,公鑰指紋,私鑰,client_secret.json。在api的php的adwords是配置文件auth.ini:

[OAUTH2] 

; If you do not have a client ID or secret, please create one of type 
; "installed application" in the Google API console: 
; https://code.google.com/apis/console#access 
client_id = "INSERT_OAUTH2_CLIENT_ID_HERE" 
client_secret = "INSERT_OAUTH2_CLIENT_SECRET_HERE" 
... 

但我沒有client_secret。 我做錯了什麼?或者可以給我任何建議?

回答

0

你試圖使用可能不與服務帳戶一起使用的PHP應用程序。

爲了讓你必須創建類型爲「Web應用程序」的客戶端ID的客戶端機密。