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,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\AdExchangeBuyerII;
class AbsoluteDateRange extends \Google\Model
{
protected $endDateType = Date::class;
protected $endDateDataType = '';
protected $startDateType = Date::class;
protected $startDateDataType = '';
/**
* The end date of the range (inclusive). Must be within the 30 days leading
* up to current date, and must be equal to or after start_date.
*
* @param Date $endDate
*/
public function setEndDate(Date $endDate)
{
$this->endDate = $endDate;
}
/**
* @return Date
*/
public function getEndDate()
{
return $this->endDate;
}
/**
* The start date of the range (inclusive). Must be within the 30 days leading
* up to current date, and must be equal to or before 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(AbsoluteDateRange::class, 'Google_Service_AdExchangeBuyerII_AbsoluteDateRange');
@@ -0,0 +1,48 @@
<?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\AdExchangeBuyerII;
class AcceptProposalRequest extends \Google\Model
{
/**
* The last known client revision number of the proposal.
*
* @var string
*/
public $proposalRevision;
/**
* The last known client revision number of the proposal.
*
* @param string $proposalRevision
*/
public function setProposalRevision($proposalRevision)
{
$this->proposalRevision = $proposalRevision;
}
/**
* @return string
*/
public function getProposalRevision()
{
return $this->proposalRevision;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AcceptProposalRequest::class, 'Google_Service_AdExchangeBuyerII_AcceptProposalRequest');
@@ -0,0 +1,119 @@
<?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\AdExchangeBuyerII;
class AdSize extends \Google\Model
{
/**
* A placeholder for an undefined size type.
*/
public const SIZE_TYPE_SIZE_TYPE_UNSPECIFIED = 'SIZE_TYPE_UNSPECIFIED';
/**
* Ad slot with size specified by height and width in pixels.
*/
public const SIZE_TYPE_PIXEL = 'PIXEL';
/**
* Special size to describe an interstitial ad slot.
*/
public const SIZE_TYPE_INTERSTITIAL = 'INTERSTITIAL';
/**
* Native (mobile) ads rendered by the publisher.
*/
public const SIZE_TYPE_NATIVE = 'NATIVE';
/**
* Fluid size (for example, responsive size) can be resized automatically with
* the change of outside environment.
*/
public const SIZE_TYPE_FLUID = 'FLUID';
/**
* The height of the ad slot in pixels. This field will be present only when
* size type is `PIXEL`.
*
* @var string
*/
public $height;
/**
* The size type of the ad slot.
*
* @var string
*/
public $sizeType;
/**
* The width of the ad slot in pixels. This field will be present only when
* size type is `PIXEL`.
*
* @var string
*/
public $width;
/**
* The height of the ad slot in pixels. This field will be present only when
* size type is `PIXEL`.
*
* @param string $height
*/
public function setHeight($height)
{
$this->height = $height;
}
/**
* @return string
*/
public function getHeight()
{
return $this->height;
}
/**
* The size type of the ad slot.
*
* Accepted values: SIZE_TYPE_UNSPECIFIED, PIXEL, INTERSTITIAL, NATIVE, FLUID
*
* @param self::SIZE_TYPE_* $sizeType
*/
public function setSizeType($sizeType)
{
$this->sizeType = $sizeType;
}
/**
* @return self::SIZE_TYPE_*
*/
public function getSizeType()
{
return $this->sizeType;
}
/**
* The width of the ad slot in pixels. This field will be present only when
* size type is `PIXEL`.
*
* @param string $width
*/
public function setWidth($width)
{
$this->width = $width;
}
/**
* @return string
*/
public function getWidth()
{
return $this->width;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AdSize::class, 'Google_Service_AdExchangeBuyerII_AdSize');
@@ -0,0 +1,101 @@
<?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\AdExchangeBuyerII;
class AdTechnologyProviders extends \Google\Collection
{
protected $collection_key = 'detectedProviderIds';
/**
* The detected ad technology provider IDs for this creative. See
* https://storage.googleapis.com/adx-rtb-dictionaries/providers.csv for
* mapping of provider ID to provided name, a privacy policy URL, and a list
* of domains which can be attributed to the provider. If the creative
* contains provider IDs that are outside of those listed in the
* `BidRequest.adslot.consented_providers_settings.consented_providers` field
* on the (Google bid protocol)[https://developers.google.com/authorized-
* buyers/rtb/downloads/realtime-bidding-proto] and the
* `BidRequest.user.ext.consented_providers_settings.consented_providers`
* field on the (OpenRTB protocol)[https://developers.google.com/authorized-
* buyers/rtb/downloads/openrtb-adx-proto], and a bid is submitted with that
* creative for an impression that will serve to an EEA user, the bid will be
* filtered before the auction.
*
* @var string[]
*/
public $detectedProviderIds;
/**
* Whether the creative contains an unidentified ad technology provider. If
* true for a given creative, any bid submitted with that creative for an
* impression that will serve to an EEA user will be filtered before the
* auction.
*
* @var bool
*/
public $hasUnidentifiedProvider;
/**
* The detected ad technology provider IDs for this creative. See
* https://storage.googleapis.com/adx-rtb-dictionaries/providers.csv for
* mapping of provider ID to provided name, a privacy policy URL, and a list
* of domains which can be attributed to the provider. If the creative
* contains provider IDs that are outside of those listed in the
* `BidRequest.adslot.consented_providers_settings.consented_providers` field
* on the (Google bid protocol)[https://developers.google.com/authorized-
* buyers/rtb/downloads/realtime-bidding-proto] and the
* `BidRequest.user.ext.consented_providers_settings.consented_providers`
* field on the (OpenRTB protocol)[https://developers.google.com/authorized-
* buyers/rtb/downloads/openrtb-adx-proto], and a bid is submitted with that
* creative for an impression that will serve to an EEA user, the bid will be
* filtered before the auction.
*
* @param string[] $detectedProviderIds
*/
public function setDetectedProviderIds($detectedProviderIds)
{
$this->detectedProviderIds = $detectedProviderIds;
}
/**
* @return string[]
*/
public function getDetectedProviderIds()
{
return $this->detectedProviderIds;
}
/**
* Whether the creative contains an unidentified ad technology provider. If
* true for a given creative, any bid submitted with that creative for an
* impression that will serve to an EEA user will be filtered before the
* auction.
*
* @param bool $hasUnidentifiedProvider
*/
public function setHasUnidentifiedProvider($hasUnidentifiedProvider)
{
$this->hasUnidentifiedProvider = $hasUnidentifiedProvider;
}
/**
* @return bool
*/
public function getHasUnidentifiedProvider()
{
return $this->hasUnidentifiedProvider;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AdTechnologyProviders::class, 'Google_Service_AdExchangeBuyerII_AdTechnologyProviders');
@@ -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\AdExchangeBuyerII;
class AddDealAssociationRequest extends \Google\Model
{
protected $associationType = CreativeDealAssociation::class;
protected $associationDataType = '';
/**
* The association between a creative and a deal that should be added.
*
* @param CreativeDealAssociation $association
*/
public function setAssociation(CreativeDealAssociation $association)
{
$this->association = $association;
}
/**
* @return CreativeDealAssociation
*/
public function getAssociation()
{
return $this->association;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AddDealAssociationRequest::class, 'Google_Service_AdExchangeBuyerII_AddDealAssociationRequest');
@@ -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\AdExchangeBuyerII;
class AddNoteRequest extends \Google\Model
{
protected $noteType = Note::class;
protected $noteDataType = '';
/**
* Details of the note to add.
*
* @param Note $note
*/
public function setNote(Note $note)
{
$this->note = $note;
}
/**
* @return Note
*/
public function getNote()
{
return $this->note;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AddNoteRequest::class, 'Google_Service_AdExchangeBuyerII_AddNoteRequest');
@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AdExchangeBuyerII;
class Adexchangebuyer2Empty extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Adexchangebuyer2Empty::class, 'Google_Service_AdExchangeBuyerII_Adexchangebuyer2Empty');
@@ -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\AdExchangeBuyerII;
class AppContext extends \Google\Collection
{
protected $collection_key = 'appTypes';
/**
* The app types this restriction applies to.
*
* @var string[]
*/
public $appTypes;
/**
* The app types this restriction applies to.
*
* @param string[] $appTypes
*/
public function setAppTypes($appTypes)
{
$this->appTypes = $appTypes;
}
/**
* @return string[]
*/
public function getAppTypes()
{
return $this->appTypes;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AppContext::class, 'Google_Service_AdExchangeBuyerII_AppContext');
@@ -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\AdExchangeBuyerII;
class AuctionContext extends \Google\Collection
{
protected $collection_key = 'auctionTypes';
/**
* The auction types this restriction applies to.
*
* @var string[]
*/
public $auctionTypes;
/**
* The auction types this restriction applies to.
*
* @param string[] $auctionTypes
*/
public function setAuctionTypes($auctionTypes)
{
$this->auctionTypes = $auctionTypes;
}
/**
* @return string[]
*/
public function getAuctionTypes()
{
return $this->auctionTypes;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AuctionContext::class, 'Google_Service_AdExchangeBuyerII_AuctionContext');
@@ -0,0 +1,174 @@
<?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\AdExchangeBuyerII;
class BidMetricsRow extends \Google\Model
{
protected $bidsType = MetricValue::class;
protected $bidsDataType = '';
protected $bidsInAuctionType = MetricValue::class;
protected $bidsInAuctionDataType = '';
protected $billedImpressionsType = MetricValue::class;
protected $billedImpressionsDataType = '';
protected $impressionsWonType = MetricValue::class;
protected $impressionsWonDataType = '';
protected $measurableImpressionsType = MetricValue::class;
protected $measurableImpressionsDataType = '';
protected $reachedQueriesType = MetricValue::class;
protected $reachedQueriesDataType = '';
protected $rowDimensionsType = RowDimensions::class;
protected $rowDimensionsDataType = '';
protected $viewableImpressionsType = MetricValue::class;
protected $viewableImpressionsDataType = '';
/**
* The number of bids that Ad Exchange received from the buyer.
*
* @param MetricValue $bids
*/
public function setBids(MetricValue $bids)
{
$this->bids = $bids;
}
/**
* @return MetricValue
*/
public function getBids()
{
return $this->bids;
}
/**
* The number of bids that were permitted to compete in the auction.
*
* @param MetricValue $bidsInAuction
*/
public function setBidsInAuction(MetricValue $bidsInAuction)
{
$this->bidsInAuction = $bidsInAuction;
}
/**
* @return MetricValue
*/
public function getBidsInAuction()
{
return $this->bidsInAuction;
}
/**
* The number of bids for which the buyer was billed. Also called valid
* impressions as invalid impressions are not billed.
*
* @param MetricValue $billedImpressions
*/
public function setBilledImpressions(MetricValue $billedImpressions)
{
$this->billedImpressions = $billedImpressions;
}
/**
* @return MetricValue
*/
public function getBilledImpressions()
{
return $this->billedImpressions;
}
/**
* The number of bids that won the auction.
*
* @param MetricValue $impressionsWon
*/
public function setImpressionsWon(MetricValue $impressionsWon)
{
$this->impressionsWon = $impressionsWon;
}
/**
* @return MetricValue
*/
public function getImpressionsWon()
{
return $this->impressionsWon;
}
/**
* The number of bids for which the corresponding impression was measurable
* for viewability (as defined by Active View).
*
* @param MetricValue $measurableImpressions
*/
public function setMeasurableImpressions(MetricValue $measurableImpressions)
{
$this->measurableImpressions = $measurableImpressions;
}
/**
* @return MetricValue
*/
public function getMeasurableImpressions()
{
return $this->measurableImpressions;
}
/**
* The number of bids that won the auction and also won the mediation
* waterfall (if any).
*
* @param MetricValue $reachedQueries
*/
public function setReachedQueries(MetricValue $reachedQueries)
{
$this->reachedQueries = $reachedQueries;
}
/**
* @return MetricValue
*/
public function getReachedQueries()
{
return $this->reachedQueries;
}
/**
* The values of all dimensions associated with metric values in this row.
*
* @param RowDimensions $rowDimensions
*/
public function setRowDimensions(RowDimensions $rowDimensions)
{
$this->rowDimensions = $rowDimensions;
}
/**
* @return RowDimensions
*/
public function getRowDimensions()
{
return $this->rowDimensions;
}
/**
* The number of bids for which the corresponding impression was viewable (as
* defined by Active View).
*
* @param MetricValue $viewableImpressions
*/
public function setViewableImpressions(MetricValue $viewableImpressions)
{
$this->viewableImpressions = $viewableImpressions;
}
/**
* @return MetricValue
*/
public function getViewableImpressions()
{
return $this->viewableImpressions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BidMetricsRow::class, 'Google_Service_AdExchangeBuyerII_BidMetricsRow');
@@ -0,0 +1,114 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AdExchangeBuyerII;
class BidResponseWithoutBidsStatusRow extends \Google\Model
{
/**
* A placeholder for an undefined status. This value will never be returned in
* responses.
*/
public const STATUS_STATUS_UNSPECIFIED = 'STATUS_UNSPECIFIED';
/**
* The response had no bids.
*/
public const STATUS_RESPONSES_WITHOUT_BIDS = 'RESPONSES_WITHOUT_BIDS';
/**
* The response had no bids for the specified account, though it may have
* included bids on behalf of other accounts. Applies if: 1. Request is on
* behalf of a bidder and an account filter is present. 2. Request is on
* behalf of a child seat.
*/
public const STATUS_RESPONSES_WITHOUT_BIDS_FOR_ACCOUNT = 'RESPONSES_WITHOUT_BIDS_FOR_ACCOUNT';
/**
* The response had no bids for the specified deal, though it may have
* included bids on other deals on behalf of the account to which the deal
* belongs. If request is on behalf of a bidder and an account filter is not
* present, this also includes responses that have bids on behalf of accounts
* other than the account to which the deal belongs.
*/
public const STATUS_RESPONSES_WITHOUT_BIDS_FOR_DEAL = 'RESPONSES_WITHOUT_BIDS_FOR_DEAL';
protected $impressionCountType = MetricValue::class;
protected $impressionCountDataType = '';
protected $rowDimensionsType = RowDimensions::class;
protected $rowDimensionsDataType = '';
/**
* The status specifying why the bid responses were considered to have no
* applicable bids.
*
* @var string
*/
public $status;
/**
* The number of impressions for which there was a bid response with the
* specified status.
*
* @param MetricValue $impressionCount
*/
public function setImpressionCount(MetricValue $impressionCount)
{
$this->impressionCount = $impressionCount;
}
/**
* @return MetricValue
*/
public function getImpressionCount()
{
return $this->impressionCount;
}
/**
* The values of all dimensions associated with metric values in this row.
*
* @param RowDimensions $rowDimensions
*/
public function setRowDimensions(RowDimensions $rowDimensions)
{
$this->rowDimensions = $rowDimensions;
}
/**
* @return RowDimensions
*/
public function getRowDimensions()
{
return $this->rowDimensions;
}
/**
* The status specifying why the bid responses were considered to have no
* applicable bids.
*
* Accepted values: STATUS_UNSPECIFIED, RESPONSES_WITHOUT_BIDS,
* RESPONSES_WITHOUT_BIDS_FOR_ACCOUNT, RESPONSES_WITHOUT_BIDS_FOR_DEAL
*
* @param self::STATUS_* $status
*/
public function setStatus($status)
{
$this->status = $status;
}
/**
* @return self::STATUS_*
*/
public function getStatus()
{
return $this->status;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BidResponseWithoutBidsStatusRow::class, 'Google_Service_AdExchangeBuyerII_BidResponseWithoutBidsStatusRow');
@@ -0,0 +1,48 @@
<?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\AdExchangeBuyerII;
class Buyer extends \Google\Model
{
/**
* Authorized Buyers account ID of the buyer.
*
* @var string
*/
public $accountId;
/**
* Authorized Buyers account ID of the buyer.
*
* @param string $accountId
*/
public function setAccountId($accountId)
{
$this->accountId = $accountId;
}
/**
* @return string
*/
public function getAccountId()
{
return $this->accountId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Buyer::class, 'Google_Service_AdExchangeBuyerII_Buyer');
@@ -0,0 +1,89 @@
<?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\AdExchangeBuyerII;
class CalloutStatusRow extends \Google\Model
{
/**
* The ID of the callout status. See [callout-status-
* codes](https://developers.google.com/authorized-
* buyers/rtb/downloads/callout-status-codes).
*
* @var int
*/
public $calloutStatusId;
protected $impressionCountType = MetricValue::class;
protected $impressionCountDataType = '';
protected $rowDimensionsType = RowDimensions::class;
protected $rowDimensionsDataType = '';
/**
* The ID of the callout status. See [callout-status-
* codes](https://developers.google.com/authorized-
* buyers/rtb/downloads/callout-status-codes).
*
* @param int $calloutStatusId
*/
public function setCalloutStatusId($calloutStatusId)
{
$this->calloutStatusId = $calloutStatusId;
}
/**
* @return int
*/
public function getCalloutStatusId()
{
return $this->calloutStatusId;
}
/**
* The number of impressions for which there was a bid request or bid response
* with the specified callout status.
*
* @param MetricValue $impressionCount
*/
public function setImpressionCount(MetricValue $impressionCount)
{
$this->impressionCount = $impressionCount;
}
/**
* @return MetricValue
*/
public function getImpressionCount()
{
return $this->impressionCount;
}
/**
* The values of all dimensions associated with metric values in this row.
*
* @param RowDimensions $rowDimensions
*/
public function setRowDimensions(RowDimensions $rowDimensions)
{
$this->rowDimensions = $rowDimensions;
}
/**
* @return RowDimensions
*/
public function getRowDimensions()
{
return $this->rowDimensions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CalloutStatusRow::class, 'Google_Service_AdExchangeBuyerII_CalloutStatusRow');
@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AdExchangeBuyerII;
class CancelNegotiationRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CancelNegotiationRequest::class, 'Google_Service_AdExchangeBuyerII_CancelNegotiationRequest');
@@ -0,0 +1,340 @@
<?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\AdExchangeBuyerII;
class Client extends \Google\Model
{
/**
* A placeholder for an undefined client entity type. Should not be used.
*/
public const ENTITY_TYPE_ENTITY_TYPE_UNSPECIFIED = 'ENTITY_TYPE_UNSPECIFIED';
/**
* An advertiser.
*/
public const ENTITY_TYPE_ADVERTISER = 'ADVERTISER';
/**
* A brand.
*/
public const ENTITY_TYPE_BRAND = 'BRAND';
/**
* An advertising agency.
*/
public const ENTITY_TYPE_AGENCY = 'AGENCY';
/**
* An explicit value for a client that was not yet classified as any
* particular entity.
*/
public const ENTITY_TYPE_ENTITY_TYPE_UNCLASSIFIED = 'ENTITY_TYPE_UNCLASSIFIED';
/**
* A placeholder for an undefined client role.
*/
public const ROLE_CLIENT_ROLE_UNSPECIFIED = 'CLIENT_ROLE_UNSPECIFIED';
/**
* Users associated with this client can see publisher deal offers in the
* Marketplace. They can neither negotiate proposals nor approve deals. If
* this client is visible to publishers, they can send deal proposals to this
* client.
*/
public const ROLE_CLIENT_DEAL_VIEWER = 'CLIENT_DEAL_VIEWER';
/**
* Users associated with this client can respond to deal proposals sent to
* them by publishers. They can also initiate deal proposals of their own.
*/
public const ROLE_CLIENT_DEAL_NEGOTIATOR = 'CLIENT_DEAL_NEGOTIATOR';
/**
* Users associated with this client can approve eligible deals on your
* behalf. Some deals may still explicitly require publisher finalization. If
* this role is not selected, the sponsor buyer will need to manually approve
* each of their deals.
*/
public const ROLE_CLIENT_DEAL_APPROVER = 'CLIENT_DEAL_APPROVER';
/**
* A placeholder for an undefined client status.
*/
public const STATUS_CLIENT_STATUS_UNSPECIFIED = 'CLIENT_STATUS_UNSPECIFIED';
/**
* A client that is currently disabled.
*/
public const STATUS_DISABLED = 'DISABLED';
/**
* A client that is currently active.
*/
public const STATUS_ACTIVE = 'ACTIVE';
/**
* The globally-unique numerical ID of the client. The value of this field is
* ignored in create and update operations.
*
* @var string
*/
public $clientAccountId;
/**
* Name used to represent this client to publishers. You may have multiple
* clients that map to the same entity, but for each client the combination of
* `clientName` and entity must be unique. You can specify this field as
* empty. Maximum length of 255 characters is allowed.
*
* @var string
*/
public $clientName;
/**
* Numerical identifier of the client entity. The entity can be an advertiser,
* a brand, or an agency. This identifier is unique among all the entities
* with the same type. The value of this field is ignored if the entity type
* is not provided. A list of all known advertisers with their identifiers is
* available in the [advertisers.txt](https://storage.googleapis.com/adx-rtb-
* dictionaries/advertisers.txt) file. A list of all known brands with their
* identifiers is available in the
* [brands.txt](https://storage.googleapis.com/adx-rtb-
* dictionaries/brands.txt) file. A list of all known agencies with their
* identifiers is available in the
* [agencies.txt](https://storage.googleapis.com/adx-rtb-
* dictionaries/agencies.txt) file.
*
* @var string
*/
public $entityId;
/**
* The name of the entity. This field is automatically fetched based on the
* type and ID. The value of this field is ignored in create and update
* operations.
*
* @var string
*/
public $entityName;
/**
* An optional field for specifying the type of the client entity:
* `ADVERTISER`, `BRAND`, or `AGENCY`.
*
* @var string
*/
public $entityType;
/**
* Optional arbitrary unique identifier of this client buyer from the
* standpoint of its Ad Exchange sponsor buyer. This field can be used to
* associate a client buyer with the identifier in the namespace of its
* sponsor buyer, lookup client buyers by that identifier and verify whether
* an Ad Exchange counterpart of a given client buyer already exists. If
* present, must be unique among all the client buyers for its Ad Exchange
* sponsor buyer.
*
* @var string
*/
public $partnerClientId;
/**
* The role which is assigned to the client buyer. Each role implies a set of
* permissions granted to the client. Must be one of `CLIENT_DEAL_VIEWER`,
* `CLIENT_DEAL_NEGOTIATOR` or `CLIENT_DEAL_APPROVER`.
*
* @var string
*/
public $role;
/**
* The status of the client buyer.
*
* @var string
*/
public $status;
/**
* Whether the client buyer will be visible to sellers.
*
* @var bool
*/
public $visibleToSeller;
/**
* The globally-unique numerical ID of the client. The value of this field is
* ignored in create and update operations.
*
* @param string $clientAccountId
*/
public function setClientAccountId($clientAccountId)
{
$this->clientAccountId = $clientAccountId;
}
/**
* @return string
*/
public function getClientAccountId()
{
return $this->clientAccountId;
}
/**
* Name used to represent this client to publishers. You may have multiple
* clients that map to the same entity, but for each client the combination of
* `clientName` and entity must be unique. You can specify this field as
* empty. Maximum length of 255 characters is allowed.
*
* @param string $clientName
*/
public function setClientName($clientName)
{
$this->clientName = $clientName;
}
/**
* @return string
*/
public function getClientName()
{
return $this->clientName;
}
/**
* Numerical identifier of the client entity. The entity can be an advertiser,
* a brand, or an agency. This identifier is unique among all the entities
* with the same type. The value of this field is ignored if the entity type
* is not provided. A list of all known advertisers with their identifiers is
* available in the [advertisers.txt](https://storage.googleapis.com/adx-rtb-
* dictionaries/advertisers.txt) file. A list of all known brands with their
* identifiers is available in the
* [brands.txt](https://storage.googleapis.com/adx-rtb-
* dictionaries/brands.txt) file. A list of all known agencies with their
* identifiers is available in the
* [agencies.txt](https://storage.googleapis.com/adx-rtb-
* dictionaries/agencies.txt) file.
*
* @param string $entityId
*/
public function setEntityId($entityId)
{
$this->entityId = $entityId;
}
/**
* @return string
*/
public function getEntityId()
{
return $this->entityId;
}
/**
* The name of the entity. This field is automatically fetched based on the
* type and ID. The value of this field is ignored in create and update
* operations.
*
* @param string $entityName
*/
public function setEntityName($entityName)
{
$this->entityName = $entityName;
}
/**
* @return string
*/
public function getEntityName()
{
return $this->entityName;
}
/**
* An optional field for specifying the type of the client entity:
* `ADVERTISER`, `BRAND`, or `AGENCY`.
*
* Accepted values: ENTITY_TYPE_UNSPECIFIED, ADVERTISER, BRAND, AGENCY,
* ENTITY_TYPE_UNCLASSIFIED
*
* @param self::ENTITY_TYPE_* $entityType
*/
public function setEntityType($entityType)
{
$this->entityType = $entityType;
}
/**
* @return self::ENTITY_TYPE_*
*/
public function getEntityType()
{
return $this->entityType;
}
/**
* Optional arbitrary unique identifier of this client buyer from the
* standpoint of its Ad Exchange sponsor buyer. This field can be used to
* associate a client buyer with the identifier in the namespace of its
* sponsor buyer, lookup client buyers by that identifier and verify whether
* an Ad Exchange counterpart of a given client buyer already exists. If
* present, must be unique among all the client buyers for its Ad Exchange
* sponsor buyer.
*
* @param string $partnerClientId
*/
public function setPartnerClientId($partnerClientId)
{
$this->partnerClientId = $partnerClientId;
}
/**
* @return string
*/
public function getPartnerClientId()
{
return $this->partnerClientId;
}
/**
* The role which is assigned to the client buyer. Each role implies a set of
* permissions granted to the client. Must be one of `CLIENT_DEAL_VIEWER`,
* `CLIENT_DEAL_NEGOTIATOR` or `CLIENT_DEAL_APPROVER`.
*
* Accepted values: CLIENT_ROLE_UNSPECIFIED, CLIENT_DEAL_VIEWER,
* CLIENT_DEAL_NEGOTIATOR, CLIENT_DEAL_APPROVER
*
* @param self::ROLE_* $role
*/
public function setRole($role)
{
$this->role = $role;
}
/**
* @return self::ROLE_*
*/
public function getRole()
{
return $this->role;
}
/**
* The status of the client buyer.
*
* Accepted values: CLIENT_STATUS_UNSPECIFIED, DISABLED, ACTIVE
*
* @param self::STATUS_* $status
*/
public function setStatus($status)
{
$this->status = $status;
}
/**
* @return self::STATUS_*
*/
public function getStatus()
{
return $this->status;
}
/**
* Whether the client buyer will be visible to sellers.
*
* @param bool $visibleToSeller
*/
public function setVisibleToSeller($visibleToSeller)
{
$this->visibleToSeller = $visibleToSeller;
}
/**
* @return bool
*/
public function getVisibleToSeller()
{
return $this->visibleToSeller;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Client::class, 'Google_Service_AdExchangeBuyerII_Client');
@@ -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\AdExchangeBuyerII;
class ClientUser extends \Google\Model
{
/**
* A placeholder for an undefined user status.
*/
public const STATUS_USER_STATUS_UNSPECIFIED = 'USER_STATUS_UNSPECIFIED';
/**
* A user who was already created but hasn't accepted the invitation yet.
*/
public const STATUS_PENDING = 'PENDING';
/**
* A user that is currently active.
*/
public const STATUS_ACTIVE = 'ACTIVE';
/**
* A user that is currently disabled.
*/
public const STATUS_DISABLED = 'DISABLED';
/**
* Numerical account ID of the client buyer with which the user is associated;
* the buyer must be a client of the current sponsor buyer. The value of this
* field is ignored in an update operation.
*
* @var string
*/
public $clientAccountId;
/**
* User's email address. The value of this field is ignored in an update
* operation.
*
* @var string
*/
public $email;
/**
* The status of the client user.
*
* @var string
*/
public $status;
/**
* The unique numerical ID of the client user that has accepted an invitation.
* The value of this field is ignored in an update operation.
*
* @var string
*/
public $userId;
/**
* Numerical account ID of the client buyer with which the user is associated;
* the buyer must be a client of the current sponsor buyer. The value of this
* field is ignored in an update operation.
*
* @param string $clientAccountId
*/
public function setClientAccountId($clientAccountId)
{
$this->clientAccountId = $clientAccountId;
}
/**
* @return string
*/
public function getClientAccountId()
{
return $this->clientAccountId;
}
/**
* User's email address. The value of this field is ignored in an update
* operation.
*
* @param string $email
*/
public function setEmail($email)
{
$this->email = $email;
}
/**
* @return string
*/
public function getEmail()
{
return $this->email;
}
/**
* The status of the client user.
*
* Accepted values: USER_STATUS_UNSPECIFIED, PENDING, ACTIVE, DISABLED
*
* @param self::STATUS_* $status
*/
public function setStatus($status)
{
$this->status = $status;
}
/**
* @return self::STATUS_*
*/
public function getStatus()
{
return $this->status;
}
/**
* The unique numerical ID of the client user that has accepted an invitation.
* The value of this field is ignored in an update operation.
*
* @param string $userId
*/
public function setUserId($userId)
{
$this->userId = $userId;
}
/**
* @return string
*/
public function getUserId()
{
return $this->userId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ClientUser::class, 'Google_Service_AdExchangeBuyerII_ClientUser');
@@ -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\AdExchangeBuyerII;
class ClientUserInvitation extends \Google\Model
{
/**
* Numerical account ID of the client buyer that the invited user is
* associated with. The value of this field is ignored in create operations.
*
* @var string
*/
public $clientAccountId;
/**
* The email address to which the invitation is sent. Email addresses should
* be unique among all client users under each sponsor buyer.
*
* @var string
*/
public $email;
/**
* The unique numerical ID of the invitation that is sent to the user. The
* value of this field is ignored in create operations.
*
* @var string
*/
public $invitationId;
/**
* Numerical account ID of the client buyer that the invited user is
* associated with. The value of this field is ignored in create operations.
*
* @param string $clientAccountId
*/
public function setClientAccountId($clientAccountId)
{
$this->clientAccountId = $clientAccountId;
}
/**
* @return string
*/
public function getClientAccountId()
{
return $this->clientAccountId;
}
/**
* The email address to which the invitation is sent. Email addresses should
* be unique among all client users under each sponsor buyer.
*
* @param string $email
*/
public function setEmail($email)
{
$this->email = $email;
}
/**
* @return string
*/
public function getEmail()
{
return $this->email;
}
/**
* The unique numerical ID of the invitation that is sent to the user. The
* value of this field is ignored in create operations.
*
* @param string $invitationId
*/
public function setInvitationId($invitationId)
{
$this->invitationId = $invitationId;
}
/**
* @return string
*/
public function getInvitationId()
{
return $this->invitationId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ClientUserInvitation::class, 'Google_Service_AdExchangeBuyerII_ClientUserInvitation');
@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AdExchangeBuyerII;
class CompleteSetupRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CompleteSetupRequest::class, 'Google_Service_AdExchangeBuyerII_CompleteSetupRequest');
@@ -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\AdExchangeBuyerII;
class ContactInformation extends \Google\Model
{
/**
* Email address for the contact.
*
* @var string
*/
public $email;
/**
* The name of the contact.
*
* @var string
*/
public $name;
/**
* Email address for the contact.
*
* @param string $email
*/
public function setEmail($email)
{
$this->email = $email;
}
/**
* @return string
*/
public function getEmail()
{
return $this->email;
}
/**
* The name of the contact.
*
* @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(ContactInformation::class, 'Google_Service_AdExchangeBuyerII_ContactInformation');
@@ -0,0 +1,153 @@
<?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\AdExchangeBuyerII;
class Correction extends \Google\Collection
{
/**
* The correction type is unknown. Refer to the details for more information.
*/
public const TYPE_CORRECTION_TYPE_UNSPECIFIED = 'CORRECTION_TYPE_UNSPECIFIED';
/**
* The ad's declared vendors did not match the vendors that were detected. The
* detected vendors were added.
*/
public const TYPE_VENDOR_IDS_ADDED = 'VENDOR_IDS_ADDED';
/**
* The ad had the SSL attribute declared but was not SSL-compliant. The SSL
* attribute was removed.
*/
public const TYPE_SSL_ATTRIBUTE_REMOVED = 'SSL_ATTRIBUTE_REMOVED';
/**
* The ad was declared as Flash-free but contained Flash, so the Flash-free
* attribute was removed.
*/
public const TYPE_FLASH_FREE_ATTRIBUTE_REMOVED = 'FLASH_FREE_ATTRIBUTE_REMOVED';
/**
* The ad was not declared as Flash-free but it did not reference any flash
* content, so the Flash-free attribute was added.
*/
public const TYPE_FLASH_FREE_ATTRIBUTE_ADDED = 'FLASH_FREE_ATTRIBUTE_ADDED';
/**
* The ad did not declare a required creative attribute. The attribute was
* added.
*/
public const TYPE_REQUIRED_ATTRIBUTE_ADDED = 'REQUIRED_ATTRIBUTE_ADDED';
/**
* The ad did not declare a required technology vendor. The technology vendor
* was added.
*/
public const TYPE_REQUIRED_VENDOR_ADDED = 'REQUIRED_VENDOR_ADDED';
/**
* The ad did not declare the SSL attribute but was SSL-compliant, so the SSL
* attribute was added.
*/
public const TYPE_SSL_ATTRIBUTE_ADDED = 'SSL_ATTRIBUTE_ADDED';
/**
* Properties consistent with In-banner video were found, so an In-Banner
* Video attribute was added.
*/
public const TYPE_IN_BANNER_VIDEO_ATTRIBUTE_ADDED = 'IN_BANNER_VIDEO_ATTRIBUTE_ADDED';
/**
* The ad makes calls to the MRAID API so the MRAID attribute was added.
*/
public const TYPE_MRAID_ATTRIBUTE_ADDED = 'MRAID_ATTRIBUTE_ADDED';
/**
* The ad unnecessarily declared the Flash attribute, so the Flash attribute
* was removed.
*/
public const TYPE_FLASH_ATTRIBUTE_REMOVED = 'FLASH_ATTRIBUTE_REMOVED';
/**
* The ad contains video content.
*/
public const TYPE_VIDEO_IN_SNIPPET_ATTRIBUTE_ADDED = 'VIDEO_IN_SNIPPET_ATTRIBUTE_ADDED';
protected $collection_key = 'details';
protected $contextsType = ServingContext::class;
protected $contextsDataType = 'array';
/**
* Additional details about what was corrected.
*
* @var string[]
*/
public $details;
/**
* The type of correction that was applied to the creative.
*
* @var string
*/
public $type;
/**
* The contexts for the correction.
*
* @param ServingContext[] $contexts
*/
public function setContexts($contexts)
{
$this->contexts = $contexts;
}
/**
* @return ServingContext[]
*/
public function getContexts()
{
return $this->contexts;
}
/**
* Additional details about what was corrected.
*
* @param string[] $details
*/
public function setDetails($details)
{
$this->details = $details;
}
/**
* @return string[]
*/
public function getDetails()
{
return $this->details;
}
/**
* The type of correction that was applied to the creative.
*
* Accepted values: CORRECTION_TYPE_UNSPECIFIED, VENDOR_IDS_ADDED,
* SSL_ATTRIBUTE_REMOVED, FLASH_FREE_ATTRIBUTE_REMOVED,
* FLASH_FREE_ATTRIBUTE_ADDED, REQUIRED_ATTRIBUTE_ADDED,
* REQUIRED_VENDOR_ADDED, SSL_ATTRIBUTE_ADDED,
* IN_BANNER_VIDEO_ATTRIBUTE_ADDED, MRAID_ATTRIBUTE_ADDED,
* FLASH_ATTRIBUTE_REMOVED, VIDEO_IN_SNIPPET_ATTRIBUTE_ADDED
*
* @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(Correction::class, 'Google_Service_AdExchangeBuyerII_Correction');
@@ -0,0 +1,686 @@
<?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\AdExchangeBuyerII;
class Creative extends \Google\Collection
{
/**
* The status is unknown.
*/
public const DEALS_STATUS_STATUS_UNSPECIFIED = 'STATUS_UNSPECIFIED';
/**
* The creative has not been checked.
*/
public const DEALS_STATUS_NOT_CHECKED = 'NOT_CHECKED';
/**
* The creative has been conditionally approved. See serving_restrictions for
* details.
*/
public const DEALS_STATUS_CONDITIONALLY_APPROVED = 'CONDITIONALLY_APPROVED';
/**
* The creative has been approved.
*/
public const DEALS_STATUS_APPROVED = 'APPROVED';
/**
* The creative has been disapproved.
*/
public const DEALS_STATUS_DISAPPROVED = 'DISAPPROVED';
/**
* Placeholder for transition to v1beta1. Currently not used.
*/
public const DEALS_STATUS_PENDING_REVIEW = 'PENDING_REVIEW';
/**
* Placeholder for transition to v1beta1. Currently not used.
*/
public const DEALS_STATUS_STATUS_TYPE_UNSPECIFIED = 'STATUS_TYPE_UNSPECIFIED';
/**
* The status is unknown.
*/
public const OPEN_AUCTION_STATUS_STATUS_UNSPECIFIED = 'STATUS_UNSPECIFIED';
/**
* The creative has not been checked.
*/
public const OPEN_AUCTION_STATUS_NOT_CHECKED = 'NOT_CHECKED';
/**
* The creative has been conditionally approved. See serving_restrictions for
* details.
*/
public const OPEN_AUCTION_STATUS_CONDITIONALLY_APPROVED = 'CONDITIONALLY_APPROVED';
/**
* The creative has been approved.
*/
public const OPEN_AUCTION_STATUS_APPROVED = 'APPROVED';
/**
* The creative has been disapproved.
*/
public const OPEN_AUCTION_STATUS_DISAPPROVED = 'DISAPPROVED';
/**
* Placeholder for transition to v1beta1. Currently not used.
*/
public const OPEN_AUCTION_STATUS_PENDING_REVIEW = 'PENDING_REVIEW';
/**
* Placeholder for transition to v1beta1. Currently not used.
*/
public const OPEN_AUCTION_STATUS_STATUS_TYPE_UNSPECIFIED = 'STATUS_TYPE_UNSPECIFIED';
protected $collection_key = 'vendorIds';
/**
* The account that this creative belongs to. Can be used to filter the
* response of the creatives.list method.
*
* @var string
*/
public $accountId;
/**
* The link to AdChoices destination page.
*
* @var string
*/
public $adChoicesDestinationUrl;
protected $adTechnologyProvidersType = AdTechnologyProviders::class;
protected $adTechnologyProvidersDataType = '';
/**
* The name of the company being advertised in the creative.
*
* @var string
*/
public $advertiserName;
/**
* The agency ID for this creative.
*
* @var string
*/
public $agencyId;
/**
* Output only. The last update timestamp of the creative through the API.
*
* @var string
*/
public $apiUpdateTime;
/**
* All attributes for the ads that may be shown from this creative. Can be
* used to filter the response of the creatives.list method.
*
* @var string[]
*/
public $attributes;
/**
* The set of destination URLs for the creative.
*
* @var string[]
*/
public $clickThroughUrls;
protected $correctionsType = Correction::class;
protected $correctionsDataType = 'array';
/**
* The buyer-defined creative ID of this creative. Can be used to filter the
* response of the creatives.list method.
*
* @var string
*/
public $creativeId;
/**
* Output only. The top-level deals status of this creative. If disapproved,
* an entry for 'auctionType=DIRECT_DEALS' (or 'ALL') in serving_restrictions
* will also exist. Note that this may be nuanced with other contextual
* restrictions, in which case, it may be preferable to read from
* serving_restrictions directly. Can be used to filter the response of the
* creatives.list method.
*
* @var string
*/
public $dealsStatus;
/**
* The set of declared destination URLs for the creative.
*
* @var string[]
*/
public $declaredClickThroughUrls;
/**
* Output only. Detected advertiser IDs, if any.
*
* @var string[]
*/
public $detectedAdvertiserIds;
/**
* Output only. The detected domains for this creative.
*
* @var string[]
*/
public $detectedDomains;
/**
* Output only. The detected languages for this creative. The order is
* arbitrary. The codes are 2 or 5 characters and are documented at
* https://developers.google.com/adwords/api/docs/appendix/languagecodes.
*
* @var string[]
*/
public $detectedLanguages;
/**
* Output only. Detected product categories, if any. See the ad-product-
* categories.txt file in the technical documentation for a list of IDs.
*
* @var int[]
*/
public $detectedProductCategories;
/**
* Output only. Detected sensitive categories, if any. See the ad-sensitive-
* categories.txt file in the technical documentation for a list of IDs. You
* should use these IDs along with the excluded-sensitive-category field in
* the bid request to filter your bids.
*
* @var int[]
*/
public $detectedSensitiveCategories;
protected $htmlType = HtmlContent::class;
protected $htmlDataType = '';
/**
* The set of URLs to be called to record an impression.
*
* @var string[]
*/
public $impressionTrackingUrls;
protected $nativeType = NativeContent::class;
protected $nativeDataType = '';
/**
* Output only. The top-level open auction status of this creative. If
* disapproved, an entry for 'auctionType = OPEN_AUCTION' (or 'ALL') in
* serving_restrictions will also exist. Note that this may be nuanced with
* other contextual restrictions, in which case, it may be preferable to read
* from serving_restrictions directly. Can be used to filter the response of
* the creatives.list method.
*
* @var string
*/
public $openAuctionStatus;
/**
* All restricted categories for the ads that may be shown from this creative.
*
* @var string[]
*/
public $restrictedCategories;
protected $servingRestrictionsType = ServingRestriction::class;
protected $servingRestrictionsDataType = 'array';
/**
* All vendor IDs for the ads that may be shown from this creative. See
* https://storage.googleapis.com/adx-rtb-dictionaries/vendors.txt for
* possible values.
*
* @var int[]
*/
public $vendorIds;
/**
* Output only. The version of this creative.
*
* @var int
*/
public $version;
protected $videoType = VideoContent::class;
protected $videoDataType = '';
/**
* The account that this creative belongs to. Can be used to filter the
* response of the creatives.list method.
*
* @param string $accountId
*/
public function setAccountId($accountId)
{
$this->accountId = $accountId;
}
/**
* @return string
*/
public function getAccountId()
{
return $this->accountId;
}
/**
* The link to AdChoices destination page.
*
* @param string $adChoicesDestinationUrl
*/
public function setAdChoicesDestinationUrl($adChoicesDestinationUrl)
{
$this->adChoicesDestinationUrl = $adChoicesDestinationUrl;
}
/**
* @return string
*/
public function getAdChoicesDestinationUrl()
{
return $this->adChoicesDestinationUrl;
}
/**
* Output only. The detected ad technology providers.
*
* @param AdTechnologyProviders $adTechnologyProviders
*/
public function setAdTechnologyProviders(AdTechnologyProviders $adTechnologyProviders)
{
$this->adTechnologyProviders = $adTechnologyProviders;
}
/**
* @return AdTechnologyProviders
*/
public function getAdTechnologyProviders()
{
return $this->adTechnologyProviders;
}
/**
* The name of the company being advertised in the creative.
*
* @param string $advertiserName
*/
public function setAdvertiserName($advertiserName)
{
$this->advertiserName = $advertiserName;
}
/**
* @return string
*/
public function getAdvertiserName()
{
return $this->advertiserName;
}
/**
* The agency ID for this creative.
*
* @param string $agencyId
*/
public function setAgencyId($agencyId)
{
$this->agencyId = $agencyId;
}
/**
* @return string
*/
public function getAgencyId()
{
return $this->agencyId;
}
/**
* Output only. The last update timestamp of the creative through the API.
*
* @param string $apiUpdateTime
*/
public function setApiUpdateTime($apiUpdateTime)
{
$this->apiUpdateTime = $apiUpdateTime;
}
/**
* @return string
*/
public function getApiUpdateTime()
{
return $this->apiUpdateTime;
}
/**
* All attributes for the ads that may be shown from this creative. Can be
* used to filter the response of the creatives.list method.
*
* @param string[] $attributes
*/
public function setAttributes($attributes)
{
$this->attributes = $attributes;
}
/**
* @return string[]
*/
public function getAttributes()
{
return $this->attributes;
}
/**
* The set of destination URLs for the creative.
*
* @param string[] $clickThroughUrls
*/
public function setClickThroughUrls($clickThroughUrls)
{
$this->clickThroughUrls = $clickThroughUrls;
}
/**
* @return string[]
*/
public function getClickThroughUrls()
{
return $this->clickThroughUrls;
}
/**
* Output only. Shows any corrections that were applied to this creative.
*
* @deprecated
* @param Correction[] $corrections
*/
public function setCorrections($corrections)
{
$this->corrections = $corrections;
}
/**
* @deprecated
* @return Correction[]
*/
public function getCorrections()
{
return $this->corrections;
}
/**
* The buyer-defined creative ID of this creative. Can be used to filter the
* response of the creatives.list method.
*
* @param string $creativeId
*/
public function setCreativeId($creativeId)
{
$this->creativeId = $creativeId;
}
/**
* @return string
*/
public function getCreativeId()
{
return $this->creativeId;
}
/**
* Output only. The top-level deals status of this creative. If disapproved,
* an entry for 'auctionType=DIRECT_DEALS' (or 'ALL') in serving_restrictions
* will also exist. Note that this may be nuanced with other contextual
* restrictions, in which case, it may be preferable to read from
* serving_restrictions directly. Can be used to filter the response of the
* creatives.list method.
*
* Accepted values: STATUS_UNSPECIFIED, NOT_CHECKED, CONDITIONALLY_APPROVED,
* APPROVED, DISAPPROVED, PENDING_REVIEW, STATUS_TYPE_UNSPECIFIED
*
* @param self::DEALS_STATUS_* $dealsStatus
*/
public function setDealsStatus($dealsStatus)
{
$this->dealsStatus = $dealsStatus;
}
/**
* @return self::DEALS_STATUS_*
*/
public function getDealsStatus()
{
return $this->dealsStatus;
}
/**
* The set of declared destination URLs for the creative.
*
* @param string[] $declaredClickThroughUrls
*/
public function setDeclaredClickThroughUrls($declaredClickThroughUrls)
{
$this->declaredClickThroughUrls = $declaredClickThroughUrls;
}
/**
* @return string[]
*/
public function getDeclaredClickThroughUrls()
{
return $this->declaredClickThroughUrls;
}
/**
* Output only. Detected advertiser IDs, if any.
*
* @param string[] $detectedAdvertiserIds
*/
public function setDetectedAdvertiserIds($detectedAdvertiserIds)
{
$this->detectedAdvertiserIds = $detectedAdvertiserIds;
}
/**
* @return string[]
*/
public function getDetectedAdvertiserIds()
{
return $this->detectedAdvertiserIds;
}
/**
* Output only. The detected domains for this creative.
*
* @param string[] $detectedDomains
*/
public function setDetectedDomains($detectedDomains)
{
$this->detectedDomains = $detectedDomains;
}
/**
* @return string[]
*/
public function getDetectedDomains()
{
return $this->detectedDomains;
}
/**
* Output only. The detected languages for this creative. The order is
* arbitrary. The codes are 2 or 5 characters and are documented at
* https://developers.google.com/adwords/api/docs/appendix/languagecodes.
*
* @param string[] $detectedLanguages
*/
public function setDetectedLanguages($detectedLanguages)
{
$this->detectedLanguages = $detectedLanguages;
}
/**
* @return string[]
*/
public function getDetectedLanguages()
{
return $this->detectedLanguages;
}
/**
* Output only. Detected product categories, if any. See the ad-product-
* categories.txt file in the technical documentation for a list of IDs.
*
* @param int[] $detectedProductCategories
*/
public function setDetectedProductCategories($detectedProductCategories)
{
$this->detectedProductCategories = $detectedProductCategories;
}
/**
* @return int[]
*/
public function getDetectedProductCategories()
{
return $this->detectedProductCategories;
}
/**
* Output only. Detected sensitive categories, if any. See the ad-sensitive-
* categories.txt file in the technical documentation for a list of IDs. You
* should use these IDs along with the excluded-sensitive-category field in
* the bid request to filter your bids.
*
* @param int[] $detectedSensitiveCategories
*/
public function setDetectedSensitiveCategories($detectedSensitiveCategories)
{
$this->detectedSensitiveCategories = $detectedSensitiveCategories;
}
/**
* @return int[]
*/
public function getDetectedSensitiveCategories()
{
return $this->detectedSensitiveCategories;
}
/**
* An HTML creative.
*
* @param HtmlContent $html
*/
public function setHtml(HtmlContent $html)
{
$this->html = $html;
}
/**
* @return HtmlContent
*/
public function getHtml()
{
return $this->html;
}
/**
* The set of URLs to be called to record an impression.
*
* @param string[] $impressionTrackingUrls
*/
public function setImpressionTrackingUrls($impressionTrackingUrls)
{
$this->impressionTrackingUrls = $impressionTrackingUrls;
}
/**
* @return string[]
*/
public function getImpressionTrackingUrls()
{
return $this->impressionTrackingUrls;
}
/**
* A native creative.
*
* @param NativeContent $native
*/
public function setNative(NativeContent $native)
{
$this->native = $native;
}
/**
* @return NativeContent
*/
public function getNative()
{
return $this->native;
}
/**
* Output only. The top-level open auction status of this creative. If
* disapproved, an entry for 'auctionType = OPEN_AUCTION' (or 'ALL') in
* serving_restrictions will also exist. Note that this may be nuanced with
* other contextual restrictions, in which case, it may be preferable to read
* from serving_restrictions directly. Can be used to filter the response of
* the creatives.list method.
*
* Accepted values: STATUS_UNSPECIFIED, NOT_CHECKED, CONDITIONALLY_APPROVED,
* APPROVED, DISAPPROVED, PENDING_REVIEW, STATUS_TYPE_UNSPECIFIED
*
* @param self::OPEN_AUCTION_STATUS_* $openAuctionStatus
*/
public function setOpenAuctionStatus($openAuctionStatus)
{
$this->openAuctionStatus = $openAuctionStatus;
}
/**
* @return self::OPEN_AUCTION_STATUS_*
*/
public function getOpenAuctionStatus()
{
return $this->openAuctionStatus;
}
/**
* All restricted categories for the ads that may be shown from this creative.
*
* @param string[] $restrictedCategories
*/
public function setRestrictedCategories($restrictedCategories)
{
$this->restrictedCategories = $restrictedCategories;
}
/**
* @return string[]
*/
public function getRestrictedCategories()
{
return $this->restrictedCategories;
}
/**
* Output only. The granular status of this ad in specific contexts. A context
* here relates to where something ultimately serves (for example, a physical
* location, a platform, an HTTPS versus HTTP request, or the type of
* auction).
*
* @param ServingRestriction[] $servingRestrictions
*/
public function setServingRestrictions($servingRestrictions)
{
$this->servingRestrictions = $servingRestrictions;
}
/**
* @return ServingRestriction[]
*/
public function getServingRestrictions()
{
return $this->servingRestrictions;
}
/**
* All vendor IDs for the ads that may be shown from this creative. See
* https://storage.googleapis.com/adx-rtb-dictionaries/vendors.txt for
* possible values.
*
* @param int[] $vendorIds
*/
public function setVendorIds($vendorIds)
{
$this->vendorIds = $vendorIds;
}
/**
* @return int[]
*/
public function getVendorIds()
{
return $this->vendorIds;
}
/**
* Output only. The version of this creative.
*
* @param int $version
*/
public function setVersion($version)
{
$this->version = $version;
}
/**
* @return int
*/
public function getVersion()
{
return $this->version;
}
/**
* A video creative.
*
* @param VideoContent $video
*/
public function setVideo(VideoContent $video)
{
$this->video = $video;
}
/**
* @return VideoContent
*/
public function getVideo()
{
return $this->video;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Creative::class, 'Google_Service_AdExchangeBuyerII_Creative');
@@ -0,0 +1,92 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AdExchangeBuyerII;
class CreativeDealAssociation extends \Google\Model
{
/**
* The account the creative belongs to.
*
* @var string
*/
public $accountId;
/**
* The ID of the creative associated with the deal.
*
* @var string
*/
public $creativeId;
/**
* The externalDealId for the deal associated with the creative.
*
* @var string
*/
public $dealsId;
/**
* The account the creative belongs to.
*
* @param string $accountId
*/
public function setAccountId($accountId)
{
$this->accountId = $accountId;
}
/**
* @return string
*/
public function getAccountId()
{
return $this->accountId;
}
/**
* The ID of the creative associated with the deal.
*
* @param string $creativeId
*/
public function setCreativeId($creativeId)
{
$this->creativeId = $creativeId;
}
/**
* @return string
*/
public function getCreativeId()
{
return $this->creativeId;
}
/**
* The externalDealId for the deal associated with the creative.
*
* @param string $dealsId
*/
public function setDealsId($dealsId)
{
$this->dealsId = $dealsId;
}
/**
* @return string
*/
public function getDealsId()
{
return $this->dealsId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CreativeDealAssociation::class, 'Google_Service_AdExchangeBuyerII_CreativeDealAssociation');
@@ -0,0 +1,123 @@
<?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\AdExchangeBuyerII;
class CreativeRestrictions extends \Google\Collection
{
/**
* A placeholder for an undefined creative format.
*/
public const CREATIVE_FORMAT_CREATIVE_FORMAT_UNSPECIFIED = 'CREATIVE_FORMAT_UNSPECIFIED';
/**
* A creative that will be displayed in environments such as a browser.
*/
public const CREATIVE_FORMAT_DISPLAY = 'DISPLAY';
/**
* A video creative that will be displayed in environments such as a video
* player.
*/
public const CREATIVE_FORMAT_VIDEO = 'VIDEO';
/**
* A placeholder for an undefined skippable ad type.
*/
public const SKIPPABLE_AD_TYPE_SKIPPABLE_AD_TYPE_UNSPECIFIED = 'SKIPPABLE_AD_TYPE_UNSPECIFIED';
/**
* This video ad can be skipped after 5 seconds.
*/
public const SKIPPABLE_AD_TYPE_SKIPPABLE = 'SKIPPABLE';
/**
* This video ad can be skipped after 5 seconds, and is counted as engaged
* view after 30 seconds. The creative is hosted on YouTube only, and
* viewcount of the YouTube video increments after the engaged view.
*/
public const SKIPPABLE_AD_TYPE_INSTREAM_SELECT = 'INSTREAM_SELECT';
/**
* This video ad is not skippable.
*/
public const SKIPPABLE_AD_TYPE_NOT_SKIPPABLE = 'NOT_SKIPPABLE';
protected $collection_key = 'creativeSpecifications';
/**
* The format of the environment that the creatives will be displayed in.
*
* @var string
*/
public $creativeFormat;
protected $creativeSpecificationsType = CreativeSpecification::class;
protected $creativeSpecificationsDataType = 'array';
/**
* Skippable video ads allow viewers to skip ads after 5 seconds.
*
* @var string
*/
public $skippableAdType;
/**
* The format of the environment that the creatives will be displayed in.
*
* Accepted values: CREATIVE_FORMAT_UNSPECIFIED, DISPLAY, VIDEO
*
* @param self::CREATIVE_FORMAT_* $creativeFormat
*/
public function setCreativeFormat($creativeFormat)
{
$this->creativeFormat = $creativeFormat;
}
/**
* @return self::CREATIVE_FORMAT_*
*/
public function getCreativeFormat()
{
return $this->creativeFormat;
}
/**
* @param CreativeSpecification[] $creativeSpecifications
*/
public function setCreativeSpecifications($creativeSpecifications)
{
$this->creativeSpecifications = $creativeSpecifications;
}
/**
* @return CreativeSpecification[]
*/
public function getCreativeSpecifications()
{
return $this->creativeSpecifications;
}
/**
* Skippable video ads allow viewers to skip ads after 5 seconds.
*
* Accepted values: SKIPPABLE_AD_TYPE_UNSPECIFIED, SKIPPABLE, INSTREAM_SELECT,
* NOT_SKIPPABLE
*
* @param self::SKIPPABLE_AD_TYPE_* $skippableAdType
*/
public function setSkippableAdType($skippableAdType)
{
$this->skippableAdType = $skippableAdType;
}
/**
* @return self::SKIPPABLE_AD_TYPE_*
*/
public function getSkippableAdType()
{
return $this->skippableAdType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CreativeRestrictions::class, 'Google_Service_AdExchangeBuyerII_CreativeRestrictions');
@@ -0,0 +1,229 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AdExchangeBuyerII;
class CreativeSize extends \Google\Collection
{
/**
* A placeholder for an undefined creative size type.
*/
public const CREATIVE_SIZE_TYPE_CREATIVE_SIZE_TYPE_UNSPECIFIED = 'CREATIVE_SIZE_TYPE_UNSPECIFIED';
/**
* The creative is a regular desktop creative.
*/
public const CREATIVE_SIZE_TYPE_REGULAR = 'REGULAR';
/**
* The creative is an interstitial creative.
*/
public const CREATIVE_SIZE_TYPE_INTERSTITIAL = 'INTERSTITIAL';
/**
* The creative is a video creative.
*/
public const CREATIVE_SIZE_TYPE_VIDEO = 'VIDEO';
/**
* The creative is a native (mobile) creative.
*/
public const CREATIVE_SIZE_TYPE_NATIVE = 'NATIVE';
/**
* A placeholder for an undefined native template.
*/
public const NATIVE_TEMPLATE_UNKNOWN_NATIVE_TEMPLATE = 'UNKNOWN_NATIVE_TEMPLATE';
/**
* The creative is linked to native content ad.
*/
public const NATIVE_TEMPLATE_NATIVE_CONTENT_AD = 'NATIVE_CONTENT_AD';
/**
* The creative is linked to native app install ad.
*/
public const NATIVE_TEMPLATE_NATIVE_APP_INSTALL_AD = 'NATIVE_APP_INSTALL_AD';
/**
* The creative is linked to native video content ad.
*/
public const NATIVE_TEMPLATE_NATIVE_VIDEO_CONTENT_AD = 'NATIVE_VIDEO_CONTENT_AD';
/**
* The creative is linked to native video app install ad.
*/
public const NATIVE_TEMPLATE_NATIVE_VIDEO_APP_INSTALL_AD = 'NATIVE_VIDEO_APP_INSTALL_AD';
/**
* A placeholder for an undefined skippable ad type.
*/
public const SKIPPABLE_AD_TYPE_SKIPPABLE_AD_TYPE_UNSPECIFIED = 'SKIPPABLE_AD_TYPE_UNSPECIFIED';
/**
* This video ad can be skipped after 5 seconds.
*/
public const SKIPPABLE_AD_TYPE_GENERIC = 'GENERIC';
/**
* This video ad can be skipped after 5 seconds, and count as engaged view
* after 30 seconds. The creative is hosted on YouTube only, and viewcount of
* the YouTube video increments after the engaged view.
*/
public const SKIPPABLE_AD_TYPE_INSTREAM_SELECT = 'INSTREAM_SELECT';
/**
* This video ad is not skippable.
*/
public const SKIPPABLE_AD_TYPE_NOT_SKIPPABLE = 'NOT_SKIPPABLE';
protected $collection_key = 'companionSizes';
/**
* What formats are allowed by the publisher. If this repeated field is empty
* then all formats are allowed. For example, if this field contains
* AllowedFormatType.AUDIO then the publisher only allows an audio ad (without
* any video).
*
* @var string[]
*/
public $allowedFormats;
protected $companionSizesType = Size::class;
protected $companionSizesDataType = 'array';
/**
* The creative size type.
*
* @var string
*/
public $creativeSizeType;
/**
* Output only. The native template for this creative. It will have a value
* only if creative_size_type = CreativeSizeType.NATIVE.
*
* @var string
*/
public $nativeTemplate;
protected $sizeType = Size::class;
protected $sizeDataType = '';
/**
* The type of skippable ad for this creative. It will have a value only if
* creative_size_type = CreativeSizeType.VIDEO.
*
* @var string
*/
public $skippableAdType;
/**
* What formats are allowed by the publisher. If this repeated field is empty
* then all formats are allowed. For example, if this field contains
* AllowedFormatType.AUDIO then the publisher only allows an audio ad (without
* any video).
*
* @param string[] $allowedFormats
*/
public function setAllowedFormats($allowedFormats)
{
$this->allowedFormats = $allowedFormats;
}
/**
* @return string[]
*/
public function getAllowedFormats()
{
return $this->allowedFormats;
}
/**
* For video creatives specifies the sizes of companion ads (if present).
* Companion sizes may be filled in only when creative_size_type = VIDEO
*
* @param Size[] $companionSizes
*/
public function setCompanionSizes($companionSizes)
{
$this->companionSizes = $companionSizes;
}
/**
* @return Size[]
*/
public function getCompanionSizes()
{
return $this->companionSizes;
}
/**
* The creative size type.
*
* Accepted values: CREATIVE_SIZE_TYPE_UNSPECIFIED, REGULAR, INTERSTITIAL,
* VIDEO, NATIVE
*
* @param self::CREATIVE_SIZE_TYPE_* $creativeSizeType
*/
public function setCreativeSizeType($creativeSizeType)
{
$this->creativeSizeType = $creativeSizeType;
}
/**
* @return self::CREATIVE_SIZE_TYPE_*
*/
public function getCreativeSizeType()
{
return $this->creativeSizeType;
}
/**
* Output only. The native template for this creative. It will have a value
* only if creative_size_type = CreativeSizeType.NATIVE.
*
* Accepted values: UNKNOWN_NATIVE_TEMPLATE, NATIVE_CONTENT_AD,
* NATIVE_APP_INSTALL_AD, NATIVE_VIDEO_CONTENT_AD, NATIVE_VIDEO_APP_INSTALL_AD
*
* @param self::NATIVE_TEMPLATE_* $nativeTemplate
*/
public function setNativeTemplate($nativeTemplate)
{
$this->nativeTemplate = $nativeTemplate;
}
/**
* @return self::NATIVE_TEMPLATE_*
*/
public function getNativeTemplate()
{
return $this->nativeTemplate;
}
/**
* For regular or video creative size type, specifies the size of the creative
*
* @param Size $size
*/
public function setSize(Size $size)
{
$this->size = $size;
}
/**
* @return Size
*/
public function getSize()
{
return $this->size;
}
/**
* The type of skippable ad for this creative. It will have a value only if
* creative_size_type = CreativeSizeType.VIDEO.
*
* Accepted values: SKIPPABLE_AD_TYPE_UNSPECIFIED, GENERIC, INSTREAM_SELECT,
* NOT_SKIPPABLE
*
* @param self::SKIPPABLE_AD_TYPE_* $skippableAdType
*/
public function setSkippableAdType($skippableAdType)
{
$this->skippableAdType = $skippableAdType;
}
/**
* @return self::SKIPPABLE_AD_TYPE_*
*/
public function getSkippableAdType()
{
return $this->skippableAdType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CreativeSize::class, 'Google_Service_AdExchangeBuyerII_CreativeSize');
@@ -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\AdExchangeBuyerII;
class CreativeSpecification extends \Google\Collection
{
protected $collection_key = 'creativeCompanionSizes';
protected $creativeCompanionSizesType = AdSize::class;
protected $creativeCompanionSizesDataType = 'array';
protected $creativeSizeType = AdSize::class;
protected $creativeSizeDataType = '';
/**
* Companion sizes may be filled in only when this is a video creative.
*
* @param AdSize[] $creativeCompanionSizes
*/
public function setCreativeCompanionSizes($creativeCompanionSizes)
{
$this->creativeCompanionSizes = $creativeCompanionSizes;
}
/**
* @return AdSize[]
*/
public function getCreativeCompanionSizes()
{
return $this->creativeCompanionSizes;
}
/**
* The size of the creative.
*
* @param AdSize $creativeSize
*/
public function setCreativeSize(AdSize $creativeSize)
{
$this->creativeSize = $creativeSize;
}
/**
* @return AdSize
*/
public function getCreativeSize()
{
return $this->creativeSize;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CreativeSpecification::class, 'Google_Service_AdExchangeBuyerII_CreativeSpecification');
@@ -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\AdExchangeBuyerII;
class CreativeStatusRow extends \Google\Model
{
protected $bidCountType = MetricValue::class;
protected $bidCountDataType = '';
/**
* The ID of the creative status. See [creative-status-
* codes](https://developers.google.com/authorized-
* buyers/rtb/downloads/creative-status-codes).
*
* @var int
*/
public $creativeStatusId;
protected $rowDimensionsType = RowDimensions::class;
protected $rowDimensionsDataType = '';
/**
* The number of bids with the specified status.
*
* @param MetricValue $bidCount
*/
public function setBidCount(MetricValue $bidCount)
{
$this->bidCount = $bidCount;
}
/**
* @return MetricValue
*/
public function getBidCount()
{
return $this->bidCount;
}
/**
* The ID of the creative status. See [creative-status-
* codes](https://developers.google.com/authorized-
* buyers/rtb/downloads/creative-status-codes).
*
* @param int $creativeStatusId
*/
public function setCreativeStatusId($creativeStatusId)
{
$this->creativeStatusId = $creativeStatusId;
}
/**
* @return int
*/
public function getCreativeStatusId()
{
return $this->creativeStatusId;
}
/**
* The values of all dimensions associated with metric values in this row.
*
* @param RowDimensions $rowDimensions
*/
public function setRowDimensions(RowDimensions $rowDimensions)
{
$this->rowDimensions = $rowDimensions;
}
/**
* @return RowDimensions
*/
public function getRowDimensions()
{
return $this->rowDimensions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CreativeStatusRow::class, 'Google_Service_AdExchangeBuyerII_CreativeStatusRow');
@@ -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\AdExchangeBuyerII;
class CriteriaTargeting extends \Google\Collection
{
protected $collection_key = 'targetedCriteriaIds';
/**
* A list of numeric IDs to be excluded.
*
* @var string[]
*/
public $excludedCriteriaIds;
/**
* A list of numeric IDs to be included.
*
* @var string[]
*/
public $targetedCriteriaIds;
/**
* A list of numeric IDs to be excluded.
*
* @param string[] $excludedCriteriaIds
*/
public function setExcludedCriteriaIds($excludedCriteriaIds)
{
$this->excludedCriteriaIds = $excludedCriteriaIds;
}
/**
* @return string[]
*/
public function getExcludedCriteriaIds()
{
return $this->excludedCriteriaIds;
}
/**
* A list of numeric IDs to be included.
*
* @param string[] $targetedCriteriaIds
*/
public function setTargetedCriteriaIds($targetedCriteriaIds)
{
$this->targetedCriteriaIds = $targetedCriteriaIds;
}
/**
* @return string[]
*/
public function getTargetedCriteriaIds()
{
return $this->targetedCriteriaIds;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CriteriaTargeting::class, 'Google_Service_AdExchangeBuyerII_CriteriaTargeting');
@@ -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\AdExchangeBuyerII;
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_AdExchangeBuyerII_Date');
@@ -0,0 +1,123 @@
<?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\AdExchangeBuyerII;
class DayPart extends \Google\Model
{
/**
* A placeholder for when the day of the week is not specified.
*/
public const DAY_OF_WEEK_DAY_OF_WEEK_UNSPECIFIED = 'DAY_OF_WEEK_UNSPECIFIED';
/**
* Monday
*/
public const DAY_OF_WEEK_MONDAY = 'MONDAY';
/**
* Tuesday
*/
public const DAY_OF_WEEK_TUESDAY = 'TUESDAY';
/**
* Wednesday
*/
public const DAY_OF_WEEK_WEDNESDAY = 'WEDNESDAY';
/**
* Thursday
*/
public const DAY_OF_WEEK_THURSDAY = 'THURSDAY';
/**
* Friday
*/
public const DAY_OF_WEEK_FRIDAY = 'FRIDAY';
/**
* Saturday
*/
public const DAY_OF_WEEK_SATURDAY = 'SATURDAY';
/**
* Sunday
*/
public const DAY_OF_WEEK_SUNDAY = 'SUNDAY';
/**
* The day of the week to target. If unspecified, applicable to all days.
*
* @var string
*/
public $dayOfWeek;
protected $endTimeType = TimeOfDay::class;
protected $endTimeDataType = '';
protected $startTimeType = TimeOfDay::class;
protected $startTimeDataType = '';
/**
* The day of the week to target. If unspecified, applicable to all days.
*
* Accepted values: DAY_OF_WEEK_UNSPECIFIED, MONDAY, TUESDAY, WEDNESDAY,
* THURSDAY, FRIDAY, SATURDAY, SUNDAY
*
* @param self::DAY_OF_WEEK_* $dayOfWeek
*/
public function setDayOfWeek($dayOfWeek)
{
$this->dayOfWeek = $dayOfWeek;
}
/**
* @return self::DAY_OF_WEEK_*
*/
public function getDayOfWeek()
{
return $this->dayOfWeek;
}
/**
* The ending time of the day for the ad to show (minute level granularity).
* The end time is exclusive. This field is not available for filtering in PQL
* queries.
*
* @param TimeOfDay $endTime
*/
public function setEndTime(TimeOfDay $endTime)
{
$this->endTime = $endTime;
}
/**
* @return TimeOfDay
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* The starting time of day for the ad to show (minute level granularity). The
* start time is inclusive. This field is not available for filtering in PQL
* queries.
*
* @param TimeOfDay $startTime
*/
public function setStartTime(TimeOfDay $startTime)
{
$this->startTime = $startTime;
}
/**
* @return TimeOfDay
*/
public function getStartTime()
{
return $this->startTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DayPart::class, 'Google_Service_AdExchangeBuyerII_DayPart');
@@ -0,0 +1,81 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AdExchangeBuyerII;
class DayPartTargeting extends \Google\Collection
{
/**
* A placeholder for an undefined time zone source.
*/
public const TIME_ZONE_TYPE_TIME_ZONE_SOURCE_UNSPECIFIED = 'TIME_ZONE_SOURCE_UNSPECIFIED';
/**
* Use publisher's time zone setting.
*/
public const TIME_ZONE_TYPE_PUBLISHER = 'PUBLISHER';
/**
* Use the user's time zone setting.
*/
public const TIME_ZONE_TYPE_USER = 'USER';
protected $collection_key = 'dayParts';
protected $dayPartsType = DayPart::class;
protected $dayPartsDataType = 'array';
/**
* The timezone to use for interpreting the day part targeting.
*
* @var string
*/
public $timeZoneType;
/**
* A list of day part targeting criterion.
*
* @param DayPart[] $dayParts
*/
public function setDayParts($dayParts)
{
$this->dayParts = $dayParts;
}
/**
* @return DayPart[]
*/
public function getDayParts()
{
return $this->dayParts;
}
/**
* The timezone to use for interpreting the day part targeting.
*
* Accepted values: TIME_ZONE_SOURCE_UNSPECIFIED, PUBLISHER, USER
*
* @param self::TIME_ZONE_TYPE_* $timeZoneType
*/
public function setTimeZoneType($timeZoneType)
{
$this->timeZoneType = $timeZoneType;
}
/**
* @return self::TIME_ZONE_TYPE_*
*/
public function getTimeZoneType()
{
return $this->timeZoneType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DayPartTargeting::class, 'Google_Service_AdExchangeBuyerII_DayPartTargeting');
@@ -0,0 +1,651 @@
<?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\AdExchangeBuyerII;
class Deal extends \Google\Collection
{
/**
* A placeholder for an undefined creative pre-approval policy.
*/
public const CREATIVE_PRE_APPROVAL_POLICY_CREATIVE_PRE_APPROVAL_POLICY_UNSPECIFIED = 'CREATIVE_PRE_APPROVAL_POLICY_UNSPECIFIED';
/**
* The seller needs to approve each creative before it can serve.
*/
public const CREATIVE_PRE_APPROVAL_POLICY_SELLER_PRE_APPROVAL_REQUIRED = 'SELLER_PRE_APPROVAL_REQUIRED';
/**
* The seller does not need to approve each creative before it can serve.
*/
public const CREATIVE_PRE_APPROVAL_POLICY_SELLER_PRE_APPROVAL_NOT_REQUIRED = 'SELLER_PRE_APPROVAL_NOT_REQUIRED';
/**
* A placeholder for an undefined creative safe-frame compatibility.
*/
public const CREATIVE_SAFE_FRAME_COMPATIBILITY_CREATIVE_SAFE_FRAME_COMPATIBILITY_UNSPECIFIED = 'CREATIVE_SAFE_FRAME_COMPATIBILITY_UNSPECIFIED';
/**
* The creatives need to be compatible with the safe frame option.
*/
public const CREATIVE_SAFE_FRAME_COMPATIBILITY_COMPATIBLE = 'COMPATIBLE';
/**
* The creatives can be incompatible with the safe frame option.
*/
public const CREATIVE_SAFE_FRAME_COMPATIBILITY_INCOMPATIBLE = 'INCOMPATIBLE';
/**
* A placeholder for an undefined programmatic creative source.
*/
public const PROGRAMMATIC_CREATIVE_SOURCE_PROGRAMMATIC_CREATIVE_SOURCE_UNSPECIFIED = 'PROGRAMMATIC_CREATIVE_SOURCE_UNSPECIFIED';
/**
* The advertiser provides the creatives.
*/
public const PROGRAMMATIC_CREATIVE_SOURCE_ADVERTISER = 'ADVERTISER';
/**
* The publisher provides the creatives to be served.
*/
public const PROGRAMMATIC_CREATIVE_SOURCE_PUBLISHER = 'PUBLISHER';
/**
* A placeholder for an undefined syndication product.
*/
public const SYNDICATION_PRODUCT_SYNDICATION_PRODUCT_UNSPECIFIED = 'SYNDICATION_PRODUCT_UNSPECIFIED';
/**
* This typically represents a web page.
*/
public const SYNDICATION_PRODUCT_CONTENT = 'CONTENT';
/**
* This represents a mobile property.
*/
public const SYNDICATION_PRODUCT_MOBILE = 'MOBILE';
/**
* This represents video ad formats.
*/
public const SYNDICATION_PRODUCT_VIDEO = 'VIDEO';
/**
* This represents ads shown within games.
*/
public const SYNDICATION_PRODUCT_GAMES = 'GAMES';
protected $collection_key = 'targetingCriterion';
/**
* Proposed flight end time of the deal. This will generally be stored in a
* granularity of a second. A value is not required for Private Auction deals
* or Preferred Deals.
*
* @var string
*/
public $availableEndTime;
/**
* Optional. Proposed flight start time of the deal. This will generally be
* stored in the granularity of one second since deal serving starts at
* seconds boundary. Any time specified with more granularity (for example, in
* milliseconds) will be truncated towards the start of time in seconds.
*
* @var string
*/
public $availableStartTime;
protected $buyerPrivateDataType = PrivateData::class;
protected $buyerPrivateDataDataType = '';
/**
* The product ID from which this deal was created. Note: This field may be
* set only when creating the resource. Modifying this field while updating
* the resource will result in an error.
*
* @var string
*/
public $createProductId;
/**
* Optional. Revision number of the product that the deal was created from. If
* present on create, and the server `product_revision` has advanced since the
* passed-in `create_product_revision`, an `ABORTED` error will be returned.
* Note: This field may be set only when creating the resource. Modifying this
* field while updating the resource will result in an error.
*
* @var string
*/
public $createProductRevision;
/**
* Output only. The time of the deal creation.
*
* @var string
*/
public $createTime;
/**
* Output only. Specifies the creative pre-approval policy.
*
* @var string
*/
public $creativePreApprovalPolicy;
protected $creativeRestrictionsType = CreativeRestrictions::class;
protected $creativeRestrictionsDataType = '';
/**
* Output only. Specifies whether the creative is safeFrame compatible.
*
* @var string
*/
public $creativeSafeFrameCompatibility;
/**
* Output only. A unique deal ID for the deal (server-assigned).
*
* @var string
*/
public $dealId;
protected $dealServingMetadataType = DealServingMetadata::class;
protected $dealServingMetadataDataType = '';
protected $dealTermsType = DealTerms::class;
protected $dealTermsDataType = '';
protected $deliveryControlType = DeliveryControl::class;
protected $deliveryControlDataType = '';
/**
* Description for the deal terms.
*
* @var string
*/
public $description;
/**
* The name of the deal.
*
* @var string
*/
public $displayName;
/**
* Output only. The external deal ID assigned to this deal once the deal is
* finalized. This is the deal ID that shows up in serving/reporting etc.
*
* @var string
*/
public $externalDealId;
/**
* Output only. True, if the buyside inventory setup is complete for this
* deal.
*
* @var bool
*/
public $isSetupComplete;
/**
* Output only. Specifies the creative source for programmatic deals.
* PUBLISHER means creative is provided by seller and ADVERTISER means
* creative is provided by buyer.
*
* @var string
*/
public $programmaticCreativeSource;
/**
* Output only. ID of the proposal that this deal is part of.
*
* @var string
*/
public $proposalId;
protected $sellerContactsType = ContactInformation::class;
protected $sellerContactsDataType = 'array';
/**
* The syndication product associated with the deal. Note: This field may be
* set only when creating the resource. Modifying this field while updating
* the resource will result in an error.
*
* @var string
*/
public $syndicationProduct;
protected $targetingType = MarketplaceTargeting::class;
protected $targetingDataType = '';
protected $targetingCriterionType = TargetingCriteria::class;
protected $targetingCriterionDataType = 'array';
/**
* Output only. The time when the deal was last updated.
*
* @var string
*/
public $updateTime;
/**
* The web property code for the seller copied over from the product.
*
* @var string
*/
public $webPropertyCode;
/**
* Proposed flight end time of the deal. This will generally be stored in a
* granularity of a second. A value is not required for Private Auction deals
* or Preferred Deals.
*
* @param string $availableEndTime
*/
public function setAvailableEndTime($availableEndTime)
{
$this->availableEndTime = $availableEndTime;
}
/**
* @return string
*/
public function getAvailableEndTime()
{
return $this->availableEndTime;
}
/**
* Optional. Proposed flight start time of the deal. This will generally be
* stored in the granularity of one second since deal serving starts at
* seconds boundary. Any time specified with more granularity (for example, in
* milliseconds) will be truncated towards the start of time in seconds.
*
* @param string $availableStartTime
*/
public function setAvailableStartTime($availableStartTime)
{
$this->availableStartTime = $availableStartTime;
}
/**
* @return string
*/
public function getAvailableStartTime()
{
return $this->availableStartTime;
}
/**
* Buyer private data (hidden from seller).
*
* @param PrivateData $buyerPrivateData
*/
public function setBuyerPrivateData(PrivateData $buyerPrivateData)
{
$this->buyerPrivateData = $buyerPrivateData;
}
/**
* @return PrivateData
*/
public function getBuyerPrivateData()
{
return $this->buyerPrivateData;
}
/**
* The product ID from which this deal was created. Note: This field may be
* set only when creating the resource. Modifying this field while updating
* the resource will result in an error.
*
* @param string $createProductId
*/
public function setCreateProductId($createProductId)
{
$this->createProductId = $createProductId;
}
/**
* @return string
*/
public function getCreateProductId()
{
return $this->createProductId;
}
/**
* Optional. Revision number of the product that the deal was created from. If
* present on create, and the server `product_revision` has advanced since the
* passed-in `create_product_revision`, an `ABORTED` error will be returned.
* Note: This field may be set only when creating the resource. Modifying this
* field while updating the resource will result in an error.
*
* @param string $createProductRevision
*/
public function setCreateProductRevision($createProductRevision)
{
$this->createProductRevision = $createProductRevision;
}
/**
* @return string
*/
public function getCreateProductRevision()
{
return $this->createProductRevision;
}
/**
* Output only. The time of the deal creation.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Output only. Specifies the creative pre-approval policy.
*
* Accepted values: CREATIVE_PRE_APPROVAL_POLICY_UNSPECIFIED,
* SELLER_PRE_APPROVAL_REQUIRED, SELLER_PRE_APPROVAL_NOT_REQUIRED
*
* @param self::CREATIVE_PRE_APPROVAL_POLICY_* $creativePreApprovalPolicy
*/
public function setCreativePreApprovalPolicy($creativePreApprovalPolicy)
{
$this->creativePreApprovalPolicy = $creativePreApprovalPolicy;
}
/**
* @return self::CREATIVE_PRE_APPROVAL_POLICY_*
*/
public function getCreativePreApprovalPolicy()
{
return $this->creativePreApprovalPolicy;
}
/**
* Output only. Restricitions about the creatives associated with the deal
* (for example, size) This is available for Programmatic Guaranteed/Preferred
* Deals in Ad Manager.
*
* @param CreativeRestrictions $creativeRestrictions
*/
public function setCreativeRestrictions(CreativeRestrictions $creativeRestrictions)
{
$this->creativeRestrictions = $creativeRestrictions;
}
/**
* @return CreativeRestrictions
*/
public function getCreativeRestrictions()
{
return $this->creativeRestrictions;
}
/**
* Output only. Specifies whether the creative is safeFrame compatible.
*
* Accepted values: CREATIVE_SAFE_FRAME_COMPATIBILITY_UNSPECIFIED, COMPATIBLE,
* INCOMPATIBLE
*
* @param self::CREATIVE_SAFE_FRAME_COMPATIBILITY_* $creativeSafeFrameCompatibility
*/
public function setCreativeSafeFrameCompatibility($creativeSafeFrameCompatibility)
{
$this->creativeSafeFrameCompatibility = $creativeSafeFrameCompatibility;
}
/**
* @return self::CREATIVE_SAFE_FRAME_COMPATIBILITY_*
*/
public function getCreativeSafeFrameCompatibility()
{
return $this->creativeSafeFrameCompatibility;
}
/**
* Output only. A unique deal ID for the deal (server-assigned).
*
* @param string $dealId
*/
public function setDealId($dealId)
{
$this->dealId = $dealId;
}
/**
* @return string
*/
public function getDealId()
{
return $this->dealId;
}
/**
* Output only. Metadata about the serving status of this deal.
*
* @param DealServingMetadata $dealServingMetadata
*/
public function setDealServingMetadata(DealServingMetadata $dealServingMetadata)
{
$this->dealServingMetadata = $dealServingMetadata;
}
/**
* @return DealServingMetadata
*/
public function getDealServingMetadata()
{
return $this->dealServingMetadata;
}
/**
* The negotiable terms of the deal.
*
* @param DealTerms $dealTerms
*/
public function setDealTerms(DealTerms $dealTerms)
{
$this->dealTerms = $dealTerms;
}
/**
* @return DealTerms
*/
public function getDealTerms()
{
return $this->dealTerms;
}
/**
* The set of fields around delivery control that are interesting for a buyer
* to see but are non-negotiable. These are set by the publisher.
*
* @param DeliveryControl $deliveryControl
*/
public function setDeliveryControl(DeliveryControl $deliveryControl)
{
$this->deliveryControl = $deliveryControl;
}
/**
* @return DeliveryControl
*/
public function getDeliveryControl()
{
return $this->deliveryControl;
}
/**
* Description for the deal terms.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* The name of the deal.
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* Output only. The external deal ID assigned to this deal once the deal is
* finalized. This is the deal ID that shows up in serving/reporting etc.
*
* @param string $externalDealId
*/
public function setExternalDealId($externalDealId)
{
$this->externalDealId = $externalDealId;
}
/**
* @return string
*/
public function getExternalDealId()
{
return $this->externalDealId;
}
/**
* Output only. True, if the buyside inventory setup is complete for this
* deal.
*
* @param bool $isSetupComplete
*/
public function setIsSetupComplete($isSetupComplete)
{
$this->isSetupComplete = $isSetupComplete;
}
/**
* @return bool
*/
public function getIsSetupComplete()
{
return $this->isSetupComplete;
}
/**
* Output only. Specifies the creative source for programmatic deals.
* PUBLISHER means creative is provided by seller and ADVERTISER means
* creative is provided by buyer.
*
* Accepted values: PROGRAMMATIC_CREATIVE_SOURCE_UNSPECIFIED, ADVERTISER,
* PUBLISHER
*
* @param self::PROGRAMMATIC_CREATIVE_SOURCE_* $programmaticCreativeSource
*/
public function setProgrammaticCreativeSource($programmaticCreativeSource)
{
$this->programmaticCreativeSource = $programmaticCreativeSource;
}
/**
* @return self::PROGRAMMATIC_CREATIVE_SOURCE_*
*/
public function getProgrammaticCreativeSource()
{
return $this->programmaticCreativeSource;
}
/**
* Output only. ID of the proposal that this deal is part of.
*
* @param string $proposalId
*/
public function setProposalId($proposalId)
{
$this->proposalId = $proposalId;
}
/**
* @return string
*/
public function getProposalId()
{
return $this->proposalId;
}
/**
* Output only. Seller contact information for the deal.
*
* @param ContactInformation[] $sellerContacts
*/
public function setSellerContacts($sellerContacts)
{
$this->sellerContacts = $sellerContacts;
}
/**
* @return ContactInformation[]
*/
public function getSellerContacts()
{
return $this->sellerContacts;
}
/**
* The syndication product associated with the deal. Note: This field may be
* set only when creating the resource. Modifying this field while updating
* the resource will result in an error.
*
* Accepted values: SYNDICATION_PRODUCT_UNSPECIFIED, CONTENT, MOBILE, VIDEO,
* GAMES
*
* @param self::SYNDICATION_PRODUCT_* $syndicationProduct
*/
public function setSyndicationProduct($syndicationProduct)
{
$this->syndicationProduct = $syndicationProduct;
}
/**
* @return self::SYNDICATION_PRODUCT_*
*/
public function getSyndicationProduct()
{
return $this->syndicationProduct;
}
/**
* Output only. Specifies the subset of inventory targeted by the deal.
*
* @param MarketplaceTargeting $targeting
*/
public function setTargeting(MarketplaceTargeting $targeting)
{
$this->targeting = $targeting;
}
/**
* @return MarketplaceTargeting
*/
public function getTargeting()
{
return $this->targeting;
}
/**
* The shared targeting visible to buyers and sellers. Each shared targeting
* entity is AND'd together.
*
* @param TargetingCriteria[] $targetingCriterion
*/
public function setTargetingCriterion($targetingCriterion)
{
$this->targetingCriterion = $targetingCriterion;
}
/**
* @return TargetingCriteria[]
*/
public function getTargetingCriterion()
{
return $this->targetingCriterion;
}
/**
* Output only. The time when the deal was last updated.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
/**
* The web property code for the seller copied over from the product.
*
* @param string $webPropertyCode
*/
public function setWebPropertyCode($webPropertyCode)
{
$this->webPropertyCode = $webPropertyCode;
}
/**
* @return string
*/
public function getWebPropertyCode()
{
return $this->webPropertyCode;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Deal::class, 'Google_Service_AdExchangeBuyerII_Deal');
@@ -0,0 +1,150 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AdExchangeBuyerII;
class DealPauseStatus extends \Google\Model
{
/**
* A placeholder for an undefined buyer/seller role.
*/
public const FIRST_PAUSED_BY_BUYER_SELLER_ROLE_UNSPECIFIED = 'BUYER_SELLER_ROLE_UNSPECIFIED';
/**
* Specifies the role as buyer.
*/
public const FIRST_PAUSED_BY_BUYER = 'BUYER';
/**
* Specifies the role as seller.
*/
public const FIRST_PAUSED_BY_SELLER = 'SELLER';
/**
* The buyer's reason for pausing, if the buyer paused the deal.
*
* @var string
*/
public $buyerPauseReason;
/**
* The role of the person who first paused this deal.
*
* @var string
*/
public $firstPausedBy;
/**
* True, if the buyer has paused the deal unilaterally.
*
* @var bool
*/
public $hasBuyerPaused;
/**
* True, if the seller has paused the deal unilaterally.
*
* @var bool
*/
public $hasSellerPaused;
/**
* The seller's reason for pausing, if the seller paused the deal.
*
* @var string
*/
public $sellerPauseReason;
/**
* The buyer's reason for pausing, if the buyer paused the deal.
*
* @param string $buyerPauseReason
*/
public function setBuyerPauseReason($buyerPauseReason)
{
$this->buyerPauseReason = $buyerPauseReason;
}
/**
* @return string
*/
public function getBuyerPauseReason()
{
return $this->buyerPauseReason;
}
/**
* The role of the person who first paused this deal.
*
* Accepted values: BUYER_SELLER_ROLE_UNSPECIFIED, BUYER, SELLER
*
* @param self::FIRST_PAUSED_BY_* $firstPausedBy
*/
public function setFirstPausedBy($firstPausedBy)
{
$this->firstPausedBy = $firstPausedBy;
}
/**
* @return self::FIRST_PAUSED_BY_*
*/
public function getFirstPausedBy()
{
return $this->firstPausedBy;
}
/**
* True, if the buyer has paused the deal unilaterally.
*
* @param bool $hasBuyerPaused
*/
public function setHasBuyerPaused($hasBuyerPaused)
{
$this->hasBuyerPaused = $hasBuyerPaused;
}
/**
* @return bool
*/
public function getHasBuyerPaused()
{
return $this->hasBuyerPaused;
}
/**
* True, if the seller has paused the deal unilaterally.
*
* @param bool $hasSellerPaused
*/
public function setHasSellerPaused($hasSellerPaused)
{
$this->hasSellerPaused = $hasSellerPaused;
}
/**
* @return bool
*/
public function getHasSellerPaused()
{
return $this->hasSellerPaused;
}
/**
* The seller's reason for pausing, if the seller paused the deal.
*
* @param string $sellerPauseReason
*/
public function setSellerPauseReason($sellerPauseReason)
{
$this->sellerPauseReason = $sellerPauseReason;
}
/**
* @return string
*/
public function getSellerPauseReason()
{
return $this->sellerPauseReason;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DealPauseStatus::class, 'Google_Service_AdExchangeBuyerII_DealPauseStatus');
@@ -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\AdExchangeBuyerII;
class DealServingMetadata extends \Google\Model
{
protected $dealPauseStatusType = DealPauseStatus::class;
protected $dealPauseStatusDataType = '';
/**
* Output only. Tracks which parties (if any) have paused a deal.
*
* @param DealPauseStatus $dealPauseStatus
*/
public function setDealPauseStatus(DealPauseStatus $dealPauseStatus)
{
$this->dealPauseStatus = $dealPauseStatus;
}
/**
* @return DealPauseStatus
*/
public function getDealPauseStatus()
{
return $this->dealPauseStatus;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DealServingMetadata::class, 'Google_Service_AdExchangeBuyerII_DealServingMetadata');
@@ -0,0 +1,210 @@
<?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\AdExchangeBuyerII;
class DealTerms extends \Google\Model
{
/**
* A placeholder for an undefined branding type.
*/
public const BRANDING_TYPE_BRANDING_TYPE_UNSPECIFIED = 'BRANDING_TYPE_UNSPECIFIED';
/**
* Full URL is included in bid requests.
*/
public const BRANDING_TYPE_BRANDED = 'BRANDED';
/**
* A TopLevelDomain or masked URL is sent in bid requests rather than the full
* one.
*/
public const BRANDING_TYPE_SEMI_TRANSPARENT = 'SEMI_TRANSPARENT';
/**
* Visibility of the URL in bid requests. (default: BRANDED)
*
* @var string
*/
public $brandingType;
/**
* Publisher provided description for the terms.
*
* @var string
*/
public $description;
protected $estimatedGrossSpendType = Price::class;
protected $estimatedGrossSpendDataType = '';
/**
* Non-binding estimate of the impressions served per day. Can be set by buyer
* or seller.
*
* @var string
*/
public $estimatedImpressionsPerDay;
protected $guaranteedFixedPriceTermsType = GuaranteedFixedPriceTerms::class;
protected $guaranteedFixedPriceTermsDataType = '';
protected $nonGuaranteedAuctionTermsType = NonGuaranteedAuctionTerms::class;
protected $nonGuaranteedAuctionTermsDataType = '';
protected $nonGuaranteedFixedPriceTermsType = NonGuaranteedFixedPriceTerms::class;
protected $nonGuaranteedFixedPriceTermsDataType = '';
/**
* The time zone name. For deals with Cost Per Day billing, defines the time
* zone used to mark the boundaries of a day. It should be an IANA TZ name,
* such as "America/Los_Angeles". For more information, see
* https://en.wikipedia.org/wiki/List_of_tz_database_time_zones.
*
* @var string
*/
public $sellerTimeZone;
/**
* Visibility of the URL in bid requests. (default: BRANDED)
*
* Accepted values: BRANDING_TYPE_UNSPECIFIED, BRANDED, SEMI_TRANSPARENT
*
* @param self::BRANDING_TYPE_* $brandingType
*/
public function setBrandingType($brandingType)
{
$this->brandingType = $brandingType;
}
/**
* @return self::BRANDING_TYPE_*
*/
public function getBrandingType()
{
return $this->brandingType;
}
/**
* Publisher provided description for the terms.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Non-binding estimate of the estimated gross spend for this deal. Can be set
* by buyer or seller.
*
* @param Price $estimatedGrossSpend
*/
public function setEstimatedGrossSpend(Price $estimatedGrossSpend)
{
$this->estimatedGrossSpend = $estimatedGrossSpend;
}
/**
* @return Price
*/
public function getEstimatedGrossSpend()
{
return $this->estimatedGrossSpend;
}
/**
* Non-binding estimate of the impressions served per day. Can be set by buyer
* or seller.
*
* @param string $estimatedImpressionsPerDay
*/
public function setEstimatedImpressionsPerDay($estimatedImpressionsPerDay)
{
$this->estimatedImpressionsPerDay = $estimatedImpressionsPerDay;
}
/**
* @return string
*/
public function getEstimatedImpressionsPerDay()
{
return $this->estimatedImpressionsPerDay;
}
/**
* The terms for guaranteed fixed price deals.
*
* @param GuaranteedFixedPriceTerms $guaranteedFixedPriceTerms
*/
public function setGuaranteedFixedPriceTerms(GuaranteedFixedPriceTerms $guaranteedFixedPriceTerms)
{
$this->guaranteedFixedPriceTerms = $guaranteedFixedPriceTerms;
}
/**
* @return GuaranteedFixedPriceTerms
*/
public function getGuaranteedFixedPriceTerms()
{
return $this->guaranteedFixedPriceTerms;
}
/**
* The terms for non-guaranteed auction deals.
*
* @param NonGuaranteedAuctionTerms $nonGuaranteedAuctionTerms
*/
public function setNonGuaranteedAuctionTerms(NonGuaranteedAuctionTerms $nonGuaranteedAuctionTerms)
{
$this->nonGuaranteedAuctionTerms = $nonGuaranteedAuctionTerms;
}
/**
* @return NonGuaranteedAuctionTerms
*/
public function getNonGuaranteedAuctionTerms()
{
return $this->nonGuaranteedAuctionTerms;
}
/**
* The terms for non-guaranteed fixed price deals.
*
* @param NonGuaranteedFixedPriceTerms $nonGuaranteedFixedPriceTerms
*/
public function setNonGuaranteedFixedPriceTerms(NonGuaranteedFixedPriceTerms $nonGuaranteedFixedPriceTerms)
{
$this->nonGuaranteedFixedPriceTerms = $nonGuaranteedFixedPriceTerms;
}
/**
* @return NonGuaranteedFixedPriceTerms
*/
public function getNonGuaranteedFixedPriceTerms()
{
return $this->nonGuaranteedFixedPriceTerms;
}
/**
* The time zone name. For deals with Cost Per Day billing, defines the time
* zone used to mark the boundaries of a day. It should be an IANA TZ name,
* such as "America/Los_Angeles". For more information, see
* https://en.wikipedia.org/wiki/List_of_tz_database_time_zones.
*
* @param string $sellerTimeZone
*/
public function setSellerTimeZone($sellerTimeZone)
{
$this->sellerTimeZone = $sellerTimeZone;
}
/**
* @return string
*/
public function getSellerTimeZone()
{
return $this->sellerTimeZone;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DealTerms::class, 'Google_Service_AdExchangeBuyerII_DealTerms');
@@ -0,0 +1,123 @@
<?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\AdExchangeBuyerII;
class DeliveryControl extends \Google\Collection
{
/**
* A placeholder for an undefined creative blocking level.
*/
public const CREATIVE_BLOCKING_LEVEL_CREATIVE_BLOCKING_LEVEL_UNSPECIFIED = 'CREATIVE_BLOCKING_LEVEL_UNSPECIFIED';
/**
* Publisher blocking rules will be applied.
*/
public const CREATIVE_BLOCKING_LEVEL_PUBLISHER_BLOCKING_RULES = 'PUBLISHER_BLOCKING_RULES';
/**
* The Ad Exchange policy blocking rules will be applied.
*/
public const CREATIVE_BLOCKING_LEVEL_ADX_POLICY_BLOCKING_ONLY = 'ADX_POLICY_BLOCKING_ONLY';
/**
* A placeholder for an undefined delivery rate type.
*/
public const DELIVERY_RATE_TYPE_DELIVERY_RATE_TYPE_UNSPECIFIED = 'DELIVERY_RATE_TYPE_UNSPECIFIED';
/**
* Impressions are served uniformly over the life of the deal.
*/
public const DELIVERY_RATE_TYPE_EVENLY = 'EVENLY';
/**
* Impressions are served front-loaded.
*/
public const DELIVERY_RATE_TYPE_FRONT_LOADED = 'FRONT_LOADED';
/**
* Impressions are served as fast as possible.
*/
public const DELIVERY_RATE_TYPE_AS_FAST_AS_POSSIBLE = 'AS_FAST_AS_POSSIBLE';
protected $collection_key = 'frequencyCaps';
/**
* Output only. Specified the creative blocking levels to be applied.
*
* @var string
*/
public $creativeBlockingLevel;
/**
* Output only. Specifies how the impression delivery will be paced.
*
* @var string
*/
public $deliveryRateType;
protected $frequencyCapsType = FrequencyCap::class;
protected $frequencyCapsDataType = 'array';
/**
* Output only. Specified the creative blocking levels to be applied.
*
* Accepted values: CREATIVE_BLOCKING_LEVEL_UNSPECIFIED,
* PUBLISHER_BLOCKING_RULES, ADX_POLICY_BLOCKING_ONLY
*
* @param self::CREATIVE_BLOCKING_LEVEL_* $creativeBlockingLevel
*/
public function setCreativeBlockingLevel($creativeBlockingLevel)
{
$this->creativeBlockingLevel = $creativeBlockingLevel;
}
/**
* @return self::CREATIVE_BLOCKING_LEVEL_*
*/
public function getCreativeBlockingLevel()
{
return $this->creativeBlockingLevel;
}
/**
* Output only. Specifies how the impression delivery will be paced.
*
* Accepted values: DELIVERY_RATE_TYPE_UNSPECIFIED, EVENLY, FRONT_LOADED,
* AS_FAST_AS_POSSIBLE
*
* @param self::DELIVERY_RATE_TYPE_* $deliveryRateType
*/
public function setDeliveryRateType($deliveryRateType)
{
$this->deliveryRateType = $deliveryRateType;
}
/**
* @return self::DELIVERY_RATE_TYPE_*
*/
public function getDeliveryRateType()
{
return $this->deliveryRateType;
}
/**
* Output only. Specifies any frequency caps.
*
* @param FrequencyCap[] $frequencyCaps
*/
public function setFrequencyCaps($frequencyCaps)
{
$this->frequencyCaps = $frequencyCaps;
}
/**
* @return FrequencyCap[]
*/
public function getFrequencyCaps()
{
return $this->frequencyCaps;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DeliveryControl::class, 'Google_Service_AdExchangeBuyerII_DeliveryControl');
@@ -0,0 +1,529 @@
<?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\AdExchangeBuyerII;
class Disapproval extends \Google\Collection
{
/**
* The length of the image animation is longer than allowed.
*/
public const REASON_LENGTH_OF_IMAGE_ANIMATION = 'LENGTH_OF_IMAGE_ANIMATION';
/**
* The click through URL doesn't work properly.
*/
public const REASON_BROKEN_URL = 'BROKEN_URL';
/**
* Something is wrong with the creative itself.
*/
public const REASON_MEDIA_NOT_FUNCTIONAL = 'MEDIA_NOT_FUNCTIONAL';
/**
* The ad makes a fourth party call to an unapproved vendor.
*/
public const REASON_INVALID_FOURTH_PARTY_CALL = 'INVALID_FOURTH_PARTY_CALL';
/**
* The ad targets consumers using remarketing lists and/or collects data for
* subsequent use in retargeting, but does not correctly declare that use.
*/
public const REASON_INCORRECT_REMARKETING_DECLARATION = 'INCORRECT_REMARKETING_DECLARATION';
/**
* Clicking on the ad leads to an error page.
*/
public const REASON_LANDING_PAGE_ERROR = 'LANDING_PAGE_ERROR';
/**
* The ad size when rendered does not match the declaration.
*/
public const REASON_AD_SIZE_DOES_NOT_MATCH_AD_SLOT = 'AD_SIZE_DOES_NOT_MATCH_AD_SLOT';
/**
* Ads with a white background require a border, which was missing.
*/
public const REASON_NO_BORDER = 'NO_BORDER';
/**
* The creative attempts to set cookies from a fourth party that is not
* certified.
*/
public const REASON_FOURTH_PARTY_BROWSER_COOKIES = 'FOURTH_PARTY_BROWSER_COOKIES';
/**
* The creative sets an LSO object.
*/
public const REASON_LSO_OBJECTS = 'LSO_OBJECTS';
/**
* The ad serves a blank.
*/
public const REASON_BLANK_CREATIVE = 'BLANK_CREATIVE';
/**
* The ad uses rotation, but not all destination URLs were declared.
*/
public const REASON_DESTINATION_URLS_UNDECLARED = 'DESTINATION_URLS_UNDECLARED';
/**
* There is a problem with the way the click macro is used.
*/
public const REASON_PROBLEM_WITH_CLICK_MACRO = 'PROBLEM_WITH_CLICK_MACRO';
/**
* The ad technology declaration is not accurate.
*/
public const REASON_INCORRECT_AD_TECHNOLOGY_DECLARATION = 'INCORRECT_AD_TECHNOLOGY_DECLARATION';
/**
* The actual destination URL does not match the declared destination URL.
*/
public const REASON_INCORRECT_DESTINATION_URL_DECLARATION = 'INCORRECT_DESTINATION_URL_DECLARATION';
/**
* The declared expanding direction does not match the actual direction.
*/
public const REASON_EXPANDABLE_INCORRECT_DIRECTION = 'EXPANDABLE_INCORRECT_DIRECTION';
/**
* The ad does not expand in a supported direction.
*/
public const REASON_EXPANDABLE_DIRECTION_NOT_SUPPORTED = 'EXPANDABLE_DIRECTION_NOT_SUPPORTED';
/**
* The ad uses an expandable vendor that is not supported.
*/
public const REASON_EXPANDABLE_INVALID_VENDOR = 'EXPANDABLE_INVALID_VENDOR';
/**
* There was an issue with the expandable ad.
*/
public const REASON_EXPANDABLE_FUNCTIONALITY = 'EXPANDABLE_FUNCTIONALITY';
/**
* The ad uses a video vendor that is not supported.
*/
public const REASON_VIDEO_INVALID_VENDOR = 'VIDEO_INVALID_VENDOR';
/**
* The length of the video ad is not supported.
*/
public const REASON_VIDEO_UNSUPPORTED_LENGTH = 'VIDEO_UNSUPPORTED_LENGTH';
/**
* The format of the video ad is not supported.
*/
public const REASON_VIDEO_UNSUPPORTED_FORMAT = 'VIDEO_UNSUPPORTED_FORMAT';
/**
* There was an issue with the video ad.
*/
public const REASON_VIDEO_FUNCTIONALITY = 'VIDEO_FUNCTIONALITY';
/**
* The landing page does not conform to Ad Exchange policy.
*/
public const REASON_LANDING_PAGE_DISABLED = 'LANDING_PAGE_DISABLED';
/**
* The ad or the landing page may contain malware.
*/
public const REASON_MALWARE_SUSPECTED = 'MALWARE_SUSPECTED';
/**
* The ad contains adult images or video content.
*/
public const REASON_ADULT_IMAGE_OR_VIDEO = 'ADULT_IMAGE_OR_VIDEO';
/**
* The ad contains text that is unclear or inaccurate.
*/
public const REASON_INACCURATE_AD_TEXT = 'INACCURATE_AD_TEXT';
/**
* The ad promotes counterfeit designer goods.
*/
public const REASON_COUNTERFEIT_DESIGNER_GOODS = 'COUNTERFEIT_DESIGNER_GOODS';
/**
* The ad causes a popup window to appear.
*/
public const REASON_POP_UP = 'POP_UP';
/**
* The creative does not follow policies set for the RTB protocol.
*/
public const REASON_INVALID_RTB_PROTOCOL_USAGE = 'INVALID_RTB_PROTOCOL_USAGE';
/**
* The ad contains a URL that uses a numeric IP address for the domain.
*/
public const REASON_RAW_IP_ADDRESS_IN_SNIPPET = 'RAW_IP_ADDRESS_IN_SNIPPET';
/**
* The ad or landing page contains unacceptable content because it initiated a
* software or executable download.
*/
public const REASON_UNACCEPTABLE_CONTENT_SOFTWARE = 'UNACCEPTABLE_CONTENT_SOFTWARE';
/**
* The ad set an unauthorized cookie on a Google domain.
*/
public const REASON_UNAUTHORIZED_COOKIE_ON_GOOGLE_DOMAIN = 'UNAUTHORIZED_COOKIE_ON_GOOGLE_DOMAIN';
/**
* Flash content found when no flash was declared.
*/
public const REASON_UNDECLARED_FLASH_OBJECTS = 'UNDECLARED_FLASH_OBJECTS';
/**
* SSL support declared but not working correctly.
*/
public const REASON_INVALID_SSL_DECLARATION = 'INVALID_SSL_DECLARATION';
/**
* Rich Media - Direct Download in Ad (ex. PDF download).
*/
public const REASON_DIRECT_DOWNLOAD_IN_AD = 'DIRECT_DOWNLOAD_IN_AD';
/**
* Maximum download size exceeded.
*/
public const REASON_MAXIMUM_DOWNLOAD_SIZE_EXCEEDED = 'MAXIMUM_DOWNLOAD_SIZE_EXCEEDED';
/**
* Bad Destination URL: Site Not Crawlable.
*/
public const REASON_DESTINATION_URL_SITE_NOT_CRAWLABLE = 'DESTINATION_URL_SITE_NOT_CRAWLABLE';
/**
* Bad URL: Legal disapproval.
*/
public const REASON_BAD_URL_LEGAL_DISAPPROVAL = 'BAD_URL_LEGAL_DISAPPROVAL';
/**
* Pharmaceuticals, Gambling, Alcohol not allowed and at least one was
* detected.
*/
public const REASON_PHARMA_GAMBLING_ALCOHOL_NOT_ALLOWED = 'PHARMA_GAMBLING_ALCOHOL_NOT_ALLOWED';
/**
* Dynamic DNS at Destination URL.
*/
public const REASON_DYNAMIC_DNS_AT_DESTINATION_URL = 'DYNAMIC_DNS_AT_DESTINATION_URL';
/**
* Poor Image / Video Quality.
*/
public const REASON_POOR_IMAGE_OR_VIDEO_QUALITY = 'POOR_IMAGE_OR_VIDEO_QUALITY';
/**
* For example, Image Trick to Click.
*/
public const REASON_UNACCEPTABLE_IMAGE_CONTENT = 'UNACCEPTABLE_IMAGE_CONTENT';
/**
* Incorrect Image Layout.
*/
public const REASON_INCORRECT_IMAGE_LAYOUT = 'INCORRECT_IMAGE_LAYOUT';
/**
* Irrelevant Image / Video.
*/
public const REASON_IRRELEVANT_IMAGE_OR_VIDEO = 'IRRELEVANT_IMAGE_OR_VIDEO';
/**
* Broken back button.
*/
public const REASON_DESTINATION_SITE_DOES_NOT_ALLOW_GOING_BACK = 'DESTINATION_SITE_DOES_NOT_ALLOW_GOING_BACK';
/**
* Misleading/Inaccurate claims in ads.
*/
public const REASON_MISLEADING_CLAIMS_IN_AD = 'MISLEADING_CLAIMS_IN_AD';
/**
* Restricted Products.
*/
public const REASON_RESTRICTED_PRODUCTS = 'RESTRICTED_PRODUCTS';
/**
* Unacceptable content. For example, malware.
*/
public const REASON_UNACCEPTABLE_CONTENT = 'UNACCEPTABLE_CONTENT';
/**
* The ad automatically redirects to the destination site without a click, or
* reports a click when none were made.
*/
public const REASON_AUTOMATED_AD_CLICKING = 'AUTOMATED_AD_CLICKING';
/**
* The ad uses URL protocols that do not exist or are not allowed on AdX.
*/
public const REASON_INVALID_URL_PROTOCOL = 'INVALID_URL_PROTOCOL';
/**
* Restricted content (for example, alcohol) was found in the ad but not
* declared.
*/
public const REASON_UNDECLARED_RESTRICTED_CONTENT = 'UNDECLARED_RESTRICTED_CONTENT';
/**
* Violation of the remarketing list policy.
*/
public const REASON_INVALID_REMARKETING_LIST_USAGE = 'INVALID_REMARKETING_LIST_USAGE';
/**
* The destination site's robot.txt file prevents it from being crawled.
*/
public const REASON_DESTINATION_SITE_NOT_CRAWLABLE_ROBOTS_TXT = 'DESTINATION_SITE_NOT_CRAWLABLE_ROBOTS_TXT';
/**
* Click to download must link to an app.
*/
public const REASON_CLICK_TO_DOWNLOAD_NOT_AN_APP = 'CLICK_TO_DOWNLOAD_NOT_AN_APP';
/**
* A review extension must be an accurate review.
*/
public const REASON_INACCURATE_REVIEW_EXTENSION = 'INACCURATE_REVIEW_EXTENSION';
/**
* Sexually explicit content.
*/
public const REASON_SEXUALLY_EXPLICIT_CONTENT = 'SEXUALLY_EXPLICIT_CONTENT';
/**
* The ad tries to gain an unfair traffic advantage.
*/
public const REASON_GAINING_AN_UNFAIR_ADVANTAGE = 'GAINING_AN_UNFAIR_ADVANTAGE';
/**
* The ad tries to circumvent Google's advertising systems.
*/
public const REASON_GAMING_THE_GOOGLE_NETWORK = 'GAMING_THE_GOOGLE_NETWORK';
/**
* The ad promotes dangerous knives.
*/
public const REASON_DANGEROUS_PRODUCTS_KNIVES = 'DANGEROUS_PRODUCTS_KNIVES';
/**
* The ad promotes explosives.
*/
public const REASON_DANGEROUS_PRODUCTS_EXPLOSIVES = 'DANGEROUS_PRODUCTS_EXPLOSIVES';
/**
* The ad promotes guns & parts.
*/
public const REASON_DANGEROUS_PRODUCTS_GUNS = 'DANGEROUS_PRODUCTS_GUNS';
/**
* The ad promotes recreational drugs/services & related equipment.
*/
public const REASON_DANGEROUS_PRODUCTS_DRUGS = 'DANGEROUS_PRODUCTS_DRUGS';
/**
* The ad promotes tobacco products/services & related equipment.
*/
public const REASON_DANGEROUS_PRODUCTS_TOBACCO = 'DANGEROUS_PRODUCTS_TOBACCO';
/**
* The ad promotes weapons.
*/
public const REASON_DANGEROUS_PRODUCTS_WEAPONS = 'DANGEROUS_PRODUCTS_WEAPONS';
/**
* The ad is unclear or irrelevant to the destination site.
*/
public const REASON_UNCLEAR_OR_IRRELEVANT_AD = 'UNCLEAR_OR_IRRELEVANT_AD';
/**
* The ad does not meet professional standards.
*/
public const REASON_PROFESSIONAL_STANDARDS = 'PROFESSIONAL_STANDARDS';
/**
* The promotion is unnecessarily difficult to navigate.
*/
public const REASON_DYSFUNCTIONAL_PROMOTION = 'DYSFUNCTIONAL_PROMOTION';
/**
* Violation of Google's policy for interest-based ads.
*/
public const REASON_INVALID_INTEREST_BASED_AD = 'INVALID_INTEREST_BASED_AD';
/**
* Misuse of personal information.
*/
public const REASON_MISUSE_OF_PERSONAL_INFORMATION = 'MISUSE_OF_PERSONAL_INFORMATION';
/**
* Omission of relevant information.
*/
public const REASON_OMISSION_OF_RELEVANT_INFORMATION = 'OMISSION_OF_RELEVANT_INFORMATION';
/**
* Unavailable promotions.
*/
public const REASON_UNAVAILABLE_PROMOTIONS = 'UNAVAILABLE_PROMOTIONS';
/**
* Misleading or unrealistic promotions.
*/
public const REASON_MISLEADING_PROMOTIONS = 'MISLEADING_PROMOTIONS';
/**
* Offensive or inappropriate content.
*/
public const REASON_INAPPROPRIATE_CONTENT = 'INAPPROPRIATE_CONTENT';
/**
* Capitalizing on sensitive events.
*/
public const REASON_SENSITIVE_EVENTS = 'SENSITIVE_EVENTS';
/**
* Shocking content.
*/
public const REASON_SHOCKING_CONTENT = 'SHOCKING_CONTENT';
/**
* Products & Services that enable dishonest behavior.
*/
public const REASON_ENABLING_DISHONEST_BEHAVIOR = 'ENABLING_DISHONEST_BEHAVIOR';
/**
* The ad does not meet technical requirements.
*/
public const REASON_TECHNICAL_REQUIREMENTS = 'TECHNICAL_REQUIREMENTS';
/**
* Restricted political content.
*/
public const REASON_RESTRICTED_POLITICAL_CONTENT = 'RESTRICTED_POLITICAL_CONTENT';
/**
* Unsupported content.
*/
public const REASON_UNSUPPORTED_CONTENT = 'UNSUPPORTED_CONTENT';
/**
* Invalid bidding method.
*/
public const REASON_INVALID_BIDDING_METHOD = 'INVALID_BIDDING_METHOD';
/**
* Video length exceeds limits.
*/
public const REASON_VIDEO_TOO_LONG = 'VIDEO_TOO_LONG';
/**
* Unacceptable content: Japanese healthcare.
*/
public const REASON_VIOLATES_JAPANESE_PHARMACY_LAW = 'VIOLATES_JAPANESE_PHARMACY_LAW';
/**
* Online pharmacy ID required.
*/
public const REASON_UNACCREDITED_PET_PHARMACY = 'UNACCREDITED_PET_PHARMACY';
/**
* Unacceptable content: Abortion.
*/
public const REASON_ABORTION = 'ABORTION';
/**
* Unacceptable content: Birth control.
*/
public const REASON_CONTRACEPTIVES = 'CONTRACEPTIVES';
/**
* Restricted in China.
*/
public const REASON_NEED_CERTIFICATES_TO_ADVERTISE_IN_CHINA = 'NEED_CERTIFICATES_TO_ADVERTISE_IN_CHINA';
/**
* Unacceptable content: Korean healthcare.
*/
public const REASON_KCDSP_REGISTRATION = 'KCDSP_REGISTRATION';
/**
* Non-family safe or adult content.
*/
public const REASON_NOT_FAMILY_SAFE = 'NOT_FAMILY_SAFE';
/**
* Clinical trial recruitment.
*/
public const REASON_CLINICAL_TRIAL_RECRUITMENT = 'CLINICAL_TRIAL_RECRUITMENT';
/**
* Maximum number of HTTP calls exceeded.
*/
public const REASON_MAXIMUM_NUMBER_OF_HTTP_CALLS_EXCEEDED = 'MAXIMUM_NUMBER_OF_HTTP_CALLS_EXCEEDED';
/**
* Maximum number of cookies exceeded.
*/
public const REASON_MAXIMUM_NUMBER_OF_COOKIES_EXCEEDED = 'MAXIMUM_NUMBER_OF_COOKIES_EXCEEDED';
/**
* Financial service ad does not adhere to specifications.
*/
public const REASON_PERSONAL_LOANS = 'PERSONAL_LOANS';
/**
* Flash content was found in an unsupported context.
*/
public const REASON_UNSUPPORTED_FLASH_CONTENT = 'UNSUPPORTED_FLASH_CONTENT';
/**
* Misuse by an Open Measurement SDK script.
*/
public const REASON_MISUSE_BY_OMID_SCRIPT = 'MISUSE_BY_OMID_SCRIPT';
/**
* Use of an Open Measurement SDK vendor not on approved vendor list.
*/
public const REASON_NON_WHITELISTED_OMID_VENDOR = 'NON_WHITELISTED_OMID_VENDOR';
/**
* Unacceptable landing page.
*/
public const REASON_DESTINATION_EXPERIENCE = 'DESTINATION_EXPERIENCE';
/**
* Unsupported language.
*/
public const REASON_UNSUPPORTED_LANGUAGE = 'UNSUPPORTED_LANGUAGE';
/**
* Non-SSL compliant.
*/
public const REASON_NON_SSL_COMPLIANT = 'NON_SSL_COMPLIANT';
/**
* Temporary pausing of creative.
*/
public const REASON_TEMPORARY_PAUSE = 'TEMPORARY_PAUSE';
/**
* Promotes services related to bail bonds.
*/
public const REASON_BAIL_BONDS = 'BAIL_BONDS';
/**
* Promotes speculative and/or experimental medical treatments.
*/
public const REASON_EXPERIMENTAL_MEDICAL_TREATMENT = 'EXPERIMENTAL_MEDICAL_TREATMENT';
protected $collection_key = 'details';
/**
* Additional details about the reason for disapproval.
*
* @var string[]
*/
public $details;
/**
* The categorized reason for disapproval.
*
* @var string
*/
public $reason;
/**
* Additional details about the reason for disapproval.
*
* @param string[] $details
*/
public function setDetails($details)
{
$this->details = $details;
}
/**
* @return string[]
*/
public function getDetails()
{
return $this->details;
}
/**
* The categorized reason for disapproval.
*
* Accepted values: LENGTH_OF_IMAGE_ANIMATION, BROKEN_URL,
* MEDIA_NOT_FUNCTIONAL, INVALID_FOURTH_PARTY_CALL,
* INCORRECT_REMARKETING_DECLARATION, LANDING_PAGE_ERROR,
* AD_SIZE_DOES_NOT_MATCH_AD_SLOT, NO_BORDER, FOURTH_PARTY_BROWSER_COOKIES,
* LSO_OBJECTS, BLANK_CREATIVE, DESTINATION_URLS_UNDECLARED,
* PROBLEM_WITH_CLICK_MACRO, INCORRECT_AD_TECHNOLOGY_DECLARATION,
* INCORRECT_DESTINATION_URL_DECLARATION, EXPANDABLE_INCORRECT_DIRECTION,
* EXPANDABLE_DIRECTION_NOT_SUPPORTED, EXPANDABLE_INVALID_VENDOR,
* EXPANDABLE_FUNCTIONALITY, VIDEO_INVALID_VENDOR, VIDEO_UNSUPPORTED_LENGTH,
* VIDEO_UNSUPPORTED_FORMAT, VIDEO_FUNCTIONALITY, LANDING_PAGE_DISABLED,
* MALWARE_SUSPECTED, ADULT_IMAGE_OR_VIDEO, INACCURATE_AD_TEXT,
* COUNTERFEIT_DESIGNER_GOODS, POP_UP, INVALID_RTB_PROTOCOL_USAGE,
* RAW_IP_ADDRESS_IN_SNIPPET, UNACCEPTABLE_CONTENT_SOFTWARE,
* UNAUTHORIZED_COOKIE_ON_GOOGLE_DOMAIN, UNDECLARED_FLASH_OBJECTS,
* INVALID_SSL_DECLARATION, DIRECT_DOWNLOAD_IN_AD,
* MAXIMUM_DOWNLOAD_SIZE_EXCEEDED, DESTINATION_URL_SITE_NOT_CRAWLABLE,
* BAD_URL_LEGAL_DISAPPROVAL, PHARMA_GAMBLING_ALCOHOL_NOT_ALLOWED,
* DYNAMIC_DNS_AT_DESTINATION_URL, POOR_IMAGE_OR_VIDEO_QUALITY,
* UNACCEPTABLE_IMAGE_CONTENT, INCORRECT_IMAGE_LAYOUT,
* IRRELEVANT_IMAGE_OR_VIDEO, DESTINATION_SITE_DOES_NOT_ALLOW_GOING_BACK,
* MISLEADING_CLAIMS_IN_AD, RESTRICTED_PRODUCTS, UNACCEPTABLE_CONTENT,
* AUTOMATED_AD_CLICKING, INVALID_URL_PROTOCOL, UNDECLARED_RESTRICTED_CONTENT,
* INVALID_REMARKETING_LIST_USAGE, DESTINATION_SITE_NOT_CRAWLABLE_ROBOTS_TXT,
* CLICK_TO_DOWNLOAD_NOT_AN_APP, INACCURATE_REVIEW_EXTENSION,
* SEXUALLY_EXPLICIT_CONTENT, GAINING_AN_UNFAIR_ADVANTAGE,
* GAMING_THE_GOOGLE_NETWORK, DANGEROUS_PRODUCTS_KNIVES,
* DANGEROUS_PRODUCTS_EXPLOSIVES, DANGEROUS_PRODUCTS_GUNS,
* DANGEROUS_PRODUCTS_DRUGS, DANGEROUS_PRODUCTS_TOBACCO,
* DANGEROUS_PRODUCTS_WEAPONS, UNCLEAR_OR_IRRELEVANT_AD,
* PROFESSIONAL_STANDARDS, DYSFUNCTIONAL_PROMOTION, INVALID_INTEREST_BASED_AD,
* MISUSE_OF_PERSONAL_INFORMATION, OMISSION_OF_RELEVANT_INFORMATION,
* UNAVAILABLE_PROMOTIONS, MISLEADING_PROMOTIONS, INAPPROPRIATE_CONTENT,
* SENSITIVE_EVENTS, SHOCKING_CONTENT, ENABLING_DISHONEST_BEHAVIOR,
* TECHNICAL_REQUIREMENTS, RESTRICTED_POLITICAL_CONTENT, UNSUPPORTED_CONTENT,
* INVALID_BIDDING_METHOD, VIDEO_TOO_LONG, VIOLATES_JAPANESE_PHARMACY_LAW,
* UNACCREDITED_PET_PHARMACY, ABORTION, CONTRACEPTIVES,
* NEED_CERTIFICATES_TO_ADVERTISE_IN_CHINA, KCDSP_REGISTRATION,
* NOT_FAMILY_SAFE, CLINICAL_TRIAL_RECRUITMENT,
* MAXIMUM_NUMBER_OF_HTTP_CALLS_EXCEEDED, MAXIMUM_NUMBER_OF_COOKIES_EXCEEDED,
* PERSONAL_LOANS, UNSUPPORTED_FLASH_CONTENT, MISUSE_BY_OMID_SCRIPT,
* NON_WHITELISTED_OMID_VENDOR, DESTINATION_EXPERIENCE, UNSUPPORTED_LANGUAGE,
* NON_SSL_COMPLIANT, TEMPORARY_PAUSE, BAIL_BONDS,
* EXPERIMENTAL_MEDICAL_TREATMENT
*
* @param self::REASON_* $reason
*/
public function setReason($reason)
{
$this->reason = $reason;
}
/**
* @return self::REASON_*
*/
public function getReason()
{
return $this->reason;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Disapproval::class, 'Google_Service_AdExchangeBuyerII_Disapproval');
@@ -0,0 +1,430 @@
<?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\AdExchangeBuyerII;
class FilterSet extends \Google\Collection
{
/**
* A placeholder for an undefined environment; indicates that no environment
* filter will be applied.
*/
public const ENVIRONMENT_ENVIRONMENT_UNSPECIFIED = 'ENVIRONMENT_UNSPECIFIED';
/**
* The ad impression appears on the web.
*/
public const ENVIRONMENT_WEB = 'WEB';
/**
* The ad impression appears in an app.
*/
public const ENVIRONMENT_APP = 'APP';
/**
* A placeholder for an undefined format; indicates that no format filter will
* be applied.
*/
public const FORMAT_FORMAT_UNSPECIFIED = 'FORMAT_UNSPECIFIED';
/**
* The ad impression is a native ad, and display (for example, image) format.
*/
public const FORMAT_NATIVE_DISPLAY = 'NATIVE_DISPLAY';
/**
* The ad impression is a native ad, and video format.
*/
public const FORMAT_NATIVE_VIDEO = 'NATIVE_VIDEO';
/**
* The ad impression is not a native ad, and display (for example, image)
* format.
*/
public const FORMAT_NON_NATIVE_DISPLAY = 'NON_NATIVE_DISPLAY';
/**
* The ad impression is not a native ad, and video format.
*/
public const FORMAT_NON_NATIVE_VIDEO = 'NON_NATIVE_VIDEO';
/**
* A placeholder for an unspecified interval; no time series is applied. All
* rows in response will contain data for the entire requested time range.
*/
public const TIME_SERIES_GRANULARITY_TIME_SERIES_GRANULARITY_UNSPECIFIED = 'TIME_SERIES_GRANULARITY_UNSPECIFIED';
/**
* Indicates that data will be broken down by the hour.
*/
public const TIME_SERIES_GRANULARITY_HOURLY = 'HOURLY';
/**
* Indicates that data will be broken down by the day.
*/
public const TIME_SERIES_GRANULARITY_DAILY = 'DAILY';
protected $collection_key = 'sellerNetworkIds';
protected $absoluteDateRangeType = AbsoluteDateRange::class;
protected $absoluteDateRangeDataType = '';
/**
* The set of dimensions along which to break down the response; may be empty.
* If multiple dimensions are requested, the breakdown is along the Cartesian
* product of the requested dimensions.
*
* @var string[]
*/
public $breakdownDimensions;
/**
* The ID of the creative on which to filter; optional. This field may be set
* only for a filter set that accesses account-level troubleshooting data, for
* example, one whose name matches the `bidders/accounts/filterSets` pattern.
*
* @var string
*/
public $creativeId;
/**
* The ID of the deal on which to filter; optional. This field may be set only
* for a filter set that accesses account-level troubleshooting data, for
* example, one whose name matches the `bidders/accounts/filterSets` pattern.
*
* @var string
*/
public $dealId;
/**
* The environment on which to filter; optional.
*
* @var string
*/
public $environment;
/**
* Creative format bidded on or allowed to bid on, can be empty.
*
* @var string
*/
public $format;
/**
* Creative formats bidded on or allowed to bid on, can be empty. Although
* this field is a list, it can only be populated with a single item. A HTTP
* 400 bad request error will be returned in the response if you specify
* multiple items.
*
* @deprecated
* @var string[]
*/
public $formats;
/**
* A user-defined name of the filter set. Filter set names must be unique
* globally and match one of the patterns: - `bidders/filterSets` (for
* accessing bidder-level troubleshooting data) -
* `bidders/accounts/filterSets` (for accessing account-level troubleshooting
* data) This field is required in create operations.
*
* @var string
*/
public $name;
/**
* The list of platforms on which to filter; may be empty. The filters
* represented by multiple platforms are ORed together (for example, if non-
* empty, results must match any one of the platforms).
*
* @var string[]
*/
public $platforms;
/**
* For Open Bidding partners only. The list of publisher identifiers on which
* to filter; may be empty. The filters represented by multiple publisher
* identifiers are ORed together.
*
* @var string[]
*/
public $publisherIdentifiers;
protected $realtimeTimeRangeType = RealtimeTimeRange::class;
protected $realtimeTimeRangeDataType = '';
protected $relativeDateRangeType = RelativeDateRange::class;
protected $relativeDateRangeDataType = '';
/**
* For Authorized Buyers only. The list of IDs of the seller (publisher)
* networks on which to filter; may be empty. The filters represented by
* multiple seller network IDs are ORed together (for example, if non-empty,
* results must match any one of the publisher networks). See [seller-network-
* ids](https://developers.google.com/authorized-buyers/rtb/downloads/seller-
* network-ids) file for the set of existing seller network IDs.
*
* @var int[]
*/
public $sellerNetworkIds;
/**
* The granularity of time intervals if a time series breakdown is preferred;
* optional.
*
* @var string
*/
public $timeSeriesGranularity;
/**
* An absolute date range, defined by a start date and an end date.
* Interpreted relative to Pacific time zone.
*
* @param AbsoluteDateRange $absoluteDateRange
*/
public function setAbsoluteDateRange(AbsoluteDateRange $absoluteDateRange)
{
$this->absoluteDateRange = $absoluteDateRange;
}
/**
* @return AbsoluteDateRange
*/
public function getAbsoluteDateRange()
{
return $this->absoluteDateRange;
}
/**
* The set of dimensions along which to break down the response; may be empty.
* If multiple dimensions are requested, the breakdown is along the Cartesian
* product of the requested dimensions.
*
* @param string[] $breakdownDimensions
*/
public function setBreakdownDimensions($breakdownDimensions)
{
$this->breakdownDimensions = $breakdownDimensions;
}
/**
* @return string[]
*/
public function getBreakdownDimensions()
{
return $this->breakdownDimensions;
}
/**
* The ID of the creative on which to filter; optional. This field may be set
* only for a filter set that accesses account-level troubleshooting data, for
* example, one whose name matches the `bidders/accounts/filterSets` pattern.
*
* @param string $creativeId
*/
public function setCreativeId($creativeId)
{
$this->creativeId = $creativeId;
}
/**
* @return string
*/
public function getCreativeId()
{
return $this->creativeId;
}
/**
* The ID of the deal on which to filter; optional. This field may be set only
* for a filter set that accesses account-level troubleshooting data, for
* example, one whose name matches the `bidders/accounts/filterSets` pattern.
*
* @param string $dealId
*/
public function setDealId($dealId)
{
$this->dealId = $dealId;
}
/**
* @return string
*/
public function getDealId()
{
return $this->dealId;
}
/**
* The environment on which to filter; optional.
*
* Accepted values: ENVIRONMENT_UNSPECIFIED, WEB, APP
*
* @param self::ENVIRONMENT_* $environment
*/
public function setEnvironment($environment)
{
$this->environment = $environment;
}
/**
* @return self::ENVIRONMENT_*
*/
public function getEnvironment()
{
return $this->environment;
}
/**
* Creative format bidded on or allowed to bid on, can be empty.
*
* Accepted values: FORMAT_UNSPECIFIED, NATIVE_DISPLAY, NATIVE_VIDEO,
* NON_NATIVE_DISPLAY, NON_NATIVE_VIDEO
*
* @param self::FORMAT_* $format
*/
public function setFormat($format)
{
$this->format = $format;
}
/**
* @return self::FORMAT_*
*/
public function getFormat()
{
return $this->format;
}
/**
* Creative formats bidded on or allowed to bid on, can be empty. Although
* this field is a list, it can only be populated with a single item. A HTTP
* 400 bad request error will be returned in the response if you specify
* multiple items.
*
* @deprecated
* @param string[] $formats
*/
public function setFormats($formats)
{
$this->formats = $formats;
}
/**
* @deprecated
* @return string[]
*/
public function getFormats()
{
return $this->formats;
}
/**
* A user-defined name of the filter set. Filter set names must be unique
* globally and match one of the patterns: - `bidders/filterSets` (for
* accessing bidder-level troubleshooting data) -
* `bidders/accounts/filterSets` (for accessing account-level troubleshooting
* data) This field is required in create operations.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The list of platforms on which to filter; may be empty. The filters
* represented by multiple platforms are ORed together (for example, if non-
* empty, results must match any one of the platforms).
*
* @param string[] $platforms
*/
public function setPlatforms($platforms)
{
$this->platforms = $platforms;
}
/**
* @return string[]
*/
public function getPlatforms()
{
return $this->platforms;
}
/**
* For Open Bidding partners only. The list of publisher identifiers on which
* to filter; may be empty. The filters represented by multiple publisher
* identifiers are ORed together.
*
* @param string[] $publisherIdentifiers
*/
public function setPublisherIdentifiers($publisherIdentifiers)
{
$this->publisherIdentifiers = $publisherIdentifiers;
}
/**
* @return string[]
*/
public function getPublisherIdentifiers()
{
return $this->publisherIdentifiers;
}
/**
* An open-ended realtime time range, defined by the aggregation start
* timestamp.
*
* @param RealtimeTimeRange $realtimeTimeRange
*/
public function setRealtimeTimeRange(RealtimeTimeRange $realtimeTimeRange)
{
$this->realtimeTimeRange = $realtimeTimeRange;
}
/**
* @return RealtimeTimeRange
*/
public function getRealtimeTimeRange()
{
return $this->realtimeTimeRange;
}
/**
* A relative date range, defined by an offset from today and a duration.
* Interpreted relative to Pacific time zone.
*
* @param RelativeDateRange $relativeDateRange
*/
public function setRelativeDateRange(RelativeDateRange $relativeDateRange)
{
$this->relativeDateRange = $relativeDateRange;
}
/**
* @return RelativeDateRange
*/
public function getRelativeDateRange()
{
return $this->relativeDateRange;
}
/**
* For Authorized Buyers only. The list of IDs of the seller (publisher)
* networks on which to filter; may be empty. The filters represented by
* multiple seller network IDs are ORed together (for example, if non-empty,
* results must match any one of the publisher networks). See [seller-network-
* ids](https://developers.google.com/authorized-buyers/rtb/downloads/seller-
* network-ids) file for the set of existing seller network IDs.
*
* @param int[] $sellerNetworkIds
*/
public function setSellerNetworkIds($sellerNetworkIds)
{
$this->sellerNetworkIds = $sellerNetworkIds;
}
/**
* @return int[]
*/
public function getSellerNetworkIds()
{
return $this->sellerNetworkIds;
}
/**
* The granularity of time intervals if a time series breakdown is preferred;
* optional.
*
* Accepted values: TIME_SERIES_GRANULARITY_UNSPECIFIED, HOURLY, DAILY
*
* @param self::TIME_SERIES_GRANULARITY_* $timeSeriesGranularity
*/
public function setTimeSeriesGranularity($timeSeriesGranularity)
{
$this->timeSeriesGranularity = $timeSeriesGranularity;
}
/**
* @return self::TIME_SERIES_GRANULARITY_*
*/
public function getTimeSeriesGranularity()
{
return $this->timeSeriesGranularity;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FilterSet::class, 'Google_Service_AdExchangeBuyerII_FilterSet');
@@ -0,0 +1,84 @@
<?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\AdExchangeBuyerII;
class FilteredBidCreativeRow extends \Google\Model
{
protected $bidCountType = MetricValue::class;
protected $bidCountDataType = '';
/**
* The ID of the creative.
*
* @var string
*/
public $creativeId;
protected $rowDimensionsType = RowDimensions::class;
protected $rowDimensionsDataType = '';
/**
* The number of bids with the specified creative.
*
* @param MetricValue $bidCount
*/
public function setBidCount(MetricValue $bidCount)
{
$this->bidCount = $bidCount;
}
/**
* @return MetricValue
*/
public function getBidCount()
{
return $this->bidCount;
}
/**
* The ID of the creative.
*
* @param string $creativeId
*/
public function setCreativeId($creativeId)
{
$this->creativeId = $creativeId;
}
/**
* @return string
*/
public function getCreativeId()
{
return $this->creativeId;
}
/**
* The values of all dimensions associated with metric values in this row.
*
* @param RowDimensions $rowDimensions
*/
public function setRowDimensions(RowDimensions $rowDimensions)
{
$this->rowDimensions = $rowDimensions;
}
/**
* @return RowDimensions
*/
public function getRowDimensions()
{
return $this->rowDimensions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FilteredBidCreativeRow::class, 'Google_Service_AdExchangeBuyerII_FilteredBidCreativeRow');
@@ -0,0 +1,121 @@
<?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\AdExchangeBuyerII;
class FilteredBidDetailRow extends \Google\Model
{
protected $bidCountType = MetricValue::class;
protected $bidCountDataType = '';
/**
* The ID of the detail, can be numeric or text. The associated value can be
* looked up in the dictionary file corresponding to the DetailType in the
* response message.
*
* @var string
*/
public $detail;
/**
* Note: this field will be deprecated, use "detail" field instead. When
* "detail" field represents an integer value, this field is populated as the
* same integer value "detail" field represents, otherwise this field will be
* 0. The ID of the detail. The associated value can be looked up in the
* dictionary file corresponding to the DetailType in the response message.
*
* @deprecated
* @var int
*/
public $detailId;
protected $rowDimensionsType = RowDimensions::class;
protected $rowDimensionsDataType = '';
/**
* The number of bids with the specified detail.
*
* @param MetricValue $bidCount
*/
public function setBidCount(MetricValue $bidCount)
{
$this->bidCount = $bidCount;
}
/**
* @return MetricValue
*/
public function getBidCount()
{
return $this->bidCount;
}
/**
* The ID of the detail, can be numeric or text. The associated value can be
* looked up in the dictionary file corresponding to the DetailType in the
* response message.
*
* @param string $detail
*/
public function setDetail($detail)
{
$this->detail = $detail;
}
/**
* @return string
*/
public function getDetail()
{
return $this->detail;
}
/**
* Note: this field will be deprecated, use "detail" field instead. When
* "detail" field represents an integer value, this field is populated as the
* same integer value "detail" field represents, otherwise this field will be
* 0. The ID of the detail. The associated value can be looked up in the
* dictionary file corresponding to the DetailType in the response message.
*
* @deprecated
* @param int $detailId
*/
public function setDetailId($detailId)
{
$this->detailId = $detailId;
}
/**
* @deprecated
* @return int
*/
public function getDetailId()
{
return $this->detailId;
}
/**
* The values of all dimensions associated with metric values in this row.
*
* @param RowDimensions $rowDimensions
*/
public function setRowDimensions(RowDimensions $rowDimensions)
{
$this->rowDimensions = $rowDimensions;
}
/**
* @return RowDimensions
*/
public function getRowDimensions()
{
return $this->rowDimensions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FilteredBidDetailRow::class, 'Google_Service_AdExchangeBuyerII_FilteredBidDetailRow');
@@ -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\AdExchangeBuyerII;
class FirstPartyMobileApplicationTargeting extends \Google\Collection
{
protected $collection_key = 'targetedAppIds';
/**
* A list of application IDs to be excluded.
*
* @var string[]
*/
public $excludedAppIds;
/**
* A list of application IDs to be included.
*
* @var string[]
*/
public $targetedAppIds;
/**
* A list of application IDs to be excluded.
*
* @param string[] $excludedAppIds
*/
public function setExcludedAppIds($excludedAppIds)
{
$this->excludedAppIds = $excludedAppIds;
}
/**
* @return string[]
*/
public function getExcludedAppIds()
{
return $this->excludedAppIds;
}
/**
* A list of application IDs to be included.
*
* @param string[] $targetedAppIds
*/
public function setTargetedAppIds($targetedAppIds)
{
$this->targetedAppIds = $targetedAppIds;
}
/**
* @return string[]
*/
public function getTargetedAppIds()
{
return $this->targetedAppIds;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FirstPartyMobileApplicationTargeting::class, 'Google_Service_AdExchangeBuyerII_FirstPartyMobileApplicationTargeting');
@@ -0,0 +1,138 @@
<?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\AdExchangeBuyerII;
class FrequencyCap extends \Google\Model
{
/**
* A placeholder for an undefined time unit type. This just indicates the
* variable with this value hasn't been initialized.
*/
public const TIME_UNIT_TYPE_TIME_UNIT_TYPE_UNSPECIFIED = 'TIME_UNIT_TYPE_UNSPECIFIED';
/**
* Minute
*/
public const TIME_UNIT_TYPE_MINUTE = 'MINUTE';
/**
* Hour
*/
public const TIME_UNIT_TYPE_HOUR = 'HOUR';
/**
* Day
*/
public const TIME_UNIT_TYPE_DAY = 'DAY';
/**
* Week
*/
public const TIME_UNIT_TYPE_WEEK = 'WEEK';
/**
* Month
*/
public const TIME_UNIT_TYPE_MONTH = 'MONTH';
/**
* Lifetime
*/
public const TIME_UNIT_TYPE_LIFETIME = 'LIFETIME';
/**
* Pod
*/
public const TIME_UNIT_TYPE_POD = 'POD';
/**
* Stream
*/
public const TIME_UNIT_TYPE_STREAM = 'STREAM';
/**
* The maximum number of impressions that can be served to a user within the
* specified time period.
*
* @var int
*/
public $maxImpressions;
/**
* The amount of time, in the units specified by time_unit_type. Defines the
* amount of time over which impressions per user are counted and capped.
*
* @var int
*/
public $numTimeUnits;
/**
* The time unit. Along with num_time_units defines the amount of time over
* which impressions per user are counted and capped.
*
* @var string
*/
public $timeUnitType;
/**
* The maximum number of impressions that can be served to a user within the
* specified time period.
*
* @param int $maxImpressions
*/
public function setMaxImpressions($maxImpressions)
{
$this->maxImpressions = $maxImpressions;
}
/**
* @return int
*/
public function getMaxImpressions()
{
return $this->maxImpressions;
}
/**
* The amount of time, in the units specified by time_unit_type. Defines the
* amount of time over which impressions per user are counted and capped.
*
* @param int $numTimeUnits
*/
public function setNumTimeUnits($numTimeUnits)
{
$this->numTimeUnits = $numTimeUnits;
}
/**
* @return int
*/
public function getNumTimeUnits()
{
return $this->numTimeUnits;
}
/**
* The time unit. Along with num_time_units defines the amount of time over
* which impressions per user are counted and capped.
*
* Accepted values: TIME_UNIT_TYPE_UNSPECIFIED, MINUTE, HOUR, DAY, WEEK,
* MONTH, LIFETIME, POD, STREAM
*
* @param self::TIME_UNIT_TYPE_* $timeUnitType
*/
public function setTimeUnitType($timeUnitType)
{
$this->timeUnitType = $timeUnitType;
}
/**
* @return self::TIME_UNIT_TYPE_*
*/
public function getTimeUnitType()
{
return $this->timeUnitType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FrequencyCap::class, 'Google_Service_AdExchangeBuyerII_FrequencyCap');
@@ -0,0 +1,207 @@
<?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\AdExchangeBuyerII;
class GuaranteedFixedPriceTerms extends \Google\Collection
{
/**
* An unspecified reservation type.
*/
public const RESERVATION_TYPE_RESERVATION_TYPE_UNSPECIFIED = 'RESERVATION_TYPE_UNSPECIFIED';
/**
* Non-sponsorship deal.
*/
public const RESERVATION_TYPE_STANDARD = 'STANDARD';
/**
* Sponsorship deals don't have impression goal (guaranteed_looks) and they
* are served based on the flight dates. For CPM Sponsorship deals,
* impression_cap is the lifetime impression limit.
*/
public const RESERVATION_TYPE_SPONSORSHIP = 'SPONSORSHIP';
protected $collection_key = 'fixedPrices';
protected $fixedPricesType = PricePerBuyer::class;
protected $fixedPricesDataType = 'array';
/**
* Guaranteed impressions as a percentage. This is the percentage of
* guaranteed looks that the buyer is guaranteeing to buy.
*
* @var string
*/
public $guaranteedImpressions;
/**
* Count of guaranteed looks. Required for deal, optional for product. For CPD
* deals, buyer changes to guaranteed_looks will be ignored.
*
* @var string
*/
public $guaranteedLooks;
/**
* The lifetime impression cap for CPM sponsorship deals. The deal will stop
* serving when the cap is reached.
*
* @var string
*/
public $impressionCap;
/**
* Daily minimum looks for CPD deal types. For CPD deals, buyer should
* negotiate on this field instead of guaranteed_looks.
*
* @var string
*/
public $minimumDailyLooks;
/**
* For sponsorship deals, this is the percentage of the seller's eligible
* impressions that the deal will serve until the cap is reached.
*
* @var string
*/
public $percentShareOfVoice;
/**
* The reservation type for a Programmatic Guaranteed deal. This indicates
* whether the number of impressions is fixed, or a percent of available
* impressions. If not specified, the default reservation type is STANDARD.
*
* @var string
*/
public $reservationType;
/**
* Fixed price for the specified buyer.
*
* @param PricePerBuyer[] $fixedPrices
*/
public function setFixedPrices($fixedPrices)
{
$this->fixedPrices = $fixedPrices;
}
/**
* @return PricePerBuyer[]
*/
public function getFixedPrices()
{
return $this->fixedPrices;
}
/**
* Guaranteed impressions as a percentage. This is the percentage of
* guaranteed looks that the buyer is guaranteeing to buy.
*
* @param string $guaranteedImpressions
*/
public function setGuaranteedImpressions($guaranteedImpressions)
{
$this->guaranteedImpressions = $guaranteedImpressions;
}
/**
* @return string
*/
public function getGuaranteedImpressions()
{
return $this->guaranteedImpressions;
}
/**
* Count of guaranteed looks. Required for deal, optional for product. For CPD
* deals, buyer changes to guaranteed_looks will be ignored.
*
* @param string $guaranteedLooks
*/
public function setGuaranteedLooks($guaranteedLooks)
{
$this->guaranteedLooks = $guaranteedLooks;
}
/**
* @return string
*/
public function getGuaranteedLooks()
{
return $this->guaranteedLooks;
}
/**
* The lifetime impression cap for CPM sponsorship deals. The deal will stop
* serving when the cap is reached.
*
* @param string $impressionCap
*/
public function setImpressionCap($impressionCap)
{
$this->impressionCap = $impressionCap;
}
/**
* @return string
*/
public function getImpressionCap()
{
return $this->impressionCap;
}
/**
* Daily minimum looks for CPD deal types. For CPD deals, buyer should
* negotiate on this field instead of guaranteed_looks.
*
* @param string $minimumDailyLooks
*/
public function setMinimumDailyLooks($minimumDailyLooks)
{
$this->minimumDailyLooks = $minimumDailyLooks;
}
/**
* @return string
*/
public function getMinimumDailyLooks()
{
return $this->minimumDailyLooks;
}
/**
* For sponsorship deals, this is the percentage of the seller's eligible
* impressions that the deal will serve until the cap is reached.
*
* @param string $percentShareOfVoice
*/
public function setPercentShareOfVoice($percentShareOfVoice)
{
$this->percentShareOfVoice = $percentShareOfVoice;
}
/**
* @return string
*/
public function getPercentShareOfVoice()
{
return $this->percentShareOfVoice;
}
/**
* The reservation type for a Programmatic Guaranteed deal. This indicates
* whether the number of impressions is fixed, or a percent of available
* impressions. If not specified, the default reservation type is STANDARD.
*
* Accepted values: RESERVATION_TYPE_UNSPECIFIED, STANDARD, SPONSORSHIP
*
* @param self::RESERVATION_TYPE_* $reservationType
*/
public function setReservationType($reservationType)
{
$this->reservationType = $reservationType;
}
/**
* @return self::RESERVATION_TYPE_*
*/
public function getReservationType()
{
return $this->reservationType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GuaranteedFixedPriceTerms::class, 'Google_Service_AdExchangeBuyerII_GuaranteedFixedPriceTerms');
@@ -0,0 +1,92 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AdExchangeBuyerII;
class HtmlContent extends \Google\Model
{
/**
* The height of the HTML snippet in pixels.
*
* @var int
*/
public $height;
/**
* The HTML snippet that displays the ad when inserted in the web page.
*
* @var string
*/
public $snippet;
/**
* The width of the HTML snippet in pixels.
*
* @var int
*/
public $width;
/**
* The height of the HTML snippet in pixels.
*
* @param int $height
*/
public function setHeight($height)
{
$this->height = $height;
}
/**
* @return int
*/
public function getHeight()
{
return $this->height;
}
/**
* The HTML snippet that displays the ad when inserted in the web page.
*
* @param string $snippet
*/
public function setSnippet($snippet)
{
$this->snippet = $snippet;
}
/**
* @return string
*/
public function getSnippet()
{
return $this->snippet;
}
/**
* The width of the HTML snippet in pixels.
*
* @param int $width
*/
public function setWidth($width)
{
$this->width = $width;
}
/**
* @return int
*/
public function getWidth()
{
return $this->width;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(HtmlContent::class, 'Google_Service_AdExchangeBuyerII_HtmlContent');
@@ -0,0 +1,92 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AdExchangeBuyerII;
class Image extends \Google\Model
{
/**
* Image height in pixels.
*
* @var int
*/
public $height;
/**
* The URL of the image.
*
* @var string
*/
public $url;
/**
* Image width in pixels.
*
* @var int
*/
public $width;
/**
* Image height in pixels.
*
* @param int $height
*/
public function setHeight($height)
{
$this->height = $height;
}
/**
* @return int
*/
public function getHeight()
{
return $this->height;
}
/**
* The URL of the image.
*
* @param string $url
*/
public function setUrl($url)
{
$this->url = $url;
}
/**
* @return string
*/
public function getUrl()
{
return $this->url;
}
/**
* Image width in pixels.
*
* @param int $width
*/
public function setWidth($width)
{
$this->width = $width;
}
/**
* @return int
*/
public function getWidth()
{
return $this->width;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Image::class, 'Google_Service_AdExchangeBuyerII_Image');
@@ -0,0 +1,138 @@
<?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\AdExchangeBuyerII;
class ImpressionMetricsRow extends \Google\Model
{
protected $availableImpressionsType = MetricValue::class;
protected $availableImpressionsDataType = '';
protected $bidRequestsType = MetricValue::class;
protected $bidRequestsDataType = '';
protected $inventoryMatchesType = MetricValue::class;
protected $inventoryMatchesDataType = '';
protected $responsesWithBidsType = MetricValue::class;
protected $responsesWithBidsDataType = '';
protected $rowDimensionsType = RowDimensions::class;
protected $rowDimensionsDataType = '';
protected $successfulResponsesType = MetricValue::class;
protected $successfulResponsesDataType = '';
/**
* The number of impressions available to the buyer on Ad Exchange. In some
* cases this value may be unavailable.
*
* @param MetricValue $availableImpressions
*/
public function setAvailableImpressions(MetricValue $availableImpressions)
{
$this->availableImpressions = $availableImpressions;
}
/**
* @return MetricValue
*/
public function getAvailableImpressions()
{
return $this->availableImpressions;
}
/**
* The number of impressions for which Ad Exchange sent the buyer a bid
* request.
*
* @param MetricValue $bidRequests
*/
public function setBidRequests(MetricValue $bidRequests)
{
$this->bidRequests = $bidRequests;
}
/**
* @return MetricValue
*/
public function getBidRequests()
{
return $this->bidRequests;
}
/**
* The number of impressions that match the buyer's inventory pretargeting.
*
* @param MetricValue $inventoryMatches
*/
public function setInventoryMatches(MetricValue $inventoryMatches)
{
$this->inventoryMatches = $inventoryMatches;
}
/**
* @return MetricValue
*/
public function getInventoryMatches()
{
return $this->inventoryMatches;
}
/**
* The number of impressions for which Ad Exchange received a response from
* the buyer that contained at least one applicable bid.
*
* @param MetricValue $responsesWithBids
*/
public function setResponsesWithBids(MetricValue $responsesWithBids)
{
$this->responsesWithBids = $responsesWithBids;
}
/**
* @return MetricValue
*/
public function getResponsesWithBids()
{
return $this->responsesWithBids;
}
/**
* The values of all dimensions associated with metric values in this row.
*
* @param RowDimensions $rowDimensions
*/
public function setRowDimensions(RowDimensions $rowDimensions)
{
$this->rowDimensions = $rowDimensions;
}
/**
* @return RowDimensions
*/
public function getRowDimensions()
{
return $this->rowDimensions;
}
/**
* The number of impressions for which the buyer successfully sent a response
* to Ad Exchange.
*
* @param MetricValue $successfulResponses
*/
public function setSuccessfulResponses(MetricValue $successfulResponses)
{
$this->successfulResponses = $successfulResponses;
}
/**
* @return MetricValue
*/
public function getSuccessfulResponses()
{
return $this->successfulResponses;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ImpressionMetricsRow::class, 'Google_Service_AdExchangeBuyerII_ImpressionMetricsRow');
@@ -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\AdExchangeBuyerII;
class InventorySizeTargeting extends \Google\Collection
{
protected $collection_key = 'targetedInventorySizes';
protected $excludedInventorySizesType = AdSize::class;
protected $excludedInventorySizesDataType = 'array';
protected $targetedInventorySizesType = AdSize::class;
protected $targetedInventorySizesDataType = 'array';
/**
* A list of inventory sizes to be excluded.
*
* @param AdSize[] $excludedInventorySizes
*/
public function setExcludedInventorySizes($excludedInventorySizes)
{
$this->excludedInventorySizes = $excludedInventorySizes;
}
/**
* @return AdSize[]
*/
public function getExcludedInventorySizes()
{
return $this->excludedInventorySizes;
}
/**
* A list of inventory sizes to be included.
*
* @param AdSize[] $targetedInventorySizes
*/
public function setTargetedInventorySizes($targetedInventorySizes)
{
$this->targetedInventorySizes = $targetedInventorySizes;
}
/**
* @return AdSize[]
*/
public function getTargetedInventorySizes()
{
return $this->targetedInventorySizes;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(InventorySizeTargeting::class, 'Google_Service_AdExchangeBuyerII_InventorySizeTargeting');
@@ -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\AdExchangeBuyerII;
class ListBidMetricsResponse extends \Google\Collection
{
protected $collection_key = 'bidMetricsRows';
protected $bidMetricsRowsType = BidMetricsRow::class;
protected $bidMetricsRowsDataType = 'array';
/**
* A token to retrieve the next page of results. Pass this value in the
* ListBidMetricsRequest.pageToken field in the subsequent call to the
* bidMetrics.list method to retrieve the next page of results.
*
* @var string
*/
public $nextPageToken;
/**
* List of rows, each containing a set of bid metrics.
*
* @param BidMetricsRow[] $bidMetricsRows
*/
public function setBidMetricsRows($bidMetricsRows)
{
$this->bidMetricsRows = $bidMetricsRows;
}
/**
* @return BidMetricsRow[]
*/
public function getBidMetricsRows()
{
return $this->bidMetricsRows;
}
/**
* A token to retrieve the next page of results. Pass this value in the
* ListBidMetricsRequest.pageToken field in the subsequent call to the
* bidMetrics.list method to retrieve the next page of results.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListBidMetricsResponse::class, 'Google_Service_AdExchangeBuyerII_ListBidMetricsResponse');
@@ -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\AdExchangeBuyerII;
class ListBidResponseErrorsResponse extends \Google\Collection
{
protected $collection_key = 'calloutStatusRows';
protected $calloutStatusRowsType = CalloutStatusRow::class;
protected $calloutStatusRowsDataType = 'array';
/**
* A token to retrieve the next page of results. Pass this value in the
* ListBidResponseErrorsRequest.pageToken field in the subsequent call to the
* bidResponseErrors.list method to retrieve the next page of results.
*
* @var string
*/
public $nextPageToken;
/**
* List of rows, with counts of bid responses aggregated by callout status.
*
* @param CalloutStatusRow[] $calloutStatusRows
*/
public function setCalloutStatusRows($calloutStatusRows)
{
$this->calloutStatusRows = $calloutStatusRows;
}
/**
* @return CalloutStatusRow[]
*/
public function getCalloutStatusRows()
{
return $this->calloutStatusRows;
}
/**
* A token to retrieve the next page of results. Pass this value in the
* ListBidResponseErrorsRequest.pageToken field in the subsequent call to the
* bidResponseErrors.list method to retrieve the next page of results.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListBidResponseErrorsResponse::class, 'Google_Service_AdExchangeBuyerII_ListBidResponseErrorsResponse');
@@ -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\AdExchangeBuyerII;
class ListBidResponsesWithoutBidsResponse extends \Google\Collection
{
protected $collection_key = 'bidResponseWithoutBidsStatusRows';
protected $bidResponseWithoutBidsStatusRowsType = BidResponseWithoutBidsStatusRow::class;
protected $bidResponseWithoutBidsStatusRowsDataType = 'array';
/**
* A token to retrieve the next page of results. Pass this value in the
* ListBidResponsesWithoutBidsRequest.pageToken field in the subsequent call
* to the bidResponsesWithoutBids.list method to retrieve the next page of
* results.
*
* @var string
*/
public $nextPageToken;
/**
* List of rows, with counts of bid responses without bids aggregated by
* status.
*
* @param BidResponseWithoutBidsStatusRow[] $bidResponseWithoutBidsStatusRows
*/
public function setBidResponseWithoutBidsStatusRows($bidResponseWithoutBidsStatusRows)
{
$this->bidResponseWithoutBidsStatusRows = $bidResponseWithoutBidsStatusRows;
}
/**
* @return BidResponseWithoutBidsStatusRow[]
*/
public function getBidResponseWithoutBidsStatusRows()
{
return $this->bidResponseWithoutBidsStatusRows;
}
/**
* A token to retrieve the next page of results. Pass this value in the
* ListBidResponsesWithoutBidsRequest.pageToken field in the subsequent call
* to the bidResponsesWithoutBids.list method to retrieve the next page of
* results.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListBidResponsesWithoutBidsResponse::class, 'Google_Service_AdExchangeBuyerII_ListBidResponsesWithoutBidsResponse');
@@ -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\AdExchangeBuyerII;
class ListClientUserInvitationsResponse extends \Google\Collection
{
protected $collection_key = 'invitations';
protected $invitationsType = ClientUserInvitation::class;
protected $invitationsDataType = 'array';
/**
* A token to retrieve the next page of results. Pass this value in the
* ListClientUserInvitationsRequest.pageToken field in the subsequent call to
* the clients.invitations.list method to retrieve the next page of results.
*
* @var string
*/
public $nextPageToken;
/**
* The returned list of client users.
*
* @param ClientUserInvitation[] $invitations
*/
public function setInvitations($invitations)
{
$this->invitations = $invitations;
}
/**
* @return ClientUserInvitation[]
*/
public function getInvitations()
{
return $this->invitations;
}
/**
* A token to retrieve the next page of results. Pass this value in the
* ListClientUserInvitationsRequest.pageToken field in the subsequent call to
* the clients.invitations.list method to retrieve the next page of results.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListClientUserInvitationsResponse::class, 'Google_Service_AdExchangeBuyerII_ListClientUserInvitationsResponse');
@@ -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\AdExchangeBuyerII;
class ListClientUsersResponse extends \Google\Collection
{
protected $collection_key = 'users';
/**
* A token to retrieve the next page of results. Pass this value in the
* ListClientUsersRequest.pageToken field in the subsequent call to the
* clients.invitations.list method to retrieve the next page of results.
*
* @var string
*/
public $nextPageToken;
protected $usersType = ClientUser::class;
protected $usersDataType = 'array';
/**
* A token to retrieve the next page of results. Pass this value in the
* ListClientUsersRequest.pageToken field in the subsequent call to the
* clients.invitations.list method to retrieve the next page of results.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* The returned list of client users.
*
* @param ClientUser[] $users
*/
public function setUsers($users)
{
$this->users = $users;
}
/**
* @return ClientUser[]
*/
public function getUsers()
{
return $this->users;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListClientUsersResponse::class, 'Google_Service_AdExchangeBuyerII_ListClientUsersResponse');
@@ -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\AdExchangeBuyerII;
class ListClientsResponse extends \Google\Collection
{
protected $collection_key = 'clients';
protected $clientsType = Client::class;
protected $clientsDataType = 'array';
/**
* A token to retrieve the next page of results. Pass this value in the
* ListClientsRequest.pageToken field in the subsequent call to the
* accounts.clients.list method to retrieve the next page of results.
*
* @var string
*/
public $nextPageToken;
/**
* The returned list of clients.
*
* @param Client[] $clients
*/
public function setClients($clients)
{
$this->clients = $clients;
}
/**
* @return Client[]
*/
public function getClients()
{
return $this->clients;
}
/**
* A token to retrieve the next page of results. Pass this value in the
* ListClientsRequest.pageToken field in the subsequent call to the
* accounts.clients.list method to retrieve the next page of results.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListClientsResponse::class, 'Google_Service_AdExchangeBuyerII_ListClientsResponse');
@@ -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\AdExchangeBuyerII;
class ListCreativeStatusBreakdownByCreativeResponse extends \Google\Collection
{
protected $collection_key = 'filteredBidCreativeRows';
protected $filteredBidCreativeRowsType = FilteredBidCreativeRow::class;
protected $filteredBidCreativeRowsDataType = 'array';
/**
* A token to retrieve the next page of results. Pass this value in the
* ListCreativeStatusBreakdownByCreativeRequest.pageToken field in the
* subsequent call to the filteredBids.creatives.list method to retrieve the
* next page of results.
*
* @var string
*/
public $nextPageToken;
/**
* List of rows, with counts of bids with a given creative status aggregated
* by creative.
*
* @param FilteredBidCreativeRow[] $filteredBidCreativeRows
*/
public function setFilteredBidCreativeRows($filteredBidCreativeRows)
{
$this->filteredBidCreativeRows = $filteredBidCreativeRows;
}
/**
* @return FilteredBidCreativeRow[]
*/
public function getFilteredBidCreativeRows()
{
return $this->filteredBidCreativeRows;
}
/**
* A token to retrieve the next page of results. Pass this value in the
* ListCreativeStatusBreakdownByCreativeRequest.pageToken field in the
* subsequent call to the filteredBids.creatives.list method to retrieve the
* next page of results.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListCreativeStatusBreakdownByCreativeResponse::class, 'Google_Service_AdExchangeBuyerII_ListCreativeStatusBreakdownByCreativeResponse');
@@ -0,0 +1,161 @@
<?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\AdExchangeBuyerII;
class ListCreativeStatusBreakdownByDetailResponse extends \Google\Collection
{
/**
* A placeholder for an undefined status. This value will never be returned in
* responses.
*/
public const DETAIL_TYPE_DETAIL_TYPE_UNSPECIFIED = 'DETAIL_TYPE_UNSPECIFIED';
/**
* Indicates that the detail ID refers to a creative attribute; see
* [publisher-excludable-creative-
* attributes](https://developers.google.com/authorized-
* buyers/rtb/downloads/publisher-excludable-creative-attributes).
*/
public const DETAIL_TYPE_CREATIVE_ATTRIBUTE = 'CREATIVE_ATTRIBUTE';
/**
* Indicates that the detail ID refers to a vendor; see
* [vendors](https://developers.google.com/authorized-
* buyers/rtb/downloads/vendors). This namespace is different from that of the
* `ATP_VENDOR` detail type.
*/
public const DETAIL_TYPE_VENDOR = 'VENDOR';
/**
* Indicates that the detail ID refers to a sensitive category; see [ad-
* sensitive-categories](https://developers.google.com/authorized-
* buyers/rtb/downloads/ad-sensitive-categories).
*/
public const DETAIL_TYPE_SENSITIVE_CATEGORY = 'SENSITIVE_CATEGORY';
/**
* Indicates that the detail ID refers to a product category; see [ad-product-
* categories](https://developers.google.com/authorized-
* buyers/rtb/downloads/ad-product-categories).
*/
public const DETAIL_TYPE_PRODUCT_CATEGORY = 'PRODUCT_CATEGORY';
/**
* Indicates that the detail ID refers to a disapproval reason; see
* DisapprovalReason enum in [snippet-status-report-
* proto](https://developers.google.com/authorized-
* buyers/rtb/downloads/snippet-status-report-proto).
*/
public const DETAIL_TYPE_DISAPPROVAL_REASON = 'DISAPPROVAL_REASON';
/**
* Indicates that the detail ID refers to a policy topic.
*/
public const DETAIL_TYPE_POLICY_TOPIC = 'POLICY_TOPIC';
/**
* Indicates that the detail ID refers to an ad technology provider (ATP); see
* [providers] (https://storage.googleapis.com/adx-rtb-
* dictionaries/providers.csv). This namespace is different from the `VENDOR`
* detail type; see [ad technology
* providers](https://support.google.com/admanager/answer/9012903) for more
* information.
*/
public const DETAIL_TYPE_ATP_VENDOR = 'ATP_VENDOR';
/**
* Indicates that the detail string refers the domain of an unknown vendor.
*/
public const DETAIL_TYPE_VENDOR_DOMAIN = 'VENDOR_DOMAIN';
/**
* Indicates that the detail ID refers an IAB GVL ID which Google did not
* detect in the latest TCF Vendor List. See [Global Vendor List]
* (https://vendor-list.consensu.org/v2/vendor-list.json)
*/
public const DETAIL_TYPE_GVL_ID = 'GVL_ID';
protected $collection_key = 'filteredBidDetailRows';
/**
* The type of detail that the detail IDs represent.
*
* @var string
*/
public $detailType;
protected $filteredBidDetailRowsType = FilteredBidDetailRow::class;
protected $filteredBidDetailRowsDataType = 'array';
/**
* A token to retrieve the next page of results. Pass this value in the
* ListCreativeStatusBreakdownByDetailRequest.pageToken field in the
* subsequent call to the filteredBids.details.list method to retrieve the
* next page of results.
*
* @var string
*/
public $nextPageToken;
/**
* The type of detail that the detail IDs represent.
*
* Accepted values: DETAIL_TYPE_UNSPECIFIED, CREATIVE_ATTRIBUTE, VENDOR,
* SENSITIVE_CATEGORY, PRODUCT_CATEGORY, DISAPPROVAL_REASON, POLICY_TOPIC,
* ATP_VENDOR, VENDOR_DOMAIN, GVL_ID
*
* @param self::DETAIL_TYPE_* $detailType
*/
public function setDetailType($detailType)
{
$this->detailType = $detailType;
}
/**
* @return self::DETAIL_TYPE_*
*/
public function getDetailType()
{
return $this->detailType;
}
/**
* List of rows, with counts of bids with a given creative status aggregated
* by detail.
*
* @param FilteredBidDetailRow[] $filteredBidDetailRows
*/
public function setFilteredBidDetailRows($filteredBidDetailRows)
{
$this->filteredBidDetailRows = $filteredBidDetailRows;
}
/**
* @return FilteredBidDetailRow[]
*/
public function getFilteredBidDetailRows()
{
return $this->filteredBidDetailRows;
}
/**
* A token to retrieve the next page of results. Pass this value in the
* ListCreativeStatusBreakdownByDetailRequest.pageToken field in the
* subsequent call to the filteredBids.details.list method to retrieve the
* next page of results.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListCreativeStatusBreakdownByDetailResponse::class, 'Google_Service_AdExchangeBuyerII_ListCreativeStatusBreakdownByDetailResponse');
@@ -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\AdExchangeBuyerII;
class ListCreativesResponse extends \Google\Collection
{
protected $collection_key = 'creatives';
protected $creativesType = Creative::class;
protected $creativesDataType = 'array';
/**
* A token to retrieve the next page of results. Pass this value in the
* ListCreativesRequest.page_token field in the subsequent call to
* `ListCreatives` method to retrieve the next page of results.
*
* @var string
*/
public $nextPageToken;
/**
* The list of creatives.
*
* @param Creative[] $creatives
*/
public function setCreatives($creatives)
{
$this->creatives = $creatives;
}
/**
* @return Creative[]
*/
public function getCreatives()
{
return $this->creatives;
}
/**
* A token to retrieve the next page of results. Pass this value in the
* ListCreativesRequest.page_token field in the subsequent call to
* `ListCreatives` method to retrieve the next page of results.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListCreativesResponse::class, 'Google_Service_AdExchangeBuyerII_ListCreativesResponse');
@@ -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\AdExchangeBuyerII;
class ListDealAssociationsResponse extends \Google\Collection
{
protected $collection_key = 'associations';
protected $associationsType = CreativeDealAssociation::class;
protected $associationsDataType = 'array';
/**
* A token to retrieve the next page of results. Pass this value in the
* ListDealAssociationsRequest.page_token field in the subsequent call to
* 'ListDealAssociation' method to retrieve the next page of results.
*
* @var string
*/
public $nextPageToken;
/**
* The list of associations.
*
* @param CreativeDealAssociation[] $associations
*/
public function setAssociations($associations)
{
$this->associations = $associations;
}
/**
* @return CreativeDealAssociation[]
*/
public function getAssociations()
{
return $this->associations;
}
/**
* A token to retrieve the next page of results. Pass this value in the
* ListDealAssociationsRequest.page_token field in the subsequent call to
* 'ListDealAssociation' method to retrieve the next page of results.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListDealAssociationsResponse::class, 'Google_Service_AdExchangeBuyerII_ListDealAssociationsResponse');
@@ -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\AdExchangeBuyerII;
class ListFilterSetsResponse extends \Google\Collection
{
protected $collection_key = 'filterSets';
protected $filterSetsType = FilterSet::class;
protected $filterSetsDataType = 'array';
/**
* A token to retrieve the next page of results. Pass this value in the
* ListFilterSetsRequest.pageToken field in the subsequent call to the
* accounts.filterSets.list method to retrieve the next page of results.
*
* @var string
*/
public $nextPageToken;
/**
* The filter sets belonging to the buyer.
*
* @param FilterSet[] $filterSets
*/
public function setFilterSets($filterSets)
{
$this->filterSets = $filterSets;
}
/**
* @return FilterSet[]
*/
public function getFilterSets()
{
return $this->filterSets;
}
/**
* A token to retrieve the next page of results. Pass this value in the
* ListFilterSetsRequest.pageToken field in the subsequent call to the
* accounts.filterSets.list method to retrieve the next page of results.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListFilterSetsResponse::class, 'Google_Service_AdExchangeBuyerII_ListFilterSetsResponse');
@@ -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\AdExchangeBuyerII;
class ListFilteredBidRequestsResponse extends \Google\Collection
{
protected $collection_key = 'calloutStatusRows';
protected $calloutStatusRowsType = CalloutStatusRow::class;
protected $calloutStatusRowsDataType = 'array';
/**
* A token to retrieve the next page of results. Pass this value in the
* ListFilteredBidRequestsRequest.pageToken field in the subsequent call to
* the filteredBidRequests.list method to retrieve the next page of results.
*
* @var string
*/
public $nextPageToken;
/**
* List of rows, with counts of filtered bid requests aggregated by callout
* status.
*
* @param CalloutStatusRow[] $calloutStatusRows
*/
public function setCalloutStatusRows($calloutStatusRows)
{
$this->calloutStatusRows = $calloutStatusRows;
}
/**
* @return CalloutStatusRow[]
*/
public function getCalloutStatusRows()
{
return $this->calloutStatusRows;
}
/**
* A token to retrieve the next page of results. Pass this value in the
* ListFilteredBidRequestsRequest.pageToken field in the subsequent call to
* the filteredBidRequests.list method to retrieve the next page of results.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListFilteredBidRequestsResponse::class, 'Google_Service_AdExchangeBuyerII_ListFilteredBidRequestsResponse');
@@ -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\AdExchangeBuyerII;
class ListFilteredBidsResponse extends \Google\Collection
{
protected $collection_key = 'creativeStatusRows';
protected $creativeStatusRowsType = CreativeStatusRow::class;
protected $creativeStatusRowsDataType = 'array';
/**
* A token to retrieve the next page of results. Pass this value in the
* ListFilteredBidsRequest.pageToken field in the subsequent call to the
* filteredBids.list method to retrieve the next page of results.
*
* @var string
*/
public $nextPageToken;
/**
* List of rows, with counts of filtered bids aggregated by filtering reason
* (for example, creative status).
*
* @param CreativeStatusRow[] $creativeStatusRows
*/
public function setCreativeStatusRows($creativeStatusRows)
{
$this->creativeStatusRows = $creativeStatusRows;
}
/**
* @return CreativeStatusRow[]
*/
public function getCreativeStatusRows()
{
return $this->creativeStatusRows;
}
/**
* A token to retrieve the next page of results. Pass this value in the
* ListFilteredBidsRequest.pageToken field in the subsequent call to the
* filteredBids.list method to retrieve the next page of results.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListFilteredBidsResponse::class, 'Google_Service_AdExchangeBuyerII_ListFilteredBidsResponse');
@@ -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\AdExchangeBuyerII;
class ListImpressionMetricsResponse extends \Google\Collection
{
protected $collection_key = 'impressionMetricsRows';
protected $impressionMetricsRowsType = ImpressionMetricsRow::class;
protected $impressionMetricsRowsDataType = 'array';
/**
* A token to retrieve the next page of results. Pass this value in the
* ListImpressionMetricsRequest.pageToken field in the subsequent call to the
* impressionMetrics.list method to retrieve the next page of results.
*
* @var string
*/
public $nextPageToken;
/**
* List of rows, each containing a set of impression metrics.
*
* @param ImpressionMetricsRow[] $impressionMetricsRows
*/
public function setImpressionMetricsRows($impressionMetricsRows)
{
$this->impressionMetricsRows = $impressionMetricsRows;
}
/**
* @return ImpressionMetricsRow[]
*/
public function getImpressionMetricsRows()
{
return $this->impressionMetricsRows;
}
/**
* A token to retrieve the next page of results. Pass this value in the
* ListImpressionMetricsRequest.pageToken field in the subsequent call to the
* impressionMetrics.list method to retrieve the next page of results.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListImpressionMetricsResponse::class, 'Google_Service_AdExchangeBuyerII_ListImpressionMetricsResponse');
@@ -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\AdExchangeBuyerII;
class ListLosingBidsResponse extends \Google\Collection
{
protected $collection_key = 'creativeStatusRows';
protected $creativeStatusRowsType = CreativeStatusRow::class;
protected $creativeStatusRowsDataType = 'array';
/**
* A token to retrieve the next page of results. Pass this value in the
* ListLosingBidsRequest.pageToken field in the subsequent call to the
* losingBids.list method to retrieve the next page of results.
*
* @var string
*/
public $nextPageToken;
/**
* List of rows, with counts of losing bids aggregated by loss reason (for
* example, creative status).
*
* @param CreativeStatusRow[] $creativeStatusRows
*/
public function setCreativeStatusRows($creativeStatusRows)
{
$this->creativeStatusRows = $creativeStatusRows;
}
/**
* @return CreativeStatusRow[]
*/
public function getCreativeStatusRows()
{
return $this->creativeStatusRows;
}
/**
* A token to retrieve the next page of results. Pass this value in the
* ListLosingBidsRequest.pageToken field in the subsequent call to the
* losingBids.list method to retrieve the next page of results.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListLosingBidsResponse::class, 'Google_Service_AdExchangeBuyerII_ListLosingBidsResponse');
@@ -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\AdExchangeBuyerII;
class ListNonBillableWinningBidsResponse extends \Google\Collection
{
protected $collection_key = 'nonBillableWinningBidStatusRows';
/**
* A token to retrieve the next page of results. Pass this value in the
* ListNonBillableWinningBidsRequest.pageToken field in the subsequent call to
* the nonBillableWinningBids.list method to retrieve the next page of
* results.
*
* @var string
*/
public $nextPageToken;
protected $nonBillableWinningBidStatusRowsType = NonBillableWinningBidStatusRow::class;
protected $nonBillableWinningBidStatusRowsDataType = 'array';
/**
* A token to retrieve the next page of results. Pass this value in the
* ListNonBillableWinningBidsRequest.pageToken field in the subsequent call to
* the nonBillableWinningBids.list method to retrieve the next page of
* results.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* List of rows, with counts of bids not billed aggregated by reason.
*
* @param NonBillableWinningBidStatusRow[] $nonBillableWinningBidStatusRows
*/
public function setNonBillableWinningBidStatusRows($nonBillableWinningBidStatusRows)
{
$this->nonBillableWinningBidStatusRows = $nonBillableWinningBidStatusRows;
}
/**
* @return NonBillableWinningBidStatusRow[]
*/
public function getNonBillableWinningBidStatusRows()
{
return $this->nonBillableWinningBidStatusRows;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListNonBillableWinningBidsResponse::class, 'Google_Service_AdExchangeBuyerII_ListNonBillableWinningBidsResponse');
@@ -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\AdExchangeBuyerII;
class ListProductsResponse extends \Google\Collection
{
protected $collection_key = 'products';
/**
* List pagination support.
*
* @var string
*/
public $nextPageToken;
protected $productsType = Product::class;
protected $productsDataType = 'array';
/**
* List pagination support.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* The list of matching products at their head revision number.
*
* @param Product[] $products
*/
public function setProducts($products)
{
$this->products = $products;
}
/**
* @return Product[]
*/
public function getProducts()
{
return $this->products;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListProductsResponse::class, 'Google_Service_AdExchangeBuyerII_ListProductsResponse');
@@ -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\AdExchangeBuyerII;
class ListProposalsResponse extends \Google\Collection
{
protected $collection_key = 'proposals';
/**
* Continuation token for fetching the next page of results.
*
* @var string
*/
public $nextPageToken;
protected $proposalsType = Proposal::class;
protected $proposalsDataType = 'array';
/**
* Continuation token for fetching the next page of results.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* The list of proposals.
*
* @param Proposal[] $proposals
*/
public function setProposals($proposals)
{
$this->proposals = $proposals;
}
/**
* @return Proposal[]
*/
public function getProposals()
{
return $this->proposals;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListProposalsResponse::class, 'Google_Service_AdExchangeBuyerII_ListProposalsResponse');
@@ -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\AdExchangeBuyerII;
class ListPublisherProfilesResponse extends \Google\Collection
{
protected $collection_key = 'publisherProfiles';
/**
* List pagination support
*
* @var string
*/
public $nextPageToken;
protected $publisherProfilesType = PublisherProfile::class;
protected $publisherProfilesDataType = 'array';
/**
* List pagination support
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* The list of matching publisher profiles.
*
* @param PublisherProfile[] $publisherProfiles
*/
public function setPublisherProfiles($publisherProfiles)
{
$this->publisherProfiles = $publisherProfiles;
}
/**
* @return PublisherProfile[]
*/
public function getPublisherProfiles()
{
return $this->publisherProfiles;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListPublisherProfilesResponse::class, 'Google_Service_AdExchangeBuyerII_ListPublisherProfilesResponse');
@@ -0,0 +1,53 @@
<?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\AdExchangeBuyerII;
class LocationContext extends \Google\Collection
{
protected $collection_key = 'geoCriteriaIds';
/**
* IDs representing the geo location for this context. Refer to the [geo-
* table.csv](https://storage.googleapis.com/adx-rtb-dictionaries/geo-
* table.csv) file for different geo criteria IDs.
*
* @var int[]
*/
public $geoCriteriaIds;
/**
* IDs representing the geo location for this context. Refer to the [geo-
* table.csv](https://storage.googleapis.com/adx-rtb-dictionaries/geo-
* table.csv) file for different geo criteria IDs.
*
* @param int[] $geoCriteriaIds
*/
public function setGeoCriteriaIds($geoCriteriaIds)
{
$this->geoCriteriaIds = $geoCriteriaIds;
}
/**
* @return int[]
*/
public function getGeoCriteriaIds()
{
return $this->geoCriteriaIds;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LocationContext::class, 'Google_Service_AdExchangeBuyerII_LocationContext');
@@ -0,0 +1,117 @@
<?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\AdExchangeBuyerII;
class MarketplaceTargeting extends \Google\Model
{
protected $geoTargetingType = CriteriaTargeting::class;
protected $geoTargetingDataType = '';
protected $inventorySizeTargetingType = InventorySizeTargeting::class;
protected $inventorySizeTargetingDataType = '';
protected $placementTargetingType = PlacementTargeting::class;
protected $placementTargetingDataType = '';
protected $technologyTargetingType = TechnologyTargeting::class;
protected $technologyTargetingDataType = '';
protected $videoTargetingType = VideoTargeting::class;
protected $videoTargetingDataType = '';
/**
* Geo criteria IDs to be included/excluded.
*
* @param CriteriaTargeting $geoTargeting
*/
public function setGeoTargeting(CriteriaTargeting $geoTargeting)
{
$this->geoTargeting = $geoTargeting;
}
/**
* @return CriteriaTargeting
*/
public function getGeoTargeting()
{
return $this->geoTargeting;
}
/**
* Inventory sizes to be included/excluded.
*
* @param InventorySizeTargeting $inventorySizeTargeting
*/
public function setInventorySizeTargeting(InventorySizeTargeting $inventorySizeTargeting)
{
$this->inventorySizeTargeting = $inventorySizeTargeting;
}
/**
* @return InventorySizeTargeting
*/
public function getInventorySizeTargeting()
{
return $this->inventorySizeTargeting;
}
/**
* Placement targeting information, for example, URL, mobile applications.
*
* @param PlacementTargeting $placementTargeting
*/
public function setPlacementTargeting(PlacementTargeting $placementTargeting)
{
$this->placementTargeting = $placementTargeting;
}
/**
* @return PlacementTargeting
*/
public function getPlacementTargeting()
{
return $this->placementTargeting;
}
/**
* Technology targeting information, for example, operating system, device
* category.
*
* @param TechnologyTargeting $technologyTargeting
*/
public function setTechnologyTargeting(TechnologyTargeting $technologyTargeting)
{
$this->technologyTargeting = $technologyTargeting;
}
/**
* @return TechnologyTargeting
*/
public function getTechnologyTargeting()
{
return $this->technologyTargeting;
}
/**
* Video targeting information.
*
* @param VideoTargeting $videoTargeting
*/
public function setVideoTargeting(VideoTargeting $videoTargeting)
{
$this->videoTargeting = $videoTargeting;
}
/**
* @return VideoTargeting
*/
public function getVideoTargeting()
{
return $this->videoTargeting;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MarketplaceTargeting::class, 'Google_Service_AdExchangeBuyerII_MarketplaceTargeting');
@@ -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\AdExchangeBuyerII;
class MetricValue extends \Google\Model
{
/**
* The expected value of the metric.
*
* @var string
*/
public $value;
/**
* The variance (for example, square of the standard deviation) of the metric
* value. If value is exact, variance is 0. Can be used to calculate margin of
* error as a percentage of value, using the following formula, where Z is the
* standard constant that depends on the preferred size of the confidence
* interval (for example, for 90% confidence interval, use Z = 1.645):
* marginOfError = 100 * Z * sqrt(variance) / value
*
* @var string
*/
public $variance;
/**
* The expected value of the metric.
*
* @param string $value
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return string
*/
public function getValue()
{
return $this->value;
}
/**
* The variance (for example, square of the standard deviation) of the metric
* value. If value is exact, variance is 0. Can be used to calculate margin of
* error as a percentage of value, using the following formula, where Z is the
* standard constant that depends on the preferred size of the confidence
* interval (for example, for 90% confidence interval, use Z = 1.645):
* marginOfError = 100 * Z * sqrt(variance) / value
*
* @param string $variance
*/
public function setVariance($variance)
{
$this->variance = $variance;
}
/**
* @return string
*/
public function getVariance()
{
return $this->variance;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MetricValue::class, 'Google_Service_AdExchangeBuyerII_MetricValue');
@@ -0,0 +1,45 @@
<?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\AdExchangeBuyerII;
class MobileApplicationTargeting extends \Google\Model
{
protected $firstPartyTargetingType = FirstPartyMobileApplicationTargeting::class;
protected $firstPartyTargetingDataType = '';
/**
* Publisher owned apps to be targeted or excluded by the publisher to display
* the ads in.
*
* @param FirstPartyMobileApplicationTargeting $firstPartyTargeting
*/
public function setFirstPartyTargeting(FirstPartyMobileApplicationTargeting $firstPartyTargeting)
{
$this->firstPartyTargeting = $firstPartyTargeting;
}
/**
* @return FirstPartyMobileApplicationTargeting
*/
public function getFirstPartyTargeting()
{
return $this->firstPartyTargeting;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MobileApplicationTargeting::class, 'Google_Service_AdExchangeBuyerII_MobileApplicationTargeting');
@@ -0,0 +1,104 @@
<?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\AdExchangeBuyerII;
class Money extends \Google\Model
{
/**
* The three-letter currency code defined in ISO 4217.
*
* @var string
*/
public $currencyCode;
/**
* Number of nano (10^-9) units of the amount. The value must be between
* -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos`
* must be positive or zero. If `units` is zero, `nanos` can be positive,
* zero, or negative. If `units` is negative, `nanos` must be negative or
* zero. For example $-1.75 is represented as `units`=-1 and
* `nanos`=-750,000,000.
*
* @var int
*/
public $nanos;
/**
* The whole units of the amount. For example if `currencyCode` is `"USD"`,
* then 1 unit is one US dollar.
*
* @var string
*/
public $units;
/**
* The three-letter currency code defined in ISO 4217.
*
* @param string $currencyCode
*/
public function setCurrencyCode($currencyCode)
{
$this->currencyCode = $currencyCode;
}
/**
* @return string
*/
public function getCurrencyCode()
{
return $this->currencyCode;
}
/**
* Number of nano (10^-9) units of the amount. The value must be between
* -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos`
* must be positive or zero. If `units` is zero, `nanos` can be positive,
* zero, or negative. If `units` is negative, `nanos` must be negative or
* zero. For example $-1.75 is represented as `units`=-1 and
* `nanos`=-750,000,000.
*
* @param int $nanos
*/
public function setNanos($nanos)
{
$this->nanos = $nanos;
}
/**
* @return int
*/
public function getNanos()
{
return $this->nanos;
}
/**
* The whole units of the amount. For example if `currencyCode` is `"USD"`,
* then 1 unit is one US dollar.
*
* @param string $units
*/
public function setUnits($units)
{
$this->units = $units;
}
/**
* @return string
*/
public function getUnits()
{
return $this->units;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Money::class, 'Google_Service_AdExchangeBuyerII_Money');
@@ -0,0 +1,295 @@
<?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\AdExchangeBuyerII;
class NativeContent extends \Google\Model
{
/**
* The name of the advertiser or sponsor, to be displayed in the ad creative.
*
* @var string
*/
public $advertiserName;
protected $appIconType = Image::class;
protected $appIconDataType = '';
/**
* A long description of the ad.
*
* @var string
*/
public $body;
/**
* A label for the button that the user is supposed to click.
*
* @var string
*/
public $callToAction;
/**
* The URL that the browser/SDK will load when the user clicks the ad.
*
* @var string
*/
public $clickLinkUrl;
/**
* The URL to use for click tracking.
*
* @var string
*/
public $clickTrackingUrl;
/**
* A short title for the ad.
*
* @var string
*/
public $headline;
protected $imageType = Image::class;
protected $imageDataType = '';
protected $logoType = Image::class;
protected $logoDataType = '';
/**
* The price of the promoted app including currency info.
*
* @var string
*/
public $priceDisplayText;
/**
* The app rating in the app store. Must be in the range [0-5].
*
* @var
*/
public $starRating;
/**
* The URL to the app store to purchase/download the promoted app.
*
* @deprecated
* @var string
*/
public $storeUrl;
/**
* The URL to fetch a native video ad.
*
* @var string
*/
public $videoUrl;
/**
* The name of the advertiser or sponsor, to be displayed in the ad creative.
*
* @param string $advertiserName
*/
public function setAdvertiserName($advertiserName)
{
$this->advertiserName = $advertiserName;
}
/**
* @return string
*/
public function getAdvertiserName()
{
return $this->advertiserName;
}
/**
* The app icon, for app download ads.
*
* @param Image $appIcon
*/
public function setAppIcon(Image $appIcon)
{
$this->appIcon = $appIcon;
}
/**
* @return Image
*/
public function getAppIcon()
{
return $this->appIcon;
}
/**
* A long description of the ad.
*
* @param string $body
*/
public function setBody($body)
{
$this->body = $body;
}
/**
* @return string
*/
public function getBody()
{
return $this->body;
}
/**
* A label for the button that the user is supposed to click.
*
* @param string $callToAction
*/
public function setCallToAction($callToAction)
{
$this->callToAction = $callToAction;
}
/**
* @return string
*/
public function getCallToAction()
{
return $this->callToAction;
}
/**
* The URL that the browser/SDK will load when the user clicks the ad.
*
* @param string $clickLinkUrl
*/
public function setClickLinkUrl($clickLinkUrl)
{
$this->clickLinkUrl = $clickLinkUrl;
}
/**
* @return string
*/
public function getClickLinkUrl()
{
return $this->clickLinkUrl;
}
/**
* The URL to use for click tracking.
*
* @param string $clickTrackingUrl
*/
public function setClickTrackingUrl($clickTrackingUrl)
{
$this->clickTrackingUrl = $clickTrackingUrl;
}
/**
* @return string
*/
public function getClickTrackingUrl()
{
return $this->clickTrackingUrl;
}
/**
* A short title for the ad.
*
* @param string $headline
*/
public function setHeadline($headline)
{
$this->headline = $headline;
}
/**
* @return string
*/
public function getHeadline()
{
return $this->headline;
}
/**
* A large image.
*
* @param Image $image
*/
public function setImage(Image $image)
{
$this->image = $image;
}
/**
* @return Image
*/
public function getImage()
{
return $this->image;
}
/**
* A smaller image, for the advertiser's logo.
*
* @param Image $logo
*/
public function setLogo(Image $logo)
{
$this->logo = $logo;
}
/**
* @return Image
*/
public function getLogo()
{
return $this->logo;
}
/**
* The price of the promoted app including currency info.
*
* @param string $priceDisplayText
*/
public function setPriceDisplayText($priceDisplayText)
{
$this->priceDisplayText = $priceDisplayText;
}
/**
* @return string
*/
public function getPriceDisplayText()
{
return $this->priceDisplayText;
}
public function setStarRating($starRating)
{
$this->starRating = $starRating;
}
public function getStarRating()
{
return $this->starRating;
}
/**
* The URL to the app store to purchase/download the promoted app.
*
* @deprecated
* @param string $storeUrl
*/
public function setStoreUrl($storeUrl)
{
$this->storeUrl = $storeUrl;
}
/**
* @deprecated
* @return string
*/
public function getStoreUrl()
{
return $this->storeUrl;
}
/**
* The URL to fetch a native video ad.
*
* @param string $videoUrl
*/
public function setVideoUrl($videoUrl)
{
$this->videoUrl = $videoUrl;
}
/**
* @return string
*/
public function getVideoUrl()
{
return $this->videoUrl;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(NativeContent::class, 'Google_Service_AdExchangeBuyerII_NativeContent');
@@ -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\AdExchangeBuyerII;
class NonBillableWinningBidStatusRow extends \Google\Model
{
/**
* A placeholder for an undefined status. This value will never be returned in
* responses.
*/
public const STATUS_STATUS_UNSPECIFIED = 'STATUS_UNSPECIFIED';
/**
* The buyer was not billed because the ad was not rendered by the publisher.
*/
public const STATUS_AD_NOT_RENDERED = 'AD_NOT_RENDERED';
/**
* The buyer was not billed because the impression won by the bid was
* determined to be invalid.
*/
public const STATUS_INVALID_IMPRESSION = 'INVALID_IMPRESSION';
/**
* A video impression was served but a fatal error was reported from the
* client during playback.
*/
public const STATUS_FATAL_VAST_ERROR = 'FATAL_VAST_ERROR';
/**
* The buyer was not billed because the ad was outplaced in the mediation
* waterfall.
*/
public const STATUS_LOST_IN_MEDIATION = 'LOST_IN_MEDIATION';
/**
* The impression was not billed because it exceeded a guaranteed deal
* delivery goal.
*/
public const STATUS_OVERDELIVERED_IMPRESSION = 'OVERDELIVERED_IMPRESSION';
protected $bidCountType = MetricValue::class;
protected $bidCountDataType = '';
protected $rowDimensionsType = RowDimensions::class;
protected $rowDimensionsDataType = '';
/**
* The status specifying why the winning bids were not billed.
*
* @var string
*/
public $status;
/**
* The number of bids with the specified status.
*
* @param MetricValue $bidCount
*/
public function setBidCount(MetricValue $bidCount)
{
$this->bidCount = $bidCount;
}
/**
* @return MetricValue
*/
public function getBidCount()
{
return $this->bidCount;
}
/**
* The values of all dimensions associated with metric values in this row.
*
* @param RowDimensions $rowDimensions
*/
public function setRowDimensions(RowDimensions $rowDimensions)
{
$this->rowDimensions = $rowDimensions;
}
/**
* @return RowDimensions
*/
public function getRowDimensions()
{
return $this->rowDimensions;
}
/**
* The status specifying why the winning bids were not billed.
*
* Accepted values: STATUS_UNSPECIFIED, AD_NOT_RENDERED, INVALID_IMPRESSION,
* FATAL_VAST_ERROR, LOST_IN_MEDIATION, OVERDELIVERED_IMPRESSION
*
* @param self::STATUS_* $status
*/
public function setStatus($status)
{
$this->status = $status;
}
/**
* @return self::STATUS_*
*/
public function getStatus()
{
return $this->status;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(NonBillableWinningBidStatusRow::class, 'Google_Service_AdExchangeBuyerII_NonBillableWinningBidStatusRow');
@@ -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\AdExchangeBuyerII;
class NonGuaranteedAuctionTerms extends \Google\Collection
{
protected $collection_key = 'reservePricesPerBuyer';
/**
* True if open auction buyers are allowed to compete with invited buyers in
* this private auction.
*
* @var bool
*/
public $autoOptimizePrivateAuction;
protected $reservePricesPerBuyerType = PricePerBuyer::class;
protected $reservePricesPerBuyerDataType = 'array';
/**
* True if open auction buyers are allowed to compete with invited buyers in
* this private auction.
*
* @param bool $autoOptimizePrivateAuction
*/
public function setAutoOptimizePrivateAuction($autoOptimizePrivateAuction)
{
$this->autoOptimizePrivateAuction = $autoOptimizePrivateAuction;
}
/**
* @return bool
*/
public function getAutoOptimizePrivateAuction()
{
return $this->autoOptimizePrivateAuction;
}
/**
* Reserve price for the specified buyer.
*
* @param PricePerBuyer[] $reservePricesPerBuyer
*/
public function setReservePricesPerBuyer($reservePricesPerBuyer)
{
$this->reservePricesPerBuyer = $reservePricesPerBuyer;
}
/**
* @return PricePerBuyer[]
*/
public function getReservePricesPerBuyer()
{
return $this->reservePricesPerBuyer;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(NonGuaranteedAuctionTerms::class, 'Google_Service_AdExchangeBuyerII_NonGuaranteedAuctionTerms');
@@ -0,0 +1,45 @@
<?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\AdExchangeBuyerII;
class NonGuaranteedFixedPriceTerms extends \Google\Collection
{
protected $collection_key = 'fixedPrices';
protected $fixedPricesType = PricePerBuyer::class;
protected $fixedPricesDataType = 'array';
/**
* Fixed price for the specified buyer.
*
* @param PricePerBuyer[] $fixedPrices
*/
public function setFixedPrices($fixedPrices)
{
$this->fixedPrices = $fixedPrices;
}
/**
* @return PricePerBuyer[]
*/
public function getFixedPrices()
{
return $this->fixedPrices;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(NonGuaranteedFixedPriceTerms::class, 'Google_Service_AdExchangeBuyerII_NonGuaranteedFixedPriceTerms');
@@ -0,0 +1,154 @@
<?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\AdExchangeBuyerII;
class Note extends \Google\Model
{
/**
* A placeholder for an undefined buyer/seller role.
*/
public const CREATOR_ROLE_BUYER_SELLER_ROLE_UNSPECIFIED = 'BUYER_SELLER_ROLE_UNSPECIFIED';
/**
* Specifies the role as buyer.
*/
public const CREATOR_ROLE_BUYER = 'BUYER';
/**
* Specifies the role as seller.
*/
public const CREATOR_ROLE_SELLER = 'SELLER';
/**
* Output only. The timestamp for when this note was created.
*
* @var string
*/
public $createTime;
/**
* Output only. The role of the person (buyer/seller) creating the note.
*
* @var string
*/
public $creatorRole;
/**
* The actual note to attach. (max-length: 1024 unicode code units) Note: This
* field may be set only when creating the resource. Modifying this field
* while updating the resource will result in an error.
*
* @var string
*/
public $note;
/**
* Output only. The unique ID for the note.
*
* @var string
*/
public $noteId;
/**
* Output only. The revision number of the proposal when the note is created.
*
* @var string
*/
public $proposalRevision;
/**
* Output only. The timestamp for when this note was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Output only. The role of the person (buyer/seller) creating the note.
*
* Accepted values: BUYER_SELLER_ROLE_UNSPECIFIED, BUYER, SELLER
*
* @param self::CREATOR_ROLE_* $creatorRole
*/
public function setCreatorRole($creatorRole)
{
$this->creatorRole = $creatorRole;
}
/**
* @return self::CREATOR_ROLE_*
*/
public function getCreatorRole()
{
return $this->creatorRole;
}
/**
* The actual note to attach. (max-length: 1024 unicode code units) Note: This
* field may be set only when creating the resource. Modifying this field
* while updating the resource will result in an error.
*
* @param string $note
*/
public function setNote($note)
{
$this->note = $note;
}
/**
* @return string
*/
public function getNote()
{
return $this->note;
}
/**
* Output only. The unique ID for the note.
*
* @param string $noteId
*/
public function setNoteId($noteId)
{
$this->noteId = $noteId;
}
/**
* @return string
*/
public function getNoteId()
{
return $this->noteId;
}
/**
* Output only. The revision number of the proposal when the note is created.
*
* @param string $proposalRevision
*/
public function setProposalRevision($proposalRevision)
{
$this->proposalRevision = $proposalRevision;
}
/**
* @return string
*/
public function getProposalRevision()
{
return $this->proposalRevision;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Note::class, 'Google_Service_AdExchangeBuyerII_Note');
@@ -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\AdExchangeBuyerII;
class OperatingSystemTargeting extends \Google\Model
{
protected $operatingSystemCriteriaType = CriteriaTargeting::class;
protected $operatingSystemCriteriaDataType = '';
protected $operatingSystemVersionCriteriaType = CriteriaTargeting::class;
protected $operatingSystemVersionCriteriaDataType = '';
/**
* IDs of operating systems to be included/excluded.
*
* @param CriteriaTargeting $operatingSystemCriteria
*/
public function setOperatingSystemCriteria(CriteriaTargeting $operatingSystemCriteria)
{
$this->operatingSystemCriteria = $operatingSystemCriteria;
}
/**
* @return CriteriaTargeting
*/
public function getOperatingSystemCriteria()
{
return $this->operatingSystemCriteria;
}
/**
* IDs of operating system versions to be included/excluded.
*
* @param CriteriaTargeting $operatingSystemVersionCriteria
*/
public function setOperatingSystemVersionCriteria(CriteriaTargeting $operatingSystemVersionCriteria)
{
$this->operatingSystemVersionCriteria = $operatingSystemVersionCriteria;
}
/**
* @return CriteriaTargeting
*/
public function getOperatingSystemVersionCriteria()
{
return $this->operatingSystemVersionCriteria;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OperatingSystemTargeting::class, 'Google_Service_AdExchangeBuyerII_OperatingSystemTargeting');
@@ -0,0 +1,75 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AdExchangeBuyerII;
class PauseProposalDealsRequest extends \Google\Collection
{
protected $collection_key = 'externalDealIds';
/**
* The external_deal_id's of the deals to be paused. If empty, all the deals
* in the proposal will be paused.
*
* @var string[]
*/
public $externalDealIds;
/**
* The reason why the deals are being paused. This human readable message will
* be displayed in the seller's UI. (Max length: 1000 unicode code units.)
*
* @var string
*/
public $reason;
/**
* The external_deal_id's of the deals to be paused. If empty, all the deals
* in the proposal will be paused.
*
* @param string[] $externalDealIds
*/
public function setExternalDealIds($externalDealIds)
{
$this->externalDealIds = $externalDealIds;
}
/**
* @return string[]
*/
public function getExternalDealIds()
{
return $this->externalDealIds;
}
/**
* The reason why the deals are being paused. This human readable message will
* be displayed in the seller's UI. (Max length: 1000 unicode code units.)
*
* @param string $reason
*/
public function setReason($reason)
{
$this->reason = $reason;
}
/**
* @return string
*/
public function getReason()
{
return $this->reason;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PauseProposalDealsRequest::class, 'Google_Service_AdExchangeBuyerII_PauseProposalDealsRequest');
@@ -0,0 +1,52 @@
<?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\AdExchangeBuyerII;
class PauseProposalRequest extends \Google\Model
{
/**
* The reason why the proposal is being paused. This human readable message
* will be displayed in the seller's UI. (Max length: 1000 unicode code
* units.)
*
* @var string
*/
public $reason;
/**
* The reason why the proposal is being paused. This human readable message
* will be displayed in the seller's UI. (Max length: 1000 unicode code
* units.)
*
* @param string $reason
*/
public function setReason($reason)
{
$this->reason = $reason;
}
/**
* @return string
*/
public function getReason()
{
return $this->reason;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PauseProposalRequest::class, 'Google_Service_AdExchangeBuyerII_PauseProposalRequest');
@@ -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\AdExchangeBuyerII;
class PlacementTargeting extends \Google\Model
{
protected $mobileApplicationTargetingType = MobileApplicationTargeting::class;
protected $mobileApplicationTargetingDataType = '';
protected $urlTargetingType = UrlTargeting::class;
protected $urlTargetingDataType = '';
/**
* Mobile application targeting information in a deal. This doesn't apply to
* Auction Packages.
*
* @param MobileApplicationTargeting $mobileApplicationTargeting
*/
public function setMobileApplicationTargeting(MobileApplicationTargeting $mobileApplicationTargeting)
{
$this->mobileApplicationTargeting = $mobileApplicationTargeting;
}
/**
* @return MobileApplicationTargeting
*/
public function getMobileApplicationTargeting()
{
return $this->mobileApplicationTargeting;
}
/**
* URLs to be included/excluded.
*
* @param UrlTargeting $urlTargeting
*/
public function setUrlTargeting(UrlTargeting $urlTargeting)
{
$this->urlTargeting = $urlTargeting;
}
/**
* @return UrlTargeting
*/
public function getUrlTargeting()
{
return $this->urlTargeting;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PlacementTargeting::class, 'Google_Service_AdExchangeBuyerII_PlacementTargeting');
@@ -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\AdExchangeBuyerII;
class PlatformContext extends \Google\Collection
{
protected $collection_key = 'platforms';
/**
* The platforms this restriction applies to.
*
* @var string[]
*/
public $platforms;
/**
* The platforms this restriction applies to.
*
* @param string[] $platforms
*/
public function setPlatforms($platforms)
{
$this->platforms = $platforms;
}
/**
* @return string[]
*/
public function getPlatforms()
{
return $this->platforms;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PlatformContext::class, 'Google_Service_AdExchangeBuyerII_PlatformContext');
@@ -0,0 +1,81 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AdExchangeBuyerII;
class Price extends \Google\Model
{
/**
* A placeholder for an undefined pricing type. If the pricing type is
* unspecified, `COST_PER_MILLE` will be used instead.
*/
public const PRICING_TYPE_PRICING_TYPE_UNSPECIFIED = 'PRICING_TYPE_UNSPECIFIED';
/**
* Cost per thousand impressions.
*/
public const PRICING_TYPE_COST_PER_MILLE = 'COST_PER_MILLE';
/**
* Cost per day
*/
public const PRICING_TYPE_COST_PER_DAY = 'COST_PER_DAY';
protected $amountType = Money::class;
protected $amountDataType = '';
/**
* The pricing type for the deal/product. (default: CPM)
*
* @var string
*/
public $pricingType;
/**
* The actual price with currency specified.
*
* @param Money $amount
*/
public function setAmount(Money $amount)
{
$this->amount = $amount;
}
/**
* @return Money
*/
public function getAmount()
{
return $this->amount;
}
/**
* The pricing type for the deal/product. (default: CPM)
*
* Accepted values: PRICING_TYPE_UNSPECIFIED, COST_PER_MILLE, COST_PER_DAY
*
* @param self::PRICING_TYPE_* $pricingType
*/
public function setPricingType($pricingType)
{
$this->pricingType = $pricingType;
}
/**
* @return self::PRICING_TYPE_*
*/
public function getPricingType()
{
return $this->pricingType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Price::class, 'Google_Service_AdExchangeBuyerII_Price');
@@ -0,0 +1,89 @@
<?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\AdExchangeBuyerII;
class PricePerBuyer extends \Google\Collection
{
protected $collection_key = 'advertiserIds';
/**
* The list of advertisers for this price when associated with this buyer. If
* empty, all advertisers with this buyer pay this price.
*
* @var string[]
*/
public $advertiserIds;
protected $buyerType = Buyer::class;
protected $buyerDataType = '';
protected $priceType = Price::class;
protected $priceDataType = '';
/**
* The list of advertisers for this price when associated with this buyer. If
* empty, all advertisers with this buyer pay this price.
*
* @param string[] $advertiserIds
*/
public function setAdvertiserIds($advertiserIds)
{
$this->advertiserIds = $advertiserIds;
}
/**
* @return string[]
*/
public function getAdvertiserIds()
{
return $this->advertiserIds;
}
/**
* The buyer who will pay this price. If unset, all buyers can pay this price
* (if the advertisers match, and there's no more specific rule matching the
* buyer).
*
* @param Buyer $buyer
*/
public function setBuyer(Buyer $buyer)
{
$this->buyer = $buyer;
}
/**
* @return Buyer
*/
public function getBuyer()
{
return $this->buyer;
}
/**
* The specified price.
*
* @param Price $price
*/
public function setPrice(Price $price)
{
$this->price = $price;
}
/**
* @return Price
*/
public function getPrice()
{
return $this->price;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PricePerBuyer::class, 'Google_Service_AdExchangeBuyerII_PricePerBuyer');
@@ -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\AdExchangeBuyerII;
class PrivateData extends \Google\Model
{
/**
* A buyer or seller specified reference ID. This can be queried in the list
* operations (max-length: 1024 unicode code units).
*
* @var string
*/
public $referenceId;
/**
* A buyer or seller specified reference ID. This can be queried in the list
* operations (max-length: 1024 unicode code units).
*
* @param string $referenceId
*/
public function setReferenceId($referenceId)
{
$this->referenceId = $referenceId;
}
/**
* @return string
*/
public function getReferenceId()
{
return $this->referenceId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PrivateData::class, 'Google_Service_AdExchangeBuyerII_PrivateData');
@@ -0,0 +1,382 @@
<?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\AdExchangeBuyerII;
class Product extends \Google\Collection
{
/**
* A placeholder for an undefined syndication product.
*/
public const SYNDICATION_PRODUCT_SYNDICATION_PRODUCT_UNSPECIFIED = 'SYNDICATION_PRODUCT_UNSPECIFIED';
/**
* This typically represents a web page.
*/
public const SYNDICATION_PRODUCT_CONTENT = 'CONTENT';
/**
* This represents a mobile property.
*/
public const SYNDICATION_PRODUCT_MOBILE = 'MOBILE';
/**
* This represents video ad formats.
*/
public const SYNDICATION_PRODUCT_VIDEO = 'VIDEO';
/**
* This represents ads shown within games.
*/
public const SYNDICATION_PRODUCT_GAMES = 'GAMES';
protected $collection_key = 'targetingCriterion';
/**
* The proposed end time for the deal. The field will be truncated to the
* order of seconds during serving.
*
* @var string
*/
public $availableEndTime;
/**
* Inventory availability dates. The start time will be truncated to seconds
* during serving. Thus, a field specified as 3:23:34.456 (HH:mm:ss.SSS) will
* be truncated to 3:23:34 when serving.
*
* @var string
*/
public $availableStartTime;
/**
* Creation time.
*
* @var string
*/
public $createTime;
protected $creatorContactsType = ContactInformation::class;
protected $creatorContactsDataType = 'array';
/**
* The display name for this product as set by the seller.
*
* @var string
*/
public $displayName;
/**
* If the creator has already signed off on the product, then the buyer can
* finalize the deal by accepting the product as is. When copying to a
* proposal, if any of the terms are changed, then auto_finalize is
* automatically set to false.
*
* @var bool
*/
public $hasCreatorSignedOff;
/**
* The unique ID for the product.
*
* @var string
*/
public $productId;
/**
* The revision number of the product (auto-assigned by Marketplace).
*
* @var string
*/
public $productRevision;
/**
* An ID which can be used by the Publisher Profile API to get more
* information about the seller that created this product.
*
* @var string
*/
public $publisherProfileId;
protected $sellerType = Seller::class;
protected $sellerDataType = '';
/**
* The syndication product associated with the deal.
*
* @var string
*/
public $syndicationProduct;
protected $targetingCriterionType = TargetingCriteria::class;
protected $targetingCriterionDataType = 'array';
protected $termsType = DealTerms::class;
protected $termsDataType = '';
/**
* Time of last update.
*
* @var string
*/
public $updateTime;
/**
* The web-property code for the seller. This needs to be copied as is when
* adding a new deal to a proposal.
*
* @var string
*/
public $webPropertyCode;
/**
* The proposed end time for the deal. The field will be truncated to the
* order of seconds during serving.
*
* @param string $availableEndTime
*/
public function setAvailableEndTime($availableEndTime)
{
$this->availableEndTime = $availableEndTime;
}
/**
* @return string
*/
public function getAvailableEndTime()
{
return $this->availableEndTime;
}
/**
* Inventory availability dates. The start time will be truncated to seconds
* during serving. Thus, a field specified as 3:23:34.456 (HH:mm:ss.SSS) will
* be truncated to 3:23:34 when serving.
*
* @param string $availableStartTime
*/
public function setAvailableStartTime($availableStartTime)
{
$this->availableStartTime = $availableStartTime;
}
/**
* @return string
*/
public function getAvailableStartTime()
{
return $this->availableStartTime;
}
/**
* Creation time.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Optional contact information for the creator of this product.
*
* @param ContactInformation[] $creatorContacts
*/
public function setCreatorContacts($creatorContacts)
{
$this->creatorContacts = $creatorContacts;
}
/**
* @return ContactInformation[]
*/
public function getCreatorContacts()
{
return $this->creatorContacts;
}
/**
* The display name for this product as set by the seller.
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* If the creator has already signed off on the product, then the buyer can
* finalize the deal by accepting the product as is. When copying to a
* proposal, if any of the terms are changed, then auto_finalize is
* automatically set to false.
*
* @param bool $hasCreatorSignedOff
*/
public function setHasCreatorSignedOff($hasCreatorSignedOff)
{
$this->hasCreatorSignedOff = $hasCreatorSignedOff;
}
/**
* @return bool
*/
public function getHasCreatorSignedOff()
{
return $this->hasCreatorSignedOff;
}
/**
* The unique ID for the product.
*
* @param string $productId
*/
public function setProductId($productId)
{
$this->productId = $productId;
}
/**
* @return string
*/
public function getProductId()
{
return $this->productId;
}
/**
* The revision number of the product (auto-assigned by Marketplace).
*
* @param string $productRevision
*/
public function setProductRevision($productRevision)
{
$this->productRevision = $productRevision;
}
/**
* @return string
*/
public function getProductRevision()
{
return $this->productRevision;
}
/**
* An ID which can be used by the Publisher Profile API to get more
* information about the seller that created this product.
*
* @param string $publisherProfileId
*/
public function setPublisherProfileId($publisherProfileId)
{
$this->publisherProfileId = $publisherProfileId;
}
/**
* @return string
*/
public function getPublisherProfileId()
{
return $this->publisherProfileId;
}
/**
* Information about the seller that created this product.
*
* @param Seller $seller
*/
public function setSeller(Seller $seller)
{
$this->seller = $seller;
}
/**
* @return Seller
*/
public function getSeller()
{
return $this->seller;
}
/**
* The syndication product associated with the deal.
*
* Accepted values: SYNDICATION_PRODUCT_UNSPECIFIED, CONTENT, MOBILE, VIDEO,
* GAMES
*
* @param self::SYNDICATION_PRODUCT_* $syndicationProduct
*/
public function setSyndicationProduct($syndicationProduct)
{
$this->syndicationProduct = $syndicationProduct;
}
/**
* @return self::SYNDICATION_PRODUCT_*
*/
public function getSyndicationProduct()
{
return $this->syndicationProduct;
}
/**
* Targeting that is shared between the buyer and the seller. Each targeting
* criterion has a specified key and for each key there is a list of inclusion
* value or exclusion values.
*
* @param TargetingCriteria[] $targetingCriterion
*/
public function setTargetingCriterion($targetingCriterion)
{
$this->targetingCriterion = $targetingCriterion;
}
/**
* @return TargetingCriteria[]
*/
public function getTargetingCriterion()
{
return $this->targetingCriterion;
}
/**
* The negotiable terms of the deal.
*
* @param DealTerms $terms
*/
public function setTerms(DealTerms $terms)
{
$this->terms = $terms;
}
/**
* @return DealTerms
*/
public function getTerms()
{
return $this->terms;
}
/**
* Time of last update.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
/**
* The web-property code for the seller. This needs to be copied as is when
* adding a new deal to a proposal.
*
* @param string $webPropertyCode
*/
public function setWebPropertyCode($webPropertyCode)
{
$this->webPropertyCode = $webPropertyCode;
}
/**
* @return string
*/
public function getWebPropertyCode()
{
return $this->webPropertyCode;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Product::class, 'Google_Service_AdExchangeBuyerII_Product');
@@ -0,0 +1,496 @@
<?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\AdExchangeBuyerII;
class Proposal extends \Google\Collection
{
/**
* A placeholder for an undefined buyer/seller role.
*/
public const LAST_UPDATER_OR_COMMENTOR_ROLE_BUYER_SELLER_ROLE_UNSPECIFIED = 'BUYER_SELLER_ROLE_UNSPECIFIED';
/**
* Specifies the role as buyer.
*/
public const LAST_UPDATER_OR_COMMENTOR_ROLE_BUYER = 'BUYER';
/**
* Specifies the role as seller.
*/
public const LAST_UPDATER_OR_COMMENTOR_ROLE_SELLER = 'SELLER';
/**
* A placeholder for an undefined buyer/seller role.
*/
public const ORIGINATOR_ROLE_BUYER_SELLER_ROLE_UNSPECIFIED = 'BUYER_SELLER_ROLE_UNSPECIFIED';
/**
* Specifies the role as buyer.
*/
public const ORIGINATOR_ROLE_BUYER = 'BUYER';
/**
* Specifies the role as seller.
*/
public const ORIGINATOR_ROLE_SELLER = 'SELLER';
/**
* A placeholder for an undefined proposal state.
*/
public const PROPOSAL_STATE_PROPOSAL_STATE_UNSPECIFIED = 'PROPOSAL_STATE_UNSPECIFIED';
/**
* The proposal is under negotiation or renegotiation.
*/
public const PROPOSAL_STATE_PROPOSED = 'PROPOSED';
/**
* The proposal has been accepted by the buyer.
*/
public const PROPOSAL_STATE_BUYER_ACCEPTED = 'BUYER_ACCEPTED';
/**
* The proposal has been accepted by the seller.
*/
public const PROPOSAL_STATE_SELLER_ACCEPTED = 'SELLER_ACCEPTED';
/**
* The negotiations on the proposal were canceled and the proposal was never
* finalized.
*/
public const PROPOSAL_STATE_CANCELED = 'CANCELED';
/**
* The proposal is finalized. During renegotiation, the proposal may not be in
* this state.
*/
public const PROPOSAL_STATE_FINALIZED = 'FINALIZED';
protected $collection_key = 'sellerContacts';
protected $billedBuyerType = Buyer::class;
protected $billedBuyerDataType = '';
protected $buyerType = Buyer::class;
protected $buyerDataType = '';
protected $buyerContactsType = ContactInformation::class;
protected $buyerContactsDataType = 'array';
protected $buyerPrivateDataType = PrivateData::class;
protected $buyerPrivateDataDataType = '';
protected $dealsType = Deal::class;
protected $dealsDataType = 'array';
/**
* The name for the proposal.
*
* @var string
*/
public $displayName;
/**
* Output only. True if the proposal is being renegotiated.
*
* @var bool
*/
public $isRenegotiating;
/**
* Output only. True, if the buyside inventory setup is complete for this
* proposal.
*
* @deprecated
* @var bool
*/
public $isSetupComplete;
/**
* Output only. The role of the last user that either updated the proposal or
* left a comment.
*
* @var string
*/
public $lastUpdaterOrCommentorRole;
protected $notesType = Note::class;
protected $notesDataType = 'array';
/**
* Output only. Indicates whether the buyer/seller created the proposal.
*
* @var string
*/
public $originatorRole;
/**
* Output only. Private auction ID if this proposal is a private auction
* proposal.
*
* @var string
*/
public $privateAuctionId;
/**
* Output only. The unique ID of the proposal.
*
* @var string
*/
public $proposalId;
/**
* Output only. The revision number for the proposal. Each update to the
* proposal or the deal causes the proposal revision number to auto-increment.
* The buyer keeps track of the last revision number they know of and pass it
* in when making an update. If the head revision number on the server has
* since incremented, then an ABORTED error is returned during the update
* operation to let the buyer know that a subsequent update was made.
*
* @var string
*/
public $proposalRevision;
/**
* Output only. The current state of the proposal.
*
* @var string
*/
public $proposalState;
protected $sellerType = Seller::class;
protected $sellerDataType = '';
protected $sellerContactsType = ContactInformation::class;
protected $sellerContactsDataType = 'array';
/**
* Output only. The terms and conditions set by the publisher for this
* proposal.
*
* @var string
*/
public $termsAndConditions;
/**
* Output only. The time when the proposal was last revised.
*
* @var string
*/
public $updateTime;
/**
* Output only. Reference to the buyer that will get billed for this proposal.
*
* @param Buyer $billedBuyer
*/
public function setBilledBuyer(Buyer $billedBuyer)
{
$this->billedBuyer = $billedBuyer;
}
/**
* @return Buyer
*/
public function getBilledBuyer()
{
return $this->billedBuyer;
}
/**
* Reference to the buyer on the proposal. Note: This field may be set only
* when creating the resource. Modifying this field while updating the
* resource will result in an error.
*
* @param Buyer $buyer
*/
public function setBuyer(Buyer $buyer)
{
$this->buyer = $buyer;
}
/**
* @return Buyer
*/
public function getBuyer()
{
return $this->buyer;
}
/**
* Contact information for the buyer.
*
* @param ContactInformation[] $buyerContacts
*/
public function setBuyerContacts($buyerContacts)
{
$this->buyerContacts = $buyerContacts;
}
/**
* @return ContactInformation[]
*/
public function getBuyerContacts()
{
return $this->buyerContacts;
}
/**
* Private data for buyer. (hidden from seller).
*
* @param PrivateData $buyerPrivateData
*/
public function setBuyerPrivateData(PrivateData $buyerPrivateData)
{
$this->buyerPrivateData = $buyerPrivateData;
}
/**
* @return PrivateData
*/
public function getBuyerPrivateData()
{
return $this->buyerPrivateData;
}
/**
* The deals associated with this proposal. For Private Auction proposals
* (whose deals have NonGuaranteedAuctionTerms), there will only be one deal.
*
* @param Deal[] $deals
*/
public function setDeals($deals)
{
$this->deals = $deals;
}
/**
* @return Deal[]
*/
public function getDeals()
{
return $this->deals;
}
/**
* The name for the proposal.
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* Output only. True if the proposal is being renegotiated.
*
* @param bool $isRenegotiating
*/
public function setIsRenegotiating($isRenegotiating)
{
$this->isRenegotiating = $isRenegotiating;
}
/**
* @return bool
*/
public function getIsRenegotiating()
{
return $this->isRenegotiating;
}
/**
* Output only. True, if the buyside inventory setup is complete for this
* proposal.
*
* @deprecated
* @param bool $isSetupComplete
*/
public function setIsSetupComplete($isSetupComplete)
{
$this->isSetupComplete = $isSetupComplete;
}
/**
* @deprecated
* @return bool
*/
public function getIsSetupComplete()
{
return $this->isSetupComplete;
}
/**
* Output only. The role of the last user that either updated the proposal or
* left a comment.
*
* Accepted values: BUYER_SELLER_ROLE_UNSPECIFIED, BUYER, SELLER
*
* @param self::LAST_UPDATER_OR_COMMENTOR_ROLE_* $lastUpdaterOrCommentorRole
*/
public function setLastUpdaterOrCommentorRole($lastUpdaterOrCommentorRole)
{
$this->lastUpdaterOrCommentorRole = $lastUpdaterOrCommentorRole;
}
/**
* @return self::LAST_UPDATER_OR_COMMENTOR_ROLE_*
*/
public function getLastUpdaterOrCommentorRole()
{
return $this->lastUpdaterOrCommentorRole;
}
/**
* Output only. The notes associated with this proposal.
*
* @param Note[] $notes
*/
public function setNotes($notes)
{
$this->notes = $notes;
}
/**
* @return Note[]
*/
public function getNotes()
{
return $this->notes;
}
/**
* Output only. Indicates whether the buyer/seller created the proposal.
*
* Accepted values: BUYER_SELLER_ROLE_UNSPECIFIED, BUYER, SELLER
*
* @param self::ORIGINATOR_ROLE_* $originatorRole
*/
public function setOriginatorRole($originatorRole)
{
$this->originatorRole = $originatorRole;
}
/**
* @return self::ORIGINATOR_ROLE_*
*/
public function getOriginatorRole()
{
return $this->originatorRole;
}
/**
* Output only. Private auction ID if this proposal is a private auction
* proposal.
*
* @param string $privateAuctionId
*/
public function setPrivateAuctionId($privateAuctionId)
{
$this->privateAuctionId = $privateAuctionId;
}
/**
* @return string
*/
public function getPrivateAuctionId()
{
return $this->privateAuctionId;
}
/**
* Output only. The unique ID of the proposal.
*
* @param string $proposalId
*/
public function setProposalId($proposalId)
{
$this->proposalId = $proposalId;
}
/**
* @return string
*/
public function getProposalId()
{
return $this->proposalId;
}
/**
* Output only. The revision number for the proposal. Each update to the
* proposal or the deal causes the proposal revision number to auto-increment.
* The buyer keeps track of the last revision number they know of and pass it
* in when making an update. If the head revision number on the server has
* since incremented, then an ABORTED error is returned during the update
* operation to let the buyer know that a subsequent update was made.
*
* @param string $proposalRevision
*/
public function setProposalRevision($proposalRevision)
{
$this->proposalRevision = $proposalRevision;
}
/**
* @return string
*/
public function getProposalRevision()
{
return $this->proposalRevision;
}
/**
* Output only. The current state of the proposal.
*
* Accepted values: PROPOSAL_STATE_UNSPECIFIED, PROPOSED, BUYER_ACCEPTED,
* SELLER_ACCEPTED, CANCELED, FINALIZED
*
* @param self::PROPOSAL_STATE_* $proposalState
*/
public function setProposalState($proposalState)
{
$this->proposalState = $proposalState;
}
/**
* @return self::PROPOSAL_STATE_*
*/
public function getProposalState()
{
return $this->proposalState;
}
/**
* Reference to the seller on the proposal. Note: This field may be set only
* when creating the resource. Modifying this field while updating the
* resource will result in an error.
*
* @param Seller $seller
*/
public function setSeller(Seller $seller)
{
$this->seller = $seller;
}
/**
* @return Seller
*/
public function getSeller()
{
return $this->seller;
}
/**
* Output only. Contact information for the seller.
*
* @param ContactInformation[] $sellerContacts
*/
public function setSellerContacts($sellerContacts)
{
$this->sellerContacts = $sellerContacts;
}
/**
* @return ContactInformation[]
*/
public function getSellerContacts()
{
return $this->sellerContacts;
}
/**
* Output only. The terms and conditions set by the publisher for this
* proposal.
*
* @param string $termsAndConditions
*/
public function setTermsAndConditions($termsAndConditions)
{
$this->termsAndConditions = $termsAndConditions;
}
/**
* @return string
*/
public function getTermsAndConditions()
{
return $this->termsAndConditions;
}
/**
* Output only. The time when the proposal was last revised.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Proposal::class, 'Google_Service_AdExchangeBuyerII_Proposal');
@@ -0,0 +1,426 @@
<?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\AdExchangeBuyerII;
class PublisherProfile extends \Google\Collection
{
protected $collection_key = 'topHeadlines';
/**
* Description on the publisher's audience.
*
* @var string
*/
public $audienceDescription;
/**
* Statement explaining what's unique about publisher's business, and why
* buyers should partner with the publisher.
*
* @var string
*/
public $buyerPitchStatement;
/**
* Contact information for direct reservation deals. This is free text entered
* by the publisher and may include information like names, phone numbers and
* email addresses.
*
* @var string
*/
public $directDealsContact;
/**
* Name of the publisher profile.
*
* @var string
*/
public $displayName;
/**
* The list of domains represented in this publisher profile. Empty if this is
* a parent profile. These are top private domains, meaning that these will
* not contain a string like "photos.google.co.uk/123", but will instead
* contain "google.co.uk".
*
* @var string[]
*/
public $domains;
/**
* URL to publisher's Google+ page.
*
* @var string
*/
public $googlePlusUrl;
/**
* Indicates if this profile is the parent profile of the seller. A parent
* profile represents all the inventory from the seller, as opposed to child
* profile that is created to brand a portion of inventory. One seller should
* have only one parent publisher profile, and can have multiple child
* profiles. Publisher profiles for the same seller will have same value of
* field google.ads.adexchange.buyer.v2beta1.PublisherProfile.seller. See
* https://support.google.com/admanager/answer/6035806 for details.
*
* @var bool
*/
public $isParent;
/**
* A Google public URL to the logo for this publisher profile. The logo is
* stored as a PNG, JPG, or GIF image.
*
* @var string
*/
public $logoUrl;
/**
* URL to additional marketing and sales materials.
*
* @var string
*/
public $mediaKitUrl;
protected $mobileAppsType = PublisherProfileMobileApplication::class;
protected $mobileAppsDataType = 'array';
/**
* Overview of the publisher.
*
* @var string
*/
public $overview;
/**
* Contact information for programmatic deals. This is free text entered by
* the publisher and may include information like names, phone numbers and
* email addresses.
*
* @var string
*/
public $programmaticDealsContact;
/**
* Unique ID for publisher profile.
*
* @var string
*/
public $publisherProfileId;
/**
* URL to a publisher rate card.
*
* @var string
*/
public $rateCardInfoUrl;
/**
* URL to a sample content page.
*
* @var string
*/
public $samplePageUrl;
protected $sellerType = Seller::class;
protected $sellerDataType = '';
/**
* Up to three key metrics and rankings. Max 100 characters each. For example
* "#1 Mobile News Site for 20 Straight Months".
*
* @var string[]
*/
public $topHeadlines;
/**
* Description on the publisher's audience.
*
* @param string $audienceDescription
*/
public function setAudienceDescription($audienceDescription)
{
$this->audienceDescription = $audienceDescription;
}
/**
* @return string
*/
public function getAudienceDescription()
{
return $this->audienceDescription;
}
/**
* Statement explaining what's unique about publisher's business, and why
* buyers should partner with the publisher.
*
* @param string $buyerPitchStatement
*/
public function setBuyerPitchStatement($buyerPitchStatement)
{
$this->buyerPitchStatement = $buyerPitchStatement;
}
/**
* @return string
*/
public function getBuyerPitchStatement()
{
return $this->buyerPitchStatement;
}
/**
* Contact information for direct reservation deals. This is free text entered
* by the publisher and may include information like names, phone numbers and
* email addresses.
*
* @param string $directDealsContact
*/
public function setDirectDealsContact($directDealsContact)
{
$this->directDealsContact = $directDealsContact;
}
/**
* @return string
*/
public function getDirectDealsContact()
{
return $this->directDealsContact;
}
/**
* Name of the publisher profile.
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* The list of domains represented in this publisher profile. Empty if this is
* a parent profile. These are top private domains, meaning that these will
* not contain a string like "photos.google.co.uk/123", but will instead
* contain "google.co.uk".
*
* @param string[] $domains
*/
public function setDomains($domains)
{
$this->domains = $domains;
}
/**
* @return string[]
*/
public function getDomains()
{
return $this->domains;
}
/**
* URL to publisher's Google+ page.
*
* @param string $googlePlusUrl
*/
public function setGooglePlusUrl($googlePlusUrl)
{
$this->googlePlusUrl = $googlePlusUrl;
}
/**
* @return string
*/
public function getGooglePlusUrl()
{
return $this->googlePlusUrl;
}
/**
* Indicates if this profile is the parent profile of the seller. A parent
* profile represents all the inventory from the seller, as opposed to child
* profile that is created to brand a portion of inventory. One seller should
* have only one parent publisher profile, and can have multiple child
* profiles. Publisher profiles for the same seller will have same value of
* field google.ads.adexchange.buyer.v2beta1.PublisherProfile.seller. See
* https://support.google.com/admanager/answer/6035806 for details.
*
* @param bool $isParent
*/
public function setIsParent($isParent)
{
$this->isParent = $isParent;
}
/**
* @return bool
*/
public function getIsParent()
{
return $this->isParent;
}
/**
* A Google public URL to the logo for this publisher profile. The logo is
* stored as a PNG, JPG, or GIF image.
*
* @param string $logoUrl
*/
public function setLogoUrl($logoUrl)
{
$this->logoUrl = $logoUrl;
}
/**
* @return string
*/
public function getLogoUrl()
{
return $this->logoUrl;
}
/**
* URL to additional marketing and sales materials.
*
* @param string $mediaKitUrl
*/
public function setMediaKitUrl($mediaKitUrl)
{
$this->mediaKitUrl = $mediaKitUrl;
}
/**
* @return string
*/
public function getMediaKitUrl()
{
return $this->mediaKitUrl;
}
/**
* The list of apps represented in this publisher profile. Empty if this is a
* parent profile.
*
* @param PublisherProfileMobileApplication[] $mobileApps
*/
public function setMobileApps($mobileApps)
{
$this->mobileApps = $mobileApps;
}
/**
* @return PublisherProfileMobileApplication[]
*/
public function getMobileApps()
{
return $this->mobileApps;
}
/**
* Overview of the publisher.
*
* @param string $overview
*/
public function setOverview($overview)
{
$this->overview = $overview;
}
/**
* @return string
*/
public function getOverview()
{
return $this->overview;
}
/**
* Contact information for programmatic deals. This is free text entered by
* the publisher and may include information like names, phone numbers and
* email addresses.
*
* @param string $programmaticDealsContact
*/
public function setProgrammaticDealsContact($programmaticDealsContact)
{
$this->programmaticDealsContact = $programmaticDealsContact;
}
/**
* @return string
*/
public function getProgrammaticDealsContact()
{
return $this->programmaticDealsContact;
}
/**
* Unique ID for publisher profile.
*
* @param string $publisherProfileId
*/
public function setPublisherProfileId($publisherProfileId)
{
$this->publisherProfileId = $publisherProfileId;
}
/**
* @return string
*/
public function getPublisherProfileId()
{
return $this->publisherProfileId;
}
/**
* URL to a publisher rate card.
*
* @param string $rateCardInfoUrl
*/
public function setRateCardInfoUrl($rateCardInfoUrl)
{
$this->rateCardInfoUrl = $rateCardInfoUrl;
}
/**
* @return string
*/
public function getRateCardInfoUrl()
{
return $this->rateCardInfoUrl;
}
/**
* URL to a sample content page.
*
* @param string $samplePageUrl
*/
public function setSamplePageUrl($samplePageUrl)
{
$this->samplePageUrl = $samplePageUrl;
}
/**
* @return string
*/
public function getSamplePageUrl()
{
return $this->samplePageUrl;
}
/**
* Seller of the publisher profile.
*
* @param Seller $seller
*/
public function setSeller(Seller $seller)
{
$this->seller = $seller;
}
/**
* @return Seller
*/
public function getSeller()
{
return $this->seller;
}
/**
* Up to three key metrics and rankings. Max 100 characters each. For example
* "#1 Mobile News Site for 20 Straight Months".
*
* @param string[] $topHeadlines
*/
public function setTopHeadlines($topHeadlines)
{
$this->topHeadlines = $topHeadlines;
}
/**
* @return string[]
*/
public function getTopHeadlines()
{
return $this->topHeadlines;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PublisherProfile::class, 'Google_Service_AdExchangeBuyerII_PublisherProfile');
@@ -0,0 +1,152 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AdExchangeBuyerII;
class PublisherProfileMobileApplication extends \Google\Model
{
/**
* A placeholder for an unknown app store.
*/
public const APP_STORE_APP_STORE_TYPE_UNSPECIFIED = 'APP_STORE_TYPE_UNSPECIFIED';
/**
* Apple iTunes
*/
public const APP_STORE_APPLE_ITUNES = 'APPLE_ITUNES';
/**
* Google Play
*/
public const APP_STORE_GOOGLE_PLAY = 'GOOGLE_PLAY';
/**
* Roku
*/
public const APP_STORE_ROKU = 'ROKU';
/**
* Amazon Fire TV
*/
public const APP_STORE_AMAZON_FIRETV = 'AMAZON_FIRETV';
/**
* Playstation
*/
public const APP_STORE_PLAYSTATION = 'PLAYSTATION';
/**
* Xbox
*/
public const APP_STORE_XBOX = 'XBOX';
/**
* Samsung TV
*/
public const APP_STORE_SAMSUNG_TV = 'SAMSUNG_TV';
/**
* Amazon Appstore
*/
public const APP_STORE_AMAZON = 'AMAZON';
/**
* OPPO App Market
*/
public const APP_STORE_OPPO = 'OPPO';
/**
* Samsung Galaxy Store
*/
public const APP_STORE_SAMSUNG = 'SAMSUNG';
/**
* VIVO App Store
*/
public const APP_STORE_VIVO = 'VIVO';
/**
* Xiaomi GetApps
*/
public const APP_STORE_XIAOMI = 'XIAOMI';
/**
* LG TV
*/
public const APP_STORE_LG_TV = 'LG_TV';
/**
* The app store the app belongs to.
*
* @var string
*/
public $appStore;
/**
* The external ID for the app from its app store.
*
* @var string
*/
public $externalAppId;
/**
* The name of the app.
*
* @var string
*/
public $name;
/**
* The app store the app belongs to.
*
* Accepted values: APP_STORE_TYPE_UNSPECIFIED, APPLE_ITUNES, GOOGLE_PLAY,
* ROKU, AMAZON_FIRETV, PLAYSTATION, XBOX, SAMSUNG_TV, AMAZON, OPPO, SAMSUNG,
* VIVO, XIAOMI, LG_TV
*
* @param self::APP_STORE_* $appStore
*/
public function setAppStore($appStore)
{
$this->appStore = $appStore;
}
/**
* @return self::APP_STORE_*
*/
public function getAppStore()
{
return $this->appStore;
}
/**
* The external ID for the app from its app store.
*
* @param string $externalAppId
*/
public function setExternalAppId($externalAppId)
{
$this->externalAppId = $externalAppId;
}
/**
* @return string
*/
public function getExternalAppId()
{
return $this->externalAppId;
}
/**
* The name of the app.
*
* @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(PublisherProfileMobileApplication::class, 'Google_Service_AdExchangeBuyerII_PublisherProfileMobileApplication');
@@ -0,0 +1,48 @@
<?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\AdExchangeBuyerII;
class RealtimeTimeRange extends \Google\Model
{
/**
* The start timestamp of the real-time RTB metrics aggregation.
*
* @var string
*/
public $startTimestamp;
/**
* The start timestamp of the real-time RTB metrics aggregation.
*
* @param string $startTimestamp
*/
public function setStartTimestamp($startTimestamp)
{
$this->startTimestamp = $startTimestamp;
}
/**
* @return string
*/
public function getStartTimestamp()
{
return $this->startTimestamp;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RealtimeTimeRange::class, 'Google_Service_AdExchangeBuyerII_RealtimeTimeRange');
@@ -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\AdExchangeBuyerII;
class RelativeDateRange extends \Google\Model
{
/**
* The number of days in the requested date range, for example, for a range
* spanning today: 1. For a range spanning the last 7 days: 7.
*
* @var int
*/
public $durationDays;
/**
* The end date of the filter set, specified as the number of days before
* today, for example, for a range where the last date is today: 0.
*
* @var int
*/
public $offsetDays;
/**
* The number of days in the requested date range, for example, for a range
* spanning today: 1. For a range spanning the last 7 days: 7.
*
* @param int $durationDays
*/
public function setDurationDays($durationDays)
{
$this->durationDays = $durationDays;
}
/**
* @return int
*/
public function getDurationDays()
{
return $this->durationDays;
}
/**
* The end date of the filter set, specified as the number of days before
* today, for example, for a range where the last date is today: 0.
*
* @param int $offsetDays
*/
public function setOffsetDays($offsetDays)
{
$this->offsetDays = $offsetDays;
}
/**
* @return int
*/
public function getOffsetDays()
{
return $this->offsetDays;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RelativeDateRange::class, 'Google_Service_AdExchangeBuyerII_RelativeDateRange');
@@ -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\AdExchangeBuyerII;
class RemoveDealAssociationRequest extends \Google\Model
{
protected $associationType = CreativeDealAssociation::class;
protected $associationDataType = '';
/**
* The association between a creative and a deal that should be removed.
*
* @param CreativeDealAssociation $association
*/
public function setAssociation(CreativeDealAssociation $association)
{
$this->association = $association;
}
/**
* @return CreativeDealAssociation
*/
public function getAssociation()
{
return $this->association;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RemoveDealAssociationRequest::class, 'Google_Service_AdExchangeBuyerII_RemoveDealAssociationRequest');
@@ -0,0 +1,33 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AdExchangeBuyerII\Resource;
/**
* The "accounts" collection of methods.
* Typical usage is:
* <code>
* $adexchangebuyer2Service = new Google\Service\AdExchangeBuyerII(...);
* $accounts = $adexchangebuyer2Service->accounts;
* </code>
*/
class Accounts extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Accounts::class, 'Google_Service_AdExchangeBuyerII_Resource_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\AdExchangeBuyerII\Resource;
use Google\Service\AdExchangeBuyerII\Client;
use Google\Service\AdExchangeBuyerII\ListClientsResponse;
/**
* The "clients" collection of methods.
* Typical usage is:
* <code>
* $adexchangebuyer2Service = new Google\Service\AdExchangeBuyerII(...);
* $clients = $adexchangebuyer2Service->accounts_clients;
* </code>
*/
class AccountsClients extends \Google\Service\Resource
{
/**
* Creates a new client buyer. (clients.create)
*
* @param string $accountId Unique numerical account ID for the buyer of which
* the client buyer is a customer; the sponsor buyer to create a client for.
* (required)
* @param Client $postBody
* @param array $optParams Optional parameters.
* @return Client
* @throws \Google\Service\Exception
*/
public function create($accountId, Client $postBody, $optParams = [])
{
$params = ['accountId' => $accountId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Client::class);
}
/**
* Gets a client buyer with a given client account ID. (clients.get)
*
* @param string $accountId Numerical account ID of the client's sponsor buyer.
* (required)
* @param string $clientAccountId Numerical account ID of the client buyer to
* retrieve. (required)
* @param array $optParams Optional parameters.
* @return Client
* @throws \Google\Service\Exception
*/
public function get($accountId, $clientAccountId, $optParams = [])
{
$params = ['accountId' => $accountId, 'clientAccountId' => $clientAccountId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Client::class);
}
/**
* Lists all the clients for the current sponsor buyer.
* (clients.listAccountsClients)
*
* @param string $accountId Unique numerical account ID of the sponsor buyer to
* list the clients for.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Requested page size. The server may return fewer
* clients than requested. If unspecified, the server will pick an appropriate
* default.
* @opt_param string pageToken A token identifying a page of results the server
* should return. Typically, this is the value of
* ListClientsResponse.nextPageToken returned from the previous call to the
* accounts.clients.list method.
* @opt_param string partnerClientId Optional unique identifier (from the
* standpoint of an Ad Exchange sponsor buyer partner) of the client to return.
* If specified, at most one client will be returned in the response.
* @return ListClientsResponse
* @throws \Google\Service\Exception
*/
public function listAccountsClients($accountId, $optParams = [])
{
$params = ['accountId' => $accountId];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListClientsResponse::class);
}
/**
* Updates an existing client buyer. (clients.update)
*
* @param string $accountId Unique numerical account ID for the buyer of which
* the client buyer is a customer; the sponsor buyer to update a client for.
* (required)
* @param string $clientAccountId Unique numerical account ID of the client to
* update. (required)
* @param Client $postBody
* @param array $optParams Optional parameters.
* @return Client
* @throws \Google\Service\Exception
*/
public function update($accountId, $clientAccountId, Client $postBody, $optParams = [])
{
$params = ['accountId' => $accountId, 'clientAccountId' => $clientAccountId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('update', [$params], Client::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccountsClients::class, 'Google_Service_AdExchangeBuyerII_Resource_AccountsClients');
@@ -0,0 +1,101 @@
<?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\AdExchangeBuyerII\Resource;
use Google\Service\AdExchangeBuyerII\ClientUserInvitation;
use Google\Service\AdExchangeBuyerII\ListClientUserInvitationsResponse;
/**
* The "invitations" collection of methods.
* Typical usage is:
* <code>
* $adexchangebuyer2Service = new Google\Service\AdExchangeBuyerII(...);
* $invitations = $adexchangebuyer2Service->accounts_clients_invitations;
* </code>
*/
class AccountsClientsInvitations extends \Google\Service\Resource
{
/**
* Creates and sends out an email invitation to access an Ad Exchange client
* buyer account. (invitations.create)
*
* @param string $accountId Numerical account ID of the client's sponsor buyer.
* (required)
* @param string $clientAccountId Numerical account ID of the client buyer that
* the user should be associated with. (required)
* @param ClientUserInvitation $postBody
* @param array $optParams Optional parameters.
* @return ClientUserInvitation
* @throws \Google\Service\Exception
*/
public function create($accountId, $clientAccountId, ClientUserInvitation $postBody, $optParams = [])
{
$params = ['accountId' => $accountId, 'clientAccountId' => $clientAccountId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], ClientUserInvitation::class);
}
/**
* Retrieves an existing client user invitation. (invitations.get)
*
* @param string $accountId Numerical account ID of the client's sponsor buyer.
* (required)
* @param string $clientAccountId Numerical account ID of the client buyer that
* the user invitation to be retrieved is associated with. (required)
* @param string $invitationId Numerical identifier of the user invitation to
* retrieve. (required)
* @param array $optParams Optional parameters.
* @return ClientUserInvitation
* @throws \Google\Service\Exception
*/
public function get($accountId, $clientAccountId, $invitationId, $optParams = [])
{
$params = ['accountId' => $accountId, 'clientAccountId' => $clientAccountId, 'invitationId' => $invitationId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], ClientUserInvitation::class);
}
/**
* Lists all the client users invitations for a client with a given account ID.
* (invitations.listAccountsClientsInvitations)
*
* @param string $accountId Numerical account ID of the client's sponsor buyer.
* (required)
* @param string $clientAccountId Numerical account ID of the client buyer to
* list invitations for. (required) You must either specify a string
* representation of a numerical account identifier or the `-` character to list
* all the invitations for all the clients of a given sponsor buyer.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Requested page size. Server may return fewer clients
* than requested. If unspecified, server will pick an appropriate default.
* @opt_param string pageToken A token identifying a page of results the server
* should return. Typically, this is the value of
* ListClientUserInvitationsResponse.nextPageToken returned from the previous
* call to the clients.invitations.list method.
* @return ListClientUserInvitationsResponse
* @throws \Google\Service\Exception
*/
public function listAccountsClientsInvitations($accountId, $clientAccountId, $optParams = [])
{
$params = ['accountId' => $accountId, 'clientAccountId' => $clientAccountId];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListClientUserInvitationsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccountsClientsInvitations::class, 'Google_Service_AdExchangeBuyerII_Resource_AccountsClientsInvitations');
@@ -0,0 +1,104 @@
<?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\AdExchangeBuyerII\Resource;
use Google\Service\AdExchangeBuyerII\ClientUser;
use Google\Service\AdExchangeBuyerII\ListClientUsersResponse;
/**
* The "users" collection of methods.
* Typical usage is:
* <code>
* $adexchangebuyer2Service = new Google\Service\AdExchangeBuyerII(...);
* $users = $adexchangebuyer2Service->accounts_clients_users;
* </code>
*/
class AccountsClientsUsers extends \Google\Service\Resource
{
/**
* Retrieves an existing client user. (users.get)
*
* @param string $accountId Numerical account ID of the client's sponsor buyer.
* (required)
* @param string $clientAccountId Numerical account ID of the client buyer that
* the user to be retrieved is associated with. (required)
* @param string $userId Numerical identifier of the user to retrieve.
* (required)
* @param array $optParams Optional parameters.
* @return ClientUser
* @throws \Google\Service\Exception
*/
public function get($accountId, $clientAccountId, $userId, $optParams = [])
{
$params = ['accountId' => $accountId, 'clientAccountId' => $clientAccountId, 'userId' => $userId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], ClientUser::class);
}
/**
* Lists all the known client users for a specified sponsor buyer account ID.
* (users.listAccountsClientsUsers)
*
* @param string $accountId Numerical account ID of the sponsor buyer of the
* client to list users for. (required)
* @param string $clientAccountId The account ID of the client buyer to list
* users for. (required) You must specify either a string representation of a
* numerical account identifier or the `-` character to list all the client
* users for all the clients of a given sponsor buyer.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Requested page size. The server may return fewer
* clients than requested. If unspecified, the server will pick an appropriate
* default.
* @opt_param string pageToken A token identifying a page of results the server
* should return. Typically, this is the value of
* ListClientUsersResponse.nextPageToken returned from the previous call to the
* accounts.clients.users.list method.
* @return ListClientUsersResponse
* @throws \Google\Service\Exception
*/
public function listAccountsClientsUsers($accountId, $clientAccountId, $optParams = [])
{
$params = ['accountId' => $accountId, 'clientAccountId' => $clientAccountId];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListClientUsersResponse::class);
}
/**
* Updates an existing client user. Only the user status can be changed on
* update. (users.update)
*
* @param string $accountId Numerical account ID of the client's sponsor buyer.
* (required)
* @param string $clientAccountId Numerical account ID of the client buyer that
* the user to be retrieved is associated with. (required)
* @param string $userId Numerical identifier of the user to retrieve.
* (required)
* @param ClientUser $postBody
* @param array $optParams Optional parameters.
* @return ClientUser
* @throws \Google\Service\Exception
*/
public function update($accountId, $clientAccountId, $userId, ClientUser $postBody, $optParams = [])
{
$params = ['accountId' => $accountId, 'clientAccountId' => $clientAccountId, 'userId' => $userId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('update', [$params], ClientUser::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccountsClientsUsers::class, 'Google_Service_AdExchangeBuyerII_Resource_AccountsClientsUsers');
@@ -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\AdExchangeBuyerII\Resource;
use Google\Service\AdExchangeBuyerII\Adexchangebuyer2Empty;
use Google\Service\AdExchangeBuyerII\Creative;
use Google\Service\AdExchangeBuyerII\ListCreativesResponse;
use Google\Service\AdExchangeBuyerII\StopWatchingCreativeRequest;
use Google\Service\AdExchangeBuyerII\WatchCreativeRequest;
/**
* The "creatives" collection of methods.
* Typical usage is:
* <code>
* $adexchangebuyer2Service = new Google\Service\AdExchangeBuyerII(...);
* $creatives = $adexchangebuyer2Service->accounts_creatives;
* </code>
*/
class AccountsCreatives extends \Google\Service\Resource
{
/**
* Creates a creative. (creatives.create)
*
* @param string $accountId The account that this creative belongs to. Can be
* used to filter the response of the creatives.list method.
* @param Creative $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string duplicateIdMode Indicates if multiple creatives can share
* an ID or not. Default is NO_DUPLICATES (one ID per creative).
* @return Creative
* @throws \Google\Service\Exception
*/
public function create($accountId, Creative $postBody, $optParams = [])
{
$params = ['accountId' => $accountId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Creative::class);
}
/**
* Gets a creative. (creatives.get)
*
* @param string $accountId The account the creative belongs to.
* @param string $creativeId The ID of the creative to retrieve.
* @param array $optParams Optional parameters.
* @return Creative
* @throws \Google\Service\Exception
*/
public function get($accountId, $creativeId, $optParams = [])
{
$params = ['accountId' => $accountId, 'creativeId' => $creativeId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Creative::class);
}
/**
* Lists creatives. (creatives.listAccountsCreatives)
*
* @param string $accountId The account to list the creatives from. Specify "-"
* to list all creatives the current user has access to.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Requested page size. The server may return fewer
* creatives than requested (due to timeout constraint) even if more are
* available through another call. If unspecified, server will pick an
* appropriate default. Acceptable values are 1 to 1000, inclusive.
* @opt_param string pageToken A token identifying a page of results the server
* should return. Typically, this is the value of
* ListCreativesResponse.next_page_token returned from the previous call to
* 'ListCreatives' method.
* @opt_param string query An optional query string to filter creatives. If no
* filter is specified, all active creatives will be returned. Supported queries
* are: - accountId=*account_id_string* - creativeId=*creative_id_string* -
* dealsStatus: {approved, conditionally_approved, disapproved, not_checked} -
* openAuctionStatus: {approved, conditionally_approved, disapproved,
* not_checked} - attribute: {a numeric attribute from the list of attributes} -
* disapprovalReason: {a reason from DisapprovalReason} Example:
* 'accountId=12345 AND (dealsStatus:disapproved AND
* disapprovalReason:unacceptable_content) OR attribute:47'
* @return ListCreativesResponse
* @throws \Google\Service\Exception
*/
public function listAccountsCreatives($accountId, $optParams = [])
{
$params = ['accountId' => $accountId];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListCreativesResponse::class);
}
/**
* Stops watching a creative. Will stop push notifications being sent to the
* topics when the creative changes status. (creatives.stopWatching)
*
* @param string $accountId The account of the creative to stop notifications
* for.
* @param string $creativeId The creative ID of the creative to stop
* notifications for. Specify "-" to specify stopping account level
* notifications.
* @param StopWatchingCreativeRequest $postBody
* @param array $optParams Optional parameters.
* @return Adexchangebuyer2Empty
* @throws \Google\Service\Exception
*/
public function stopWatching($accountId, $creativeId, StopWatchingCreativeRequest $postBody, $optParams = [])
{
$params = ['accountId' => $accountId, 'creativeId' => $creativeId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('stopWatching', [$params], Adexchangebuyer2Empty::class);
}
/**
* Updates a creative. (creatives.update)
*
* @param string $accountId The account that this creative belongs to. Can be
* used to filter the response of the creatives.list method.
* @param string $creativeId The buyer-defined creative ID of this creative. Can
* be used to filter the response of the creatives.list method.
* @param Creative $postBody
* @param array $optParams Optional parameters.
* @return Creative
* @throws \Google\Service\Exception
*/
public function update($accountId, $creativeId, Creative $postBody, $optParams = [])
{
$params = ['accountId' => $accountId, 'creativeId' => $creativeId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('update', [$params], Creative::class);
}
/**
* Watches a creative. Will result in push notifications being sent to the topic
* when the creative changes status. (creatives.watch)
*
* @param string $accountId The account of the creative to watch.
* @param string $creativeId The creative ID to watch for status changes.
* Specify "-" to watch all creatives under the above account. If both creative-
* level and account-level notifications are sent, only a single notification
* will be sent to the creative-level notification topic.
* @param WatchCreativeRequest $postBody
* @param array $optParams Optional parameters.
* @return Adexchangebuyer2Empty
* @throws \Google\Service\Exception
*/
public function watch($accountId, $creativeId, WatchCreativeRequest $postBody, $optParams = [])
{
$params = ['accountId' => $accountId, 'creativeId' => $creativeId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('watch', [$params], Adexchangebuyer2Empty::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccountsCreatives::class, 'Google_Service_AdExchangeBuyerII_Resource_AccountsCreatives');
@@ -0,0 +1,104 @@
<?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\AdExchangeBuyerII\Resource;
use Google\Service\AdExchangeBuyerII\AddDealAssociationRequest;
use Google\Service\AdExchangeBuyerII\Adexchangebuyer2Empty;
use Google\Service\AdExchangeBuyerII\ListDealAssociationsResponse;
use Google\Service\AdExchangeBuyerII\RemoveDealAssociationRequest;
/**
* The "dealAssociations" collection of methods.
* Typical usage is:
* <code>
* $adexchangebuyer2Service = new Google\Service\AdExchangeBuyerII(...);
* $dealAssociations = $adexchangebuyer2Service->accounts_creatives_dealAssociations;
* </code>
*/
class AccountsCreativesDealAssociations extends \Google\Service\Resource
{
/**
* Associate an existing deal with a creative. (dealAssociations.add)
*
* @param string $accountId The account the creative belongs to.
* @param string $creativeId The ID of the creative associated with the deal.
* @param AddDealAssociationRequest $postBody
* @param array $optParams Optional parameters.
* @return Adexchangebuyer2Empty
* @throws \Google\Service\Exception
*/
public function add($accountId, $creativeId, AddDealAssociationRequest $postBody, $optParams = [])
{
$params = ['accountId' => $accountId, 'creativeId' => $creativeId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('add', [$params], Adexchangebuyer2Empty::class);
}
/**
* List all creative-deal associations.
* (dealAssociations.listAccountsCreativesDealAssociations)
*
* @param string $accountId The account to list the associations from. Specify
* "-" to list all creatives the current user has access to.
* @param string $creativeId The creative ID to list the associations from.
* Specify "-" to list all creatives under the above account.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Requested page size. Server may return fewer
* associations than requested. If unspecified, server will pick an appropriate
* default.
* @opt_param string pageToken A token identifying a page of results the server
* should return. Typically, this is the value of
* ListDealAssociationsResponse.next_page_token returned from the previous call
* to 'ListDealAssociations' method.
* @opt_param string query An optional query string to filter deal associations.
* If no filter is specified, all associations will be returned. Supported
* queries are: - accountId=*account_id_string* -
* creativeId=*creative_id_string* - dealsId=*deals_id_string* -
* dealsStatus:{approved, conditionally_approved, disapproved, not_checked} -
* openAuctionStatus:{approved, conditionally_approved, disapproved,
* not_checked} Example: 'dealsId=12345 AND dealsStatus:disapproved'
* @return ListDealAssociationsResponse
* @throws \Google\Service\Exception
*/
public function listAccountsCreativesDealAssociations($accountId, $creativeId, $optParams = [])
{
$params = ['accountId' => $accountId, 'creativeId' => $creativeId];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListDealAssociationsResponse::class);
}
/**
* Remove the association between a deal and a creative.
* (dealAssociations.remove)
*
* @param string $accountId The account the creative belongs to.
* @param string $creativeId The ID of the creative associated with the deal.
* @param RemoveDealAssociationRequest $postBody
* @param array $optParams Optional parameters.
* @return Adexchangebuyer2Empty
* @throws \Google\Service\Exception
*/
public function remove($accountId, $creativeId, RemoveDealAssociationRequest $postBody, $optParams = [])
{
$params = ['accountId' => $accountId, 'creativeId' => $creativeId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('remove', [$params], Adexchangebuyer2Empty::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccountsCreativesDealAssociations::class, 'Google_Service_AdExchangeBuyerII_Resource_AccountsCreativesDealAssociations');
@@ -0,0 +1,113 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AdExchangeBuyerII\Resource;
use Google\Service\AdExchangeBuyerII\ListProposalsResponse;
use Google\Service\AdExchangeBuyerII\PauseProposalDealsRequest;
use Google\Service\AdExchangeBuyerII\Proposal;
use Google\Service\AdExchangeBuyerII\ResumeProposalDealsRequest;
/**
* The "finalizedProposals" collection of methods.
* Typical usage is:
* <code>
* $adexchangebuyer2Service = new Google\Service\AdExchangeBuyerII(...);
* $finalizedProposals = $adexchangebuyer2Service->accounts_finalizedProposals;
* </code>
*/
class AccountsFinalizedProposals extends \Google\Service\Resource
{
/**
* List finalized proposals, regardless if a proposal is being renegotiated. A
* filter expression (PQL query) may be specified to filter the results. The
* notes will not be returned.
* (finalizedProposals.listAccountsFinalizedProposals)
*
* @param string $accountId Account ID of the buyer.
* @param array $optParams Optional parameters.
*
* @opt_param string filter An optional PQL filter query used to query for
* proposals. Nested repeated fields, such as proposal.deals.targetingCriterion,
* cannot be filtered.
* @opt_param string filterSyntax Syntax the filter is written in. Current
* implementation defaults to PQL but in the future it will be LIST_FILTER.
* @opt_param int pageSize Requested page size. The server may return fewer
* results than requested. If unspecified, the server will pick an appropriate
* default.
* @opt_param string pageToken The page token as returned from
* ListProposalsResponse.
* @return ListProposalsResponse
* @throws \Google\Service\Exception
*/
public function listAccountsFinalizedProposals($accountId, $optParams = [])
{
$params = ['accountId' => $accountId];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListProposalsResponse::class);
}
/**
* Update given deals to pause serving. This method will set the
* `DealServingMetadata.DealPauseStatus.has_buyer_paused` bit to true for all
* listed deals in the request. Currently, this method only applies to PG and PD
* deals. For PA deals, call accounts.proposals.pause endpoint. It is a no-op to
* pause already-paused deals. It is an error to call PauseProposalDeals for
* deals which are not part of the proposal of proposal_id or which are not
* finalized or renegotiating. (finalizedProposals.pause)
*
* @param string $accountId Account ID of the buyer.
* @param string $proposalId The proposal_id of the proposal containing the
* deals.
* @param PauseProposalDealsRequest $postBody
* @param array $optParams Optional parameters.
* @return Proposal
* @throws \Google\Service\Exception
*/
public function pause($accountId, $proposalId, PauseProposalDealsRequest $postBody, $optParams = [])
{
$params = ['accountId' => $accountId, 'proposalId' => $proposalId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('pause', [$params], Proposal::class);
}
/**
* Update given deals to resume serving. This method will set the
* `DealServingMetadata.DealPauseStatus.has_buyer_paused` bit to false for all
* listed deals in the request. Currently, this method only applies to PG and PD
* deals. For PA deals, call accounts.proposals.resume endpoint. It is a no-op
* to resume running deals or deals paused by the other party. It is an error to
* call ResumeProposalDeals for deals which are not part of the proposal of
* proposal_id or which are not finalized or renegotiating.
* (finalizedProposals.resume)
*
* @param string $accountId Account ID of the buyer.
* @param string $proposalId The proposal_id of the proposal containing the
* deals.
* @param ResumeProposalDealsRequest $postBody
* @param array $optParams Optional parameters.
* @return Proposal
* @throws \Google\Service\Exception
*/
public function resume($accountId, $proposalId, ResumeProposalDealsRequest $postBody, $optParams = [])
{
$params = ['accountId' => $accountId, 'proposalId' => $proposalId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('resume', [$params], Proposal::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccountsFinalizedProposals::class, 'Google_Service_AdExchangeBuyerII_Resource_AccountsFinalizedProposals');
@@ -0,0 +1,76 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AdExchangeBuyerII\Resource;
use Google\Service\AdExchangeBuyerII\ListProductsResponse;
use Google\Service\AdExchangeBuyerII\Product;
/**
* The "products" collection of methods.
* Typical usage is:
* <code>
* $adexchangebuyer2Service = new Google\Service\AdExchangeBuyerII(...);
* $products = $adexchangebuyer2Service->accounts_products;
* </code>
*/
class AccountsProducts extends \Google\Service\Resource
{
/**
* Gets the requested product by ID. (products.get)
*
* @param string $accountId Account ID of the buyer.
* @param string $productId The ID for the product to get the head revision for.
* @param array $optParams Optional parameters.
* @return Product
* @throws \Google\Service\Exception
*/
public function get($accountId, $productId, $optParams = [])
{
$params = ['accountId' => $accountId, 'productId' => $productId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Product::class);
}
/**
* List all products visible to the buyer (optionally filtered by the specified
* PQL query). (products.listAccountsProducts)
*
* @param string $accountId Account ID of the buyer.
* @param array $optParams Optional parameters.
*
* @opt_param string filter An optional PQL query used to query for products.
* See https://developers.google.com/ad-manager/docs/pqlreference for
* documentation about PQL and examples. Nested repeated fields, such as
* product.targetingCriterion.inclusions, cannot be filtered.
* @opt_param int pageSize Requested page size. The server may return fewer
* results than requested. If unspecified, the server will pick an appropriate
* default.
* @opt_param string pageToken The page token as returned from
* ListProductsResponse.
* @return ListProductsResponse
* @throws \Google\Service\Exception
*/
public function listAccountsProducts($accountId, $optParams = [])
{
$params = ['accountId' => $accountId];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListProductsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccountsProducts::class, 'Google_Service_AdExchangeBuyerII_Resource_AccountsProducts');
@@ -0,0 +1,253 @@
<?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\AdExchangeBuyerII\Resource;
use Google\Service\AdExchangeBuyerII\AcceptProposalRequest;
use Google\Service\AdExchangeBuyerII\AddNoteRequest;
use Google\Service\AdExchangeBuyerII\CancelNegotiationRequest;
use Google\Service\AdExchangeBuyerII\CompleteSetupRequest;
use Google\Service\AdExchangeBuyerII\ListProposalsResponse;
use Google\Service\AdExchangeBuyerII\Note;
use Google\Service\AdExchangeBuyerII\PauseProposalRequest;
use Google\Service\AdExchangeBuyerII\Proposal;
use Google\Service\AdExchangeBuyerII\ResumeProposalRequest;
/**
* The "proposals" collection of methods.
* Typical usage is:
* <code>
* $adexchangebuyer2Service = new Google\Service\AdExchangeBuyerII(...);
* $proposals = $adexchangebuyer2Service->accounts_proposals;
* </code>
*/
class AccountsProposals extends \Google\Service\Resource
{
/**
* Mark the proposal as accepted at the given revision number. If the number
* does not match the server's revision number an `ABORTED` error message will
* be returned. This call updates the proposal_state from `PROPOSED` to
* `BUYER_ACCEPTED`, or from `SELLER_ACCEPTED` to `FINALIZED`. Upon calling this
* endpoint, the buyer implicitly agrees to the terms and conditions optionally
* set within the proposal by the publisher. (proposals.accept)
*
* @param string $accountId Account ID of the buyer.
* @param string $proposalId The ID of the proposal to accept.
* @param AcceptProposalRequest $postBody
* @param array $optParams Optional parameters.
* @return Proposal
* @throws \Google\Service\Exception
*/
public function accept($accountId, $proposalId, AcceptProposalRequest $postBody, $optParams = [])
{
$params = ['accountId' => $accountId, 'proposalId' => $proposalId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('accept', [$params], Proposal::class);
}
/**
* Create a new note and attach it to the proposal. The note is assigned a
* unique ID by the server. The proposal revision number will not increase when
* associated with a new note. (proposals.addNote)
*
* @param string $accountId Account ID of the buyer.
* @param string $proposalId The ID of the proposal to attach the note to.
* @param AddNoteRequest $postBody
* @param array $optParams Optional parameters.
* @return Note
* @throws \Google\Service\Exception
*/
public function addNote($accountId, $proposalId, AddNoteRequest $postBody, $optParams = [])
{
$params = ['accountId' => $accountId, 'proposalId' => $proposalId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('addNote', [$params], Note::class);
}
/**
* Cancel an ongoing negotiation on a proposal. This does not cancel or end
* serving for the deals if the proposal has been finalized, but only cancels a
* negotiation unilaterally. (proposals.cancelNegotiation)
*
* @param string $accountId Account ID of the buyer.
* @param string $proposalId The ID of the proposal to cancel negotiation for.
* @param CancelNegotiationRequest $postBody
* @param array $optParams Optional parameters.
* @return Proposal
* @throws \Google\Service\Exception
*/
public function cancelNegotiation($accountId, $proposalId, CancelNegotiationRequest $postBody, $optParams = [])
{
$params = ['accountId' => $accountId, 'proposalId' => $proposalId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('cancelNegotiation', [$params], Proposal::class);
}
/**
* You can opt-in to manually update proposals to indicate that setup is
* complete. By default, proposal setup is automatically completed after their
* deals are finalized. Contact your Technical Account Manager to opt in. Buyers
* can call this method when the proposal has been finalized, and all the
* required creatives have been uploaded using the Creatives API. This call
* updates the `is_setup_completed` field on the deals in the proposal, and
* notifies the seller. The server then advances the revision number of the most
* recent proposal. To mark an individual deal as ready to serve, call
* `buyers.finalizedDeals.setReadyToServe` in the Marketplace API.
* (proposals.completeSetup)
*
* @param string $accountId Account ID of the buyer.
* @param string $proposalId The ID of the proposal to mark as setup completed.
* @param CompleteSetupRequest $postBody
* @param array $optParams Optional parameters.
* @return Proposal
* @throws \Google\Service\Exception
*/
public function completeSetup($accountId, $proposalId, CompleteSetupRequest $postBody, $optParams = [])
{
$params = ['accountId' => $accountId, 'proposalId' => $proposalId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('completeSetup', [$params], Proposal::class);
}
/**
* Create the given proposal. Each created proposal and any deals it contains
* are assigned a unique ID by the server. (proposals.create)
*
* @param string $accountId Account ID of the buyer.
* @param Proposal $postBody
* @param array $optParams Optional parameters.
* @return Proposal
* @throws \Google\Service\Exception
*/
public function create($accountId, Proposal $postBody, $optParams = [])
{
$params = ['accountId' => $accountId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Proposal::class);
}
/**
* Gets a proposal given its ID. The proposal is returned at its head revision.
* (proposals.get)
*
* @param string $accountId Account ID of the buyer.
* @param string $proposalId The unique ID of the proposal
* @param array $optParams Optional parameters.
* @return Proposal
* @throws \Google\Service\Exception
*/
public function get($accountId, $proposalId, $optParams = [])
{
$params = ['accountId' => $accountId, 'proposalId' => $proposalId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Proposal::class);
}
/**
* List proposals. A filter expression (PQL query) may be specified to filter
* the results. To retrieve all finalized proposals, regardless if a proposal is
* being renegotiated, see the FinalizedProposals resource. Note that
* Bidder/ChildSeat relationships differ from the usual behavior. A Bidder
* account can only see its child seats' proposals by specifying the ChildSeat's
* accountId in the request path. (proposals.listAccountsProposals)
*
* @param string $accountId Account ID of the buyer.
* @param array $optParams Optional parameters.
*
* @opt_param string filter An optional PQL filter query used to query for
* proposals. Nested repeated fields, such as proposal.deals.targetingCriterion,
* cannot be filtered.
* @opt_param string filterSyntax Syntax the filter is written in. Current
* implementation defaults to PQL but in the future it will be LIST_FILTER.
* @opt_param int pageSize Requested page size. The server may return fewer
* results than requested. If unspecified, the server will pick an appropriate
* default.
* @opt_param string pageToken The page token as returned from
* ListProposalsResponse.
* @return ListProposalsResponse
* @throws \Google\Service\Exception
*/
public function listAccountsProposals($accountId, $optParams = [])
{
$params = ['accountId' => $accountId];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListProposalsResponse::class);
}
/**
* Update the given proposal to pause serving. This method will set the
* `DealServingMetadata.DealPauseStatus.has_buyer_paused` bit to true for all
* deals in the proposal. It is a no-op to pause an already-paused proposal. It
* is an error to call PauseProposal for a proposal that is not finalized or
* renegotiating. (proposals.pause)
*
* @param string $accountId Account ID of the buyer.
* @param string $proposalId The ID of the proposal to pause.
* @param PauseProposalRequest $postBody
* @param array $optParams Optional parameters.
* @return Proposal
* @throws \Google\Service\Exception
*/
public function pause($accountId, $proposalId, PauseProposalRequest $postBody, $optParams = [])
{
$params = ['accountId' => $accountId, 'proposalId' => $proposalId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('pause', [$params], Proposal::class);
}
/**
* Update the given proposal to resume serving. This method will set the
* `DealServingMetadata.DealPauseStatus.has_buyer_paused` bit to false for all
* deals in the proposal. Note that if the `has_seller_paused` bit is also set,
* serving will not resume until the seller also resumes. It is a no-op to
* resume an already-running proposal. It is an error to call ResumeProposal for
* a proposal that is not finalized or renegotiating. (proposals.resume)
*
* @param string $accountId Account ID of the buyer.
* @param string $proposalId The ID of the proposal to resume.
* @param ResumeProposalRequest $postBody
* @param array $optParams Optional parameters.
* @return Proposal
* @throws \Google\Service\Exception
*/
public function resume($accountId, $proposalId, ResumeProposalRequest $postBody, $optParams = [])
{
$params = ['accountId' => $accountId, 'proposalId' => $proposalId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('resume', [$params], Proposal::class);
}
/**
* Update the given proposal at the client known revision number. If the server
* revision has advanced since the passed-in `proposal.proposal_revision`, an
* `ABORTED` error message will be returned. Only the buyer-modifiable fields of
* the proposal will be updated. Note that the deals in the proposal will be
* updated to match the passed-in copy. If a passed-in deal does not have a
* `deal_id`, the server will assign a new unique ID and create the deal. If
* passed-in deal has a `deal_id`, it will be updated to match the passed-in
* copy. Any existing deals not present in the passed-in proposal will be
* deleted. It is an error to pass in a deal with a `deal_id` not present at
* head. (proposals.update)
*
* @param string $accountId Account ID of the buyer.
* @param string $proposalId The unique ID of the proposal.
* @param Proposal $postBody
* @param array $optParams Optional parameters.
* @return Proposal
* @throws \Google\Service\Exception
*/
public function update($accountId, $proposalId, Proposal $postBody, $optParams = [])
{
$params = ['accountId' => $accountId, 'proposalId' => $proposalId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('update', [$params], Proposal::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccountsProposals::class, 'Google_Service_AdExchangeBuyerII_Resource_AccountsProposals');
@@ -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\AdExchangeBuyerII\Resource;
use Google\Service\AdExchangeBuyerII\ListPublisherProfilesResponse;
use Google\Service\AdExchangeBuyerII\PublisherProfile;
/**
* The "publisherProfiles" collection of methods.
* Typical usage is:
* <code>
* $adexchangebuyer2Service = new Google\Service\AdExchangeBuyerII(...);
* $publisherProfiles = $adexchangebuyer2Service->accounts_publisherProfiles;
* </code>
*/
class AccountsPublisherProfiles extends \Google\Service\Resource
{
/**
* Gets the requested publisher profile by id. (publisherProfiles.get)
*
* @param string $accountId Account ID of the buyer.
* @param string $publisherProfileId The id for the publisher profile to get.
* @param array $optParams Optional parameters.
* @return PublisherProfile
* @throws \Google\Service\Exception
*/
public function get($accountId, $publisherProfileId, $optParams = [])
{
$params = ['accountId' => $accountId, 'publisherProfileId' => $publisherProfileId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], PublisherProfile::class);
}
/**
* List all publisher profiles visible to the buyer
* (publisherProfiles.listAccountsPublisherProfiles)
*
* @param string $accountId Account ID of the buyer.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Specify the number of results to include per page.
* @opt_param string pageToken The page token as return from
* ListPublisherProfilesResponse.
* @return ListPublisherProfilesResponse
* @throws \Google\Service\Exception
*/
public function listAccountsPublisherProfiles($accountId, $optParams = [])
{
$params = ['accountId' => $accountId];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListPublisherProfilesResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccountsPublisherProfiles::class, 'Google_Service_AdExchangeBuyerII_Resource_AccountsPublisherProfiles');

Some files were not shown because too many files have changed in this diff Show More