Google AdSense
Manage AdSense accounts, clients, ad units, custom channels, reports, payments, and alerts.
认证方式
| 方式 | 底层类型 | 状态 | 说明 |
|---|---|---|---|
| OAuth 2.0 | oauth2 | available | — |
调用示例
import { createClient } from "@open-connector/sdk";const oc = createClient({ baseUrl: "https://api.openconnector.dev", apiKey: process.env.OPEN_CONNECTOR_API_KEY!,});const result = await oc.executeTool({ slug: "GOOGLE_ADSENSE_ACCOUNTS_ADCLIENTS_ADUNITS_CREATE", connectedAccountId: "conn_...", arguments: { /* match this tool's input schema */ },});import Composio from "@composio/client";const composio = new Composio({ baseURL: "https://api.openconnector.dev/composio", apiKey: process.env.OPEN_CONNECTOR_API_KEY!,});const result = await composio.tools.execute("GOOGLE_ADSENSE_ACCOUNTS_ADCLIENTS_ADUNITS_CREATE", { connected_account_id: "conn_...", arguments: { /* match this tool's input schema */ },});oc tools execute GOOGLE_ADSENSE_ACCOUNTS_ADCLIENTS_ADUNITS_CREATE --data '{ }'Tool 目录
可用 Tools
25 个可调用操作
Adsense Accounts Adclients Adunits CreateGOOGLE_ADSENSE_ACCOUNTS_ADCLIENTS_ADUNITS_CREATECreates an ad unit. This method can be called only by a restricted set of projects, which are usually owned by [AdSense for Platforms](https://developers.google.com/adsense/platforms/) publishers. Contact your account manager if you need to use this method. Note that ad units can only be created for ad clients with an "AFC" product code. For more info see the [AdClient resource](/adsense/management/reference/rest/v2/accounts.adclients). For now, this method can only be used to create `DISPLAY` ad units. See: https://support.google.com/adsense/answer/9183566需要连接1 scope
Creates an ad unit. This method can be called only by a restricted set of projects, which are usually owned by [AdSense for Platforms](https://developers.google.com/adsense/platforms/) publishers. Contact your account manager if you need to use this method. Note that ad units can only be created for ad clients with an "AFC" product code. For more info see the [AdClient resource](/adsense/management/reference/rest/v2/accounts.adclients). For now, this method can only be used to create `DISPLAY` ad units. See: https://support.google.com/adsense/answer/9183566
认证
需要 Connected AccountScopes
https://www.googleapis.com/auth/adsenseTags
Adsense Accounts Adclients Adunits GetAdcodeGOOGLE_ADSENSE_ACCOUNTS_ADCLIENTS_ADUNITS_GET_ADCODEGets the ad unit code for a given ad unit. For more information, see [About the AdSense code](https://support.google.com/adsense/answer/9274634) and [Where to place the ad code in your HTML](https://support.google.com/adsense/answer/9190028).需要连接2 scopes
Gets the ad unit code for a given ad unit. For more information, see [About the AdSense code](https://support.google.com/adsense/answer/9274634) and [Where to place the ad code in your HTML](https://support.google.com/adsense/answer/9190028).
认证
需要 Connected AccountScopes
https://www.googleapis.com/auth/adsensehttps://www.googleapis.com/auth/adsense.readonlyTags
Adsense Accounts Adclients Adunits ListGOOGLE_ADSENSE_ACCOUNTS_ADCLIENTS_ADUNITS_LISTLists all ad units under a specified account and ad client.需要连接2 scopes
Lists all ad units under a specified account and ad client.
认证
需要 Connected AccountScopes
https://www.googleapis.com/auth/adsensehttps://www.googleapis.com/auth/adsense.readonlyTags
Adsense Accounts Adclients Adunits ListLinkedCustomChannelsGOOGLE_ADSENSE_ACCOUNTS_ADCLIENTS_ADUNITS_LIST_LINKED_CUSTOM_CHANNELSLists all the custom channels available for an ad unit.需要连接2 scopes
Lists all the custom channels available for an ad unit.
认证
需要 Connected AccountScopes
https://www.googleapis.com/auth/adsensehttps://www.googleapis.com/auth/adsense.readonlyTags
Adsense Accounts Adclients Customchannels CreateGOOGLE_ADSENSE_ACCOUNTS_ADCLIENTS_CUSTOMCHANNELS_CREATECreates a custom channel. This method can be called only by a restricted set of projects, which are usually owned by [AdSense for Platforms](https://developers.google.com/adsense/platforms/) publishers. Contact your account manager if you need to use this method.需要连接1 scope
Creates a custom channel. This method can be called only by a restricted set of projects, which are usually owned by [AdSense for Platforms](https://developers.google.com/adsense/platforms/) publishers. Contact your account manager if you need to use this method.
认证
需要 Connected AccountScopes
https://www.googleapis.com/auth/adsenseTags
Adsense Accounts Adclients Customchannels DeleteGOOGLE_ADSENSE_ACCOUNTS_ADCLIENTS_CUSTOMCHANNELS_DELETEDeletes a custom channel. This method can be called only by a restricted set of projects, which are usually owned by [AdSense for Platforms](https://developers.google.com/adsense/platforms/) publishers. Contact your account manager if you need to use this method.需要连接1 scope
Deletes a custom channel. This method can be called only by a restricted set of projects, which are usually owned by [AdSense for Platforms](https://developers.google.com/adsense/platforms/) publishers. Contact your account manager if you need to use this method.
认证
需要 Connected AccountScopes
https://www.googleapis.com/auth/adsenseTags
Adsense Accounts Adclients Customchannels GetGOOGLE_ADSENSE_ACCOUNTS_ADCLIENTS_CUSTOMCHANNELS_GETGets information about the selected custom channel.需要连接2 scopes
Gets information about the selected custom channel.
认证
需要 Connected AccountScopes
https://www.googleapis.com/auth/adsensehttps://www.googleapis.com/auth/adsense.readonlyTags
Adsense Accounts Adclients Customchannels ListGOOGLE_ADSENSE_ACCOUNTS_ADCLIENTS_CUSTOMCHANNELS_LISTLists all the custom channels available in an ad client.需要连接2 scopes
Lists all the custom channels available in an ad client.
认证
需要 Connected AccountScopes
https://www.googleapis.com/auth/adsensehttps://www.googleapis.com/auth/adsense.readonlyTags
Adsense Accounts Adclients Customchannels ListLinkedAdUnitsGOOGLE_ADSENSE_ACCOUNTS_ADCLIENTS_CUSTOMCHANNELS_LIST_LINKED_AD_UNITSLists all the ad units available for a custom channel.需要连接2 scopes
Lists all the ad units available for a custom channel.
认证
需要 Connected AccountScopes
https://www.googleapis.com/auth/adsensehttps://www.googleapis.com/auth/adsense.readonlyTags
Adsense Accounts Adclients Customchannels PatchGOOGLE_ADSENSE_ACCOUNTS_ADCLIENTS_CUSTOMCHANNELS_PATCHUpdates a custom channel. This method can be called only by a restricted set of projects, which are usually owned by [AdSense for Platforms](https://developers.google.com/adsense/platforms/) publishers. Contact your account manager if you need to use this method.需要连接1 scope
Updates a custom channel. This method can be called only by a restricted set of projects, which are usually owned by [AdSense for Platforms](https://developers.google.com/adsense/platforms/) publishers. Contact your account manager if you need to use this method.
认证
需要 Connected AccountScopes
https://www.googleapis.com/auth/adsenseTags
Adsense Accounts Adclients ListGOOGLE_ADSENSE_ACCOUNTS_ADCLIENTS_LISTLists all the ad clients available in an account.需要连接2 scopes
Lists all the ad clients available in an account.
认证
需要 Connected AccountScopes
https://www.googleapis.com/auth/adsensehttps://www.googleapis.com/auth/adsense.readonlyTags
Adsense Accounts Adclients Urlchannels ListGOOGLE_ADSENSE_ACCOUNTS_ADCLIENTS_URLCHANNELS_LISTLists active url channels.需要连接2 scopes
Lists active url channels.
认证
需要 Connected AccountScopes
https://www.googleapis.com/auth/adsensehttps://www.googleapis.com/auth/adsense.readonlyTags
Adsense Accounts Alerts ListGOOGLE_ADSENSE_ACCOUNTS_ALERTS_LISTLists all the alerts available in an account.需要连接2 scopes
Lists all the alerts available in an account.
认证
需要 Connected AccountScopes
https://www.googleapis.com/auth/adsensehttps://www.googleapis.com/auth/adsense.readonlyTags
Adsense Accounts GetAdBlockingRecoveryTagGOOGLE_ADSENSE_ACCOUNTS_GET_AD_BLOCKING_RECOVERY_TAGGets the ad blocking recovery tag of an account.需要连接2 scopes
Gets the ad blocking recovery tag of an account.
认证
需要 Connected AccountScopes
https://www.googleapis.com/auth/adsensehttps://www.googleapis.com/auth/adsense.readonlyTags
Adsense Accounts ListGOOGLE_ADSENSE_ACCOUNTS_LISTLists all accounts available to this user.需要连接2 scopes
Lists all accounts available to this user.
认证
需要 Connected AccountScopes
https://www.googleapis.com/auth/adsensehttps://www.googleapis.com/auth/adsense.readonlyTags
Adsense Accounts ListChildAccountsGOOGLE_ADSENSE_ACCOUNTS_LIST_CHILD_ACCOUNTSLists all accounts directly managed by the given AdSense account.需要连接2 scopes
Lists all accounts directly managed by the given AdSense account.
认证
需要 Connected AccountScopes
https://www.googleapis.com/auth/adsensehttps://www.googleapis.com/auth/adsense.readonlyTags
Adsense Accounts Payments ListGOOGLE_ADSENSE_ACCOUNTS_PAYMENTS_LISTLists all the payments available for an account.需要连接2 scopes
Lists all the payments available for an account.
认证
需要 Connected AccountScopes
https://www.googleapis.com/auth/adsensehttps://www.googleapis.com/auth/adsense.readonlyTags
Adsense Accounts PolicyIssues ListGOOGLE_ADSENSE_ACCOUNTS_POLICY_ISSUES_LISTLists all the policy issues where the specified account is involved, both directly and through any AFP child accounts.需要连接2 scopes
Lists all the policy issues where the specified account is involved, both directly and through any AFP child accounts.
认证
需要 Connected AccountScopes
https://www.googleapis.com/auth/adsensehttps://www.googleapis.com/auth/adsense.readonlyTags
Adsense Accounts Reports GenerateGOOGLE_ADSENSE_ACCOUNTS_REPORTS_GENERATEGenerates an ad hoc report.需要连接2 scopes
Generates an ad hoc report.
认证
需要 Connected AccountScopes
https://www.googleapis.com/auth/adsensehttps://www.googleapis.com/auth/adsense.readonlyTags
Adsense Accounts Reports GenerateCsvGOOGLE_ADSENSE_ACCOUNTS_REPORTS_GENERATE_CSVGenerates a csv formatted ad hoc report.需要连接2 scopes
Generates a csv formatted ad hoc report.
认证
需要 Connected AccountScopes
https://www.googleapis.com/auth/adsensehttps://www.googleapis.com/auth/adsense.readonlyTags
Adsense Accounts Reports GetSavedGOOGLE_ADSENSE_ACCOUNTS_REPORTS_GET_SAVEDGets the saved report from the given resource name.需要连接2 scopes
Gets the saved report from the given resource name.
认证
需要 Connected AccountScopes
https://www.googleapis.com/auth/adsensehttps://www.googleapis.com/auth/adsense.readonlyTags
Adsense Accounts Reports Saved GenerateGOOGLE_ADSENSE_ACCOUNTS_REPORTS_SAVED_GENERATEGenerates a saved report.需要连接2 scopes
Generates a saved report.
认证
需要 Connected AccountScopes
https://www.googleapis.com/auth/adsensehttps://www.googleapis.com/auth/adsense.readonlyTags
Adsense Accounts Reports Saved GenerateCsvGOOGLE_ADSENSE_ACCOUNTS_REPORTS_SAVED_GENERATE_CSVGenerates a csv formatted saved report.需要连接2 scopes
Generates a csv formatted saved report.
认证
需要 Connected AccountScopes
https://www.googleapis.com/auth/adsensehttps://www.googleapis.com/auth/adsense.readonlyTags
Adsense Accounts Reports Saved ListGOOGLE_ADSENSE_ACCOUNTS_REPORTS_SAVED_LISTLists saved reports.需要连接2 scopes
Lists saved reports.
认证
需要 Connected AccountScopes
https://www.googleapis.com/auth/adsensehttps://www.googleapis.com/auth/adsense.readonlyTags
Adsense Accounts Sites ListGOOGLE_ADSENSE_ACCOUNTS_SITES_LISTLists all the sites available in an account.需要连接2 scopes
Lists all the sites available in an account.
认证
需要 Connected AccountScopes
https://www.googleapis.com/auth/adsensehttps://www.googleapis.com/auth/adsense.readonlyTags