(Came up during discussions at Hack Day NYC)

Below is the log entry for using OAuth with a brand new account (not an MCC 
nor tied to an MCC). When requests require a customerId parameter (as most 
do), we are unable to retrieve it. Our workaround has been to simply 
request the customerId directly from the user and store it separate of the 
token information. Ideally, ServicedAccount would return valid information 
for these types of request as well (simply returning the single account).


HTTP/1.1 200 OK
Content-Type: text/xml; charset=UTF-8
Content-Encoding: gzip
Date: Tue, 25 Oct 2011 17:17:49 GMT
Expires: Tue, 25 Oct 2011 17:17:49 GMT
Cache-Control: private, max-age=0
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
Content-Length: 324
Server: GSE

<?xml version="1.0"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";>
  <soap:Header>
    <ResponseHeader 
xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201101"; 
xmlns="https://adwords.google.com/api/adwords/mcm/v201101";>
      <ns2:requestId>0004b022b7bd7ca00aec9ce1000068de</ns2:requestId>
      <ns2:operations>0</ns2:operations>
      <ns2:responseTime>4321</ns2:responseTime>
      <ns2:units>0</ns2:units>
    </ResponseHeader>
  </soap:Header>
  <soap:Body>
    <getResponse xmlns="https://adwords.google.com/api/adwords/mcm/v201101"; 
xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201101";>
      <rval>
        <accounts>
          <customerId>-1</customerId>
          <login/>
          <companyName/>
          <canManageClients>false</canManageClients>
        </accounts>
      </rval>
    </getResponse>
  </soap:Body>
</soap:Envelope>

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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