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
+195
View File
@@ -0,0 +1,195 @@
<?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\AdMob;
class AdUnit extends \Google\Collection
{
protected $collection_key = 'adTypes';
/**
* AdFormat of the ad unit. Possible values are as follows: "APP_OPEN" - App
* Open ad format. "BANNER" - Banner ad format. "BANNER_INTERSTITIAL" - Legacy
* format that can be used as either banner or interstitial. This format can
* no longer be created but can be targeted by mediation groups.
* "INTERSTITIAL" - A full screen ad. Supported ad types are "RICH_MEDIA" and
* "VIDEO". "NATIVE" - Native ad format. "REWARDED" - An ad that, once viewed,
* gets a callback verifying the view so that a reward can be given to the
* user. Supported ad types are "RICH_MEDIA" (interactive) and video where
* video can not be excluded. "REWARDED_INTERSTITIAL" - Rewarded Interstitial
* ad format. Only supports video ad type. See
* https://support.google.com/admob/answer/9884467.
*
* @var string
*/
public $adFormat;
/**
* Ad media type supported by this ad unit. Possible values as follows:
* "RICH_MEDIA" - Text, image, and other non-video media. "VIDEO" - Video
* media.
*
* @var string[]
*/
public $adTypes;
/**
* The externally visible ID of the ad unit which can be used to integrate
* with the AdMob SDK. This is a read only property. Example: ca-app-
* pub-9876543210987654/0123456789
*
* @var string
*/
public $adUnitId;
/**
* The externally visible ID of the app this ad unit is associated with.
* Example: ca-app-pub-9876543210987654~0123456789
*
* @var string
*/
public $appId;
/**
* The display name of the ad unit as shown in the AdMob UI, which is provided
* by the user. The maximum length allowed is 80 characters.
*
* @var string
*/
public $displayName;
/**
* Resource name for this ad unit. Format is
* accounts/{publisher_id}/adUnits/{ad_unit_id_fragment} Example:
* accounts/pub-9876543210987654/adUnits/0123456789
*
* @var string
*/
public $name;
/**
* AdFormat of the ad unit. Possible values are as follows: "APP_OPEN" - App
* Open ad format. "BANNER" - Banner ad format. "BANNER_INTERSTITIAL" - Legacy
* format that can be used as either banner or interstitial. This format can
* no longer be created but can be targeted by mediation groups.
* "INTERSTITIAL" - A full screen ad. Supported ad types are "RICH_MEDIA" and
* "VIDEO". "NATIVE" - Native ad format. "REWARDED" - An ad that, once viewed,
* gets a callback verifying the view so that a reward can be given to the
* user. Supported ad types are "RICH_MEDIA" (interactive) and video where
* video can not be excluded. "REWARDED_INTERSTITIAL" - Rewarded Interstitial
* ad format. Only supports video ad type. See
* https://support.google.com/admob/answer/9884467.
*
* @param string $adFormat
*/
public function setAdFormat($adFormat)
{
$this->adFormat = $adFormat;
}
/**
* @return string
*/
public function getAdFormat()
{
return $this->adFormat;
}
/**
* Ad media type supported by this ad unit. Possible values as follows:
* "RICH_MEDIA" - Text, image, and other non-video media. "VIDEO" - Video
* media.
*
* @param string[] $adTypes
*/
public function setAdTypes($adTypes)
{
$this->adTypes = $adTypes;
}
/**
* @return string[]
*/
public function getAdTypes()
{
return $this->adTypes;
}
/**
* The externally visible ID of the ad unit which can be used to integrate
* with the AdMob SDK. This is a read only property. Example: ca-app-
* pub-9876543210987654/0123456789
*
* @param string $adUnitId
*/
public function setAdUnitId($adUnitId)
{
$this->adUnitId = $adUnitId;
}
/**
* @return string
*/
public function getAdUnitId()
{
return $this->adUnitId;
}
/**
* The externally visible ID of the app this ad unit is associated with.
* Example: ca-app-pub-9876543210987654~0123456789
*
* @param string $appId
*/
public function setAppId($appId)
{
$this->appId = $appId;
}
/**
* @return string
*/
public function getAppId()
{
return $this->appId;
}
/**
* The display name of the ad unit as shown in the AdMob UI, which is provided
* by the user. The maximum length allowed is 80 characters.
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* Resource name for this ad unit. Format is
* accounts/{publisher_id}/adUnits/{ad_unit_id_fragment} Example:
* accounts/pub-9876543210987654/adUnits/0123456789
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AdUnit::class, 'Google_Service_AdMob_AdUnit');
+182
View File
@@ -0,0 +1,182 @@
<?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\AdMob;
class App extends \Google\Model
{
/**
* Default value for an unset field. Do not use.
*/
public const APP_APPROVAL_STATE_APP_APPROVAL_STATE_UNSPECIFIED = 'APP_APPROVAL_STATE_UNSPECIFIED';
/**
* The app requires additional user action to be approved. Please refer to
* https://support.google.com/admob/answer/10564477 for details and next
* steps.
*/
public const APP_APPROVAL_STATE_ACTION_REQUIRED = 'ACTION_REQUIRED';
/**
* The app is pending review.
*/
public const APP_APPROVAL_STATE_IN_REVIEW = 'IN_REVIEW';
/**
* The app is approved and can serve ads.
*/
public const APP_APPROVAL_STATE_APPROVED = 'APPROVED';
/**
* Output only. The approval state for the app. The field is read-only.
*
* @var string
*/
public $appApprovalState;
/**
* The externally visible ID of the app which can be used to integrate with
* the AdMob SDK. This is a read only property. Example: ca-app-
* pub-9876543210987654~0123456789
*
* @var string
*/
public $appId;
protected $linkedAppInfoType = AppLinkedAppInfo::class;
protected $linkedAppInfoDataType = '';
protected $manualAppInfoType = AppManualAppInfo::class;
protected $manualAppInfoDataType = '';
/**
* Resource name for this app. Format is
* accounts/{publisher_id}/apps/{app_id_fragment} Example:
* accounts/pub-9876543210987654/apps/0123456789
*
* @var string
*/
public $name;
/**
* Describes the platform of the app. Limited to "IOS" and "ANDROID".
*
* @var string
*/
public $platform;
/**
* Output only. The approval state for the app. The field is read-only.
*
* Accepted values: APP_APPROVAL_STATE_UNSPECIFIED, ACTION_REQUIRED,
* IN_REVIEW, APPROVED
*
* @param self::APP_APPROVAL_STATE_* $appApprovalState
*/
public function setAppApprovalState($appApprovalState)
{
$this->appApprovalState = $appApprovalState;
}
/**
* @return self::APP_APPROVAL_STATE_*
*/
public function getAppApprovalState()
{
return $this->appApprovalState;
}
/**
* The externally visible ID of the app which can be used to integrate with
* the AdMob SDK. This is a read only property. Example: ca-app-
* pub-9876543210987654~0123456789
*
* @param string $appId
*/
public function setAppId($appId)
{
$this->appId = $appId;
}
/**
* @return string
*/
public function getAppId()
{
return $this->appId;
}
/**
* Immutable. The information for an app that is linked to an app store. This
* field is present if and only if the app is linked to an app store.
*
* @param AppLinkedAppInfo $linkedAppInfo
*/
public function setLinkedAppInfo(AppLinkedAppInfo $linkedAppInfo)
{
$this->linkedAppInfo = $linkedAppInfo;
}
/**
* @return AppLinkedAppInfo
*/
public function getLinkedAppInfo()
{
return $this->linkedAppInfo;
}
/**
* The information for an app that is not linked to any app store. After an
* app is linked, this information is still retrivable. If no name is provided
* for the app upon creation, a placeholder name will be used.
*
* @param AppManualAppInfo $manualAppInfo
*/
public function setManualAppInfo(AppManualAppInfo $manualAppInfo)
{
$this->manualAppInfo = $manualAppInfo;
}
/**
* @return AppManualAppInfo
*/
public function getManualAppInfo()
{
return $this->manualAppInfo;
}
/**
* Resource name for this app. Format is
* accounts/{publisher_id}/apps/{app_id_fragment} Example:
* accounts/pub-9876543210987654/apps/0123456789
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Describes the platform of the app. Limited to "IOS" and "ANDROID".
*
* @param string $platform
*/
public function setPlatform($platform)
{
$this->platform = $platform;
}
/**
* @return string
*/
public function getPlatform()
{
return $this->platform;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(App::class, 'Google_Service_AdMob_App');
@@ -0,0 +1,86 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AdMob;
class AppLinkedAppInfo extends \Google\Model
{
/**
* The app store ID of the app; present if and only if the app is linked to an
* app store. If the app is added to the Google Play store, it will be the
* application ID of the app. For example: "com.example.myapp". See
* https://developer.android.com/studio/build/application-id. If the app is
* added to the Apple App Store, it will be app store ID. For example
* "105169111". Note that setting the app store id is considered an
* irreversible action. Once an app is linked, it cannot be unlinked.
*
* @var string
*/
public $appStoreId;
/**
* Output only. Display name of the app as it appears in the app store. This
* is an output-only field, and may be empty if the app cannot be found in the
* store.
*
* @var string
*/
public $displayName;
/**
* The app store ID of the app; present if and only if the app is linked to an
* app store. If the app is added to the Google Play store, it will be the
* application ID of the app. For example: "com.example.myapp". See
* https://developer.android.com/studio/build/application-id. If the app is
* added to the Apple App Store, it will be app store ID. For example
* "105169111". Note that setting the app store id is considered an
* irreversible action. Once an app is linked, it cannot be unlinked.
*
* @param string $appStoreId
*/
public function setAppStoreId($appStoreId)
{
$this->appStoreId = $appStoreId;
}
/**
* @return string
*/
public function getAppStoreId()
{
return $this->appStoreId;
}
/**
* Output only. Display name of the app as it appears in the app store. This
* is an output-only field, and may be empty if the app cannot be found in the
* store.
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AppLinkedAppInfo::class, 'Google_Service_AdMob_AppLinkedAppInfo');
@@ -0,0 +1,50 @@
<?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\AdMob;
class AppManualAppInfo extends \Google\Model
{
/**
* The display name of the app as shown in the AdMob UI, which is provided by
* the user. The maximum length allowed is 80 characters.
*
* @var string
*/
public $displayName;
/**
* The display name of the app as shown in the AdMob UI, which is provided by
* the user. The maximum length allowed is 80 characters.
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AppManualAppInfo::class, 'Google_Service_AdMob_AppManualAppInfo');
+100
View File
@@ -0,0 +1,100 @@
<?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\AdMob;
class Date extends \Google\Model
{
/**
* Day of a month. Must be from 1 to 31 and valid for the year and month, or 0
* to specify a year by itself or a year and month where the day isn't
* significant.
*
* @var int
*/
public $day;
/**
* Month of a year. Must be from 1 to 12, or 0 to specify a year without a
* month and day.
*
* @var int
*/
public $month;
/**
* Year of the date. Must be from 1 to 9999, or 0 to specify a date without a
* year.
*
* @var int
*/
public $year;
/**
* Day of a month. Must be from 1 to 31 and valid for the year and month, or 0
* to specify a year by itself or a year and month where the day isn't
* significant.
*
* @param int $day
*/
public function setDay($day)
{
$this->day = $day;
}
/**
* @return int
*/
public function getDay()
{
return $this->day;
}
/**
* Month of a year. Must be from 1 to 12, or 0 to specify a year without a
* month and day.
*
* @param int $month
*/
public function setMonth($month)
{
$this->month = $month;
}
/**
* @return int
*/
public function getMonth()
{
return $this->month;
}
/**
* Year of the date. Must be from 1 to 9999, or 0 to specify a date without a
* year.
*
* @param int $year
*/
public function setYear($year)
{
$this->year = $year;
}
/**
* @return int
*/
public function getYear()
{
return $this->year;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Date::class, 'Google_Service_AdMob_Date');
@@ -0,0 +1,64 @@
<?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\AdMob;
class DateRange extends \Google\Model
{
protected $endDateType = Date::class;
protected $endDateDataType = '';
protected $startDateType = Date::class;
protected $startDateDataType = '';
/**
* End date of the date range, inclusive. Must be greater than or equal to the
* start date.
*
* @param Date $endDate
*/
public function setEndDate(Date $endDate)
{
$this->endDate = $endDate;
}
/**
* @return Date
*/
public function getEndDate()
{
return $this->endDate;
}
/**
* Start date of the date range, inclusive. Must be less than or equal to the
* end date.
*
* @param Date $startDate
*/
public function setStartDate(Date $startDate)
{
$this->startDate = $startDate;
}
/**
* @return Date
*/
public function getStartDate()
{
return $this->startDate;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DateRange::class, 'Google_Service_AdMob_DateRange');
@@ -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\AdMob;
class GenerateMediationReportRequest extends \Google\Model
{
protected $reportSpecType = MediationReportSpec::class;
protected $reportSpecDataType = '';
/**
* Network report specification.
*
* @param MediationReportSpec $reportSpec
*/
public function setReportSpec(MediationReportSpec $reportSpec)
{
$this->reportSpec = $reportSpec;
}
/**
* @return MediationReportSpec
*/
public function getReportSpec()
{
return $this->reportSpec;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GenerateMediationReportRequest::class, 'Google_Service_AdMob_GenerateMediationReportRequest');
@@ -0,0 +1,82 @@
<?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\AdMob;
class GenerateMediationReportResponse extends \Google\Model
{
protected $footerType = ReportFooter::class;
protected $footerDataType = '';
protected $headerType = ReportHeader::class;
protected $headerDataType = '';
protected $rowType = ReportRow::class;
protected $rowDataType = '';
/**
* Additional information about the generated report, such as warnings about
* the data.
*
* @param ReportFooter $footer
*/
public function setFooter(ReportFooter $footer)
{
$this->footer = $footer;
}
/**
* @return ReportFooter
*/
public function getFooter()
{
return $this->footer;
}
/**
* Report generation settings that describes the report contents, such as the
* report date range and localization settings.
*
* @param ReportHeader $header
*/
public function setHeader(ReportHeader $header)
{
$this->header = $header;
}
/**
* @return ReportHeader
*/
public function getHeader()
{
return $this->header;
}
/**
* Actual report data.
*
* @param ReportRow $row
*/
public function setRow(ReportRow $row)
{
$this->row = $row;
}
/**
* @return ReportRow
*/
public function getRow()
{
return $this->row;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GenerateMediationReportResponse::class, 'Google_Service_AdMob_GenerateMediationReportResponse');
@@ -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\AdMob;
class GenerateNetworkReportRequest extends \Google\Model
{
protected $reportSpecType = NetworkReportSpec::class;
protected $reportSpecDataType = '';
/**
* Network report specification.
*
* @param NetworkReportSpec $reportSpec
*/
public function setReportSpec(NetworkReportSpec $reportSpec)
{
$this->reportSpec = $reportSpec;
}
/**
* @return NetworkReportSpec
*/
public function getReportSpec()
{
return $this->reportSpec;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GenerateNetworkReportRequest::class, 'Google_Service_AdMob_GenerateNetworkReportRequest');
@@ -0,0 +1,82 @@
<?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\AdMob;
class GenerateNetworkReportResponse extends \Google\Model
{
protected $footerType = ReportFooter::class;
protected $footerDataType = '';
protected $headerType = ReportHeader::class;
protected $headerDataType = '';
protected $rowType = ReportRow::class;
protected $rowDataType = '';
/**
* Additional information about the generated report, such as warnings about
* the data.
*
* @param ReportFooter $footer
*/
public function setFooter(ReportFooter $footer)
{
$this->footer = $footer;
}
/**
* @return ReportFooter
*/
public function getFooter()
{
return $this->footer;
}
/**
* Report generation settings that describes the report contents, such as the
* report date range and localization settings.
*
* @param ReportHeader $header
*/
public function setHeader(ReportHeader $header)
{
$this->header = $header;
}
/**
* @return ReportHeader
*/
public function getHeader()
{
return $this->header;
}
/**
* Actual report data.
*
* @param ReportRow $row
*/
public function setRow(ReportRow $row)
{
$this->row = $row;
}
/**
* @return ReportRow
*/
public function getRow()
{
return $this->row;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GenerateNetworkReportResponse::class, 'Google_Service_AdMob_GenerateNetworkReportResponse');
@@ -0,0 +1,69 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AdMob;
class ListAdUnitsResponse extends \Google\Collection
{
protected $collection_key = 'adUnits';
protected $adUnitsType = AdUnit::class;
protected $adUnitsDataType = 'array';
/**
* If not empty, indicates that there may be more ad units for the request;
* this value should be passed in a new `ListAdUnitsRequest`.
*
* @var string
*/
public $nextPageToken;
/**
* The resulting ad units for the requested account.
*
* @param AdUnit[] $adUnits
*/
public function setAdUnits($adUnits)
{
$this->adUnits = $adUnits;
}
/**
* @return AdUnit[]
*/
public function getAdUnits()
{
return $this->adUnits;
}
/**
* If not empty, indicates that there may be more ad units for the request;
* this value should be passed in a new `ListAdUnitsRequest`.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListAdUnitsResponse::class, 'Google_Service_AdMob_ListAdUnitsResponse');
@@ -0,0 +1,69 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AdMob;
class ListAppsResponse extends \Google\Collection
{
protected $collection_key = 'apps';
protected $appsType = App::class;
protected $appsDataType = 'array';
/**
* If not empty, indicates that there may be more apps for the request; this
* value should be passed in a new `ListAppsRequest`.
*
* @var string
*/
public $nextPageToken;
/**
* The resulting apps for the requested account.
*
* @param App[] $apps
*/
public function setApps($apps)
{
$this->apps = $apps;
}
/**
* @return App[]
*/
public function getApps()
{
return $this->apps;
}
/**
* If not empty, indicates that there may be more apps for the request; this
* value should be passed in a new `ListAppsRequest`.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListAppsResponse::class, 'Google_Service_AdMob_ListAppsResponse');
@@ -0,0 +1,69 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AdMob;
class ListPublisherAccountsResponse extends \Google\Collection
{
protected $collection_key = 'account';
protected $accountType = PublisherAccount::class;
protected $accountDataType = 'array';
/**
* If not empty, indicates that there might be more accounts for the request;
* you must pass this value in a new `ListPublisherAccountsRequest`.
*
* @var string
*/
public $nextPageToken;
/**
* Publisher that the client credentials can access.
*
* @param PublisherAccount[] $account
*/
public function setAccount($account)
{
$this->account = $account;
}
/**
* @return PublisherAccount[]
*/
public function getAccount()
{
return $this->account;
}
/**
* If not empty, indicates that there might be more accounts for the request;
* you must pass this value in a new `ListPublisherAccountsRequest`.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListPublisherAccountsResponse::class, 'Google_Service_AdMob_ListPublisherAccountsResponse');
@@ -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\AdMob;
class LocalizationSettings extends \Google\Model
{
/**
* Currency code of the earning related metrics, which is the 3-letter code
* defined in ISO 4217. The daily average rate is used for the currency
* conversion. Defaults to the account currency code if unspecified.
*
* @var string
*/
public $currencyCode;
/**
* Language used for any localized text, such as some dimension value display
* labels. The language tag defined in the IETF BCP47. Defaults to 'en-US' if
* unspecified.
*
* @var string
*/
public $languageCode;
/**
* Currency code of the earning related metrics, which is the 3-letter code
* defined in ISO 4217. The daily average rate is used for the currency
* conversion. Defaults to the account currency code if unspecified.
*
* @param string $currencyCode
*/
public function setCurrencyCode($currencyCode)
{
$this->currencyCode = $currencyCode;
}
/**
* @return string
*/
public function getCurrencyCode()
{
return $this->currencyCode;
}
/**
* Language used for any localized text, such as some dimension value display
* labels. The language tag defined in the IETF BCP47. Defaults to 'en-US' if
* unspecified.
*
* @param string $languageCode
*/
public function setLanguageCode($languageCode)
{
$this->languageCode = $languageCode;
}
/**
* @return string
*/
public function getLanguageCode()
{
return $this->languageCode;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LocalizationSettings::class, 'Google_Service_AdMob_LocalizationSettings');
@@ -0,0 +1,204 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AdMob;
class MediationReportSpec extends \Google\Collection
{
protected $collection_key = 'sortConditions';
protected $dateRangeType = DateRange::class;
protected $dateRangeDataType = '';
protected $dimensionFiltersType = MediationReportSpecDimensionFilter::class;
protected $dimensionFiltersDataType = 'array';
/**
* List of dimensions of the report. The value combination of these dimensions
* determines the row of the report. If no dimensions are specified, the
* report returns a single row of requested metrics for the entire account.
*
* @var string[]
*/
public $dimensions;
protected $localizationSettingsType = LocalizationSettings::class;
protected $localizationSettingsDataType = '';
/**
* Maximum number of report data rows to return. If the value is not set, the
* API returns as many rows as possible, up to 100000. Acceptable values are
* 1-100000, inclusive. Values larger than 100000 return an error.
*
* @var int
*/
public $maxReportRows;
/**
* List of metrics of the report. A report must specify at least one metric.
*
* @var string[]
*/
public $metrics;
protected $sortConditionsType = MediationReportSpecSortCondition::class;
protected $sortConditionsDataType = 'array';
/**
* A report time zone. Accepts an IANA TZ name values, such as
* "America/Los_Angeles." If no time zone is defined, the account default
* takes effect. Check default value by the get account action. **Warning:**
* The "America/Los_Angeles" is the only supported value at the moment.
*
* @var string
*/
public $timeZone;
/**
* The date range for which the report is generated.
*
* @param DateRange $dateRange
*/
public function setDateRange(DateRange $dateRange)
{
$this->dateRange = $dateRange;
}
/**
* @return DateRange
*/
public function getDateRange()
{
return $this->dateRange;
}
/**
* Describes which report rows to match based on their dimension values.
*
* @param MediationReportSpecDimensionFilter[] $dimensionFilters
*/
public function setDimensionFilters($dimensionFilters)
{
$this->dimensionFilters = $dimensionFilters;
}
/**
* @return MediationReportSpecDimensionFilter[]
*/
public function getDimensionFilters()
{
return $this->dimensionFilters;
}
/**
* List of dimensions of the report. The value combination of these dimensions
* determines the row of the report. If no dimensions are specified, the
* report returns a single row of requested metrics for the entire account.
*
* @param string[] $dimensions
*/
public function setDimensions($dimensions)
{
$this->dimensions = $dimensions;
}
/**
* @return string[]
*/
public function getDimensions()
{
return $this->dimensions;
}
/**
* Localization settings of the report.
*
* @param LocalizationSettings $localizationSettings
*/
public function setLocalizationSettings(LocalizationSettings $localizationSettings)
{
$this->localizationSettings = $localizationSettings;
}
/**
* @return LocalizationSettings
*/
public function getLocalizationSettings()
{
return $this->localizationSettings;
}
/**
* Maximum number of report data rows to return. If the value is not set, the
* API returns as many rows as possible, up to 100000. Acceptable values are
* 1-100000, inclusive. Values larger than 100000 return an error.
*
* @param int $maxReportRows
*/
public function setMaxReportRows($maxReportRows)
{
$this->maxReportRows = $maxReportRows;
}
/**
* @return int
*/
public function getMaxReportRows()
{
return $this->maxReportRows;
}
/**
* List of metrics of the report. A report must specify at least one metric.
*
* @param string[] $metrics
*/
public function setMetrics($metrics)
{
$this->metrics = $metrics;
}
/**
* @return string[]
*/
public function getMetrics()
{
return $this->metrics;
}
/**
* Describes the sorting of report rows. The order of the condition in the
* list defines its precedence; the earlier the condition, the higher its
* precedence. If no sort conditions are specified, the row ordering is
* undefined.
*
* @param MediationReportSpecSortCondition[] $sortConditions
*/
public function setSortConditions($sortConditions)
{
$this->sortConditions = $sortConditions;
}
/**
* @return MediationReportSpecSortCondition[]
*/
public function getSortConditions()
{
return $this->sortConditions;
}
/**
* A report time zone. Accepts an IANA TZ name values, such as
* "America/Los_Angeles." If no time zone is defined, the account default
* takes effect. Check default value by the get account action. **Warning:**
* The "America/Los_Angeles" is the only supported value at the moment.
*
* @param string $timeZone
*/
public function setTimeZone($timeZone)
{
$this->timeZone = $timeZone;
}
/**
* @return string
*/
public function getTimeZone()
{
return $this->timeZone;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MediationReportSpec::class, 'Google_Service_AdMob_MediationReportSpec');
@@ -0,0 +1,148 @@
<?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\AdMob;
class MediationReportSpecDimensionFilter extends \Google\Model
{
/**
* Default value for an unset field. Do not use.
*/
public const DIMENSION_DIMENSION_UNSPECIFIED = 'DIMENSION_UNSPECIFIED';
/**
* A date in the YYYYMMDD format (for example, "20210701"). Requests can
* specify at most one time dimension.
*/
public const DIMENSION_DATE = 'DATE';
/**
* A month in the YYYYMM format (for example, "202107"). Requests can specify
* at most one time dimension.
*/
public const DIMENSION_MONTH = 'MONTH';
/**
* The date of the first day of a week in the YYYYMMDD format (for example,
* "20210701"). Requests can specify at most one time dimension.
*/
public const DIMENSION_WEEK = 'WEEK';
/**
* The [unique ID of the ad source](/admob/api/v1/ad_sources) (for example,
* "5450213213286189855" and "AdMob Network" as label value).
*/
public const DIMENSION_AD_SOURCE = 'AD_SOURCE';
/**
* The unique ID of the ad source instance (for example, "ca-app-
* pub-1234:asi:5678" and "AdMob (default)" as label value).
*/
public const DIMENSION_AD_SOURCE_INSTANCE = 'AD_SOURCE_INSTANCE';
/**
* The unique ID of the ad unit (for example, "ca-app-pub-1234/8790"). If
* AD_UNIT dimension is specified, then APP is included automatically.
*/
public const DIMENSION_AD_UNIT = 'AD_UNIT';
/**
* The unique ID of the mobile application (for example, "ca-app-
* pub-1234~1234").
*/
public const DIMENSION_APP = 'APP';
/**
* The unique ID of the mediation group (for example, "ca-app-
* pub-1234:mg:1234" and "AdMob (default)" as label value).
*/
public const DIMENSION_MEDIATION_GROUP = 'MEDIATION_GROUP';
/**
* CLDR country code of the place where the ad views/clicks occur (for
* example, "US" or "FR"). This is a geography dimension.
*/
public const DIMENSION_COUNTRY = 'COUNTRY';
/**
* Format of the ad unit (for example, "banner", "native"), an ad delivery
* dimension.
*/
public const DIMENSION_FORMAT = 'FORMAT';
/**
* Mobile OS platform of the app (for example, "Android" or "iOS").
*/
public const DIMENSION_PLATFORM = 'PLATFORM';
/**
* Mobile operating system version, e.g. "iOS 13.5.1".
*/
public const DIMENSION_MOBILE_OS_VERSION = 'MOBILE_OS_VERSION';
/**
* GMA SDK version, e.g. "iOS 7.62.0".
*/
public const DIMENSION_GMA_SDK_VERSION = 'GMA_SDK_VERSION';
/**
* For Android, the app version name can be found in versionName in
* PackageInfo. For iOS, the app version name can be found in
* CFBundleShortVersionString.
*/
public const DIMENSION_APP_VERSION_NAME = 'APP_VERSION_NAME';
/**
* Restriction mode for ads serving (e.g. "Non-personalized ads").
*/
public const DIMENSION_SERVING_RESTRICTION = 'SERVING_RESTRICTION';
/**
* Applies the filter criterion to the specified dimension.
*
* @var string
*/
public $dimension;
protected $matchesAnyType = StringList::class;
protected $matchesAnyDataType = '';
/**
* Applies the filter criterion to the specified dimension.
*
* Accepted values: DIMENSION_UNSPECIFIED, DATE, MONTH, WEEK, AD_SOURCE,
* AD_SOURCE_INSTANCE, AD_UNIT, APP, MEDIATION_GROUP, COUNTRY, FORMAT,
* PLATFORM, MOBILE_OS_VERSION, GMA_SDK_VERSION, APP_VERSION_NAME,
* SERVING_RESTRICTION
*
* @param self::DIMENSION_* $dimension
*/
public function setDimension($dimension)
{
$this->dimension = $dimension;
}
/**
* @return self::DIMENSION_*
*/
public function getDimension()
{
return $this->dimension;
}
/**
* Matches a row if its value for the specified dimension is in one of the
* values specified in this condition.
*
* @param StringList $matchesAny
*/
public function setMatchesAny(StringList $matchesAny)
{
$this->matchesAny = $matchesAny;
}
/**
* @return StringList
*/
public function getMatchesAny()
{
return $this->matchesAny;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MediationReportSpecDimensionFilter::class, 'Google_Service_AdMob_MediationReportSpecDimensionFilter');
@@ -0,0 +1,241 @@
<?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\AdMob;
class MediationReportSpecSortCondition extends \Google\Model
{
/**
* Default value for an unset field. Do not use.
*/
public const DIMENSION_DIMENSION_UNSPECIFIED = 'DIMENSION_UNSPECIFIED';
/**
* A date in the YYYYMMDD format (for example, "20210701"). Requests can
* specify at most one time dimension.
*/
public const DIMENSION_DATE = 'DATE';
/**
* A month in the YYYYMM format (for example, "202107"). Requests can specify
* at most one time dimension.
*/
public const DIMENSION_MONTH = 'MONTH';
/**
* The date of the first day of a week in the YYYYMMDD format (for example,
* "20210701"). Requests can specify at most one time dimension.
*/
public const DIMENSION_WEEK = 'WEEK';
/**
* The [unique ID of the ad source](/admob/api/v1/ad_sources) (for example,
* "5450213213286189855" and "AdMob Network" as label value).
*/
public const DIMENSION_AD_SOURCE = 'AD_SOURCE';
/**
* The unique ID of the ad source instance (for example, "ca-app-
* pub-1234:asi:5678" and "AdMob (default)" as label value).
*/
public const DIMENSION_AD_SOURCE_INSTANCE = 'AD_SOURCE_INSTANCE';
/**
* The unique ID of the ad unit (for example, "ca-app-pub-1234/8790"). If
* AD_UNIT dimension is specified, then APP is included automatically.
*/
public const DIMENSION_AD_UNIT = 'AD_UNIT';
/**
* The unique ID of the mobile application (for example, "ca-app-
* pub-1234~1234").
*/
public const DIMENSION_APP = 'APP';
/**
* The unique ID of the mediation group (for example, "ca-app-
* pub-1234:mg:1234" and "AdMob (default)" as label value).
*/
public const DIMENSION_MEDIATION_GROUP = 'MEDIATION_GROUP';
/**
* CLDR country code of the place where the ad views/clicks occur (for
* example, "US" or "FR"). This is a geography dimension.
*/
public const DIMENSION_COUNTRY = 'COUNTRY';
/**
* Format of the ad unit (for example, "banner", "native"), an ad delivery
* dimension.
*/
public const DIMENSION_FORMAT = 'FORMAT';
/**
* Mobile OS platform of the app (for example, "Android" or "iOS").
*/
public const DIMENSION_PLATFORM = 'PLATFORM';
/**
* Mobile operating system version, e.g. "iOS 13.5.1".
*/
public const DIMENSION_MOBILE_OS_VERSION = 'MOBILE_OS_VERSION';
/**
* GMA SDK version, e.g. "iOS 7.62.0".
*/
public const DIMENSION_GMA_SDK_VERSION = 'GMA_SDK_VERSION';
/**
* For Android, the app version name can be found in versionName in
* PackageInfo. For iOS, the app version name can be found in
* CFBundleShortVersionString.
*/
public const DIMENSION_APP_VERSION_NAME = 'APP_VERSION_NAME';
/**
* Restriction mode for ads serving (e.g. "Non-personalized ads").
*/
public const DIMENSION_SERVING_RESTRICTION = 'SERVING_RESTRICTION';
/**
* Default value for an unset field. Do not use.
*/
public const METRIC_METRIC_UNSPECIFIED = 'METRIC_UNSPECIFIED';
/**
* The number of requests. The value is an integer.
*/
public const METRIC_AD_REQUESTS = 'AD_REQUESTS';
/**
* The number of times a user clicks an ad. The value is an integer.
*/
public const METRIC_CLICKS = 'CLICKS';
/**
* The estimated earnings of the AdMob publisher. The currency unit (USD, EUR,
* or other) of the earning metrics are determined by the localization setting
* for currency. The amount is in micros. For example, $6.50 would be
* represented as 6500000. Estimated earnings per mediation group and per ad
* source instance level is supported dating back to October 20, 2019. Third-
* party estimated earnings will show 0 for dates prior to October 20, 2019.
*/
public const METRIC_ESTIMATED_EARNINGS = 'ESTIMATED_EARNINGS';
/**
* The total number of ads shown to users. The value is an integer.
*/
public const METRIC_IMPRESSIONS = 'IMPRESSIONS';
/**
* The ratio of clicks over impressions. The value is a double precision
* (approximate) decimal value.
*/
public const METRIC_IMPRESSION_CTR = 'IMPRESSION_CTR';
/**
* The number of times ads are returned in response to a request. The value is
* an integer.
*/
public const METRIC_MATCHED_REQUESTS = 'MATCHED_REQUESTS';
/**
* The ratio of matched ad requests over the total ad requests. The value is a
* double precision (approximate) decimal value.
*/
public const METRIC_MATCH_RATE = 'MATCH_RATE';
/**
* The third-party ad network's estimated average eCPM. The currency unit
* (USD, EUR, or other) of the earning metrics are determined by the
* localization setting for currency. The amount is in micros. For example,
* $2.30 would be represented as 2300000. The estimated average eCPM per
* mediation group and per ad source instance level is supported dating back
* to October 20, 2019. Third-party estimated average eCPM will show 0 for
* dates prior to October 20, 2019.
*/
public const METRIC_OBSERVED_ECPM = 'OBSERVED_ECPM';
/**
* Default value for an unset field. Do not use.
*/
public const ORDER_SORT_ORDER_UNSPECIFIED = 'SORT_ORDER_UNSPECIFIED';
/**
* Sort dimension value or metric value in ascending order.
*/
public const ORDER_ASCENDING = 'ASCENDING';
/**
* Sort dimension value or metric value in descending order.
*/
public const ORDER_DESCENDING = 'DESCENDING';
/**
* Sort by the specified dimension.
*
* @var string
*/
public $dimension;
/**
* Sort by the specified metric.
*
* @var string
*/
public $metric;
/**
* Sorting order of the dimension or metric.
*
* @var string
*/
public $order;
/**
* Sort by the specified dimension.
*
* Accepted values: DIMENSION_UNSPECIFIED, DATE, MONTH, WEEK, AD_SOURCE,
* AD_SOURCE_INSTANCE, AD_UNIT, APP, MEDIATION_GROUP, COUNTRY, FORMAT,
* PLATFORM, MOBILE_OS_VERSION, GMA_SDK_VERSION, APP_VERSION_NAME,
* SERVING_RESTRICTION
*
* @param self::DIMENSION_* $dimension
*/
public function setDimension($dimension)
{
$this->dimension = $dimension;
}
/**
* @return self::DIMENSION_*
*/
public function getDimension()
{
return $this->dimension;
}
/**
* Sort by the specified metric.
*
* Accepted values: METRIC_UNSPECIFIED, AD_REQUESTS, CLICKS,
* ESTIMATED_EARNINGS, IMPRESSIONS, IMPRESSION_CTR, MATCHED_REQUESTS,
* MATCH_RATE, OBSERVED_ECPM
*
* @param self::METRIC_* $metric
*/
public function setMetric($metric)
{
$this->metric = $metric;
}
/**
* @return self::METRIC_*
*/
public function getMetric()
{
return $this->metric;
}
/**
* Sorting order of the dimension or metric.
*
* Accepted values: SORT_ORDER_UNSPECIFIED, ASCENDING, DESCENDING
*
* @param self::ORDER_* $order
*/
public function setOrder($order)
{
$this->order = $order;
}
/**
* @return self::ORDER_*
*/
public function getOrder()
{
return $this->order;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MediationReportSpecSortCondition::class, 'Google_Service_AdMob_MediationReportSpecSortCondition');
@@ -0,0 +1,204 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AdMob;
class NetworkReportSpec extends \Google\Collection
{
protected $collection_key = 'sortConditions';
protected $dateRangeType = DateRange::class;
protected $dateRangeDataType = '';
protected $dimensionFiltersType = NetworkReportSpecDimensionFilter::class;
protected $dimensionFiltersDataType = 'array';
/**
* List of dimensions of the report. The value combination of these dimensions
* determines the row of the report. If no dimensions are specified, the
* report returns a single row of requested metrics for the entire account.
*
* @var string[]
*/
public $dimensions;
protected $localizationSettingsType = LocalizationSettings::class;
protected $localizationSettingsDataType = '';
/**
* Maximum number of report data rows to return. If the value is not set, the
* API returns as many rows as possible, up to 100000. Acceptable values are
* 1-100000, inclusive. Values larger than 100000 return an error.
*
* @var int
*/
public $maxReportRows;
/**
* List of metrics of the report. A report must specify at least one metric.
*
* @var string[]
*/
public $metrics;
protected $sortConditionsType = NetworkReportSpecSortCondition::class;
protected $sortConditionsDataType = 'array';
/**
* A report time zone. Accepts an IANA TZ name values, such as
* "America/Los_Angeles." If no time zone is defined, the account default
* takes effect. Check default value by the get account action. **Warning:**
* The "America/Los_Angeles" is the only supported value at the moment.
*
* @var string
*/
public $timeZone;
/**
* The date range for which the report is generated.
*
* @param DateRange $dateRange
*/
public function setDateRange(DateRange $dateRange)
{
$this->dateRange = $dateRange;
}
/**
* @return DateRange
*/
public function getDateRange()
{
return $this->dateRange;
}
/**
* Describes which report rows to match based on their dimension values.
*
* @param NetworkReportSpecDimensionFilter[] $dimensionFilters
*/
public function setDimensionFilters($dimensionFilters)
{
$this->dimensionFilters = $dimensionFilters;
}
/**
* @return NetworkReportSpecDimensionFilter[]
*/
public function getDimensionFilters()
{
return $this->dimensionFilters;
}
/**
* List of dimensions of the report. The value combination of these dimensions
* determines the row of the report. If no dimensions are specified, the
* report returns a single row of requested metrics for the entire account.
*
* @param string[] $dimensions
*/
public function setDimensions($dimensions)
{
$this->dimensions = $dimensions;
}
/**
* @return string[]
*/
public function getDimensions()
{
return $this->dimensions;
}
/**
* Localization settings of the report.
*
* @param LocalizationSettings $localizationSettings
*/
public function setLocalizationSettings(LocalizationSettings $localizationSettings)
{
$this->localizationSettings = $localizationSettings;
}
/**
* @return LocalizationSettings
*/
public function getLocalizationSettings()
{
return $this->localizationSettings;
}
/**
* Maximum number of report data rows to return. If the value is not set, the
* API returns as many rows as possible, up to 100000. Acceptable values are
* 1-100000, inclusive. Values larger than 100000 return an error.
*
* @param int $maxReportRows
*/
public function setMaxReportRows($maxReportRows)
{
$this->maxReportRows = $maxReportRows;
}
/**
* @return int
*/
public function getMaxReportRows()
{
return $this->maxReportRows;
}
/**
* List of metrics of the report. A report must specify at least one metric.
*
* @param string[] $metrics
*/
public function setMetrics($metrics)
{
$this->metrics = $metrics;
}
/**
* @return string[]
*/
public function getMetrics()
{
return $this->metrics;
}
/**
* Describes the sorting of report rows. The order of the condition in the
* list defines its precedence; the earlier the condition, the higher its
* precedence. If no sort conditions are specified, the row ordering is
* undefined.
*
* @param NetworkReportSpecSortCondition[] $sortConditions
*/
public function setSortConditions($sortConditions)
{
$this->sortConditions = $sortConditions;
}
/**
* @return NetworkReportSpecSortCondition[]
*/
public function getSortConditions()
{
return $this->sortConditions;
}
/**
* A report time zone. Accepts an IANA TZ name values, such as
* "America/Los_Angeles." If no time zone is defined, the account default
* takes effect. Check default value by the get account action. **Warning:**
* The "America/Los_Angeles" is the only supported value at the moment.
*
* @param string $timeZone
*/
public function setTimeZone($timeZone)
{
$this->timeZone = $timeZone;
}
/**
* @return string
*/
public function getTimeZone()
{
return $this->timeZone;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(NetworkReportSpec::class, 'Google_Service_AdMob_NetworkReportSpec');
@@ -0,0 +1,140 @@
<?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\AdMob;
class NetworkReportSpecDimensionFilter extends \Google\Model
{
/**
* Default value for an unset field. Do not use.
*/
public const DIMENSION_DIMENSION_UNSPECIFIED = 'DIMENSION_UNSPECIFIED';
/**
* A date in the YYYYMMDD format (for example, "20210701"). Requests can
* specify at most one time dimension.
*/
public const DIMENSION_DATE = 'DATE';
/**
* A month in the YYYYMM format (for example, "202107"). Requests can specify
* at most one time dimension.
*/
public const DIMENSION_MONTH = 'MONTH';
/**
* The date of the first day of a week in the YYYYMMDD format (for example,
* "20210701"). Requests can specify at most one time dimension.
*/
public const DIMENSION_WEEK = 'WEEK';
/**
* The unique ID of the ad unit (for example, "ca-app-pub-1234/1234"). If
* AD_UNIT dimension is specified, then APP is included automatically.
*/
public const DIMENSION_AD_UNIT = 'AD_UNIT';
/**
* The unique ID of the mobile application (for example, "ca-app-
* pub-1234~1234").
*/
public const DIMENSION_APP = 'APP';
/**
* Type of the ad (for example, "text" or "image"), an ad delivery dimension.
* **Warning:** The dimension is incompatible with
* [AD_REQUESTS](#Metric.ENUM_VALUES.AD_REQUESTS),
* [MATCH_RATE](#Metric.ENUM_VALUES.MATCH_RATE) and
* [IMPRESSION_RPM](#Metric.ENUM_VALUES.IMPRESSION_RPM) metrics.
*/
public const DIMENSION_AD_TYPE = 'AD_TYPE';
/**
* CLDR country code of the place where the ad views/clicks occur (for
* example, "US" or "FR"). This is a geography dimension.
*/
public const DIMENSION_COUNTRY = 'COUNTRY';
/**
* Format of the ad unit (for example, "banner", "native"), an ad delivery
* dimension.
*/
public const DIMENSION_FORMAT = 'FORMAT';
/**
* Mobile OS platform of the app (for example, "Android" or "iOS").
*/
public const DIMENSION_PLATFORM = 'PLATFORM';
/**
* Mobile operating system version, e.g. "iOS 13.5.1".
*/
public const DIMENSION_MOBILE_OS_VERSION = 'MOBILE_OS_VERSION';
/**
* GMA SDK version, e.g. "iOS 7.62.0".
*/
public const DIMENSION_GMA_SDK_VERSION = 'GMA_SDK_VERSION';
/**
* For Android, the app version name can be found in versionName in
* PackageInfo. For iOS, the app version name can be found in
* CFBundleShortVersionString.
*/
public const DIMENSION_APP_VERSION_NAME = 'APP_VERSION_NAME';
/**
* Restriction mode for ads serving (e.g. "Non-personalized ads").
*/
public const DIMENSION_SERVING_RESTRICTION = 'SERVING_RESTRICTION';
/**
* Applies the filter criterion to the specified dimension.
*
* @var string
*/
public $dimension;
protected $matchesAnyType = StringList::class;
protected $matchesAnyDataType = '';
/**
* Applies the filter criterion to the specified dimension.
*
* Accepted values: DIMENSION_UNSPECIFIED, DATE, MONTH, WEEK, AD_UNIT, APP,
* AD_TYPE, COUNTRY, FORMAT, PLATFORM, MOBILE_OS_VERSION, GMA_SDK_VERSION,
* APP_VERSION_NAME, SERVING_RESTRICTION
*
* @param self::DIMENSION_* $dimension
*/
public function setDimension($dimension)
{
$this->dimension = $dimension;
}
/**
* @return self::DIMENSION_*
*/
public function getDimension()
{
return $this->dimension;
}
/**
* Matches a row if its value for the specified dimension is in one of the
* values specified in this condition.
*
* @param StringList $matchesAny
*/
public function setMatchesAny(StringList $matchesAny)
{
$this->matchesAny = $matchesAny;
}
/**
* @return StringList
*/
public function getMatchesAny()
{
return $this->matchesAny;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(NetworkReportSpecDimensionFilter::class, 'Google_Service_AdMob_NetworkReportSpecDimensionFilter');
@@ -0,0 +1,236 @@
<?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\AdMob;
class NetworkReportSpecSortCondition extends \Google\Model
{
/**
* Default value for an unset field. Do not use.
*/
public const DIMENSION_DIMENSION_UNSPECIFIED = 'DIMENSION_UNSPECIFIED';
/**
* A date in the YYYYMMDD format (for example, "20210701"). Requests can
* specify at most one time dimension.
*/
public const DIMENSION_DATE = 'DATE';
/**
* A month in the YYYYMM format (for example, "202107"). Requests can specify
* at most one time dimension.
*/
public const DIMENSION_MONTH = 'MONTH';
/**
* The date of the first day of a week in the YYYYMMDD format (for example,
* "20210701"). Requests can specify at most one time dimension.
*/
public const DIMENSION_WEEK = 'WEEK';
/**
* The unique ID of the ad unit (for example, "ca-app-pub-1234/1234"). If
* AD_UNIT dimension is specified, then APP is included automatically.
*/
public const DIMENSION_AD_UNIT = 'AD_UNIT';
/**
* The unique ID of the mobile application (for example, "ca-app-
* pub-1234~1234").
*/
public const DIMENSION_APP = 'APP';
/**
* Type of the ad (for example, "text" or "image"), an ad delivery dimension.
* **Warning:** The dimension is incompatible with
* [AD_REQUESTS](#Metric.ENUM_VALUES.AD_REQUESTS),
* [MATCH_RATE](#Metric.ENUM_VALUES.MATCH_RATE) and
* [IMPRESSION_RPM](#Metric.ENUM_VALUES.IMPRESSION_RPM) metrics.
*/
public const DIMENSION_AD_TYPE = 'AD_TYPE';
/**
* CLDR country code of the place where the ad views/clicks occur (for
* example, "US" or "FR"). This is a geography dimension.
*/
public const DIMENSION_COUNTRY = 'COUNTRY';
/**
* Format of the ad unit (for example, "banner", "native"), an ad delivery
* dimension.
*/
public const DIMENSION_FORMAT = 'FORMAT';
/**
* Mobile OS platform of the app (for example, "Android" or "iOS").
*/
public const DIMENSION_PLATFORM = 'PLATFORM';
/**
* Mobile operating system version, e.g. "iOS 13.5.1".
*/
public const DIMENSION_MOBILE_OS_VERSION = 'MOBILE_OS_VERSION';
/**
* GMA SDK version, e.g. "iOS 7.62.0".
*/
public const DIMENSION_GMA_SDK_VERSION = 'GMA_SDK_VERSION';
/**
* For Android, the app version name can be found in versionName in
* PackageInfo. For iOS, the app version name can be found in
* CFBundleShortVersionString.
*/
public const DIMENSION_APP_VERSION_NAME = 'APP_VERSION_NAME';
/**
* Restriction mode for ads serving (e.g. "Non-personalized ads").
*/
public const DIMENSION_SERVING_RESTRICTION = 'SERVING_RESTRICTION';
/**
* Default value for an unset field. Do not use.
*/
public const METRIC_METRIC_UNSPECIFIED = 'METRIC_UNSPECIFIED';
/**
* The number of ad requests. The value is an integer. **Warning:** The metric
* is incompatible with [AD_TYPE](#Dimension.ENUM_VALUES.AD_TYPE) dimension.
*/
public const METRIC_AD_REQUESTS = 'AD_REQUESTS';
/**
* The number of times a user clicks an ad. The value is an integer.
*/
public const METRIC_CLICKS = 'CLICKS';
/**
* The estimated earnings of the AdMob publisher. The currency unit (USD, EUR,
* or other) of the earning metrics are determined by the localization setting
* for currency. The amount is in micros. For example, $6.50 would be
* represented as 6500000.
*/
public const METRIC_ESTIMATED_EARNINGS = 'ESTIMATED_EARNINGS';
/**
* The total number of ads shown to users. The value is an integer.
*/
public const METRIC_IMPRESSIONS = 'IMPRESSIONS';
/**
* The ratio of clicks over impressions. The value is a double precision
* (approximate) decimal value.
*/
public const METRIC_IMPRESSION_CTR = 'IMPRESSION_CTR';
/**
* The estimated earnings per thousand ad impressions. The value is in micros.
* For example, $1.03 would be represented as 1030000. Equivalent to eCPM in
* the AdMob UI. **Warning:** The metric is incompatible with
* [AD_TYPE](#Dimension.ENUM_VALUES.AD_TYPE) dimension.
*/
public const METRIC_IMPRESSION_RPM = 'IMPRESSION_RPM';
/**
* The number of times ads are returned in response to a request. The value is
* an integer.
*/
public const METRIC_MATCHED_REQUESTS = 'MATCHED_REQUESTS';
/**
* The ratio of matched ad requests over the total ad requests. The value is a
* double precision (approximate) decimal value. **Warning:** The metric is
* incompatible with [AD_TYPE](#Dimension.ENUM_VALUES.AD_TYPE) dimension.
*/
public const METRIC_MATCH_RATE = 'MATCH_RATE';
/**
* The ratio of ads that are displayed over ads that are returned, defined as
* impressions / matched requests. The value is a double precision
* (approximate) decimal value.
*/
public const METRIC_SHOW_RATE = 'SHOW_RATE';
/**
* Default value for an unset field. Do not use.
*/
public const ORDER_SORT_ORDER_UNSPECIFIED = 'SORT_ORDER_UNSPECIFIED';
/**
* Sort dimension value or metric value in ascending order.
*/
public const ORDER_ASCENDING = 'ASCENDING';
/**
* Sort dimension value or metric value in descending order.
*/
public const ORDER_DESCENDING = 'DESCENDING';
/**
* Sort by the specified dimension.
*
* @var string
*/
public $dimension;
/**
* Sort by the specified metric.
*
* @var string
*/
public $metric;
/**
* Sorting order of the dimension or metric.
*
* @var string
*/
public $order;
/**
* Sort by the specified dimension.
*
* Accepted values: DIMENSION_UNSPECIFIED, DATE, MONTH, WEEK, AD_UNIT, APP,
* AD_TYPE, COUNTRY, FORMAT, PLATFORM, MOBILE_OS_VERSION, GMA_SDK_VERSION,
* APP_VERSION_NAME, SERVING_RESTRICTION
*
* @param self::DIMENSION_* $dimension
*/
public function setDimension($dimension)
{
$this->dimension = $dimension;
}
/**
* @return self::DIMENSION_*
*/
public function getDimension()
{
return $this->dimension;
}
/**
* Sort by the specified metric.
*
* Accepted values: METRIC_UNSPECIFIED, AD_REQUESTS, CLICKS,
* ESTIMATED_EARNINGS, IMPRESSIONS, IMPRESSION_CTR, IMPRESSION_RPM,
* MATCHED_REQUESTS, MATCH_RATE, SHOW_RATE
*
* @param self::METRIC_* $metric
*/
public function setMetric($metric)
{
$this->metric = $metric;
}
/**
* @return self::METRIC_*
*/
public function getMetric()
{
return $this->metric;
}
/**
* Sorting order of the dimension or metric.
*
* Accepted values: SORT_ORDER_UNSPECIFIED, ASCENDING, DESCENDING
*
* @param self::ORDER_* $order
*/
public function setOrder($order)
{
$this->order = $order;
}
/**
* @return self::ORDER_*
*/
public function getOrder()
{
return $this->order;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(NetworkReportSpecSortCondition::class, 'Google_Service_AdMob_NetworkReportSpecSortCondition');
@@ -0,0 +1,124 @@
<?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\AdMob;
class PublisherAccount extends \Google\Model
{
/**
* Currency code of the earning-related metrics, which is the 3-letter code
* defined in ISO 4217. The daily average rate is used for the currency
* conversion.
*
* @var string
*/
public $currencyCode;
/**
* Resource name of this account. Format is accounts/{publisher_id}.
*
* @var string
*/
public $name;
/**
* The unique ID by which this publisher account can be identified in the API
* requests (for example, pub-1234567890).
*
* @var string
*/
public $publisherId;
/**
* The time zone that is used in reports that are generated for this account.
* The value is a time-zone ID as specified by the CLDR project, for example,
* "America/Los_Angeles".
*
* @var string
*/
public $reportingTimeZone;
/**
* Currency code of the earning-related metrics, which is the 3-letter code
* defined in ISO 4217. The daily average rate is used for the currency
* conversion.
*
* @param string $currencyCode
*/
public function setCurrencyCode($currencyCode)
{
$this->currencyCode = $currencyCode;
}
/**
* @return string
*/
public function getCurrencyCode()
{
return $this->currencyCode;
}
/**
* Resource name of this account. Format is accounts/{publisher_id}.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The unique ID by which this publisher account can be identified in the API
* requests (for example, pub-1234567890).
*
* @param string $publisherId
*/
public function setPublisherId($publisherId)
{
$this->publisherId = $publisherId;
}
/**
* @return string
*/
public function getPublisherId()
{
return $this->publisherId;
}
/**
* The time zone that is used in reports that are generated for this account.
* The value is a time-zone ID as specified by the CLDR project, for example,
* "America/Los_Angeles".
*
* @param string $reportingTimeZone
*/
public function setReportingTimeZone($reportingTimeZone)
{
$this->reportingTimeZone = $reportingTimeZone;
}
/**
* @return string
*/
public function getReportingTimeZone()
{
return $this->reportingTimeZone;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PublisherAccount::class, 'Google_Service_AdMob_PublisherAccount');
@@ -0,0 +1,71 @@
<?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\AdMob;
class ReportFooter extends \Google\Collection
{
protected $collection_key = 'warnings';
/**
* Total number of rows that matched the request. Warning: This count does NOT
* always match the number of rows in the response. Do not make that
* assumption when processing the response.
*
* @var string
*/
public $matchingRowCount;
protected $warningsType = ReportWarning::class;
protected $warningsDataType = 'array';
/**
* Total number of rows that matched the request. Warning: This count does NOT
* always match the number of rows in the response. Do not make that
* assumption when processing the response.
*
* @param string $matchingRowCount
*/
public function setMatchingRowCount($matchingRowCount)
{
$this->matchingRowCount = $matchingRowCount;
}
/**
* @return string
*/
public function getMatchingRowCount()
{
return $this->matchingRowCount;
}
/**
* Warnings associated with generation of the report.
*
* @param ReportWarning[] $warnings
*/
public function setWarnings($warnings)
{
$this->warnings = $warnings;
}
/**
* @return ReportWarning[]
*/
public function getWarnings()
{
return $this->warnings;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ReportFooter::class, 'Google_Service_AdMob_ReportFooter');
@@ -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\AdMob;
class ReportHeader extends \Google\Model
{
protected $dateRangeType = DateRange::class;
protected $dateRangeDataType = '';
protected $localizationSettingsType = LocalizationSettings::class;
protected $localizationSettingsDataType = '';
/**
* The report time zone. The value is a time-zone ID as specified by the CLDR
* project, for example, "America/Los_Angeles".
*
* @var string
*/
public $reportingTimeZone;
/**
* The date range for which the report is generated. This is identical to the
* range specified in the report request.
*
* @param DateRange $dateRange
*/
public function setDateRange(DateRange $dateRange)
{
$this->dateRange = $dateRange;
}
/**
* @return DateRange
*/
public function getDateRange()
{
return $this->dateRange;
}
/**
* Localization settings of the report. This is identical to the settings in
* the report request.
*
* @param LocalizationSettings $localizationSettings
*/
public function setLocalizationSettings(LocalizationSettings $localizationSettings)
{
$this->localizationSettings = $localizationSettings;
}
/**
* @return LocalizationSettings
*/
public function getLocalizationSettings()
{
return $this->localizationSettings;
}
/**
* The report time zone. The value is a time-zone ID as specified by the CLDR
* project, for example, "America/Los_Angeles".
*
* @param string $reportingTimeZone
*/
public function setReportingTimeZone($reportingTimeZone)
{
$this->reportingTimeZone = $reportingTimeZone;
}
/**
* @return string
*/
public function getReportingTimeZone()
{
return $this->reportingTimeZone;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ReportHeader::class, 'Google_Service_AdMob_ReportHeader');
@@ -0,0 +1,63 @@
<?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\AdMob;
class ReportRow extends \Google\Model
{
protected $dimensionValuesType = ReportRowDimensionValue::class;
protected $dimensionValuesDataType = 'map';
protected $metricValuesType = ReportRowMetricValue::class;
protected $metricValuesDataType = 'map';
/**
* Map of dimension values in a row, with keys as enum name of the dimensions.
*
* @param ReportRowDimensionValue[] $dimensionValues
*/
public function setDimensionValues($dimensionValues)
{
$this->dimensionValues = $dimensionValues;
}
/**
* @return ReportRowDimensionValue[]
*/
public function getDimensionValues()
{
return $this->dimensionValues;
}
/**
* Map of metric values in a row, with keys as enum name of the metrics. If a
* metric being requested has no value returned, the map will not include it.
*
* @param ReportRowMetricValue[] $metricValues
*/
public function setMetricValues($metricValues)
{
$this->metricValues = $metricValues;
}
/**
* @return ReportRowMetricValue[]
*/
public function getMetricValues()
{
return $this->metricValues;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ReportRow::class, 'Google_Service_AdMob_ReportRow');
@@ -0,0 +1,74 @@
<?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\AdMob;
class ReportRowDimensionValue extends \Google\Model
{
/**
* The localized string representation of the value. If unspecified, the
* display label should be derived from the value.
*
* @var string
*/
public $displayLabel;
/**
* Dimension value in the format specified in the report's spec Dimension
* enum.
*
* @var string
*/
public $value;
/**
* The localized string representation of the value. If unspecified, the
* display label should be derived from the value.
*
* @param string $displayLabel
*/
public function setDisplayLabel($displayLabel)
{
$this->displayLabel = $displayLabel;
}
/**
* @return string
*/
public function getDisplayLabel()
{
return $this->displayLabel;
}
/**
* Dimension value in the format specified in the report's spec Dimension
* enum.
*
* @param string $value
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return string
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ReportRowDimensionValue::class, 'Google_Service_AdMob_ReportRowDimensionValue');
@@ -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\AdMob;
class ReportRowMetricValue extends \Google\Model
{
/**
* Double precision (approximate) decimal values. Rates are from 0 to 1.
*
* @var
*/
public $doubleValue;
/**
* Metric integer value.
*
* @var string
*/
public $integerValue;
/**
* Amount in micros. One million is equivalent to one unit. Currency value is
* in the unit (USD, EUR or other) specified by the request. For example,
* $6.50 whould be represented as 6500000 micros.
*
* @var string
*/
public $microsValue;
public function setDoubleValue($doubleValue)
{
$this->doubleValue = $doubleValue;
}
public function getDoubleValue()
{
return $this->doubleValue;
}
/**
* Metric integer value.
*
* @param string $integerValue
*/
public function setIntegerValue($integerValue)
{
$this->integerValue = $integerValue;
}
/**
* @return string
*/
public function getIntegerValue()
{
return $this->integerValue;
}
/**
* Amount in micros. One million is equivalent to one unit. Currency value is
* in the unit (USD, EUR or other) specified by the request. For example,
* $6.50 whould be represented as 6500000 micros.
*
* @param string $microsValue
*/
public function setMicrosValue($microsValue)
{
$this->microsValue = $microsValue;
}
/**
* @return string
*/
public function getMicrosValue()
{
return $this->microsValue;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ReportRowMetricValue::class, 'Google_Service_AdMob_ReportRowMetricValue');
@@ -0,0 +1,102 @@
<?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\AdMob;
class ReportWarning extends \Google\Model
{
/**
* Default value for an unset field. Do not use.
*/
public const TYPE_TYPE_UNSPECIFIED = 'TYPE_UNSPECIFIED';
/**
* Some data in this report is aggregated based on a time zone different from
* the requested time zone. This could happen if a local time-zone report has
* the start time before the last time this time zone changed. The description
* field will contain the date of the last time zone change.
*/
public const TYPE_DATA_BEFORE_ACCOUNT_TIMEZONE_CHANGE = 'DATA_BEFORE_ACCOUNT_TIMEZONE_CHANGE';
/**
* There is an unusual delay in processing the source data for the requested
* date range. The report results might be less up to date than usual. AdMob
* is aware of the issue and is actively working to resolve it.
*/
public const TYPE_DATA_DELAYED = 'DATA_DELAYED';
/**
* Warnings that are exposed without a specific type. Useful when new warning
* types are added but the API is not changed yet.
*/
public const TYPE_OTHER = 'OTHER';
/**
* The currency being requested is not the account currency. The earning
* metrics will be based on the requested currency, and thus not a good
* estimation of the final payment anymore, due to the currency rate
* fluctuation.
*/
public const TYPE_REPORT_CURRENCY_NOT_ACCOUNT_CURRENCY = 'REPORT_CURRENCY_NOT_ACCOUNT_CURRENCY';
/**
* Describes the details of the warning message, in English.
*
* @var string
*/
public $description;
/**
* Type of the warning.
*
* @var string
*/
public $type;
/**
* Describes the details of the warning message, in English.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Type of the warning.
*
* Accepted values: TYPE_UNSPECIFIED, DATA_BEFORE_ACCOUNT_TIMEZONE_CHANGE,
* DATA_DELAYED, OTHER, REPORT_CURRENCY_NOT_ACCOUNT_CURRENCY
*
* @param self::TYPE_* $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return self::TYPE_*
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ReportWarning::class, 'Google_Service_AdMob_ReportWarning');
@@ -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\AdMob\Resource;
use Google\Service\AdMob\ListPublisherAccountsResponse;
use Google\Service\AdMob\PublisherAccount;
/**
* The "accounts" collection of methods.
* Typical usage is:
* <code>
* $admobService = new Google\Service\AdMob(...);
* $accounts = $admobService->accounts;
* </code>
*/
class Accounts extends \Google\Service\Resource
{
/**
* Gets information about the specified AdMob publisher account. (accounts.get)
*
* @param string $name Resource name of the publisher account to retrieve.
* Example: accounts/pub-9876543210987654
* @param array $optParams Optional parameters.
* @return PublisherAccount
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], PublisherAccount::class);
}
/**
* Lists the AdMob publisher account that was most recently signed in to from
* the AdMob UI. For more information, see
* https://support.google.com/admob/answer/10243672. (accounts.listAccounts)
*
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Maximum number of accounts to return.
* @opt_param string pageToken The value returned by the last
* `ListPublisherAccountsResponse`; indicates that this is a continuation of a
* prior `ListPublisherAccounts` call, and that the system should return the
* next page of data.
* @return ListPublisherAccountsResponse
* @throws \Google\Service\Exception
*/
public function listAccounts($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListPublisherAccountsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Accounts::class, 'Google_Service_AdMob_Resource_Accounts');
@@ -0,0 +1,58 @@
<?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\AdMob\Resource;
use Google\Service\AdMob\ListAdUnitsResponse;
/**
* The "adUnits" collection of methods.
* Typical usage is:
* <code>
* $admobService = new Google\Service\AdMob(...);
* $adUnits = $admobService->accounts_adUnits;
* </code>
*/
class AccountsAdUnits extends \Google\Service\Resource
{
/**
* List the ad units under the specified AdMob account.
* (adUnits.listAccountsAdUnits)
*
* @param string $parent Required. Resource name of the account to list ad units
* for. Example: accounts/pub-9876543210987654
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The maximum number of ad units to return. If
* unspecified or 0, at most 10,000 ad units will be returned. The maximum value
* is 20,000; values above 20,000 will be coerced to 20,000.
* @opt_param string pageToken The value returned by the last
* `ListAdUnitsResponse`; indicates that this is a continuation of a prior
* `ListAdUnits` call, and that the system should return the next page of data.
* @return ListAdUnitsResponse
* @throws \Google\Service\Exception
*/
public function listAccountsAdUnits($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListAdUnitsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccountsAdUnits::class, 'Google_Service_AdMob_Resource_AccountsAdUnits');
@@ -0,0 +1,57 @@
<?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\AdMob\Resource;
use Google\Service\AdMob\ListAppsResponse;
/**
* The "apps" collection of methods.
* Typical usage is:
* <code>
* $admobService = new Google\Service\AdMob(...);
* $apps = $admobService->accounts_apps;
* </code>
*/
class AccountsApps extends \Google\Service\Resource
{
/**
* List the apps under the specified AdMob account. (apps.listAccountsApps)
*
* @param string $parent Required. Resource name of the account to list apps
* for. Example: accounts/pub-9876543210987654
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The maximum number of apps to return. If unspecified
* or 0, at most 10,000 apps will be returned. The maximum value is 20,000;
* values above 20,000 will be coerced to 20,000.
* @opt_param string pageToken The value returned by the last
* `ListAppsResponse`; indicates that this is a continuation of a prior
* `ListApps` call, and that the system should return the next page of data.
* @return ListAppsResponse
* @throws \Google\Service\Exception
*/
public function listAccountsApps($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListAppsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccountsApps::class, 'Google_Service_AdMob_Resource_AccountsApps');
@@ -0,0 +1,54 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AdMob\Resource;
use Google\Service\AdMob\GenerateMediationReportRequest;
use Google\Service\AdMob\GenerateMediationReportResponse;
/**
* The "mediationReport" collection of methods.
* Typical usage is:
* <code>
* $admobService = new Google\Service\AdMob(...);
* $mediationReport = $admobService->accounts_mediationReport;
* </code>
*/
class AccountsMediationReport extends \Google\Service\Resource
{
/**
* Generates an AdMob Mediation report based on the provided report
* specification. Returns result of a server-side streaming RPC. The result is
* returned in a sequence of responses. (mediationReport.generate)
*
* @param string $parent Resource name of the account to generate the report
* for. Example: accounts/pub-9876543210987654
* @param GenerateMediationReportRequest $postBody
* @param array $optParams Optional parameters.
* @return GenerateMediationReportResponse
* @throws \Google\Service\Exception
*/
public function generate($parent, GenerateMediationReportRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('generate', [$params], GenerateMediationReportResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccountsMediationReport::class, 'Google_Service_AdMob_Resource_AccountsMediationReport');
@@ -0,0 +1,54 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AdMob\Resource;
use Google\Service\AdMob\GenerateNetworkReportRequest;
use Google\Service\AdMob\GenerateNetworkReportResponse;
/**
* The "networkReport" collection of methods.
* Typical usage is:
* <code>
* $admobService = new Google\Service\AdMob(...);
* $networkReport = $admobService->accounts_networkReport;
* </code>
*/
class AccountsNetworkReport extends \Google\Service\Resource
{
/**
* Generates an AdMob Network report based on the provided report specification.
* Returns result of a server-side streaming RPC. The result is returned in a
* sequence of responses. (networkReport.generate)
*
* @param string $parent Resource name of the account to generate the report
* for. Example: accounts/pub-9876543210987654
* @param GenerateNetworkReportRequest $postBody
* @param array $optParams Optional parameters.
* @return GenerateNetworkReportResponse
* @throws \Google\Service\Exception
*/
public function generate($parent, GenerateNetworkReportRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('generate', [$params], GenerateNetworkReportResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccountsNetworkReport::class, 'Google_Service_AdMob_Resource_AccountsNetworkReport');
@@ -0,0 +1,49 @@
<?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\AdMob;
class StringList extends \Google\Collection
{
protected $collection_key = 'values';
/**
* The string values.
*
* @var string[]
*/
public $values;
/**
* The string values.
*
* @param string[] $values
*/
public function setValues($values)
{
$this->values = $values;
}
/**
* @return string[]
*/
public function getValues()
{
return $this->values;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(StringList::class, 'Google_Service_AdMob_StringList');