2 messages in com.googlegroups.adwords-apiFwd: Returned mail: see transcript fo...| From | Sent On | Attachments |
|---|---|---|
| Ryan Leavengood | 13 Apr 2007 14:17 | |
| Ryan Leavengood | 13 Apr 2007 14:22 |
| Subject: | Fwd: Returned mail: see transcript for details![]() |
|---|---|
| From: | Ryan Leavengood (leav...@gmail.com) |
| Date: | 04/13/2007 02:17:12 PM |
| List: | com.googlegroups.adwords-api |
I don't know if you are the person I should email this to, but the person below really needs to be removed from this list.
Regards, Ryan
---------- Forwarded message ---------- From: Mail Delivery Subsystem <MAIL...@zmail-103.hanmail.net> Date: Apr 13, 2007 5:14 PM Subject: Returned mail: see transcript for details To: leav...@gmail.com
The original message was received at ...
---- The following addresses had permanent fatal errors ---- <oju...@hanmail.net> (553 5.7.1 ojun75: mail is denied, by spam filter)
Final-Recipient: RFC822; oju...@hanmail.net Action: failed Status: 5.0.0 (553 5.7.1 ojun75: mail is denied, by spam filter)
---------- Forwarded message ---------- From: "Ryan Leavengood" <leav...@gmail.com> To: "AdWords API Forum" <adwo...@googlegroups.com> Date: Fri, 13 Apr 2007 17:14:15 -0400 Subject: AdWords API Re: how can I tell if an account has child accounts?
On 4/13/07, kwal...@gmail.com <kwal...@gmail.com> wrote:
We call getClientAccounts using our top level mcc, but how can I tell if these child accounts are a nested mcc (have children accounts themselves)? I don't see anything in the AccountInfo object that looks like it would indicate this. Is the only way to call getClientAccounts on each account to see if anything is returned?
The answer seems to be yes based on how I read the docs. Since getClientAccounts only returns email addresses and not AccountInfo, you would need to make another call to the API even if the AccountInfo told you there were children accounts. So you might as well call getClientAccounts again with the emails returned from the first call. You will need to set the clientEmail header for each call.
Of course you should decide to what level you want to traverse, as it could get deep (like great-great-great-great-grandchildren accounts ;)
If you only care about if your children have children accounts then it is fairly easy.
Regards, Ryan




