Hi Anash,

I figured this out. The constructor helps to load MCC account 
configuration. Thanks a ton for the solution

On Tuesday, March 11, 2014 4:01:58 AM UTC-7, [email protected] wrote:
>
> In the AdwordsUser constructor what are $applicationToken and $authToken? 
> Currently, in the auth.ini file I have used refresh_token. I'm not sure 
> what the $applicationToken  and $authToken are.
>
> On Monday, March 3, 2014 2:28:06 PM UTC-8, Anash P. Oommen (AdWords API 
> Team) wrote:
>>
>> Hi Jaison,
>>
>> You could use ManagedCustomerService.get method to get all accounts under 
>> a given MCC. MCC accounts would have 
>> canManageClients<https://developers.google.com/adwords/api/docs/reference/v201309/ManagedCustomerService.ManagedCustomer#canManageClients>=
>>  true. Also, AdWordsUser has a constructor that allows you to configure 
>> the user at runtime instead of reading from auth.ini. See 
>> https://github.com/googleads/googleads-php-lib/blob/master/src/Google/Api/Ads/AdWords/Lib/AdWordsUser.php#L109for
>>  details.
>>
>> Cheers,
>> Anash P. Oommen
>> AdWords API Advisor.
>>
>> On Monday, March 3, 2014 5:53:04 AM UTC-5, [email protected] wrote:
>>>
>>> Hi,
>>>
>>> I would like to work with multiple MCC accounts using my application. 
>>> How can I dynamically use the settings for a selected MCC from within the 
>>> same application.
>>>
>>> The application would have an interface where I could select the MCC 
>>> account I want to work with. How can I load the auth.ini settings for the 
>>> chosen MCC? I'd like to load the required values from the database so that 
>>> I don't have to manage multiple auth.ini files.
>>>
>>> Thanks,
>>> Jaison
>>>
>>>
>>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to