Google AdSense

v0.2.0
io.github.SirMacke/adsense-mcp Checked 2 days ago Published 2 months ago

Read 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.

ParameterTypeDescription
pageSizeintegerMaximum number of resources to return.
pageTokenstringToken from a previous response for the next page.

adsense_get_account

Get one AdSense account by resource name, e.g. accounts/pub-123.

ParameterTypeDescription
account *string

adsense_list_payments

List paid and unpaid earnings for an AdSense account. Account is discovered automatically when omitted.

ParameterTypeDescription
accountstringAccount resource name; optional when one account is accessible.

adsense_list_child_accounts

List accounts directly managed by an AdSense account.

ParameterTypeDescription
accountstringParent account resource name; discovered automatically when omitted.
pageSizeintegerMaximum number of resources to return.
pageTokenstringToken from a previous response for the next page.

adsense_get_ad_blocking_recovery_tag

Get the ad-blocking recovery tag for an AdSense account.

ParameterTypeDescription
accountstringAccount resource name; discovered automatically when omitted.

adsense_list_alerts

List account alerts, including their severity, type, and localized message.

ParameterTypeDescription
accountstringAccount resource name; discovered automatically when omitted.
languageCodestringIETF BCP-47 language code for alert messages.

adsense_list_policy_issues

List policy issues involving an AdSense account and its AFP child accounts.

ParameterTypeDescription
accountstringAccount resource name; discovered automatically when omitted.
pageSizeintegerMaximum number of resources to return.
pageTokenstringToken from a previous response for the next page.

adsense_get_policy_issue

Get one AdSense policy issue by resource name.

ParameterTypeDescription
name *string

adsense_list_sites

List sites in an AdSense account, including readiness and Auto Ads state.

ParameterTypeDescription
accountstringAccount resource name; discovered automatically when omitted.
pageSizeintegerMaximum number of resources to return.
pageTokenstringToken from a previous response for the next page.

adsense_get_site

Get one AdSense site by resource name.

ParameterTypeDescription
name *string

adsense_list_ad_clients

List ad clients in an AdSense account.

ParameterTypeDescription
accountstringAccount resource name; discovered automatically when omitted.
pageSizeintegerMaximum number of resources to return.
pageTokenstringToken from a previous response for the next page.

adsense_get_ad_client

Get one AdSense ad client by resource name.

ParameterTypeDescription
name *string

adsense_get_ad_client_ad_code

Get the ad code for an AdSense ad client.

ParameterTypeDescription
name *string

adsense_list_ad_units

List ad units under an AdSense ad client.

ParameterTypeDescription
adClient *stringParent ad client resource name.
pageSizeintegerMaximum number of resources to return.
pageTokenstringToken from a previous response for the next page.

adsense_get_ad_unit

Get one AdSense ad unit by resource name.

ParameterTypeDescription
name *string

adsense_get_ad_unit_ad_code

Get the ad code for an AdSense ad unit.

ParameterTypeDescription
name *string

adsense_list_linked_custom_channels

List custom channels linked to an AdSense ad unit.

ParameterTypeDescription
adUnit *stringParent ad unit resource name.
pageSizeintegerMaximum number of resources to return.
pageTokenstringToken from a previous response for the next page.

adsense_list_url_channels

List active URL channels under an AdSense ad client.

ParameterTypeDescription
adClient *stringParent ad client resource name.
pageSizeintegerMaximum number of resources to return.
pageTokenstringToken from a previous response for the next page.

adsense_get_url_channel

Get one AdSense URL channel by resource name.

ParameterTypeDescription
name *string

adsense_list_custom_channels

List custom channels under an AdSense ad client.

ParameterTypeDescription
adClient *stringParent ad client resource name.
pageSizeintegerMaximum number of resources to return.
pageTokenstringToken from a previous response for the next page.

adsense_get_custom_channel

Get one AdSense custom channel by resource name.

ParameterTypeDescription
name *string

adsense_list_linked_ad_units

List ad units linked to an AdSense custom channel.

ParameterTypeDescription
customChannel *stringParent custom channel resource name.
pageSizeintegerMaximum number of resources to return.
pageTokenstringToken from a previous response for the next page.

adsense_list_saved_reports

List reports saved in an AdSense account.

ParameterTypeDescription
accountstringAccount resource name; discovered automatically when omitted.
pageSizeintegerMaximum number of resources to return.
pageTokenstringToken from a previous response for the next page.

adsense_get_saved_report

Get one saved AdSense report's metadata by resource name.

ParameterTypeDescription
name *string

adsense_generate_saved_report

Generate a saved AdSense report as structured JSON.

ParameterTypeDescription
name *string
currencyCodestring
dateRangestringPreset date range such as TODAY, YESTERDAY, LAST_7_DAYS, MONTH_TO_DATE, CUSTOM.
endDatestringCustom end date in YYYY-MM-DD.
languageCodestring
reportingTimeZonestringACCOUNT_TIME_ZONE or GOOGLE_TIME_ZONE.
startDatestringCustom 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.

ParameterTypeDescription
metrics *arrayRequired metrics, e.g. ESTIMATED_EARNINGS, PAGE_VIEWS, CLICKS.
accountstringAccount resource name; optional when one account is accessible.
currencyCodestring
dateRangestringPreset date range such as TODAY, YESTERDAY, LAST_7_DAYS, MONTH_TO_DATE, CUSTOM.
dimensionsarrayReport dimensions, e.g. DATE, AD_UNIT_NAME, COUNTRY_NAME.
endDatestringCustom end date in YYYY-MM-DD.
filtersarrayAdSense filters, e.g. AD_CLIENT_ID==ca-pub-...
languageCodestring
limitinteger
orderByarrayColumns to sort, e.g. -ESTIMATED_EARNINGS.
reportingTimeZonestringACCOUNT_TIME_ZONE or GOOGLE_TIME_ZONE.
startDatestringCustom start date in YYYY-MM-DD.