Отчет по ключевым словам Java Bing AdCenter API Campaignid
Я работаю с примером отчета Java KeywordPerformance. Есть ли параметр для campid, который позволит запросу отозвать все кампании для учетной записи?
1 ответ
Решение
Установите один или несколько идентификаторов / идентификаторов учетной записи клиента. Установите также правильную область.
KeywordPerformanceReportRequest reportRequest =
new KeywordPerformanceReportRequest();
// Specify the language of the report.
reportRequest.setLanguage(ReportLanguage.English);
// Specify the format of the report.
reportRequest.setFormat(ReportFormat.Xml);
reportRequest.setReturnOnlyCompleteData(false);
reportRequest.setReportName("Keyword Report");
reportRequest.setAggregation(ReportAggregation.Daily);
reportRequest.setTime(.....);
// Specify the scope of the report.
AccountThroughAdGroupReportScope scope =
new AccountThroughAdGroupReportScope();
scope.setAccountIds(ids);
reportRequest.setScope(scope);
Смотрите также:
http://msdn.microsoft.com/en-US/library/bing-ads-reporting-keywordperformancereportrequest.aspx
http://msdn.microsoft.com/en-US/library/bing-ads-reporting-accountthroughadgroupreportscope.aspx
Тогда также назовите их, если хотите:
reportRequest.setFilter
reportRequest.setColumns
Поэтому я думаю, что ответ:
Просто не устанавливайте никаких идентификаторов CampaignID.
Укажите только идентификаторы учетной записи клиента.