Thanks. The request now goes through, but when using it on my non-MCC
account to get the ID for the email, I get this error:

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";>
    <soap:Header>
        <ResponseHeader xmlns:ns2="https://adwords.google.com/api/
adwords/cm/v201109" xmlns="https://adwords.google.com/api/adwords/info/
v201109">
            <ns2:requestId>0004b28a5e01f8480a96d10700004af2</
ns2:requestId>
            <ns2:serviceName>InfoService</ns2:serviceName>
            <ns2:methodName>get</ns2:methodName>
            <ns2:operations>1</ns2:operations>
            <ns2:responseTime>702</ns2:responseTime>
            <ns2:units>1</ns2:units>
        </ResponseHeader>
    </soap:Header>
    <soap:Body>
        <soap:Fault>
            <faultcode>soap:Server</faultcode>
            <faultstring>[ApiUsageError.INVALID_CLIENT_EMAIL @
selector; trigger:'xxxxx']</faultstring>
            <detail>
                <ApiExceptionFault xmlns="https://adwords.google.com/
api/adwords/info/v201109" xmlns:ns2="https://adwords.google.com/api/
adwords/cm/v201109">
                    <ns2:message>[ApiUsageError.INVALID_CLIENT_EMAIL @
selector; trigger:'xxxxx']</ns2:message>
                    <ns2:ApplicationException.Type>ApiException</
ns2:ApplicationException.Type>
                    <ns2:errors xmlns:xsi="http://www.w3.org/2001/
XMLSchema-instance" xsi:type="ApiUsageError">
                        <ns2:fieldPath>selector</ns2:fieldPath>
                        <ns2:trigger>xxxxx</ns2:trigger>
 
<ns2:errorString>ApiUsageError.INVALID_CLIENT_EMAIL</ns2:errorString>
                        <ns2:ApiError.Type>ApiUsageError</
ns2:ApiError.Type>
                        <reason>INVALID_CLIENT_EMAIL</reason>
                    </ns2:errors>
                </ApiExceptionFault>
            </detail>
        </soap:Fault>
    </soap:Body>
</soap:Envelope>

The authentication token is also owned by the same non-MCC account.

I found this: 
http://groups.google.com/group/adwords-api/browse_thread/thread/f1c3a451602aa328
- is the information there still valid with v201109? If so, then it
seems that it's not possible to retrieve the client ID when the
authenticated account that is not under the MCC which owns the
developer token. This would mean a major problem with the reporting
service when the client email is not accepted as a header anymore, as
it would then not be possible to fetch reports for accounts not linked
to an MCC.




On Nov 23, 1:25 pm, Danial Klimkin <[email protected]>
wrote:
> Hello MT,
>
> I just checked the 'get_client_customer_id.rb' example and it works
> perfectly for me. The XML code you are provided does not look like
> library-generated code though. Are you using our client libraries or
> generate the XML yourself?
>
> The problem with your code is that the XML items need to me in a specific
> order. In any case, here is the library-generated code that succeeds:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> xmlns:wsdl="https://adwords.google.com/api/adwords/info/v201109";
> xmlns:env="http://schemas.xmlsoap.org/soap/envelope/";>
>   <env:Header>
>     <wsdl:RequestHeader
> xmlns="https://adwords.google.com/api/adwords/cm/v201109";>
>       <userAgent>AwApi-Ruby-0.4.3|./get_client_customer_id.rb</userAgent>
>       <developerToken>****</developerToken>
>       <authToken>****</authToken>
>     </wsdl:RequestHeader>
>   </env:Header>
>   <env:Body>
>     <get xmlns="https://adwords.google.com/api/adwords/info/v201109";>
>       <selector>
>         <wsdl:dateRange
> xmlns="https://adwords.google.com/api/adwords/cm/v201109";>
>           <min>20111123</min>
>           <max>20111123</max>
>         </wsdl:dateRange>
>         <clientEmails>****</clientEmails>
>         <includeSubAccounts>true</includeSubAccounts>
>         <apiUsageType>UNIT_COUNT_FOR_CLIENTS</apiUsageType>
>       </selector>
>     </get>
>   </env:Body>
> </env:Envelope>
>
> Please re-consider using the client library though.
>
> -Danial, AdWords API Team.

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.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 [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

Reply via email to