I have an idea to keep getting a token, say admin, and store it in the database and update it for all users' requests so that they do not have to confirm application permissions. Is this a good idea?
On Monday, October 2, 2017 at 10:06:14 PM UTC+3, sprytar....@gmail.com wrote: > > Hi, The previous developer used the function TargetingIdeaService to get > new keywords, based on one old one. We have a file with constant > settings: adsapi_php.ini.But today we have error > Client error: `POST https://www.googleapis.com/oauth2/v4/token` > <https://www.googleapis.com/oauth2/v4/token> resulted in a `400 Bad > Request` response: > { "error": "invalid_grant", > "error_description": "Bad Request" } > Can I somehow get a long-term token to always get new keywords, do not > force the user to give access to the application? > Thanks > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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/d307192b-1035-4a4d-a14c-7b446bb05b3a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.