📂 File Browser

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

📁 Directories

📁 Resource/ 🔓 Open

📄 Files

🐘 BestSellersBrandView.php
▶ Open 📄 View Source
🐘 BestSellersProductClusterView.php
▶ Open 📄 View Source
🐘 CompetitiveVisibilityBenchmarkView.php
▶ Open 📄 View Source
🐘 CompetitiveVisibilityCompetitorView.php
▶ Open 📄 View Source
🐘 CompetitiveVisibilityTopMerchantView.php
▶ Open 📄 View Source
🐘 CustomAttribute.php
▶ Open 📄 View Source
🐘 Date.php
▶ Open 📄 View Source
🐘 IssueSeverityPerReportingContext.php
▶ Open 📄 View Source
🐘 ItemIssue.php
▶ Open 📄 View Source
🐘 ItemIssueSeverity.php
▶ Open 📄 View Source
🐘 ItemIssueType.php
▶ Open 📄 View Source
🐘 ListMerchantReviewsResponse.php
▶ Open 📄 View Source
🐘 ListProductReviewsResponse.php
▶ Open 📄 View Source
🐘 MerchantReview.php
▶ Open 📄 View Source
🐘 MerchantReviewAttributes.php
▶ Open 📄 View Source
🐘 MerchantReviewDestinationStatus.php
▶ Open 📄 View Source
🐘 MerchantReviewItemLevelIssue.php
▶ Open 📄 View Source
🐘 MerchantReviewStatus.php
▶ Open 📄 View Source
🐘 MerchantapiEmpty.php
▶ Open 📄 View Source
🐘 NonProductPerformanceView.php
▶ Open 📄 View Source
🐘 Price.php
▶ Open 📄 View Source
🐘 PriceCompetitivenessProductView.php
▶ Open 📄 View Source
🐘 PriceInsightsProductView.php
▶ Open 📄 View Source
🐘 ProductChange.php
▶ Open 📄 View Source
🐘 ProductPerformanceView.php
▶ Open 📄 View Source
🐘 ProductReview.php
▶ Open 📄 View Source
🐘 ProductReviewAttributes.php
▶ Open 📄 View Source
🐘 ProductReviewDestinationStatus.php
▶ Open 📄 View Source
🐘 ProductReviewItemLevelIssue.php
▶ Open 📄 View Source
🐘 ProductReviewStatus.php
▶ Open 📄 View Source
🐘 ProductStatusChangeMessage.php
▶ Open 📄 View Source
🐘 ProductView.php
▶ Open 📄 View Source
🐘 ReportRow.php
▶ Open 📄 View Source
🐘 ReviewLink.php
▶ Open 📄 View Source
🐘 SearchRequest.php
▶ Open 📄 View Source
🐘 SearchResponse.php
▶ Open 📄 View Source

📄 Source: ProductChange.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\Merchant;

