Hello, Most of the information that goes in the auth.ini file isn't related to any AdWords account. Your developer token authenticates that you're allowed to make API calls. The client ID and client secret tell the server what application is making the call.
The refresh token authenticates you as a user of a specific account, usually a manager account which gives you access to all child accounts within it. You can specify this on the fly to manage multiple accounts with separate refresh tokens. Similarly, the client customer ID field tells the API what specific account you want to modify. If you want to act on multiple accounts, you can modify which account you're accessing on the fly. You can find an example of how to set this all up programmatically instead of with the .ini file here: https://github.com/googleads/googleads-php-lib/blob/master/examples/AdWords/Auth/CreateAdWordsUserWithoutIniFile.php Regards, Mike, AdWords API Team On Tuesday, November 29, 2016 at 9:34:43 AM UTC-5, [email protected] wrote: > > Hi. > > Do all these parameters need to belong to a single account only? > Or can some of these parameters belong to other account and some belong to > another? > > Thank you. > > On Thursday, June 12, 2014 at 9:08:27 PM UTC+8, Michael Cloonan (AdWords > API Team) wrote: >> >> Hello, >> >> The developerToken is a string associated with your MCC, that must be >> approved, that would grant you access to perform API operations. You can >> read more information about how to get a developer token at our guide on >> signing >> up <https://developers.google.com/adwords/api/docs/signingup>. >> The userAgent is a custom string that uniquely identifies your platform. >> This is not something that comes from Google, but something that you can >> set. >> >> The client_id and client_secret are retrieved through the Google >> Developer Console. >> The refresh_token is obtained using the client_id and client_secret. You >> can use one of our utilities in this section >> <https://developers.google.com/adwords/api/docs/guides/authentication#configure_and_use_a_client_library> >> >> of the OAuth 2.0 guide to generate the refresh token. >> >> Let me know if you have any more questions or need more detailed >> instructions about any of these steps. >> >> Regards, >> Mike, AdWords API Team >> >> On Wednesday, June 11, 2014 10:53:41 PM UTC-4, Fang Abel wrote: >>> >>> developerToken = "INSERT_DEVELOPER_TOKEN_HERE" >>> userAgent = "INSERT_COMPANY_NAME_HERE" >>> >>> >>> [OAUTH2] >>> client_id = "INSERT_OAUTH2_CLIENT_ID_HERE" >>> client_secret = "INSERT_OAUTH2_CLIENT_SECRET_HERE" >>> refresh_token = "INSERT_OAUTH2_REFRESH_TOKEN_HERE" >>> >>> How to set the parameters of the above? I know client_id and >>> client_secret. developerToken & userAgent & refresh_token From there >>> View? >>> >> -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 [email protected] To unsubscribe from this group, send email to [email protected] 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 [email protected]. 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/aa0e7a03-efe8-4a3c-8797-d9d00c5df27a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
