Thanks for you quick response. I am stuck in one scenario where I am trying to add, update or delete the users (1000 in single request) from the existing user list (Audience) and trying to handle the partial failures.
using (var userListService =
(AdwordsUserListService) user.GetService(AdWordsService.v201809.AdwordsUserListService))
{
//set the partial Failure as true
userListService.RequestHeader.partialFailure = true;
// Create operation to add members to the user list based on email
MutateMembersOperation mutateMembersOperation = new MutateMembersOperation
{
operand = new MutateMembersOperand
{
userListId = long.Parse(audienceId),
membersList = members.ToArray()
},
@operator = Operator.ADD
};
//Add members to the user list/audience based on the provided member list
MutateMembersReturnValue mutateMembersResult = userListService.mutateMembers(
new MutateMembersOperation[]
{
mutateMembersOperation
});
}
}
catch (Exception e)
{
throw new System.ApplicationException(
"Failed to add user lists " +
"(a.k.a. audiences) and upload email addresses.", e);
}
I was assuming to get the partialFailureErrors from the mutateMembersResult, however, counldn't get it. Could you please point me to the right direction if I am doing something wrong in the code to handle the partial failures.
Thanks,
Abhinav Sharma