Thursday, June 27, 2019

How to download campaign performance report with filter by list of id in campaign_name


I have for example a bunch of campaigns with name's pattern like this : 'this is a gdn campaign - 233432'  , 
Now I am using Python SDK to download report for each gdn campaign name, but filter by this number 233432 as an id.
so my report query looks like this:
I can request each report by contains('id_1') but it's not efficient and that's why I want to request each time 20 ids into the ContainsAny operation. Does current adwords API support this?

report_query = (adwords.ReportQueryBuilder()
.Select('CampaignId', 'Date',
'Impressions', 'Clicks',
'Cost', 'CampaignName')
#.Where('CampaignStatus').In('ENABLED', 'PAUSED')
.Where('CampaignName').ContainsAny(['id_1', 'id_2'])
.During(date_range=date_preset, start_date=start_date, end_date=end_date)

You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To post to this group, send email to
Visit this group at
To view this discussion on the web visit
For more options, visit

No comments:

Post a Comment