in lib/client/adManager.client.ts [30:49]
async getService<T extends keyof typeof SERVICE_MAP>(
serviceName: T,
): Promise<ImportClass<typeof SERVICE_MAP, T>> {
try {
const token = await this.credential.getToken();
if (!token) {
throw new Error("Token is not available");
}
return await new GoogleSoapService<T>(serviceName, {
networkCode: this.networkCode,
token: token,
applicationName: this.applicationName,
apiVersion: this.apiVersion,
}).createClient(this.logRequests, this.logResponses);
} catch (err: any) {
throw new Error(err);
}
}