Hello. Thank you for your answer, but I want exclude companies with empty 
impressions completely.

четверг, 23 октября 2014 г., 16:25:18 UTC+3 пользователь Josh Radcliff 
(AdWords API Team) написал:
>
> Hi,
>
> Do your campaigns have any impressions for the date range of your report? 
> If not, then you'll have to specify '*includeZeroImpressions': 'true'* in 
> order to get those campaigns to show up in the report. See our Zero 
> Impressions Guide 
> <https://developers.google.com/adwords/api/docs/guides/zero-impression-reports>
>  for 
> more details.
>
> Cheers,
> Josh, AdWords API Team
>
> On Wednesday, October 22, 2014 9:47:51 AM UTC-4, g.adwo...@smartweb.com.ua 
> wrote:
>>
>> Hello. I don't understand, why i get empty company?
>> This is my query:
>>             
>>             report_downloader = 
>> self.adwords_client.GetReportDownloader(version='v201409')
>>
>>             report = {
>>                 'reportName': 'Last 7 days CAMPAIGN_PERFORMANCE_REPORT',
>>                 'dateRangeType': 'LAST_7_DAYS',
>>                 'reportType': 'CAMPAIGN_PERFORMANCE_REPORT',
>>                 'downloadFormat': 'CSV',
>>                 *'includeZeroImpressions': 'false',*
>>                 'selector': {
>>                     'fields': [
>>                         'CampaignId',
>>                         'CampaignName',
>>                         'Impressions',
>>                         'Clicks',
>>                         'Ctr',
>>                         'Amount',
>>                     ],
>> *                    'predicates': {*
>> *                        'field': 'Impressions',*
>> *                        'operator': 'GREATER_THAN',*
>> *                        'values': '0',*
>>                     },
>>                     'predicates': {
>>                         'field': 'CampaignStatus',
>>                         'operator': 'IN',
>>                         'values': ['ENABLED']
>>                     },
>>                 },
>>             }
>>
>>             print "RESULT: ", report_downloader.DownloadReport(report, 
>> sys.stdout)
>>
>>  
>> I get a result:
>>
>> RESULT:  "Last 7 days CAMPAIGN_PERFORMANCE_REPORT (Oct 15, 2014-Oct 21, 
>> 2014)"
>> Campaign ID,Campaign,Impressions,Clicks,CTR,Budget
>> Total, --,0,0,0.00%,0
>>
>>
>> RESULT:  "Last 7 days CAMPAIGN_PERFORMANCE_REPORT (Oct 15, 2014-Oct 21, 
>> 2014)"
>> Campaign ID,Campaign,Impressions,Clicks,CTR,Budget
>> Total, --,0,0,0.00%,0
>>
>>
>> RESULT:  "Last 7 days CAMPAIGN_PERFORMANCE_REPORT (Oct 15, 2014-Oct 21, 
>> 2014)"
>>
>> Campaign ID,Campaign,Impressions,Clicks,CTR,Budget
>> Total, --,0,0,0.00%,0
>>
>>
>>
>>
>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/4edb50b8-9b6a-40dd-8c30-fa70e092f3b0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to