[英]api google adwords how to get the report for ads?
i'm using the api google adwords for generating report , i can get it for the campaign , but i'm unable to generate report for ads ( i need to get the AdId , the AdName , clicks , impressions cost and many others data ). 我正在使用api google adwords生成报告,我可以为广告系列获取报告,但是无法生成广告报告(我需要获取AdId,AdName,点击次数,展示次数以及许多其他数据) 。 what type of report should i use ? 我应该使用哪种类型的报告? i tried with : 我尝试过:
AD_PERFORMANCE_REPORT
and also with 还有
AD_CUSTOMIZERS_FEED_ITEM_REPORT
but it returns error as "unknown fields" or it doesn't return anything. 但它会以“未知字段”的形式返回错误,或者不返回任何内容。
Thanks. 谢谢。
i found the solution , here it is : 我找到了解决方案,这里是:
$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);
The report is : AD_PERFORMANCE_REPORT and the variable for the name is Headline. 报告为:AD_PERFORMANCE_REPORT,名称变量为Headline。 Hope it helps. 希望能帮助到你。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.