API integration error during customer list upload

109 views
Skip to first unread message

Marcell Buglyó

unread,
Nov 3, 2022, 10:40:44 AM11/3/22
to Google Ads API and AdWords API Forum
Hello!

As the title suggests, we are in the process of integrating our Customer lists through the Google Ads API so it refreshes automatically. We got an error during upload which halts us and we can't proceed. The error in question:

[2022-10-10T10:37:17.752692+00:00] google-ads.NOTICE: Request

-------

Method Name: /google.longrunning.Operations/GetOperation

Host: googleads.googleapis.com

Headers: {

    "x-goog-api-client": "gl-php\/8.1.9 gccl\/16.0.0 gapic\/16.0.0 gax\/1.17.0 grpc\/1.48.0 rest\/1.17.0 pb\/+n",

    "x-goog-request-params": "name=customers%2F6190469031%2Foperations%2FCjRjdXN0b21lcnMvNjE5MDQ2OTAzMS9vZmZsaW5lVXNlckRhdGFKb2JzLzI2MTI0NzY0NzQ3EAs%3D",

    "developer-token": "REDACTED",

    "login-customer-id": "2410624162"

}

Request:

{"name":"customers\/6190469031\/operations\/CjRjdXN0b21lcnMvNjE5MDQ2OTAzMS9vZmZsaW5lVXNlckRhdGFKb2JzLzI2MTI0NzY0NzQ3EAs="}



Response

-------

Headers: {

    "request-id": "rLe48mGpbgCP-QrBQteU-w",

    "date": "Mon, 10 Oct 2022 10:37:18 GMT",

    "alt-svc": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\""

}



Fault

-------

Status code: 13

Details: Internal error encountered.

Failure: {}

ApiException was thrown with message '{

    "message": "Internal error encountered.",

    "code": 13,

    "status": "INTERNAL",

    "details": [

        {

            "@type": "request-id",

            "data": "rLe48mGpbgCP-QrBQteU-w"

        }

    ]

We could really use some help here, we got stuck. :/

}

Best Regards, =)
Marcell

Google Ads API Forum Advisor

unread,
Nov 3, 2022, 12:52:48 PM11/3/22
to marcell...@intren.hu, adwor...@googlegroups.com
Hi Marcell,

Thanks for reaching out. Please allow me to share this information with our team and we will get back to you with an update as soon as we can.

Thanks,

Google Logo
Matt
Google Ads API Team
 


ref:_00D1U1174p._5004Q2fzn5P:ref

Google Ads API Forum Advisor

unread,
Nov 4, 2022, 1:10:19 AM11/4/22
to marcell...@intren.hu, adwor...@googlegroups.com

Hi Marcell,

Thank you for your patience. I’ve got an update from my team.

This is a deadline exceeded error. This could be due to low timeout. However, could you confirm if you’ve set a low timeout? 

As per this guide, you may set the timeout to 2 hours or more. You may refer to this code example in order to ​​use of custom client timeouts. Then you may retry your request, and let us know if you still get said error.

Regards,

Google Logo
Yasar
Google Ads API Team
 


ref:_00D1U1174p._5004Q2fzn5P:ref

Marcell Buglyó

unread,
Nov 7, 2022, 9:18:08 AM11/7/22
to Google Ads API and AdWords API Forum
Hello Yasar!

We did the modifications as per instructed, and got a different error:

[2022-11-04T13:07:27.504514+00:00] google-ads.WARNING: Request made: Host: "googleads.googleapis.com", Method: "/google.ads.googleads.v11.services.OfflineUserDataJobService/RunOfflineUserDataJob", CustomerId: 6190469031, RequestId: "YJwCR2fZ6VjRVWnqIvbS0A", IsFault: 1, FaultMessage: "["Multiple requests were attempting to modify the same resource at once. Retry the request."]"  

[2022-11-04T13:07:27.505704+00:00] google-ads.NOTICE: Request

-------

Method Name: /google.ads.googleads.v11.services.OfflineUserDataJobService/RunOfflineUserDataJob

Host: googleads.googleapis.com

Headers: {

    "x-goog-api-client": "gl-php\/8.1.9 gccl\/16.0.0 gapic\/16.0.0 gax\/1.17.0 grpc\/1.48.0 rest\/1.17.0 pb\/+n",

    "x-goog-request-params": "resource_name=customers%2F6190469031%2FofflineUserDataJobs%2F26716031545",

    "developer-token": "REDACTED",

    "login-customer-id": "2410624162"

}

Request: 

{"resourceName":"customers\/6190469031\/offlineUserDataJobs\/26716031545"}


Response

-------

Headers: {

    "request-id": "YJwCR2fZ6VjRVWnqIvbS0A",

    "date": "Fri, 04 Nov 2022 13:07:27 GMT",

    "alt-svc": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000,h3-Q050=\":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":{"databaseError":"CONCURRENT_MODIFICATION"},"message":"Multiple requests were attempting to modify the same resource at once. Retry the request."}],"requestId":"YJwCR2fZ6VjRVWnqIvbS0A"} 


According to the developers, this example was used: https://github.com/googleads/google-ads-php/blob/v16.0.0/examples/Remarketing/AddCustomerMatchUserList.php

Could you help us with this issue too? :)


Thank you for your help and Best Regards,

Marcell


Google Ads API Forum Advisor

unread,
Nov 7, 2022, 3:03:08 PM11/7/22
to marcell...@intren.hu, adwor...@googlegroups.com
Hi Marcell,

It seems possible that the OfflineUserDataJob resource may have been busy with another operation when the RunOfflineUserDataJob method was called, hence the concurrent modification error. Can you please confirm if this issue is happening repeatedly? Are you able to retry the run method with an exponential backoff? 

Thanks,

Google Logo
Matt
Google Ads API Team
 


ref:_00D1U1174p._5004Q2fzn5P:ref
Reply all
Reply to author
Forward
0 new messages