I'm facing the EXACT same problem. I used composer to install the files. But, as the other Chris states, every single file I try to use seems to mismatch the folder structure. I was able to get the GetRefreshToken.php to work, but only by virtue of editing line 19 to read require '../../../../../vendor/autoload.php', with an extra ..
Now, if I try to run any reports (eg. /vendor/googleads/googleads-php-lib/examples/AdWords/v201705/Reporting/GetReportFields.php), etc, they come up with similar directory structure problems, with similar errors on line 19. Very frustrating!! If I move the .php file itself up one directory, the GetReportFields.php runs but I get the following: *Fatal error*: Uncaught InvalidArgumentException: Config file not found as specified: 'adsapi_php.ini' or in the home directory: '/Users/chris/adsapi_php.ini'. in /Users/chris/Google Drive/<my project's directory>/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/ConfigurationLoader.php:63................. Can you provide us with a sense of what the folder structure *should* look like? That might prove exceptionally helpful for me, and others. On Friday, January 13, 2017 at 4:20:39 PM UTC-5, Shwetha Vastrad (AdWords API Team) wrote: > > Hi Chris, > > You'll need to use Composer <https://getcomposer.org/> to install the > latest version of the AdWords API PHP client library, which will update the > required dependencies in your environment. If you downloaded the example > files directly from the repository, these dependencies may not be > configured correctly. Could you try it out and let me know if it works? > > Regards, > Shwetha, AdWords API Team. > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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/0afc876f-ef5d-4242-a7f8-9ed935306b35%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.