Hi,

You would want to submit a 'get' invocation rather than a 'mutate' in this 
case.  The XML would look similar to this:

        <*get* xmlns="https://adwords.google.com/api/adwords/rm/v201309";>
            <serviceSelector>
                <ns7:fields 
xmlns:ns7="https://adwords.google.com/api/adwords/cm/v201309";>Id</ns7:fields>
                <ns8:fields 
xmlns:ns8="https://adwords.google.com/api/adwords/cm/v201309";>Name</ns8:fields>
                <ns9:fields 
xmlns:ns9="https://adwords.google.com/api/adwords/cm/v201309";>Description</ns9:fields>
                <ns10:fields 
xmlns:ns10="https://adwords.google.com/api/adwords/cm/v201309";>Status</ns10:fields>
                <ns11:predicates 
xmlns:ns11="https://adwords.google.com/api/adwords/cm/v201309";>
                    <ns11:field>Name</ns11:field>
                    <ns11:operator>EQUALS</ns11:operator>
                    <ns11:values>UK remarketing</ns11:values>
                </ns11:predicates>
            </serviceSelector>
        </*get*>

I highly recommend using one of our client 
libraries<https://developers.google.com/adwords/api/docs/clientlibraries>to 
generate your API calls if you aren't already doing so.  As you can see 
from the above example, generating the XML by hand can be quite challenging 
and error-prone, and the client libraries take care of it for you.

If you haven't worked with the API before then please read through the 
Developer 
Guide <https://developers.google.com/adwords/api/docs/>, which will cover 
important concepts like selectors, predicates, etc.

Thanks,
Josh, AdWords API Team

On Tuesday, February 4, 2014 6:49:16 PM UTC-5, a...@demandbase.com wrote:
>
> I created a userlist in the UI called "UK remarketing" and want to 
> retrieve the userlist id. How do I retrieve the userlist ID? I was thinking 
> it's a GET operation for the AdWords userlist service: 
> https://developers.google.com/adwords/api/docs/reference/v201309/AdwordsUserListService
>
> But i'm not sure how to complete the operation.
>
> <?xml version="1.0" encoding="UTF-8"?>
>
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/
> " xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:xsi="
> http://www.w3.org/2001/XMLSchema-instance";>
>
>   <soapenv:Header>
>
>     <ns1:RequestHeader soapenv:actor="
> http://schemas.xmlsoap.org/soap/actor/next"; soapenv:mustUnderstand="0" 
> xmlns:ns1="
> https://adwords.google.com/api/adwords/cm/v201309/AdwordsUserListService?wsdl
> ">
>
>       <ns1:clientCustomerId>721-725-2610</ns1:clientCustomerId>
>
>       <ns1:developerToken>YOUR_DEVELOPER_TOKEN</ns1:developerToken>
>
>       <ns1:userAgent>fetchUserListID</ns1:userAgent>
>
>       <ns1:validateOnly>false</ns1:validateOnly>
>
>       <ns1:partialFailure>false</ns1:partialFailure>
>
>     </ns1:RequestHeader>
>
>   </soapenv:Header>
>
>   <soapenv:Body>
>
>     <mutate xmlns="https://adwords.google.com/api/adwords/cm/v201309";>
>
>       <operations>
>
>           <operator>GET</operator>
>
>
>       </operations>
>
>     </mutate>
>
>   </soapenv:Body>
> </soapenv:Envelope> 
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to