class ProductChange extends \Google\Model
{
  /**
   * Not specified.
   */
  public const REPORTING_CONTEXT_REPORTING_CONTEXT_ENUM_UNSPECIFIED = 'REPORTING_CONTEXT_ENUM_UNSPECIFIED';
  /**
   * [Shopping ads](https://support.google.com/merchants/answer/6149970).
   */
  public const REPORTING_CONTEXT_SHOPPING_ADS = 'SHOPPING_ADS';
  /**
   * Deprecated: Use `DEMAND_GEN_ADS` instead. [Discovery and Demand Gen
   * ads](https://support.google.com/merchants/answer/13389785).
   *
   * @deprecated
   */
  public const REPORTING_CONTEXT_DISCOVERY_ADS = 'DISCOVERY_ADS';
  /**
   * [Demand Gen ads](https://support.google.com/merchants/answer/13389785).
   */
  public const REPORTING_CONTEXT_DEMAND_GEN_ADS = 'DEMAND_GEN_ADS';
  /**
   * [Demand Gen ads on Discover
   * surface](https://support.google.com/merchants/answer/13389785).
   */
  public const REPORTING_CONTEXT_DEMAND_GEN_ADS_DISCOVER_SURFACE = 'DEMAND_GEN_ADS_DISCOVER_SURFACE';
  /**
   * [Video ads](https://support.google.com/google-ads/answer/6340491).
   */
  public const REPORTING_CONTEXT_VIDEO_ADS = 'VIDEO_ADS';
  /**
   * [Display ads](https://support.google.com/merchants/answer/6069387).
   */
  public const REPORTING_CONTEXT_DISPLAY_ADS = 'DISPLAY_ADS';
  /**
   * [Local inventory ads](https://support.google.com/merchants/answer/3271956).
   */
  public const REPORTING_CONTEXT_LOCAL_INVENTORY_ADS = 'LOCAL_INVENTORY_ADS';
  /**
   * [Vehicle inventory
   * ads](https://support.google.com/merchants/answer/11544533).
   */
  public const REPORTING_CONTEXT_VEHICLE_INVENTORY_ADS = 'VEHICLE_INVENTORY_ADS';
  /**
   * [Free product
   * listings](https://support.google.com/merchants/answer/9199328).
   */
  public const REPORTING_CONTEXT_FREE_LISTINGS = 'FREE_LISTINGS';
  /**
   * [Free product listings on UCP
   * checkout](https://developers.google.com/merchant/ucp).
   */
  public const REPORTING_CONTEXT_FREE_LISTINGS_UCP_CHECKOUT = 'FREE_LISTINGS_UCP_CHECKOUT';
  /**
   * [Free local product
   * listings](https://support.google.com/merchants/answer/9825611).
   */
  public const REPORTING_CONTEXT_FREE_LOCAL_LISTINGS = 'FREE_LOCAL_LISTINGS';
  /**
   * [Free local vehicle
   * listings](https://support.google.com/merchants/answer/11544533).
   */
  public const REPORTING_CONTEXT_FREE_LOCAL_VEHICLE_LISTINGS = 'FREE_LOCAL_VEHICLE_LISTINGS';
  /**
   * [Youtube Affiliate](https://support.google.com/youtube/answer/13376398).
   */
  public const REPORTING_CONTEXT_YOUTUBE_AFFILIATE = 'YOUTUBE_AFFILIATE';
  /**
   * [YouTube Shopping](https://support.google.com/merchants/answer/13478370).
   */
  public const REPORTING_CONTEXT_YOUTUBE_SHOPPING = 'YOUTUBE_SHOPPING';
  /**
   * [Cloud retail](https://cloud.google.com/solutions/retail).
   */
  public const REPORTING_CONTEXT_CLOUD_RETAIL = 'CLOUD_RETAIL';
  /**
   * [Local cloud retail](https://cloud.google.com/solutions/retail).
   */
  public const REPORTING_CONTEXT_LOCAL_CLOUD_RETAIL = 'LOCAL_CLOUD_RETAIL';
  /**
   * [Product Reviews](https://support.google.com/merchants/answer/14620732).
   */
  public const REPORTING_CONTEXT_PRODUCT_REVIEWS = 'PRODUCT_REVIEWS';
  /**
   * [Merchant Reviews](https://developers.google.com/merchant-review-feeds).
   */
  public const REPORTING_CONTEXT_MERCHANT_REVIEWS = 'MERCHANT_REVIEWS';
  /**
   * YouTube Checkout .
   */
  public const REPORTING_CONTEXT_YOUTUBE_CHECKOUT = 'YOUTUBE_CHECKOUT';
  /**
   * The new value of the changed resource or attribute. If empty, it means that
   * the product was deleted. Will have one of these values : (`approved`,
   * `pending`, `disapproved`, ``)
   *
   * @var string
   */
  public $newValue;
  /**
   * The old value of the changed resource or attribute. If empty, it means that
   * the product was created. Will have one of these values : (`approved`,
   * `pending`, `disapproved`, ``)
   *
   * @var string
   */
  public $oldValue;
  /**
   * Countries that have the change (if applicable). Represented in the ISO 3166
   * format.
   *
   * @var string
   */
  public $regionCode;
  /**
   * Reporting contexts that have the change (if applicable). Currently this
   * field supports only (`SHOPPING_ADS`, `LOCAL_INVENTORY_ADS`,
   * `YOUTUBE_SHOPPING`, `YOUTUBE_CHECKOUT`, `YOUTUBE_AFFILIATE`) from the enum
   * value [ReportingContextEnum](/merchant/api/reference/rest/Shared.Types/Repo
   * rtingContextEnum)
   *
   * @var string
   */
  public $reportingContext;

  /**
   * The new value of the changed resource or attribute. If empty, it means that
   * the product was deleted. Will have one of these values : (`approved`,
   * `pending`, `disapproved`, ``)
   *
   * @param string $newValue
   */
  public function setNewValue($newValue)
  {
    $this->newValue = $newValue;
  }
  /**
   * @return string
   */
  public function getNewValue()
  {
    return $this->newValue;
  }
  /**
   * The old value of the changed resource or attribute. If empty, it means that
   * the product was created. Will have one of these values : (`approved`,
   * `pending`, `disapproved`, ``)
   *
   * @param string $oldValue
   */
  public function setOldValue($oldValue)
  {
    $this->oldValue = $oldValue;
  }
  /**
   * @return string
   */
  public function getOldValue()
  {
    return $this->oldValue;
  }
  /**
   * Countries that have the change (if applicable). Represented in the ISO 3166
   * format.
   *
   * @param string $regionCode
   */
  public function setRegionCode($regionCode)
  {
    $this->regionCode = $regionCode;
  }
  /**
   * @return string
   */
  public function getRegionCode()
  {
    return $this->regionCode;
  }
  /**
   * Reporting contexts that have the change (if applicable). Currently this
   * field supports only (`SHOPPING_ADS`, `LOCAL_INVENTORY_ADS`,
   * `YOUTUBE_SHOPPING`, `YOUTUBE_CHECKOUT`, `YOUTUBE_AFFILIATE`) from the enum
   * value [ReportingContextEnum](/merchant/api/reference/rest/Shared.Types/Repo
   * rtingContextEnum)
   *
   * Accepted values: REPORTING_CONTEXT_ENUM_UNSPECIFIED, SHOPPING_ADS,
   * DISCOVERY_ADS, DEMAND_GEN_ADS, DEMAND_GEN_ADS_DISCOVER_SURFACE, VIDEO_ADS,
   * DISPLAY_ADS, LOCAL_INVENTORY_ADS, VEHICLE_INVENTORY_ADS, FREE_LISTINGS,
   * FREE_LISTINGS_UCP_CHECKOUT, FREE_LOCAL_LISTINGS,
   * FREE_LOCAL_VEHICLE_LISTINGS, YOUTUBE_AFFILIATE, YOUTUBE_SHOPPING,
   * CLOUD_RETAIL, LOCAL_CLOUD_RETAIL, PRODUCT_REVIEWS, MERCHANT_REVIEWS,
   * YOUTUBE_CHECKOUT
   *
   * @param self::REPORTING_CONTEXT_* $reportingContext
   */
  public function setReportingContext($reportingContext)
  {
    $this->reportingContext = $reportingContext;
  }
  /**
   * @return self::REPORTING_CONTEXT_*
   */
  public function getReportingContext()
  {
    return $this->reportingContext;
  }
}

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