Hi Team,

I'm using AdWords API to pull campaign performance report from my ads 
account. However, I'm not able to get anything prior to 2019/12/12. Even 
though in AdWords UI, I'm able to see data prior to that date. 

But the code works perfectly fine to pull the report after 2019/12/12. 

My query is attached below:

report_query = (adwords.ReportQueryBuilder()
                         .Select('Date', 'CampaignName', 
'AdNetworkType1','Impressions','Clicks', 'Cost', 'Ctr', 'AverageCpc')
                         .From('CAMPAIGN_PERFORMANCE_REPORT')
                         .Where('CampaignStatus').In('ENABLED')
                         .During(start_date + ',' + end_date) 
                         .Build())

I defined start_date and end_date like this:

start_date = datetime.today() - timedelta(days=732)
end_date = datetime.today() - timedelta(days=1)
start_date = start_date.date().isoformat().replace("-","")
end_date = end_date.date().isoformat().replace("-","")

Because I'm trying to pull data for the past 2 years, I put days=732 in the 
above line. But it actually pulls data from 2019/12/12 till 7/23/2020 for 
me. Even I hard coded the date inside .During(), it still returns nothing 
to me.

Please help me on this issue. Let me know if anything else is needed. 

Thanks in advance!

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [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 and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/230b0a67-c3f4-4c64-b185-63368cc9286bo%40googlegroups.com.

Reply via email to