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!