Re: How to list all accounts when multiple MCC accounts are under a single account.

2019-11-22 Thread Charles Bannister
Marc,

Apologies for the delay and thanks for the info. I'm just getting back 
round to this now and it's a big help thank you. 

Charles

On Monday, 1 April 2019 05:18:39 UTC-7, Marc Selman wrote:
>
> Hi Charles,
>
> I've built this functionality as wel. There's no way to retrieve all 
> information in one request.
> You'll need to loop through each customer and check if there are customers 
> below that one etc.
>
> 1) Query all customers
> 2) Loop through each customer (here you can also store if the customer is 
> a manager or a test account)
>
> 3) Query all customer-client-links for the customer (check for the active 
> status)
> 4) Loop through all the links (here you can also store if the link 
> represents a hidden customer)
> 5) Query the customer resource using the id in the link (here you can also 
> store if the customer is a manager or a test account)
> 6) Back to step 3 for the current customer
>
> So the part from step 3 will be a recursive function.
>
> I hope this helps.
>
> Best regards,
> Marc Selman
>
> Op maandag 1 april 2019 12:53:11 UTC+2 schreef Charles Bannister:
>>
>> Hi, 
>>
>> When I run the python example code "Get the account hierarchy under the 
>> current account" 
>> 
>>  it 
>> works for ordinary MCC accounts. Great. 
>>
>> However, I have an account which, when I log in, I first choose which 
>> linked MCC account to access. 
>>
>> In that account, no cigar. It lists some accounts but not all. 
>>
>> I imagine I need to go deeper, and that has something to do with the 
>> "links" part of what's been returned but I can't figure it out.
>>
>> Any help would be appreciated. 
>>
>> Thanks
>>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/9587d9e0-e035-488c-a1f6-aac81665233f%40googlegroups.com.


Re: How to list all accounts when multiple MCC accounts are under a single account.

2019-04-01 Thread Marc Selman
Hi Charles,

I've built this functionality as wel. There's no way to retrieve all 
information in one request.
You'll need to loop through each customer and check if there are customers 
below that one etc.

1) Query all customers
2) Loop through each customer (here you can also store if the customer is a 
manager or a test account)

3) Query all customer-client-links for the customer (check for the active 
status)
4) Loop through all the links (here you can also store if the link 
represents a hidden customer)
5) Query the customer resource using the id in the link (here you can also 
store if the customer is a manager or a test account)
6) Back to step 3 for the current customer

So the part from step 3 will be a recursive function.

I hope this helps.

Best regards,
Marc Selman

Op maandag 1 april 2019 12:53:11 UTC+2 schreef Charles Bannister:
>
> Hi, 
>
> When I run the python example code "Get the account hierarchy under the 
> current account" 
> 
>  it 
> works for ordinary MCC accounts. Great. 
>
> However, I have an account which, when I log in, I first choose which 
> linked MCC account to access. 
>
> In that account, no cigar. It lists some accounts but not all. 
>
> I imagine I need to go deeper, and that has something to do with the 
> "links" part of what's been returned but I can't figure it out.
>
> Any help would be appreciated. 
>
> Thanks
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/fdd5c37d-4672-4654-a81e-e2d1859ea89e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How to list all accounts when multiple MCC accounts are under a single account.

2019-04-01 Thread Charles Bannister
Hi, 

When I run the python example code "Get the account hierarchy under the 
current account" 

 it 
works for ordinary MCC accounts. Great. 

However, I have an account which, when I log in, I first choose which 
linked MCC account to access. 

In that account, no cigar. It lists some accounts but not all. 

I imagine I need to go deeper, and that has something to do with the 
"links" part of what's been returned but I can't figure it out.

Any help would be appreciated. 

Thanks

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/822bf72e-b47f-4f2c-8767-fc7c5ef61802%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.