Here is an example request I am making:

<?xml version="1.0 <http://www.w3.org/TR/REC-xml/>" encoding="UTF-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns:wsdl="https://adwords.google.com/api/adwords/mcm/v201509"; 
xmlns:cm="https://adwords.google.com/api/adwords/cm/v201509";>
<soap:Header>
    <wsdl:RequestHeader>
        <developerToken>__ADWORDS_DEVELOPER_TOKEN__</developerToken>
        <userAgent>Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, 
like Gecko) Chrome/47.0.2526.106 Safari/537.36</userAgent>
        <clientCustomerId>.........</clientCustomerId>
    </wsdl:RequestHeader>
</soap:Header>
<soap:Body>
    <cm:get xmlns:cm="https://adwords.google.com/api/adwords/mcm/v201509";>
    <cm:serviceSelector>
        <cm:fields>CustomerId</cm:fields>
        <cm:fields>Name</cm:fields>
    </cm:serviceSelector>
</cm:get>
</soap:Body>
</soap:Envelope>



My issue is that I would like the response to not include a namespace in 
the Soap:Body. Currently, it specifies ns2 and the namespace for all fields 
in the response body. Is there a way to remove this?

<?xml version="1.0 <http://www.w3.org/TR/REC-xml/>"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";>
<soap:Header>
    <ns2:ResponseHeader 
xmlns:ns2="https://adwords.google.com/api/adwords/mcm/v201509"; 
xmlns="https://adwords.google.com/api/adwords/cm/v201509";>
    <requestId>000529265311ae480ac50be9070c5507</requestId>
    <serviceName>ManagedCustomerService</serviceName>
    <methodName>get</methodName>
    <operations>1</operations>
    <responseTime>201</responseTime>
</ns2:ResponseHeader>
</soap:Header>
<soap:Body>
    <ns2:getResponse xmlns="https://adwords.google.com/api/adwords/cm/v201509"; 
xmlns:ns2="https://adwords.google.com/api/adwords/mcm/v201509";>
    <ns2:rval>
        <totalNumEntries>2</totalNumEntries>
        <Page.Type>ManagedCustomerPage</Page.Type>
        <ns2:entries>
            <ns2:name>adhawk-testing1</ns2:name>
            <ns2:customerId>........</ns2:customerId>
        </ns2:entries>
        <ns2:entries>
            <ns2:name>adhawk-test</ns2:name>
            <ns2:customerId>........</ns2:customerId>
        </ns2:entries>
        <ns2:links>
            <ns2:managerCustomerId>.........</ns2:managerCustomerId>
            <ns2:clientCustomerId>........</ns2:clientCustomerId>
            <ns2:isHidden>false</ns2:isHidden>
        </ns2:links>
    </ns2:rval>
</ns2:getResponse>
</soap:Body>
</soap:Envelope>




-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/c10266ed-7a48-4da7-ae06-d5af2a78464f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to