Hi Google API-team, 

I have made use of an earlier version of your API with great success, but 
the version ran out, so I was force to update my googleads-php-lib. 

When i try to run one of the examples-file, GetCampaigns.php, I get the 
following error:

"PHP Fatal error:  Uncaught exception 'InvalidArgumentException' with 
message 'All of 'clientId', 'clientSecret', and 'refreshToken' must be set 
when using installed/web application flow.' in C:\Users\myname\OneD
rive\Sites\Scraper\googleads-php-lib\src\Google\AdsApi\Common\OAuth2TokenBuilder.php:204"

But I have filled out my clientId, clientSecret and generated a new 
refreshToken in the adsapi_php.ini-file. Maybe the path is wrong since it 
cannot find the credentials. The file is placed in C:\Users\myname\OneD
rive\Sites\Scraper\adsapi_php.ini so that fromFile() can access it.

Can you please help me out? Do you need further information?

Here is my adsapi_php.ini: 

[ADWORDS]
; Required AdWords API properties. Details can be found at:
; 
https://developers.google.com/adwords/api/docs/guides/basic-concepts#soap_and_xml
developerToken = "-fbfPkrq......qv9Tg"
clientCustomerId = "...-385-1.9...."

; Optional. Set a friendly application name identifier.
userAgent = "Scraper"

; Optional additional AdWords API settings.
; endpoint = "https://adwords.google.com/";
; isPartialFailure = false

; Optional setting for utility usage tracking in the user agent in requests.
; Defaults to true.
; includeUtilitiesInUserAgent = true

[ADWORDS_REPORTING]
; Optional reporting settings.
; isSkipReportHeader = false
; isSkipColumnHeader = false
; isSkipReportSummary = false
; isUseRawEnumValues = false

[OAUTH2]
; Required OAuth2 credentials. Uncomment and fill in the values for the
; appropriate flow based on your use case. See the README for guidance:
; 
https://github.com/googleads/googleads-php-lib/blob/master/README.md#getting-started

; For installed application or web application flow.
client_id = "1198631.....googleusercontent.com"
client_secret = "XuQ...._zSp"
refresh_token = "1/E1VN2......0Ap6L00nXQWw"

; For service account flow.
; jsonKeyFilePath = "INSERT_ABSOLUTE_PATH_TO_OAUTH2_JSON_KEY_FILE_HERE"
; scopes = "https://www.googleapis.com/auth/adwords";
; impersonatedEmail = "INSERT_EMAIL_OF_ACCOUNT_TO_IMPERSONATE_HERE"

[SOAP]
; Optional SOAP settings. See SoapSettingsBuilder.php for more information.
; compressionLevel = <COMPRESSION_LEVEL>
; wsdlCache = <WSDL_CACHE>

[PROXY]
; Optional proxy settings to be used by SOAP requests.
; host = "<HOST>"
; port = <PORT>
; user = "<USER>"
; password = "<PASSWORD>"

[LOGGING]
; Optional logging settings.
; soapLogFilePath = "/soap.log"
; soapLogLevel = "INFO"
; reportDownloaderLogFilePath = "path/to/your/report-downloader.log"
; reportDownloaderLogLevel = "INFO"
; batchJobsUtilLogFilePath = "path/to/your/bjutil.log"
; batchJobsUtilLogLevel = "INFO"

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/e7b89889-aa63-4e9f-9bdd-f255f8618453%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to