Константин, добрый день,

В соответствии с документацией библиотеки:

   * Downloads a report with AWQL. If the path parameter is specified it 
will be
   * downloaded to the file at that path, otherwise it will be downloaded to
   * memory and be returned as a string.

Т.е. при указании path = NULL библиотека вернет содержимое отчета в виде 
строки.

  
https://github.com/googleads/googleads-php-lib/blob/master/src/Google/Api/Ads/AdWords/Util/ReportUtils.php


-Даниил, команда AdWords API.


On Tuesday, February 10, 2015 at 11:16:57 AM UTC+3, Константин Поляков 
wrote:
>
> Добрый день! Только начинаю постигать API 
>
> Столкнулся с довольно тривиальной задачей - получить статистику кампаний - 
> клики, конверсию и потраченную сумму.
>
> Пользуясь примерами клиентской библиотеки нашел наиболее подходящую 
> функцию - DownloadCriteriaReport.php
>
> Она делает то что нужно, но выводит нужные мне цифры в отчет CSV и 
> выгружает этот файл мне на сервер.
>
> Мне же необходимо получить эти данные в виде массива или объекта (PHP) 
> чтобы записывать из в БД.
>
> Спасибо!
>
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/3119323e-0a92-4450-8e0b-3048ef96bd07%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to