---
canonical_url: "https://docs.composio.dev/toolkits/google_adsense"
markdown_url: "https://docs.composio.dev/toolkits/google_adsense.md"
product: "platform"
version: null
last_updated: null
---

# Google AdSense

Google AdSense enables publishers to manage ad inventory, channels, sites, policy issues, payments, and performance reports.

- **Category:** ads & conversion
- **Auth:** OAUTH2
- **Composio-managed OAuth available?** No
- **Tools:** 33
- **Triggers:** 0
- **Slug:** `GOOGLE_ADSENSE`
- **Version:** 00000000_00

## Tools

### Create Ad Unit

**Slug:** `GOOGLE_ADSENSE_CREATE_AD_UNIT`

Create a permanent DISPLAY ad unit under an AFC ad client. AdSense does not provide an ad-unit deletion method. This operation requires a Google Cloud project enabled for AdSense for Platforms.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `state` | string ("ACTIVE" | "ARCHIVED") | Yes | Initial ad unit state. |
| `display_name` | string | Yes | Display name for the new ad unit. |
| `ad_client_name` | string | Yes | Complete parent ad client resource name, in the format accounts/{account}/adclients/{adclient}. |
| `content_ads_settings` | object | Yes | Content ad settings with the required size and DISPLAY type. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Create Custom Channel

**Slug:** `GOOGLE_ADSENSE_CREATE_CUSTOM_CHANNEL`

Create a custom channel under an ad client. This operation requires a Google Cloud project enabled for AdSense for Platforms.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `active` | boolean | No | Whether the channel is active and collecting data. |
| `display_name` | string | Yes | Display name for the custom channel. |
| `ad_client_name` | string | Yes | Complete parent ad client resource name, in the format accounts/{account}/adclients/{adclient}. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Delete Custom Channel

**Slug:** `GOOGLE_ADSENSE_DELETE_CUSTOM_CHANNEL`

Permanently delete a Google AdSense custom channel. This destructive operation requires a Google Cloud project enabled for AdSense for Platforms.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `custom_channel_name` | string | Yes | Complete custom channel resource name in the form accounts/{account}/adclients/{adclient}/customchannels/{customchannel}. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Generate Report

**Slug:** `GOOGLE_ADSENSE_GENERATE_REPORT`

Generate an ad hoc AdSense report as structured JSON rows.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | integer | No | Maximum number of report rows to return (1-100000). |
| `filters` | array | No | Filters that must all match. Each item is sent as a repeated query key. |
| `metrics` | array | Yes | Required report metrics. Each item is sent as a repeated query key. |
| `order_by` | array | No | Dimension or metric names to sort by, optionally prefixed with + or -. Each item is sent as a repeated query key. |
| `date_range` | string ("REPORTING_DATE_RANGE_UNSPECIFIED" | "CUSTOM" | "TODAY" | "YESTERDAY" | "MONTH_TO_DATE" | "YEAR_TO_DATE" | "LAST_7_DAYS" | "LAST_30_DAYS") | No | Report date range. CUSTOM, including the provider default when omitted, requires every start_date and end_date component. |
| `dimensions` | array | No | Dimensions used to group rows. Each item is sent as a repeated query key. |
| `account_name` | string | Yes | Complete account resource name, in the format accounts/{account}. |
| `end_date_day` | integer | No | End day (0-31); use 0 for a year or year/month date. |
| `currency_code` | string | No | ISO-4217 currency code. Omit it to use the account currency. |
| `end_date_year` | integer | No | End year (0-9999); use 0 for a month/day without a year. |
| `language_code` | string | No | IETF BCP-47 language code for translated report output. |
| `end_date_month` | integer | No | End month (0-12); use 0 only for a year-only date. |
| `start_date_day` | integer | No | Start day (0-31); use 0 for a year or year/month date. |
| `start_date_year` | integer | No | Start year (0-9999); use 0 for a month/day without a year. |
| `start_date_month` | integer | No | Start month (0-12); use 0 only for a year-only date. |
| `reporting_time_zone` | string ("REPORTING_TIME_ZONE_UNSPECIFIED" | "ACCOUNT_TIME_ZONE" | "GOOGLE_TIME_ZONE") | No | Timezone used to generate the report. Omit it for the account timezone. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Generate Report CSV

