Hi Parvathy,
Could you provide your clientId and clientSecret via *Reply privately to
author* so I could further investigate this issue?
Regards,
Dannison
AdWords API Team
On Monday, October 8, 2018 at 8:54:14 PM UTC+8, Parvathy H wrote:
>
> Hi,
> Thank you for the advice.
>
> I am calling a service of adwords in this way:
>
> let campaignCriterionService = user.getService(service, config.version);
>
> So the service returned in the user.getService method is as follows:
>
> {
>
> - "credentials" : -{
> - "developerToken" : xxxxxxxxxxxxxxxx,
> - "userAgent" : ABC,
> - "clientCustomerId" : 7799076323,
> - "client_id" : xxxxxxxxxxxxxxxxxxexample.googleapis.com,
> - "client_secret" : xxxxxxxxxxxxxxxxxx,
> - "refresh_token" : xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx,
> - "access_token" :
> xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx,
> - "token_expiry" : 2018-10-08T11:03:59.453Z
> },
> - "auth" : -{
> - "credentials" : -{
> - "developerToken" : xxxxxxxxxxxxxxxx ,
> - "userAgent" : ABC,
> - "clientCustomerId" : 7799076323,
> - "client_id" : xxxxxxxxxxxxxxxxxxexample.googleapis.com ,
> - "client_secret" : xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx,
> - "refresh_token" :
> xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx,
> - "access_token" :
>
> xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx,
> - "token_expiry" : 2018-10-08T11:03:59.453Z
> },
> - "oauth2Client" : -{
> - "transporter" : -{
> },
> - "clientId_" :
>
> xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.apps.googleusercontent.com
> ,
> - "clientSecret_" : xxxxxxxxxxxxxxxxxxxxxxxxxxxx,
> - "opts" : -{
> },
> - "credentials" : -{
> - "developerToken" : xxxxxxxxxxxxxxxxxxxxxx,
> - "userAgent" : IABC,
> - "clientCustomerId" : 7799076323,
> - "client_id" :
>
> xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.apps.googleusercontent.com
> ,
> - "client_secret" : xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx,
> - "refresh_token" : xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx,
> -
> "access_token"
> :xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx,
> - "token_expiry" : 2018-10-08T11:03:59.453Z
> }
> }
> },
> - "serviceDescriptor" : -{
> - "xmlns" : https://adwords.google.com/api/adwords/cm/v201802,
> - "wsdl" :
>
> https://adwords.google.com/api/adwords/cm/v201802/LocationCriterionService?wsdl
> ,
> - "methods" : -[
> - get,
> - query
> ]
> }
>
> }
>
> Here i provided *oauth2Client manually in the serice return.**But still
> i get the same *Error: soap:Client:
> [AuthenticationError.OAUTH_TOKEN_INVALID @ ; trigger:'<null>'] error.
>
> On Sat, Sep 29, 2018 at 11:07 AM Parvathy H <[email protected]>
> wrote:
>
>> Hi,
>>
>> I tried to access service by giving the clent id ,secret_id and refresh
>> token of Test manager account email address.
>> the production mcc email address is : [email protected]
>> The test manager account email address is :[email protected]
>>
>> The soap logs is as given below :
>>
>> { Error: soap:Client: [AuthenticationError.OAUTH_TOKEN_INVALID @ ;
>> trigger:'<null>']
>> at finish
>> (C:\Parvathy\devSupernova\supernova-channel-integrator-parvathy\channel-integrator\node_modules\soap\lib\wsdl.js:1518:21)
>> at WSDL.xmlToObject
>> (C:\Parvathy\devSupernova\supernova-channel-integrator-parvathy\channel-integrator\node_modules\soap\lib\wsdl.js:1501:10)
>> at parseSync
>> (C:\Parvathy\devSupernova\supernova-channel-integrator-parvathy\channel-integrator\node_modules\soap\lib\client.js:368:23)
>> at
>> C:\Parvathy\devSupernova\supernova-channel-integrator-parvathy\channel-integrator\node_modules\soap\lib\client.js:361:14
>> at Request._callback
>> (C:\Parvathy\devSupernova\supernova-channel-integrator-parvathy\channel-integrator\node_modules\soap\lib\http.js:117:5)
>> at Request.self.callback
>> (C:\Parvathy\devSupernova\supernova-channel-integrator-parvathy\channel-integrator\node_modules\request\request.js:186:22)
>> at emitTwo (events.js:126:13)
>> at Request.emit (events.js:214:7)
>> at Request.<anonymous>
>> (C:\Parvathy\devSupernova\supernova-channel-integrator-parvathy\channel-integrator\node_modules\request\request.js:1163:10)
>> at emitOne (events.js:116:13)
>> at Request.emit (events.js:211:7)
>> at IncomingMessage.<anonymous>
>> (C:\Parvathy\devSupernova\supernova-channel-integrator-parvathy\channel-integrator\node_modules\request\request.js:1085:12)
>> at Object.onceWrapper (events.js:313:30)
>> at emitNone (events.js:111:20)
>> at IncomingMessage.emit (events.js:208:7)
>> at endReadableNT (_stream_readable.js:1064:12)
>> at _combinedTickCallback (internal/process/next_tick.js:138:11)
>> at process._tickDomainCallback (internal/process/next_tick.js:218:9)
>> root: { Envelope: { Header: [Object], Body: [Object] } },
>> response:
>> IncomingMessage {
>> _readableState:
>> ReadableState {
>> objectMode: false,
>> highWaterMark: 16384,
>> buffer: [Object],
>> length: 0,
>> pipes: null,
>> pipesCount: 0,
>> flowing: true,
>> ended: true,
>> endEmitted: true,
>> reading: false,
>> sync: false,
>> needReadable: false,
>> emittedReadable: false,
>> readableListening: false,
>> resumeScheduled: false,
>> destroyed: false,
>> defaultEncoding: 'utf8',
>> awaitDrain: 0,
>> readingMore: false,
>> decoder: null,
>> encoding: null },
>> readable: false,
>> domain: null,
>> _events:
>> { end: [Array],
>> close: [Array],
>> data: [Function],
>> error: [Function] },
>> _eventsCount: 4,
>> _maxListeners: undefined,
>> socket:
>> TLSSocket {
>> _tlsOptions: [Object],
>> _secureEstablished: true,
>> _securePending: false,
>> _newSessionPending: false,
>> _controlReleased: true,
>> _SNICallback: null,
>> servername: null,
>> npnProtocol: false,
>> alpnProtocol: false,
>> authorized: true,
>> authorizationError: null,
>> encrypted: true,
>> _events: [Object],
>> _eventsCount: 10,
>> connecting: false,
>> _hadError: false,
>> _handle: null,
>> _parent: null,
>> _host: 'adwords.google.com',
>> _readableState: [Object],
>> readable: false,
>> domain: null,
>> _maxListeners: undefined,
>> _writableState: [Object],
>> writable: false,
>> allowHalfOpen: false,
>> _bytesDispatched: 1740,
>> _sockname: null,
>> _pendingData: null,
>> _pendingEncoding: '',
>> server: undefined,
>> _server: null,
>> ssl: null,
>> _requestCert: true,
>> _rejectUnauthorized: true,
>> parser: null,
>> _httpMessage: [Object],
>> read: [Function],
>> _consuming: true,
>> write: [Function: writeAfterFIN],
>> _idleNext: null,
>> _idlePrev: null,
>> _idleTimeout: -1,
>> [Symbol(asyncId)]: 538,
>> [Symbol(bytesRead)]: 1559 },
>> connection:
>> TLSSocket {
>> _tlsOptions: [Object],
>> _secureEstablished: true,
>> _securePending: false,
>> _newSessionPending: false,
>> _controlReleased: true,
>> _SNICallback: null,
>> servername: null,
>> npnProtocol: false,
>> alpnProtocol: false,
>> authorized: true,
>> authorizationError: null,
>> encrypted: true,
>> _events: [Object],
>> _eventsCount: 10,
>> connecting: false,
>> _hadError: false,
>> _handle: null,
>> _parent: null,
>> _host: 'adwords.google.com',
>> _readableState: [Object],
>> readable: false,
>> domain: null,
>> _maxListeners: undefined,
>> _writableState: [Object],
>> writable: false,
>> allowHalfOpen: false,
>> _bytesDispatched: 1740,
>> _sockname: null,
>> _pendingData: null,
>> _pendingEncoding: '',
>> server: undefined,
>> _server: null,
>> ssl: null,
>> _requestCert: true,
>> _rejectUnauthorized: true,
>> parser: null,
>> _httpMessage: [Object],
>> read: [Function],
>> _consuming: true,
>> write: [Function: writeAfterFIN],
>> _idleNext: null,
>> _idlePrev: null,
>> _idleTimeout: -1,
>> [Symbol(asyncId)]: 538,
>> [Symbol(bytesRead)]: 1559 },
>> httpVersionMajor: 1,
>> httpVersionMinor: 1,
>> httpVersion: '1.1',
>> complete: true,
>> headers:
>> { 'content-type': 'text/xml; charset=UTF-8',
>> date: 'Fri, 28 Sep 2018 04:15:45 GMT',
>> expires: 'Fri, 28 Sep 2018 04:15:45 GMT',
>> 'cache-control': 'private, max-age=0',
>> 'x-content-type-options': 'nosniff',
>> 'x-frame-options': 'SAMEORIGIN',
>> 'x-xss-protection': '1; mode=block',
>> server: 'GSE',
>> 'alt-svc': 'quic=":443"; ma=2592000; v="44,43,39,35"',
>> 'accept-ranges': 'none',
>> vary: 'Accept-Encoding',
>> connection: 'close' },
>> rawHeaders:
>> [ 'Content-Type',
>> 'text/xml; charset=UTF-8',
>> 'Date',
>> 'Fri, 28 Sep 2018 04:15:45 GMT',
>> 'Expires',
>> 'Fri, 28 Sep 2018 04:15:45 GMT',
>> 'Cache-Control',
>> 'private, max-age=0',
>> 'X-Content-Type-Options',
>> 'nosniff',
>> 'X-Frame-Options',
>> 'SAMEORIGIN',
>> 'X-XSS-Protection',
>> '1; mode=block',
>> 'Server',
>> 'GSE',
>> 'Alt-Svc',
>> 'quic=":443"; ma=2592000; v="44,43,39,35"',
>> 'Accept-Ranges',
>> 'none',
>> 'Vary',
>> 'Accept-Encoding',
>> 'Connection',
>> 'close' ],
>> trailers: {},
>> rawTrailers: [],
>> upgrade: false,
>> url: '',
>> method: null,
>> statusCode: 500,
>> statusMessage: 'Internal Server Error',
>> client:
>> TLSSocket {
>> _tlsOptions: [Object],
>> _secureEstablished: true,
>> _securePending: false,
>> _newSessionPending: false,
>> _controlReleased: true,
>> _SNICallback: null,
>> servername: null,
>> npnProtocol: false,
>> alpnProtocol: false,
>> authorized: true,
>> authorizationError: null,
>> encrypted: true,
>> _events: [Object],
>> _eventsCount: 10,
>> connecting: false,
>> _hadError: false,
>> _handle: null,
>> _parent: null,
>> _host: 'adwords.google.com',
>> _readableState: [Object],
>> readable: false,
>> domain: null,
>> _maxListeners: undefined,
>> _writableState: [Object],
>> writable: false,
>> allowHalfOpen: false,
>> _bytesDispatched: 1740,
>> _sockname: null,
>> _pendingData: null,
>> _pendingEncoding: '',
>> server: undefined,
>> _server: null,
>> ssl: null,
>> _requestCert: true,
>> _rejectUnauthorized: true,
>> parser: null,
>> _httpMessage: [Object],
>> read: [Function],
>> _consuming: true,
>> write: [Function: writeAfterFIN],
>> _idleNext: null,
>> _idlePrev: null,
>> _idleTimeout: -1,
>> [Symbol(asyncId)]: 538,
>> [Symbol(bytesRead)]: 1559 },
>> _consuming: true,
>> _dumped: false,
>> req:
>> ClientRequest {
>> domain: null,
>> _events: [Object],
>> _eventsCount: 5,
>> _maxListeners: undefined,
>> output: [],
>> outputEncodings: [],
>> outputCallbacks: [],
>> outputSize: 0,
>> writable: true,
>> _last: true,
>> upgrading: false,
>> chunkedEncoding: false,
>> shouldKeepAlive: false,
>> useChunkedEncodingByDefault: true,
>> sendDate: false,
>> _removedConnection: false,
>> _removedContLen: false,
>> _removedTE: false,
>> _contentLength: null,
>> _hasBody: true,
>> _trailer: '',
>> finished: true,
>> _headerSent: true,
>> socket: [Object],
>> connection: [Object],
>> _header: 'POST /api/adwords/cm/v201802/LocationCriterionService
>> HTTP/1.1\r\nUser-Agent: node-soap/0.23.0\r\nAccept:
>> text/html,application/xhtml+xml,application/xml,text/xml;q=0.9,*/*;q=0.8\r\nAccept-Encoding:
>>
>> none\r\nAccept-Charset: utf-8\r\nConnection: close\r\nHost:
>> adwords.google.com\r\nContent-Length: 1239\r\nContent-Type: text/xml;
>> charset=utf-8\r\nSOAPAction: ""\r\nAuthorization: Bearer
>> ya29.GlwmBmJziOmZoCQrlSNM9ZA7opdHw-M_sbdH9xRlqoOsPc_rHpDuIfKwrhDADKuUFDYHJRWI7aY4vAvypjRUBJLxs6Nj9OaDnfysNpLBZg7RYeYssuisOBXQwQCHmQ\r\n\r\n',
>> _onPendingData: [Function: noopPendingOutput],
>> agent: [Object],
>> socketPath: undefined,
>> timeout: undefined,
>> method: 'POST',
>> path: '/api/adwords/cm/v201802/LocationCriterionService',
>> _ended: true,
>> res: [Circular],
>> aborted: undefined,
>> timeoutCb: null,
>> upgradeOrConnect: false,
>> parser: null,
>> maxHeadersCount: null,
>> [Symbol(outHeadersKey)]: [Object] },
>> request:
>> Request {
>> domain: null,
>> _events: [Object],
>> _eventsCount: 5,
>> _maxListeners: undefined,
>> uri: [Object],
>> method: 'POST',
>> headers: [Object],
>> followAllRedirects: true,
>> body: '<?xml version="1.0" encoding="utf-8"?><soap:Envelope
>> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="
>> http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="
>> https://adwords.google.com/api/adwords/cm/v201802" xmlns:jaxb="
>> http://java.sun.com/xml/ns/jaxb"><soap:Header><ns1:RequestHeader
>> xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201802" xmlns="
>> https://adwords.google.com/api/adwords/cm/v201802"><ns1:developerToken>BtksC10QPV24R-Ox0i_pcw</ns1:developerToken><ns1:userAgent>Star
>>
>> Performance
>> Marketing</ns1:userAgent><ns1:validateOnly>false</ns1:validateOnly><ns1:clientCustomerId>2447742084</ns1:clientCustomerId></ns1:RequestHeader></soap:Header><soap:Body><get
>>
>> xmlns="https://adwords.google.com/api/adwords/cm/v201802"><selector><fields>Id</fields><fields>LocationName</fields><fields>CanonicalName</fields><fields>DisplayType</fields><fields>ParentLocations</fields><fields>Reach</fields><fields>TargetingStatus</fields><predicates><field>LocationName</field><operator>IN</operator><values>White
>>
>> Plains</values></predicates><predicates><field>Locale</field><operator>EQUALS</operator><values>en</values></predicates><paging><numberResults>5</numberResults></paging></selector></get></soap:Body></soap:Envelope>',
>> callback: [Function],
>> readable: true,
>> writable: true,
>> explicitMethod: true,
>> _qs: [Object],
>> _auth: [Object],
>> _oauth: [Object],
>> _multipart: [Object],
>> _redirect: [Object],
>> _tunnel: [Object],
>> setHeader: [Function],
>> hasHeader: [Function],
>> getHeader: [Function],
>> removeHeader: [Function],
>> localAddress: undefined,
>> pool: {},
>> dests: [],
>> __isRequestRequest: true,
>> _callback: [Function],
>> proxy: null,
>> tunnel: true,
>> setHost: false,
>> originalCookieHeader: undefined,
>> _disableCookies: true,
>> _jar: undefined,
>> port: 443,
>> host: 'adwords.google.com',
>> path: '/api/adwords/cm/v201802/LocationCriterionService',
>> httpModule: [Object],
>> agentClass: [Object],
>> agent: [Object],
>> _started: true,
>> href: '
>> https://adwords.google.com/api/adwords/cm/v201802/LocationCriterionService
>> ',
>> req: [Object],
>> ntick: true,
>> response: [Circular],
>> originalHost: 'adwords.google.com',
>> originalHostHeaderName: 'Host',
>> responseContent: [Circular],
>> _destdata: true,
>> _ended: true,
>> _callbackCalled: true },
>> toJSON: [Function: responseToJSON],
>> caseless: Caseless { dict: [Object] },
>> read: [Function],
>> body: '<soap:Envelope xmlns:soap="
>> http://schemas.xmlsoap.org/soap/envelope/"><soap:Header><ResponseHeader
>> xmlns="https://adwords.google.com/api/adwords/cm/v201802"><requestId>000576e6b59f1a600a625745d1094645</requestId><serviceName>LocationCriterionService</serviceName><methodName>get</methodName><operations>1</operations><responseTime>81</responseTime></ResponseHeader></soap:Header><soap:Body><soap:Fault><faultcode>soap:Client</faultcode><faultstring>[AuthenticationError.OAUTH_TOKEN_INVALID
>>
>> @ ; trigger:\'<null>\']</faultstring><detail><ApiExceptionFault
>> xmlns="https://adwords.google.com/api/adwords/cm/v201802"><message>[AuthenticationError.OAUTH_TOKEN_INVALID
>>
>> @ ;
>> trigger:\'<null>\']</message><ApplicationException.Type>ApiException</ApplicationException.Type><errors
>>
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>> xsi:type="AuthenticationError"><fieldPath></fieldPath><trigger><null></trigger><errorString>AuthenticationError.OAUTH_TOKEN_INVALID</errorString><ApiError.Type>AuthenticationError</ApiError.Type><reason>OAUTH_TOKEN_INVALID</reason></errors></ApiExceptionFault></detail></soap:Fault></soap:Body></soap:Envelope>'
>>
>> },
>> body: '<soap:Envelope xmlns:soap="
>> http://schemas.xmlsoap.org/soap/envelope/"><soap:Header><ResponseHeader
>> xmlns="https://adwords.google.com/api/adwords/cm/v201802"><requestId>000576e6b59f1a600a625745d1094645</requestId><serviceName>LocationCriterionService</serviceName><methodName>get</methodName><operations>1</operations><responseTime>81</responseTime></ResponseHeader></soap:Header><soap:Body><soap:Fault><faultcode>soap:Client</faultcode><faultstring>[AuthenticationError.OAUTH_TOKEN_INVALID
>>
>> @ ; trigger:\'<null>\']</faultstring><detail><ApiExceptionFault
>> xmlns="https://adwords.google.com/api/adwords/cm/v201802"><message>[AuthenticationError.OAUTH_TOKEN_INVALID
>>
>> @ ;
>> trigger:\'<null>\']</message><ApplicationException.Type>ApiException</ApplicationException.Type><errors
>>
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>> xsi:type="AuthenticationError"><fieldPath></fieldPath><trigger><null></trigger><errorString>AuthenticationError.OAUTH_TOKEN_INVALID</errorString><ApiError.Type>AuthenticationError</ApiError.Type><reason>OAUTH_TOKEN_INVALID</reason></errors></ApiExceptionFault></detail></soap:Fault></soap:Body></soap:Envelope>'
>>
>> }
>>
>>
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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
---
You received this message because you are subscribed to the Google Groups
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
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/7325ec3b-f7e2-40cc-8519-08e80e3204b5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.