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/7468179d-2e74-40b2-ac63-771a0c89ce70n%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