The user list ID provided for the job is invalid

284 views
Skip to first unread message

Andrii Veretko

unread,
Jul 6, 2023, 7:23:58 AM7/6/23
to Google Ads API and AdWords API Forum
Can't create OfflineUserDataJob for UserList. Error says  The user list ID provided for the job is invalid. I was facing this issue before but support answered it was caused by membership status 'Closed'. There is old ticket: https://groups.google.com/g/adwords-api/c/UpFXhfO-t3I.

Now it happens again but membership status in 'Open'. Can you check what's wrong?

Some helpful information:
POST  https://googleads.googleapis.com/v13/customers/8758447846/offlineUserDataJobs:create
Body:
{"job":{"type":"CUSTOMER_MATCH_USER_LIST","customerMatchUserListMetadata":{"userList":"customers/8758447846/userLists/8080004298"}},"validateOnly":false,"enableMatchRateRangePreview":true} Headers: {"developer-token": <Hidden>,"login-customer-id": "1511812580","Authorization": <Hidden>}  
Error message:
{"error":{"code":400,"message":"Request contains an invalid argument.","status":"INVALID_ARGUMENT","details":[{"@type":"type.googleapis.com/google.ads.googleads.v13.errors.GoogleAdsFailure","errors":[{"errorCode":{"offlineUserDataJobError":"INVALID_USER_LIST_ID"},"message":"The user list ID provided for the job is invalid.","trigger":{"int64Value":"8080004298"},"location":{"fieldPathElements":[{"fieldName":"job"},{"fieldName":"customer_match_user_list_metadata"},{"fieldName":"user_list"}]}}],"requestId":"d90ESKXwG0VlYu0-58Ja0Q"}]}}

Google Ads API Forum Advisor

unread,
Jul 6, 2023, 11:53:45 AM7/6/23
to andr...@optimove.com, adwor...@googlegroups.com

Hi,

Thanks for reaching out to Google Ads API Support.

With regards to your concern, it indeed has a membership status of open. However, upon checking, it appears that the owner of the user list is DAZN Audience Shed - US (627-967-7929). Can you try to create an offlineUserJob for the userlist in the owner's account? 

If the error persists, please note that in Google Ads API perspective we need the updated logs with the suggested solution to be able to see the error thrown on your side and further investigate. With that being said, can you provide the complete request and response logs with request ID generated as shown in the respective?

You may then send the requested information via the Reply privately to the author option. If this option is not available, you may send the details directly to our googleadsa...@google.com alias instead.

Links included in this email:

 
This message is in relation to case "ref:_00D1U1174p._5004Q2mrveu:ref"

Thanks,
 
Google Logo Google Ads API Team


Andrii Veretko

unread,
Jul 7, 2023, 4:34:56 AM7/7/23
to Google Ads API and AdWords API Forum
I have no Idea how to create OfflineUserDataJob with GoogleAds UI. But I've tried to create it via Postman and facing the same error. Request and response provided in first message. There is also  "requestId":"d90ESKXwG0VlYu0-58Ja0Q"

Google Ads API Forum Advisor

unread,
Jul 7, 2023, 6:26:09 AM7/7/23
to andr...@optimove.com, adwor...@googlegroups.com

Hello,

Thank you for getting back to us.

I understand that you are using Postman in performing your request. Please note that the suggestion we are referring to is replacing the CID in your Post request. Since we noticed that the userList with ID of 8080004298 belongs to DAZN Audience Shed - US (627-967-7929). Can you please try and replace the CID in your request as shown below and try sending your request again.

POST https://googleads.googleapis.com/v13/customers/6279677929/offlineUserDataJobs:create

If the issue persists please provide us with the complete logs (request and response with request ID) generated by this request following the format via these links so we can investigate further and provide precise guidance.

You can provide it via Reply privately to the author option. If this option is not available, then send it instead on this email address googleadsa...@google.com 

Andrii Veretko

unread,
Jul 7, 2023, 10:08:00 AM7/7/23
to Google Ads API and AdWords API Forum
I have tried your approach: changed id in API request URL and also in "userList": "customers/6279677929/userLists/8080004298" property in API request body. 
Apparently works that way. But isn't this UserList is shared? When I enter DAZN Audience Shed - US and search for this UserList then I see "Shared" tag and when I hover on it it says that list is shared between 124 accounts (includes DAZN Audience Shed - BR which was trying to use it with API).

