Hello, Can you make sure that you have specified the path to the root directory which has your OAuth credentials? You can check this guide <https://github.com/googleads/googleads-php-lib#getting-started> for more information. Please note that Developer token is only available for Production accounts. The builder's fromFile() method looks for an adsapi_php.ini file in your home directory by default. If you want to store this file in another directory, pass the path of the file as an argument. Can you give this a try and let me know if you still have any issues?
Regards, Bharani, AdWords API Team On Friday, June 8, 2018 at 9:54:20 AM UTC-4, SnowYou wrote: > > Hi, > > I'm trying to use the adWords API in a web application, but it seems that > my authentification file is incorrect. > Here it is : > > [ADWORDS] > ; Required AdWords API properties. Details can be found at: > ; > https://developers.google.com/adwords/api/docs/guides/basic-concepts#soap_and_xml > developerToken = "" ;Nothing here because I'm using a test account ? > clientCustomerId = "XXX-XXX-XXXX" > > ; Optional. Set a friendly application name identifier. > ; userAgent = "INSERT_USER_AGENT_HERE" > > ; 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. > clientId = " > 1291XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXq61.apps.googleusercontent.com" > clientSecret = "M6XXXXXXXXXXXXXXXXXXXDr" > refresh_token = > "1/FzXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXv4y8yZhAP" > > ; 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> > > [CONNECTION] > ; Optional proxy settings to be used by requests. > ; If you don't have username and password, just specify host and port. > ; proxy = "protocol://user:pass@host:port" > ; Enable transparent HTTP gzip compression for all reporting requests. > ; enableReportingGzip = false > > [LOGGING] > ; Optional logging settings. > ; soapLogFilePath = "path/to/your/soap.log" > ; soapLogLevel = "INFO" > ; reportDownloaderLogFilePath = "path/to/your/report-downloader.log" > ; reportDownloaderLogLevel = "INFO" > ; batchJobsUtilLogFilePath = "path/to/your/bjutil.log" > ; batchJobsUtilLogLevel = "INFO" > > Is something wrong ? Or is this error coming from something else ? > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog: https://googleadsdeveloper.blogspot.com/ =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads API Forum" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] 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 and Google Ads API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. 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/4854377b-453a-457c-9553-b8692a441c07%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
