Hi Umesh and thank you for your response. looked at the link you sent me and in fact the code I have included in my original publication does just that. The visitor is sent to an access request page to the Google server and the visitor is sent back to my page with an authorization code.
I use this snippet of code to request access to the account of the visitor: $ user = new AdWordsUser (); $ user-> LogAll (); $ user-> SetOAuth2Info (array ( "client_id" => $ clientId, "client_secret" => $ clientSecret )); // Generate an authorization callback URL Given the URL authUrl GetOAuth2Credential $ = ($ user, $ callbackUrl); // header ("Location:" $ authUrl.); echo '<a href="'.$authUrl.'"> </a> Start process'; Look at my complete code in the original publication. My code, I think is good because it returns an authorization code. I don't understand what I am doing wrong. I am open to any proposal. Thank you ! On Friday, October 9, 2015 at 4:07:51 PM UTC-4, Umesh Dengale wrote: > > Hello, > > The user has to grant access to their manager account(MCC) to get access > to their AdWords accounts information. Please go through the OAuth2.0 for > Web Server Applications guide > <https://developers.google.com/identity/protocols/OAuth2WebServer> for > more details. > > Thanks, > Umesh, 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 http://groups.google.com/group/adwords-api. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/f9c0524a-7bb5-4c67-9f92-e1090dad9c4e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.