Hi Stephen. Without seeing your code I can't comment, but, the code in the gist has already instantiated the Oauth2TokenBuilder so you wouldn't need to do that again.
I've written a high-level article about using multiple oauth tokens here: https://pete-bowen.com/adwords-api-authorize-multiple-users On Monday, May 14, 2018 at 4:38:13 PM UTC+1, Stephen Barrett wrote: > > I'm using the method that Sean Bayer created in using client's customer ID > when authenticating. > https://gist.github.com/shawnbayer/87186ec3cc73d3b7788433b5b02bc814 > > (I'm a newb) I'm assuming I would need to create an instance within the > file I'm using to create a new OAuth2TeokenBuiler using this new file I > have created and then have > "->withClientId( $variable ) in the same instance. > > On Monday, May 14, 2018 at 2:38:02 AM UTC-6, Peter Bowen wrote: >> >> Hi Stephen. >> >> In PHP you can pass the client customer id in using the withClientId() >> method in OAuth2TokenBuilder.php >> >> You can also pass in the OAuth2 refresh token in a similar if you're >> making the call using the client's credentials rather than your manager >> account's credentials. >> >> I'm guessing there is a similar way to do it if you're using one of the >> other libraries. >> >> On Saturday, 12 May 2018 00:04:34 UTC+1, Stephen Barrett wrote: >>> >>> I've successfully been able to get client's customer ID number during >>> authentication. What is the best procedure on how to use that Client >>> CustomerId instead of the customerId in the ini file? >>> >> -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog: https://googleadsdeveloper.blogspot.com/ =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads 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 and Google Ads 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/b68c7394-b23f-4e54-bdc0-c6bd3505cb2f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.