Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamic Refresh Token #118

Closed
fiatux opened this issue Feb 2, 2016 · 1 comment
Closed

Dynamic Refresh Token #118

fiatux opened this issue Feb 2, 2016 · 1 comment
Assignees

Comments

@fiatux
Copy link

fiatux commented Feb 2, 2016

While handling more than Adwords Account, how should I set refresh_token of AdwordsUser during a request?

From what I understand I can keep client ID, client Secret and developer token as static, but I need to change client customer ID and refresh token for each Adwords Account. If that's right what is the best way to achieve this?

@vtsao
Copy link
Contributor

vtsao commented Feb 2, 2016

You should create a new AdWordsUser for each account you're managing. You can set everything you need in the AW user constructor:
https://github.com/googleads/googleads-php-lib/blob/master/src/Google/Api/Ads/AdWords/Lib/AdWordsUser.php#L94

Hope this helps.

@vtsao vtsao closed this as completed Feb 2, 2016
@vtsao vtsao self-assigned this Feb 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants