I think I have it figured out...

   'Generate Report for Each Account
                    For Each childAccount As ManagedCustomerTreeNode In 
rootNode.ChildAccounts
                        Dim AdWordsReport As New 
DoubleClick_Adwords_Report_Download_With_AQWL
                        Dim fileName As String = "Adwords" & "_" & 
Format(Now(), "yyyyMMddHHmmss").ToString() & "_AdwordsDailyReporting_" & 
childAccount.Account.customerId.ToString() & ".csv"
                        'Parse ManagedCustomer.customerID value to 
ClientCustomerId format (eg. 123-456-7890)
                        Dim AdvertiserID As String = 
childAccount.Account.customerId.ToString().Substring(0, 3) & "-" & 
childAccount.Account.customerId.ToString().Substring(3, 3) & "-" & 
childAccount.Account.customerId.ToString().Substring(6, 4)

                        Dim objDictionary As New 
System.Collections.Generic.Dictionary(Of String, String)
                        objDictionary.Add("clientCustomerId", AdvertiserID)
                        Dim user1 As New AdWordsUser(objDictionary)

                        AdWordsReport.RunReport(user1, fileName)
                    Next

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 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 Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to