gestione documentale avanzata 1 parte

This commit is contained in:
2026-05-28 09:34:28 +02:00
parent 3471befb1a
commit f2b0833b90
34482 changed files with 4312269 additions and 546 deletions
@@ -0,0 +1,204 @@
<?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 BestSellersBrandView extends \Google\Model
{
/**
* @var string
*/
public $brand;
/**
* @var string
*/
public $previousRank;
/**
* @var string
*/
public $previousRelativeDemand;
/**
* @var string
*/
public $rank;
/**
* @var string
*/
public $relativeDemand;
/**
* @var string
*/
public $relativeDemandChange;
/**
* @var string
*/
public $reportCategoryId;
/**
* @var string
*/
public $reportCountryCode;
protected $reportDateType = Date::class;
protected $reportDateDataType = '';
/**
* @var string
*/
public $reportGranularity;
/**
* @param string
*/
public function setBrand($brand)
{
$this->brand = $brand;
}
/**
* @return string
*/
public function getBrand()
{
return $this->brand;
}
/**
* @param string
*/
public function setPreviousRank($previousRank)
{
$this->previousRank = $previousRank;
}
/**
* @return string
*/
public function getPreviousRank()
{
return $this->previousRank;
}
/**
* @param string
*/
public function setPreviousRelativeDemand($previousRelativeDemand)
{
$this->previousRelativeDemand = $previousRelativeDemand;
}
/**
* @return string
*/
public function getPreviousRelativeDemand()
{
return $this->previousRelativeDemand;
}
/**
* @param string
*/
public function setRank($rank)
{
$this->rank = $rank;
}
/**
* @return string
*/
public function getRank()
{
return $this->rank;
}
/**
* @param string
*/
public function setRelativeDemand($relativeDemand)
{
$this->relativeDemand = $relativeDemand;
}
/**
* @return string
*/
public function getRelativeDemand()
{
return $this->relativeDemand;
}
/**
* @param string
*/
public function setRelativeDemandChange($relativeDemandChange)
{
$this->relativeDemandChange = $relativeDemandChange;
}
/**
* @return string
*/
public function getRelativeDemandChange()
{
return $this->relativeDemandChange;
}
/**
* @param string
*/
public function setReportCategoryId($reportCategoryId)
{
$this->reportCategoryId = $reportCategoryId;
}
/**
* @return string
*/
public function getReportCategoryId()
{
return $this->reportCategoryId;
}
/**
* @param string
*/
public function setReportCountryCode($reportCountryCode)
{
$this->reportCountryCode = $reportCountryCode;
}
/**
* @return string
*/
public function getReportCountryCode()
{
return $this->reportCountryCode;
}
/**
* @param Date
*/
public function setReportDate(Date $reportDate)
{
$this->reportDate = $reportDate;
}
/**
* @return Date
*/
public function getReportDate()
{
return $this->reportDate;
}
/**
* @param string
*/
public function setReportGranularity($reportGranularity)
{
$this->reportGranularity = $reportGranularity;
}
/**
* @return string
*/
public function getReportGranularity()
{
return $this->reportGranularity;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BestSellersBrandView::class, 'Google_Service_Merchant_BestSellersBrandView');
@@ -0,0 +1,367 @@
<?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 BestSellersProductClusterView extends \Google\Collection
{
protected $collection_key = 'variantGtins';
/**
* @var string
*/
public $brand;
/**
* @var string
*/
public $brandInventoryStatus;
/**
* @var string
*/
public $categoryL1;
/**
* @var string
*/
public $categoryL2;
/**
* @var string
*/
public $categoryL3;
/**
* @var string
*/
public $categoryL4;
/**
* @var string
*/
public $categoryL5;
/**
* @var string
*/
public $inventoryStatus;
/**
* @var string
*/
public $previousRank;
/**
* @var string
*/
public $previousRelativeDemand;
/**
* @var string
*/
public $rank;
/**
* @var string
*/
public $relativeDemand;
/**
* @var string
*/
public $relativeDemandChange;
/**
* @var string
*/
public $reportCategoryId;
/**
* @var string
*/
public $reportCountryCode;
protected $reportDateType = Date::class;
protected $reportDateDataType = '';
/**
* @var string
*/
public $reportGranularity;
/**
* @var string
*/
public $title;
/**
* @var string[]
*/
public $variantGtins;
/**
* @param string
*/
public function setBrand($brand)
{
$this->brand = $brand;
}
/**
* @return string
*/
public function getBrand()
{
return $this->brand;
}
/**
* @param string
*/
public function setBrandInventoryStatus($brandInventoryStatus)
{
$this->brandInventoryStatus = $brandInventoryStatus;
}
/**
* @return string
*/
public function getBrandInventoryStatus()
{
return $this->brandInventoryStatus;
}
/**
* @param string
*/
public function setCategoryL1($categoryL1)
{
$this->categoryL1 = $categoryL1;
}
/**
* @return string
*/
public function getCategoryL1()
{
return $this->categoryL1;
}
/**
* @param string
*/
public function setCategoryL2($categoryL2)
{
$this->categoryL2 = $categoryL2;
}
/**
* @return string
*/
public function getCategoryL2()
{
return $this->categoryL2;
}
/**
* @param string
*/
public function setCategoryL3($categoryL3)
{
$this->categoryL3 = $categoryL3;
}
/**
* @return string
*/
public function getCategoryL3()
{
return $this->categoryL3;
}
/**
* @param string
*/
public function setCategoryL4($categoryL4)
{
$this->categoryL4 = $categoryL4;
}
/**
* @return string
*/
public function getCategoryL4()
{
return $this->categoryL4;
}
/**
* @param string
*/
public function setCategoryL5($categoryL5)
{
$this->categoryL5 = $categoryL5;
}
/**
* @return string
*/
public function getCategoryL5()
{
return $this->categoryL5;
}
/**
* @param string
*/
public function setInventoryStatus($inventoryStatus)
{
$this->inventoryStatus = $inventoryStatus;
}
/**
* @return string
*/
public function getInventoryStatus()
{
return $this->inventoryStatus;
}
/**
* @param string
*/
public function setPreviousRank($previousRank)
{
$this->previousRank = $previousRank;
}
/**
* @return string
*/
public function getPreviousRank()
{
return $this->previousRank;
}
/**
* @param string
*/
public function setPreviousRelativeDemand($previousRelativeDemand)
{
$this->previousRelativeDemand = $previousRelativeDemand;
}
/**
* @return string
*/
public function getPreviousRelativeDemand()
{
return $this->previousRelativeDemand;
}
/**
* @param string
*/
public function setRank($rank)
{
$this->rank = $rank;
}
/**
* @return string
*/
public function getRank()
{
return $this->rank;
}
/**
* @param string
*/
public function setRelativeDemand($relativeDemand)
{
$this->relativeDemand = $relativeDemand;
}
/**
* @return string
*/
public function getRelativeDemand()
{
return $this->relativeDemand;
}
/**
* @param string
*/
public function setRelativeDemandChange($relativeDemandChange)
{
$this->relativeDemandChange = $relativeDemandChange;
}
/**
* @return string
*/
public function getRelativeDemandChange()
{
return $this->relativeDemandChange;
}
/**
* @param string
*/
public function setReportCategoryId($reportCategoryId)
{
$this->reportCategoryId = $reportCategoryId;
}
/**
* @return string
*/
public function getReportCategoryId()
{
return $this->reportCategoryId;
}
/**
* @param string
*/
public function setReportCountryCode($reportCountryCode)
{
$this->reportCountryCode = $reportCountryCode;
}
/**
* @return string
*/
public function getReportCountryCode()
{
return $this->reportCountryCode;
}
/**
* @param Date
*/
public function setReportDate(Date $reportDate)
{
$this->reportDate = $reportDate;
}
/**
* @return Date
*/
public function getReportDate()
{
return $this->reportDate;
}
/**
* @param string
*/
public function setReportGranularity($reportGranularity)
{
$this->reportGranularity = $reportGranularity;
}
/**
* @return string
*/
public function getReportGranularity()
{
return $this->reportGranularity;
}
/**
* @param string
*/
public function setTitle($title)
{
$this->title = $title;
}
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
/**
* @param string[]
*/
public function setVariantGtins($variantGtins)
{
$this->variantGtins = $variantGtins;
}
/**
* @return string[]
*/
public function getVariantGtins()
{
return $this->variantGtins;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BestSellersProductClusterView::class, 'Google_Service_Merchant_BestSellersProductClusterView');
@@ -0,0 +1,114 @@
<?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 CompetitiveVisibilityBenchmarkView extends \Google\Model
{
public $categoryBenchmarkVisibilityTrend;
protected $dateType = Date::class;
protected $dateDataType = '';
/**
* @var string
*/
public $reportCategoryId;
/**
* @var string
*/
public $reportCountryCode;
/**
* @var string
*/
public $trafficSource;
public $yourDomainVisibilityTrend;
public function setCategoryBenchmarkVisibilityTrend($categoryBenchmarkVisibilityTrend)
{
$this->categoryBenchmarkVisibilityTrend = $categoryBenchmarkVisibilityTrend;
}
public function getCategoryBenchmarkVisibilityTrend()
{
return $this->categoryBenchmarkVisibilityTrend;
}
/**
* @param Date
*/
public function setDate(Date $date)
{
$this->date = $date;
}
/**
* @return Date
*/
public function getDate()
{
return $this->date;
}
/**
* @param string
*/
public function setReportCategoryId($reportCategoryId)
{
$this->reportCategoryId = $reportCategoryId;
}
/**
* @return string
*/
public function getReportCategoryId()
{
return $this->reportCategoryId;
}
/**
* @param string
*/
public function setReportCountryCode($reportCountryCode)
{
$this->reportCountryCode = $reportCountryCode;
}
/**
* @return string
*/
public function getReportCountryCode()
{
return $this->reportCountryCode;
}
/**
* @param string
*/
public function setTrafficSource($trafficSource)
{
$this->trafficSource = $trafficSource;
}
/**
* @return string
*/
public function getTrafficSource()
{
return $this->trafficSource;
}
public function setYourDomainVisibilityTrend($yourDomainVisibilityTrend)
{
$this->yourDomainVisibilityTrend = $yourDomainVisibilityTrend;
}
public function getYourDomainVisibilityTrend()
{
return $this->yourDomainVisibilityTrend;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CompetitiveVisibilityBenchmarkView::class, 'Google_Service_Merchant_CompetitiveVisibilityBenchmarkView');
@@ -0,0 +1,186 @@
<?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 CompetitiveVisibilityCompetitorView extends \Google\Model
{
public $adsOrganicRatio;
protected $dateType = Date::class;
protected $dateDataType = '';
/**
* @var string
*/
public $domain;
public $higherPositionRate;
/**
* @var bool
*/
public $isYourDomain;
public $pageOverlapRate;
/**
* @var string
*/
public $rank;
public $relativeVisibility;
/**
* @var string
*/
public $reportCategoryId;
/**
* @var string
*/
public $reportCountryCode;
/**
* @var string
*/
public $trafficSource;
public function setAdsOrganicRatio($adsOrganicRatio)
{
$this->adsOrganicRatio = $adsOrganicRatio;
}
public function getAdsOrganicRatio()
{
return $this->adsOrganicRatio;
}
/**
* @param Date
*/
public function setDate(Date $date)
{
$this->date = $date;
}
/**
* @return Date
*/
public function getDate()
{
return $this->date;
}
/**
* @param string
*/
public function setDomain($domain)
{
$this->domain = $domain;
}
/**
* @return string
*/
public function getDomain()
{
return $this->domain;
}
public function setHigherPositionRate($higherPositionRate)
{
$this->higherPositionRate = $higherPositionRate;
}
public function getHigherPositionRate()
{
return $this->higherPositionRate;
}
/**
* @param bool
*/
public function setIsYourDomain($isYourDomain)
{
$this->isYourDomain = $isYourDomain;
}
/**
* @return bool
*/
public function getIsYourDomain()
{
return $this->isYourDomain;
}
public function setPageOverlapRate($pageOverlapRate)
{
$this->pageOverlapRate = $pageOverlapRate;
}
public function getPageOverlapRate()
{
return $this->pageOverlapRate;
}
/**
* @param string
*/
public function setRank($rank)
{
$this->rank = $rank;
}
/**
* @return string
*/
public function getRank()
{
return $this->rank;
}
public function setRelativeVisibility($relativeVisibility)
{
$this->relativeVisibility = $relativeVisibility;
}
public function getRelativeVisibility()
{
return $this->relativeVisibility;
}
/**
* @param string
*/
public function setReportCategoryId($reportCategoryId)
{
$this->reportCategoryId = $reportCategoryId;
}
/**
* @return string
*/
public function getReportCategoryId()
{
return $this->reportCategoryId;
}
/**
* @param string
*/
public function setReportCountryCode($reportCountryCode)
{
$this->reportCountryCode = $reportCountryCode;
}
/**
* @return string
*/
public function getReportCountryCode()
{
return $this->reportCountryCode;
}
/**
* @param string
*/
public function setTrafficSource($trafficSource)
{
$this->trafficSource = $trafficSource;
}
/**
* @return string
*/
public function getTrafficSource()
{
return $this->trafficSource;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CompetitiveVisibilityCompetitorView::class, 'Google_Service_Merchant_CompetitiveVisibilityCompetitorView');
@@ -0,0 +1,177 @@
<?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 CompetitiveVisibilityTopMerchantView extends \Google\Model
{
public $adsOrganicRatio;
protected $dateType = Date::class;
protected $dateDataType = '';
/**
* @var string
*/
public $domain;
public $higherPositionRate;
/**
* @var bool
*/
public $isYourDomain;
public $pageOverlapRate;
/**
* @var string
*/
public $rank;
/**
* @var string
*/
public $reportCategoryId;
/**
* @var string
*/
public $reportCountryCode;
/**
* @var string
*/
public $trafficSource;
public function setAdsOrganicRatio($adsOrganicRatio)
{
$this->adsOrganicRatio = $adsOrganicRatio;
}
public function getAdsOrganicRatio()
{
return $this->adsOrganicRatio;
}
/**
* @param Date
*/
public function setDate(Date $date)
{
$this->date = $date;
}
/**
* @return Date
*/
public function getDate()
{
return $this->date;
}
/**
* @param string
*/
public function setDomain($domain)
{
$this->domain = $domain;
}
/**
* @return string
*/
public function getDomain()
{
return $this->domain;
}
public function setHigherPositionRate($higherPositionRate)
{
$this->higherPositionRate = $higherPositionRate;
}
public function getHigherPositionRate()
{
return $this->higherPositionRate;
}
/**
* @param bool
*/
public function setIsYourDomain($isYourDomain)
{
$this->isYourDomain = $isYourDomain;
}
/**
* @return bool
*/
public function getIsYourDomain()
{
return $this->isYourDomain;
}
public function setPageOverlapRate($pageOverlapRate)
{
$this->pageOverlapRate = $pageOverlapRate;
}
public function getPageOverlapRate()
{
return $this->pageOverlapRate;
}
/**
* @param string
*/
public function setRank($rank)
{
$this->rank = $rank;
}
/**
* @return string
*/
public function getRank()
{
return $this->rank;
}
/**
* @param string
*/
public function setReportCategoryId($reportCategoryId)
{
$this->reportCategoryId = $reportCategoryId;
}
/**
* @return string
*/
public function getReportCategoryId()
{
return $this->reportCategoryId;
}
/**
* @param string
*/
public function setReportCountryCode($reportCountryCode)
{
$this->reportCountryCode = $reportCountryCode;
}
/**
* @return string
*/
public function getReportCountryCode()
{
return $this->reportCountryCode;
}
/**
* @param string
*/
public function setTrafficSource($trafficSource)
{
$this->trafficSource = $trafficSource;
}
/**
* @return string
*/
public function getTrafficSource()
{
return $this->trafficSource;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CompetitiveVisibilityTopMerchantView::class, 'Google_Service_Merchant_CompetitiveVisibilityTopMerchantView');
@@ -0,0 +1,92 @@
<?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 CustomAttribute extends \Google\Collection
{
protected $collection_key = 'groupValues';
protected $groupValuesType = CustomAttribute::class;
protected $groupValuesDataType = 'array';
/**
* The name of the attribute.
*
* @var string
*/
public $name;
/**
* The value of the attribute. If `value` is not empty, `group_values` must be
* empty.
*
* @var string
*/
public $value;
/**
* Subattributes within this attribute group. If `group_values` is not empty,
* `value` must be empty.
*
* @param CustomAttribute[] $groupValues
*/
public function setGroupValues($groupValues)
{
$this->groupValues = $groupValues;
}
/**
* @return CustomAttribute[]
*/
public function getGroupValues()
{
return $this->groupValues;
}
/**
* The name of the attribute.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The value of the attribute. If `value` is not empty, `group_values` must be
* empty.
*
* @param string $value
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return string
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CustomAttribute::class, 'Google_Service_Merchant_CustomAttribute');
+80
View File
@@ -0,0 +1,80 @@
<?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 Date extends \Google\Model
{
/**
* @var int
*/
public $day;
/**
* @var int
*/
public $month;
/**
* @var int
*/
public $year;
/**
* @param int
*/
public function setDay($day)
{
$this->day = $day;
}
/**
* @return int
*/
public function getDay()
{
return $this->day;
}
/**
* @param int
*/
public function setMonth($month)
{
$this->month = $month;
}
/**
* @return int
*/
public function getMonth()
{
return $this->month;
}
/**
* @param int
*/
public function setYear($year)
{
$this->year = $year;
}
/**
* @return int
*/
public function getYear()
{
return $this->year;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Date::class, 'Google_Service_Merchant_Date');
@@ -0,0 +1,81 @@
<?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 IssueSeverityPerReportingContext extends \Google\Collection
{
protected $collection_key = 'disapprovedCountries';
/**
* @var string[]
*/
public $demotedCountries;
/**
* @var string[]
*/
public $disapprovedCountries;
/**
* @var string
*/
public $reportingContext;
/**
* @param string[]
*/
public function setDemotedCountries($demotedCountries)
{
$this->demotedCountries = $demotedCountries;
}
/**
* @return string[]
*/
public function getDemotedCountries()
{
return $this->demotedCountries;
}
/**
* @param string[]
*/
public function setDisapprovedCountries($disapprovedCountries)
{
$this->disapprovedCountries = $disapprovedCountries;
}
/**
* @return string[]
*/
public function getDisapprovedCountries()
{
return $this->disapprovedCountries;
}
/**
* @param string
*/
public function setReportingContext($reportingContext)
{
$this->reportingContext = $reportingContext;
}
/**
* @return string
*/
public function getReportingContext()
{
return $this->reportingContext;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(IssueSeverityPerReportingContext::class, 'Google_Service_Merchant_IssueSeverityPerReportingContext');
@@ -0,0 +1,76 @@
<?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 ItemIssue extends \Google\Model
{
/**
* @var string
*/
public $resolution;
protected $severityType = ItemIssueSeverity::class;
protected $severityDataType = '';
protected $typeType = ItemIssueType::class;
protected $typeDataType = '';
/**
* @param string
*/
public function setResolution($resolution)
{
$this->resolution = $resolution;
}
/**
* @return string
*/
public function getResolution()
{
return $this->resolution;
}
/**
* @param ItemIssueSeverity
*/
public function setSeverity(ItemIssueSeverity $severity)
{
$this->severity = $severity;
}
/**
* @return ItemIssueSeverity
*/
public function getSeverity()
{
return $this->severity;
}
/**
* @param ItemIssueType
*/
public function setType(ItemIssueType $type)
{
$this->type = $type;
}
/**
* @return ItemIssueType
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ItemIssue::class, 'Google_Service_Merchant_ItemIssue');
@@ -0,0 +1,61 @@
<?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 ItemIssueSeverity extends \Google\Collection
{
protected $collection_key = 'severityPerReportingContext';
/**
* @var string
*/
public $aggregatedSeverity;
protected $severityPerReportingContextType = IssueSeverityPerReportingContext::class;
protected $severityPerReportingContextDataType = 'array';
/**
* @param string
*/
public function setAggregatedSeverity($aggregatedSeverity)
{
$this->aggregatedSeverity = $aggregatedSeverity;
}
/**
* @return string
*/
public function getAggregatedSeverity()
{
return $this->aggregatedSeverity;
}
/**
* @param IssueSeverityPerReportingContext[]
*/
public function setSeverityPerReportingContext($severityPerReportingContext)
{
$this->severityPerReportingContext = $severityPerReportingContext;
}
/**
* @return IssueSeverityPerReportingContext[]
*/
public function getSeverityPerReportingContext()
{
return $this->severityPerReportingContext;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ItemIssueSeverity::class, 'Google_Service_Merchant_ItemIssueSeverity');
@@ -0,0 +1,62 @@
<?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 ItemIssueType extends \Google\Model
{
/**
* @var string
*/
public $canonicalAttribute;
/**
* @var string
*/
public $code;
/**
* @param string
*/
public function setCanonicalAttribute($canonicalAttribute)
{
$this->canonicalAttribute = $canonicalAttribute;
}
/**
* @return string
*/
public function getCanonicalAttribute()
{
return $this->canonicalAttribute;
}
/**
* @param string
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return string
*/
public function getCode()
{
return $this->code;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ItemIssueType::class, 'Google_Service_Merchant_ItemIssueType');
@@ -0,0 +1,67 @@
<?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 ListMerchantReviewsResponse extends \Google\Collection
{
protected $collection_key = 'merchantReviews';
protected $merchantReviewsType = MerchantReview::class;
protected $merchantReviewsDataType = 'array';
/**
* The token to retrieve the next page of results.
*
* @var string
*/
public $nextPageToken;
/**
* The merchant review.
*
* @param MerchantReview[] $merchantReviews
*/
public function setMerchantReviews($merchantReviews)
{
$this->merchantReviews = $merchantReviews;
}
/**
* @return MerchantReview[]
*/
public function getMerchantReviews()
{
return $this->merchantReviews;
}
/**
* The token to retrieve the next page of results.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListMerchantReviewsResponse::class, 'Google_Service_Merchant_ListMerchantReviewsResponse');
@@ -0,0 +1,69 @@
<?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 ListProductReviewsResponse extends \Google\Collection
{
protected $collection_key = 'productReviews';
/**
* A token, which can be sent as `page_token` to retrieve the next page. If
* this field is omitted, there are no subsequent pages.
*
* @var string
*/
public $nextPageToken;
protected $productReviewsType = ProductReview::class;
protected $productReviewsDataType = 'array';
/**
* A token, which can be sent as `page_token` to retrieve the next page. If
* this field is omitted, there are no subsequent pages.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* The product review.
*
* @param ProductReview[] $productReviews
*/
public function setProductReviews($productReviews)
{
$this->productReviews = $productReviews;
}
/**
* @return ProductReview[]
*/
public function getProductReviews()
{
return $this->productReviews;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListProductReviewsResponse::class, 'Google_Service_Merchant_ListProductReviewsResponse');
@@ -0,0 +1,160 @@
<?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 MerchantReview extends \Google\Collection
{
protected $collection_key = 'customAttributes';
protected $customAttributesType = CustomAttribute::class;
protected $customAttributesDataType = 'array';
/**
* Output only. The primary data source of the merchant review.
*
* @var string
*/
public $dataSource;
protected $merchantReviewAttributesType = MerchantReviewAttributes::class;
protected $merchantReviewAttributesDataType = '';
/**
* Required. The user provided merchant review ID to uniquely identify the
* merchant review.
*
* @var string
*/
public $merchantReviewId;
protected $merchantReviewStatusType = MerchantReviewStatus::class;
protected $merchantReviewStatusDataType = '';
/**
* Identifier. The name of the merchant review. Format: `"{merchantreview.name
* =accounts/{account}/merchantReviews/{merchantReview}}"`
*
* @var string
*/
public $name;
/**
* Optional. A list of custom (merchant-provided) attributes. It can also be
* used for submitting any attribute of the data specification in its generic
* form (for example, `{ "name": "size type", "value": "regular" }`). This is
* useful for submitting attributes not explicitly exposed by the API, such as
* experimental attributes. Maximum allowed number of characters for each
* custom attribute is 10240 (represents sum of characters for name and
* value). Maximum 2500 custom attributes can be set per product, with total
* size of 102.4kB. Underscores in custom attribute names are replaced by
* spaces upon insertion.
*
* @param CustomAttribute[] $customAttributes
*/
public function setCustomAttributes($customAttributes)
{
$this->customAttributes = $customAttributes;
}
/**
* @return CustomAttribute[]
*/
public function getCustomAttributes()
{
return $this->customAttributes;
}
/**
* Output only. The primary data source of the merchant review.
*
* @param string $dataSource
*/
public function setDataSource($dataSource)
{
$this->dataSource = $dataSource;
}
/**
* @return string
*/
public function getDataSource()
{
return $this->dataSource;
}
/**
* Optional. A list of merchant review attributes.
*
* @param MerchantReviewAttributes $merchantReviewAttributes
*/
public function setMerchantReviewAttributes(MerchantReviewAttributes $merchantReviewAttributes)
{
$this->merchantReviewAttributes = $merchantReviewAttributes;
}
/**
* @return MerchantReviewAttributes
*/
public function getMerchantReviewAttributes()
{
return $this->merchantReviewAttributes;
}
/**
* Required. The user provided merchant review ID to uniquely identify the
* merchant review.
*
* @param string $merchantReviewId
*/
public function setMerchantReviewId($merchantReviewId)
{
$this->merchantReviewId = $merchantReviewId;
}
/**
* @return string
*/
public function getMerchantReviewId()
{
return $this->merchantReviewId;
}
/**
* Output only. The status of a merchant review, data validation issues, that
* is, information about a merchant review computed asynchronously.
*
* @param MerchantReviewStatus $merchantReviewStatus
*/
public function setMerchantReviewStatus(MerchantReviewStatus $merchantReviewStatus)
{
$this->merchantReviewStatus = $merchantReviewStatus;
}
/**
* @return MerchantReviewStatus
*/
public function getMerchantReviewStatus()
{
return $this->merchantReviewStatus;
}
/**
* Identifier. The name of the merchant review. Format: `"{merchantreview.name
* =accounts/{account}/merchantReviews/{merchantReview}}"`
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MerchantReview::class, 'Google_Service_Merchant_MerchantReview');
@@ -0,0 +1,418 @@
<?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 MerchantReviewAttributes extends \Google\Model
{
/**
* Collection method unspecified.
*/
public const COLLECTION_METHOD_COLLECTION_METHOD_UNSPECIFIED = 'COLLECTION_METHOD_UNSPECIFIED';
/**
* The user was not responding to a specific solicitation when they submitted
* the review.
*/
public const COLLECTION_METHOD_MERCHANT_UNSOLICITED = 'MERCHANT_UNSOLICITED';
/**
* The user submitted the review in response to a solicitation when the user
* placed an order.
*/
public const COLLECTION_METHOD_POINT_OF_SALE = 'POINT_OF_SALE';
/**
* The user submitted the review in response to a solicitation after
* fulfillment of the user's order.
*/
public const COLLECTION_METHOD_AFTER_FULFILLMENT = 'AFTER_FULFILLMENT';
/**
* Optional. The method used to collect the review.
*
* @var string
*/
public $collectionMethod;
/**
* Required. This should be any freeform text provided by the user and should
* not be truncated. If multiple responses to different questions are
* provided, all responses should be included, with the minimal context for
* the responses to make sense. Context should not be provided if questions
* were left unanswered.
*
* @var string
*/
public $content;
/**
* Optional. Set to true if the reviewer should remain anonymous.
*
* @var bool
*/
public $isAnonymous;
/**
* Optional. The maximum possible number for the rating. The value of the max
* rating must be greater than the value of the min rating.
*
* @var string
*/
public $maxRating;
/**
* Optional. Human-readable display name for the merchant.
*
* @var string
*/
public $merchantDisplayName;
/**
* Required. Must be unique and stable across all requests. In other words, if
* a request today and another 90 days ago refer to the same merchant, they
* must have the same id.
*
* @var string
*/
public $merchantId;
/**
* Optional. URL to the merchant's main website. Do not use a redirect URL for
* this value. In other words, the value should point directly to the
* merchant's site.
*
* @var string
*/
public $merchantLink;
/**
* Optional. URL to the landing page that hosts the reviews for this merchant.
* Do not use a redirect URL.
*
* @var string
*/
public $merchantRatingLink;
/**
* Optional. The minimum possible number for the rating. This should be the
* worst possible rating and should not be a value for no rating.
*
* @var string
*/
public $minRating;
/**
* Optional. The reviewer's overall rating of the merchant.
*
* @var
*/
public $rating;
/**
* Optional. The country where the reviewer made the order defined by ISO
* 3166-1 Alpha-2 Country Code.
*
* @var string
*/
public $reviewCountry;
/**
* Optional. The language of the review defined by BCP-47 language code.
*
* @var string
*/
public $reviewLanguage;
/**
* Required. The timestamp indicating when the review was written.
*
* @var string
*/
public $reviewTime;
/**
* Optional. A permanent, unique identifier for the author of the review in
* the publisher's system.
*
* @var string
*/
public $reviewerId;
/**
* Optional. Display name of the review author.
*
* @var string
*/
public $reviewerUsername;
/**
* Optional. The title of the review.
*
* @var string
*/
public $title;
/**
* Optional. The method used to collect the review.
*
* Accepted values: COLLECTION_METHOD_UNSPECIFIED, MERCHANT_UNSOLICITED,
* POINT_OF_SALE, AFTER_FULFILLMENT
*
* @param self::COLLECTION_METHOD_* $collectionMethod
*/
public function setCollectionMethod($collectionMethod)
{
$this->collectionMethod = $collectionMethod;
}
/**
* @return self::COLLECTION_METHOD_*
*/
public function getCollectionMethod()
{
return $this->collectionMethod;
}
/**
* Required. This should be any freeform text provided by the user and should
* not be truncated. If multiple responses to different questions are
* provided, all responses should be included, with the minimal context for
* the responses to make sense. Context should not be provided if questions
* were left unanswered.
*
* @param string $content
*/
public function setContent($content)
{
$this->content = $content;
}
/**
* @return string
*/
public function getContent()
{
return $this->content;
}
/**
* Optional. Set to true if the reviewer should remain anonymous.
*
* @param bool $isAnonymous
*/
public function setIsAnonymous($isAnonymous)
{
$this->isAnonymous = $isAnonymous;
}
/**
* @return bool
*/
public function getIsAnonymous()
{
return $this->isAnonymous;
}
/**
* Optional. The maximum possible number for the rating. The value of the max
* rating must be greater than the value of the min rating.
*
* @param string $maxRating
*/
public function setMaxRating($maxRating)
{
$this->maxRating = $maxRating;
}
/**
* @return string
*/
public function getMaxRating()
{
return $this->maxRating;
}
/**
* Optional. Human-readable display name for the merchant.
*
* @param string $merchantDisplayName
*/
public function setMerchantDisplayName($merchantDisplayName)
{
$this->merchantDisplayName = $merchantDisplayName;
}
/**
* @return string
*/
public function getMerchantDisplayName()
{
return $this->merchantDisplayName;
}
/**
* Required. Must be unique and stable across all requests. In other words, if
* a request today and another 90 days ago refer to the same merchant, they
* must have the same id.
*
* @param string $merchantId
*/
public function setMerchantId($merchantId)
{
$this->merchantId = $merchantId;
}
/**
* @return string
*/
public function getMerchantId()
{
return $this->merchantId;
}
/**
* Optional. URL to the merchant's main website. Do not use a redirect URL for
* this value. In other words, the value should point directly to the
* merchant's site.
*
* @param string $merchantLink
*/
public function setMerchantLink($merchantLink)
{
$this->merchantLink = $merchantLink;
}
/**
* @return string
*/
public function getMerchantLink()
{
return $this->merchantLink;
}
/**
* Optional. URL to the landing page that hosts the reviews for this merchant.
* Do not use a redirect URL.
*
* @param string $merchantRatingLink
*/
public function setMerchantRatingLink($merchantRatingLink)
{
$this->merchantRatingLink = $merchantRatingLink;
}
/**
* @return string
*/
public function getMerchantRatingLink()
{
return $this->merchantRatingLink;
}
/**
* Optional. The minimum possible number for the rating. This should be the
* worst possible rating and should not be a value for no rating.
*
* @param string $minRating
*/
public function setMinRating($minRating)
{
$this->minRating = $minRating;
}
/**
* @return string
*/
public function getMinRating()
{
return $this->minRating;
}
public function setRating($rating)
{
$this->rating = $rating;
}
public function getRating()
{
return $this->rating;
}
/**
* Optional. The country where the reviewer made the order defined by ISO
* 3166-1 Alpha-2 Country Code.
*
* @param string $reviewCountry
*/
public function setReviewCountry($reviewCountry)
{
$this->reviewCountry = $reviewCountry;
}
/**
* @return string
*/
public function getReviewCountry()
{
return $this->reviewCountry;
}
/**
* Optional. The language of the review defined by BCP-47 language code.
*
* @param string $reviewLanguage
*/
public function setReviewLanguage($reviewLanguage)
{
$this->reviewLanguage = $reviewLanguage;
}
/**
* @return string
*/
public function getReviewLanguage()
{
return $this->reviewLanguage;
}
/**
* Required. The timestamp indicating when the review was written.
*
* @param string $reviewTime
*/
public function setReviewTime($reviewTime)
{
$this->reviewTime = $reviewTime;
}
/**
* @return string
*/
public function getReviewTime()
{
return $this->reviewTime;
}
/**
* Optional. A permanent, unique identifier for the author of the review in
* the publisher's system.
*
* @param string $reviewerId
*/
public function setReviewerId($reviewerId)
{
$this->reviewerId = $reviewerId;
}
/**
* @return string
*/
public function getReviewerId()
{
return $this->reviewerId;
}
/**
* Optional. Display name of the review author.
*
* @param string $reviewerUsername
*/
public function setReviewerUsername($reviewerUsername)
{
$this->reviewerUsername = $reviewerUsername;
}
/**
* @return string
*/
public function getReviewerUsername()
{
return $this->reviewerUsername;
}
/**
* Optional. The title of the review.
*
* @param string $title
*/
public function setTitle($title)
{
$this->title = $title;
}
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MerchantReviewAttributes::class, 'Google_Service_Merchant_MerchantReviewAttributes');
@@ -0,0 +1,145 @@
<?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 MerchantReviewDestinationStatus 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';
/**
* Output only. The name of the reporting context.
*
* @var string
*/
public $reportingContext;
/**
* Output only. The name of the reporting context.
*
* 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(MerchantReviewDestinationStatus::class, 'Google_Service_Merchant_MerchantReviewDestinationStatus');
@@ -0,0 +1,316 @@
<?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 MerchantReviewItemLevelIssue 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';
/**
* Not specified.
*/
public const SEVERITY_SEVERITY_UNSPECIFIED = 'SEVERITY_UNSPECIFIED';
/**
* This issue represents a warning and does not have a direct affect on the
* merchant review.
*/
public const SEVERITY_NOT_IMPACTED = 'NOT_IMPACTED';
/**
* Issue disapproves the merchant review.
*/
public const SEVERITY_DISAPPROVED = 'DISAPPROVED';
/**
* Output only. The attribute's name, if the issue is caused by a single
* attribute.
*
* @var string
*/
public $attribute;
/**
* Output only. The error code of the issue.
*
* @var string
*/
public $code;
/**
* Output only. A short issue description in English.
*
* @var string
*/
public $description;
/**
* Output only. A detailed issue description in English.
*
* @var string
*/
public $detail;
/**
* Output only. The URL of a web page to help with resolving this issue.
*
* @var string
*/
public $documentation;
/**
* Output only. The reporting context the issue applies to.
*
* @var string
*/
public $reportingContext;
/**
* Output only. Whether the issue can be resolved by the merchant.
*
* @var string
*/
public $resolution;
/**
* Output only. How this issue affects serving of the merchant review.
*
* @var string
*/
public $severity;
/**
* Output only. The attribute's name, if the issue is caused by a single
* attribute.
*
* @param string $attribute
*/
public function setAttribute($attribute)
{
$this->attribute = $attribute;
}
/**
* @return string
*/
public function getAttribute()
{
return $this->attribute;
}
/**
* Output only. The error code of the issue.
*
* @param string $code
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return string
*/
public function getCode()
{
return $this->code;
}
/**
* Output only. A short issue description in English.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Output only. A detailed issue description in English.
*
* @param string $detail
*/
public function setDetail($detail)
{
$this->detail = $detail;
}
/**
* @return string
*/
public function getDetail()
{
return $this->detail;
}
/**
* Output only. The URL of a web page to help with resolving this issue.
*
* @param string $documentation
*/
public function setDocumentation($documentation)
{
$this->documentation = $documentation;
}
/**
* @return string
*/
public function getDocumentation()
{
return $this->documentation;
}
/**
* Output only. The reporting context the issue applies to.
*
* 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;
}
/**
* Output only. Whether the issue can be resolved by the merchant.
*
* @param string $resolution
*/
public function setResolution($resolution)
{
$this->resolution = $resolution;
}
/**
* @return string
*/
public function getResolution()
{
return $this->resolution;
}
/**
* Output only. How this issue affects serving of the merchant review.
*
* Accepted values: SEVERITY_UNSPECIFIED, NOT_IMPACTED, DISAPPROVED
*
* @param self::SEVERITY_* $severity
*/
public function setSeverity($severity)
{
$this->severity = $severity;
}
/**
* @return self::SEVERITY_*
*/
public function getSeverity()
{
return $this->severity;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MerchantReviewItemLevelIssue::class, 'Google_Service_Merchant_MerchantReviewItemLevelIssue');
@@ -0,0 +1,111 @@
<?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 MerchantReviewStatus extends \Google\Collection
{
protected $collection_key = 'itemLevelIssues';
/**
* Output only. Date on which the item has been created, in [ISO
* 8601](http://en.wikipedia.org/wiki/ISO_8601) format.
*
* @var string
*/
public $createTime;
protected $destinationStatusesType = MerchantReviewDestinationStatus::class;
protected $destinationStatusesDataType = 'array';
protected $itemLevelIssuesType = MerchantReviewItemLevelIssue::class;
protected $itemLevelIssuesDataType = 'array';
/**
* Output only. Date on which the item has been last updated, in [ISO
* 8601](http://en.wikipedia.org/wiki/ISO_8601) format.
*
* @var string
*/
public $lastUpdateTime;
/**
* Output only. Date on which the item has been created, in [ISO
* 8601](http://en.wikipedia.org/wiki/ISO_8601) format.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Output only. The intended destinations for the merchant review.
*
* @param MerchantReviewDestinationStatus[] $destinationStatuses
*/
public function setDestinationStatuses($destinationStatuses)
{
$this->destinationStatuses = $destinationStatuses;
}
/**
* @return MerchantReviewDestinationStatus[]
*/
public function getDestinationStatuses()
{
return $this->destinationStatuses;
}
/**
* Output only. A list of all issues associated with the merchant review.
*
* @param MerchantReviewItemLevelIssue[] $itemLevelIssues
*/
public function setItemLevelIssues($itemLevelIssues)
{
$this->itemLevelIssues = $itemLevelIssues;
}
/**
* @return MerchantReviewItemLevelIssue[]
*/
public function getItemLevelIssues()
{
return $this->itemLevelIssues;
}
/**
* Output only. Date on which the item has been last updated, in [ISO
* 8601](http://en.wikipedia.org/wiki/ISO_8601) format.
*
* @param string $lastUpdateTime
*/
public function setLastUpdateTime($lastUpdateTime)
{
$this->lastUpdateTime = $lastUpdateTime;
}
/**
* @return string
*/
public function getLastUpdateTime()
{
return $this->lastUpdateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MerchantReviewStatus::class, 'Google_Service_Merchant_MerchantReviewStatus');
@@ -0,0 +1,25 @@
<?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 MerchantapiEmpty extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MerchantapiEmpty::class, 'Google_Service_Merchant_MerchantapiEmpty');
@@ -0,0 +1,103 @@
<?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 NonProductPerformanceView extends \Google\Model
{
public $clickThroughRate;
/**
* @var string
*/
public $clicks;
protected $dateType = Date::class;
protected $dateDataType = '';
/**
* @var string
*/
public $impressions;
protected $weekType = Date::class;
protected $weekDataType = '';
public function setClickThroughRate($clickThroughRate)
{
$this->clickThroughRate = $clickThroughRate;
}
public function getClickThroughRate()
{
return $this->clickThroughRate;
}
/**
* @param string
*/
public function setClicks($clicks)
{
$this->clicks = $clicks;
}
/**
* @return string
*/
public function getClicks()
{
return $this->clicks;
}
/**
* @param Date
*/
public function setDate(Date $date)
{
$this->date = $date;
}
/**
* @return Date
*/
public function getDate()
{
return $this->date;
}
/**
* @param string
*/
public function setImpressions($impressions)
{
$this->impressions = $impressions;
}
/**
* @return string
*/
public function getImpressions()
{
return $this->impressions;
}
/**
* @param Date
*/
public function setWeek(Date $week)
{
$this->week = $week;
}
/**
* @return Date
*/
public function getWeek()
{
return $this->week;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(NonProductPerformanceView::class, 'Google_Service_Merchant_NonProductPerformanceView');
+62
View File
@@ -0,0 +1,62 @@
<?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 Price extends \Google\Model
{
/**
* @var string
*/
public $amountMicros;
/**
* @var string
*/
public $currencyCode;
/**
* @param string
*/
public function setAmountMicros($amountMicros)
{
$this->amountMicros = $amountMicros;
}
/**
* @return string
*/
public function getAmountMicros()
{
return $this->amountMicros;
}
/**
* @param string
*/
public function setCurrencyCode($currencyCode)
{
$this->currencyCode = $currencyCode;
}
/**
* @return string
*/
public function getCurrencyCode()
{
return $this->currencyCode;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Price::class, 'Google_Service_Merchant_Price');
@@ -0,0 +1,328 @@
<?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 PriceCompetitivenessProductView extends \Google\Model
{
protected $benchmarkPriceType = Price::class;
protected $benchmarkPriceDataType = '';
/**
* @var string
*/
public $brand;
/**
* @var string
*/
public $categoryL1;
/**
* @var string
*/
public $categoryL2;
/**
* @var string
*/
public $categoryL3;
/**
* @var string
*/
public $categoryL4;
/**
* @var string
*/
public $categoryL5;
/**
* @var string
*/
public $id;
/**
* @var string
*/
public $offerId;
protected $priceType = Price::class;
protected $priceDataType = '';
/**
* @var string
*/
public $productTypeL1;
/**
* @var string
*/
public $productTypeL2;
/**
* @var string
*/
public $productTypeL3;
/**
* @var string
*/
public $productTypeL4;
/**
* @var string
*/
public $productTypeL5;
/**
* @var string
*/
public $reportCountryCode;
/**
* @var string
*/
public $title;
/**
* @param Price
*/
public function setBenchmarkPrice(Price $benchmarkPrice)
{
$this->benchmarkPrice = $benchmarkPrice;
}
/**
* @return Price
*/
public function getBenchmarkPrice()
{
return $this->benchmarkPrice;
}
/**
* @param string
*/
public function setBrand($brand)
{
$this->brand = $brand;
}
/**
* @return string
*/
public function getBrand()
{
return $this->brand;
}
/**
* @param string
*/
public function setCategoryL1($categoryL1)
{
$this->categoryL1 = $categoryL1;
}
/**
* @return string
*/
public function getCategoryL1()
{
return $this->categoryL1;
}
/**
* @param string
*/
public function setCategoryL2($categoryL2)
{
$this->categoryL2 = $categoryL2;
}
/**
* @return string
*/
public function getCategoryL2()
{
return $this->categoryL2;
}
/**
* @param string
*/
public function setCategoryL3($categoryL3)
{
$this->categoryL3 = $categoryL3;
}
/**
* @return string
*/
public function getCategoryL3()
{
return $this->categoryL3;
}
/**
* @param string
*/
public function setCategoryL4($categoryL4)
{
$this->categoryL4 = $categoryL4;
}
/**
* @return string
*/
public function getCategoryL4()
{
return $this->categoryL4;
}
/**
* @param string
*/
public function setCategoryL5($categoryL5)
{
$this->categoryL5 = $categoryL5;
}
/**
* @return string
*/
public function getCategoryL5()
{
return $this->categoryL5;
}
/**
* @param string
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* @param string
*/
public function setOfferId($offerId)
{
$this->offerId = $offerId;
}
/**
* @return string
*/
public function getOfferId()
{
return $this->offerId;
}
/**
* @param Price
*/
public function setPrice(Price $price)
{
$this->price = $price;
}
/**
* @return Price
*/
public function getPrice()
{
return $this->price;
}
/**
* @param string
*/
public function setProductTypeL1($productTypeL1)
{
$this->productTypeL1 = $productTypeL1;
}
/**
* @return string
*/
public function getProductTypeL1()
{
return $this->productTypeL1;
}
/**
* @param string
*/
public function setProductTypeL2($productTypeL2)
{
$this->productTypeL2 = $productTypeL2;
}
/**
* @return string
*/
public function getProductTypeL2()
{
return $this->productTypeL2;
}
/**
* @param string
*/
public function setProductTypeL3($productTypeL3)
{
$this->productTypeL3 = $productTypeL3;
}
/**
* @return string
*/
public function getProductTypeL3()
{
return $this->productTypeL3;
}
/**
* @param string
*/
public function setProductTypeL4($productTypeL4)
{
$this->productTypeL4 = $productTypeL4;
}
/**
* @return string
*/
public function getProductTypeL4()
{
return $this->productTypeL4;
}
/**
* @param string
*/
public function setProductTypeL5($productTypeL5)
{
$this->productTypeL5 = $productTypeL5;
}
/**
* @return string
*/
public function getProductTypeL5()
{
return $this->productTypeL5;
}
/**
* @param string
*/
public function setReportCountryCode($reportCountryCode)
{
$this->reportCountryCode = $reportCountryCode;
}
/**
* @return string
*/
public function getReportCountryCode()
{
return $this->reportCountryCode;
}
/**
* @param string
*/
public function setTitle($title)
{
$this->title = $title;
}
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PriceCompetitivenessProductView::class, 'Google_Service_Merchant_PriceCompetitivenessProductView');
@@ -0,0 +1,355 @@
<?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 PriceInsightsProductView extends \Google\Model
{
/**
* @var string
*/
public $brand;
/**
* @var string
*/
public $categoryL1;
/**
* @var string
*/
public $categoryL2;
/**
* @var string
*/
public $categoryL3;
/**
* @var string
*/
public $categoryL4;
/**
* @var string
*/
public $categoryL5;
/**
* @var string
*/
public $effectiveness;
/**
* @var string
*/
public $id;
/**
* @var string
*/
public $offerId;
public $predictedClicksChangeFraction;
public $predictedConversionsChangeFraction;
public $predictedImpressionsChangeFraction;
protected $priceType = Price::class;
protected $priceDataType = '';
/**
* @var string
*/
public $productTypeL1;
/**
* @var string
*/
public $productTypeL2;
/**
* @var string
*/
public $productTypeL3;
/**
* @var string
*/
public $productTypeL4;
/**
* @var string
*/
public $productTypeL5;
protected $suggestedPriceType = Price::class;
protected $suggestedPriceDataType = '';
/**
* @var string
*/
public $title;
/**
* @param string
*/
public function setBrand($brand)
{
$this->brand = $brand;
}
/**
* @return string
*/
public function getBrand()
{
return $this->brand;
}
/**
* @param string
*/
public function setCategoryL1($categoryL1)
{
$this->categoryL1 = $categoryL1;
}
/**
* @return string
*/
public function getCategoryL1()
{
return $this->categoryL1;
}
/**
* @param string
*/
public function setCategoryL2($categoryL2)
{
$this->categoryL2 = $categoryL2;
}
/**
* @return string
*/
public function getCategoryL2()
{
return $this->categoryL2;
}
/**
* @param string
*/
public function setCategoryL3($categoryL3)
{
$this->categoryL3 = $categoryL3;
}
/**
* @return string
*/
public function getCategoryL3()
{
return $this->categoryL3;
}
/**
* @param string
*/
public function setCategoryL4($categoryL4)
{
$this->categoryL4 = $categoryL4;
}
/**
* @return string
*/
public function getCategoryL4()
{
return $this->categoryL4;
}
/**
* @param string
*/
public function setCategoryL5($categoryL5)
{
$this->categoryL5 = $categoryL5;
}
/**
* @return string
*/
public function getCategoryL5()
{
return $this->categoryL5;
}
/**
* @param string
*/
public function setEffectiveness($effectiveness)
{
$this->effectiveness = $effectiveness;
}
/**
* @return string
*/
public function getEffectiveness()
{
return $this->effectiveness;
}
/**
* @param string
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* @param string
*/
public function setOfferId($offerId)
{
$this->offerId = $offerId;
}
/**
* @return string
*/
public function getOfferId()
{
return $this->offerId;
}
public function setPredictedClicksChangeFraction($predictedClicksChangeFraction)
{
$this->predictedClicksChangeFraction = $predictedClicksChangeFraction;
}
public function getPredictedClicksChangeFraction()
{
return $this->predictedClicksChangeFraction;
}
public function setPredictedConversionsChangeFraction($predictedConversionsChangeFraction)
{
$this->predictedConversionsChangeFraction = $predictedConversionsChangeFraction;
}
public function getPredictedConversionsChangeFraction()
{
return $this->predictedConversionsChangeFraction;
}
public function setPredictedImpressionsChangeFraction($predictedImpressionsChangeFraction)
{
$this->predictedImpressionsChangeFraction = $predictedImpressionsChangeFraction;
}
public function getPredictedImpressionsChangeFraction()
{
return $this->predictedImpressionsChangeFraction;
}
/**
* @param Price
*/
public function setPrice(Price $price)
{
$this->price = $price;
}
/**
* @return Price
*/
public function getPrice()
{
return $this->price;
}
/**
* @param string
*/
public function setProductTypeL1($productTypeL1)
{
$this->productTypeL1 = $productTypeL1;
}
/**
* @return string
*/
public function getProductTypeL1()
{
return $this->productTypeL1;
}
/**
* @param string
*/
public function setProductTypeL2($productTypeL2)
{
$this->productTypeL2 = $productTypeL2;
}
/**
* @return string
*/
public function getProductTypeL2()
{
return $this->productTypeL2;
}
/**
* @param string
*/
public function setProductTypeL3($productTypeL3)
{
$this->productTypeL3 = $productTypeL3;
}
/**
* @return string
*/
public function getProductTypeL3()
{
return $this->productTypeL3;
}
/**
* @param string
*/
public function setProductTypeL4($productTypeL4)
{
$this->productTypeL4 = $productTypeL4;
}
/**
* @return string
*/
public function getProductTypeL4()
{
return $this->productTypeL4;
}
/**
* @param string
*/
public function setProductTypeL5($productTypeL5)
{
$this->productTypeL5 = $productTypeL5;
}
/**
* @return string
*/
public function getProductTypeL5()
{
return $this->productTypeL5;
}
/**
* @param Price
*/
public function setSuggestedPrice(Price $suggestedPrice)
{
$this->suggestedPrice = $suggestedPrice;
}
/**
* @return Price
*/
public function getSuggestedPrice()
{
return $this->suggestedPrice;
}
/**
* @param string
*/
public function setTitle($title)
{
$this->title = $title;
}
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PriceInsightsProductView::class, 'Google_Service_Merchant_PriceInsightsProductView');
@@ -0,0 +1,229 @@
<?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');
@@ -0,0 +1,497 @@
<?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 ProductPerformanceView extends \Google\Model
{
/**
* @var string
*/
public $brand;
/**
* @var string
*/
public $categoryL1;
/**
* @var string
*/
public $categoryL2;
/**
* @var string
*/
public $categoryL3;
/**
* @var string
*/
public $categoryL4;
/**
* @var string
*/
public $categoryL5;
public $clickThroughRate;
/**
* @var string
*/
public $clicks;
public $conversionRate;
protected $conversionValueType = Price::class;
protected $conversionValueDataType = '';
public $conversions;
/**
* @var string
*/
public $customLabel0;
/**
* @var string
*/
public $customLabel1;
/**
* @var string
*/
public $customLabel2;
/**
* @var string
*/
public $customLabel3;
/**
* @var string
*/
public $customLabel4;
/**
* @var string
*/
public $customerCountryCode;
protected $dateType = Date::class;
protected $dateDataType = '';
/**
* @var string
*/
public $impressions;
/**
* @var string
*/
public $marketingMethod;
/**
* @var string
*/
public $offerId;
/**
* @var string
*/
public $productTypeL1;
/**
* @var string
*/
public $productTypeL2;
/**
* @var string
*/
public $productTypeL3;
/**
* @var string
*/
public $productTypeL4;
/**
* @var string
*/
public $productTypeL5;
/**
* @var string
*/
public $title;
protected $weekType = Date::class;
protected $weekDataType = '';
/**
* @param string
*/
public function setBrand($brand)
{
$this->brand = $brand;
}
/**
* @return string
*/
public function getBrand()
{
return $this->brand;
}
/**
* @param string
*/
public function setCategoryL1($categoryL1)
{
$this->categoryL1 = $categoryL1;
}
/**
* @return string
*/
public function getCategoryL1()
{
return $this->categoryL1;
}
/**
* @param string
*/
public function setCategoryL2($categoryL2)
{
$this->categoryL2 = $categoryL2;
}
/**
* @return string
*/
public function getCategoryL2()
{
return $this->categoryL2;
}
/**
* @param string
*/
public function setCategoryL3($categoryL3)
{
$this->categoryL3 = $categoryL3;
}
/**
* @return string
*/
public function getCategoryL3()
{
return $this->categoryL3;
}
/**
* @param string
*/
public function setCategoryL4($categoryL4)
{
$this->categoryL4 = $categoryL4;
}
/**
* @return string
*/
public function getCategoryL4()
{
return $this->categoryL4;
}
/**
* @param string
*/
public function setCategoryL5($categoryL5)
{
$this->categoryL5 = $categoryL5;
}
/**
* @return string
*/
public function getCategoryL5()
{
return $this->categoryL5;
}
public function setClickThroughRate($clickThroughRate)
{
$this->clickThroughRate = $clickThroughRate;
}
public function getClickThroughRate()
{
return $this->clickThroughRate;
}
/**
* @param string
*/
public function setClicks($clicks)
{
$this->clicks = $clicks;
}
/**
* @return string
*/
public function getClicks()
{
return $this->clicks;
}
public function setConversionRate($conversionRate)
{
$this->conversionRate = $conversionRate;
}
public function getConversionRate()
{
return $this->conversionRate;
}
/**
* @param Price
*/
public function setConversionValue(Price $conversionValue)
{
$this->conversionValue = $conversionValue;
}
/**
* @return Price
*/
public function getConversionValue()
{
return $this->conversionValue;
}
public function setConversions($conversions)
{
$this->conversions = $conversions;
}
public function getConversions()
{
return $this->conversions;
}
/**
* @param string
*/
public function setCustomLabel0($customLabel0)
{
$this->customLabel0 = $customLabel0;
}
/**
* @return string
*/
public function getCustomLabel0()
{
return $this->customLabel0;
}
/**
* @param string
*/
public function setCustomLabel1($customLabel1)
{
$this->customLabel1 = $customLabel1;
}
/**
* @return string
*/
public function getCustomLabel1()
{
return $this->customLabel1;
}
/**
* @param string
*/
public function setCustomLabel2($customLabel2)
{
$this->customLabel2 = $customLabel2;
}
/**
* @return string
*/
public function getCustomLabel2()
{
return $this->customLabel2;
}
/**
* @param string
*/
public function setCustomLabel3($customLabel3)
{
$this->customLabel3 = $customLabel3;
}
/**
* @return string
*/
public function getCustomLabel3()
{
return $this->customLabel3;
}
/**
* @param string
*/
public function setCustomLabel4($customLabel4)
{
$this->customLabel4 = $customLabel4;
}
/**
* @return string
*/
public function getCustomLabel4()
{
return $this->customLabel4;
}
/**
* @param string
*/
public function setCustomerCountryCode($customerCountryCode)
{
$this->customerCountryCode = $customerCountryCode;
}
/**
* @return string
*/
public function getCustomerCountryCode()
{
return $this->customerCountryCode;
}
/**
* @param Date
*/
public function setDate(Date $date)
{
$this->date = $date;
}
/**
* @return Date
*/
public function getDate()
{
return $this->date;
}
/**
* @param string
*/
public function setImpressions($impressions)
{
$this->impressions = $impressions;
}
/**
* @return string
*/
public function getImpressions()
{
return $this->impressions;
}
/**
* @param string
*/
public function setMarketingMethod($marketingMethod)
{
$this->marketingMethod = $marketingMethod;
}
/**
* @return string
*/
public function getMarketingMethod()
{
return $this->marketingMethod;
}
/**
* @param string
*/
public function setOfferId($offerId)
{
$this->offerId = $offerId;
}
/**
* @return string
*/
public function getOfferId()
{
return $this->offerId;
}
/**
* @param string
*/
public function setProductTypeL1($productTypeL1)
{
$this->productTypeL1 = $productTypeL1;
}
/**
* @return string
*/
public function getProductTypeL1()
{
return $this->productTypeL1;
}
/**
* @param string
*/
public function setProductTypeL2($productTypeL2)
{
$this->productTypeL2 = $productTypeL2;
}
/**
* @return string
*/
public function getProductTypeL2()
{
return $this->productTypeL2;
}
/**
* @param string
*/
public function setProductTypeL3($productTypeL3)
{
$this->productTypeL3 = $productTypeL3;
}
/**
* @return string
*/
public function getProductTypeL3()
{
return $this->productTypeL3;
}
/**
* @param string
*/
public function setProductTypeL4($productTypeL4)
{
$this->productTypeL4 = $productTypeL4;
}
/**
* @return string
*/
public function getProductTypeL4()
{
return $this->productTypeL4;
}
/**
* @param string
*/
public function setProductTypeL5($productTypeL5)
{
$this->productTypeL5 = $productTypeL5;
}
/**
* @return string
*/
public function getProductTypeL5()
{
return $this->productTypeL5;
}
/**
* @param string
*/
public function setTitle($title)
{
$this->title = $title;
}
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
/**
* @param Date
*/
public function setWeek(Date $week)
{
$this->week = $week;
}
/**
* @return Date
*/
public function getWeek()
{
return $this->week;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProductPerformanceView::class, 'Google_Service_Merchant_ProductPerformanceView');
@@ -0,0 +1,152 @@
<?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 ProductReview extends \Google\Collection
{
protected $collection_key = 'customAttributes';
protected $customAttributesType = CustomAttribute::class;
protected $customAttributesDataType = 'array';
/**
* Output only. The primary data source of the product review.
*
* @var string
*/
public $dataSource;
/**
* Identifier. The name of the product review. Format:
* `"{productreview.name=accounts/{account}/productReviews/{productReview}}"`
*
* @var string
*/
public $name;
protected $productReviewAttributesType = ProductReviewAttributes::class;
protected $productReviewAttributesDataType = '';
/**
* Required. The permanent, unique identifier for the product review in the
* publishers system.
*
* @var string
*/
public $productReviewId;
protected $productReviewStatusType = ProductReviewStatus::class;
protected $productReviewStatusDataType = '';
/**
* Optional. A list of custom (merchant-provided) attributes.
*
* @param CustomAttribute[] $customAttributes
*/
public function setCustomAttributes($customAttributes)
{
$this->customAttributes = $customAttributes;
}
/**
* @return CustomAttribute[]
*/
public function getCustomAttributes()
{
return $this->customAttributes;
}
/**
* Output only. The primary data source of the product review.
*
* @param string $dataSource
*/
public function setDataSource($dataSource)
{
$this->dataSource = $dataSource;
}
/**
* @return string
*/
public function getDataSource()
{
return $this->dataSource;
}
/**
* Identifier. The name of the product review. Format:
* `"{productreview.name=accounts/{account}/productReviews/{productReview}}"`
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Optional. A list of product review attributes.
*
* @param ProductReviewAttributes $productReviewAttributes
*/
public function setProductReviewAttributes(ProductReviewAttributes $productReviewAttributes)
{
$this->productReviewAttributes = $productReviewAttributes;
}
/**
* @return ProductReviewAttributes
*/
public function getProductReviewAttributes()
{
return $this->productReviewAttributes;
}
/**
* Required. The permanent, unique identifier for the product review in the
* publishers system.
*
* @param string $productReviewId
*/
public function setProductReviewId($productReviewId)
{
$this->productReviewId = $productReviewId;
}
/**
* @return string
*/
public function getProductReviewId()
{
return $this->productReviewId;
}
/**
* Output only. The status of a product review, data validation issues, that
* is, information about a product review computed asynchronously.
*
* @param ProductReviewStatus $productReviewStatus
*/
public function setProductReviewStatus(ProductReviewStatus $productReviewStatus)
{
$this->productReviewStatus = $productReviewStatus;
}
/**
* @return ProductReviewStatus
*/
public function getProductReviewStatus()
{
return $this->productReviewStatus;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProductReview::class, 'Google_Service_Merchant_ProductReview');
@@ -0,0 +1,766 @@
<?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 ProductReviewAttributes extends \Google\Collection
{
/**
* Collection method unspecified.
*/
public const COLLECTION_METHOD_COLLECTION_METHOD_UNSPECIFIED = 'COLLECTION_METHOD_UNSPECIFIED';
/**
* The user was not responding to a specific solicitation when they submitted
* the review.
*/
public const COLLECTION_METHOD_UNSOLICITED = 'UNSOLICITED';
/**
* The user submitted the review in response to a solicitation after
* fulfillment of the user's order.
*/
public const COLLECTION_METHOD_POST_FULFILLMENT = 'POST_FULFILLMENT';
protected $collection_key = 'skus';
/**
* Optional. The name of the aggregator of the product reviews. A publisher
* may use a reviews aggregator to manage reviews and provide the feeds. This
* element indicates the use of an aggregator and contains information about
* the aggregator.
*
* @var string
*/
public $aggregatorName;
/**
* Optional. Contains ASINs (Amazon Standard Identification Numbers)
* associated with a product.
*
* @var string[]
*/
public $asins;
/**
* Optional. Contains brand names associated with a product.
*
* @var string[]
*/
public $brands;
/**
* Optional. The method used to collect the review.
*
* @var string
*/
public $collectionMethod;
/**
* Optional. Contains the disadvantages based on the opinion of the reviewer.
* Omit boilerplate text like "con:" unless it was written by the reviewer.
*
* @var string[]
*/
public $cons;
/**
* Optional. The content of the review. If empty, the content might still get
* populated from pros and cons.
*
* @var string
*/
public $content;
/**
* Optional. Contains GTINs (global trade item numbers) associated with a
* product. Sub-types of GTINs (e.g. UPC, EAN, ISBN, JAN) are supported.
*
* @var string[]
*/
public $gtins;
/**
* Optional. Indicates whether the review is incentivized.
*
* @var bool
*/
public $isIncentivizedReview;
/**
* Optional. Indicates whether the review is marked as spam in the publisher's
* system.
*
* @var bool
*/
public $isSpam;
/**
* Optional. Indicates whether the reviewer's purchase is verified.
*
* @var bool
*/
public $isVerifiedPurchase;
/**
* Optional. The maximum possible number for the rating. The value of the max
* rating must be greater than the value of the min attribute.
*
* @var string
*/
public $maxRating;
/**
* Optional. Contains the ratings associated with the review. The minimum
* possible number for the rating. This should be the worst possible rating
* and should not be a value for no rating.
*
* @var string
*/
public $minRating;
/**
* Optional. Contains MPNs (manufacturer part numbers) associated with a
* product.
*
* @var string[]
*/
public $mpns;
/**
* Optional. The URI of the product. This URI can have the same value as the
* `review_link` element, if the review URI and the product URI are the same.
*
* @var string[]
*/
public $productLinks;
/**
* Optional. Descriptive name of a product.
*
* @var string[]
*/
public $productNames;
/**
* Optional. Contains the advantages based on the opinion of the reviewer.
* Omit boilerplate text like "pro:" unless it was written by the reviewer.
*
* @var string[]
*/
public $pros;
/**
* Optional. A link to the company favicon of the publisher. The image
* dimensions should be favicon size: 16x16 pixels. The image format should be
* GIF, JPG or PNG.
*
* @var string
*/
public $publisherFavicon;
/**
* Optional. The name of the publisher of the product reviews. The information
* about the publisher, which may be a retailer, manufacturer, reviews service
* company, or any entity that publishes product reviews.
*
* @var string
*/
public $publisherName;
/**
* Optional. The reviewer's overall rating of the product.
*
* @var
*/
public $rating;
/**
* Optional. The country of the review defined by ISO 3166-1 Alpha-2 Country
* Code.
*
* @var string
*/
public $reviewCountry;
/**
* Optional. The language of the review defined by BCP-47 language code.
*
* @var string
*/
public $reviewLanguage;
protected $reviewLinkType = ReviewLink::class;
protected $reviewLinkDataType = '';
/**
* Required. The timestamp indicating when the review was written.
*
* @var string
*/
public $reviewTime;
/**
* Optional. The author of the product review. A permanent, unique identifier
* for the author of the review in the publisher's system.
*
* @var string
*/
public $reviewerId;
/**
* Optional. A URI to an image of the reviewed product created by the review
* author. The URI does not have to end with an image file extension.
*
* @var string[]
*/
public $reviewerImageLinks;
/**
* Optional. Set to true if the reviewer should remain anonymous.
*
* @var bool
*/
public $reviewerIsAnonymous;
/**
* Optional. The name of the reviewer of the product review.
*
* @var string
*/
public $reviewerUsername;
/**
* Optional. Contains SKUs (stock keeping units) associated with a product.
* Often this matches the product Offer Id in the product feed.
*
* @var string[]
*/
public $skus;
/**
* Optional. The name of the subclient of the product reviews. The subclient
* is an identifier of the product review source. It should be equivalent to
* the directory provided in the file data source path.
*
* @var string
*/
public $subclientName;
/**
* Optional. The title of the review.
*
* @var string
*/
public $title;
/**
* Optional. A permanent, unique identifier for the transaction associated
* with the review in the publisher's system. This ID can be used to indicate
* that multiple reviews are associated with the same transaction.
*
* @var string
*/
public $transactionId;
/**
* Optional. The name of the aggregator of the product reviews. A publisher
* may use a reviews aggregator to manage reviews and provide the feeds. This
* element indicates the use of an aggregator and contains information about
* the aggregator.
*
* @param string $aggregatorName
*/
public function setAggregatorName($aggregatorName)
{
$this->aggregatorName = $aggregatorName;
}
/**
* @return string
*/
public function getAggregatorName()
{
return $this->aggregatorName;
}
/**
* Optional. Contains ASINs (Amazon Standard Identification Numbers)
* associated with a product.
*
* @param string[] $asins
*/
public function setAsins($asins)
{
$this->asins = $asins;
}
/**
* @return string[]
*/
public function getAsins()
{
return $this->asins;
}
/**
* Optional. Contains brand names associated with a product.
*
* @param string[] $brands
*/
public function setBrands($brands)
{
$this->brands = $brands;
}
/**
* @return string[]
*/
public function getBrands()
{
return $this->brands;
}
/**
* Optional. The method used to collect the review.
*
* Accepted values: COLLECTION_METHOD_UNSPECIFIED, UNSOLICITED,
* POST_FULFILLMENT
*
* @param self::COLLECTION_METHOD_* $collectionMethod
*/
public function setCollectionMethod($collectionMethod)
{
$this->collectionMethod = $collectionMethod;
}
/**
* @return self::COLLECTION_METHOD_*
*/
public function getCollectionMethod()
{
return $this->collectionMethod;
}
/**
* Optional. Contains the disadvantages based on the opinion of the reviewer.
* Omit boilerplate text like "con:" unless it was written by the reviewer.
*
* @param string[] $cons
*/
public function setCons($cons)
{
$this->cons = $cons;
}
/**
* @return string[]
*/
public function getCons()
{
return $this->cons;
}
/**
* Optional. The content of the review. If empty, the content might still get
* populated from pros and cons.
*
* @param string $content
*/
public function setContent($content)
{
$this->content = $content;
}
/**
* @return string
*/
public function getContent()
{
return $this->content;
}
/**
* Optional. Contains GTINs (global trade item numbers) associated with a
* product. Sub-types of GTINs (e.g. UPC, EAN, ISBN, JAN) are supported.
*
* @param string[] $gtins
*/
public function setGtins($gtins)
{
$this->gtins = $gtins;
}
/**
* @return string[]
*/
public function getGtins()
{
return $this->gtins;
}
/**
* Optional. Indicates whether the review is incentivized.
*
* @param bool $isIncentivizedReview
*/
public function setIsIncentivizedReview($isIncentivizedReview)
{
$this->isIncentivizedReview = $isIncentivizedReview;
}
/**
* @return bool
*/
public function getIsIncentivizedReview()
{
return $this->isIncentivizedReview;
}
/**
* Optional. Indicates whether the review is marked as spam in the publisher's
* system.
*
* @param bool $isSpam
*/
public function setIsSpam($isSpam)
{
$this->isSpam = $isSpam;
}
/**
* @return bool
*/
public function getIsSpam()
{
return $this->isSpam;
}
/**
* Optional. Indicates whether the reviewer's purchase is verified.
*
* @param bool $isVerifiedPurchase
*/
public function setIsVerifiedPurchase($isVerifiedPurchase)
{
$this->isVerifiedPurchase = $isVerifiedPurchase;
}
/**
* @return bool
*/
public function getIsVerifiedPurchase()
{
return $this->isVerifiedPurchase;
}
/**
* Optional. The maximum possible number for the rating. The value of the max
* rating must be greater than the value of the min attribute.
*
* @param string $maxRating
*/
public function setMaxRating($maxRating)
{
$this->maxRating = $maxRating;
}
/**
* @return string
*/
public function getMaxRating()
{
return $this->maxRating;
}
/**
* Optional. Contains the ratings associated with the review. The minimum
* possible number for the rating. This should be the worst possible rating
* and should not be a value for no rating.
*
* @param string $minRating
*/
public function setMinRating($minRating)
{
$this->minRating = $minRating;
}
/**
* @return string
*/
public function getMinRating()
{
return $this->minRating;
}
/**
* Optional. Contains MPNs (manufacturer part numbers) associated with a
* product.
*
* @param string[] $mpns
*/
public function setMpns($mpns)
{
$this->mpns = $mpns;
}
/**
* @return string[]
*/
public function getMpns()
{
return $this->mpns;
}
/**
* Optional. The URI of the product. This URI can have the same value as the
* `review_link` element, if the review URI and the product URI are the same.
*
* @param string[] $productLinks
*/
public function setProductLinks($productLinks)
{
$this->productLinks = $productLinks;
}
/**
* @return string[]
*/
public function getProductLinks()
{
return $this->productLinks;
}
/**
* Optional. Descriptive name of a product.
*
* @param string[] $productNames
*/
public function setProductNames($productNames)
{
$this->productNames = $productNames;
}
/**
* @return string[]
*/
public function getProductNames()
{
return $this->productNames;
}
/**
* Optional. Contains the advantages based on the opinion of the reviewer.
* Omit boilerplate text like "pro:" unless it was written by the reviewer.
*
* @param string[] $pros
*/
public function setPros($pros)
{
$this->pros = $pros;
}
/**
* @return string[]
*/
public function getPros()
{
return $this->pros;
}
/**
* Optional. A link to the company favicon of the publisher. The image
* dimensions should be favicon size: 16x16 pixels. The image format should be
* GIF, JPG or PNG.
*
* @param string $publisherFavicon
*/
public function setPublisherFavicon($publisherFavicon)
{
$this->publisherFavicon = $publisherFavicon;
}
/**
* @return string
*/
public function getPublisherFavicon()
{
return $this->publisherFavicon;
}
/**
* Optional. The name of the publisher of the product reviews. The information
* about the publisher, which may be a retailer, manufacturer, reviews service
* company, or any entity that publishes product reviews.
*
* @param string $publisherName
*/
public function setPublisherName($publisherName)
{
$this->publisherName = $publisherName;
}
/**
* @return string
*/
public function getPublisherName()
{
return $this->publisherName;
}
public function setRating($rating)
{
$this->rating = $rating;
}
public function getRating()
{
return $this->rating;
}
/**
* Optional. The country of the review defined by ISO 3166-1 Alpha-2 Country
* Code.
*
* @param string $reviewCountry
*/
public function setReviewCountry($reviewCountry)
{
$this->reviewCountry = $reviewCountry;
}
/**
* @return string
*/
public function getReviewCountry()
{
return $this->reviewCountry;
}
/**
* Optional. The language of the review defined by BCP-47 language code.
*
* @param string $reviewLanguage
*/
public function setReviewLanguage($reviewLanguage)
{
$this->reviewLanguage = $reviewLanguage;
}
/**
* @return string
*/
public function getReviewLanguage()
{
return $this->reviewLanguage;
}
/**
* Optional. The URI of the review landing page.
*
* @param ReviewLink $reviewLink
*/
public function setReviewLink(ReviewLink $reviewLink)
{
$this->reviewLink = $reviewLink;
}
/**
* @return ReviewLink
*/
public function getReviewLink()
{
return $this->reviewLink;
}
/**
* Required. The timestamp indicating when the review was written.
*
* @param string $reviewTime
*/
public function setReviewTime($reviewTime)
{
$this->reviewTime = $reviewTime;
}
/**
* @return string
*/
public function getReviewTime()
{
return $this->reviewTime;
}
/**
* Optional. The author of the product review. A permanent, unique identifier
* for the author of the review in the publisher's system.
*
* @param string $reviewerId
*/
public function setReviewerId($reviewerId)
{
$this->reviewerId = $reviewerId;
}
/**
* @return string
*/
public function getReviewerId()
{
return $this->reviewerId;
}
/**
* Optional. A URI to an image of the reviewed product created by the review
* author. The URI does not have to end with an image file extension.
*
* @param string[] $reviewerImageLinks
*/
public function setReviewerImageLinks($reviewerImageLinks)
{
$this->reviewerImageLinks = $reviewerImageLinks;
}
/**
* @return string[]
*/
public function getReviewerImageLinks()
{
return $this->reviewerImageLinks;
}
/**
* Optional. Set to true if the reviewer should remain anonymous.
*
* @param bool $reviewerIsAnonymous
*/
public function setReviewerIsAnonymous($reviewerIsAnonymous)
{
$this->reviewerIsAnonymous = $reviewerIsAnonymous;
}
/**
* @return bool
*/
public function getReviewerIsAnonymous()
{
return $this->reviewerIsAnonymous;
}
/**
* Optional. The name of the reviewer of the product review.
*
* @param string $reviewerUsername
*/
public function setReviewerUsername($reviewerUsername)
{
$this->reviewerUsername = $reviewerUsername;
}
/**
* @return string
*/
public function getReviewerUsername()
{
return $this->reviewerUsername;
}
/**
* Optional. Contains SKUs (stock keeping units) associated with a product.
* Often this matches the product Offer Id in the product feed.
*
* @param string[] $skus
*/
public function setSkus($skus)
{
$this->skus = $skus;
}
/**
* @return string[]
*/
public function getSkus()
{
return $this->skus;
}
/**
* Optional. The name of the subclient of the product reviews. The subclient
* is an identifier of the product review source. It should be equivalent to
* the directory provided in the file data source path.
*
* @param string $subclientName
*/
public function setSubclientName($subclientName)
{
$this->subclientName = $subclientName;
}
/**
* @return string
*/
public function getSubclientName()
{
return $this->subclientName;
}
/**
* Optional. The title of the review.
*
* @param string $title
*/
public function setTitle($title)
{
$this->title = $title;
}
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
/**
* Optional. A permanent, unique identifier for the transaction associated
* with the review in the publisher's system. This ID can be used to indicate
* that multiple reviews are associated with the same transaction.
*
* @param string $transactionId
*/
public function setTransactionId($transactionId)
{
$this->transactionId = $transactionId;
}
/**
* @return string
*/
public function getTransactionId()
{
return $this->transactionId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProductReviewAttributes::class, 'Google_Service_Merchant_ProductReviewAttributes');
@@ -0,0 +1,145 @@
<?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 ProductReviewDestinationStatus 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';
/**
* Output only. The name of the reporting context.
*
* @var string
*/
public $reportingContext;
/**
* Output only. The name of the reporting context.
*
* 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(ProductReviewDestinationStatus::class, 'Google_Service_Merchant_ProductReviewDestinationStatus');
@@ -0,0 +1,316 @@
<?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 ProductReviewItemLevelIssue 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';
/**
* Not specified.
*/
public const SEVERITY_SEVERITY_UNSPECIFIED = 'SEVERITY_UNSPECIFIED';
/**
* This issue represents a warning and does not have a direct affect on the
* product review.
*/
public const SEVERITY_NOT_IMPACTED = 'NOT_IMPACTED';
/**
* Issue disapproves the product review.
*/
public const SEVERITY_DISAPPROVED = 'DISAPPROVED';
/**
* Output only. The attribute's name, if the issue is caused by a single
* attribute.
*
* @var string
*/
public $attribute;
/**
* Output only. The error code of the issue.
*
* @var string
*/
public $code;
/**
* Output only. A short issue description in English.
*
* @var string
*/
public $description;
/**
* Output only. A detailed issue description in English.
*
* @var string
*/
public $detail;
/**
* Output only. The URL of a web page to help with resolving this issue.
*
* @var string
*/
public $documentation;
/**
* Output only. The reporting context the issue applies to.
*
* @var string
*/
public $reportingContext;
/**
* Output only. Whether the issue can be resolved by the merchant.
*
* @var string
*/
public $resolution;
/**
* Output only. How this issue affects serving of the product review.
*
* @var string
*/
public $severity;
/**
* Output only. The attribute's name, if the issue is caused by a single
* attribute.
*
* @param string $attribute
*/
public function setAttribute($attribute)
{
$this->attribute = $attribute;
}
/**
* @return string
*/
public function getAttribute()
{
return $this->attribute;
}
/**
* Output only. The error code of the issue.
*
* @param string $code
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return string
*/
public function getCode()
{
return $this->code;
}
/**
* Output only. A short issue description in English.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Output only. A detailed issue description in English.
*
* @param string $detail
*/
public function setDetail($detail)
{
$this->detail = $detail;
}
/**
* @return string
*/
public function getDetail()
{
return $this->detail;
}
/**
* Output only. The URL of a web page to help with resolving this issue.
*
* @param string $documentation
*/
public function setDocumentation($documentation)
{
$this->documentation = $documentation;
}
/**
* @return string
*/
public function getDocumentation()
{
return $this->documentation;
}
/**
* Output only. The reporting context the issue applies to.
*
* 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;
}
/**
* Output only. Whether the issue can be resolved by the merchant.
*
* @param string $resolution
*/
public function setResolution($resolution)
{
$this->resolution = $resolution;
}
/**
* @return string
*/
public function getResolution()
{
return $this->resolution;
}
/**
* Output only. How this issue affects serving of the product review.
*
* Accepted values: SEVERITY_UNSPECIFIED, NOT_IMPACTED, DISAPPROVED
*
* @param self::SEVERITY_* $severity
*/
public function setSeverity($severity)
{
$this->severity = $severity;
}
/**
* @return self::SEVERITY_*
*/
public function getSeverity()
{
return $this->severity;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProductReviewItemLevelIssue::class, 'Google_Service_Merchant_ProductReviewItemLevelIssue');
@@ -0,0 +1,111 @@
<?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 ProductReviewStatus extends \Google\Collection
{
protected $collection_key = 'itemLevelIssues';
/**
* Output only. Date on which the item has been created, in [ISO
* 8601](http://en.wikipedia.org/wiki/ISO_8601) format.
*
* @var string
*/
public $createTime;
protected $destinationStatusesType = ProductReviewDestinationStatus::class;
protected $destinationStatusesDataType = 'array';
protected $itemLevelIssuesType = ProductReviewItemLevelIssue::class;
protected $itemLevelIssuesDataType = 'array';
/**
* Output only. Date on which the item has been last updated, in [ISO
* 8601](http://en.wikipedia.org/wiki/ISO_8601) format.
*
* @var string
*/
public $lastUpdateTime;
/**
* Output only. Date on which the item has been created, in [ISO
* 8601](http://en.wikipedia.org/wiki/ISO_8601) format.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Output only. The intended destinations for the product review.
*
* @param ProductReviewDestinationStatus[] $destinationStatuses
*/
public function setDestinationStatuses($destinationStatuses)
{
$this->destinationStatuses = $destinationStatuses;
}
/**
* @return ProductReviewDestinationStatus[]
*/
public function getDestinationStatuses()
{
return $this->destinationStatuses;
}
/**
* Output only. A list of all issues associated with the product review.
*
* @param ProductReviewItemLevelIssue[] $itemLevelIssues
*/
public function setItemLevelIssues($itemLevelIssues)
{
$this->itemLevelIssues = $itemLevelIssues;
}
/**
* @return ProductReviewItemLevelIssue[]
*/
public function getItemLevelIssues()
{
return $this->itemLevelIssues;
}
/**
* Output only. Date on which the item has been last updated, in [ISO
* 8601](http://en.wikipedia.org/wiki/ISO_8601) format.
*
* @param string $lastUpdateTime
*/
public function setLastUpdateTime($lastUpdateTime)
{
$this->lastUpdateTime = $lastUpdateTime;
}
/**
* @return string
*/
public function getLastUpdateTime()
{
return $this->lastUpdateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProductReviewStatus::class, 'Google_Service_Merchant_ProductReviewStatus');
@@ -0,0 +1,255 @@
<?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 ProductStatusChangeMessage extends \Google\Collection
{
/**
* Unspecified attribute
*/
public const ATTRIBUTE_ATTRIBUTE_UNSPECIFIED = 'ATTRIBUTE_UNSPECIFIED';
/**
* Status of the changed entity
*/
public const ATTRIBUTE_STATUS = 'STATUS';
/**
* Unspecified resource
*/
public const RESOURCE_TYPE_RESOURCE_UNSPECIFIED = 'RESOURCE_UNSPECIFIED';
/**
* Resource type : product
*/
public const RESOURCE_TYPE_PRODUCT = 'PRODUCT';
protected $collection_key = 'changes';
/**
* The target account that owns the entity that changed. Format :
* `accounts/{merchant_id}`
*
* @var string
*/
public $account;
/**
* The attribute in the resource that changed, in this case it will be always
* `Status`.
*
* @var string
*/
public $attribute;
protected $changesType = ProductChange::class;
protected $changesDataType = 'array';
/**
* The time at which the event was generated. If you want to order the
* notification messages you receive you should rely on this field not on the
* order of receiving the notifications.
*
* @var string
*/
public $eventTime;
/**
* Optional. The product expiration time. This field will not be set if the
* notification is sent for a product deletion event.
*
* @var string
*/
public $expirationTime;
/**
* The account that manages the merchant's account. can be the same as
* merchant id if it is standalone account. Format :
* `accounts/{service_provider_id}`
*
* @var string
*/
public $managingAccount;
/**
* The product name. Format: `accounts/{account}/products/{product}`
*
* @var string
*/
public $resource;
/**
* The product id.
*
* @var string
*/
public $resourceId;
/**
* The resource that changed, in this case it will always be `Product`.
*
* @var string
*/
public $resourceType;
/**
* The target account that owns the entity that changed. Format :
* `accounts/{merchant_id}`
*
* @param string $account
*/
public function setAccount($account)
{
$this->account = $account;
}
/**
* @return string
*/
public function getAccount()
{
return $this->account;
}
/**
* The attribute in the resource that changed, in this case it will be always
* `Status`.
*
* Accepted values: ATTRIBUTE_UNSPECIFIED, STATUS
*
* @param self::ATTRIBUTE_* $attribute
*/
public function setAttribute($attribute)
{
$this->attribute = $attribute;
}
/**
* @return self::ATTRIBUTE_*
*/
public function getAttribute()
{
return $this->attribute;
}
/**
* A message to describe the change that happened to the product
*
* @param ProductChange[] $changes
*/
public function setChanges($changes)
{
$this->changes = $changes;
}
/**
* @return ProductChange[]
*/
public function getChanges()
{
return $this->changes;
}
/**
* The time at which the event was generated. If you want to order the
* notification messages you receive you should rely on this field not on the
* order of receiving the notifications.
*
* @param string $eventTime
*/
public function setEventTime($eventTime)
{
$this->eventTime = $eventTime;
}
/**
* @return string
*/
public function getEventTime()
{
return $this->eventTime;
}
/**
* Optional. The product expiration time. This field will not be set if the
* notification is sent for a product deletion event.
*
* @param string $expirationTime
*/
public function setExpirationTime($expirationTime)
{
$this->expirationTime = $expirationTime;
}
/**
* @return string
*/
public function getExpirationTime()
{
return $this->expirationTime;
}
/**
* The account that manages the merchant's account. can be the same as
* merchant id if it is standalone account. Format :
* `accounts/{service_provider_id}`
*
* @param string $managingAccount
*/
public function setManagingAccount($managingAccount)
{
$this->managingAccount = $managingAccount;
}
/**
* @return string
*/
public function getManagingAccount()
{
return $this->managingAccount;
}
/**
* The product name. Format: `accounts/{account}/products/{product}`
*
* @param string $resource
*/
public function setResource($resource)
{
$this->resource = $resource;
}
/**
* @return string
*/
public function getResource()
{
return $this->resource;
}
/**
* The product id.
*
* @param string $resourceId
*/
public function setResourceId($resourceId)
{
$this->resourceId = $resourceId;
}
/**
* @return string
*/
public function getResourceId()
{
return $this->resourceId;
}
/**
* The resource that changed, in this case it will always be `Product`.
*
* Accepted values: RESOURCE_UNSPECIFIED, PRODUCT
*
* @param self::RESOURCE_TYPE_* $resourceType
*/
public function setResourceType($resourceType)
{
$this->resourceType = $resourceType;
}
/**
* @return self::RESOURCE_TYPE_*
*/
public function getResourceType()
{
return $this->resourceType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProductStatusChangeMessage::class, 'Google_Service_Merchant_ProductStatusChangeMessage');
@@ -0,0 +1,561 @@
<?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 ProductView extends \Google\Collection
{
protected $collection_key = 'itemIssues';
/**
* @var string
*/
public $aggregatedReportingContextStatus;
/**
* @var string
*/
public $availability;
/**
* @var string
*/
public $brand;
/**
* @var string
*/
public $categoryL1;
/**
* @var string
*/
public $categoryL2;
/**
* @var string
*/
public $categoryL3;
/**
* @var string
*/
public $categoryL4;
/**
* @var string
*/
public $categoryL5;
/**
* @var string
*/
public $channel;
/**
* @var string
*/
public $clickPotential;
/**
* @var string
*/
public $clickPotentialRank;
/**
* @var string
*/
public $condition;
/**
* @var string
*/
public $creationTime;
protected $expirationDateType = Date::class;
protected $expirationDateDataType = '';
/**
* @var string
*/
public $feedLabel;
/**
* @var string[]
*/
public $gtin;
/**
* @var string
*/
public $id;
/**
* @var string
*/
public $itemGroupId;
protected $itemIssuesType = ItemIssue::class;
protected $itemIssuesDataType = 'array';
/**
* @var string
*/
public $languageCode;
/**
* @var string
*/
public $offerId;
protected $priceType = Price::class;
protected $priceDataType = '';
/**
* @var string
*/
public $productTypeL1;
/**
* @var string
*/
public $productTypeL2;
/**
* @var string
*/
public $productTypeL3;
/**
* @var string
*/
public $productTypeL4;
/**
* @var string
*/
public $productTypeL5;
/**
* @var string
*/
public $shippingLabel;
/**
* @var string
*/
public $thumbnailLink;
/**
* @var string
*/
public $title;
/**
* @param string
*/
public function setAggregatedReportingContextStatus($aggregatedReportingContextStatus)
{
$this->aggregatedReportingContextStatus = $aggregatedReportingContextStatus;
}
/**
* @return string
*/
public function getAggregatedReportingContextStatus()
{
return $this->aggregatedReportingContextStatus;
}
/**
* @param string
*/
public function setAvailability($availability)
{
$this->availability = $availability;
}
/**
* @return string
*/
public function getAvailability()
{
return $this->availability;
}
/**
* @param string
*/
public function setBrand($brand)
{
$this->brand = $brand;
}
/**
* @return string
*/
public function getBrand()
{
return $this->brand;
}
/**
* @param string
*/
public function setCategoryL1($categoryL1)
{
$this->categoryL1 = $categoryL1;
}
/**
* @return string
*/
public function getCategoryL1()
{
return $this->categoryL1;
}
/**
* @param string
*/
public function setCategoryL2($categoryL2)
{
$this->categoryL2 = $categoryL2;
}
/**
* @return string
*/
public function getCategoryL2()
{
return $this->categoryL2;
}
/**
* @param string
*/
public function setCategoryL3($categoryL3)
{
$this->categoryL3 = $categoryL3;
}
/**
* @return string
*/
public function getCategoryL3()
{
return $this->categoryL3;
}
/**
* @param string
*/
public function setCategoryL4($categoryL4)
{
$this->categoryL4 = $categoryL4;
}
/**
* @return string
*/
public function getCategoryL4()
{
return $this->categoryL4;
}
/**
* @param string
*/
public function setCategoryL5($categoryL5)
{
$this->categoryL5 = $categoryL5;
}
/**
* @return string
*/
public function getCategoryL5()
{
return $this->categoryL5;
}
/**
* @param string
*/
public function setChannel($channel)
{
$this->channel = $channel;
}
/**
* @return string
*/
public function getChannel()
{
return $this->channel;
}
/**
* @param string
*/
public function setClickPotential($clickPotential)
{
$this->clickPotential = $clickPotential;
}
/**
* @return string
*/
public function getClickPotential()
{
return $this->clickPotential;
}
/**
* @param string
*/
public function setClickPotentialRank($clickPotentialRank)
{
$this->clickPotentialRank = $clickPotentialRank;
}
/**
* @return string
*/
public function getClickPotentialRank()
{
return $this->clickPotentialRank;
}
/**
* @param string
*/
public function setCondition($condition)
{
$this->condition = $condition;
}
/**
* @return string
*/
public function getCondition()
{
return $this->condition;
}
/**
* @param string
*/
public function setCreationTime($creationTime)
{
$this->creationTime = $creationTime;
}
/**
* @return string
*/
public function getCreationTime()
{
return $this->creationTime;
}
/**
* @param Date
*/
public function setExpirationDate(Date $expirationDate)
{
$this->expirationDate = $expirationDate;
}
/**
* @return Date
*/
public function getExpirationDate()
{
return $this->expirationDate;
}
/**
* @param string
*/
public function setFeedLabel($feedLabel)
{
$this->feedLabel = $feedLabel;
}
/**
* @return string
*/
public function getFeedLabel()
{
return $this->feedLabel;
}
/**
* @param string[]
*/
public function setGtin($gtin)
{
$this->gtin = $gtin;
}
/**
* @return string[]
*/
public function getGtin()
{
return $this->gtin;
}
/**
* @param string
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* @param string
*/
public function setItemGroupId($itemGroupId)
{
$this->itemGroupId = $itemGroupId;
}
/**
* @return string
*/
public function getItemGroupId()
{
return $this->itemGroupId;
}
/**
* @param ItemIssue[]
*/
public function setItemIssues($itemIssues)
{
$this->itemIssues = $itemIssues;
}
/**
* @return ItemIssue[]
*/
public function getItemIssues()
{
return $this->itemIssues;
}
/**
* @param string
*/
public function setLanguageCode($languageCode)
{
$this->languageCode = $languageCode;
}
/**
* @return string
*/
public function getLanguageCode()
{
return $this->languageCode;
}
/**
* @param string
*/
public function setOfferId($offerId)
{
$this->offerId = $offerId;
}
/**
* @return string
*/
public function getOfferId()
{
return $this->offerId;
}
/**
* @param Price
*/
public function setPrice(Price $price)
{
$this->price = $price;
}
/**
* @return Price
*/
public function getPrice()
{
return $this->price;
}
/**
* @param string
*/
public function setProductTypeL1($productTypeL1)
{
$this->productTypeL1 = $productTypeL1;
}
/**
* @return string
*/
public function getProductTypeL1()
{
return $this->productTypeL1;
}
/**
* @param string
*/
public function setProductTypeL2($productTypeL2)
{
$this->productTypeL2 = $productTypeL2;
}
/**
* @return string
*/
public function getProductTypeL2()
{
return $this->productTypeL2;
}
/**
* @param string
*/
public function setProductTypeL3($productTypeL3)
{
$this->productTypeL3 = $productTypeL3;
}
/**
* @return string
*/
public function getProductTypeL3()
{
return $this->productTypeL3;
}
/**
* @param string
*/
public function setProductTypeL4($productTypeL4)
{
$this->productTypeL4 = $productTypeL4;
}
/**
* @return string
*/
public function getProductTypeL4()
{
return $this->productTypeL4;
}
/**
* @param string
*/
public function setProductTypeL5($productTypeL5)
{
$this->productTypeL5 = $productTypeL5;
}
/**
* @return string
*/
public function getProductTypeL5()
{
return $this->productTypeL5;
}
/**
* @param string
*/
public function setShippingLabel($shippingLabel)
{
$this->shippingLabel = $shippingLabel;
}
/**
* @return string
*/
public function getShippingLabel()
{
return $this->shippingLabel;
}
/**
* @param string
*/
public function setThumbnailLink($thumbnailLink)
{
$this->thumbnailLink = $thumbnailLink;
}
/**
* @return string
*/
public function getThumbnailLink()
{
return $this->thumbnailLink;
}
/**
* @param string
*/
public function setTitle($title)
{
$this->title = $title;
}
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProductView::class, 'Google_Service_Merchant_ProductView');
@@ -0,0 +1,186 @@
<?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 ReportRow extends \Google\Model
{
protected $bestSellersBrandViewType = BestSellersBrandView::class;
protected $bestSellersBrandViewDataType = '';
protected $bestSellersProductClusterViewType = BestSellersProductClusterView::class;
protected $bestSellersProductClusterViewDataType = '';
protected $competitiveVisibilityBenchmarkViewType = CompetitiveVisibilityBenchmarkView::class;
protected $competitiveVisibilityBenchmarkViewDataType = '';
protected $competitiveVisibilityCompetitorViewType = CompetitiveVisibilityCompetitorView::class;
protected $competitiveVisibilityCompetitorViewDataType = '';
protected $competitiveVisibilityTopMerchantViewType = CompetitiveVisibilityTopMerchantView::class;
protected $competitiveVisibilityTopMerchantViewDataType = '';
protected $nonProductPerformanceViewType = NonProductPerformanceView::class;
protected $nonProductPerformanceViewDataType = '';
protected $priceCompetitivenessProductViewType = PriceCompetitivenessProductView::class;
protected $priceCompetitivenessProductViewDataType = '';
protected $priceInsightsProductViewType = PriceInsightsProductView::class;
protected $priceInsightsProductViewDataType = '';
protected $productPerformanceViewType = ProductPerformanceView::class;
protected $productPerformanceViewDataType = '';
protected $productViewType = ProductView::class;
protected $productViewDataType = '';
/**
* @param BestSellersBrandView
*/
public function setBestSellersBrandView(BestSellersBrandView $bestSellersBrandView)
{
$this->bestSellersBrandView = $bestSellersBrandView;
}
/**
* @return BestSellersBrandView
*/
public function getBestSellersBrandView()
{
return $this->bestSellersBrandView;
}
/**
* @param BestSellersProductClusterView
*/
public function setBestSellersProductClusterView(BestSellersProductClusterView $bestSellersProductClusterView)
{
$this->bestSellersProductClusterView = $bestSellersProductClusterView;
}
/**
* @return BestSellersProductClusterView
*/
public function getBestSellersProductClusterView()
{
return $this->bestSellersProductClusterView;
}
/**
* @param CompetitiveVisibilityBenchmarkView
*/
public function setCompetitiveVisibilityBenchmarkView(CompetitiveVisibilityBenchmarkView $competitiveVisibilityBenchmarkView)
{
$this->competitiveVisibilityBenchmarkView = $competitiveVisibilityBenchmarkView;
}
/**
* @return CompetitiveVisibilityBenchmarkView
*/
public function getCompetitiveVisibilityBenchmarkView()
{
return $this->competitiveVisibilityBenchmarkView;
}
/**
* @param CompetitiveVisibilityCompetitorView
*/
public function setCompetitiveVisibilityCompetitorView(CompetitiveVisibilityCompetitorView $competitiveVisibilityCompetitorView)
{
$this->competitiveVisibilityCompetitorView = $competitiveVisibilityCompetitorView;
}
/**
* @return CompetitiveVisibilityCompetitorView
*/
public function getCompetitiveVisibilityCompetitorView()
{
return $this->competitiveVisibilityCompetitorView;
}
/**
* @param CompetitiveVisibilityTopMerchantView
*/
public function setCompetitiveVisibilityTopMerchantView(CompetitiveVisibilityTopMerchantView $competitiveVisibilityTopMerchantView)
{
$this->competitiveVisibilityTopMerchantView = $competitiveVisibilityTopMerchantView;
}
/**
* @return CompetitiveVisibilityTopMerchantView
*/
public function getCompetitiveVisibilityTopMerchantView()
{
return $this->competitiveVisibilityTopMerchantView;
}
/**
* @param NonProductPerformanceView
*/
public function setNonProductPerformanceView(NonProductPerformanceView $nonProductPerformanceView)
{
$this->nonProductPerformanceView = $nonProductPerformanceView;
}
/**
* @return NonProductPerformanceView
*/
public function getNonProductPerformanceView()
{
return $this->nonProductPerformanceView;
}
/**
* @param PriceCompetitivenessProductView
*/
public function setPriceCompetitivenessProductView(PriceCompetitivenessProductView $priceCompetitivenessProductView)
{
$this->priceCompetitivenessProductView = $priceCompetitivenessProductView;
}
/**
* @return PriceCompetitivenessProductView
*/
public function getPriceCompetitivenessProductView()
{
return $this->priceCompetitivenessProductView;
}
/**
* @param PriceInsightsProductView
*/
public function setPriceInsightsProductView(PriceInsightsProductView $priceInsightsProductView)
{
$this->priceInsightsProductView = $priceInsightsProductView;
}
/**
* @return PriceInsightsProductView
*/
public function getPriceInsightsProductView()
{
return $this->priceInsightsProductView;
}
/**
* @param ProductPerformanceView
*/
public function setProductPerformanceView(ProductPerformanceView $productPerformanceView)
{
$this->productPerformanceView = $productPerformanceView;
}
/**
* @return ProductPerformanceView
*/
public function getProductPerformanceView()
{
return $this->productPerformanceView;
}
/**
* @param ProductView
*/
public function setProductView(ProductView $productView)
{
$this->productView = $productView;
}
/**
* @return ProductView
*/
public function getProductView()
{
return $this->productView;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ReportRow::class, 'Google_Service_Merchant_ReportRow');
@@ -0,0 +1,33 @@
<?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\Resource;
/**
* The "accounts" collection of methods.
* Typical usage is:
* <code>
* $merchantapiService = new Google\Service\Merchant(...);
* $accounts = $merchantapiService->accounts;
* </code>
*/
class Accounts extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Accounts::class, 'Google_Service_Merchant_Resource_Accounts');
@@ -0,0 +1,113 @@
<?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\Resource;
use Google\Service\Merchant\ListMerchantReviewsResponse;
use Google\Service\Merchant\MerchantReview;
use Google\Service\Merchant\MerchantapiEmpty;
/**
* The "merchantReviews" collection of methods.
* Typical usage is:
* <code>
* $merchantapiService = new Google\Service\Merchant(...);
* $merchantReviews = $merchantapiService->accounts_merchantReviews;
* </code>
*/
class AccountsMerchantReviews extends \Google\Service\Resource
{
/**
* Deletes merchant review. (merchantReviews.delete)
*
* @param string $name Required. The ID of the merchant review. Format:
* accounts/{account}/merchantReviews/{merchantReview}
* @param array $optParams Optional parameters.
* @return MerchantapiEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], MerchantapiEmpty::class);
}
/**
* Gets a merchant review. (merchantReviews.get)
*
* @param string $name Required. The ID of the merchant review. Format:
* accounts/{account}/merchantReviews/{merchantReview}
* @param array $optParams Optional parameters.
* @return MerchantReview
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], MerchantReview::class);
}
/**
* Inserts a review for your Merchant Center account. If the review already
* exists, then the review is replaced with the new instance.
* (merchantReviews.insert)
*
* @param string $parent Required. The account where the merchant review will be
* inserted. Format: accounts/{account}
* @param MerchantReview $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string dataSource Required. The data source of the [merchantreview
* ](https://support.google.com/merchants/answer/7045996?sjid=525358124421758197
* 6-EU) Format: `accounts/{account}/dataSources/{datasource}`.
* @return MerchantReview
* @throws \Google\Service\Exception
*/
public function insert($parent, MerchantReview $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('insert', [$params], MerchantReview::class);
}
/**
* Lists merchant reviews. (merchantReviews.listAccountsMerchantReviews)
*
* @param string $parent Required. The account to list merchant reviews for.
* Format: accounts/{account}
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Optional. The maximum number of merchant reviews to
* return. The service can return fewer than this value. The maximum value is
* 1000; values above 1000 are coerced to 1000. If unspecified, the maximum
* number of reviews is returned.
* @opt_param string pageToken Optional. A page token, received from a previous
* `ListMerchantReviews` call. Provide this to retrieve the subsequent page.
* When paginating, all other parameters provided to `ListMerchantReviews` must
* match the call that provided the page token.
* @return ListMerchantReviewsResponse
* @throws \Google\Service\Exception
*/
public function listAccountsMerchantReviews($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListMerchantReviewsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccountsMerchantReviews::class, 'Google_Service_Merchant_Resource_AccountsMerchantReviews');
@@ -0,0 +1,108 @@
<?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\Resource;
use Google\Service\Merchant\ListProductReviewsResponse;
use Google\Service\Merchant\MerchantapiEmpty;
use Google\Service\Merchant\ProductReview;
/**
* The "productReviews" collection of methods.
* Typical usage is:
* <code>
* $merchantapiService = new Google\Service\Merchant(...);
* $productReviews = $merchantapiService->accounts_productReviews;
* </code>
*/
class AccountsProductReviews extends \Google\Service\Resource
{
/**
* Deletes a product review. (productReviews.delete)
*
* @param string $name Required. The ID of the Product review. Format:
* accounts/{account}/productReviews/{productReview}
* @param array $optParams Optional parameters.
* @return MerchantapiEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], MerchantapiEmpty::class);
}
/**
* Gets a product review. (productReviews.get)
*
* @param string $name Required. The ID of the merchant review. Format:
* accounts/{account}/productReviews/{productReview}
* @param array $optParams Optional parameters.
* @return ProductReview
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], ProductReview::class);
}
/**
* Inserts a product review. (productReviews.insert)
*
* @param string $parent Required. The account where the product review will be
* inserted. Format: accounts/{account}
* @param ProductReview $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string dataSource Required. Format:
* `accounts/{account}/dataSources/{datasource}`.
* @return ProductReview
* @throws \Google\Service\Exception
*/
public function insert($parent, ProductReview $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('insert', [$params], ProductReview::class);
}
/**
* Lists product reviews. (productReviews.listAccountsProductReviews)
*
* @param string $parent Required. The account to list product reviews for.
* Format: accounts/{account}
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Optional. The maximum number of products to return.
* The service may return fewer than this value.
* @opt_param string pageToken Optional. A page token, received from a previous
* `ListProductReviews` call. Provide this to retrieve the subsequent page. When
* paginating, all other parameters provided to `ListProductReviews` must match
* the call that provided the page token.
* @return ListProductReviewsResponse
* @throws \Google\Service\Exception
*/
public function listAccountsProductReviews($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListProductReviewsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccountsProductReviews::class, 'Google_Service_Merchant_Resource_AccountsProductReviews');
@@ -0,0 +1,54 @@
<?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\Resource;
use Google\Service\Merchant\SearchRequest;
use Google\Service\Merchant\SearchResponse;
/**
* The "reports" collection of methods.
* Typical usage is:
* <code>
* $merchantapiService = new Google\Service\Merchant(...);
* $reports = $merchantapiService->accounts_reports;
* </code>
*/
class AccountsReports extends \Google\Service\Resource
{
/**
* Retrieves a report defined by a search query. The response might contain
* fewer rows than specified by `page_size`. Rely on `next_page_token` to
* determine if there are more rows to be requested. (reports.search)
*
* @param string $parent Required. Id of the account making the call. Must be a
* standalone account or an MCA subaccount. Format: accounts/{account}
* @param SearchRequest $postBody
* @param array $optParams Optional parameters.
* @return SearchResponse
* @throws \Google\Service\Exception
*/
public function search($parent, SearchRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('search', [$params], SearchResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccountsReports::class, 'Google_Service_Merchant_Resource_AccountsReports');
@@ -0,0 +1,86 @@
<?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 ReviewLink extends \Google\Model
{
/**
* Type unspecified.
*/
public const TYPE_TYPE_UNSPECIFIED = 'TYPE_UNSPECIFIED';
/**
* The review page contains only this single review.
*/
public const TYPE_SINGLETON = 'SINGLETON';
/**
* The review page contains a group of reviews including this review.
*/
public const TYPE_GROUP = 'GROUP';
/**
* Optional. The URI of the review landing page. For example:
* `http://www.example.com/review_5.html`.
*
* @var string
*/
public $link;
/**
* Optional. Type of the review URI.
*
* @var string
*/
public $type;
/**
* Optional. The URI of the review landing page. For example:
* `http://www.example.com/review_5.html`.
*
* @param string $link
*/
public function setLink($link)
{
$this->link = $link;
}
/**
* @return string
*/
public function getLink()
{
return $this->link;
}
/**
* Optional. Type of the review URI.
*
* Accepted values: TYPE_UNSPECIFIED, SINGLETON, GROUP
*
* @param self::TYPE_* $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return self::TYPE_*
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ReviewLink::class, 'Google_Service_Merchant_ReviewLink');
@@ -0,0 +1,80 @@
<?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 SearchRequest extends \Google\Model
{
/**
* @var int
*/
public $pageSize;
/**
* @var string
*/
public $pageToken;
/**
* @var string
*/
public $query;
/**
* @param int
*/
public function setPageSize($pageSize)
{
$this->pageSize = $pageSize;
}
/**
* @return int
*/
public function getPageSize()
{
return $this->pageSize;
}
/**
* @param string
*/
public function setPageToken($pageToken)
{
$this->pageToken = $pageToken;
}
/**
* @return string
*/
public function getPageToken()
{
return $this->pageToken;
}
/**
* @param string
*/
public function setQuery($query)
{
$this->query = $query;
}
/**
* @return string
*/
public function getQuery()
{
return $this->query;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SearchRequest::class, 'Google_Service_Merchant_SearchRequest');
@@ -0,0 +1,61 @@
<?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 SearchResponse extends \Google\Collection
{
protected $collection_key = 'results';
/**
* @var string
*/
public $nextPageToken;
protected $resultsType = ReportRow::class;
protected $resultsDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param ReportRow[]
*/
public function setResults($results)
{
$this->results = $results;
}
/**
* @return ReportRow[]
*/
public function getResults()
{
return $this->results;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SearchResponse::class, 'Google_Service_Merchant_SearchResponse');