Hello,
I was reading up on the Location Extension of AdWords API and realized that I would need a refresh token associated with the account that has MGB set up.
I am going to have customers who have already registered their business via GMB and I want to provide AdWords automation via API.
For now, I think I will be required to tinker around with the client library, getRefreshToken.java and use some kind of headless-web-driver such as Selenium to:
1. navigate to the url provided by the example code
2. sign-in with customer credential (for which I will need their id//password)
3. copy the code provided upon sign-in
4. feed it back to the same route the example code uses
I would rather not ask my customers for their credentials if I could do this in pure Java way.
What do you guys think? and how differently would you fellow devs have tackled this problem?