google-ads-mcp

v0.0.6
google-ads-mcp Checked 4 hours ago Published 29 days ago

MCP Server for Google Ads, depends on Google Ads API.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

customers_list_accessible_customers Customers List Accessible Customers

Returns ids of customers directly accessible by the user authenticating the call. Use this tool first to discover available customer IDs if the user hasn't provided one. Most other tools require a valid customer ID as input.

assets_create_asset Assets Create Asset

Creates a new Google Ads asset under the specified customer account. Required & Optional parameters per `asset_type`: - **TEXT**: Requires `text_asset_text`. - **IMAGE**: Requires either `image_asset_path` (absolute local path, local stdio mode only) OR `image_asset_data` (base64 encoded string). If `image_asset_data` is provided, `image_asset_mime_type` is also required (e.g. 'IMAGE_PNG', 'IMAGE_JPEG', 'IMAGE_GIF'). - **YOUTUBE_VIDEO**: Requires `youtube_video_id`. - **SITELINK**: Requires `sitelink_link_text` and root-level `final_urls`. Accepts optional `sitelink_description1` and `s…

ParameterTypeDescription
asset_type *stringType of the asset (e.g., 'TEXT', 'IMAGE', 'YOUTUBE_VIDEO', 'SITELINK', 'CALLOUT', 'STRUCTURED_SNIPPET').
customer_id *Google Ads Customer ID (digits or hyphenated, e.g. '1234567890').
callout_textOptional callout text (required for CALLOUT type).
checksumChecksum of the validated operation returned by a prior `validate_only=True` call. Required when `validate_only=False`.
extra_paramsOptional dict representing nested parameters for less common asset types.
final_mobile_urlsOptional list of final mobile URLs.
final_url_suffixOptional final URL suffix.
final_urlsOptional list of final URLs (required for SITELINK).
image_asset_dataOptional base64 encoded image data (supported for IMAGE type).
image_asset_mime_typeOptional MIME type (e.g., 'IMAGE_PNG', 'IMAGE_JPEG', 'IMAGE_GIF'; required if image_asset_data is used).
image_asset_pathOptional absolute file path to a local image (supported for IMAGE type in local stdio mode).
login_customer_idOptional manager customer ID to use as the login-customer-id header.
nameOptional name of the asset.
sitelink_description1Optional sitelink line 1 description.
sitelink_description2Optional sitelink line 2 description.
sitelink_link_textOptional link text (required for SITELINK type).
structured_snippet_headerOptional structured snippet header category (required for STRUCTURED_SNIPPET type).
structured_snippet_valuesOptional structured snippet list of values (required for STRUCTURED_SNIPPET type).
text_asset_textOptional text content (required for TEXT type).
tracking_url_templateOptional tracking URL template.
url_custom_parametersOptional custom parameters for tracking (list of {'key': ..., 'value': ...} dicts).
validate_onlybooleanIf True (default), validates the request and returns proposed `change_items` and a `checksum` without creating the asset. If False, requires `checksum` from a prior `validate_only=True` call to commit…
youtube_video_idOptional YouTube 11-character video ID (required for YOUTUBE_VIDEO type).

assets_upload_video_asset Assets Upload Video Asset

Uploads a video to YouTube natively via the Google Ads API. Once a video has been uploaded, it can be used to create a video asset. This operation executes via a FastMCP background task to gracefully handle large file uploads (supported in local stdio mode only). Once the upload finishes successfully, using the search tool and querying the `you_tube_video_upload` resource matching the returned ID allows you to retrieve the YouTube Video ID and processing status. Propose & Confirm Workflow (`validate_only` and `checksum`): 1. Call `upload_video_asset` with `validate_only=True` (the default).…

ParameterTypeDescription
customer_id *Google Ads Customer ID (digits or hyphenated, e.g. '1234567890').
video_description *stringThe description text attached to your YouTube video.
video_path *stringThe absolute path on the local filesystem to the video file to be uploaded (local stdio mode only).
video_title *stringThe title you wish your video to have on YouTube.
checksumChecksum of the validated operation returned by a prior `validate_only=True` call. Required when `validate_only=False`.
login_customer_idOptional manager customer ID to use as the login-customer-id header.
validate_onlybooleanIf True (default), validates the request and returns proposed `change_items` and a `checksum` without uploading the video. If False, requires `checksum` from a prior `validate_only=True` call to execu…
video_privacystringThe privacy setting of the video on YouTube. Default is UNLISTED. Valid values are: PUBLIC, UNLISTED, PRIVATE. Note: PUBLIC is only allowed for brand channels.
youtube_channel_idOptional. The ID of the YouTube channel the video will be uploaded to. If not provided, it will be uploaded to a Google-managed YouTube channel linked to your ads account.

metadata_get_resource_metadata Metadata Get Resource Metadata

Retrieves the selectable, filterable, and sortable fields for a specific Google Ads resource, including compatible metrics and segments. Use this tool to find out which fields you can select, filter by, or sort by when querying a specific resource (e.g., 'campaign', 'ad_group'). This tool also returns metrics and segments that can be selected with the resource. Their names start with 'metrics.' and 'segments.' respectively. Do not guess fields, you MUST use this tool to discover them before constructing a query for the `search` tool. The responses of this tool should be cached, as they don'…

ParameterTypeDescription
resource_name *stringThe name of the Google Ads resource (e.g., 'campaign', 'ad_group').
login_customer_idOptional manager customer ID to use as the login-customer-id header.

labels_manage_labels Labels Manage Labels

Manages Label resources. Supports CREATE, UPDATE, and REMOVE operations. Propose & Confirm Workflow (`validate_only` and `checksum`): 1. Call `manage_labels` with `validate_only=True` (the default). After validation passes, the tool returns structured `change_items` and a `checksum` without committing changes. 2. Present the `change_items` to the user and wait for explicit user approval. 3. Only after user confirmation, call `manage_labels` with `validate_only=False` along with the exact same parameters and the `checksum` returned by the previous `validate_only=True` call.

ParameterTypeDescription
customer_id *Google Ads Customer ID (digits or hyphenated, e.g. '1234567890').
operation *stringThe operation to perform. Must be 'CREATE', 'UPDATE', or 'REMOVE'.
background_colorBackground color in HTML hex format (e.g., '#FF0000'). Optional.
checksumChecksum of the validated operation returned by a prior `validate_only=True` call. Required when `validate_only=False`.
descriptionDescription of the label. Optional.
label_idThe ID of the label (e.g., '456'). Required for UPDATE and REMOVE.
login_customer_idOptional manager customer ID to use as the login-customer-id header.
nameThe name of the label. Required for CREATE, optional for UPDATE.
validate_onlybooleanIf True (default), validates the request and returns proposed `change_items` and a `checksum` without mutating the label. If False, requires `checksum` from a prior `validate_only=True` call to commit…

labels_manage_label_associations Labels Manage Label Associations

Manages associations between labels and Campaign, Customer, Ad Group, or Ad Group Criterion. Supports CREATE and REMOVE operations. Propose & Confirm Workflow (`validate_only` and `checksum`): 1. Call `manage_label_associations` with `validate_only=True` (the default). After validation passes, the tool returns structured `change_items` and a `checksum` without committing changes. 2. Present the `change_items` to the user and wait for explicit user approval. 3. Only after user confirmation, call `manage_label_associations` with `validate_only=False` along with the exact same parameters and th…

ParameterTypeDescription
association_type *stringThe type of resource being associated. Must be 'CAMPAIGN', 'CUSTOMER', 'AD_GROUP', or 'AD_GROUP_CRITERION'.
customer_id *Google Ads Customer ID (digits or hyphenated, e.g. '1234567890').
operation *stringThe operation to perform. Must be 'CREATE' or 'REMOVE'.
association_resource_nameThe full resource name of the association itself (e.g., 'customers/123/campaignLabels/456~789'). Optional alternative for REMOVE when `resource_id` and `label_id` are not provided.
checksumChecksum of the validated operation returned by a prior `validate_only=True` call. Required when `validate_only=False`.
label_idThe ID of the Label (e.g., '789'). Required for CREATE.
login_customer_idOptional manager customer ID to use as the login-customer-id header.
resource_idThe ID of the entity to associate (e.g., '456' for CAMPAIGN or AD_GROUP, or composite '{ad_group_id}~{criterion_id}' such as '456~789' for AD_GROUP_CRITERION). Optional for CUSTOMER (defaults to `cust…
validate_onlybooleanIf True (default), validates the request and returns proposed `change_items` and a `checksum` without mutating the association. If False, requires `checksum` from a prior `validate_only=True` call to…