Re-posting the last inquiry ( 
https://groups.google.com/g/adwords-api/c/nv214XIPoXo 
<https://groups.google.com/g/adwords-api/c/0YumAtv6aEI> ) from the forum as 
it wasn't routed to our support queue.

Kind regards,
Sherwin Vincent
Google Ads API Team

On Monday, August 22, 2022 at 5:11:21 PM UTC+8 Teun vh wrote:

> Hi, 
>
> In our current code we retrieve metrics per customer in a single query.
> However because our client database grows we sometimes want to retrieve 
> metrics like impressions for all our clients together in *one* call. 
> Is this possible?
>
> Current example code:
> public static function runExample(GoogleAdsClient $googleAdsClient, int 
> $customerId)
> {
>     $googleAdsServiceClient = 
> $googleAdsClient->getGoogleAdsServiceClient();
>     // Creates a query that retrieves keyword statistics.
>     $query =
>         "SELECT metrics.impressions, metrics.clicks FROM campaign WHERE 
> segments.date DURING LAST_30_DAYS";
>
>     // Issues a search stream request.
>     /** @var GoogleAdsServerStreamDecorator $stream */
>     $stream = $googleAdsServiceClient->searchStream($customerId, $query);
>
>
> In the example above we have to send a customerId for each customer and a 
> request is made per customer. We would like to send an array of customer 
> ids and make a query that requests this metrics in one call.
>
> Thanks in advance!
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/dbaaaca8-bb6a-4b60-97cd-ecc80d3ce80fn%40googlegroups.com.
  • Re... 'Teun vh' via Google Ads API and AdWords API Forum
    • ... Google Ads API and AdWords API Forum
      • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum

Reply via email to