AdWords API报告分割

问题描述:

我想创建谷歌的AdWords报告将获得我AdWords API报告分割

点击,展示,成本,反弹,目标可达数

每个: 广告ID,pharse ID,目标ID,天 (像分组)

有很多不同的报告类型,我不知道如何创建这种报告。

进出口使用googleads-PHP-lib中,所以这里是例子代码:

$selector = new Selector(); 
    $selector->fields = array('Id', 'Clicks', 'Cost'); 
    // Optional: use predicate to filter out paused criteria. 
    //$selector->predicates[] = new Predicate('Status', 'NOT_IN', array('PAUSED')); 
    // Create report definition. 
    $reportDefinition = new ReportDefinition(); 
    $reportDefinition->selector = $selector; 
    $reportDefinition->reportName = 'Criteria performance report #' . uniqid(); 
    $reportDefinition->dateRangeType = 'LAST_90_DAYS'; 
    $reportDefinition->reportType = 'AD_PERFORMANCE_REPORT'; 
    $reportDefinition->downloadFormat = 'CSV'; 

有时候你不能在同一份报告中的所有数据。你可以看到在AdWords的文档中的所有报表类型:

https://developers.google.com/adwords/api/docs/appendix/reports

+0

是的,这是不可能得到的关键字,并放置在同一份报告。 :( –