Here is an example of how I am seeing Operations being readOnly. Some 
confidence I have that this is the intended use is this test here: 
UserDataServiceClientTest.g.cs 
<https://github.com/googleads/google-ads-dotnet/blob/af4359a8dc312402ffb8d3f746388216112136c5/tests/V10/Services/UserDataServiceClientTest.g.cs#L39>

UserDataServiceClient service = 
client.GetService(Services.V10.UserDataService);
List<UserDataOperation> userDataOperations = new 
List<UserDataOperation>(hashedEmails.Count);
UploadUserDataRequest uploadUserDataRequest = new UploadUserDataRequest() { 
CustomerId = customer, CustomerMatchUserListMetadata = { UserList = 
returnIt.FirstOrDefault().ResourceName } };
uploadUserDataRequest.Operations = userDataOperations; 
service.UploadUserData(uploadUserDataRequest);


Google.Protobuf.Collections.RepeatedField<UserDataOperation> 
UploadUserDataRequest.Operations { get; }
Required. The list of operations to be done.

CS0200: Property or indexer ' UploadUserDataRequest.Operations' cannot be 
assigned to -- it is read only

On Thursday, May 5, 2022 at 11:16:22 AM UTC-4 adsapi wrote:

> Hi Ian,
>
> Thank you for posting your concern.
>
> Please see my answer below for each concern that I've noticed:
>
> "*When trying to add Operations to UploadUserDataRequest, I find it is 
> readonly. Is this intended? Am I not using it correctly, or could it be not 
> implemented?*"
> -The *UploadUserDataRequest* should not be readonly. With this, I would 
> suggest referring to this document 
> <https://developers.google.com/google-ads/api/docs/migration/user-data-service#creating_and_populating_a_customer_match_userlist>
>  
> as it illustrates how to upload customer members using *UserDataService*.
>
>
> "*It looks like our current code for Adwords Api (MutateMembersOperation) 
> makes an effort to only add new contacts to an audience, not upload the 
> whole thing every time. Is the intent seemingly of 
> OfflineUserDataJobService to upload the whole audience every time?*"
> "*Similar to this question, I'm not positive from the documentation how 
> one is supposed to  append contacts to an audience. Does putting them into 
> Create, and then sending them to an audience append? Or does it re-make the 
> audience? The doc makes it sound like it appends but I'm not sure.*"
> -To answer the 2 items above, the *OfflineUserDataJobService *will indeed 
> append the members if it is a new unique user. However, if you want to 
> update the member list, then you will have to remove (ways to remove 
> members 
> <https://developers.google.com/google-ads/api/docs/remarketing/audience-types/customer-match#remove_data_from_a_customer_match_audience_list>)
>  
> the specific members and make 'create OfflineUserDataJobOperation 
> <https://developers.google.com/google-ads/api/reference/rpc/v10/OfflineUserDataJobOperation#create>
> '.
>
> Regards,
> [image: Google Logo] 
> Ernie John 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2aQGgO: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 
"Google Ads API and AdWords 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/09fe304a-3a3a-4f2d-a212-9fa265a17debn%40googlegroups.com.
  • Us... Ian Wills
    • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
      • ... Ian Wills

Reply via email to