**Slug:** `GOOGLE_ADSENSE_GENERATE_REPORT_CSV`

Generate an ad hoc AdSense report and return its CSV text verbatim.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | integer | No | Maximum report rows to return (1-1,000,000). Extra rows are truncated. |
| `filters` | array | No | Filters that must all match. Values are sent as repeated filters query keys. |
| `metrics` | array | Yes | Metrics to include. Values are sent as repeated metrics query keys. |
| `order_by` | array | No | Dimensions or metrics to sort by, optionally prefixed with + or -. Values are sent as repeated orderBy query keys. |
| `date_range` | string ("REPORTING_DATE_RANGE_UNSPECIFIED" | "CUSTOM" | "TODAY" | "YESTERDAY" | "MONTH_TO_DATE" | "YEAR_TO_DATE" | "LAST_7_DAYS" | "LAST_30_DAYS") | No | Report date range. CUSTOM, including the provider default when omitted, requires every start_date and end_date component. |
| `dimensions` | array | No | Dimensions to group rows by. Values are sent as repeated dimensions query keys. |
| `account_name` | string | Yes | Complete account resource name, for example accounts/pub-123. |
| `end_date_day` | integer | No | End day (0-31). |
| `currency_code` | string | No | ISO-4217 currency code; defaults to the account currency. |
| `end_date_year` | integer | No | End year (0-9999). |
| `language_code` | string | No | IETF BCP-47 language code for translated output; defaults to English. |
| `end_date_month` | integer | No | End month (0-12). |
| `start_date_day` | integer | No | Start day (0-31). |
| `start_date_year` | integer | No | Start year (0-9999). |
| `start_date_month` | integer | No | Start month (0-12). |
| `reporting_time_zone` | string ("REPORTING_TIME_ZONE_UNSPECIFIED" | "ACCOUNT_TIME_ZONE" | "GOOGLE_TIME_ZONE") | No | Timezone used to generate the report; defaults to the account timezone. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Generate Saved Report

**Slug:** `GOOGLE_ADSENSE_GENERATE_SAVED_REPORT`

Run a publisher-created saved report and return structured JSON rows.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `date_range` | string ("REPORTING_DATE_RANGE_UNSPECIFIED" | "CUSTOM" | "TODAY" | "YESTERDAY" | "MONTH_TO_DATE" | "YEAR_TO_DATE" | "LAST_7_DAYS" | "LAST_30_DAYS") | No | Report date range. CUSTOM, including the provider default when omitted, requires every start_date and end_date component. |
| `end_date_day` | integer | No | End day for a CUSTOM date range. |
| `currency_code` | string | No | ISO-4217 currency code; defaults to the account currency. |
| `end_date_year` | integer | No | End year for a CUSTOM date range. |
| `language_code` | string | No | IETF BCP-47 language code for translated output; defaults to English. |
| `end_date_month` | integer | No | End month for a CUSTOM date range. |
| `start_date_day` | integer | No | Start day for a CUSTOM date range. |
| `start_date_year` | integer | No | Start year for a CUSTOM date range. |
| `start_date_month` | integer | No | Start month for a CUSTOM date range. |
| `saved_report_name` | string | Yes | Complete saved report resource name, in the format accounts/{account}/reports/{report}. |
| `reporting_time_zone` | string ("REPORTING_TIME_ZONE_UNSPECIFIED" | "ACCOUNT_TIME_ZONE" | "GOOGLE_TIME_ZONE") | No | Timezone used to generate the report; defaults to the account timezone. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Generate Saved Report CSV

**Slug:** `GOOGLE_ADSENSE_GENERATE_SAVED_REPORT_CSV`

