REST Resource: platforms.accounts.sites
Stay organized with collections
Save and categorize content based on your preferences.
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-07-04 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-04 UTC."],[[["\u003cp\u003eA Site resource represents a domain/sub-domain and has a state indicating its readiness to show ads.\u003c/p\u003e\n"],["\u003cp\u003eSite state can be \u003ccode\u003eREQUIRES_REVIEW\u003c/code\u003e, \u003ccode\u003eGETTING_READY\u003c/code\u003e, \u003ccode\u003eREADY\u003c/code\u003e, or \u003ccode\u003eNEEDS_ATTENTION\u003c/code\u003e, impacting ad serving.\u003c/p\u003e\n"],["\u003cp\u003eYou can manage sites using methods like create, delete, get, list, and requestReview to control their lifecycle within your AdSense account.\u003c/p\u003e\n"],["\u003cp\u003eSite resources include information like name, domain, and state, accessible through a JSON representation.\u003c/p\u003e\n"]]],["A site is represented with a name, domain, and state. The state can be `REQUIRES_REVIEW`, `GETTING_READY`, `READY`, or `NEEDS_ATTENTION`, each indicating the site's readiness for ads. Actions include creating, deleting, getting, and listing sites within an account. Additionally, a `requestReview` method exists to initiate a site review. Site domains must adhere to RFC standards. The State field is read only.\n"],null,["# REST Resource: platforms.accounts.sites\n\n- [Resource: Site](#Site)\n - [JSON representation](#Site.SCHEMA_REPRESENTATION)\n- [State](#State)\n- [Methods](#METHODS_SUMMARY)\n\nResource: Site\n--------------\n\nRepresentation of a Site.\n\n| JSON representation |\n|-----------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"name\": string, \"domain\": string, \"state\": enum (/adsense/platforms/reference/rest/v1/platforms.accounts.sites#State) } ``` |\n\n| Fields ||\n|----------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` Output only. Resource name of a site. Format: platforms/{platform}/accounts/{account}/sites/{site} |\n| `domain` | `string` Domain/sub-domain of the site. Must be a valid domain complying with [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt) and formatted as punycode [RFC 3492](https://www.ietf.org/rfc/rfc3492.txt) in case the domain contains unicode characters. |\n| `state` | `enum (`[State](/adsense/platforms/reference/rest/v1/platforms.accounts.sites#State)`)` Output only. State of a site. |\n\nState\n-----\n\nState of the site. See [Check the status of AdSense sites](https://support.google.com/adsense/answer/9128461) for more information.\n\n| Enums ||\n|---------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `STATE_UNSPECIFIED` | State unspecified. |\n| `REQUIRES_REVIEW` | Either: - The site hasn't been checked yet. - The site is inactive and needs another review before it can show ads again. Learn how to [request a review for an inactive site](https://support.google.com/adsense/answer/9393996). |\n| `GETTING_READY` | Google is running some checks on the site. This usually takes a few days, but in some cases it can take two to four weeks. |\n| `READY` | The site is ready to show ads. Learn how to [set up ads on the site](https://support.google.com/adsense/answer/7037624). |\n| `NEEDS_ATTENTION` | Publisher needs to fix some issues before the site is ready to show ads. Learn what to do [if a new site isn't ready](https://support.google.com/adsense/answer/9061852). |\n\n| Methods ------- ||\n|--------------------------------------------------------------------------------------------------|-------------------------------------------|\n| ### [create](/adsense/platforms/reference/rest/v1/platforms.accounts.sites/create) | Creates a site for a specified account. |\n| ### [delete](/adsense/platforms/reference/rest/v1/platforms.accounts.sites/delete) | Deletes a site from a specified account. |\n| ### [get](/adsense/platforms/reference/rest/v1/platforms.accounts.sites/get) | Gets a site from a specified sub-account. |\n| ### [list](/adsense/platforms/reference/rest/v1/platforms.accounts.sites/list) | Lists sites for a specific account. |\n| ### [requestReview](/adsense/platforms/reference/rest/v1/platforms.accounts.sites/requestReview) | Requests the review of a site. |"]]