Skip to main content
Glama

get_googleads_campaigns

Retrieve Google Ads campaign data from your Metricool account for a specified date range and blog ID using the MCP server mcp-metricool.

Instructions

Get the list of Google Ads Campaigns from your Metricool account.

Args: init date: Init date of the period to get the data. The format is YYYYMMDD end date: End date of the period to get the data. The format is YYYYMMDD blog id: Blog id of the Metricool brand account.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
blog_idYes
end_dateYes
init_dateYes

Implementation Reference

  • The handler function that implements the core logic of the 'get_googleads_campaigns' tool. It is decorated with @mcp.tool(), which registers it with the FastMCP server. The function fetches Google Ads campaigns data from the Metricool API using a GET request based on the provided init_date, end_date, and blog_id parameters.
    @mcp.tool() async def get_googleads_campaigns(init_date: str, end_date: str, blog_id: int) -> str | list[dict[str, Any]]: """ Get the list of Google Ads Campaigns from your Metricool account. Args: init date: Init date of the period to get the data. The format is YYYYMMDD end date: End date of the period to get the data. The format is YYYYMMDD blog id: Blog id of the Metricool brand account. """ url = f"{METRICOOL_BASE_URL}/stats/adwords/campaigns?start={init_date}&end={end_date}&blogId={blog_id}&userId={METRICOOL_USER_ID}&integrationSource=MCP" response = await make_get_request(url) if not response: return ("Failed to get Google Ads Campaigns") return response

Latest Blog Posts

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/metricool/mcp-metricool'

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