Run a publisher-created saved AdSense report and return CSV text.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `date_range` | string ("REPORTING_DATE_RANGE_UNSPECIFIED" | "CUSTOM" | "TODAY" | "YESTERDAY" | "MONTH_TO_DATE" | "YEAR_TO_DATE" | "LAST_7_DAYS" | "LAST_30_DAYS") | No | Report date range. CUSTOM, including the provider default when omitted, requires every start_date and end_date component. |
| `end_date_day` | integer | No | End day for a CUSTOM date range. |
| `currency_code` | string | No | ISO-4217 currency code; defaults to the account currency. |
| `end_date_year` | integer | No | End year for a CUSTOM date range. |
| `language_code` | string | No | IETF BCP-47 language code for translated output; defaults to English. |
| `end_date_month` | integer | No | End month for a CUSTOM date range. |
| `start_date_day` | integer | No | Start day for a CUSTOM date range. |
| `start_date_year` | integer | No | Start year for a CUSTOM date range. |
| `start_date_month` | integer | No | Start month for a CUSTOM date range. |
| `saved_report_name` | string | Yes | Complete saved report resource name in the form accounts/{account}/reports/{report}. |
| `reporting_time_zone` | string ("REPORTING_TIME_ZONE_UNSPECIFIED" | "ACCOUNT_TIME_ZONE" | "GOOGLE_TIME_ZONE") | No | Timezone used to generate the report; defaults to the account timezone. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Account

**Slug:** `GOOGLE_ADSENSE_GET_ACCOUNT`

Return one AdSense account's state, setup tasks, timezone, and premium status.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `account_name` | string | Yes | Complete account resource name in the form accounts/{account}. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Ad Blocking Recovery Tag

**Slug:** `GOOGLE_ADSENSE_GET_AD_BLOCKING_RECOVERY_TAG`

Return an account's ad blocking recovery tag and its optional error-protection code.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `account_name` | string | Yes | Complete account resource name in the form accounts/{account}. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Ad Client

**Slug:** `GOOGLE_ADSENSE_GET_AD_CLIENT`

Return one ad client by its complete resource name.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `ad_client_name` | string | Yes | Complete ad client resource name in the form accounts/{account}/adclients/{adclient}. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Ad Client Code

**Slug:** `GOOGLE_ADSENSE_GET_AD_CLIENT_CODE`

Return standard and AMP AdSense code snippets for an AFC ad client.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `ad_client_name` | string | Yes | Complete AFC ad client resource name in the form accounts/{account}/adclients/{adclient}. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Ad Unit

**Slug:** `GOOGLE_ADSENSE_GET_AD_UNIT`

Return one Google AdSense ad unit by its complete resource name.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `ad_unit_name` | string | Yes | Complete ad unit resource name in the form accounts/{account}/adclients/{adclient}/adunits/{adunit}. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Ad Unit Code

**Slug:** `GOOGLE_ADSENSE_GET_AD_UNIT_CODE`

Return the complete HTML code snippet for one Google AdSense ad unit.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `ad_unit_name` | string | Yes | Complete ad unit resource name in the form accounts/{account}/adclients/{adclient}/adunits/{adunit}. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Custom Channel

**Slug:** `GOOGLE_ADSENSE_GET_CUSTOM_CHANNEL`

Return one custom channel by its complete resource name.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `custom_channel_name` | string | Yes | Complete custom channel resource name in the form accounts/{account}/adclients/{adclient}/customchannels/{customchannel}. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Policy Issue

**Slug:** `GOOGLE_ADSENSE_GET_POLICY_ISSUE`

Return one AdSense policy issue and all of its enforcement details.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `policy_issue_name` | string | Yes | Complete policy issue resource name in the form accounts/{account}/policyIssues/{policy_issue}. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Saved Report

**Slug:** `GOOGLE_ADSENSE_GET_SAVED_REPORT`

Return one saved report's complete resource name and title.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `saved_report_name` | string | Yes | Complete saved report resource name in the form accounts/{account}/reports/{report}. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Site

