OfflineUserDataJobOperation: Remove And Create operation

466 views
Skip to first unread message

Subhranshu Mohanty

unread,
Feb 16, 2022, 10:10:40 AM2/16/22
to Google Ads API and AdWords API Forum

Hi, Earlier we used to have the create and remove operation for member lists in a single api call.

But in the google ads api it's not allowed , Can anyone tell me how we can achieve this one, also I can not find any code examples in any of the client libraries both for remove and create.

Only create option example I've found out.

If anyone can help would be great.

Google Ads API Forum Advisor

unread,
Feb 17, 2022, 9:14:31 AM2/17/22
to smoh...@atlassian.com, adwor...@googlegroups.com

Hello Subhranshu,

Thank you for reaching out. Google Ads API only supports mutating the User Lists but not the members in the lists. The workaround is to use UserListService.MutateUserLists to create /update/remove members in the user list by the UserListOperation. As of now we have a refer code sample to add-logical-user-list for using.
Hope this helps, please let me know if you have any questions.

Best regards,

Google Logo
Jakeia Sabrina
Google Ads API Team
 

ref:_00D1U1174p._5004Q2WwHBa:ref

Subhranshu Mohanty

unread,
Feb 17, 2022, 9:36:29 AM2/17/22
to Google Ads API and AdWords API Forum
The one you're suggesting that I know for user lists, to add and remove members from the user list can be possible via OfflineUserDataJobOperation? 

But my question is then how I should proceed with Create & Remove operation for the same user list? Doc says to create 2 separate OfflineUserDataJob jobs and add create/remove operation respectively to it, then run the jobs. Then one more docs say running 2 jobs to update the same user list might throw error?

It's very confusing and I can see a lot of people asking the same question in the forum. Can you add someone from your team who knows in detail about OfflineUserDataJob part, otherwise you will be sending me those docs which are publicly available. If possible if we can hop on to call also that would be great.

Google Ads API Forum Advisor

unread,
Feb 18, 2022, 4:09:12 PM2/18/22
to smoh...@atlassian.com, adwor...@googlegroups.com
Hi Subhranshu,

I work with Jakeia and will assist you. If you have a small amount of users to remove then using UserDataService with its rate limit of 10 per request won't block you too long. Another option is to use OfflineUserDataJobService having its first operation a remove_all operation and then uploading your entire list again. Note that running 2 jobs on the same list may cause concurrent modification issues.

This support channel can only provide support via email. If the above methods won't cover your use case, feel free to respond.

Regards,

Google Logo
Aryeh
Google Ads API Team
 
​​​​​​​

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