[英]api google adwords how to get the report for ads?
我正在使用api google adwords生成報告,我可以為廣告系列獲取報告,但是無法生成廣告報告(我需要獲取AdId,AdName,點擊次數,展示次數以及許多其他數據) 。 我應該使用哪種類型的報告? 我嘗試過:
AD_PERFORMANCE_REPORT
還有
AD_CUSTOMIZERS_FEED_ITEM_REPORT
但它會以“未知字段”的形式返回錯誤,或者不返回任何內容。
謝謝。
我找到了解決方案,這里是:
$dateRange = sprintf('%d,%d',
date('Ymd', strtotime('-7 day')), date('Ymd', strtotime('-1 day')));
$reportQuery = 'SELECT Id,Headline, Impressions, Clicks, Cost, AdGroupId '
. ' FROM AD_PERFORMANCE_REPORT '
. ' DURING '.$dateRange;
// Download report.
ReportUtils::DownloadReportWithAwql($reportQuery, $filePath, $user,$reportFormat, $options);
報告為:AD_PERFORMANCE_REPORT,名稱變量為Headline。 希望能幫助到你。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.