.NET has several options to deal with this problem.
First, there is multithreading. Just run multiple threads at the same time, 
each thread doing (say) 20 reports. Another possibility is asynchronous 
processing 
<http://blogs.msdn.com/b/pfxteam/archive/2012/03/05/10278165.aspx>. 
Pro-tip: if you go this way, add the following to app-config:
<configuration>
    <system.net>
        <connectionManagement>
            <add address ="*" maxconnection ="1000"/>
        </connectionManagement>
    </system.net>
</configuration>

Item "maxconnection" is the key member. Look it up.

Note this all depends on your definition of slow, and the times you wish to 
achieve. To give you a baseline, my C# code processes 280 accounts in 2.5 
hours, with about 30 reports for most accounts - and these reports are all 
much bigger than an ACCOUNT_PERFORMANCE_REPORT. Processing means requesting 
reports, downloading and decompressing them, uploading to SQL Server, and 
processing them in SQL Server.
I suggest you add start extensive logging to figure out what exactly takes 
such a long time. For instance, in my situation 75% of the time goes to SQL 
processing.



On Thursday, June 23, 2016 at 4:06:43 AM UTC+2, Abdurrahman Al Faruqi wrote:
>
>
> Hi guys, I know we cannot get all account performance report using MCC.
> I am able to get the data but it takes so long because I have to call 
> API's multiple times, in my cases it took 120 calls because of in my case i 
> have 199 accounts.
> what Im doing is using ManagedCustomerService and then call one by one of 
> the accounts using awql ACCOUNT_PERFORMANCE_REPORT 
> <https://developers.google.com/adwords/api/docs/appendix/reports/account-performance-report>.
>  
> And it takes so long.
> my question is any better idea to workaround with this problem? 
> Some people using ReportUtilities.GetClientReport() method here 
> <https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!searchin/adwords-api/multiple$20reports/adwords-api/gJ0F34V5daQ/8fdiyzCbW-kJ>,
>  
> how do this works? I can't find enough documentation or examples about 
> this method.
> by the way I code with C#.
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/0a49b992-064e-4d93-b2de-a1bd44dfe7c4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to