AuthenticationError.NOT_ADS_USER

3,472 views
Skip to first unread message

calford

unread,
Jun 8, 2011, 6:13:17 AM6/8/11
to adwor...@googlegroups.com
Hi,

I have been using adwords API for some time now, once a month usually, last time i used it, it was ok (around 2 weeks ago).

I tried today and i am getting this error:

[previous:Exception:private] =>
[faultstring] => AuthenticationError.NOT_ADS_USER @ ; trigger:'1234567890' Service[TargetingIdeaService.get]
[faultcode] => soap:Server
[detail] => stdClass Object
    (
        [ApiExceptionFault] => stdClass Object
            (
                [message] => AuthenticationError.NOT_ADS_USER @ ; trigger:'1234567890' Service[TargetingIdeaService.get]
                [ApplicationException.Type] => ApiException
                [errors] => SoapVar Object
                    (
                        [enc_type] => 0
                        [enc_value] => AuthenticationError Object
                            (
                                [reason] => NOT_ADS_USER
                                [fieldPath] =>
                                [trigger] => 1234567890
                                [ApiErrorType] => AuthenticationError
                                [_parameterMap:ApiError:private] => Array
                                    (
                                        [ApiError.Type] => ApiErrorType
                                    )

                            )

                        [enc_stype] => AuthenticationError
                        [enc_ns] => https://adwords.google.com/api/adwords/cm/v200909
                    )

            )

    )

i read somewhere it had to do with the token, but my calls haven't changed. Using v200909

thanks

Anash P. Oommen

unread,
Jun 9, 2011, 2:55:30 AM6/9/11
to adwor...@googlegroups.com
Hi,

Are you making this call to the adwords api production environment or sandbox? Do you have a request id for the failing call that I can lookup in the logs?

Cheers,
Anash P. Oommen,
AdWords API Advisor.

kath

unread,
Jun 9, 2011, 6:51:01 AM6/9/11
to adwor...@googlegroups.com
I am having this same problem using the sandbox with V201101

This is my request info:
host=adwords-sandbox.google.com
method=get
responseTime=312
operations=0
units=0
requestId=b208e31839be6d2206d5cd4316abf13e
isFault=true
faultMessage="AuthenticationError.NOT_ADS_USER @ ; trigger:'294302386411' Service[TrafficEstimatorService.get]"

Any ideas?

Anash P. Oommen

unread,
Jun 14, 2011, 7:12:26 AM6/14/11
to adwor...@googlegroups.com
Hi Kath,

I've reported this issue to the TrafficEstimator team. Could you meanwhile try using a different gmail login to make your API calls and see if that solves the issue for you?

kath

unread,
Jun 15, 2011, 9:40:56 PM6/15/11
to adwor...@googlegroups.com
No I have the same problem with a new gmail login

This time the request info is:
host=adwords-sandbox.google.com
method=get responseTime=74
operations=0
units=0
requestId=0535b7d1e1f5032da38779b7e6ebcaa7
isFault=true
faultMessage="AuthenticationError.NOT_ADS_USER @ ; trigger:'507762239034' Service[TrafficEstimatorService.get]"

In the meantime I have updated the local ruby adwords client (to gem version 1.3.6), but that has made no difference to the error.

Danial Klimkin

unread,
Jun 20, 2011, 5:45:53 AM6/20/11
to adwor...@googlegroups.com
Hello kath,


Can you give official Ruby AdWords library a try? It can produce more helpful details in debug mode.
It is available here:


or via: rake install google-adwords-api

Please enable debug mode (see README) and send us the output (minus auth information).

Also, I would recommend using the latest API version (currently 201101).


-Danial, AdWords API Team.

kath

unread,
Jun 20, 2011, 6:47:19 AM6/20/11
to AdWords API Forum
Hi Danial,
I am already using v201101 and the latest official ruby client.
Will send debug output tomorrow.
Cheers

kath

unread,
Jun 22, 2011, 8:44:24 PM6/22/11
to adwor...@googlegroups.com
Debug output: request_info

# Logfile created on Thu Jun 23 09:55:45 +0930 2011 by /
host=adwords-sandbox.google.com method=get responseTime=445 operations=0 units=0 requestId=261d7d235e1ec348fa7eec610bc79ed2 isFault=true faultMessage="AuthenticationError.NOT_ADS_USER @ ; trigger:'507762239034' Service[TrafficEstimatorService.get]"

Debug output: soap_xml

# Logfile created on Thu Jun 23 09:55:45 +0930 2011 by /
Wire dump:


= Request


! CONNECT TO adwords-sandbox.google.com:443

! CONNECTION ESTABLISHED

POST /api/adwords/o/v201101/TrafficEstimatorService HTTP/1.1

SOAPAction: ""

Content-Type: text/xml; charset=utf-8

User-Agent: SOAP4R/1.5.8 (/, ruby 1.8.6 (2008-08-11) [i386-mswin32])

Date: Thu, 23 Jun 2011 00:25:46 GMT

Content-Length: 2713

