Re: PHP - Invalid Request Error in "GetAccessToken"

2016-12-13 Thread 'Nadine Sundquist (AdWords API Team)' via AdWords API Forum
Hi Burak, That's some great debugging skills! I'm glad you were able to figure out the root of the issue. Please file an issue with the PHP client library if there is not already an issue on this. Thanks, Nadine, AdWords API Team On Tues

Re: PHP - Invalid Request Error in "GetAccessToken"

2016-12-13 Thread Burak Karakan
Little update, I think I found the root of the problem. I changed the code that makes the request in the original question with a simple cURL POST call which is as follows: // Get the oAuth code. $authCode = $request->code; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,"https://accounts.googl

Re: PHP - Invalid Request Error in "GetAccessToken"

2016-12-13 Thread Burak Karakan
Hello Nadine. Sabri is my collegue, we are trying to solve the problem together. There is no description, I am providing the error stack down below with obsfucating some data. Thanks. OAuth2Exception in SimpleOAuth2Handler.php line 119:{ "error" : "invalid_request" } 1. in SimpleOAuth2Han

Re: PHP - Invalid Request Error in "GetAccessToken"

2016-12-13 Thread Sabri Karagönen
Hi Nadine, Unfortunately there is no any other description except "Invalid Request" 13 Aralık 2016 Salı 00:17:45 UTC+2 tarihinde Nadine Sundquist (AdWords API Team) yazdı: > > Hello Burak, > > Usually when there is an error in the PHP library where the error is > invalid_request, there's also a

Re: PHP - Invalid Request Error in "GetAccessToken"

2016-12-12 Thread 'Nadine Sundquist (AdWords API Team)' via AdWords API Forum
Hello Burak, Usually when there is an error in the PHP library where the error is invalid_request, there's also an error_description. Can you see if that's available? It will usually tell you what field is causing the issue such as 'missing required parameter'. That may help us narrow this down

Re: PHP - Invalid Request Error in "GetAccessToken"

2016-12-12 Thread Burak Karakan
Hi Shwetha, any ideas on this? We are unable to run our system for approximately 5 days, any help would be amazing. Thanks again. On Saturday, December 10, 2016 at 11:41:45 AM UTC+3, Burak Karakan wrote: > > Hi Shwetha, > > We are building a web app, therefore the credentials are for a web app

Re: PHP - Invalid Request Error in "GetAccessToken"

2016-12-10 Thread Burak Karakan
Hi Shwetha, We are building a web app, therefore the credentials are for a web app. I always create the credentials using the link you provided. In order to try the examples, I created installed type credentials as well in order to test the example files, but I could not make them work either,

Re: PHP - Invalid Request Error in "GetAccessToken"

2016-12-09 Thread 'Shwetha Vastrad (AdWords API Team)' via AdWords API Forum
Hi Burak, Could you provide the steps you followed to create your OAuth2 credentials and generate the refresh token? Could you also let me know if you are using Installed application type credentials or web app type credentials? The invalid_request error usually occurs if a required parameter i

PHP - Invalid Request Error in "GetAccessToken"

2016-12-09 Thread Burak Karakan
Hello. We have been using the AdWords API for months, and implemented an OAuth login feature months ago. We were using it until 2 days ago, but suddenly we started getting the "invalid request" error, which is as follows: OAuth2Exception in googleads-php-lib/src/Google/Api/Ads/Common/Util/Si