**Slug:** `GOOGLE_ADSENSE_GET_SITE`

Return one AdSense site by its complete resource name.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `site_name` | string | Yes | Complete site resource name in the form accounts/{account}/sites/{site}. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get URL Channel

**Slug:** `GOOGLE_ADSENSE_GET_URL_CHANNEL`

Return one URL channel by its complete resource name.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `url_channel_name` | string | Yes | Complete URL channel resource name in the form accounts/{account}/adclients/{adclient}/urlchannels/{urlchannel}. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### List Accounts

**Slug:** `GOOGLE_ADSENSE_LIST_ACCOUNTS`

Return one page of AdSense accounts available to the connected user.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `cursor` | string | No | Opaque continuation cursor returned as next_cursor by a previous call. Pass it back unchanged; it restores the original page_size automatically. |
| `page_size` | integer | No | Maximum accounts in this page. Google coerces values above 10000 to 10000. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### List Ad Clients

**Slug:** `GOOGLE_ADSENSE_LIST_AD_CLIENTS`

Return one page of ad clients available in an AdSense account.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `cursor` | string | No | Opaque continuation cursor returned as next_cursor by a previous call. Pass it back unchanged; it restores the original account and page_size. |
| `page_size` | integer | No | Maximum ad clients in this page. Google coerces values above 10000 to 10000. |
| `account_name` | string | Yes | Complete parent account resource name: accounts/{account}. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### List Ad Unit Custom Channels

**Slug:** `GOOGLE_ADSENSE_LIST_AD_UNIT_CUSTOM_CHANNELS`

Return one page of custom channels linked to an AdSense ad unit.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `cursor` | string | No | Opaque continuation cursor returned as next_cursor by a previous call. Pass it back unchanged; it restores the original ad unit and page_size. |
| `page_size` | integer | No | Maximum linked custom channels in this page. Google coerces values above 10000 to 10000. |
| `ad_unit_name` | string | Yes | Complete ad unit resource name: accounts/{account}/adclients/{adclient}/adunits/{adunit}. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### List Ad Units

**Slug:** `GOOGLE_ADSENSE_LIST_AD_UNITS`

Return one page of ad units owned by an AdSense ad client.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `cursor` | string | No | Opaque continuation cursor returned as next_cursor by a previous call. Pass it back unchanged; it restores the original ad client and page_size. |
| `page_size` | integer | No | Maximum ad units in this page. Google coerces values above 10000 to 10000. |
| `ad_client_name` | string | Yes | Complete parent ad client resource name: accounts/{account}/adclients/{adclient}. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### List Alerts

**Slug:** `GOOGLE_ADSENSE_LIST_ALERTS`

Return AdSense account alerts localized to an optional language.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `account_name` | string | Yes | Complete parent account resource name: accounts/{account}. |
| `language_code` | string | No | IETF BCP-47 language code for alert messages. Unsupported values fall back to English; omission uses the user's display language. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### List Child Accounts

**Slug:** `GOOGLE_ADSENSE_LIST_CHILD_ACCOUNTS`

Return one page of accounts directly managed by a parent AdSense account.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `cursor` | string | No | Opaque continuation cursor returned as next_cursor by a previous call. Pass it back unchanged; it restores the original account and page_size. |
| `page_size` | integer | No | Maximum child accounts in this page. Google coerces values above 10000 to 10000. |
| `account_name` | string | Yes | Complete parent account resource name: accounts/{account}. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### List Custom Channel Ad Units

**Slug:** `GOOGLE_ADSENSE_LIST_CUSTOM_CHANNEL_AD_UNITS`

Return one page of ad units linked to a custom channel.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `cursor` | string | No | Opaque continuation cursor returned as next_cursor by a previous call. Pass it back unchanged; it restores the original custom channel and page_size. |
| `page_size` | integer | No | Maximum linked ad units in this page. Google coerces values above 10000 to 10000. |
| `custom_channel_name` | string | Yes | Complete custom channel resource name: accounts/{account}/adclients/{adclient}/customchannels/{customchannel}. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### List Custom Channels

