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,150 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AdSensePlatform;
class Account extends \Google\Model
{
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $creationRequestId;
/**
* @var string
*/
public $displayName;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $regionCode;
/**
* @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 setCreationRequestId($creationRequestId)
{
$this->creationRequestId = $creationRequestId;
}
/**
* @return string
*/
public function getCreationRequestId()
{
return $this->creationRequestId;
}
/**
* @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 setRegionCode($regionCode)
{
$this->regionCode = $regionCode;
}
/**
* @return string
*/
public function getRegionCode()
{
return $this->regionCode;
}
/**
* @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_AdSensePlatform_Account');

View File

@@ -0,0 +1,206 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AdSensePlatform;
class Address extends \Google\Model
{
/**
* @var string
*/
public $address1;
/**
* @var string
*/
public $address2;
/**
* @var string
*/
public $city;
/**
* @var string
*/
public $company;
/**
* @var string
*/
public $contact;
/**
* @var string
*/
public $fax;
/**
* @var string
*/
public $phone;
/**
* @var string
*/
public $regionCode;
/**
* @var string
*/
public $state;
/**
* @var string
*/
public $zip;
/**
* @param string
*/
public function setAddress1($address1)
{
$this->address1 = $address1;
}
/**
* @return string
*/
public function getAddress1()
{
return $this->address1;
}
/**
* @param string
*/
public function setAddress2($address2)
{
$this->address2 = $address2;
}
/**
* @return string
*/
public function getAddress2()
{
return $this->address2;
}
/**
* @param string
*/
public function setCity($city)
{
$this->city = $city;
}
/**
* @return string
*/
public function getCity()
{
return $this->city;
}
/**
* @param string
*/
public function setCompany($company)
{
$this->company = $company;
}
/**
* @return string
*/
public function getCompany()
{
return $this->company;
}
/**
* @param string
*/
public function setContact($contact)
{
$this->contact = $contact;
}
/**
* @return string
*/
public function getContact()
{
return $this->contact;
}
/**
* @param string
*/
public function setFax($fax)
{
$this->fax = $fax;
}
/**
* @return string
*/
public function getFax()
{
return $this->fax;
}
/**
* @param string
*/
public function setPhone($phone)
{
$this->phone = $phone;
}
/**
* @return string
*/
public function getPhone()
{
return $this->phone;
}
/**
* @param string
*/
public function setRegionCode($regionCode)
{
$this->regionCode = $regionCode;
}
/**
* @return string
*/
public function getRegionCode()
{
return $this->regionCode;
}
/**
* @param string
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return string
*/
public function getState()
{
return $this->state;
}
/**
* @param string
*/
public function setZip($zip)
{
$this->zip = $zip;
}
/**
* @return string
*/
public function getZip()
{
return $this->zip;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Address::class, 'Google_Service_AdSensePlatform_Address');

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

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

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

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\AdSensePlatform;
class Event extends \Google\Model
{
protected $eventInfoType = EventInfo::class;
protected $eventInfoDataType = '';
/**
* @var string
*/
public $eventTime;
/**
* @var string
*/
public $eventType;
/**
* @param EventInfo
*/
public function setEventInfo(EventInfo $eventInfo)
{
$this->eventInfo = $eventInfo;
}
/**
* @return EventInfo
*/
public function getEventInfo()
{
return $this->eventInfo;
}
/**
* @param string
*/
public function setEventTime($eventTime)
{
$this->eventTime = $eventTime;
}
/**
* @return string
*/
public function getEventTime()
{
return $this->eventTime;
}
/**
* @param string
*/
public function setEventType($eventType)
{
$this->eventType = $eventType;
}
/**
* @return string
*/
public function getEventType()
{
return $this->eventType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Event::class, 'Google_Service_AdSensePlatform_Event');

View File

@@ -0,0 +1,60 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AdSensePlatform;
class EventInfo extends \Google\Model
{
protected $billingAddressType = Address::class;
protected $billingAddressDataType = '';
/**
* @var string
*/
public $email;
/**
* @param Address
*/
public function setBillingAddress(Address $billingAddress)
{
$this->billingAddress = $billingAddress;
}
/**
* @return Address
*/
public function getBillingAddress()
{
return $this->billingAddress;
}
/**
* @param string
*/
public function setEmail($email)
{
$this->email = $email;
}
/**
* @return string
*/
public function getEmail()
{
return $this->email;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EventInfo::class, 'Google_Service_AdSensePlatform_EventInfo');

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\AdSensePlatform;
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_AdSensePlatform_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\AdSensePlatform;
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_AdSensePlatform_ListSitesResponse');

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\AdSensePlatform;
class LookupAccountResponse extends \Google\Model
{
/**
* @var string
*/
public $name;
/**
* @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(LookupAccountResponse::class, 'Google_Service_AdSensePlatform_LookupAccountResponse');

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

View File

@@ -0,0 +1,33 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AdSensePlatform\Resource;
/**
* The "platforms" collection of methods.
* Typical usage is:
* <code>
* $adsenseplatformService = new Google\Service\AdSensePlatform(...);
* $platforms = $adsenseplatformService->platforms;
* </code>
*/
class Platforms extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Platforms::class, 'Google_Service_AdSensePlatform_Resource_Platforms');

View File

@@ -0,0 +1,129 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AdSensePlatform\Resource;
use Google\Service\AdSensePlatform\Account;
use Google\Service\AdSensePlatform\CloseAccountRequest;
use Google\Service\AdSensePlatform\CloseAccountResponse;
use Google\Service\AdSensePlatform\ListAccountsResponse;
use Google\Service\AdSensePlatform\LookupAccountResponse;
/**
* The "accounts" collection of methods.
* Typical usage is:
* <code>
* $adsenseplatformService = new Google\Service\AdSensePlatform(...);
* $accounts = $adsenseplatformService->platforms_accounts;
* </code>
*/
class PlatformsAccounts extends \Google\Service\Resource
{
/**
* Closes a sub-account. (accounts.close)
*
* @param string $name Required. Account to close. Format:
* platforms/{platform}/accounts/{account_id}
* @param CloseAccountRequest $postBody
* @param array $optParams Optional parameters.
* @return CloseAccountResponse
* @throws \Google\Service\Exception
*/
public function close($name, CloseAccountRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('close', [$params], CloseAccountResponse::class);
}
/**
* Creates a sub-account. (accounts.create)
*
* @param string $parent Required. Platform to create an account for. Format:
* platforms/{platform}
* @param Account $postBody
* @param array $optParams Optional parameters.
* @return Account
* @throws \Google\Service\Exception
*/
public function create($parent, Account $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Account::class);
}
/**
* Gets information about the selected sub-account. (accounts.get)
*
* @param string $name Required. Account to get information about. Format:
* platforms/{platform}/accounts/{account_id}
* @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);
}
/**
* Lists a partial view of sub-accounts for a specific parent account.
* (accounts.listPlatformsAccounts)
*
* @param string $parent Required. Platform who parents the accounts. Format:
* platforms/{platform}
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Optional. 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 Optional. A page token, received from a previous
* `ListAccounts` call. Provide this to retrieve the subsequent page.
* @return ListAccountsResponse
* @throws \Google\Service\Exception
*/
public function listPlatformsAccounts($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListAccountsResponse::class);
}
/**
* Looks up information about a sub-account for a specified creation_request_id.
* If no account exists for the given creation_request_id, returns 404.
* (accounts.lookup)
*
* @param string $parent Required. Platform who parents the account. Format:
* platforms/{platform}
* @param array $optParams Optional parameters.
*
* @opt_param string creationRequestId Optional. The creation_request_id
* provided when calling createAccount.
* @return LookupAccountResponse
* @throws \Google\Service\Exception
*/
public function lookup($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('lookup', [$params], LookupAccountResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PlatformsAccounts::class, 'Google_Service_AdSensePlatform_Resource_PlatformsAccounts');

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\AdSensePlatform\Resource;
use Google\Service\AdSensePlatform\Event;
/**
* The "events" collection of methods.
* Typical usage is:
* <code>
* $adsenseplatformService = new Google\Service\AdSensePlatform(...);
* $events = $adsenseplatformService->platforms_accounts_events;
* </code>
*/
class PlatformsAccountsEvents extends \Google\Service\Resource
{
/**
* Creates an account event. (events.create)
*
* @param string $parent Required. Account to log events about. Format:
* platforms/{platform}/accounts/{account}
* @param Event $postBody
* @param array $optParams Optional parameters.
* @return Event
* @throws \Google\Service\Exception
*/
public function create($parent, Event $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Event::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PlatformsAccountsEvents::class, 'Google_Service_AdSensePlatform_Resource_PlatformsAccountsEvents');

View File

@@ -0,0 +1,126 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AdSensePlatform\Resource;
use Google\Service\AdSensePlatform\AdsenseplatformEmpty;
use Google\Service\AdSensePlatform\ListSitesResponse;
use Google\Service\AdSensePlatform\RequestSiteReviewResponse;
use Google\Service\AdSensePlatform\Site;
/**
* The "sites" collection of methods.
* Typical usage is:
* <code>
* $adsenseplatformService = new Google\Service\AdSensePlatform(...);
* $sites = $adsenseplatformService->platforms_accounts_sites;
* </code>
*/
class PlatformsAccountsSites extends \Google\Service\Resource
{
/**
* Creates a site for a specified account. (sites.create)
*
* @param string $parent Required. Account to create site. Format:
* platforms/{platform}/accounts/{account_id}
* @param Site $postBody
* @param array $optParams Optional parameters.
* @return Site
* @throws \Google\Service\Exception
*/
public function create($parent, Site $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Site::class);
}
/**
* Deletes a site from a specified account. (sites.delete)
*
* @param string $name Required. The name of the site to delete. Format:
* platforms/{platform}/accounts/{account}/sites/{site}
* @param array $optParams Optional parameters.
* @return AdsenseplatformEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], AdsenseplatformEmpty::class);
}
/**
* Gets a site from a specified sub-account. (sites.get)
*
* @param string $name Required. The name of the site to retrieve. Format:
* platforms/{platform}/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 sites for a specific account. (sites.listPlatformsAccountsSites)
*
* @param string $parent Required. The account which owns the sites. Format:
* platforms/{platform}/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 listPlatformsAccountsSites($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListSitesResponse::class);
}
/**
* Requests the review of a site. The site should be in REQUIRES_REVIEW or
* NEEDS_ATTENTION state. Note: Make sure you place an [ad
* tag](https://developers.google.com/adsense/platforms/direct/ad-tags) on your
* site before requesting a review. (sites.requestReview)
*
* @param string $name Required. The name of the site to submit for review.
* Format: platforms/{platform}/accounts/{account}/sites/{site}
* @param array $optParams Optional parameters.
* @return RequestSiteReviewResponse
* @throws \Google\Service\Exception
*/
public function requestReview($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('requestReview', [$params], RequestSiteReviewResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PlatformsAccountsSites::class, 'Google_Service_AdSensePlatform_Resource_PlatformsAccountsSites');

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\AdSensePlatform;
class Site extends \Google\Model
{
/**
* @var string
*/
public $domain;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $state;
/**
* @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 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_AdSensePlatform_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\AdSensePlatform;
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_AdSensePlatform_TimeZone');