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.\u003c/p\u003e\n"],["\u003cp\u003eRefer to the JSON representation for the structure and fields associated with a Site resource.\u003c/p\u003e\n"]]],["The provided content outlines the representation of a \"Site\" resource, including its JSON structure with `name`, `domain`, and `state` fields. The `state` field indicates the site's status, with possible values such as `REQUIRES_REVIEW`, `GETTING_READY`, `READY`, and `NEEDS_ATTENTION`. Key actions for managing sites include creating, deleting, getting details of, listing, and requesting a review of them. The `name` field is output 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/v1alpha/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/v1alpha/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/v1alpha/platforms.accounts.sites/create) | Creates a site for a specified account. |\n| ### [delete](/adsense/platforms/reference/rest/v1alpha/platforms.accounts.sites/delete) | Deletes a site from a specified account. |\n| ### [get](/adsense/platforms/reference/rest/v1alpha/platforms.accounts.sites/get) | Gets a site from a specified sub-account. |\n| ### [list](/adsense/platforms/reference/rest/v1alpha/platforms.accounts.sites/list) | Lists sites for a specific account. |\n| ### [requestReview](/adsense/platforms/reference/rest/v1alpha/platforms.accounts.sites/requestReview) | Requests the review of a site. |"]]