Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/google-apps-script/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google apps script 如何使用AdWords脚本分割报表数据?_Google Apps Script_Google Ads Api - Fatal编程技术网

Google apps script 如何使用AdWords脚本分割报表数据?

Google apps script 如何使用AdWords脚本分割报表数据?,google-apps-script,google-ads-api,Google Apps Script,Google Ads Api,我需要创建一个报告,显示我的广告成本,我需要将这些数据除以位置(DisplayName)和广告类型以及设备和广告渠道类型。我广泛地搜索了文档,发现没有一个报告可以跨越所有这些维度。在UI中,我可以创建一个片段,无论怎样,我都可以找到如何使用脚本来完成它。我试过这样做: var placementReport = AdWordsApp.report( 'SELECT AdGroupName, AdvertisingChannelType, AdGroupId , AdType, devi

我需要创建一个报告,显示我的广告成本,我需要将这些数据除以位置(DisplayName)和广告类型以及设备和广告渠道类型。我广泛地搜索了文档,发现没有一个报告可以跨越所有这些维度。在UI中,我可以创建一个片段,无论怎样,我都可以找到如何使用脚本来完成它。我试过这样做:

var placementReport = AdWordsApp.report(
     'SELECT AdGroupName, AdvertisingChannelType, AdGroupId , AdType, device, DisplayName, Cost ' +
     'FROM   PLACEMENT_PERFORMANCE_REPORT ' +
     'WHERE DisplayName CONTAINS "mail.google.com" ' +
     'DURING 20151022,20151022');  
但它就是不起作用

如何将报告分段

我需要得到一个非常具体的数据。我正在寻找一种按设备、位置和广告类型划分广告成本的方法,例如:

AdId: 320930902 > Device: Mobile > Placement: Youtube > adtype: Ad Text > Cost: $35.00
AdId: 320930902 > Device: Mobile > Placement: Youtube > adtype: Ad Image > Cost: $5.00
AdId: 320930902 > Device: Computer > Placement: Youtube > adtype: Ad Image > Cost: $45.00
AdId: 320930902 > Device: Computer > Placement: Youtube > adtype: Ad Text> Cost: $50.00
等等。。。有什么想法吗

谢谢

“…广告成本由…”某物;但是什么呢?请澄清。