UNPKG

dfp-lib

Version:

This project hosts the Node.JS client library for the SOAP-based DFP API at Google.

18 lines (17 loc) 730 B
"use strict"; const dfpSoapClient_1 = require("./dfpSoapClient"); const soapClientFactory_1 = require("../../common/lib/soapClientFactory"); class DfpSoapClientFactory extends soapClientFactory_1.SoapClientFactory { getAdsUser() { return this.user; } constructor(user, server) { super(user, server, 'publisher'); } generateSoapClient(serviceName, options, endpoint) { endpoint = this.getServiceLocation(endpoint); const config = this.getSoapClientConfig(options, endpoint); return new dfpSoapClient_1.DfpSoapClient(serviceName, endpoint, this.server, this.getAdsUser(), config['options'], config['headers']); } } exports.DfpSoapClientFactory = DfpSoapClientFactory;