Skip to content

Commit 7b6082c

Browse files
Expose node-soap client and a method to access the last request made with a service to allow debugging (required when needing assistance from the Google DFP API forums)
1 parent 25eb6dc commit 7b6082c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/DfpUser.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,10 @@ DfpUser.prototype.getService = function (service, callback, version) {
8282

8383
client.addSoapHeader(dfpUser.getSOAPHeader(), '', '', '');
8484

85-
var serviceInstance = {},
85+
var serviceInstance = {
86+
soapClient: client,
87+
soapLastRequest: () => client.lastRequest
88+
},
8689
interfacePort = client[service][service + 'InterfacePort'],
8790
invokeMethod = function (method) {
8891
return function () {

0 commit comments

Comments
 (0)