Hi,
I'm noticing that for some reason, gender and age range performance reports are very slow. I'm using the Python API to fetch reports for 30 days. Campaign performance report is a lot faster. Here are some times I profiled:
Time for campaign performance report: 5.35 secs
Time for gender performance report: 27.56 secs
Time for age range performance report: 67.18 secs
Is there a reason for this? And how can I speed them up?
Here are the queries for each:
1) Campaign performance:
SELECT CampaignId, CampaignName, Device, Date, CampaignStatus, Clicks, Impressions, Conversions, ConversionValue, Cost, ConversionRate, CostPerConversion FROM CAMPAIGN_PERFORMANCE_REPORT WHERE CampaignStatus IN ["ENABLED", "PAUSED"] AND CampaignId IN [<list_of_ids>] DURING 20200901,20200930
2) Gender performance:
SELECT Date, Criteria, Clicks, Impressions, Conversions FROM GENDER_PERFORMANCE_REPORT WHERE CampaignStatus IN ["ENABLED", "PAUSED"] AND CampaignId IN [<list_of_ids>] DURING 20200901,20200930
3) Age range performance:
SELECT CampaignId, Date, Criteria, Clicks, Impressions, Conversions FROM AGE_RANGE_PERFORMANCE_REPORT WHERE CampaignStatus IN ["ENABLED", "PAUSED"] AND CampaignId IN [<list_of_ids>] DURING 20200901,20200930
Any help would be greatly appreciated.
Thanks!