@niur/google-admanager-api
Version:
Google Ad Manager API Client Library for NodeJs
31 lines • 896 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.TeamService = void 0;
class TeamService {
constructor(client) {
this._client = client;
}
async createTeams(teams) {
return this._client.createTeams({ teams });
}
async getTeamsByStatement(filterStatement) {
return this._client.getTeamsByStatement({
filterStatement,
});
}
async performTeamAction(teamAction, filterStatement) {
return this._client.performTeamAction({
teamAction: {
attributes: {
'xsi:type': teamAction.constructor.name,
},
},
filterStatement,
});
}
async updateTeams(teams) {
return this._client.updateTeams({ teams });
}
}
exports.TeamService = TeamService;
//# sourceMappingURL=team.service.js.map