Re: Using dynamic customerId

2018-05-14 Thread Peter Bowen
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

Re: Using dynamic customerId

2018-05-14 Thread Stephen Barrett
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 thi

Re: Using dynamic customerId

2018-05-14 Thread Peter Bowen
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

Re: Using dynamic customerId

2018-05-13 Thread 'Dannison Yao (AdWords API Team)' via AdWords API and Google Ads API Forum
Hi Stephen, You can refer to this guide for code samples on how to help you with your concern. It is highly recommended that you use an adsapi_php.ini file. However, if you don't want to or

Using dynamic customerId

2018-05-11 Thread Stephen Barrett
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://googleadsdev