gestione documentale avanzata 1 parte

This commit is contained in:
2026-05-28 09:34:28 +02:00
parent 3471befb1a
commit f2b0833b90
34482 changed files with 4312269 additions and 546 deletions
@@ -0,0 +1,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\AdSenseHost;
class Account extends \Google\Model
{
/**
* @var string
*/
public $id;
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $status;
/**
* @param string
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setStatus($status)
{
$this->status = $status;
}
/**
* @return string
*/
public function getStatus()
{
return $this->status;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Account::class, 'Google_Service_AdSenseHost_Account');
@@ -0,0 +1,79 @@
<?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\AdSenseHost;
class Accounts extends \Google\Collection
{
protected $collection_key = 'items';
/**
* @var string
*/
public $etag;
protected $itemsType = Account::class;
protected $itemsDataType = 'array';
/**
* @var string
*/
public $kind;
/**
* @param string
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* @param Account[]
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return Account[]
*/
public function getItems()
{
return $this->items;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Accounts::class, 'Google_Service_AdSenseHost_Accounts');
@@ -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\AdSenseHost;
class AdClient extends \Google\Model
{
/**
* @var bool
*/
public $arcOptIn;
/**
* @var string
*/
public $id;
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $productCode;
/**
* @var bool
*/
public $supportsReporting;
/**
* @param bool
*/
public function setArcOptIn($arcOptIn)
{
$this->arcOptIn = $arcOptIn;
}
/**
* @return bool
*/
public function getArcOptIn()
{
return $this->arcOptIn;
}
/**
* @param string
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setProductCode($productCode)
{
$this->productCode = $productCode;
}
/**
* @return string
*/
public function getProductCode()
{
return $this->productCode;
}
/**
* @param bool
*/
public function setSupportsReporting($supportsReporting)
{
$this->supportsReporting = $supportsReporting;
}
/**
* @return bool
*/
public function getSupportsReporting()
{
return $this->supportsReporting;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AdClient::class, 'Google_Service_AdSenseHost_AdClient');
@@ -0,0 +1,97 @@
<?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\AdSenseHost;
class AdClients extends \Google\Collection
{
protected $collection_key = 'items';
/**
* @var string
*/
public $etag;
protected $itemsType = AdClient::class;
protected $itemsDataType = 'array';
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $nextPageToken;
/**
* @param string
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* @param AdClient[]
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return AdClient[]
*/
public function getItems()
{
return $this->items;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @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(AdClients::class, 'Google_Service_AdSenseHost_AdClients');
@@ -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\AdSenseHost;
class AdCode extends \Google\Model
{
/**
* @var string
*/
public $adCode;
/**
* @var string
*/
public $kind;
/**
* @param string
*/
public function setAdCode($adCode)
{
$this->adCode = $adCode;
}
/**
* @return string
*/
public function getAdCode()
{
return $this->adCode;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AdCode::class, 'Google_Service_AdSenseHost_AdCode');
@@ -0,0 +1,94 @@
<?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\AdSenseHost;
class AdStyle extends \Google\Model
{
protected $colorsType = AdStyleColors::class;
protected $colorsDataType = '';
/**
* @var string
*/
public $corners;
protected $fontType = AdStyleFont::class;
protected $fontDataType = '';
/**
* @var string
*/
public $kind;
/**
* @param AdStyleColors
*/
public function setColors(AdStyleColors $colors)
{
$this->colors = $colors;
}
/**
* @return AdStyleColors
*/
public function getColors()
{
return $this->colors;
}
/**
* @param string
*/
public function setCorners($corners)
{
$this->corners = $corners;
}
/**
* @return string
*/
public function getCorners()
{
return $this->corners;
}
/**
* @param AdStyleFont
*/
public function setFont(AdStyleFont $font)
{
$this->font = $font;
}
/**
* @return AdStyleFont
*/
public function getFont()
{
return $this->font;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AdStyle::class, 'Google_Service_AdSenseHost_AdStyle');
@@ -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\AdSenseHost;
class AdStyleColors extends \Google\Model
{
/**
* @var string
*/
public $background;
/**
* @var string
*/
public $border;
/**
* @var string
*/
public $text;
/**
* @var string
*/
public $title;
/**
* @var string
*/
public $url;
/**
* @param string
*/
public function setBackground($background)
{
$this->background = $background;
}
/**
* @return string
*/
public function getBackground()
{
return $this->background;
}
/**
* @param string
*/
public function setBorder($border)
{
$this->border = $border;
}
/**
* @return string
*/
public function getBorder()
{
return $this->border;
}
/**
* @param string
*/
public function setText($text)
{
$this->text = $text;
}
/**
* @return string
*/
public function getText()
{
return $this->text;
}
/**
* @param string
*/
public function setTitle($title)
{
$this->title = $title;
}
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
/**
* @param string
*/
public function setUrl($url)
{
$this->url = $url;
}
/**
* @return string
*/
public function getUrl()
{
return $this->url;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AdStyleColors::class, 'Google_Service_AdSenseHost_AdStyleColors');
@@ -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\AdSenseHost;
class AdStyleFont extends \Google\Model
{
/**
* @var string
*/
public $family;
/**
* @var string
*/
public $size;
/**
* @param string
*/
public function setFamily($family)
{
$this->family = $family;
}
/**
* @return string
*/
public function getFamily()
{
return $this->family;
}
/**
* @param string
*/
public function setSize($size)
{
$this->size = $size;
}
/**
* @return string
*/
public function getSize()
{
return $this->size;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AdStyleFont::class, 'Google_Service_AdSenseHost_AdStyleFont');
@@ -0,0 +1,164 @@
<?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\AdSenseHost;
class AdUnit extends \Google\Model
{
/**
* @var string
*/
public $code;
protected $contentAdsSettingsType = AdUnitContentAdsSettings::class;
protected $contentAdsSettingsDataType = '';
protected $customStyleType = AdStyle::class;
protected $customStyleDataType = '';
/**
* @var string
*/
public $id;
/**
* @var string
*/
public $kind;
protected $mobileContentAdsSettingsType = AdUnitMobileContentAdsSettings::class;
protected $mobileContentAdsSettingsDataType = '';
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $status;
/**
* @param string
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return string
*/
public function getCode()
{
return $this->code;
}
/**
* @param AdUnitContentAdsSettings
*/
public function setContentAdsSettings(AdUnitContentAdsSettings $contentAdsSettings)
{
$this->contentAdsSettings = $contentAdsSettings;
}
/**
* @return AdUnitContentAdsSettings
*/
public function getContentAdsSettings()
{
return $this->contentAdsSettings;
}
/**
* @param AdStyle
*/
public function setCustomStyle(AdStyle $customStyle)
{
$this->customStyle = $customStyle;
}
/**
* @return AdStyle
*/
public function getCustomStyle()
{
return $this->customStyle;
}
/**
* @param string
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param AdUnitMobileContentAdsSettings
*/
public function setMobileContentAdsSettings(AdUnitMobileContentAdsSettings $mobileContentAdsSettings)
{
$this->mobileContentAdsSettings = $mobileContentAdsSettings;
}
/**
* @return AdUnitMobileContentAdsSettings
*/
public function getMobileContentAdsSettings()
{
return $this->mobileContentAdsSettings;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setStatus($status)
{
$this->status = $status;
}
/**
* @return string
*/
public function getStatus()
{
return $this->status;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AdUnit::class, 'Google_Service_AdSenseHost_AdUnit');
@@ -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\AdSenseHost;
class AdUnitContentAdsSettings extends \Google\Model
{
protected $backupOptionType = AdUnitContentAdsSettingsBackupOption::class;
protected $backupOptionDataType = '';
/**
* @var string
*/
public $size;
/**
* @var string
*/
public $type;
/**
* @param AdUnitContentAdsSettingsBackupOption
*/
public function setBackupOption(AdUnitContentAdsSettingsBackupOption $backupOption)
{
$this->backupOption = $backupOption;
}
/**
* @return AdUnitContentAdsSettingsBackupOption
*/
public function getBackupOption()
{
return $this->backupOption;
}
/**
* @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(AdUnitContentAdsSettings::class, 'Google_Service_AdSenseHost_AdUnitContentAdsSettings');
@@ -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\AdSenseHost;
class AdUnitContentAdsSettingsBackupOption extends \Google\Model
{
/**
* @var string
*/
public $color;
/**
* @var string
*/
public $type;
/**
* @var string
*/
public $url;
/**
* @param string
*/
public function setColor($color)
{
$this->color = $color;
}
/**
* @return string
*/
public function getColor()
{
return $this->color;
}
/**
* @param string
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
/**
* @param string
*/
public function setUrl($url)
{
$this->url = $url;
}
/**
* @return string
*/
public function getUrl()
{
return $this->url;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AdUnitContentAdsSettingsBackupOption::class, 'Google_Service_AdSenseHost_AdUnitContentAdsSettingsBackupOption');
@@ -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\AdSenseHost;
class AdUnitMobileContentAdsSettings extends \Google\Model
{
/**
* @var string
*/
public $markupLanguage;
/**
* @var string
*/
public $scriptingLanguage;
/**
* @var string
*/
public $size;
/**
* @var string
*/
public $type;
/**
* @param string
*/
public function setMarkupLanguage($markupLanguage)
{
$this->markupLanguage = $markupLanguage;
}
/**
* @return string
*/
public function getMarkupLanguage()
{
return $this->markupLanguage;
}
/**
* @param string
*/
public function setScriptingLanguage($scriptingLanguage)
{
$this->scriptingLanguage = $scriptingLanguage;
}
/**
* @return string
*/
public function getScriptingLanguage()
{
return $this->scriptingLanguage;
}
/**
* @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(AdUnitMobileContentAdsSettings::class, 'Google_Service_AdSenseHost_AdUnitMobileContentAdsSettings');
@@ -0,0 +1,97 @@
<?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\AdSenseHost;
class AdUnits extends \Google\Collection
{
protected $collection_key = 'items';
/**
* @var string
*/
public $etag;
protected $itemsType = AdUnit::class;
protected $itemsDataType = 'array';
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $nextPageToken;
/**
* @param string
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* @param AdUnit[]
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return AdUnit[]
*/
public function getItems()
{
return $this->items;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @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(AdUnits::class, 'Google_Service_AdSenseHost_AdUnits');
@@ -0,0 +1,189 @@
<?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\AdSenseHost;
class AssociationSession extends \Google\Collection
{
protected $collection_key = 'productCodes';
/**
* @var string
*/
public $accountId;
/**
* @var string
*/
public $id;
/**
* @var string
*/
public $kind;
/**
* @var string[]
*/
public $productCodes;
/**
* @var string
*/
public $redirectUrl;
/**
* @var string
*/
public $status;
/**
* @var string
*/
public $userLocale;
/**
* @var string
*/
public $websiteLocale;
/**
* @var string
*/
public $websiteUrl;
/**
* @param string
*/
public function setAccountId($accountId)
{
$this->accountId = $accountId;
}
/**
* @return string
*/
public function getAccountId()
{
return $this->accountId;
}
/**
* @param string
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string[]
*/
public function setProductCodes($productCodes)
{
$this->productCodes = $productCodes;
}
/**
* @return string[]
*/
public function getProductCodes()
{
return $this->productCodes;
}
/**
* @param string
*/
public function setRedirectUrl($redirectUrl)
{
$this->redirectUrl = $redirectUrl;
}
/**
* @return string
*/
public function getRedirectUrl()
{
return $this->redirectUrl;
}
/**
* @param string
*/
public function setStatus($status)
{
$this->status = $status;
}
/**
* @return string
*/
public function getStatus()
{
return $this->status;
}
/**
* @param string
*/
public function setUserLocale($userLocale)
{
$this->userLocale = $userLocale;
}
/**
* @return string
*/
public function getUserLocale()
{
return $this->userLocale;
}
/**
* @param string
*/
public function setWebsiteLocale($websiteLocale)
{
$this->websiteLocale = $websiteLocale;
}
/**
* @return string
*/
public function getWebsiteLocale()
{
return $this->websiteLocale;
}
/**
* @param string
*/
public function setWebsiteUrl($websiteUrl)
{
$this->websiteUrl = $websiteUrl;
}
/**
* @return string
*/
public function getWebsiteUrl()
{
return $this->websiteUrl;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AssociationSession::class, 'Google_Service_AdSenseHost_AssociationSession');
@@ -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\AdSenseHost;
class CustomChannel extends \Google\Model
{
/**
* @var string
*/
public $code;
/**
* @var string
*/
public $id;
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $name;
/**
* @param string
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return string
*/
public function getCode()
{
return $this->code;
}
/**
* @param string
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @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(CustomChannel::class, 'Google_Service_AdSenseHost_CustomChannel');
@@ -0,0 +1,97 @@
<?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\AdSenseHost;
class CustomChannels extends \Google\Collection
{
protected $collection_key = 'items';
/**
* @var string
*/
public $etag;
protected $itemsType = CustomChannel::class;
protected $itemsDataType = 'array';
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $nextPageToken;
/**
* @param string
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* @param CustomChannel[]
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return CustomChannel[]
*/
public function getItems()
{
return $this->items;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @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(CustomChannels::class, 'Google_Service_AdSenseHost_CustomChannels');
@@ -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\AdSenseHost;
class Report extends \Google\Collection
{
protected $collection_key = 'warnings';
/**
* @var string[]
*/
public $averages;
protected $headersType = ReportHeaders::class;
protected $headersDataType = 'array';
/**
* @var string
*/
public $kind;
/**
* @var string[]
*/
public $rows;
/**
* @var string
*/
public $totalMatchedRows;
/**
* @var string[]
*/
public $totals;
/**
* @var string[]
*/
public $warnings;
/**
* @param string[]
*/
public function setAverages($averages)
{
$this->averages = $averages;
}
/**
* @return string[]
*/
public function getAverages()
{
return $this->averages;
}
/**
* @param ReportHeaders[]
*/
public function setHeaders($headers)
{
$this->headers = $headers;
}
/**
* @return ReportHeaders[]
*/
public function getHeaders()
{
return $this->headers;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string[]
*/
public function setRows($rows)
{
$this->rows = $rows;
}
/**
* @return string[]
*/
public function getRows()
{
return $this->rows;
}
/**
* @param string
*/
public function setTotalMatchedRows($totalMatchedRows)
{
$this->totalMatchedRows = $totalMatchedRows;
}
/**
* @return string
*/
public function getTotalMatchedRows()
{
return $this->totalMatchedRows;
}
/**
* @param string[]
*/
public function setTotals($totals)
{
$this->totals = $totals;
}
/**
* @return string[]
*/
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(Report::class, 'Google_Service_AdSenseHost_Report');
@@ -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\AdSenseHost;
class ReportHeaders extends \Google\Model
{
/**
* @var string
*/
public $currency;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $type;
/**
* @param string
*/
public function setCurrency($currency)
{
$this->currency = $currency;
}
/**
* @return string
*/
public function getCurrency()
{
return $this->currency;
}
/**
* @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(ReportHeaders::class, 'Google_Service_AdSenseHost_ReportHeaders');
@@ -0,0 +1,65 @@
<?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\AdSenseHost\Resource;
use Google\Service\AdSenseHost\Account;
use Google\Service\AdSenseHost\Accounts as AccountsModel;
/**
* The "accounts" collection of methods.
* Typical usage is:
* <code>
* $adsensehostService = new Google\Service\AdSenseHost(...);
* $accounts = $adsensehostService->accounts;
* </code>
*/
class Accounts extends \Google\Service\Resource
{
/**
* Get information about the selected associated AdSense account. (accounts.get)
*
* @param string $accountId Account to get information about.
* @param array $optParams Optional parameters.
* @return Account
* @throws \Google\Service\Exception
*/
public function get($accountId, $optParams = [])
{
$params = ['accountId' => $accountId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Account::class);
}
/**
* List hosted accounts associated with this AdSense account by ad client id.
* (accounts.listAccounts)
*
* @param string|array $filterAdClientId Ad clients to list accounts for.
* @param array $optParams Optional parameters.
* @return AccountsModel
* @throws \Google\Service\Exception
*/
public function listAccounts($filterAdClientId, $optParams = [])
{
$params = ['filterAdClientId' => $filterAdClientId];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], AccountsModel::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Accounts::class, 'Google_Service_AdSenseHost_Resource_Accounts');
@@ -0,0 +1,73 @@
<?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\AdSenseHost\Resource;
use Google\Service\AdSenseHost\AdClient;
use Google\Service\AdSenseHost\AdClients;
/**
* The "adclients" collection of methods.
* Typical usage is:
* <code>
* $adsensehostService = new Google\Service\AdSenseHost(...);
* $adclients = $adsensehostService->accounts_adclients;
* </code>
*/
class AccountsAdclients extends \Google\Service\Resource
{
/**
* Get information about one of the ad clients in the specified publisher's
* AdSense account. (adclients.get)
*
* @param string $accountId Account which contains the ad client.
* @param string $adClientId Ad client to get.
* @param array $optParams Optional parameters.
* @return AdClient
* @throws \Google\Service\Exception
*/
public function get($accountId, $adClientId, $optParams = [])
{
$params = ['accountId' => $accountId, 'adClientId' => $adClientId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], AdClient::class);
}
/**
* List all hosted ad clients in the specified hosted account.
* (adclients.listAccountsAdclients)
*
* @param string $accountId Account for which to list ad clients.
* @param array $optParams Optional parameters.
*
* @opt_param string maxResults The maximum number of ad clients to include in
* the response, used for paging.
* @opt_param string pageToken A continuation token, used to page through ad
* clients. To retrieve the next page, set this parameter to the value of
* "nextPageToken" from the previous response.
* @return AdClients
* @throws \Google\Service\Exception
*/
public function listAccountsAdclients($accountId, $optParams = [])
{
$params = ['accountId' => $accountId];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], AdClients::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccountsAdclients::class, 'Google_Service_AdSenseHost_Resource_AccountsAdclients');
@@ -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\AdSenseHost\Resource;
use Google\Service\AdSenseHost\AdCode;
use Google\Service\AdSenseHost\AdUnit;
use Google\Service\AdSenseHost\AdUnits;
/**
* The "adunits" collection of methods.
* Typical usage is:
* <code>
* $adsensehostService = new Google\Service\AdSenseHost(...);
* $adunits = $adsensehostService->accounts_adunits;
* </code>
*/
class AccountsAdunits extends \Google\Service\Resource
{
/**
* Delete the specified ad unit from the specified publisher AdSense account.
* (adunits.delete)
*
* @param string $accountId Account which contains the ad unit.
* @param string $adClientId Ad client for which to get ad unit.
* @param string $adUnitId Ad unit to delete.
* @param array $optParams Optional parameters.
* @return AdUnit
* @throws \Google\Service\Exception
*/
public function delete($accountId, $adClientId, $adUnitId, $optParams = [])
{
$params = ['accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], AdUnit::class);
}
/**
* Get the specified host ad unit in this AdSense account. (adunits.get)
*
* @param string $accountId Account which contains the ad unit.
* @param string $adClientId Ad client for which to get ad unit.
* @param string $adUnitId Ad unit to get.
* @param array $optParams Optional parameters.
* @return AdUnit
* @throws \Google\Service\Exception
*/
public function get($accountId, $adClientId, $adUnitId, $optParams = [])
{
$params = ['accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], AdUnit::class);
}
/**
* Get ad code for the specified ad unit, attaching the specified host custom
* channels. (adunits.getAdCode)
*
* @param string $accountId Account which contains the ad client.
* @param string $adClientId Ad client with contains the ad unit.
* @param string $adUnitId Ad unit to get the code for.
* @param array $optParams Optional parameters.
*
* @opt_param string hostCustomChannelId Host custom channel to attach to the ad
* code.
* @return AdCode
* @throws \Google\Service\Exception
*/
public function getAdCode($accountId, $adClientId, $adUnitId, $optParams = [])
{
$params = ['accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId];
$params = array_merge($params, $optParams);
return $this->call('getAdCode', [$params], AdCode::class);
}
/**
* Insert the supplied ad unit into the specified publisher AdSense account.
* (adunits.insert)
*
* @param string $accountId Account which will contain the ad unit.
* @param string $adClientId Ad client into which to insert the ad unit.
* @param AdUnit $postBody
* @param array $optParams Optional parameters.
* @return AdUnit
* @throws \Google\Service\Exception
*/
public function insert($accountId, $adClientId, AdUnit $postBody, $optParams = [])
{
$params = ['accountId' => $accountId, 'adClientId' => $adClientId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('insert', [$params], AdUnit::class);
}
/**
* List all ad units in the specified publisher's AdSense account.
* (adunits.listAccountsAdunits)
*
* @param string $accountId Account which contains the ad client.
* @param string $adClientId Ad client for which to list ad units.
* @param array $optParams Optional parameters.
*
* @opt_param bool includeInactive Whether to include inactive ad units.
* Default: true.
* @opt_param string maxResults The maximum number of ad units to include in the
* response, used for paging.
* @opt_param string pageToken A continuation token, used to page through ad
* units. To retrieve the next page, set this parameter to the value of
* "nextPageToken" from the previous response.
* @return AdUnits
* @throws \Google\Service\Exception
*/
public function listAccountsAdunits($accountId, $adClientId, $optParams = [])
{
$params = ['accountId' => $accountId, 'adClientId' => $adClientId];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], AdUnits::class);
}
/**
* Update the supplied ad unit in the specified publisher AdSense account. This
* method supports patch semantics. (adunits.patch)
*
* @param string $accountId Account which contains the ad client.
* @param string $adClientId Ad client which contains the ad unit.
* @param string $adUnitId Ad unit to get.
* @param AdUnit $postBody
* @param array $optParams Optional parameters.
* @return AdUnit
* @throws \Google\Service\Exception
*/
public function patch($accountId, $adClientId, $adUnitId, AdUnit $postBody, $optParams = [])
{
$params = ['accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], AdUnit::class);
}
/**
* Update the supplied ad unit in the specified publisher AdSense account.
* (adunits.update)
*
* @param string $accountId Account which contains the ad client.
* @param string $adClientId Ad client which contains the ad unit.
* @param AdUnit $postBody
* @param array $optParams Optional parameters.
* @return AdUnit
* @throws \Google\Service\Exception
*/
public function update($accountId, $adClientId, AdUnit $postBody, $optParams = [])
{
$params = ['accountId' => $accountId, 'adClientId' => $adClientId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('update', [$params], AdUnit::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccountsAdunits::class, 'Google_Service_AdSenseHost_Resource_AccountsAdunits');
@@ -0,0 +1,67 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AdSenseHost\Resource;
use Google\Service\AdSenseHost\Report;
/**
* The "reports" collection of methods.
* Typical usage is:
* <code>
* $adsensehostService = new Google\Service\AdSenseHost(...);
* $reports = $adsensehostService->accounts_reports;
* </code>
*/
class AccountsReports extends \Google\Service\Resource
{
/**
* Generate an AdSense report based on the report request sent in the query
* parameters. Returns the result as JSON; to retrieve output in CSV format
* specify "alt=csv" as a query parameter. (reports.generate)
*
* @param string $accountId Hosted account upon which to report.
* @param string $startDate Start of the date range to report on in "YYYY-MM-DD"
* format, inclusive.
* @param string $endDate End of the date range to report on in "YYYY-MM-DD"
* format, inclusive.
* @param array $optParams Optional parameters.
*
* @opt_param string dimension Dimensions to base the report on.
* @opt_param string filter Filters to be run on the report.
* @opt_param string locale Optional locale to use for translating report output
* to a local language. Defaults to "en_US" if not specified.
* @opt_param string maxResults The maximum number of rows of report data to
* return.
* @opt_param string metric Numeric columns to include in the report.
* @opt_param string sort The name of a dimension or metric to sort the
* resulting report on, optionally prefixed with "+" to sort ascending or "-" to
* sort descending. If no prefix is specified, the column is sorted ascending.
* @opt_param string startIndex Index of the first row of report data to return.
* @return Report
* @throws \Google\Service\Exception
*/
public function generate($accountId, $startDate, $endDate, $optParams = [])
{
$params = ['accountId' => $accountId, 'startDate' => $startDate, 'endDate' => $endDate];
$params = array_merge($params, $optParams);
return $this->call('generate', [$params], Report::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccountsReports::class, 'Google_Service_AdSenseHost_Resource_AccountsReports');
@@ -0,0 +1,70 @@
<?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\AdSenseHost\Resource;
use Google\Service\AdSenseHost\AdClient;
use Google\Service\AdSenseHost\AdClients as AdClientsModel;
/**
* The "adclients" collection of methods.
* Typical usage is:
* <code>
* $adsensehostService = new Google\Service\AdSenseHost(...);
* $adclients = $adsensehostService->adclients;
* </code>
*/
class Adclients extends \Google\Service\Resource
{
/**
* Get information about one of the ad clients in the Host AdSense account.
* (adclients.get)
*
* @param string $adClientId Ad client to get.
* @param array $optParams Optional parameters.
* @return AdClient
* @throws \Google\Service\Exception
*/
public function get($adClientId, $optParams = [])
{
$params = ['adClientId' => $adClientId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], AdClient::class);
}
/**
* List all host ad clients in this AdSense account. (adclients.listAdclients)
*
* @param array $optParams Optional parameters.
*
* @opt_param string maxResults The maximum number of ad clients to include in
* the response, used for paging.
* @opt_param string pageToken A continuation token, used to page through ad
* clients. To retrieve the next page, set this parameter to the value of
* "nextPageToken" from the previous response.
* @return AdClientsModel
* @throws \Google\Service\Exception
*/
public function listAdclients($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], AdClientsModel::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Adclients::class, 'Google_Service_AdSenseHost_Resource_Adclients');
@@ -0,0 +1,72 @@
<?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\AdSenseHost\Resource;
use Google\Service\AdSenseHost\AssociationSession;
/**
* The "associationsessions" collection of methods.
* Typical usage is:
* <code>
* $adsensehostService = new Google\Service\AdSenseHost(...);
* $associationsessions = $adsensehostService->associationsessions;
* </code>
*/
class Associationsessions extends \Google\Service\Resource
{
/**
* Create an association session for initiating an association with an AdSense
* user. (associationsessions.start)
*
* @param string|array $productCode Products to associate with the user.
* @param string $websiteUrl The URL of the user's hosted website.
* @param array $optParams Optional parameters.
*
* @opt_param string callbackUrl The URL to redirect the user to once
* association is completed. It receives a token parameter that can then be used
* to retrieve the associated account.
* @opt_param string userLocale The preferred locale of the user.
* @opt_param string websiteLocale The locale of the user's hosted website.
* @return AssociationSession
* @throws \Google\Service\Exception
*/
public function start($productCode, $websiteUrl, $optParams = [])
{
$params = ['productCode' => $productCode, 'websiteUrl' => $websiteUrl];
$params = array_merge($params, $optParams);
return $this->call('start', [$params], AssociationSession::class);
}
/**
* Verify an association session after the association callback returns from
* AdSense signup. (associationsessions.verify)
*
* @param string $token The token returned to the association callback URL.
* @param array $optParams Optional parameters.
* @return AssociationSession
* @throws \Google\Service\Exception
*/
public function verify($token, $optParams = [])
{
$params = ['token' => $token];
$params = array_merge($params, $optParams);
return $this->call('verify', [$params], AssociationSession::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Associationsessions::class, 'Google_Service_AdSenseHost_Resource_Associationsessions');
@@ -0,0 +1,139 @@
<?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\AdSenseHost\Resource;
use Google\Service\AdSenseHost\CustomChannel;
use Google\Service\AdSenseHost\CustomChannels as CustomChannelsModel;
/**
* The "customchannels" collection of methods.
* Typical usage is:
* <code>
* $adsensehostService = new Google\Service\AdSenseHost(...);
* $customchannels = $adsensehostService->customchannels;
* </code>
*/
class Customchannels extends \Google\Service\Resource
{
/**
* Delete a specific custom channel from the host AdSense account.
* (customchannels.delete)
*
* @param string $adClientId Ad client from which to delete the custom channel.
* @param string $customChannelId Custom channel to delete.
* @param array $optParams Optional parameters.
* @return CustomChannel
* @throws \Google\Service\Exception
*/
public function delete($adClientId, $customChannelId, $optParams = [])
{
$params = ['adClientId' => $adClientId, 'customChannelId' => $customChannelId];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], CustomChannel::class);
}
/**
* Get a specific custom channel from the host AdSense account.
* (customchannels.get)
*
* @param string $adClientId Ad client from which to get the custom channel.
* @param string $customChannelId Custom channel to get.
* @param array $optParams Optional parameters.
* @return CustomChannel
* @throws \Google\Service\Exception
*/
public function get($adClientId, $customChannelId, $optParams = [])
{
$params = ['adClientId' => $adClientId, 'customChannelId' => $customChannelId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], CustomChannel::class);
}
/**
* Add a new custom channel to the host AdSense account. (customchannels.insert)
*
* @param string $adClientId Ad client to which the new custom channel will be
* added.
* @param CustomChannel $postBody
* @param array $optParams Optional parameters.
* @return CustomChannel
* @throws \Google\Service\Exception
*/
public function insert($adClientId, CustomChannel $postBody, $optParams = [])
{
$params = ['adClientId' => $adClientId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('insert', [$params], CustomChannel::class);
}
/**
* List all host custom channels in this AdSense account.
* (customchannels.listCustomchannels)
*
* @param string $adClientId Ad client for which to list custom channels.
* @param array $optParams Optional parameters.
*
* @opt_param string maxResults The maximum number of custom channels to include
* in the response, used for paging.
* @opt_param string pageToken A continuation token, used to page through custom
* channels. To retrieve the next page, set this parameter to the value of
* "nextPageToken" from the previous response.
* @return CustomChannelsModel
* @throws \Google\Service\Exception
*/
public function listCustomchannels($adClientId, $optParams = [])
{
$params = ['adClientId' => $adClientId];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], CustomChannelsModel::class);
}
/**
* Update a custom channel in the host AdSense account. This method supports
* patch semantics. (customchannels.patch)
*
* @param string $adClientId Ad client in which the custom channel will be
* updated.
* @param string $customChannelId Custom channel to get.
* @param CustomChannel $postBody
* @param array $optParams Optional parameters.
* @return CustomChannel
* @throws \Google\Service\Exception
*/
public function patch($adClientId, $customChannelId, CustomChannel $postBody, $optParams = [])
{
$params = ['adClientId' => $adClientId, 'customChannelId' => $customChannelId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], CustomChannel::class);
}
/**
* Update a custom channel in the host AdSense account. (customchannels.update)
*
* @param string $adClientId Ad client in which the custom channel will be
* updated.
* @param CustomChannel $postBody
* @param array $optParams Optional parameters.
* @return CustomChannel
* @throws \Google\Service\Exception
*/
public function update($adClientId, CustomChannel $postBody, $optParams = [])
{
$params = ['adClientId' => $adClientId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('update', [$params], CustomChannel::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Customchannels::class, 'Google_Service_AdSenseHost_Resource_Customchannels');
@@ -0,0 +1,66 @@
<?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\AdSenseHost\Resource;
use Google\Service\AdSenseHost\Report;
/**
* The "reports" collection of methods.
* Typical usage is:
* <code>
* $adsensehostService = new Google\Service\AdSenseHost(...);
* $reports = $adsensehostService->reports;
* </code>
*/
class Reports extends \Google\Service\Resource
{
/**
* Generate an AdSense report based on the report request sent in the query
* parameters. Returns the result as JSON; to retrieve output in CSV format
* specify "alt=csv" as a query parameter. (reports.generate)
*
* @param string $startDate Start of the date range to report on in "YYYY-MM-DD"
* format, inclusive.
* @param string $endDate End of the date range to report on in "YYYY-MM-DD"
* format, inclusive.
* @param array $optParams Optional parameters.
*
* @opt_param string dimension Dimensions to base the report on.
* @opt_param string filter Filters to be run on the report.
* @opt_param string locale Optional locale to use for translating report output
* to a local language. Defaults to "en_US" if not specified.
* @opt_param string maxResults The maximum number of rows of report data to
* return.
* @opt_param string metric Numeric columns to include in the report.
* @opt_param string sort The name of a dimension or metric to sort the
* resulting report on, optionally prefixed with "+" to sort ascending or "-" to
* sort descending. If no prefix is specified, the column is sorted ascending.
* @opt_param string startIndex Index of the first row of report data to return.
* @return Report
* @throws \Google\Service\Exception
*/
public function generate($startDate, $endDate, $optParams = [])
{
$params = ['startDate' => $startDate, 'endDate' => $endDate];
$params = array_merge($params, $optParams);
return $this->call('generate', [$params], Report::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Reports::class, 'Google_Service_AdSenseHost_Resource_Reports');
@@ -0,0 +1,88 @@
<?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\AdSenseHost\Resource;
use Google\Service\AdSenseHost\UrlChannel;
use Google\Service\AdSenseHost\UrlChannels as UrlChannelsModel;
/**
* The "urlchannels" collection of methods.
* Typical usage is:
* <code>
* $adsensehostService = new Google\Service\AdSenseHost(...);
* $urlchannels = $adsensehostService->urlchannels;
* </code>
*/
class Urlchannels extends \Google\Service\Resource
{
/**
* Delete a URL channel from the host AdSense account. (urlchannels.delete)
*
* @param string $adClientId Ad client from which to delete the URL channel.
* @param string $urlChannelId URL channel to delete.
* @param array $optParams Optional parameters.
* @return UrlChannel
* @throws \Google\Service\Exception
*/
public function delete($adClientId, $urlChannelId, $optParams = [])
{
$params = ['adClientId' => $adClientId, 'urlChannelId' => $urlChannelId];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], UrlChannel::class);
}
/**
* Add a new URL channel to the host AdSense account. (urlchannels.insert)
*
* @param string $adClientId Ad client to which the new URL channel will be
* added.
* @param UrlChannel $postBody
* @param array $optParams Optional parameters.
* @return UrlChannel
* @throws \Google\Service\Exception
*/
public function insert($adClientId, UrlChannel $postBody, $optParams = [])
{
$params = ['adClientId' => $adClientId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('insert', [$params], UrlChannel::class);
}
/**
* List all host URL channels in the host AdSense account.
* (urlchannels.listUrlchannels)
*
* @param string $adClientId Ad client for which to list URL channels.
* @param array $optParams Optional parameters.
*
* @opt_param string maxResults The maximum number of URL channels to include in
* the response, used for paging.
* @opt_param string pageToken A continuation token, used to page through URL
* channels. To retrieve the next page, set this parameter to the value of
* "nextPageToken" from the previous response.
* @return UrlChannelsModel
* @throws \Google\Service\Exception
*/
public function listUrlchannels($adClientId, $optParams = [])
{
$params = ['adClientId' => $adClientId];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], UrlChannelsModel::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Urlchannels::class, 'Google_Service_AdSenseHost_Resource_Urlchannels');
@@ -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\AdSenseHost;
class UrlChannel extends \Google\Model
{
/**
* @var string
*/
public $id;
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $urlPattern;
/**
* @param string
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setUrlPattern($urlPattern)
{
$this->urlPattern = $urlPattern;
}
/**
* @return string
*/
public function getUrlPattern()
{
return $this->urlPattern;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(UrlChannel::class, 'Google_Service_AdSenseHost_UrlChannel');
@@ -0,0 +1,97 @@
<?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\AdSenseHost;
class UrlChannels extends \Google\Collection
{
protected $collection_key = 'items';
/**
* @var string
*/
public $etag;
protected $itemsType = UrlChannel::class;
protected $itemsDataType = 'array';
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $nextPageToken;
/**
* @param string
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* @param UrlChannel[]
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return UrlChannel[]
*/
public function getItems()
{
return $this->items;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @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(UrlChannels::class, 'Google_Service_AdSenseHost_UrlChannels');