**Slug:** `GOOGLE_ADSENSE_LIST_CUSTOM_CHANNELS`

Return one page of custom channels owned by an AdSense ad client.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `cursor` | string | No | Opaque continuation cursor returned as next_cursor by a previous call. Pass it back unchanged; it restores the original ad client and page_size. |
| `page_size` | integer | No | Maximum custom channels in this page. Google coerces values above 10000 to 10000. |
| `ad_client_name` | string | Yes | Complete parent ad client resource name: accounts/{account}/adclients/{adclient}. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### List Payments

**Slug:** `GOOGLE_ADSENSE_LIST_PAYMENTS`

Return paid and unpaid payment records available for an AdSense account.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `account_name` | string | Yes | Complete parent account resource name: accounts/{account}. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### List Policy Issues

**Slug:** `GOOGLE_ADSENSE_LIST_POLICY_ISSUES`

Return one page of policy issues affecting an account or its AFP children.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `cursor` | string | No | Opaque continuation cursor returned as next_cursor by a previous call. Pass it back unchanged; it restores the original account and page_size. |
| `page_size` | integer | No | Maximum policy issues in this page. Google coerces values above 10000 to 10000. |
| `account_name` | string | Yes | Complete parent account resource name: accounts/{account}. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### List Saved Reports

**Slug:** `GOOGLE_ADSENSE_LIST_SAVED_REPORTS`

Return one page of publisher-created saved reports for an account.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `cursor` | string | No | Opaque continuation cursor returned as next_cursor by a previous call. Pass it back unchanged; it restores the original account and page_size. |
| `page_size` | integer | No | Maximum saved reports in this page. Google coerces values above 10000 to 10000. |
| `account_name` | string | Yes | Complete parent account resource name: accounts/{account}. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### List Sites

**Slug:** `GOOGLE_ADSENSE_LIST_SITES`

Return one page of sites available in an AdSense account.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `cursor` | string | No | Opaque continuation cursor returned as next_cursor by a previous call. Pass it back unchanged; it restores the original account and page_size. |
| `page_size` | integer | No | Maximum sites in this page. Google coerces values above 10000 to 10000. |
| `account_name` | string | Yes | Complete parent account resource name: accounts/{account}. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### List URL Channels

**Slug:** `GOOGLE_ADSENSE_LIST_URL_CHANNELS`

Return one page of active URL channels owned by an AdSense ad client.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `cursor` | string | No | Opaque continuation cursor returned as next_cursor by a previous call. Pass it back unchanged; it restores the original ad client and page_size. |
| `page_size` | integer | No | Maximum URL channels in this page. Google coerces values above 10000 to 10000. |
| `ad_client_name` | string | Yes | Complete parent ad client resource name: accounts/{account}/adclients/{adclient}. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Update Ad Unit

**Slug:** `GOOGLE_ADSENSE_UPDATE_AD_UNIT`

Replace all writable settings of a DISPLAY ad unit. This operation requires a Google Cloud project enabled for AdSense for Platforms.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `state` | string ("ACTIVE" | "ARCHIVED") | Yes | Complete replacement state. |
| `ad_unit_name` | string | Yes | Complete ad unit resource name: accounts/{account}/adclients/{adclient}/adunits/{adunit}. |
| `display_name` | string | Yes | Complete replacement display name. |
| `content_ads_settings` | object | Yes | Complete replacement content ad settings. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Update Custom Channel

**Slug:** `GOOGLE_ADSENSE_UPDATE_CUSTOM_CHANNEL`

Replace all writable settings of a custom channel. This operation requires a Google Cloud project enabled for AdSense for Platforms.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `active` | boolean | Yes | Complete replacement active state. |
| `display_name` | string | Yes | Complete replacement display name. |
| `custom_channel_name` | string | Yes | Complete custom channel resource name: accounts/{account}/adclients/{adclient}/customchannels/{customchannel}. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |
