Skip to main content
Glama

Google Ads MCP Server

by martechery
headers.test.ts839 B
import { describe, it, expect } from 'vitest'; import { buildAdsHeaders } from '../../src/headers.js'; describe('buildAdsHeaders', () => { it('builds required headers', () => { const headers = buildAdsHeaders({ accessToken: 'abc', developerToken: 'dev123', }); expect(headers.Authorization).toBe('Bearer abc'); expect(headers['developer-token']).toBe('dev123'); expect(headers['content-type']).toBe('application/json'); }); it('formats login-customer-id and sets x-goog-user-project', () => { const headers = buildAdsHeaders({ accessToken: 't', developerToken: 'd', loginCustomerId: '123-456-7890', quotaProjectId: 'my-project', }); expect(headers['login-customer-id']).toBe('1234567890'); expect(headers['x-goog-user-project']).toBe('my-project'); }); });

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/martechery/mcp-google-ads-ts'

If you have feedback or need assistance with the MCP directory API, please join our Discord server