REST Resource: accounts.adclients
Resource: AdClient
Representation of an ad client. An ad client represents a user's subscription with a specific AdSense product.
JSON representation |
{
"name": string,
"reportingDimensionId": string,
"productCode": string,
"state": enum (State )
} |
Fields |
name |
string
Output only. Resource name of the ad client. Format: accounts/{account}/adclients/{adclient}
|
reportingDimensionId |
string
Output only. Unique ID of the ad client as used in the AD_CLIENT_ID reporting dimension. Present only if the ad client supports reporting.
|
productCode |
string
Output only. Reporting product code of the ad client. For example, "AFC" for AdSense for Content. Corresponds to the PRODUCT_CODE dimension, and present only if the ad client supports reporting.
|
state |
enum (State )
Output only. State of the ad client.
|
State
Possible states of the ad client.
Enums |
STATE_UNSPECIFIED |
State unspecified. |
READY |
The ad client is ready to show ads. |
GETTING_READY |
Running some checks on the ad client before it is ready to serve ads. |
REQUIRES_REVIEW |
The ad client hasn't been checked yet. There are tasks pending before AdSense will start the review. |
Methods |
|
Gets the ad client from the given resource name. |
|
Gets the AdSense code for a given ad client. |
|
Lists all the ad clients available in an account. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-02-28 UTC.
[null,null,["Last updated 2025-02-28 UTC."],[[["AdClient represents a user's subscription within a specific AdSense product and provides details such as name, reporting dimension ID, product code, and state."],["AdClients have various states: unspecified, ready, getting ready, and requires review, indicating their operational status."],["You can manage AdClients by retrieving them, getting AdSense code, and listing all clients associated with an account."],["AdClient supports reporting by providing information like `reportingDimensionId` and `productCode`."]]],["The core content defines the `AdClient` resource, representing a user's AdSense product subscription. It contains read-only fields like `name`, `reportingDimensionId`, `productCode`, and `state`. The `state` can be `READY`, `GETTING_READY`, or `REQUIRES_REVIEW`. Key actions involve using methods to `get` a specific ad client, `getAdcode` for its AdSense code, or `list` all ad clients within an account. The data is represented in JSON format.\n"]]