Google AdSense
v0.2.0Read AdSense Management API v2 accounts, inventory, payments, policy, and reports through MCP.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
adsense_list_accounts
List AdSense accounts available to the authenticated user.
| Parameter | Type | Description |
|---|---|---|
pageSize | integer | Maximum number of resources to return. |
pageToken | string | Token from a previous response for the next page. |
adsense_get_account
Get one AdSense account by resource name, e.g. accounts/pub-123.
| Parameter | Type | Description |
|---|---|---|
account * | string |
adsense_list_payments
List paid and unpaid earnings for an AdSense account. Account is discovered automatically when omitted.
| Parameter | Type | Description |
|---|---|---|
account | string | Account resource name; optional when one account is accessible. |
adsense_list_child_accounts
List accounts directly managed by an AdSense account.
| Parameter | Type | Description |
|---|---|---|
account | string | Parent account resource name; discovered automatically when omitted. |
pageSize | integer | Maximum number of resources to return. |
pageToken | string | Token from a previous response for the next page. |
adsense_get_ad_blocking_recovery_tag
Get the ad-blocking recovery tag for an AdSense account.
| Parameter | Type | Description |
|---|---|---|
account | string | Account resource name; discovered automatically when omitted. |
adsense_list_alerts
List account alerts, including their severity, type, and localized message.
| Parameter | Type | Description |
|---|---|---|
account | string | Account resource name; discovered automatically when omitted. |
languageCode | string | IETF BCP-47 language code for alert messages. |
adsense_list_policy_issues
List policy issues involving an AdSense account and its AFP child accounts.
| Parameter | Type | Description |
|---|---|---|
account | string | Account resource name; discovered automatically when omitted. |
pageSize | integer | Maximum number of resources to return. |
pageToken | string | Token from a previous response for the next page. |
adsense_get_policy_issue
Get one AdSense policy issue by resource name.
| Parameter | Type | Description |
|---|---|---|
name * | string |
adsense_list_sites
List sites in an AdSense account, including readiness and Auto Ads state.
| Parameter | Type | Description |
|---|---|---|
account | string | Account resource name; discovered automatically when omitted. |
pageSize | integer | Maximum number of resources to return. |
pageToken | string | Token from a previous response for the next page. |
adsense_get_site
Get one AdSense site by resource name.
| Parameter | Type | Description |
|---|---|---|
name * | string |
adsense_list_ad_clients
List ad clients in an AdSense account.
| Parameter | Type | Description |
|---|---|---|
account | string | Account resource name; discovered automatically when omitted. |
pageSize | integer | Maximum number of resources to return. |
pageToken | string | Token from a previous response for the next page. |
adsense_get_ad_client
Get one AdSense ad client by resource name.
| Parameter | Type | Description |
|---|---|---|
name * | string |
adsense_get_ad_client_ad_code
Get the ad code for an AdSense ad client.
| Parameter | Type | Description |
|---|---|---|
name * | string |
adsense_list_ad_units
List ad units under an AdSense ad client.
| Parameter | Type | Description |
|---|---|---|
adClient * | string | Parent ad client resource name. |
pageSize | integer | Maximum number of resources to return. |
pageToken | string | Token from a previous response for the next page. |
adsense_get_ad_unit
Get one AdSense ad unit by resource name.
| Parameter | Type | Description |
|---|---|---|
name * | string |
adsense_get_ad_unit_ad_code
Get the ad code for an AdSense ad unit.
| Parameter | Type | Description |
|---|---|---|
name * | string |
adsense_list_linked_custom_channels
List custom channels linked to an AdSense ad unit.
| Parameter | Type | Description |
|---|---|---|
adUnit * | string | Parent ad unit resource name. |
pageSize | integer | Maximum number of resources to return. |
pageToken | string | Token from a previous response for the next page. |
adsense_list_url_channels
List active URL channels under an AdSense ad client.
| Parameter | Type | Description |
|---|---|---|
adClient * | string | Parent ad client resource name. |
pageSize | integer | Maximum number of resources to return. |
pageToken | string | Token from a previous response for the next page. |
adsense_get_url_channel
Get one AdSense URL channel by resource name.
| Parameter | Type | Description |
|---|---|---|
name * | string |
adsense_list_custom_channels
List custom channels under an AdSense ad client.
| Parameter | Type | Description |
|---|---|---|
adClient * | string | Parent ad client resource name. |
pageSize | integer | Maximum number of resources to return. |
pageToken | string | Token from a previous response for the next page. |
adsense_get_custom_channel
Get one AdSense custom channel by resource name.
| Parameter | Type | Description |
|---|---|---|
name * | string |
adsense_list_linked_ad_units
List ad units linked to an AdSense custom channel.
| Parameter | Type | Description |
|---|---|---|
customChannel * | string | Parent custom channel resource name. |
pageSize | integer | Maximum number of resources to return. |
pageToken | string | Token from a previous response for the next page. |
adsense_list_saved_reports
List reports saved in an AdSense account.
| Parameter | Type | Description |
|---|---|---|
account | string | Account resource name; discovered automatically when omitted. |
pageSize | integer | Maximum number of resources to return. |
pageToken | string | Token from a previous response for the next page. |
adsense_get_saved_report
Get one saved AdSense report's metadata by resource name.
| Parameter | Type | Description |
|---|---|---|
name * | string |
adsense_generate_saved_report
Generate a saved AdSense report as structured JSON.
| Parameter | Type | Description |
|---|---|---|
name * | string | |
currencyCode | string | |
dateRange | string | Preset date range such as TODAY, YESTERDAY, LAST_7_DAYS, MONTH_TO_DATE, CUSTOM. |
endDate | string | Custom end date in YYYY-MM-DD. |
languageCode | string | |
reportingTimeZone | string | ACCOUNT_TIME_ZONE or GOOGLE_TIME_ZONE. |
startDate | string | Custom start date in YYYY-MM-DD. |
adsense_generate_report
Extract any ad-hoc AdSense report. Supply API v2 dimensions, metrics, filters, dates, sorting, and other report parameters. Account is discovered automatically when omitted.
| Parameter | Type | Description |
|---|---|---|
metrics * | array | Required metrics, e.g. ESTIMATED_EARNINGS, PAGE_VIEWS, CLICKS. |
account | string | Account resource name; optional when one account is accessible. |
currencyCode | string | |
dateRange | string | Preset date range such as TODAY, YESTERDAY, LAST_7_DAYS, MONTH_TO_DATE, CUSTOM. |
dimensions | array | Report dimensions, e.g. DATE, AD_UNIT_NAME, COUNTRY_NAME. |
endDate | string | Custom end date in YYYY-MM-DD. |
filters | array | AdSense filters, e.g. AD_CLIENT_ID==ca-pub-... |
languageCode | string | |
limit | integer | |
orderBy | array | Columns to sort, e.g. -ESTIMATED_EARNINGS. |
reportingTimeZone | string | ACCOUNT_TIME_ZONE or GOOGLE_TIME_ZONE. |
startDate | string | Custom start date in YYYY-MM-DD. |