dfp-lib
Version:
This project hosts the Node.JS client library for the SOAP-based DFP API at Google.
13 lines (12 loc) • 550 B
JavaScript
;
const settings_1 = require("../../settings");
const adsService_1 = require("../../common/lib/adsService");
const dfpSoapClientFactory_1 = require("./dfpSoapClientFactory");
class DfpService extends adsService_1.AdsService {
constructor(serviceName, user, endpoint, options = {}) {
super();
user.validateUser();
this.client = new dfpSoapClientFactory_1.DfpSoapClientFactory(user, settings_1.Settings.WSDL_NAMESPACE).generateSoapClient(serviceName, options, endpoint);
}
}
exports.DfpService = DfpService;