@getmcpads/google-ads-mcp-server 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/NOTICE +16 -0
- package/README.md +357 -0
- package/dist/cli.d.ts +1 -0
- package/dist/cli.js +8742 -0
- package/dist/cli.js.map +1 -0
- package/dist/index.d.ts +48 -0
- package/dist/index.js +8725 -0
- package/dist/index.js.map +1 -0
- package/package.json +57 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* google-ads-mcp-server: an open-source MCP server for the Google Ads API.
|
|
6
|
+
* Copyright 2026 GetMCPAds. https://www.getmcpads.com
|
|
7
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
declare const configSchema: z.ZodObject<{
|
|
11
|
+
developerToken: z.ZodString;
|
|
12
|
+
clientId: z.ZodString;
|
|
13
|
+
clientSecret: z.ZodString;
|
|
14
|
+
refreshToken: z.ZodString;
|
|
15
|
+
loginCustomerId: z.ZodOptional<z.ZodString>;
|
|
16
|
+
/** Write tools are registered only when this is true. */
|
|
17
|
+
enableWrites: z.ZodOptional<z.ZodBoolean>;
|
|
18
|
+
logLevel: z.ZodDefault<z.ZodEnum<["debug", "info", "warn", "error"]>>;
|
|
19
|
+
}, "strip", z.ZodTypeAny, {
|
|
20
|
+
developerToken: string;
|
|
21
|
+
clientId: string;
|
|
22
|
+
clientSecret: string;
|
|
23
|
+
refreshToken: string;
|
|
24
|
+
logLevel: "debug" | "info" | "warn" | "error";
|
|
25
|
+
loginCustomerId?: string | undefined;
|
|
26
|
+
enableWrites?: boolean | undefined;
|
|
27
|
+
}, {
|
|
28
|
+
developerToken: string;
|
|
29
|
+
clientId: string;
|
|
30
|
+
clientSecret: string;
|
|
31
|
+
refreshToken: string;
|
|
32
|
+
loginCustomerId?: string | undefined;
|
|
33
|
+
enableWrites?: boolean | undefined;
|
|
34
|
+
logLevel?: "debug" | "info" | "warn" | "error" | undefined;
|
|
35
|
+
}>;
|
|
36
|
+
type GoogleAdsConfig = z.infer<typeof configSchema>;
|
|
37
|
+
declare function loadConfig(): GoogleAdsConfig;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* google-ads-mcp-server: an open-source MCP server for the Google Ads API.
|
|
41
|
+
* Copyright 2026 GetMCPAds. https://www.getmcpads.com
|
|
42
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
43
|
+
*/
|
|
44
|
+
|
|
45
|
+
declare const PACKAGE_VERSION = "1.0.0";
|
|
46
|
+
declare function createServer(config: GoogleAdsConfig): McpServer;
|
|
47
|
+
|
|
48
|
+
export { type GoogleAdsConfig, PACKAGE_VERSION, createServer, loadConfig };
|