Hi Mitchell,

Appreciate if you can point out the code change required in the code which 
I have sent you in previous post.

In addition to this, i have seen the document 
https://developers.google.com/adwords/api/docs/guides/partial-failure#c which 
mentions below supported services for partial failure.


   - AdGroupAdService 
   
<https://developers.google.com/adwords/api/docs/reference/latest/AdGroupAdService>
   - AdGroupBidModifierService 
   
<https://developers.google.com/adwords/api/docs/reference/latest/AdGroupBidModifierService>
   - AdGroupCriterionService 
   
<https://developers.google.com/adwords/api/docs/reference/latest/AdGroupCriterionService>
   - AdGroupExtensionSettingService 
   
<https://developers.google.com/adwords/api/docs/reference/latest/AdGroupExtensionSettingService>
   - AdGroupService 
   
<https://developers.google.com/adwords/api/docs/reference/latest/AdGroupService>
   - BudgetService 
   
<https://developers.google.com/adwords/api/docs/reference/latest/BudgetService>
   - CampaignCriterionService 
   
<https://developers.google.com/adwords/api/docs/reference/latest/CampaignCriterionService>
   - CampaignExtensionSettingService 
   
<https://developers.google.com/adwords/api/docs/reference/latest/CampaignExtensionSettingService>
   - CampaignService 
   
<https://developers.google.com/adwords/api/docs/reference/latest/CampaignService>
   - CustomerExtensionSettingService 
   
<https://developers.google.com/adwords/api/docs/reference/latest/CustomerExtensionSettingService>
   - FeedItemService 
   
<https://developers.google.com/adwords/api/docs/reference/latest/FeedItemService>
   - OfflineConversionAdjustmentFeedService 
   
<https://developers.google.com/adwords/api/docs/reference/latest/OfflineConversionAdjustmentFeedService>
   - OfflineConversionFeedService 
   
<https://developers.google.com/adwords/api/docs/reference/latest/OfflineConversionFeedService>
   - SharedSetService 
   
<https://developers.google.com/adwords/api/docs/reference/latest/SharedSetService>


How do I get the partial failure support for AdwordsUserListService.

Thanks,
Abhinav


On Tuesday, 9 June 2020 16:20:56 UTC+10, Abhinav Sharma wrote:
>
> HI Mitchell,
>
> as you mentioned earlier that partial failures are allowed 
> in AdwordsUserListService. However when I am trying to add some users in 
> the existing user list then I am not able to implement the partial failure. 
> please refer below code and point out the area where we can implement the 
> partial failure. 
>
> try
>             {
>                 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 (AdWordsApiException adWordsApiException)
>             {
>                 var apiException = adWordsApiException.ApiException as 
> ApiException;
>                 if (apiException != null)
>                 {
>                     foreach (var apiExceptionError in apiException.errors)
>                     {
>                         
>                     }
>                 }
>             }
>             catch (Exception e)
>             {
>                 throw new System.ApplicationException(
>                     "Failed to add user lists " +
>                     "(a.k.a. audiences) and upload email addresses.", e);
>             }
>
>
> Thanks,
> Abhinav
>
> On Saturday, 30 May 2020 00:34:42 UTC+10, adsapiforumadvisor wrote:
>>
>> Hi Abhinav,
>>
>> Please see here 
>> <https://developers.google.com/adwords/api/docs/guides/partial-failure#c_3> 
>> for more information about getting the partial failure values and a more in 
>> depth example here 
>> <https://developers.google.com/adwords/api/docs/samples/csharp/error-handling#handle-partial-failures>.
>>  
>> Please share your code if you are still having.
>>
>> @cv, the documentation shows that both partial failure and validate only 
>> should be supported for that service. I will monitor that thread and take 
>> the appropriate action.
>>
>> 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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/180023ca-cdc2-49d4-8278-f390a83cf5a1o%40googlegroups.com.

Reply via email to