Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UserDataService UploadUserDataRequest - Operations is 'get' only #391

Closed
ian9 opened this issue May 9, 2022 · 1 comment
Closed

UserDataService UploadUserDataRequest - Operations is 'get' only #391

ian9 opened this issue May 9, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@ian9
Copy link

ian9 commented May 9, 2022

Describe the bug:
See post in the support chat: https://groups.google.com/g/adwords-api/c/Ru4BZzF0slw

Steps to Reproduce:
Please provide a code snippet or steps to consistently reproduce the experienced behavior.
[DO NOT INCLUDE ANY PERSONAL OR SENSITIVE DATA IN YOUR SUBMITTED CODE]
Here is an example of how I am seeing Operations being readOnly.

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

Google.Protobuf.Collections.RepeatedField 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

Expected behavior:
Some confidence I have that this is the intended use is this test here: UserDataServiceClientTest.g.cs

Client library version and API version:
Client library version: 11.0.1
Google Ads API version: 11
.NET version:
Operating system (Linux, Windows, ...) and version (if the bug is platform-specific):

Request/Response Logs:

Anything else we should know about your project / environment

@ian9 ian9 added the bug Something isn't working label May 9, 2022
@AnashOommen
Copy link
Member

See #346 for a fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants