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 [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 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/9c114036-9036-472b-8265-7ed7b393eda4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • Retrieve a list ... stephen . waters . scripts
    • Re: Retriev... 'Vishal Vinayak (Adwords API Team)' via AdWords API Forum

Reply via email to