[英]Campaigns Performance Report wont include campaigns with zero impressions
我有一個從我們的Google Adwords帳戶獲取其數據的應用程序。
特別是, 它獲取廣告系列的列表及其結果 (點擊次數,費用等)。 問題是,盡管有google API定義規范,但仍要說:
“廣告系列效果報告包含默認情況下在廣告系列一級匯總的所有統計信息, 每個廣告系列一行 ”。
我只會在其列中得到非零值的廣告系列(例如,已至少顯示過一次)。
您是否知道**如何將所有廣告系列都包含在報告中,即使其價值是
非常感謝。
編輯:這發生在廣告系列剛好有0次展示時。
我終於找到了一種方法:
// 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;
最后一行指定還必須包含零展示的廣告系列。 默認情況下,它的值為false,將其設置為true,您將獲得所有信息。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.