I updated the endpoint and received a 400 error when trying to convert the code to an access token:
<!DOCTYPE html><html lang=en><meta charset=utf-8><meta name=viewport content="initial-scale=1, minimum-scale=1, width=device-width"><title>Error 400 (Not Found)!!1</title><style>*{margin:0;padding:0}html,code{font:15px/22px arial,sans-serif}html{background:#fff;color:#222;padding:15px}body{margin:7% auto 0;max-width:390px;min-height:180px;padding:30px 0 15px;}* > body{background:url(//www.google.com/images/errors/robot.png) 100% 5px no-repeat;padding-right:205px}p{margin:11px 0 22px;overflow:hidden}pre{white-space:pre-wrap;}ins{color:#777;text-decoration:none}a img{border:0}@media screen and (max-width:772px){body{background:none;margin-top:0;max-width:none;padding-right:0}}#logo{background:url(//www.google.com/images/branding/googlelogo/1x/googlelogo_color_150x54dp.png) no-repeat;margin-left:-5px}@media only screen and (min-resolution:192dpi){#logo{background:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) no-repeat 0% 0%/100% 100%;-moz-border-image:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) 0}}@media only screen and (-webkit-min-device-pixel-ratio:2){#logo{background:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) no-repeat;-webkit-background-size:100% 100%}}#logo{display:inline-block;height:54px;width:150px}</style><div id="af-error-container"><a href=//www.google.com/><span id=logo aria-label=Google></span></a><p><b>400.</b> <ins>That’s an error.</ins><p>The requested URL was not found on this server. <ins>That’s all we know.</ins></div> Stack trace: #0 /home/servername/vendor/googleads/googleads-php-lib/src/Google/Api/Ads/Common/Util/SimpleOAuth2Handler.php(72): SimpleOAuth2Handler->MakeRequest('https://account...', Array) On Thursday, September 1, 2016 at 11:12:20 AM UTC-5, Nadine Sundquist (AdWords API Team) wrote: > > Hello Everyone, > > We've come up with a possibility, and it would really help if someone > could give this a try and get back to me. If you can try this on a smaller > scale first just to test the waters, that would be great. It sounds like > everyone experiencing this issue is using the PHP library. Please try > changing the constant *ACCESS_ENDPOINT* in *OAuth2Handler.php* from > *https://accounts.google.com/o/oauth2/token > <https://accounts.google.com/o/oauth2/token>* to > *https://www.googleapis.com/oauth2/v4/token > <https://www.googleapis.com/oauth2/v4/token>*. The other client libraries > are using this newer endpoint for retrieving tokens, which would explain > why other libraries are not seeing it. If this works for you, please post > back here. > > In the meantime, we'll continue looking into other possibilities. > > Regards, > Nadine, AdWords API Team > > On Thursday, September 1, 2016 at 10:50:41 AM UTC-4, Jeff Siebach wrote: >> >> I am also receiving intermittent errors. It is about 2/3 of the requests >> that don't go through, with the others saying invalid_request. Just wanted >> to contribute so I'd get updates on this thread and be able to help if I >> can. Thanks. >> >> On Wednesday, August 31, 2016 at 1:27:23 AM UTC-5, Sachin Kumar wrote: >>> >>> I am getting this error sice today morning. Earliear the app was working >>> fine. Now I am not knowing why this error is occurring. >>> >>> >>> *Fatal error*: Uncaught exception 'OAuth2Exception' with message '{ >>> "error" : "invalid_request" }' in >>> /home/bergstromdev/public_html/Google/Api/Ads/Common/Util/SimpleOAuth2Handler.php:119 >>> >>> Stack trace: #0 >>> /home/bergstromdev/public_html/Google/Api/Ads/Common/Util/SimpleOAuth2Handler.php(96): >>> >>> SimpleOAuth2Handler->MakeRequest('https://account...', Array) #1 >>> /home/bergstromdev/public_html/Google/Api/Ads/Common/Util/OAuth2Handler.php(116): >>> >>> SimpleOAuth2Handler->RefreshAccessToken(Array) #2 >>> /home/bergstromdev/public_html/Google/Api/Ads/Common/Lib/AdsSoapClient.php(452): >>> >>> OAuth2Handler->GetOrRefreshAccessToken(Array) #3 >>> /home/bergstromdev/public_html/Google/Api/Ads/Common/Lib/AdsSoapClient.php(199): >>> >>> AdsSoapClient->GenerateHttpHeaders() #4 >>> /home/bergstromdev/public_html/Google/Api/Ads/AdWords/v201603/CampaignService.php(8048): >>> >>> AdsSoapClient->__soapCall('get', Array) #5 >>> /home/bergstromdev/public_html/lib/Adwords.class.php(36): >>> CampaignService->get(Object(Selector)) #6 >>> /home/bergstromdev/public_html/day_dev.php(81): Adwords->GetCampai in >>> */home/bergstromdev/public_html/Google/Api/Ads/Common/Util/SimpleOAuth2Handler.php* >>> >>> on line >>> >>> >>> >>> >>> *119I am using php library of version v201603. Kindly let me know what >>> is wrong now with the app.Note:* If I refresh page multiple time them >>> app returning data but at first call it generates this above mentioned >>> fatal error. >>> >>> Kindly reply asap because the site is stopped. >>> >>> >>> >>> Thanks & Regards >>> Sachin Kumar >>> >>> -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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/3ddf0f21-f681-4fa5-be6a-2390791b0128%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.