Hi Mitchell,
Could you please help me out to implement the handlepartialfailure in below
code. I am struggling lil bit here. I am not able to get the
partialFailureErrors
object from mutateMembersResult .
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);
}
Thanks,
Abhinav
On Friday, 29 May 2020 02:47:58 UTC+10, adsapiforumadvisor wrote:
>
> Hi Abhinav,
>
> I can confirm that the UserList service supports partial failure as shown
> here
> <https://developers.google.com/google-ads/api/reference/rpc/v3/MutateUserListsRequest>.
>
> Also, for AdWords API, the AdWordsUserListService should support partial
> failures as well. Please let me know if that causes any errors.
>
> Regards,
> Mitchell
> Google Ads API Team
>
> ref:_00D1U1174p._5001UaRix7:ref
>
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/ea04b861-bc5e-4bde-8f68-53ccfd09e8dc%40googlegroups.com.