Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File is missing #244

Closed
sonelal752 opened this issue Feb 21, 2017 · 6 comments
Closed

File is missing #244

sonelal752 opened this issue Feb 21, 2017 · 6 comments
Assignees

Comments

@sonelal752
Copy link

sonelal752 commented Feb 21, 2017

require '../../../../vendor/autoload.php';

Where is the file?

This file is missing from googleads-php-lib-master folder.

@fiboknacky fiboknacky self-assigned this Feb 21, 2017
@fiboknacky
Copy link
Member

Hello @sonelal752

The autoload.php file refers to the one when you use Composer to install any libraries.
The autoload.php file will be generated inside the vendor directory.

Can you find the vendor directory in your project directory?
Could you show how your project directory is organized?

Cheers,
Knack

@robolmos
Copy link

I had a similar issue when trying to run the GetRefreshToken.php script. To fix it I needed to update the require line with additional parent-dir double-dot references. Working version:

require '../../../../../vendor/autoload.php';

My environment was setup via composer from this repo's README. The layout within the project "home" directory:

adsapi_php.ini composer.json composer.lock vendor

The path to the GetRefreshToken.php script:

vendor/googleads/googleads-php-lib/examples/Auth/GetRefreshToken.php

@fiboknacky
Copy link
Member

I'll have a look at this.
Possibly we need to add one more ../ for this.

Thanks.
Knack

@sudhyer
Copy link

sudhyer commented Jun 5, 2017

Hi,

URL: http://localhost/googleads/vendor/googleads/googleads-php-lib/examples/Auth/GetRefreshToken.php

when I am running above URL then getting these types of error on screen.
"Enter your OAuth2 client ID here: Enter your OAuth2 client secret here: Select the ads API you're using: [0] AdWords [1] DFP [2] Both Please enter a valid number for the ads API you're using: [0] AdWords [1] DFP [2] Both Please enter a valid number for the ads API you're using: [0] "

@fiboknacky
Copy link
Member

Hi @sudhyer

Let's answer in another issue (#302) you've created.

Best,
Knack

@fiboknacky
Copy link
Member

This is fixed in v28.0.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants