我正在尝试过滤 Bing Ads Api 中的 SearchQueryPerformanceReport,我可以正常获取报告,但是我想通过多个 CampaignStatus 过滤报告
例如
var report = new SearchQueryPerformanceReportRequest
{
Aggregation = aggregation,
ExcludeColumnHeaders = excludeColumnHeaders,
ExcludeReportFooter = excludeReportFooter,
ExcludeReportHeader = excludeReportHeader,
Format = ReportFileFormat,
ReturnOnlyCompleteData = returnOnlyCompleteData,
Time = time,
ReportName = "My Search Query Performance Report",
Scope = new AccountThroughAdGroupReportScope
{
AccountIds = new[] { accountId }
},
Filter = new SearchQueryPerformanceReportFilter
{
CampaignStatus = CampaignStatusReportFilter.Active,
AdGroupStatus = AdGroupStatusReportFilter.Active
},
Columns = new[]
{
SearchQueryPerformanceReportColumn.SearchQuery,
SearchQueryPerformanceReportColumn.Clicks,
SearchQueryPerformanceReportColumn.Spend,
SearchQueryPerformanceReportColumn.Conversions,
SearchQueryPerformanceReportColumn.Revenue,
SearchQueryPerformanceReportColumn.CampaignId,
SearchQueryPerformanceReportColumn.CampaignName,
SearchQueryPerformanceReportColumn.AdGroupId,
SearchQueryPerformanceReportColumn.AdGroupName
},
};
现在我想获取不是 CampaignStatusReportFilter.Deleted 的每个 CampaignStatus。文档说我应该能够做到这一点。在我看来它应该看起来像这样,但这显然是不正确的。
Filter = new SearchQueryPerformanceReportFilter
{
CampaignStatus = CampaignStatusReportFilter.Active,
CampaignStatus = CampaignStatusReportFilter.Paused,
AdGroupStatus = AdGroupStatusReportFilter.Active
},
或者
Filter = new SearchQueryPerformanceReportFilter
{
CampaignStatus = !CampaignStatusReportFilter.Deleted,
AdGroupS