Thanks Vishal, that's perfect! On Monday, March 27, 2017 at 8:43:09 PM UTC+1, Vishal Vinayak (Adwords API Team) wrote: > > Hi Stephen, > > Once you have initialized the service, you can create a service selector > to specify the fields that you wish to retrieve via the service (complete > list of fields available here > <https://developers.google.com/adwords/api/docs/appendix/selectorfields#v201702-AdwordsUserListService> > ). > > campaign_service = client.GetService('AdwordsUserListService', > version='v201702') > > # Construct selector and get all campaigns. > offset = 0 > selector = { > 'fields': ['Id', 'Name', 'Status'], > 'paging': { > 'startIndex': str(offset), > 'numberResults': str(PAGE_SIZE) > } > } > > You can then specify the selector in the AdwordsUserListService.get > <https://developers.google.com/adwords/api/docs/reference/v201609/AdwordsUserListService> > (as > follows) to retrieve the lists in your account: > > page = campaign_service.get(selector) > > You can use the ListType > <https://developers.google.com/adwords/api/docs/reference/v201702/AdwordsUserListService.UserList#listType> > field > in the selector to filter > <https://developers.google.com/adwords/api/docs/guides/reporting#create_a_report_definition> > on > the CRM_BASED lists only. > Hope this helps. Please revert if you have additional questions or > concerns. > > Regards, > Vishal, AdWords API Team >
-- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and Google+: https://googleadsdeveloper.blogspot.com/ https://plus.google.com/+GoogleAdsDevelopers/posts =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords 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 Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. 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/c14e8684-89f7-40e0-b0d1-e29f854032a8%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.