Authentication error when creating new user

105 views
Skip to first unread message

viv...@federatedmedia.net

unread,
Jan 13, 2013, 8:16:44 PM1/13/13
to google-doubleclick...@googlegroups.com
Hi, I'm using PHP client v201211 with network 339262 and get the following error intermittently while trying to create a new user account with the UserService. Sometimes the accounts do get created without issue, but the error is rather frequent. 

The account I'm trying to create doesn't exist, and I am not (at least not explicitly) trying to authenticate under it, but to create it. The email seems to be correctly formatted as well. Not sure if the account exists on Google (is that a requirement before creating it in the DFP realm?)
If someone could offer some guidance, I would very much appreciate it.

Thanks
Victor

[Jan 13 2013 16:56:20.000000 - ERROR] POST /apis/ads/publisher/v201211/UserService HTTP/1.1
Connection: Keep-Alive
User-Agent: PHP-SOAP/5.4.6-1ubuntu1.1, gzip
Accept-Encoding: gzip, deflate
Content-Encoding: gzip
Content-Type: text/xml; charset=utf-8
SOAPAction: ""
Content-Length: 687

<?xml version="1.0" encoding="UTF-8"?>
  <SOAP-ENV:Header>
    <ns1:RequestHeader>
      <ns1:networkCode>339262</ns1:networkCode>
      <ns1:applicationName>FM Platform (DfpApi-PHP/2.15.0, php/5.4.6-1ubuntu1.1)</ns1:applicationName>
      <ns1:authentication xsi:type="ns1:ClientLogin">*****</ns1:authentication>
    </ns1:RequestHeader>
  </SOAP-ENV:Header>
  <SOAP-ENV:Body>
    <ns1:createUsers>
      <ns1:users>
        <ns1:name>Beth Ethridge</ns1:name>
        <ns1:email>beth...@federatedmedia.net</ns1:email>
        <ns1:roleId>-7</ns1:roleId>
        <ns1:preferredLocale>en_US</ns1:preferredLocale>
      </ns1:users>
    </ns1:createUsers>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>


Response:

HTTP/1.1 500 Internal Server Error
Content-Type: text/xml; charset=UTF-8
Content-Encoding: gzip
Date: Mon, 14 Jan 2013 00:56:20 GMT
Expires: Mon, 14 Jan 2013 00:56:20 GMT
Cache-Control: private, max-age=0
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
Content-Length: 477
Server: GSE

<?xml version="1.0"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Header>
      <requestId>dd66b7ac51032b5eeed6dde06ceaa583</requestId>
      <responseTime>504</responseTime>
    </ResponseHeader>
  </soap:Header>
  <soap:Body>
    <soap:Fault>
      <faultcode>soap:Server</faultcode>
      <faultstring>[AuthenticationError.INVALID_EMAIL @ email; trigger:'beth...@federatedmedia.net']</faultstring>
      <detail>
        <ApiExceptionFault xmlns="https://www.google.com/apis/ads/publisher/v201211">
          <message>[AuthenticationError.INVALID_EMAIL @ email; trigger:'beth...@federatedmedia.net']</message>
          <ApplicationException.Type>ApiException</ApplicationException.Type>
          <errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="AuthenticationError">
            <fieldPath>email</fieldPath>
            <trigger>beth...@federatedmedia.net</trigger>
            <errorString>AuthenticationError.INVALID_EMAIL</errorString>
            <ApiError.Type>AuthenticationError</ApiError.Type>
            <reason>INVALID_EMAIL</reason>
          </errors>
        </ApiExceptionFault>
      </detail>
    </soap:Fault>
  </soap:Body>
</soap:Envelope>

Vincent Tsao (DFP API Team)

unread,
Jan 14, 2013, 11:45:05 AM1/14/13
to google-doubleclick...@googlegroups.com
Hi Victor:

Users created through the DFP API must already have a Google account:

Thanks,
Vincent Tsao, DFP API Team
      <faultstring>[AuthenticationError.INVALID_EMAIL @ email; trigger:'...@federatedmedia.net']</faultstring>
      <detail>
        <ApiExceptionFault xmlns="https://www.google.com/apis/ads/publisher/v201211">
          <message>[AuthenticationError.INVALID_EMAIL @ email; trigger:'...@federatedmedia.net']</message>

viv...@federatedmedia.net

unread,
Jan 14, 2013, 11:26:41 PM1/14/13
to google-doubleclick...@googlegroups.com
That explains it. Thanks Vincent.
Reply all
Reply to author
Forward
0 new messages