mcp-google-ads 1.0.9 → 1.0.10
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/dist/build-info.json +1 -1
- package/dist/errors.js +2 -2
- package/dist/index.js +2 -1
- package/package.json +1 -1
package/dist/build-info.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"sha":"
|
|
1
|
+
{"sha":"fd2b513","builtAt":"2026-04-09T21:47:18.505Z"}
|
package/dist/errors.js
CHANGED
|
@@ -12,7 +12,7 @@ export class GoogleAdsAuthError extends Error {
|
|
|
12
12
|
export class GoogleAdsRateLimitError extends Error {
|
|
13
13
|
retryAfterMs;
|
|
14
14
|
constructor(retryAfterMs, cause) {
|
|
15
|
-
super(`
|
|
15
|
+
super(`Google Ads rate limited, retry after ${retryAfterMs}ms`);
|
|
16
16
|
this.retryAfterMs = retryAfterMs;
|
|
17
17
|
this.name = "GoogleAdsRateLimitError";
|
|
18
18
|
this.cause = cause;
|
|
@@ -89,7 +89,7 @@ export function classifyError(error) {
|
|
|
89
89
|
message.includes("refresh token") ||
|
|
90
90
|
code?.authentication_error ||
|
|
91
91
|
code?.authorization_error) {
|
|
92
|
-
return new GoogleAdsAuthError(`
|
|
92
|
+
return new GoogleAdsAuthError(`Google Ads auth failed: ${message}. Check your refresh token and OAuth credentials.`, error);
|
|
93
93
|
}
|
|
94
94
|
// Rate limiting
|
|
95
95
|
if (status === 429 ||
|
package/dist/index.js
CHANGED
|
@@ -1763,6 +1763,7 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
1763
1763
|
error: true,
|
|
1764
1764
|
error_type: error.name,
|
|
1765
1765
|
message: error.message,
|
|
1766
|
+
server: __cliPkg.name,
|
|
1766
1767
|
};
|
|
1767
1768
|
if (error instanceof GoogleAdsAuthError) {
|
|
1768
1769
|
response.action_required = "Re-authenticate: check refresh token in macOS Keychain. Token may be expired or revoked.";
|
|
@@ -1779,11 +1780,11 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
1779
1780
|
response.details = rawError.errors || rawError.stack;
|
|
1780
1781
|
}
|
|
1781
1782
|
return {
|
|
1783
|
+
isError: true,
|
|
1782
1784
|
content: [{
|
|
1783
1785
|
type: "text",
|
|
1784
1786
|
text: JSON.stringify(response, null, 2),
|
|
1785
1787
|
}],
|
|
1786
|
-
isError: true,
|
|
1787
1788
|
};
|
|
1788
1789
|
}
|
|
1789
1790
|
});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mcp-google-ads",
|
|
3
3
|
"mcpName": "io.github.mharnett/google-ads",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.10",
|
|
5
5
|
"description": "MCP server for Google Ads API with MCC support, 35 tools for campaign management, reporting, and optimization. Safe by default — all changes created PAUSED.",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"bin": {
|