Re: Fatal error: Class 'Google\AdsApi\Common\OAuth2TokenBuilder' not found.

2018-05-04 Thread Stephen Barrett
Thanks Luis. I'll check there.

On Thursday, May 3, 2018 at 9:11:13 PM UTC-6, Luis Xander Talag (AdWords 
API Team) wrote:
>
> Hi Stephen,
>
> It seems your concern is more related to the PHP client libraries rather 
> than the AdWords API. I would suggest to post your issue here 
>  as the client 
> library owners are better equipped to assist you in this matter.
>
> Thanks and regards,
> Luis
> AdWords API Team
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 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 and Google Ads 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/d5283356-916d-4b4a-9898-fe1d3751c3f0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Fatal error: Class 'Google\AdsApi\Common\OAuth2TokenBuilder' not found.

2018-05-03 Thread 'Luis Xander Talag (AdWords API Team)' via AdWords API and Google Ads API Forum
Hi Stephen,

It seems your concern is more related to the PHP client libraries rather 
than the AdWords API. I would suggest to post your issue here 
 as the client 
library owners are better equipped to assist you in this matter.

Thanks and regards,
Luis
AdWords API Team

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 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 and Google Ads 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/809cdfea-3e86-4796-9865-49dc535329be%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Fatal error: Class 'Google\AdsApi\Common\OAuth2TokenBuilder' not found.

2018-05-03 Thread Stephen Barrett
I'm getting this error when trying to view an example on a webpage: Fatal 
error: Class 'Google\AdsApi\Common\OAuth2TokenBuilder' not found.

I installed the lib via git clone, I added the lib to a directory called 
adwords, and I added the adsapi_php.ini file to the root directory of my 
application. I also add the required values into that file as well.  Am I 
missing anything? I'm also working this into a Wordpress site if that makes 
any difference. 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 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 and Google Ads 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/c504e8ff-072f-46b2-8bac-5e12b8e0145b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Google\AdsApi\Common\OAuth2TokenBuilder

2018-02-20 Thread blair
You are correct. I had all the dependencies in vendor and autoload 
installed fine via command line but we were ftping the master files for the 
project from Git Hub. It seems that the download to zip from that source is 
incomplete. When doing a fresh install of googleads-php-lib-master from 
command line I was able to generate different error codes that I could then 
work through. After a long night we finally have success. Anyone reading 
this in the future I would encourage not to download/upload the library via 
ftp, as it was a pretty quick install once I stopped doing it that way. As 
a php coder who only dabbles in SSH/server admin, I found the 4 step 
instructions here 
(https://github.com/googleads/googleads-php-lib/issues/346) to be the 
easiest to follow. Thanks Vincent for your prompt reply and patient help.

-Blair

On Monday, February 19, 2018 at 10:11:00 PM UTC-6, Vincent Racaza (AdWords 
API Team) wrote:
>
> Hi,
>
> Normally, for PHP client library, if the error being generated states that 
> it cannot find a certain class, then it means that the dependencies are not 
> fully installed/downloaded. I have also encountered this issue before for 
> the OAuth2TokenBuilder when I installed the latest PHP client library 
> locally. What I did to resolve the issue was to install again the client 
> library using composer as you can see on this guide 
>  just 
> to make sure that all dependencies are downloaded.
>
> On your end, if you haven't, can you try to install the client library 
> again based on that guide and let me know if the issue still persists?
>
> Thanks,
> Vincent
> 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/fe62313b-c06e-4807-93d1-69cf5ad2b2b7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Google\AdsApi\Common\OAuth2TokenBuilder

2018-02-19 Thread 'Vincent Racaza (AdWords API Team)' via AdWords API Forum
Hi,

Normally, for PHP client library, if the error being generated states that 
it cannot find a certain class, then it means that the dependencies are not 
fully installed/downloaded. I have also encountered this issue before for 
the OAuth2TokenBuilder when I installed the latest PHP client library 
locally. What I did to resolve the issue was to install again the client 
library using composer as you can see on this guide 
 just 
to make sure that all dependencies are downloaded.

On your end, if you haven't, can you try to install the client library again 
based 
on that guide and let me know if the issue still persists?

Thanks,
Vincent
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/47c610b1-a470-45a3-9406-d7e3985bd18c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Google\AdsApi\Common\OAuth2TokenBuilder

2018-02-19 Thread blair
I've seen this question asked a few times and followed what was being said 
but had no luck.

- I successfully installed via composer and have verified that the 
src/Google/AdsApi/Common folder is there and it does contain 
OAuth2TokenBuilder.php.  I suspect that my path is wrong but it does load 
vendor/autoload.php. It even returns a long array in return $loader from 
autoload_real.php. But for some reason it can't find that Class for the 
Token Builder. attached is a screenshot of my file structure.  Anyone have 
any suggestions?


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/dbef90fc-5abb-4868-855c-24b6598f16fb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Fatal error: Class 'Google\AdsApi\Common\OAuth2TokenBuilder' not found in C:\test\vendor\googleads\googleads-php-lib\examples\AdWords\v201702\BasicOperations\GetCampaigns.php on line 75

2017-05-24 Thread api . testriver






Hi I need some help with this. I installed google client library using 
composer and tried to run GetCampaigns.php I got this error. See attached 
Image for my file hierrarchy.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/8624283e-fc61-42d5-ab66-343cf3c2b856%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Error "Class 'Google\AdsApi\Common\OAuth2TokenBuilder' not found"

2017-01-17 Thread 'Vishal Vinayak (Adwords API Team)' via AdWords API Forum
Hi Sarvagya,

Were you able to follow these steps 
 to install 
the client library? Also, did you use Composer  for 
this purpose? Composer helps download dependencies which are required 
within your project. If that doesn't help, I would recommend posting your 
issue on the the Github repository of the PHP client library 
, since our client 
library team would be better able to help you with this issue.  

Regards,
Vishal, 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/ab219d7b-57ba-4008-a25f-92c23a526222%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Error "Class 'Google\AdsApi\Common\OAuth2TokenBuilder' not found"

2017-01-17 Thread Sarvagya Pandey
Hi,

I have set up the PHP API library and configured 
the developerToken, clientCustomerId, clientId, clientSecret 
and refreshToken in adsapi_php.ini . Now when i try to run GetCampaigns.php 
via terminal it throws an error "Class 
'Google\AdsApi\Common\OAuth2TokenBuilder' not found in 
'..examples/AdWords/v201609/BasicOperations/GetCampaigns.php".
I have checked into the file system and file OAuth2TokenBuilder.php is 
present under the directory "src/Google/AdsApi/Common" .

Please let me know how we can fix this issue?

Thanks,
Sarvagya

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/4909235f-c31c-431d-8e7e-63b285725343%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.