Google Ads Ad Manager V1 Client - Class HistoricalBasisVolumeSettings (0.17.0)

Reference documentation and code samples for the Google Ads Ad Manager V1 Client class HistoricalBasisVolumeSettings.

Settings to specify the volume of ad opportunities per day over the ForecastAdjustment date range based on the traffic volume of a historical reference period. The daily historical traffic for the provided targeting and date range is fetched, multiplied by the provided multiplier, and used as the daily expected traffic for the adjustment. The number of days included in the historical date range does not need to be the same as the number of days included in the adjustment date range.

Generated from protobuf message google.ads.admanager.v1.HistoricalBasisVolumeSettings

Namespace

Google \ Ads \ AdManager \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ use_parent_traffic_forecast_segment_targeting bool

Whether the parent traffic forecast segment targeting's or the targeting's historical volume data should be used.

↳ targeting Targeting

Optional. The targeting criteria to use as the source of the historical volume data. This field is required if useParentTrafficForecastSegmentTargeting is false and ignored otherwise.

↳ historical_date_range DateRange

Required. The date range to use for the historical ad opportunity volume.

↳ multiplier_milli_percent int|string

Required. The multiplier to apply to the historical traffic volume, expressed in thousandths of a percent. For example, to set the forecasted traffic as 130% of the historical traffic, this value would be 130,000.

getUseParentTrafficForecastSegmentTargeting

Whether the parent traffic forecast segment targeting's or the targeting's historical volume data should be used.

Returns
Type Description
bool

hasUseParentTrafficForecastSegmentTargeting

clearUseParentTrafficForecastSegmentTargeting

setUseParentTrafficForecastSegmentTargeting

Whether the parent traffic forecast segment targeting's or the targeting's historical volume data should be used.

Parameter
Name Description
var bool
Returns
Type Description
$this

getTargeting

Optional. The targeting criteria to use as the source of the historical volume data. This field is required if useParentTrafficForecastSegmentTargeting is false and ignored otherwise.

Returns
Type Description
Targeting|null

hasTargeting

clearTargeting

setTargeting

Optional. The targeting criteria to use as the source of the historical volume data. This field is required if useParentTrafficForecastSegmentTargeting is false and ignored otherwise.

Parameter
Name Description
var Targeting
Returns
Type Description
$this

getHistoricalDateRange

Required. The date range to use for the historical ad opportunity volume.

Returns
Type Description
DateRange|null

hasHistoricalDateRange

clearHistoricalDateRange

setHistoricalDateRange

Required. The date range to use for the historical ad opportunity volume.

Parameter
Name Description
var DateRange
Returns
Type Description
$this

getMultiplierMilliPercent

Required. The multiplier to apply to the historical traffic volume, expressed in thousandths of a percent. For example, to set the forecasted traffic as 130% of the historical traffic, this value would be 130,000.

Returns
Type Description
int|string

hasMultiplierMilliPercent

clearMultiplierMilliPercent

setMultiplierMilliPercent

Required. The multiplier to apply to the historical traffic volume, expressed in thousandths of a percent. For example, to set the forecasted traffic as 130% of the historical traffic, this value would be 130,000.

Parameter
Name Description
var int|string
Returns
Type Description
$this