Hi Parvathy, I have to delete your previous reply as it contains sensitive information. Please see below your reply with the masked sensitive information.
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 : anil.ku...@iinerds.com The test manager account email address is :parvathyhku...@gmail.com The soap logs is as given below : { Error: soap:Client: [AuthenticationError.OAUTH_TOKEN_INVALID @ ; trigger:'<null>'] at finish (C:\Parvathy\devSupernova\supernova-channel-integrator-parva thy\channel-integrator\node_modules\soap\lib\wsdl.js:1518:21) at WSDL.xmlToObject (C:\Parvathy\devSupernova\supe rnova-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-parvat hy\channel-integrator\node_modules\soap\lib\client.js:361:14 at Request._callback (C:\Parvathy\devSupernova\supe rnova-channel-integrator-parvathy\channel-integrator\node_ modules\soap\lib\http.js:117:5) at Request.self.callback (C:\Parvathy\devSupernova\supe rnova-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\supe rnova-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\supe rnova-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 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\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/ <http://www.google.com/url?q=http%3A%2F%2Fschemas.xmlsoap.org%2Fsoap%2Fenvelope%2F&sa=D&sntz=1&usg=AFQjCNGNF5DdaQ9wHKRy5fjl5UBgSE9-HA>" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance <http://www.google.com/url?q=http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema-instance&sa=D&sntz=1&usg=AFQjCNFERp6A_kcvqihMCKJ7EHX8O14vIA>" xmlns:tns="https://adwords.google.com/api/adwords/cm/v201802" xmlns:jaxb=" http://java.sun.com/xml/ns/jaxb <http://www.google.com/url?q=http%3A%2F%2Fjava.sun.com%2Fxml%2Fns%2Fjaxb&sa=D&sntz=1&usg=AFQjCNEFp0wruFepRmWmd_67jCk_45yPJw> "><soap:Header><ns1:RequestHeader xmlns:ns1="https://adwords.goo gle.com/api/adwords/cm/v201802" xmlns="https://adwords.google. com/api/adwords/cm/v201802"><ns1:developerToken>XXXXXXXXXXXXXXXXXXX</ns1: developerToken><ns1:userAgent>Star Performance Marketing</ns1:userAgent><ns1:validateOnly>false</ns1:validateOnly><ns1: clientCustomerId>XXXXXXXXXX</ns1:clientCustomerId></ns1:Request Header></soap:Header><soap:Body><get xmlns="https://adwords.google. com/api/adwords/cm/v201802"><selector><fields>Id</fields><fi elds>LocationName</fields><fields>CanonicalName</fields><fie lds>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/LocationC riterionService', 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.xml soap.org/soap/envelope/ <http://www.google.com/url?q=http%3A%2F%2Fschemas.xmlsoap.org%2Fsoap%2Fenvelope%2F&sa=D&sntz=1&usg=AFQjCNGNF5DdaQ9wHKRy5fjl5UBgSE9-HA> "><soap:Header><ResponseHeader xmlns="https://adwords.google. com/api/adwords/cm/v201802"><requestId>000576e6b59f1a600a625745d10946 45</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/2 001/XMLSchema-instance <http://www.google.com/url?q=http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema-instance&sa=D&sntz=1&usg=AFQjCNFERp6A_kcvqihMCKJ7EHX8O14vIA>" xsi:type="AuthenticationError"><fieldPath></fieldPath><trigg er><null></trigger><errorString>AuthenticationError.OAUTH_ TOKEN_INVALID</errorString><ApiError.Type>AuthenticationError</ApiError.Typ e><reason>OAUTH_TOKEN_INVALID</reason></errors></ApiExceptio nFault></detail></soap:Fault></soap:Body></soap:Envelope>' }, body: '<soap:Envelope xmlns:soap="http://schemas.xml soap.org/soap/envelope/ <http://www.google.com/url?q=http%3A%2F%2Fschemas.xmlsoap.org%2Fsoap%2Fenvelope%2F&sa=D&sntz=1&usg=AFQjCNGNF5DdaQ9wHKRy5fjl5UBgSE9-HA> "><soap:Header><ResponseHeader xmlns="https://adwords.google. com/api/adwords/cm/v201802"><requestId>000576e6b59f1a600a625745d10946 45</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/2 001/XMLSchema-instance <http://www.google.com/url?q=http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema-instance&sa=D&sntz=1&usg=AFQjCNFERp6A_kcvqihMCKJ7EHX8O14vIA>" xsi:type="AuthenticationError"><fieldPath></fieldPath><trigg er><null></trigger><errorString>AuthenticationError.OAUTH_ TOKEN_INVALID</errorString><ApiError.Type>AuthenticationError</ApiError.Typ e><reason>OAUTH_TOKEN_INVALID</reason></errors></ApiExceptio nFault></detail></soap:Fault></soap:Body></soap:Envelope>' } On Friday, September 28, 2018 at 5:01:49 PM UTC+8, Parvathy H wrote: > > > > On Friday, September 28, 2018 at 9:51:25 AM UTC+5:30, parva...@iinerds.com > wrote: >> >> Hi, >> >> I tried to create campaign using a test account: >> The credential details are given as below: >> >> 1.The client id, secret id and refresh token used was of *Production MCC >> account*. >> 2.The developer token used is of the same *Production MCC account* mentioned >> above which is in *pending approval*. >> 3.The *client_customer_id *to which the campaign needs to be pushed is >> the "client customer id" of the *test account in test manager account.* >> >> >> But after doing all this still when accessing the >> *LocationCriterionService* i am getting the following error: >> >> { 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) >> >> >> Thank you >> >> >> >> >> -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com 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 adwords-api+unsubscr...@googlegroups.com. 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/fe878c4a-ed45-42b0-a2b8-808c17a5b975%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.