Hello Thanet, thanks for your answer. I tried it via OAuth2 Playground <https://developers.google.com/adwords/api/docs/guides/oauth_playground> and it works. I didn't read well that I can use *installed application* type for your web application. I don't know which is the best option, but at if I'll have problems with the web app I will use an installed one.
Thanks again and best regards Roberto El jueves, 21 de enero de 2016, 10:54:29 (UTC-3), Thanet Knack Praneenararat (AdWords API Team) escribió: > > Hi Roberto, > > As Yin has suggested, you can use *installed application* type for your > web application. > Do you consider this option too? Do you have a strong business need to use > *web > application* type? > > As for getting refresh tokens, you can do it via OAuth2 Playground > <https://developers.google.com/adwords/api/docs/guides/oauth_playground> > too. > > Best, > Thanet, AdWords API Team > > On Thursday, January 21, 2016 at 5:41:02 AM UTC+9, [email protected] > <javascript:> wrote: >> >> Hi Yin. >> >> I've set the scope this way: >> >> $client->addScope("https://www.googleapis.com/auth/adwords"); >> >> But then I need to access the Adwords Service. >> >> The youtube and drive examples use: >> >> $client->addScope("https://www.googleapis.com/auth/youtube"); >> $client->addScope("https://www.googleapis.com/auth/drive"); >> >> And then, for the services: >> >> $yt_service = new Google_Service_YouTube($client); >> $dr_service = new Google_Service_Drive($client); >> >> So I tried with: >> >> $aw_service = new Google_Service_Adwords($client); >> >> And then php fails. I don't know if Adwords Service have another name... >> >> Regards >> >> El miércoles, 20 de enero de 2016, 17:32:25 (UTC-3), Yin Niu escribió: >>> >>> Hi Roberto, >>> >>> The scope >>> <https://developers.google.com/adwords/api/docs/guides/authentication#scope> >>> for >>> adwords api is: https://www.googleapis.com/auth/adwords. >>> >>> Thanks, >>> Yin, 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 [email protected] To unsubscribe from this group, send email to [email protected] 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 [email protected]. 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/604af7fc-392b-4f89-b7e4-94dedcd40d0c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
