Hello Team,

I am facing an issue when trying to delete user lists using the Google Ads 
API.

When I delete user lists of other segment types (for example, *Website 
Visitors*), the deletion works successfully. However, when I attempt to 
delete a user list of type *Custom Combination*, the API call fails with 
the following error.

*Business Logic:*
operation = client.get_type("UserListOperation")
operation.remove = google_resource
user_list_service.mutate_user_lists(customer_id=customer_id, 
operations=[operation] ) 

*Request:*
Method: /google.ads.googleads.v20.services.UserListService/MutateUserLists
Request: customer_id: "<customer_id>"
operations {
  remove: "customers/<customer_id>/userLists/<user_list_id>"
}

*Response:*
Fault: errors {
  error_code {
    field_error: REQUIRED
  }
  message: "The required field was not present."
  location {
    field_path_elements {
      field_name: "operations"
      index: 0
    }
    field_path_elements {
      field_name: "remove"
    }
  }
}
request_id: "#########"

In the Google Ads dashboard, I am able to delete *Custom Combination* user 
lists without issues. Could you please clarify:

   1. 
   
   *Is deletion of Custom Combination user lists supported via the API?*
   
Thank you for your guidance.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 visit 
https://groups.google.com/d/msgid/adwords-api/55da7d06-af40-4c49-9e59-7a620061fc61n%40googlegroups.com.
  • Is... Amit Tomar
    • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
      • ... Amit Tomar

Reply via email to