Hi,
Thank you for reaching out. However, I had to delete your initial post and
re-post it below, as it contains logs and account information. For security,
you may avoid posting such information and only send to our team when requested
and in private only, via the Reply privately to author option.
"Hey there,
we are currently facing several issue when using the new GoogleAds V5 API.
After solving some issues and updating to the latest version of the libraries
some of the issues were already resolved.
Currently we are stuck with an error while trying to add adGroupAdOperations
via AddBatchJobOperations. The problem seems to happen rather randomly, since
sometimes we are able to add 20 operations, sometimes 80 operations and
sometimes even less, before the error appears. The ads are always exactly the
same ones and in the same order every try. So it does not seem to be related to
a specific ad itself.
In addition to this we already experimented with different retrySettings /
timeouts increasing them to higher values to ensure it does not hit them.
Average runtime seems to be between 20 and 60 seconds regardless.
$optionalArgs['timeoutMillis']
$optionalArgs['retrySettings']['initialRetryDelayMillis']
$optionalArgs['retrySettings']['retryDelayMultiplier']
$optionalArgs['retrySettings']['maxRetryDelayMillis']
$optionalArgs['retrySettings']['initialRpcTimeoutMillis']
$optionalArgs['retrySettings']['rpcTimeoutMultiplier']
$optionalArgs['retrySettings']['maxRpcTimeoutMillis']
$optionalArgs['retrySettings']['totalTimeoutMillis']
See the following logging output from the logs for request and response.
--
[2020-10-14T06:23:12.139997+00:00] google-ads.NOTICE: Request
Method Name:
/google.ads.googleads.v5.services.BatchJobService/AddBatchJobOperations
Host: googleads.googleapis.com
Headers: {
"x-goog-api-client": "gl-php\/7.4.6 gapic\/ gax\/1.5.0 grpc\/1.32.0",
"x-goog-request-params":
"resource_name=customers\/XXXXXXXX\/batchJobs\/XXXXXXXX",
"developer-token": "REDACTED",
"login-customer-id": "XXXXXXXX"
}
Request:
{"resourceName":"customers\/XXXXXXXX\/batchJobs\/XXXXXXXX","sequenceToken":"XXXXXXXX","mutateOperations":[{"adGroupAdOperation":{"create":{"status":"ENABLED","adGroup":"customers\/XXXXXXXX\/adGroups\/XXXXXXXX","ad":{"id":"-13",
CONTENT REMOVED}
Response
-------
Headers: []
Fault
-------
Status code: 14
Details: Socket closed
Failure: {}
--
This error message is currently always followed by another error stating
"invalid sequence token". Allthough this is most likely just a followup error
based on the previous error.
--
[2020-10-14T06:27:26.163674+00:00] google-ads.WARNING: Request made: Host:
"googleads.googleapis.com", Method:
"/google.ads.googleads.v5.services.BatchJobService/AddBatchJobOperations",
CustomerId: XXXXXXXX, RequestId: "XXXXXXXX", IsFault: 1, FaultMessage: "["The
sequence token was invalid."]"
[2020-10-14T06:27:26.187647+00:00] google-ads.NOTICE: Request
-------
Method Name:
/google.ads.googleads.v5.services.BatchJobService/AddBatchJobOperations
Host: googleads.googleapis.com
Headers: {
"x-goog-api-client": "gl-php\/7.4.6 gapic\/ gax\/1.5.0 grpc\/1.32.0",
"x-goog-request-params":
"resource_name=customers\/XXXXXXXX\/batchJobs\/XXXXXXXX",
"developer-token": "REDACTED",
"login-customer-id": "XXXXXXXX"
}
Request:
{"resourceName":"customers\/XXXXXXXX\/batchJobs\/XXXXXXXX","sequenceToken":"XXXXXXXX","mutateOperations":[{"adGroupAdOperation":{"create":{"status":"ENABLED","adGroup":"customers\/XXXXXXXX\/adGroups\/XXXXXXXX","ad":{"id":"-13",
CONTENT REMOVED}
Response
-------
Headers: {
"request-id": "XXXXXXXX",
"date": "Wed, 14 Oct 2020 06:27:26 GMT",
"alt-svc": "h3-Q050=\":443\"; ma=2592000,h3-29=\":443\";
ma=2592000,h3-27=\":443\"; ma=2592000,h3-T051=\":443\";
ma=2592000,h3-T050=\":443\"; ma=2592000,h3-Q046=\":443\";
ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\""
}
Fault
-------
Status code: 3
Details: Request contains an invalid argument.
Failure:
{"errors":[{"errorCode":{"batchJobError":"INVALID_SEQUENCE_TOKEN"},"message":"The
sequence token was invalid."}]}"
Moving forward, allow me to reach out to the rest of our team so we can
investigate the INVALID_SEQUENCE_TOKEN you have been encountering randomly
after migrating.
Best regards,
Peter Laurence Napa Oliquino
Google Ads API Team
ref:_00D1U1174p._5004Q26979I:ref
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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
"AdWords API and Google Ads 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/R07um000000000000000000000000000000000000000000000QI84ZS00vnZsFO-SQP2hdR4aM1abjg%40sfdc.net.