Hi Vincent,

Thank you for your kind support. I did the same and run it on CMD the 
previous errors are resolved now i am getting a new error which is given 
velow.


[06-Sep-2017 08:11:54 UTC] PHP Fatal error:  Uncaught exception 
'GuzzleHttp\Exception\ClientException' with message 'Client error: `POST 
https://www.googleapis.com/oauth2/v4/token` resulted in a `401 Unauthorized` 
response:
{
 "error": "invalid_client",
 "error_description": "Unauthorized"
}

' in 
/home/techximu/public_html/adwords/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:113
Stack trace:
#0 
/home/techximu/public_html/adwords/vendor/guzzlehttp/guzzle/src/Middleware.php(65):
 GuzzleHttp\Exception\RequestException::create(Object(GuzzleHttp\Psr7\Request), 
Object(GuzzleHttp\Psr7\Response))
#1 
/home/techximu/public_html/adwords/vendor/guzzlehttp/promises/src/Promise.php(203):
 GuzzleHttp\Middleware::GuzzleHttp\{closure}(Object(GuzzleHttp\Psr7\Response))
#2 
/home/techximu/public_html/adwords/vendor/guzzlehttp/promises/src/Promise.php(156):
 GuzzleHttp\Promise\Promise::callHandler(1, Object(GuzzleHttp\Psr7\Response), 
Array)
#3 
/home/techximu/public_html/adwords/vendor/guzzlehttp/promises/src/TaskQueue.php(47):
 GuzzleHttp\Promise\Promise::Guzzle in 
/home/techximu/public_html/adwords/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php
 on line 113
[06-Sep-2017 08:29:15 UTC] PHP Fatal error:  Uncaught exception 
'GuzzleHttp\Exception\ClientException' with message 'Client error: `POST 
https://www.googleapis.com/oauth2/v4/token` resulted in a `401 Unauthorized` 
response:
{
 "error": "invalid_client",
 "error_description": "Unauthorized"
}

' in 
/home/techximu/public_html/adwords/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:113
Stack trace:
#0 
/home/techximu/public_html/adwords/vendor/guzzlehttp/guzzle/src/Middleware.php(65):
 GuzzleHttp\Exception\RequestException::create(Object(GuzzleHttp\Psr7\Request), 
Object(GuzzleHttp\Psr7\Response))
#1 
/home/techximu/public_html/adwords/vendor/guzzlehttp/promises/src/Promise.php(203):
 GuzzleHttp\Middleware::GuzzleHttp\{closure}(Object(GuzzleHttp\Psr7\Response))
#2 
/home/techximu/public_html/adwords/vendor/guzzlehttp/promises/src/Promise.php(156):
 GuzzleHttp\Promise\Promise::callHandler(1, Object(GuzzleHttp\Psr7\Response), 
Array)
#3 
/home/techximu/public_html/adwords/vendor/guzzlehttp/promises/src/TaskQueue.php(47):
 GuzzleHttp\Promise\Promise::Guzzle in 
/home/techximu/public_html/adwords/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php
 on line 113



  


On Wednesday, September 6, 2017 at 8:59:38 AM UTC+5:30, Vincent Racaza 
(AdWords API Team) wrote:
>
> Hi Pradeep,
>
> It seems that you are running the PHP examples from a web application. Our 
> PHP examples are meant to be run in a command prompt, and not in a web page 
> as stated here 
> <https://github.com/googleads/googleads-php-lib#basic-usage>.
>
> Also, you don't need to update the OAuth2TokenBuilder.php. What you need 
> to update is just the fromFile() method of the GetReportFields.php itself. 
> Aside from that, kindly make sure that you installed the client library 
> using Composer as noted here 
> <https://github.com/googleads/googleads-php-lib#getting-started>.
>
> Please try to run this first in the command prompt and let us know if you 
> encounter any issues.
>
> 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/2f4d670e-41f0-4358-b50f-9f2d75e9b9a5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • Trying Google Ad... Pradeep Kumar
    • Re: Trying ... 'Vincent Racaza (AdWords API Team)' via AdWords API Forum
      • Re: Try... Pradeep Kumar
        • Re:... Pradeep Kumar
          • ... 'Vincent Racaza (AdWords API Team)' via AdWords API Forum
            • ... Pradeep Kumar
              • ... 'Vincent Racaza (AdWords API Team)' via AdWords API Forum
                • ... Pradeep Kumar
                • ... Pradeep Kumar
                • ... Pradeep Kumar
                • ... Pradeep Kumar
                • ... kanhaiya . techximum
                • ... 'Vincent Racaza (AdWords API Team)' via AdWords API Forum

Reply via email to