Is it possible to set the CURLOPT_CONNECTTIMEOUT and CURLOPT_TIMEOUT after or during the creation of a google ads client. See the example of how I am creating a client currently.
$oAuth2Credential = (new OAuth2TokenBuilder())->fromFile(self::API_INI_FILE)->build();
$googleAdsClient = (new GoogleAdsClientBuilder())
->fromFile(self::API_INI_FILE)
->withOAuth2Credential($oAuth2Credential)
->withLogger($logger)
->build();
There are no methods, at least I can't find any, that allows me to set these options like so
$googleAdsClient->setDefaultOption('CURLOPT_CONNECTTIMEOUT', 100);
$googleAdsClient->setDefaultOption('CURLOPT_TIMEOUT', 2000);
Can it be done in the google_ads_ini.php? If so how? Links docs would greatly be appreciated.
Additional context:
I am using the batch service to create Geo Targeting mutation operations. Every so often the batch resource reports back with a curl timeout error.
===============================
=================================
the timeout always seems to occur during the polling for the batch to complete