So can I use shared UserList via API with credentials of account where this UserList is accessible?

 XGF321o5ar.png

8Ag3O1S2Sh.png

Google Ads API Forum Advisor

unread,
Jul 7, 2023, 2:42:28 PM7/7/23
to andr...@optimove.com, adwor...@googlegroups.com

Hi Andrii, 

Thank you for coming back to us and sharing additional information. I hope you are doing well today.

With regards to your concern, please note that you must not use the “shared” one. In line with this I recommend creating a user list in the account 8758447846 using the AccessReason = OWNED. Please see the sample curl/code below for creating a userlist, for reference.

curl -X POST "https://googleads.googleapis.com/$(version)/customers/$CustomerID)/userLists:mutate" \

--header "Content-Type: application/json" \

--header "Authorization: Bearer ${OAUTH2_ACCESS_TOKEN}" \

--header "developer-token: ${DEVELOPER_TOKEN}" \

--header "login-customer-id: ${LOGIN_CUSTOMER_ID}" \

  --data '{"operations":[{"create":{"accessReason":"OWNED","crmBasedUserList":{"uploadKeyType":"CONTACT_INFO"},"name":"Customer Match list $(date)","description":"A list of customers that originated from email addresses","membershipLifeSpan":30}}]}' \

  --compressed

You may also see the Creating the User List and Userlist (REST) guidelines for additional reference. Based on the above information, could you please try the recommendation and let us know how it goes on your end? 

Reference links:


Your response is highly appreciated. Have a great day.
 

Andrii Veretko

unread,
Jul 10, 2023, 4:15:21 AM7/10/23
to Google Ads API and AdWords API Forum
I have found this API in Documentation and I see that according doc accessReason is output only field. So I can't set it by myself via request.

Also want to mention that we have a lot of accounts and a lot of UserLists. Absolute most of them are shared and doesn't face this error. We can't re-create thousands of user lists for all of the accounts.

0lfQc4TKrC.png

Google Ads API Forum Advisor

unread,
Jul 10, 2023, 9:40:42 AM7/10/23
to andr...@optimove.com, adwor...@googlegroups.com

Hi Andrii,

Thank you for getting back to us.

I have checked the user list id 8080004298 using the query below and it appears in the results that the user list is read only which is the reason why you are not able to modify it and getting the error you mentioned. In the API, it is unfortunately not possible to modify the read_only attribute. With this, can you try your request with a user list that has a readOnly field that is false? Please let us know how it goes.

SELECT user_list.id, user_list.resource_name, user_list.read_only, user_list.access_reason, user_list.account_user_list_status, user_list.closing_reason, user_list.type FROM user_list WHERE user_list.id = '8080004298'
"results": [

    {

      "userList": {

        "readOnly": true,

        "resourceName": "customers/8758447846/userLists/8080004298",

        "type": "CRM_BASED",

        "id": "8080004298",

        "accessReason": "SHARED",

        "accountUserListStatus": "ENABLED"

      }

    }

  ]

Reference Link:

Andrii Veretko

unread,
Jul 11, 2023, 3:37:25 AM7/11/23
to Google Ads API and AdWords API Forum
But I need to run Offline Job with exactly this UserList. What is the policy of readOnly property? Is there any default value? Why exactly this UserList is readOnly: true. Can I somehow configure default value in GoogleAds account? 

Google Ads API Forum Advisor

unread,
Jul 11, 2023, 12:58:32 PM7/11/23
to andr...@optimove.com, adwor...@googlegroups.com

Hi Andrii,

You may note that the readOnly does not allow you to make changes such as mutate on it. You may refer to this code example to create userList and create operations to add members to a user list (a.k.a. audience) using an OfflineUserDataJob. This code example does not set userList to readOnly. I highly recommend you to utilize our code example for uploading audiences to Google Ads.

With regards to why said UserList is readOnly: true and how to configure the default value in GoogleAds account, the appropriate team for your concern is the Google Ads Product support team. That said, I would recommend that you reach out to the Google Ads Product support team, via this link as they are best suited to provide further insights as our team supports only implementations related concerns. 

I hope this helps. Feel free to reach us back for additional API related concerns by opening a new email/forum thread so that we can assist you better. 

Reply all
Reply to author
Forward
0 new messages