UNPKG

@guardian/google-admanager-api

Version:

Google Ad Manager API Client Library for NodeJs

29 lines 996 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.LineItemService = void 0; class LineItemService { constructor(client) { this._client = client; } async createLineItems(lineItems) { return this._client.createLineItems({ lineItems }); } async getLineItemsByStatement(filterStatement) { return this._client.getLineItemsByStatement({ filterStatement, }); } async performLineItemAction(lineItemAction, filterStatement) { return this._client.performLineItemAction({ lineItemAction: Object.assign({ attributes: { "xsi:type": lineItemAction.constructor.name, } }, lineItemAction.buildAttributes()), filterStatement, }); } async updateLineItems(lineItems) { return this._client.updateLineItems({ lineItems }); } } exports.LineItemService = LineItemService; //# sourceMappingURL=lineItem.service.js.map