Closed fiboknacky closed 1 month ago
Thanks. That'd be another PR then.
public function search(SearchGoogleAdsRequest $request, array $callOptions = []): PagedListResponse
{
return $this->startApiCall('Search', $request, $callOptions);
}
$response = $googleAdsClient->getGoogleAdsServiceClient()->search(
$customerId,
$query,
[
'pageSize' => $entriesPerPage,
'returnTotalResultsCount' => true,
'pageToken' => end($pageTokens)
]
);
FYI there's also a credentialsConfig option for
authHttpHandler
, which you could set as well (or add as a separate option). This is used in OAuth2 requests if there's an HTTP request to the OAuth2 "token" endpoint (or anywhere else, such as in external account credentials. This is set oncredentialsConfig
:You could set this to the
httpHandler
above as well, whennull
, for consistency. Or you can add your ownsetAuthHttpHandler
method for it, or do nothing at all. But I wanted to let you know it exists in case that's relevant!