Hi Tharun, 

About getting the UserListId and UserListName via the 
CampaignCriterionService.get() 
<https://developers.google.com/adwords/api/docs/reference/v201806/CampaignCriterionService#get>.
 
Please find the available selector fields for CampaignCriterionService here 
<https://developers.google.com/adwords/api/docs/appendix/selectorfields#v201806-CampaignCriterionService>.
 
You could try an API call with the SOAP request as given below: 

 <soapenv:Body>
        <get xmlns="https://adwords.google.com/api/adwords/cm/v201806";>
            <serviceSelector>
                <fields>UserListId</fields>
                <fields>UserListName</fields>
                <fields>CampaignId</fields>
                <fields>CriteriaType</fields>
                <predicates>
                    <field>CriteriaType</field>
                    <operator>IN</operator>
                    <values>USER_LIST</values>
                </predicates>
                <predicates>
                    <field>CampaignId</field>
                    <operator>IN</operator>
                    <values>734382460</values>
                </predicates>
                <paging>
                    <startIndex>0</startIndex>
                    <numberResults>100</numberResults>
                </paging>
            </serviceSelector>
        </get>
    </soapenv:Body>

To add or update a email in an existing user list, you will need to use 
AdwordsUserListService.mutateMembers() 
<https://developers.google.com/adwords/api/docs/reference/v201806/AdwordsUserListService#mutatemembers>.
 
Please check this section 
<https://github.com/googleads/googleads-python-lib/blob/master/examples/adwords/v201806/remarketing/add_crm_based_user_list.py#L57-L86>
 of 
the python code sample for reference to add members to a user list. Please 
let me know if you have any additional questions. 

Thanks,
Sreelakshmi, AdWords API Team

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"AdWords API and Google Ads 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/5d50bb07-4099-4ee7-9197-f2d5ce7887d6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • ... Tarun Jain
    • ... 'Sreelakshmi Sasidharan (AdWords API Team)' via AdWords API and Google Ads API Forum
      • ... Tarun Jain
      • ... Tarun Jain
        • ... 'Sreelakshmi Sasidharan (AdWords API Team)' via AdWords API and Google Ads API Forum

Reply via email to