Where can I define header information in current version of php client lib

113 views
Skip to first unread message

big.h...@gmail.com

unread,
Mar 29, 2016, 8:57:20 AM3/29/16
to AdWords API Forum

Hi, 

I watch some videos from google developer about sandbox account. the auth.ini files that they are using is completely different from the current version. 

here is the content of the file I have.

; Detailed descriptions of these properties can be found at:

developerToken = "INSERT_DEVELOPER_TOKEN_HERE"
userAgent = "INSERT_COMPANY_NAME_HERE"

; Uncomment clientCustomerId to make requests against a single AdWords account,
; such as when you run the examples.
; If you don't set it here, you can set the client customer ID dynamically:
;  $user = new AdWordsUser();
;  $user->SetClientCustomerId(...);

; clientCustomerId = "INSERT_CLIENT_CUSTOMER_ID_HERE"

[OAUTH2]

; If you do not have a client ID or secret, please create one of type
; "installed application" in the Google API console:
client_id = "INSERT_OAUTH2_CLIENT_ID_HERE"
client_secret = "INSERT_OAUTH2_CLIENT_SECRET_HERE"

; If you already have a refresh token, enter it below. Otherwise run
; GetRefreshToken.php.
refresh_token = "INSERT_OAUTH2_REFRESH_TOKEN_HERE"

; Optionally, uncomment the oAuth2AdditionalScopes line to provide additional
; OAuth2 scopes. The AdWords API OAuth2 scope is always included. For
; additional OAuth2 scopes, reference the OAuth 2.0 Playground
; application has a list of OAuth2 scopes. For example, you would enter
; https://www.googleapis.com/auth/analytics here as a value if you would like
; to include Google Analytics as an additional scope.
; oAuth2AdditionalScopes = "INSERT_COMMA_SEPARATED_LIST_OF_SCOPES_HERE"


my question is here:

 where can I define email, password and some extra info.

please guide me a little.

Shwetha Vastrad (AdWords API Team)

unread,
Mar 29, 2016, 10:58:15 AM3/29/16
to AdWords API Forum
Hi,

The client library used in the videos might be outdated now. The AdWords API Sandbox is now deprecated and was sunset on Dec 15, 2012. We now have test accounts on the production system in place of the AdWords API Sandbox, which allows you to execute API requests against production environment for development and testing purposes. 

Please go through this getting started guide which has instruction on setting up your AdWords account and providing authentication information to start developing using test accounts.

Regards,
Shwetha
AdWords API Team.
Reply all
Reply to author
Forward
0 new messages