Hi Thomas,
The selector fields are case-sensitive. You could try using "Id" and "Name"
in your selector
<https://developers.google.com/adwords/api/docs/appendix/selectorfields#v201809-AdwordsUserListService>
with
proper capitalization. If this does not solve the problem, could you
provide the complete SOAP request and response logs so I could investigate
this further? You may send them to me via the *reply privately to author*
option.
Regards,
Dannison
AdWords API Team
On Tuesday, November 20, 2018 at 4:29:44 AM UTC+8, Thomas Bisballe wrote:
>
> How do i get all userlists from an account and list all their names and
> id's.
>
> When i run
>
> AdwordsUserListServiceInterface userListService =
> adWordsServices.get(session,AdwordsUserListServiceInterface.class);
> Selector serviceSelector = new Selector();
> String[] fields = {"id","name"};
> serviceSelector.setFields(fields);
> UserListPage result = userListService.get(serviceSelector);
>
> i get invalid field ids error
>
> But on the page
>
>
> https://developers.google.com/adwords/api/docs/reference/v201806/AdwordsUserListService.UserList
>
> id and name are valid id's
>
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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].
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/f669b10d-c999-4fa9-8a3b-55f9bb572a70%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.