📂 File Browser

AgentAI/vendor/google/apiclient-services/src/AdSensePlatform
🌙 Dark Mode
🎯 Quick Launch:

📁 Directories

📁 Resource/ 🔓 Open

📄 Files

🐘 Account.php
▶ Open 📄 View Source
🐘 Address.php
▶ Open 📄 View Source
🐘 AdsenseplatformEmpty.php
▶ Open 📄 View Source
🐘 CloseAccountRequest.php
▶ Open 📄 View Source
🐘 CloseAccountResponse.php
▶ Open 📄 View Source
🐘 Event.php
▶ Open 📄 View Source
🐘 EventInfo.php
▶ Open 📄 View Source
🐘 ListAccountsResponse.php
▶ Open 📄 View Source
🐘 ListSitesResponse.php
▶ Open 📄 View Source
🐘 LookupAccountResponse.php
▶ Open 📄 View Source
🐘 RequestSiteReviewResponse.php
▶ Open 📄 View Source
🐘 Site.php
▶ Open 📄 View Source
🐘 TimeZone.php
▶ Open 📄 View Source

📄 Source: Site.php

<?php
/*
 * Copyright 2014 Google Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */

namespace Google\Service\AdSensePlatform;

class Site extends \Google\Model
{
  /**
   * State unspecified.
   */
  public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
  /**
   * 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).
   */
  public const STATE_REQUIRES_REVIEW = 'REQUIRES_REVIEW';
  /**
   * 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.
   */
  public const STATE_GETTING_READY = 'GETTING_READY';
  /**
   * The site is ready to show ads. Learn how to [set up ads on the
   * site](https://support.google.com/adsense/answer/7037624).
   */
  public const STATE_READY = 'READY';
  /**
   * 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).
   */
  public const STATE_NEEDS_ATTENTION = 'NEEDS_ATTENTION';
  /**
   * 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.
   *
   * @var string
   */
  public $domain;
  /**
   * Output only. Resource name of a site. Format:
   * platforms/{platform}/accounts/{account}/sites/{site}
   *
   * @var string
   */
  public $name;
  /**
   * Output only. State of a site.
   *
   * @var string
   */
  public $state;

  /**
   * 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.
   *
   * @param string $domain
   */
  public function setDomain($domain)
  {
    $this->domain = $domain;
  }
  /**
   * @return string
   */
  public function getDomain()
  {
    return $this->domain;
  }
  /**
   * Output only. Resource name of a site. Format:
   * platforms/{platform}/accounts/{account}/sites/{site}
   *
   * @param string $name
   */
  public function setName($name)
  {
    $this->name = $name;
  }
  /**
   * @return string
   */
  public function getName()
  {
    return $this->name;
  }
  /**
   * Output only. State of a site.
   *
   * Accepted values: STATE_UNSPECIFIED, REQUIRES_REVIEW, GETTING_READY, READY,
   * NEEDS_ATTENTION
   *
   * @param self::STATE_* $state
   */
  public function setState($state)
  {
    $this->state = $state;
  }
  /**
   * @return self::STATE_*
   */
  public function getState()
  {
    return $this->state;
  }
}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Site::class, 'Google_Service_AdSensePlatform_Site');
← Back