HI Guys I've been using the Adwords API for around a year or so, I always used the auth.ini file on each api update we managed to get it working but recently we upgraded to the latest API, using composer to install to our classes folder *C:\xampp\htdocs\main-application\classes\* to which we have the vendor folder & other folders needed to run the api, I've filled out the adsapi_php.ini with our project details, but while running our test file we encounter the fatal error & missing ini file.
I printed the $_SERVER output in order to find the home directory & tried re-locating the ini file to various locations on the server install, but still get the fatal error Fatal error: Uncaught exception 'InvalidArgumentException' with message 'Config file not found as specified: 'adsapi_php.ini'. Home directory could not be located so it was not searched.' in C:\xampp\htdocs\main-application\classes\google-adwords\vendor\googleads\googleads-php-lib\src\Google\AdsApi\Common\ConfigurationLoader.php on line 77 Array ( [MIBDIRS] => C:/xampp/php/extras/mibs [MYSQL_HOME] => \xampp\mysql\bin [OPENSSL_CONF] => C:/xampp/apache/bin/openssl.cnf [PHP_PEAR_SYSCONF_DIR] => \xampp\php [PHPRC] => \xampp\php [TMP] => \xampp\tmp [HTTP_HOST] => localhost [HTTP_CONNECTION] => keep-alive [HTTP_UPGRADE_INSECURE_REQUESTS] => 1 [HTTP_USER_AGENT] => Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.167 Safari/537.36 [HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8 [HTTP_ACCEPT_ENCODING] => gzip, deflate, br [HTTP_ACCEPT_LANGUAGE] => en-GB,en-US;q=0.9,en;q=0.8 [PATH] => C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\AMD APP\bin\x86_64;C:\Program Files (x86)\AMD APP\bin\x86;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files (x86)\Skype\Phone\; [SystemRoot] => C:\Windows [COMSPEC] => C:\Windows\system32\cmd.exe [PATHEXT] => .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC [WINDIR] => C:\Windows [SERVER_SIGNATURE] => Apache/2.4.12 (Win32) OpenSSL/1.0.1l Server at localhost Port 80 [SERVER_SOFTWARE] => Apache/2.4.12 (Win32) OpenSSL/1.0.1l [SERVER_NAME] => localhost [SERVER_ADDR] => ::1 [SERVER_PORT] => 80 [REMOTE_ADDR] => ::1 [DOCUMENT_ROOT] => C:/xampp/htdocs [REQUEST_SCHEME] => http [CONTEXT_PREFIX] => [CONTEXT_DOCUMENT_ROOT] => C:/xampp/htdocs [SERVER_ADMIN] => testsupport @ test.co.uk [SCRIPT_FILENAME] => C:/xampp/htdocs/main-application/test/test-adwords.php [REMOTE_PORT] => 61099 [GATEWAY_INTERFACE] => CGI/1.1 [SERVER_PROTOCOL] => HTTP/1.1 [REQUEST_METHOD] => GET [QUERY_STRING] => [REQUEST_URI] => / [REMOTE_PORT] => 61099 [GATEWAY_INTERFACE] => CGI/1.1 [SERVER_PROTOCOL] => HTTP/1.1 [REQUEST_METHOD] => GET [QUERY_STRING] => [REQUEST_URI] => / [REMOTE_PORT] => 61099 [GATEWAY_INTERFACE] => CGI/1.1 [SERVER_PROTOCOL] => HTTP/1.1 [REQUEST_METHOD] => GET [QUERY_STRING] => [REQUEST_URI] => /main-application/test/test-adwords.php [SCRIPT_NAME] => /main-application/test/test-adwords.php [PHP_SELF] => /main-application/test/test-adwords.php [REQUEST_TIME_FLOAT] => 1519638340.619 [REQUEST_TIME] => 1519638340 ) I've tried locating our ini file to: - C:\xampp\htdocs\ - C:\xampp\htdocs\main-application\ - C:\xampp\htdocs\main-application\classes\ - C:\xampp\htdocs\main-application\classes\google-adwords - C:\xampp\htdocs\main-application\classes\google-adwords\vendor\ Still getting the same error..! Cheers -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 [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 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/89ff3f41-d112-4054-8e6e-4c286ca73cf9%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
