Константин, добрый день.
В старых версиях API было возможно получить статистику через сервисы, но
уже год это возможно только через отчеты.
Я отвечу про отчеты в соответствующей ветке.
-Даниил, команда AdWords API.
On Tuesday, February 10, 2015 at 12:30:55 PM UTC+3, Константин Поляков
wrote:
>
> $campaignService = $user->GetService('CampaignService', ADWORDS_VERSION);
>
> $selector = new Selector();
> $selector->fields = array('Id', 'Name', 'Impressions', 'Clicks', 'Cost',
> 'Ctr');
>
> $dateRange = new DateRange();
> $dateRange->min = date('Ymd', strtotime('-1 week'));
> $dateRange->max = date('Ymd', strtotime('-1 day'));
> $selector->dateRange = $dateRange;
>
> $selector->paging = new Paging(0, AdWordsConstants::RECOMMENDED_PAGE_SIZE
> );
>
> do { $page = $campaignService->get($selector); }
>
> При вызове данной конструкции выходит ошибка - он ничего не знает о полях
> 'Impressions', 'Clicks', 'Cost', 'Ctr'
>
> Хотя функция GetCampaignStats стандартная в библиотеке. В чем может быть
> проблема?
>
> Спасибо!
>
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
---
You received this message because you are subscribed to the Google Groups
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/d2be9fcc-bab7-4f19-9031-616124b52876%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.