IntegrateIntegrate
Integrations

Microsoft Ads Integration

Manage Microsoft Ads get user, search accounts, get campaigns, add campaigns, get ad groups

The Microsoft Ads integration provides access to manage Microsoft Ads get user, search accounts, get campaigns, add campaigns, get ad groups through the Integrate MCP server.

Installation

The Microsoft Ads integration is included with the SDK:

import { microsoftAdsIntegration } from "integrate-sdk/server";

Setup

1. Create a Microsoft Ads OAuth App

  1. Go to Azure Portal — App Registrations
  2. Create a new OAuth application
  3. Configure your redirect URI
  4. Note your Client ID and Client Secret

2. Configure the Integration on Your Server

Add the Microsoft Ads integration to your server configuration. The integration automatically reads MICROSOFT_ADS_CLIENT_ID and MICROSOFT_ADS_CLIENT_SECRET from your environment variables:

import { createMCPServer, microsoftAdsIntegration } from "integrate-sdk/server";

export const { client: serverClient } = createMCPServer({
  apiKey: process.env.INTEGRATE_API_KEY,
  integrations: [
    microsoftAdsIntegration({
      scopes: ["https://ads.microsoft.com/msads.manage", "offline_access"], // Optional
    }),
  ],
});

You can override the environment variables by passing explicit values:

microsoftAdsIntegration({
  clientId: process.env.CUSTOM_MICROSOFT_ADS_ID,
  clientSecret: process.env.CUSTOM_MICROSOFT_ADS_SECRET,
      scopes: ["https://ads.microsoft.com/msads.manage", "offline_access"], // Optional
});

3. Client-Side Usage

The default client automatically includes all integrations. You can use it directly:

import { client } from "integrate-sdk";

await client.authorize("microsoft_ads");
const result = await client.microsoft_ads.getUser({
  query_json: "value",
});

console.log(result);

If you're using a custom client, add the integration to the integrations array:

import { createMCPClient, microsoftAdsIntegration } from "integrate-sdk";

const customClient = createMCPClient({
  integrations: [microsoftAdsIntegration()],
});

Configuration Options

Prop

Type

Default Scopes

These defaults are applied unless you override scopes in the integration config:

  • https://ads.microsoft.com/msads.manage
  • offline_access

Tools

microsoft_ads_get_user

Ads get user

Prop

Type

microsoft_ads_search_accounts

Ads search accounts

Prop

Type

microsoft_ads_get_campaigns

Ads get campaigns

Prop

Type

microsoft_ads_add_campaigns

Ads add campaigns

Prop

Type

microsoft_ads_get_ad_groups

Ads get ad groups

Prop

Type

microsoft_ads_get_keywords

Ads get keywords

Prop

Type

Notes

  • Category: Marketing
  • Authentication mode: OAuth

On this page