简体   繁体   English

广告系列效果报告将不包含展示次数为零的广告系列

[英]Campaigns Performance Report wont include campaigns with zero impressions

I have an application that gets its data from our Google Adwords account. 我有一个从我们的Google Adwords帐户获取其数据的应用程序。

Particularly, It gets the list of ad campaigns along with their results (number of clicks, cost, etc...). 特别是, 它获取广告系列的列表及其结果 (点击次数,费用等)。 The problem is that, in spite of the google API definition specification say that: 问题是,尽管有google API定义规范,但仍要说:

"The Campaigns Performance report includes all statistics aggregated by default at the campaign level, one row per campaign ". “广告系列效果报告包含默认情况下在广告系列一级汇总的所有统计信息, 每个广告系列一行 ”。

I'm only getting the campaigns which have non-zero value in their columns (For example, has been displayed al least one time). 我只会在其列中得到非零值的广告系列(例如,已至少显示过一次)。

Do you have any idea of **how to include all the campaigns in the report, even when its values are 您是否知道**如何将所有广告系列都包含在报告中,即使其价值是

Thanks a lot. 非常感谢。

EDIT: It happened when the campaigns had exactly 0 impressions. 编辑:这发生在广告系列刚好有0次展示时。

I have finally found a way to get it: 我终于找到了一种方法:

  // Report Creation
  $reportDefinition = new ReportDefinition();
  $reportDefinition->selector = $selector;
  $reportDefinition->reportName = 'Adgroup performance report';
  $reportDefinition->reportType = 'CAMPAIGN_PERFORMANCE_REPORT';
  $reportDefinition->downloadFormat = 'CSV';

  // Exclude criteria that haven't recieved any impressions over the date range.
  $reportDefinition->includeZeroImpressions = TRUE;

The last line specifies that also must be included Campaigns with zero impressions. 最后一行指定还必须包含零展示的广告系列。 By default it's value is false, set it to true and you'll get all the info. 默认情况下,它的值为false,将其设置为true,您将获得所有信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM