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.
===============================
2331 mutate operations have been added.
Next sequence token for adding next operations is
'd0a2ecc054e1998161242cad7507083b'.
Batch job with resource name
'customers/[REDACTED]/batchJobs/12030701356' has been executed.
ERROR: cURL error 28: Operation timed out after 10001 milliseconds with 0
bytes received (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for
https://googleads.googleapis.com/v11/customers/[REDACTED]/operations/CipjdXN0b21lcnMvNzY4NTM4Njg3Mi9iYXRjaEpvYnMvMTIwMzA3MDEzNTYQCw==ERROR:
cURL error 28: Operation timed out after 10001 milliseconds with 0 bytes
received (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for
https://googleads.googleapis.com/v11/customers/[REDACTED]/operations/CipjdXN0b21lcnMvNzY4NTM4Njg3Mi9iYXRjaEpvYnMvMTIwMzA3MDEzNTYQCw==
=================================
the timeout always seems to occur during the polling for the batch to
complete
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/3180fb91-0808-4624-b0d4-b388aa0ff464n%40googlegroups.com.