Отчет по ключевым словам Java Bing AdCenter API Campaignid

1

Я работаю с примером примера Java KeywordPerformance. Есть ли параметр для кампании, который позволит запросу вернуть все кампании назад для учетной записи?

  • 0
    Я бы удалил тег Google AdWords. Ваш вопрос об API Bing.
  • 0
    Спасибо! Работаю на обоих сразу :)
Теги:
bing

1 ответ

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.
Укажите только идентификаторы учетной записи клиента.

  • 0
    Работало отлично, спасибо.

Ещё вопросы

Сообщество Overcoder
Наверх
Меню