我想获取BiddingStrategyType,BiddingStrategyName等。请查看此内容。我已经包括以下课程:
use Google\AdsApi\AdWords\AdWordsSession;
use Google\AdsApi\AdWords\AdWordsSessionBuilder;
use Google\AdsApi\AdWords\Reporting\v201710\ReportDownloader;
use Google\AdsApi\AdWords\Reporting\v201710\DownloadFormat;
use Google\AdsApi\AdWords\ReportSettingsBuilder;
use Google\AdsApi\Common\OAuth2TokenBuilder;
并运行以下awql:
SELECT Cost,CampaignId,Date,BiddingStrategyType,CampaignName FROM CRITERIA_PERFORMANCE_REPORT WHERE Status IN [ENABLED, PAUSED] DURING YESTERDAY;
致命错误:未捕获的异常'Google \ AdsApi \ AdWords \ v201710 \ cm \ ApiException',并显示消息'详情:[fieldPath:BiddingStrategyType; trigger:谓词名称无效:BiddingStrategyType; errorString:SelectorError.INVALID_PREDICATE_FIELD_NAME]'在/var/www/html/crm2017/application/third_party/Googleadwords/googleads-php-lib/src/Google/AdsApi/AdWords/Reporting/v201710/ReportDownloader.php:169堆栈跟踪:# 0 /var/www/html/crm2017/application/third_party/Googleadwords/googleads-php-lib/src/Google/AdsApi/AdWords/Reporting/v201710/ReportDownloader.php(127):Google \ AdsApi \ AdWords \ Reporting \ v201710 \ ReportDownloader-> makeReportRequest(Array)#1 /var/www/html/crm2017/application/libraries/My_adwords.php(97):Google \ AdsApi \ AdWords \ Reporting \ v201710 \ ReportDownloader-> downloadReportWithAwql('SELECT Cost ,Cam ...','CSV',对象(Google \ AdsApi \ AdWords \ ReportSettings))
查询无需 BiddingStrategyType 。
非常感谢
答案 0 :(得分:0)
我找到了上述错误的答案。正确的AWQL查询是:
SELECT Cost,CampaignId,BiddingStrategyType,CampaignName FROM CAMPAIGN_PERFORMANCE_REPORT DURING YESTERDAY
BiddingStrategyType实体属于CAMPAIGN_PERFORMANCE_REPORT,不属于CRITERIA_PERFORMANCE_REPORT。