@niur/google-admanager-api
Version:
Google Ad Manager API Client Library for NodeJs
29 lines • 933 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.OrderService = void 0;
class OrderService {
constructor(client) {
this._client = client;
}
async createOrders(orders) {
return this._client.createOrders({ orders });
}
async getOrdersByStatement(filterStatement) {
return this._client.getOrdersByStatement({
filterStatement,
});
}
async performOrderAction(orderAction, filterStatement) {
return this._client.performOrderAction({
orderAction: Object.assign({ attributes: {
'xsi:type': orderAction.constructor.name,
} }, orderAction.buildAttributes()),
filterStatement,
});
}
async updateOrders(orders) {
return this._client.updateOrders({ orders });
}
}
exports.OrderService = OrderService;
//# sourceMappingURL=order.service.js.map