Hi,
In my current code we retrieve account budget per customer in a single query.
However because one mcc manager many customers, if we get account budget per customer, this will cause error with "code = ResourceExhausted desc = Resource has been exhausted (e.g. check quota)", so we want to retrieve account budget for multiple customers 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 account_budget.adjusted_spending_limit_micros, account_budget.amount_served_micros FROM account_budget";
// 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!