Initial commit

This commit is contained in:
Local Administrator
2025-04-18 10:32:42 +02:00
commit b83134aca3
29643 changed files with 3045897 additions and 0 deletions

View File

@@ -0,0 +1,151 @@
<?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\Adsense;
class Account extends \Google\Collection
{
protected $collection_key = 'pendingTasks';
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $displayName;
/**
* @var string
*/
public $name;
/**
* @var string[]
*/
public $pendingTasks;
/**
* @var bool
*/
public $premium;
/**
* @var string
*/
public $state;
protected $timeZoneType = TimeZone::class;
protected $timeZoneDataType = '';
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string[]
*/
public function setPendingTasks($pendingTasks)
{
$this->pendingTasks = $pendingTasks;
}
/**
* @return string[]
*/
public function getPendingTasks()
{
return $this->pendingTasks;
}
/**
* @param bool
*/
public function setPremium($premium)
{
$this->premium = $premium;
}
/**
* @return bool
*/
public function getPremium()
{
return $this->premium;
}
/**
* @param string
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return string
*/
public function getState()
{
return $this->state;
}
/**
* @param TimeZone
*/
public function setTimeZone(TimeZone $timeZone)
{
$this->timeZone = $timeZone;
}
/**
* @return TimeZone
*/
public function getTimeZone()
{
return $this->timeZone;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Account::class, 'Google_Service_Adsense_Account');

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\Adsense;
class AdBlockingRecoveryTag extends \Google\Model
{
/**
* @var string
*/
public $errorProtectionCode;
/**
* @var string
*/
public $tag;
/**
* @param string
*/
public function setErrorProtectionCode($errorProtectionCode)
{
$this->errorProtectionCode = $errorProtectionCode;
}
/**
* @return string
*/
public function getErrorProtectionCode()
{
return $this->errorProtectionCode;
}
/**
* @param string
*/
public function setTag($tag)
{
$this->tag = $tag;
}
/**
* @return string
*/
public function getTag()
{
return $this->tag;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AdBlockingRecoveryTag::class, 'Google_Service_Adsense_AdBlockingRecoveryTag');

View File

@@ -0,0 +1,98 @@
<?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\Adsense;
class AdClient extends \Google\Model
{
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $productCode;
/**
* @var string
*/
public $reportingDimensionId;
/**
* @var string
*/
public $state;
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setProductCode($productCode)
{
$this->productCode = $productCode;
}
/**
* @return string
*/
public function getProductCode()
{
return $this->productCode;
}
/**
* @param string
*/
public function setReportingDimensionId($reportingDimensionId)
{
$this->reportingDimensionId = $reportingDimensionId;
}
/**
* @return string
*/
public function getReportingDimensionId()
{
return $this->reportingDimensionId;
}
/**
* @param string
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return string
*/
public function getState()
{
return $this->state;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AdClient::class, 'Google_Service_Adsense_AdClient');

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\Adsense;
class AdClientAdCode extends \Google\Model
{
/**
* @var string
*/
public $adCode;
/**
* @var string
*/
public $ampBody;
/**
* @var string
*/
public $ampHead;
/**
* @param string
*/
public function setAdCode($adCode)
{
$this->adCode = $adCode;
}
/**
* @return string
*/
public function getAdCode()
{
return $this->adCode;
}
/**
* @param string
*/
public function setAmpBody($ampBody)
{
$this->ampBody = $ampBody;
}
/**
* @return string
*/
public function getAmpBody()
{
return $this->ampBody;
}
/**
* @param string
*/
public function setAmpHead($ampHead)
{
$this->ampHead = $ampHead;
}
/**
* @return string
*/
public function getAmpHead()
{
return $this->ampHead;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AdClientAdCode::class, 'Google_Service_Adsense_AdClientAdCode');

View File

@@ -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\Adsense;
class AdUnit extends \Google\Model
{
protected $contentAdsSettingsType = ContentAdsSettings::class;
protected $contentAdsSettingsDataType = '';
/**
* @var string
*/
public $displayName;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $reportingDimensionId;
/**
* @var string
*/
public $state;
/**
* @param ContentAdsSettings
*/
public function setContentAdsSettings(ContentAdsSettings $contentAdsSettings)
{
$this->contentAdsSettings = $contentAdsSettings;
}
/**
* @return ContentAdsSettings
*/
public function getContentAdsSettings()
{
return $this->contentAdsSettings;
}
/**
* @param string
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setReportingDimensionId($reportingDimensionId)
{
$this->reportingDimensionId = $reportingDimensionId;
}
/**
* @return string
*/
public function getReportingDimensionId()
{
return $this->reportingDimensionId;
}
/**
* @param string
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return string
*/
public function getState()
{
return $this->state;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AdUnit::class, 'Google_Service_Adsense_AdUnit');

View File

@@ -0,0 +1,44 @@
<?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\Adsense;
class AdUnitAdCode extends \Google\Model
{
/**
* @var string
*/
public $adCode;
/**
* @param string
*/
public function setAdCode($adCode)
{
$this->adCode = $adCode;
}
/**
* @return string
*/
public function getAdCode()
{
return $this->adCode;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AdUnitAdCode::class, 'Google_Service_Adsense_AdUnitAdCode');

View File

@@ -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\Adsense;
class AdsenseEmpty extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AdsenseEmpty::class, 'Google_Service_Adsense_AdsenseEmpty');

View File

@@ -0,0 +1,98 @@
<?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\Adsense;
class Alert extends \Google\Model
{
/**
* @var string
*/
public $message;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $severity;
/**
* @var string
*/
public $type;
/**
* @param string
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setSeverity($severity)
{
$this->severity = $severity;
}
/**
* @return string
*/
public function getSeverity()
{
return $this->severity;
}
/**
* @param string
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Alert::class, 'Google_Service_Adsense_Alert');

View File

@@ -0,0 +1,44 @@
<?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\Adsense;
class Cell extends \Google\Model
{
/**
* @var string
*/
public $value;
/**
* @param string
*/
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(Cell::class, 'Google_Service_Adsense_Cell');

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\Adsense;
class ContentAdsSettings extends \Google\Model
{
/**
* @var string
*/
public $size;
/**
* @var string
*/
public $type;
/**
* @param string
*/
public function setSize($size)
{
$this->size = $size;
}
/**
* @return string
*/
public function getSize()
{
return $this->size;
}
/**
* @param string
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ContentAdsSettings::class, 'Google_Service_Adsense_ContentAdsSettings');

View File

@@ -0,0 +1,98 @@
<?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\Adsense;
class CustomChannel extends \Google\Model
{
/**
* @var bool
*/
public $active;
/**
* @var string
*/
public $displayName;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $reportingDimensionId;
/**
* @param bool
*/
public function setActive($active)
{
$this->active = $active;
}
/**
* @return bool
*/
public function getActive()
{
return $this->active;
}
/**
* @param string
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setReportingDimensionId($reportingDimensionId)
{
$this->reportingDimensionId = $reportingDimensionId;
}
/**
* @return string
*/
public function getReportingDimensionId()
{
return $this->reportingDimensionId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CustomChannel::class, 'Google_Service_Adsense_CustomChannel');

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\Adsense;
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_Adsense_Date');

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\Adsense;
class Header extends \Google\Model
{
/**
* @var string
*/
public $currencyCode;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $type;
/**
* @param string
*/
public function setCurrencyCode($currencyCode)
{
$this->currencyCode = $currencyCode;
}
/**
* @return string
*/
public function getCurrencyCode()
{
return $this->currencyCode;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Header::class, 'Google_Service_Adsense_Header');

View File

@@ -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\Adsense;
class HttpBody extends \Google\Collection
{
protected $collection_key = 'extensions';
/**
* @var string
*/
public $contentType;
/**
* @var string
*/
public $data;
/**
* @var array[]
*/
public $extensions;
/**
* @param string
*/
public function setContentType($contentType)
{
$this->contentType = $contentType;
}
/**
* @return string
*/
public function getContentType()
{
return $this->contentType;
}
/**
* @param string
*/
public function setData($data)
{
$this->data = $data;
}
/**
* @return string
*/
public function getData()
{
return $this->data;
}
/**
* @param array[]
*/
public function setExtensions($extensions)
{
$this->extensions = $extensions;
}
/**
* @return array[]
*/
public function getExtensions()
{
return $this->extensions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(HttpBody::class, 'Google_Service_Adsense_HttpBody');

View File

@@ -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\Adsense;
class ListAccountsResponse extends \Google\Collection
{
protected $collection_key = 'accounts';
protected $accountsType = Account::class;
protected $accountsDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @param Account[]
*/
public function setAccounts($accounts)
{
$this->accounts = $accounts;
}
/**
* @return Account[]
*/
public function getAccounts()
{
return $this->accounts;
}
/**
* @param string
*/
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(ListAccountsResponse::class, 'Google_Service_Adsense_ListAccountsResponse');

View File

@@ -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\Adsense;
class ListAdClientsResponse extends \Google\Collection
{
protected $collection_key = 'adClients';
protected $adClientsType = AdClient::class;
protected $adClientsDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @param AdClient[]
*/
public function setAdClients($adClients)
{
$this->adClients = $adClients;
}
/**
* @return AdClient[]
*/
public function getAdClients()
{
return $this->adClients;
}
/**
* @param string
*/
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(ListAdClientsResponse::class, 'Google_Service_Adsense_ListAdClientsResponse');

View File

@@ -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\Adsense;
class ListAdUnitsResponse extends \Google\Collection
{
protected $collection_key = 'adUnits';
protected $adUnitsType = AdUnit::class;
protected $adUnitsDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @param AdUnit[]
*/
public function setAdUnits($adUnits)
{
$this->adUnits = $adUnits;
}
/**
* @return AdUnit[]
*/
public function getAdUnits()
{
return $this->adUnits;
}
/**
* @param string
*/
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(ListAdUnitsResponse::class, 'Google_Service_Adsense_ListAdUnitsResponse');

View File

@@ -0,0 +1,43 @@
<?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\Adsense;
class ListAlertsResponse extends \Google\Collection
{
protected $collection_key = 'alerts';
protected $alertsType = Alert::class;
protected $alertsDataType = 'array';
/**
* @param Alert[]
*/
public function setAlerts($alerts)
{
$this->alerts = $alerts;
}
/**
* @return Alert[]
*/
public function getAlerts()
{
return $this->alerts;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListAlertsResponse::class, 'Google_Service_Adsense_ListAlertsResponse');

View File

@@ -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\Adsense;
class ListChildAccountsResponse extends \Google\Collection
{
protected $collection_key = 'accounts';
protected $accountsType = Account::class;
protected $accountsDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @param Account[]
*/
public function setAccounts($accounts)
{
$this->accounts = $accounts;
}
/**
* @return Account[]
*/
public function getAccounts()
{
return $this->accounts;
}
/**
* @param string
*/
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(ListChildAccountsResponse::class, 'Google_Service_Adsense_ListChildAccountsResponse');

View File

@@ -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\Adsense;
class ListCustomChannelsResponse extends \Google\Collection
{
protected $collection_key = 'customChannels';
protected $customChannelsType = CustomChannel::class;
protected $customChannelsDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @param CustomChannel[]
*/
public function setCustomChannels($customChannels)
{
$this->customChannels = $customChannels;
}
/**
* @return CustomChannel[]
*/
public function getCustomChannels()
{
return $this->customChannels;
}
/**
* @param string
*/
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(ListCustomChannelsResponse::class, 'Google_Service_Adsense_ListCustomChannelsResponse');

View File

@@ -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\Adsense;
class ListLinkedAdUnitsResponse extends \Google\Collection
{
protected $collection_key = 'adUnits';
protected $adUnitsType = AdUnit::class;
protected $adUnitsDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @param AdUnit[]
*/
public function setAdUnits($adUnits)
{
$this->adUnits = $adUnits;
}
/**
* @return AdUnit[]
*/
public function getAdUnits()
{
return $this->adUnits;
}
/**
* @param string
*/
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(ListLinkedAdUnitsResponse::class, 'Google_Service_Adsense_ListLinkedAdUnitsResponse');

View File

@@ -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\Adsense;
class ListLinkedCustomChannelsResponse extends \Google\Collection
{
protected $collection_key = 'customChannels';
protected $customChannelsType = CustomChannel::class;
protected $customChannelsDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @param CustomChannel[]
*/
public function setCustomChannels($customChannels)
{
$this->customChannels = $customChannels;
}
/**
* @return CustomChannel[]
*/
public function getCustomChannels()
{
return $this->customChannels;
}
/**
* @param string
*/
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(ListLinkedCustomChannelsResponse::class, 'Google_Service_Adsense_ListLinkedCustomChannelsResponse');

View File

@@ -0,0 +1,43 @@
<?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\Adsense;
class ListPaymentsResponse extends \Google\Collection
{
protected $collection_key = 'payments';
protected $paymentsType = Payment::class;
protected $paymentsDataType = 'array';
/**
* @param Payment[]
*/
public function setPayments($payments)
{
$this->payments = $payments;
}
/**
* @return Payment[]
*/
public function getPayments()
{
return $this->payments;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListPaymentsResponse::class, 'Google_Service_Adsense_ListPaymentsResponse');

View File

@@ -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\Adsense;
class ListPolicyIssuesResponse extends \Google\Collection
{
protected $collection_key = 'policyIssues';
/**
* @var string
*/
public $nextPageToken;
protected $policyIssuesType = PolicyIssue::class;
protected $policyIssuesDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param PolicyIssue[]
*/
public function setPolicyIssues($policyIssues)
{
$this->policyIssues = $policyIssues;
}
/**
* @return PolicyIssue[]
*/
public function getPolicyIssues()
{
return $this->policyIssues;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListPolicyIssuesResponse::class, 'Google_Service_Adsense_ListPolicyIssuesResponse');

View File

@@ -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\Adsense;
class ListSavedReportsResponse extends \Google\Collection
{
protected $collection_key = 'savedReports';
/**
* @var string
*/
public $nextPageToken;
protected $savedReportsType = SavedReport::class;
protected $savedReportsDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param SavedReport[]
*/
public function setSavedReports($savedReports)
{
$this->savedReports = $savedReports;
}
/**
* @return SavedReport[]
*/
public function getSavedReports()
{
return $this->savedReports;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListSavedReportsResponse::class, 'Google_Service_Adsense_ListSavedReportsResponse');

View File

@@ -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\Adsense;
class ListSitesResponse extends \Google\Collection
{
protected $collection_key = 'sites';
/**
* @var string
*/
public $nextPageToken;
protected $sitesType = Site::class;
protected $sitesDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param Site[]
*/
public function setSites($sites)
{
$this->sites = $sites;
}
/**
* @return Site[]
*/
public function getSites()
{
return $this->sites;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListSitesResponse::class, 'Google_Service_Adsense_ListSitesResponse');

View File

@@ -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\Adsense;
class ListUrlChannelsResponse extends \Google\Collection
{
protected $collection_key = 'urlChannels';
/**
* @var string
*/
public $nextPageToken;
protected $urlChannelsType = UrlChannel::class;
protected $urlChannelsDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param UrlChannel[]
*/
public function setUrlChannels($urlChannels)
{
$this->urlChannels = $urlChannels;
}
/**
* @return UrlChannel[]
*/
public function getUrlChannels()
{
return $this->urlChannels;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListUrlChannelsResponse::class, 'Google_Service_Adsense_ListUrlChannelsResponse');

View File

@@ -0,0 +1,78 @@
<?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\Adsense;
class Payment extends \Google\Model
{
/**
* @var string
*/
public $amount;
protected $dateType = Date::class;
protected $dateDataType = '';
/**
* @var string
*/
public $name;
/**
* @param string
*/
public function setAmount($amount)
{
$this->amount = $amount;
}
/**
* @return string
*/
public function getAmount()
{
return $this->amount;
}
/**
* @param Date
*/
public function setDate(Date $date)
{
$this->date = $date;
}
/**
* @return Date
*/
public function getDate()
{
return $this->date;
}
/**
* @param string
*/
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(Payment::class, 'Google_Service_Adsense_Payment');

View File

@@ -0,0 +1,235 @@
<?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\Adsense;
class PolicyIssue extends \Google\Collection
{
protected $collection_key = 'policyTopics';
/**
* @var string
*/
public $action;
/**
* @var string[]
*/
public $adClients;
/**
* @var string
*/
public $adRequestCount;
/**
* @var string
*/
public $entityType;
protected $firstDetectedDateType = Date::class;
protected $firstDetectedDateDataType = '';
protected $lastDetectedDateType = Date::class;
protected $lastDetectedDateDataType = '';
/**
* @var string
*/
public $name;
protected $policyTopicsType = PolicyTopic::class;
protected $policyTopicsDataType = 'array';
/**
* @var string
*/
public $site;
/**
* @var string
*/
public $siteSection;
/**
* @var string
*/
public $uri;
protected $warningEscalationDateType = Date::class;
protected $warningEscalationDateDataType = '';
/**
* @param string
*/
public function setAction($action)
{
$this->action = $action;
}
/**
* @return string
*/
public function getAction()
{
return $this->action;
}
/**
* @param string[]
*/
public function setAdClients($adClients)
{
$this->adClients = $adClients;
}
/**
* @return string[]
*/
public function getAdClients()
{
return $this->adClients;
}
/**
* @param string
*/
public function setAdRequestCount($adRequestCount)
{
$this->adRequestCount = $adRequestCount;
}
/**
* @return string
*/
public function getAdRequestCount()
{
return $this->adRequestCount;
}
/**
* @param string
*/
public function setEntityType($entityType)
{
$this->entityType = $entityType;
}
/**
* @return string
*/
public function getEntityType()
{
return $this->entityType;
}
/**
* @param Date
*/
public function setFirstDetectedDate(Date $firstDetectedDate)
{
$this->firstDetectedDate = $firstDetectedDate;
}
/**
* @return Date
*/
public function getFirstDetectedDate()
{
return $this->firstDetectedDate;
}
/**
* @param Date
*/
public function setLastDetectedDate(Date $lastDetectedDate)
{
$this->lastDetectedDate = $lastDetectedDate;
}
/**
* @return Date
*/
public function getLastDetectedDate()
{
return $this->lastDetectedDate;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param PolicyTopic[]
*/
public function setPolicyTopics($policyTopics)
{
$this->policyTopics = $policyTopics;
}
/**
* @return PolicyTopic[]
*/
public function getPolicyTopics()
{
return $this->policyTopics;
}
/**
* @param string
*/
public function setSite($site)
{
$this->site = $site;
}
/**
* @return string
*/
public function getSite()
{
return $this->site;
}
/**
* @param string
*/
public function setSiteSection($siteSection)
{
$this->siteSection = $siteSection;
}
/**
* @return string
*/
public function getSiteSection()
{
return $this->siteSection;
}
/**
* @param string
*/
public function setUri($uri)
{
$this->uri = $uri;
}
/**
* @return string
*/
public function getUri()
{
return $this->uri;
}
/**
* @param Date
*/
public function setWarningEscalationDate(Date $warningEscalationDate)
{
$this->warningEscalationDate = $warningEscalationDate;
}
/**
* @return Date
*/
public function getWarningEscalationDate()
{
return $this->warningEscalationDate;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PolicyIssue::class, 'Google_Service_Adsense_PolicyIssue');

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\Adsense;
class PolicyTopic extends \Google\Model
{
/**
* @var bool
*/
public $mustFix;
/**
* @var string
*/
public $topic;
/**
* @param bool
*/
public function setMustFix($mustFix)
{
$this->mustFix = $mustFix;
}
/**
* @return bool
*/
public function getMustFix()
{
return $this->mustFix;
}
/**
* @param string
*/
public function setTopic($topic)
{
$this->topic = $topic;
}
/**
* @return string
*/
public function getTopic()
{
return $this->topic;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PolicyTopic::class, 'Google_Service_Adsense_PolicyTopic');

View File

@@ -0,0 +1,159 @@
<?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\Adsense;
class ReportResult extends \Google\Collection
{
protected $collection_key = 'warnings';
protected $averagesType = Row::class;
protected $averagesDataType = '';
protected $endDateType = Date::class;
protected $endDateDataType = '';
protected $headersType = Header::class;
protected $headersDataType = 'array';
protected $rowsType = Row::class;
protected $rowsDataType = 'array';
protected $startDateType = Date::class;
protected $startDateDataType = '';
/**
* @var string
*/
public $totalMatchedRows;
protected $totalsType = Row::class;
protected $totalsDataType = '';
/**
* @var string[]
*/
public $warnings;
/**
* @param Row
*/
public function setAverages(Row $averages)
{
$this->averages = $averages;
}
/**
* @return Row
*/
public function getAverages()
{
return $this->averages;
}
/**
* @param Date
*/
public function setEndDate(Date $endDate)
{
$this->endDate = $endDate;
}
/**
* @return Date
*/
public function getEndDate()
{
return $this->endDate;
}
/**
* @param Header[]
*/
public function setHeaders($headers)
{
$this->headers = $headers;
}
/**
* @return Header[]
*/
public function getHeaders()
{
return $this->headers;
}
/**
* @param Row[]
*/
public function setRows($rows)
{
$this->rows = $rows;
}
/**
* @return Row[]
*/
public function getRows()
{
return $this->rows;
}
/**
* @param Date
*/
public function setStartDate(Date $startDate)
{
$this->startDate = $startDate;
}
/**
* @return Date
*/
public function getStartDate()
{
return $this->startDate;
}
/**
* @param string
*/
public function setTotalMatchedRows($totalMatchedRows)
{
$this->totalMatchedRows = $totalMatchedRows;
}
/**
* @return string
*/
public function getTotalMatchedRows()
{
return $this->totalMatchedRows;
}
/**
* @param Row
*/
public function setTotals(Row $totals)
{
$this->totals = $totals;
}
/**
* @return Row
*/
public function getTotals()
{
return $this->totals;
}
/**
* @param string[]
*/
public function setWarnings($warnings)
{
$this->warnings = $warnings;
}
/**
* @return string[]
*/
public function getWarnings()
{
return $this->warnings;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ReportResult::class, 'Google_Service_Adsense_ReportResult');

View File

@@ -0,0 +1,116 @@
<?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\Adsense\Resource;
use Google\Service\Adsense\Account;
use Google\Service\Adsense\AdBlockingRecoveryTag;
use Google\Service\Adsense\ListAccountsResponse;
use Google\Service\Adsense\ListChildAccountsResponse;
/**
* The "accounts" collection of methods.
* Typical usage is:
* <code>
* $adsenseService = new Google\Service\Adsense(...);
* $accounts = $adsenseService->accounts;
* </code>
*/
class Accounts extends \Google\Service\Resource
{
/**
* Gets information about the selected AdSense account. (accounts.get)
*
* @param string $name Required. Account to get information about. Format:
* accounts/{account}
* @param array $optParams Optional parameters.
* @return Account
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Account::class);
}
/**
* Gets the ad blocking recovery tag of an account.
* (accounts.getAdBlockingRecoveryTag)
*
* @param string $name Required. The name of the account to get the tag for.
* Format: accounts/{account}
* @param array $optParams Optional parameters.
* @return AdBlockingRecoveryTag
* @throws \Google\Service\Exception
*/
public function getAdBlockingRecoveryTag($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('getAdBlockingRecoveryTag', [$params], AdBlockingRecoveryTag::class);
}
/**
* Lists all accounts available to this user. (accounts.listAccounts)
*
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The maximum number of accounts to include in the
* response, used for paging. If unspecified, at most 10000 accounts will be
* returned. The maximum value is 10000; values above 10000 will be coerced to
* 10000.
* @opt_param string pageToken A page token, received from a previous
* `ListAccounts` call. Provide this to retrieve the subsequent page. When
* paginating, all other parameters provided to `ListAccounts` must match the
* call that provided the page token.
* @return ListAccountsResponse
* @throws \Google\Service\Exception
*/
public function listAccounts($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListAccountsResponse::class);
}
/**
* Lists all accounts directly managed by the given AdSense account.
* (accounts.listChildAccounts)
*
* @param string $parent Required. The parent account, which owns the child
* accounts. Format: accounts/{account}
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The maximum number of accounts to include in the
* response, used for paging. If unspecified, at most 10000 accounts will be
* returned. The maximum value is 10000; values above 10000 will be coerced to
* 10000.
* @opt_param string pageToken A page token, received from a previous
* `ListChildAccounts` call. Provide this to retrieve the subsequent page. When
* paginating, all other parameters provided to `ListChildAccounts` must match
* the call that provided the page token.
* @return ListChildAccountsResponse
* @throws \Google\Service\Exception
*/
public function listChildAccounts($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('listChildAccounts', [$params], ListChildAccountsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Accounts::class, 'Google_Service_Adsense_Resource_Accounts');

View File

@@ -0,0 +1,96 @@
<?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\Adsense\Resource;
use Google\Service\Adsense\AdClient;
use Google\Service\Adsense\AdClientAdCode;
use Google\Service\Adsense\ListAdClientsResponse;
/**
* The "adclients" collection of methods.
* Typical usage is:
* <code>
* $adsenseService = new Google\Service\Adsense(...);
* $adclients = $adsenseService->accounts_adclients;
* </code>
*/
class AccountsAdclients extends \Google\Service\Resource
{
/**
* Gets the ad client from the given resource name. (adclients.get)
*
* @param string $name Required. The name of the ad client to retrieve. Format:
* accounts/{account}/adclients/{adclient}
* @param array $optParams Optional parameters.
* @return AdClient
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], AdClient::class);
}
/**
* Gets the AdSense code for a given ad client. This returns what was previously
* known as the 'auto ad code'. This is only supported for ad clients with a
* product_code of AFC. For more information, see [About the AdSense
* code](https://support.google.com/adsense/answer/9274634).
* (adclients.getAdcode)
*
* @param string $name Required. Name of the ad client for which to get the
* adcode. Format: accounts/{account}/adclients/{adclient}
* @param array $optParams Optional parameters.
* @return AdClientAdCode
* @throws \Google\Service\Exception
*/
public function getAdcode($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('getAdcode', [$params], AdClientAdCode::class);
}
/**
* Lists all the ad clients available in an account.
* (adclients.listAccountsAdclients)
*
* @param string $parent Required. The account which owns the collection of ad
* clients. Format: accounts/{account}
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The maximum number of ad clients to include in the
* response, used for paging. If unspecified, at most 10000 ad clients will be
* returned. The maximum value is 10000; values above 10000 will be coerced to
* 10000.
* @opt_param string pageToken A page token, received from a previous
* `ListAdClients` call. Provide this to retrieve the subsequent page. When
* paginating, all other parameters provided to `ListAdClients` must match the
* call that provided the page token.
* @return ListAdClientsResponse
* @throws \Google\Service\Exception
*/
public function listAccountsAdclients($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListAdClientsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccountsAdclients::class, 'Google_Service_Adsense_Resource_AccountsAdclients');

View File

@@ -0,0 +1,170 @@
<?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\Adsense\Resource;
use Google\Service\Adsense\AdUnit;
use Google\Service\Adsense\AdUnitAdCode;
use Google\Service\Adsense\ListAdUnitsResponse;
use Google\Service\Adsense\ListLinkedCustomChannelsResponse;
/**
* The "adunits" collection of methods.
* Typical usage is:
* <code>
* $adsenseService = new Google\Service\Adsense(...);
* $adunits = $adsenseService->accounts_adclients_adunits;
* </code>
*/
class AccountsAdclientsAdunits extends \Google\Service\Resource
{
/**
* Creates an ad unit. This method can be called only by a restricted set of
* projects, which are usually owned by [AdSense for
* Platforms](https://developers.google.com/adsense/platforms/) publishers.
* Contact your account manager if you need to use this method. Note that ad
* units can only be created for ad clients with an "AFC" product code. For more
* info see the [AdClient
* resource](/adsense/management/reference/rest/v2/accounts.adclients). For now,
* this method can only be used to create `DISPLAY` ad units. See:
* https://support.google.com/adsense/answer/9183566 (adunits.create)
*
* @param string $parent Required. Ad client to create an ad unit under. Format:
* accounts/{account}/adclients/{adclient}
* @param AdUnit $postBody
* @param array $optParams Optional parameters.
* @return AdUnit
* @throws \Google\Service\Exception
*/
public function create($parent, AdUnit $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], AdUnit::class);
}
/**
* Gets an ad unit from a specified account and ad client. (adunits.get)
*
* @param string $name Required. AdUnit to get information about. Format:
* accounts/{account}/adclients/{adclient}/adunits/{adunit}
* @param array $optParams Optional parameters.
* @return AdUnit
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], AdUnit::class);
}
/**
* Gets the ad unit code for a given ad unit. For more information, see [About
* the AdSense code](https://support.google.com/adsense/answer/9274634) and
* [Where to place the ad code in your
* HTML](https://support.google.com/adsense/answer/9190028). (adunits.getAdcode)
*
* @param string $name Required. Name of the adunit for which to get the adcode.
* Format: accounts/{account}/adclients/{adclient}/adunits/{adunit}
* @param array $optParams Optional parameters.
* @return AdUnitAdCode
* @throws \Google\Service\Exception
*/
public function getAdcode($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('getAdcode', [$params], AdUnitAdCode::class);
}
/**
* Lists all ad units under a specified account and ad client.
* (adunits.listAccountsAdclientsAdunits)
*
* @param string $parent Required. The ad client which owns the collection of ad
* units. Format: accounts/{account}/adclients/{adclient}
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The maximum number of ad units to include in the
* response, used for paging. If unspecified, at most 10000 ad units will be
* returned. The maximum value is 10000; values above 10000 will be coerced to
* 10000.
* @opt_param string pageToken A page token, received from a previous
* `ListAdUnits` call. Provide this to retrieve the subsequent page. When
* paginating, all other parameters provided to `ListAdUnits` must match the
* call that provided the page token.
* @return ListAdUnitsResponse
* @throws \Google\Service\Exception
*/
public function listAccountsAdclientsAdunits($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListAdUnitsResponse::class);
}
/**
* Lists all the custom channels available for an ad unit.
* (adunits.listLinkedCustomChannels)
*
* @param string $parent Required. The ad unit which owns the collection of
* custom channels. Format:
* accounts/{account}/adclients/{adclient}/adunits/{adunit}
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The maximum number of custom channels to include in
* the response, used for paging. If unspecified, at most 10000 custom channels
* will be returned. The maximum value is 10000; values above 10000 will be
* coerced to 10000.
* @opt_param string pageToken A page token, received from a previous
* `ListLinkedCustomChannels` call. Provide this to retrieve the subsequent
* page. When paginating, all other parameters provided to
* `ListLinkedCustomChannels` must match the call that provided the page token.
* @return ListLinkedCustomChannelsResponse
* @throws \Google\Service\Exception
*/
public function listLinkedCustomChannels($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('listLinkedCustomChannels', [$params], ListLinkedCustomChannelsResponse::class);
}
/**
* Updates an ad unit. This method can be called only by a restricted set of
* projects, which are usually owned by [AdSense for
* Platforms](https://developers.google.com/adsense/platforms/) publishers.
* Contact your account manager if you need to use this method. For now, this
* method can only be used to update `DISPLAY` ad units. See:
* https://support.google.com/adsense/answer/9183566 (adunits.patch)
*
* @param string $name Output only. Resource name of the ad unit. Format:
* accounts/{account}/adclients/{adclient}/adunits/{adunit}
* @param AdUnit $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask The list of fields to update. If empty, a full
* update is performed.
* @return AdUnit
* @throws \Google\Service\Exception
*/
public function patch($name, AdUnit $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], AdUnit::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccountsAdclientsAdunits::class, 'Google_Service_Adsense_Resource_AccountsAdclientsAdunits');

View File

@@ -0,0 +1,166 @@
<?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\Adsense\Resource;
use Google\Service\Adsense\AdsenseEmpty;
use Google\Service\Adsense\CustomChannel;
use Google\Service\Adsense\ListCustomChannelsResponse;
use Google\Service\Adsense\ListLinkedAdUnitsResponse;
/**
* The "customchannels" collection of methods.
* Typical usage is:
* <code>
* $adsenseService = new Google\Service\Adsense(...);
* $customchannels = $adsenseService->accounts_adclients_customchannels;
* </code>
*/
class AccountsAdclientsCustomchannels extends \Google\Service\Resource
{
/**
* Creates a custom channel. This method can be called only by a restricted set
* of projects, which are usually owned by [AdSense for
* Platforms](https://developers.google.com/adsense/platforms/) publishers.
* Contact your account manager if you need to use this method.
* (customchannels.create)
*
* @param string $parent Required. The ad client to create a custom channel
* under. Format: accounts/{account}/adclients/{adclient}
* @param CustomChannel $postBody
* @param array $optParams Optional parameters.
* @return CustomChannel
* @throws \Google\Service\Exception
*/
public function create($parent, CustomChannel $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], CustomChannel::class);
}
/**
* Deletes a custom channel. This method can be called only by a restricted set
* of projects, which are usually owned by [AdSense for
* Platforms](https://developers.google.com/adsense/platforms/) publishers.
* Contact your account manager if you need to use this method.
* (customchannels.delete)
*
* @param string $name Required. Name of the custom channel to delete. Format:
* accounts/{account}/adclients/{adclient}/customchannels/{customchannel}
* @param array $optParams Optional parameters.
* @return AdsenseEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], AdsenseEmpty::class);
}
/**
* Gets information about the selected custom channel. (customchannels.get)
*
* @param string $name Required. Name of the custom channel. Format:
* accounts/{account}/adclients/{adclient}/customchannels/{customchannel}
* @param array $optParams Optional parameters.
* @return CustomChannel
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], CustomChannel::class);
}
/**
* Lists all the custom channels available in an ad client.
* (customchannels.listAccountsAdclientsCustomchannels)
*
* @param string $parent Required. The ad client which owns the collection of
* custom channels. Format: accounts/{account}/adclients/{adclient}
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The maximum number of custom channels to include in
* the response, used for paging. If unspecified, at most 10000 custom channels
* will be returned. The maximum value is 10000; values above 10000 will be
* coerced to 10000.
* @opt_param string pageToken A page token, received from a previous
* `ListCustomChannels` call. Provide this to retrieve the subsequent page. When
* paginating, all other parameters provided to `ListCustomChannels` must match
* the call that provided the page token.
* @return ListCustomChannelsResponse
* @throws \Google\Service\Exception
*/
public function listAccountsAdclientsCustomchannels($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListCustomChannelsResponse::class);
}
/**
* Lists all the ad units available for a custom channel.
* (customchannels.listLinkedAdUnits)
*
* @param string $parent Required. The custom channel which owns the collection
* of ad units. Format:
* accounts/{account}/adclients/{adclient}/customchannels/{customchannel}
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The maximum number of ad units to include in the
* response, used for paging. If unspecified, at most 10000 ad units will be
* returned. The maximum value is 10000; values above 10000 will be coerced to
* 10000.
* @opt_param string pageToken A page token, received from a previous
* `ListLinkedAdUnits` call. Provide this to retrieve the subsequent page. When
* paginating, all other parameters provided to `ListLinkedAdUnits` must match
* the call that provided the page token.
* @return ListLinkedAdUnitsResponse
* @throws \Google\Service\Exception
*/
public function listLinkedAdUnits($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('listLinkedAdUnits', [$params], ListLinkedAdUnitsResponse::class);
}
/**
* Updates a custom channel. This method can be called only by a restricted set
* of projects, which are usually owned by [AdSense for
* Platforms](https://developers.google.com/adsense/platforms/) publishers.
* Contact your account manager if you need to use this method.
* (customchannels.patch)
*
* @param string $name Output only. Resource name of the custom channel. Format:
* accounts/{account}/adclients/{adclient}/customchannels/{customchannel}
* @param CustomChannel $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask The list of fields to update. If empty, a full
* update is performed.
* @return CustomChannel
* @throws \Google\Service\Exception
*/
public function patch($name, CustomChannel $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], CustomChannel::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccountsAdclientsCustomchannels::class, 'Google_Service_Adsense_Resource_AccountsAdclientsCustomchannels');

View File

@@ -0,0 +1,75 @@
<?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\Adsense\Resource;
use Google\Service\Adsense\ListUrlChannelsResponse;
use Google\Service\Adsense\UrlChannel;
/**
* The "urlchannels" collection of methods.
* Typical usage is:
* <code>
* $adsenseService = new Google\Service\Adsense(...);
* $urlchannels = $adsenseService->accounts_adclients_urlchannels;
* </code>
*/
class AccountsAdclientsUrlchannels extends \Google\Service\Resource
{
/**
* Gets information about the selected url channel. (urlchannels.get)
*
* @param string $name Required. The name of the url channel to retrieve.
* Format: accounts/{account}/adclients/{adclient}/urlchannels/{urlchannel}
* @param array $optParams Optional parameters.
* @return UrlChannel
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], UrlChannel::class);
}
/**
* Lists active url channels. (urlchannels.listAccountsAdclientsUrlchannels)
*
* @param string $parent Required. The ad client which owns the collection of
* url channels. Format: accounts/{account}/adclients/{adclient}
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The maximum number of url channels to include in the
* response, used for paging. If unspecified, at most 10000 url channels will be
* returned. The maximum value is 10000; values above 10000 will be coerced to
* 10000.
* @opt_param string pageToken A page token, received from a previous
* `ListUrlChannels` call. Provide this to retrieve the subsequent page. When
* paginating, all other parameters provided to `ListUrlChannels` must match the
* call that provided the page token.
* @return ListUrlChannelsResponse
* @throws \Google\Service\Exception
*/
public function listAccountsAdclientsUrlchannels($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListUrlChannelsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccountsAdclientsUrlchannels::class, 'Google_Service_Adsense_Resource_AccountsAdclientsUrlchannels');

View File

@@ -0,0 +1,56 @@
<?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\Adsense\Resource;
use Google\Service\Adsense\ListAlertsResponse;
/**
* The "alerts" collection of methods.
* Typical usage is:
* <code>
* $adsenseService = new Google\Service\Adsense(...);
* $alerts = $adsenseService->accounts_alerts;
* </code>
*/
class AccountsAlerts extends \Google\Service\Resource
{
/**
* Lists all the alerts available in an account. (alerts.listAccountsAlerts)
*
* @param string $parent Required. The account which owns the collection of
* alerts. Format: accounts/{account}
* @param array $optParams Optional parameters.
*
* @opt_param string languageCode The language to use for translating alert
* messages. If unspecified, this defaults to the user's display language. If
* the given language is not supported, alerts will be returned in English. The
* language is specified as an [IETF BCP-47 language
* code](https://en.wikipedia.org/wiki/IETF_language_tag).
* @return ListAlertsResponse
* @throws \Google\Service\Exception
*/
public function listAccountsAlerts($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListAlertsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccountsAlerts::class, 'Google_Service_Adsense_Resource_AccountsAlerts');

View File

@@ -0,0 +1,51 @@
<?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\Adsense\Resource;
use Google\Service\Adsense\ListPaymentsResponse;
/**
* The "payments" collection of methods.
* Typical usage is:
* <code>
* $adsenseService = new Google\Service\Adsense(...);
* $payments = $adsenseService->accounts_payments;
* </code>
*/
class AccountsPayments extends \Google\Service\Resource
{
/**
* Lists all the payments available for an account.
* (payments.listAccountsPayments)
*
* @param string $parent Required. The account which owns the collection of
* payments. Format: accounts/{account}
* @param array $optParams Optional parameters.
* @return ListPaymentsResponse
* @throws \Google\Service\Exception
*/
public function listAccountsPayments($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListPaymentsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccountsPayments::class, 'Google_Service_Adsense_Resource_AccountsPayments');

View File

@@ -0,0 +1,77 @@
<?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\Adsense\Resource;
use Google\Service\Adsense\ListPolicyIssuesResponse;
use Google\Service\Adsense\PolicyIssue;
/**
* The "policyIssues" collection of methods.
* Typical usage is:
* <code>
* $adsenseService = new Google\Service\Adsense(...);
* $policyIssues = $adsenseService->accounts_policyIssues;
* </code>
*/
class AccountsPolicyIssues extends \Google\Service\Resource
{
/**
* Gets information about the selected policy issue. (policyIssues.get)
*
* @param string $name Required. Name of the policy issue. Format:
* accounts/{account}/policyIssues/{policy_issue}
* @param array $optParams Optional parameters.
* @return PolicyIssue
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], PolicyIssue::class);
}
/**
* Lists all the policy issues where the specified account is involved, both
* directly and through any AFP child accounts.
* (policyIssues.listAccountsPolicyIssues)
*
* @param string $parent Required. The account for which policy issues are being
* retrieved. Format: accounts/{account}
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The maximum number of policy issues to include in the
* response, used for paging. If unspecified, at most 10000 policy issues will
* be returned. The maximum value is 10000; values above 10000 will be coerced
* to 10000.
* @opt_param string pageToken A page token, received from a previous
* `ListPolicyIssues` call. Provide this to retrieve the subsequent page. When
* paginating, all other parameters provided to `ListPolicyIssues` must match
* the call that provided the page token.
* @return ListPolicyIssuesResponse
* @throws \Google\Service\Exception
*/
public function listAccountsPolicyIssues($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListPolicyIssuesResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccountsPolicyIssues::class, 'Google_Service_Adsense_Resource_AccountsPolicyIssues');

View File

@@ -0,0 +1,172 @@
<?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\Adsense\Resource;
use Google\Service\Adsense\HttpBody;
use Google\Service\Adsense\ReportResult;
use Google\Service\Adsense\SavedReport;
/**
* The "reports" collection of methods.
* Typical usage is:
* <code>
* $adsenseService = new Google\Service\Adsense(...);
* $reports = $adsenseService->accounts_reports;
* </code>
*/
class AccountsReports extends \Google\Service\Resource
{
/**
* Generates an ad hoc report. (reports.generate)
*
* @param string $account Required. The account which owns the collection of
* reports. Format: accounts/{account}
* @param array $optParams Optional parameters.
*
* @opt_param string currencyCode The [ISO-4217 currency
* code](https://en.wikipedia.org/wiki/ISO_4217) to use when reporting on
* monetary metrics. Defaults to the account's currency if not set.
* @opt_param string dateRange Date range of the report, if unset the range will
* be considered CUSTOM.
* @opt_param string dimensions Dimensions to base the report on.
* @opt_param int endDate.day Day of a month. Must be from 1 to 31 and valid for
* the year and month, or 0 to specify a year by itself or a year and month
* where the day isn't significant.
* @opt_param int endDate.month Month of a year. Must be from 1 to 12, or 0 to
* specify a year without a month and day.
* @opt_param int endDate.year Year of the date. Must be from 1 to 9999, or 0 to
* specify a date without a year.
* @opt_param string filters A list of
* [filters](/adsense/management/reporting/filtering) to apply to the report.
* All provided filters must match in order for the data to be included in the
* report.
* @opt_param string languageCode The language to use for translating report
* output. If unspecified, this defaults to English ("en"). If the given
* language is not supported, report output will be returned in English. The
* language is specified as an [IETF BCP-47 language
* code](https://en.wikipedia.org/wiki/IETF_language_tag).
* @opt_param int limit The maximum number of rows of report data to return.
* Reports producing more rows than the requested limit will be truncated. If
* unset, this defaults to 100,000 rows for `Reports.GenerateReport` and
* 1,000,000 rows for `Reports.GenerateCsvReport`, which are also the maximum
* values permitted here. Report truncation can be identified (for
* `Reports.GenerateReport` only) by comparing the number of rows returned to
* the value returned in `total_matched_rows`.
* @opt_param string metrics Required. Reporting metrics.
* @opt_param string orderBy The name of a dimension or metric to sort the
* resulting report on, can be prefixed with "+" to sort ascending or "-" to
* sort descending. If no prefix is specified, the column is sorted ascending.
* @opt_param string reportingTimeZone Timezone in which to generate the report.
* If unspecified, this defaults to the account timezone. For more information,
* see [changing the time zone of your
* reports](https://support.google.com/adsense/answer/9830725).
* @opt_param int startDate.day Day of a month. Must be from 1 to 31 and valid
* for the year and month, or 0 to specify a year by itself or a year and month
* where the day isn't significant.
* @opt_param int startDate.month Month of a year. Must be from 1 to 12, or 0 to
* specify a year without a month and day.
* @opt_param int startDate.year Year of the date. Must be from 1 to 9999, or 0
* to specify a date without a year.
* @return ReportResult
* @throws \Google\Service\Exception
*/
public function generate($account, $optParams = [])
{
$params = ['account' => $account];
$params = array_merge($params, $optParams);
return $this->call('generate', [$params], ReportResult::class);
}
/**
* Generates a csv formatted ad hoc report. (reports.generateCsv)
*
* @param string $account Required. The account which owns the collection of
* reports. Format: accounts/{account}
* @param array $optParams Optional parameters.
*
* @opt_param string currencyCode The [ISO-4217 currency
* code](https://en.wikipedia.org/wiki/ISO_4217) to use when reporting on
* monetary metrics. Defaults to the account's currency if not set.
* @opt_param string dateRange Date range of the report, if unset the range will
* be considered CUSTOM.
* @opt_param string dimensions Dimensions to base the report on.
* @opt_param int endDate.day Day of a month. Must be from 1 to 31 and valid for
* the year and month, or 0 to specify a year by itself or a year and month
* where the day isn't significant.
* @opt_param int endDate.month Month of a year. Must be from 1 to 12, or 0 to
* specify a year without a month and day.
* @opt_param int endDate.year Year of the date. Must be from 1 to 9999, or 0 to
* specify a date without a year.
* @opt_param string filters A list of
* [filters](/adsense/management/reporting/filtering) to apply to the report.
* All provided filters must match in order for the data to be included in the
* report.
* @opt_param string languageCode The language to use for translating report
* output. If unspecified, this defaults to English ("en"). If the given
* language is not supported, report output will be returned in English. The
* language is specified as an [IETF BCP-47 language
* code](https://en.wikipedia.org/wiki/IETF_language_tag).
* @opt_param int limit The maximum number of rows of report data to return.
* Reports producing more rows than the requested limit will be truncated. If
* unset, this defaults to 100,000 rows for `Reports.GenerateReport` and
* 1,000,000 rows for `Reports.GenerateCsvReport`, which are also the maximum
* values permitted here. Report truncation can be identified (for
* `Reports.GenerateReport` only) by comparing the number of rows returned to
* the value returned in `total_matched_rows`.
* @opt_param string metrics Required. Reporting metrics.
* @opt_param string orderBy The name of a dimension or metric to sort the
* resulting report on, can be prefixed with "+" to sort ascending or "-" to
* sort descending. If no prefix is specified, the column is sorted ascending.
* @opt_param string reportingTimeZone Timezone in which to generate the report.
* If unspecified, this defaults to the account timezone. For more information,
* see [changing the time zone of your
* reports](https://support.google.com/adsense/answer/9830725).
* @opt_param int startDate.day Day of a month. Must be from 1 to 31 and valid
* for the year and month, or 0 to specify a year by itself or a year and month
* where the day isn't significant.
* @opt_param int startDate.month Month of a year. Must be from 1 to 12, or 0 to
* specify a year without a month and day.
* @opt_param int startDate.year Year of the date. Must be from 1 to 9999, or 0
* to specify a date without a year.
* @return HttpBody
* @throws \Google\Service\Exception
*/
public function generateCsv($account, $optParams = [])
{
$params = ['account' => $account];
$params = array_merge($params, $optParams);
return $this->call('generateCsv', [$params], HttpBody::class);
}
/**
* Gets the saved report from the given resource name. (reports.getSaved)
*
* @param string $name Required. The name of the saved report to retrieve.
* Format: accounts/{account}/reports/{report}
* @param array $optParams Optional parameters.
* @return SavedReport
* @throws \Google\Service\Exception
*/
public function getSaved($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('getSaved', [$params], SavedReport::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccountsReports::class, 'Google_Service_Adsense_Resource_AccountsReports');

View File

@@ -0,0 +1,149 @@
<?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\Adsense\Resource;
use Google\Service\Adsense\HttpBody;
use Google\Service\Adsense\ListSavedReportsResponse;
use Google\Service\Adsense\ReportResult;
/**
* The "saved" collection of methods.
* Typical usage is:
* <code>
* $adsenseService = new Google\Service\Adsense(...);
* $saved = $adsenseService->accounts_reports_saved;
* </code>
*/
class AccountsReportsSaved extends \Google\Service\Resource
{
/**
* Generates a saved report. (saved.generate)
*
* @param string $name Required. Name of the saved report. Format:
* accounts/{account}/reports/{report}
* @param array $optParams Optional parameters.
*
* @opt_param string currencyCode The [ISO-4217 currency
* code](https://en.wikipedia.org/wiki/ISO_4217) to use when reporting on
* monetary metrics. Defaults to the account's currency if not set.
* @opt_param string dateRange Date range of the report, if unset the range will
* be considered CUSTOM.
* @opt_param int endDate.day Day of a month. Must be from 1 to 31 and valid for
* the year and month, or 0 to specify a year by itself or a year and month
* where the day isn't significant.
* @opt_param int endDate.month Month of a year. Must be from 1 to 12, or 0 to
* specify a year without a month and day.
* @opt_param int endDate.year Year of the date. Must be from 1 to 9999, or 0 to
* specify a date without a year.
* @opt_param string languageCode The language to use for translating report
* output. If unspecified, this defaults to English ("en"). If the given
* language is not supported, report output will be returned in English. The
* language is specified as an [IETF BCP-47 language
* code](https://en.wikipedia.org/wiki/IETF_language_tag).
* @opt_param string reportingTimeZone Timezone in which to generate the report.
* If unspecified, this defaults to the account timezone. For more information,
* see [changing the time zone of your
* reports](https://support.google.com/adsense/answer/9830725).
* @opt_param int startDate.day Day of a month. Must be from 1 to 31 and valid
* for the year and month, or 0 to specify a year by itself or a year and month
* where the day isn't significant.
* @opt_param int startDate.month Month of a year. Must be from 1 to 12, or 0 to
* specify a year without a month and day.
* @opt_param int startDate.year Year of the date. Must be from 1 to 9999, or 0
* to specify a date without a year.
* @return ReportResult
* @throws \Google\Service\Exception
*/
public function generate($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('generate', [$params], ReportResult::class);
}
/**
* Generates a csv formatted saved report. (saved.generateCsv)
*
* @param string $name Required. Name of the saved report. Format:
* accounts/{account}/reports/{report}
* @param array $optParams Optional parameters.
*
* @opt_param string currencyCode The [ISO-4217 currency
* code](https://en.wikipedia.org/wiki/ISO_4217) to use when reporting on
* monetary metrics. Defaults to the account's currency if not set.
* @opt_param string dateRange Date range of the report, if unset the range will
* be considered CUSTOM.
* @opt_param int endDate.day Day of a month. Must be from 1 to 31 and valid for
* the year and month, or 0 to specify a year by itself or a year and month
* where the day isn't significant.
* @opt_param int endDate.month Month of a year. Must be from 1 to 12, or 0 to
* specify a year without a month and day.
* @opt_param int endDate.year Year of the date. Must be from 1 to 9999, or 0 to
* specify a date without a year.
* @opt_param string languageCode The language to use for translating report
* output. If unspecified, this defaults to English ("en"). If the given
* language is not supported, report output will be returned in English. The
* language is specified as an [IETF BCP-47 language
* code](https://en.wikipedia.org/wiki/IETF_language_tag).
* @opt_param string reportingTimeZone Timezone in which to generate the report.
* If unspecified, this defaults to the account timezone. For more information,
* see [changing the time zone of your
* reports](https://support.google.com/adsense/answer/9830725).
* @opt_param int startDate.day Day of a month. Must be from 1 to 31 and valid
* for the year and month, or 0 to specify a year by itself or a year and month
* where the day isn't significant.
* @opt_param int startDate.month Month of a year. Must be from 1 to 12, or 0 to
* specify a year without a month and day.
* @opt_param int startDate.year Year of the date. Must be from 1 to 9999, or 0
* to specify a date without a year.
* @return HttpBody
* @throws \Google\Service\Exception
*/
public function generateCsv($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('generateCsv', [$params], HttpBody::class);
}
/**
* Lists saved reports. (saved.listAccountsReportsSaved)
*
* @param string $parent Required. The account which owns the collection of
* reports. Format: accounts/{account}
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The maximum number of reports to include in the
* response, used for paging. If unspecified, at most 10000 reports will be
* returned. The maximum value is 10000; values above 10000 will be coerced to
* 10000.
* @opt_param string pageToken A page token, received from a previous
* `ListSavedReports` call. Provide this to retrieve the subsequent page. When
* paginating, all other parameters provided to `ListSavedReports` must match
* the call that provided the page token.
* @return ListSavedReportsResponse
* @throws \Google\Service\Exception
*/
public function listAccountsReportsSaved($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListSavedReportsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccountsReportsSaved::class, 'Google_Service_Adsense_Resource_AccountsReportsSaved');

View File

@@ -0,0 +1,75 @@
<?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\Adsense\Resource;
use Google\Service\Adsense\ListSitesResponse;
use Google\Service\Adsense\Site;
/**
* The "sites" collection of methods.
* Typical usage is:
* <code>
* $adsenseService = new Google\Service\Adsense(...);
* $sites = $adsenseService->accounts_sites;
* </code>
*/
class AccountsSites extends \Google\Service\Resource
{
/**
* Gets information about the selected site. (sites.get)
*
* @param string $name Required. Name of the site. Format:
* accounts/{account}/sites/{site}
* @param array $optParams Optional parameters.
* @return Site
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Site::class);
}
/**
* Lists all the sites available in an account. (sites.listAccountsSites)
*
* @param string $parent Required. The account which owns the collection of
* sites. Format: accounts/{account}
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The maximum number of sites to include in the
* response, used for paging. If unspecified, at most 10000 sites will be
* returned. The maximum value is 10000; values above 10000 will be coerced to
* 10000.
* @opt_param string pageToken A page token, received from a previous
* `ListSites` call. Provide this to retrieve the subsequent page. When
* paginating, all other parameters provided to `ListSites` must match the call
* that provided the page token.
* @return ListSitesResponse
* @throws \Google\Service\Exception
*/
public function listAccountsSites($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListSitesResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccountsSites::class, 'Google_Service_Adsense_Resource_AccountsSites');

View File

@@ -0,0 +1,43 @@
<?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\Adsense;
class Row extends \Google\Collection
{
protected $collection_key = 'cells';
protected $cellsType = Cell::class;
protected $cellsDataType = 'array';
/**
* @param Cell[]
*/
public function setCells($cells)
{
$this->cells = $cells;
}
/**
* @return Cell[]
*/
public function getCells()
{
return $this->cells;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Row::class, 'Google_Service_Adsense_Row');

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\Adsense;
class SavedReport extends \Google\Model
{
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $title;
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @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(SavedReport::class, 'Google_Service_Adsense_SavedReport');

View File

@@ -0,0 +1,116 @@
<?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\Adsense;
class Site extends \Google\Model
{
/**
* @var bool
*/
public $autoAdsEnabled;
/**
* @var string
*/
public $domain;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $reportingDimensionId;
/**
* @var string
*/
public $state;
/**
* @param bool
*/
public function setAutoAdsEnabled($autoAdsEnabled)
{
$this->autoAdsEnabled = $autoAdsEnabled;
}
/**
* @return bool
*/
public function getAutoAdsEnabled()
{
return $this->autoAdsEnabled;
}
/**
* @param string
*/
public function setDomain($domain)
{
$this->domain = $domain;
}
/**
* @return string
*/
public function getDomain()
{
return $this->domain;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setReportingDimensionId($reportingDimensionId)
{
$this->reportingDimensionId = $reportingDimensionId;
}
/**
* @return string
*/
public function getReportingDimensionId()
{
return $this->reportingDimensionId;
}
/**
* @param string
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return string
*/
public function getState()
{
return $this->state;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Site::class, 'Google_Service_Adsense_Site');

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\Adsense;
class TimeZone extends \Google\Model
{
/**
* @var string
*/
public $id;
/**
* @var string
*/
public $version;
/**
* @param string
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* @param string
*/
public function setVersion($version)
{
$this->version = $version;
}
/**
* @return string
*/
public function getVersion()
{
return $this->version;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TimeZone::class, 'Google_Service_Adsense_TimeZone');

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\Adsense;
class UrlChannel extends \Google\Model
{
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $reportingDimensionId;
/**
* @var string
*/
public $uriPattern;
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setReportingDimensionId($reportingDimensionId)
{
$this->reportingDimensionId = $reportingDimensionId;
}
/**
* @return string
*/
public function getReportingDimensionId()
{
return $this->reportingDimensionId;
}
/**
* @param string
*/
public function setUriPattern($uriPattern)
{
$this->uriPattern = $uriPattern;
}
/**
* @return string
*/
public function getUriPattern()
{
return $this->uriPattern;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(UrlChannel::class, 'Google_Service_Adsense_UrlChannel');