criteria report not including 0 impressions, i am using ruby client

63 views
Skip to first unread message

Michael Ni

unread,
Apr 18, 2012, 3:30:53 AM4/18/12
to adwor...@googlegroups.com
here is report definition

          {
            :selector => {
              :fields => [
                'Status',
                'AdGroupName',  #AdGroup
                'CampaignName',
                'CampaignStatus',
                'KeywordMaxCpc', # Default max. CPC
                'KeywordContentMaxCpc', # Display Network max. CPC
                'Clicks',
                'Impressions',
                'Ctr',
                'AverageCpc',
                'Cost',
                'AveragePosition',
                'CtrSignificance',
                'AverageCpm'
              ],
              :predicates => {
                :field => 'Status',
                :operator => 'IN',
                :values => %w[ENABLED PAUSED DELETED]
                # :values => %w[ENABLED]
              }
            },
            :report_name => "hello",
            :report_type => report_type,
            :download_format => 'CSV',
            :date_range_type => 'TODAY',
  
            # Enable to get rows with zero impressions.
            :include_zero_impressions => true
          }

Michael Ni

unread,
Apr 18, 2012, 3:32:34 AM4/18/12
to adwor...@googlegroups.com
i'm sorry question was stated wrong,

The criteria report is not returning me rows with 0 impressions even though i have :include_zero_impressions => true

mike

Michael Ni

unread,
Apr 19, 2012, 1:38:26 AM4/19/12
to adwor...@googlegroups.com
Is there somewhere in the documentation that shows clearly which criteria report report definitions cannot produce zero impressions?

Chirag

unread,
Apr 19, 2012, 3:27:47 AM4/19/12
to adwor...@googlegroups.com
Hi,
Try to remove field CtrSignificance. It prevents zero impressions data.

Michael Ni

unread,
Apr 19, 2012, 10:59:01 AM4/19/12
to adwor...@googlegroups.com
thank you, 

if you hadn't told me, i would have never found it.

mike
Reply all
Reply to author
Forward
0 new messages