Host: adwords-sandbox.google.com



<?xml version="1.0" encoding="utf-8" ?>
<env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <env:Header>
        <n1:RequestHeader xmlns:n1="https://adwords.google.com/api/adwords/o/v201101"
            xmlns:n2="https://adwords.google.com/api/adwords/cm/v201101"
            env:mustUnderstand="0">
          <n2:clientEmail>client_1+email_address</n2:clientEmail>
          <n2:userAgent>Ruby-AwApi-0.1.2|company_name</n2:userAgent>
          <n2:developerToken>email_address++USD</n2:developerToken>
          <n2:authToken>foo</n2:authToken>
        </n1:RequestHeader>
  </env:Header>
  <env:Body>
    <n3:get xmlns:n3="https://adwords.google.com/api/adwords/o/v201101">
      <n3:selector>
        <n3:campaignEstimateRequests xsi:type="n3:CampaignEstimateRequest">
          <n3:adGroupEstimateRequests xsi:type="n3:AdGroupEstimateRequest">
            <n3:keywordEstimateRequests xsi:type="n3:KeywordEstimateRequest">
              <n3:keyword xmlns:n4="https://adwords.google.com/api/adwords/cm/v201101"
                  xsi:type="n4:Keyword">
                <n4:text>1080p    lcd tv</n4:text>
                <n4:matchType>EXACT</n4:matchType>
              </n3:keyword>
            </n3:keywordEstimateRequests>
            <n3:keywordEstimateRequests xsi:type="n3:KeywordEstimateRequest">
              <n3:keyword xmlns:n5="https://adwords.google.com/api/adwords/cm/v201101"
                  xsi:type="n5:Keyword">
                <n5:text>1080p lcd tv</n5:text>
                <n5:matchType>EXACT</n5:matchType>
              </n3:keyword>
            </n3:keywordEstimateRequests>
            <n3:maxCpc xsi:type="n6:Money"
                xmlns:n6="https://adwords.google.com/api/adwords/cm/v201101">
              <n6:microAmount>1000000000000</n6:microAmount>
            </n3:maxCpc>
          </n3:adGroupEstimateRequests>
          <n3:targets xsi:type="n7:CountryTarget"
              xmlns:n7="https://adwords.google.com/api/adwords/cm/v201101">
            <n7:countryCode>US</n7:countryCode>
          </n3:targets>
          <n3:targets xsi:type="n8:LanguageTarget"
              xmlns:n8="https://adwords.google.com/api/adwords/cm/v201101">
            <n8:languageCode>en</n8:languageCode>
          </n3:targets>
        </n3:campaignEstimateRequests>
      </n3:selector>
    </n3:get>
  </env:Body>
</env:Envelope>


= Response


HTTP/1.1 500 Internal Server Error


Content-Type: text/xml; charset=UTF-8


Date: Thu, 23 Jun 2011 00:25:49 GMT


Expires: Thu, 23 Jun 2011 00:25:49 GMT


Cache-Control: private, max-age=0


X-Content-Type-Options: nosniff


X-Frame-Options: SAMEORIGIN


X-XSS-Protection: 1; mode=block


Server: GSE


Transfer-Encoding: chunked





546


<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/o/v201101"><ns2:requestId>261d7d235e1ec348fa7eec610bc79ed2</ns2:requestId><ns2:operations>0</ns2:operations><ns2:responseTime>445</ns2:responseTime><ns2:units>0</ns2:units></ResponseHeader></soap:Header><soap:Body><soap:Fault><faultcode>soap:Server</faultcode><faultstring>AuthenticationError.NOT_ADS_USER @ ; trigger:'507762239034' Service[TrafficEstimatorService.get]</faultstring><detail><ApiExceptionFault xmlns="https://adwords.google.com/api/adwords/o/v201101" xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201101"><ns2:message>AuthenticationError.NOT_ADS_USER @ ; trigger:'507762239034' Service[TrafficEstimatorService.get]</ns2:message><ns2:ApplicationException.Type>ApiException</ns2:ApplicationException.Type><ns2:errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns2:AuthenticationError"><ns2:fieldPath></ns2:fieldPath><ns2:trigger>507762239034</ns2:trigger><ns2:errorString>AuthenticationError.NOT_ADS_USER</ns2:errorString><ns2:ApiError.Type>AuthenticationError</ns2:ApiError.Type><ns2:reason>NOT_ADS_USER</ns2:reason></ns2:errors></ApiExceptionFault></detail></soap:Fault></soap:Body></soap:Envelope>


0





! CONNECTION CLOSED





Danial Klimkin

unread,
Jun 23, 2011, 1:49:01 PM6/23/11
to adwor...@googlegroups.com
Hello kath,


Did you initialize the account as the document describes?

The very first request to a new account in Sandbox needs to be a get request to the CampaignService. This will populate account with some generated data. If another request was the first one, account in a Sandbox can be in inconsistent state and produce internal errors.


-Danial, AdWords API Team.
Reply all
Reply to author
Forward
0 new messages