UNPKG

@bonniernews/bn-google-ad-manager-api

Version:

This repo is a fork of https://github.com/thewizarodofoz/google-ad-manager-api to update dependencies, functionality and add typing for the different gam services.

21 lines (20 loc) 627 B
import { Client } from "soap"; export type GAMClientConfig = { networkCode: string; apiVersion?: string | undefined; accessToken: string; }; export type DFPOptions = GAMClientConfig; interface DFPClient extends Client { setToken(token: string): void; } declare class GAMClient { private apiVersion; private networkCode; private accessToken; private getLatestApiVersion; authorize({ networkCode, apiVersion, accessToken }: GAMClientConfig): Promise<void>; getService(serviceName: string, token?: string): Promise<DFPClient>; private getSoapHeaders; } export { GAMClient, DFPClient };