Google Ads Ad Manager V1 Client - Class RunTrafficDataRequest (0.15.0)

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

Request object for RunTrafficData method.

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

Namespace

Google \ Ads \ AdManager \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ parent string

Required. Format: networks/{network_code}

↳ targeting Targeting

Required. The Targeting resource that defines a segment of traffic.

↳ requested_date_range DateRange

Required. The date range for which traffic data are requested. This range may cover historical dates, future dates, or both. The data returned are not guaranteed to cover the entire requested date range. If sufficient data are not available to cover the entire requested date range, a response may be returned with a later start date, earlier end date, or both.

getParent

Required. Format: networks/{network_code}

Returns
Type Description
string

setParent

Required. Format: networks/{network_code}

Parameter
Name Description
var string
Returns
Type Description
$this

getTargeting

Required. The Targeting resource that defines a segment of traffic.

Returns
Type Description
Targeting|null

hasTargeting

clearTargeting

setTargeting

Required. The Targeting resource that defines a segment of traffic.

Parameter
Name Description
var Targeting
Returns
Type Description
$this

getRequestedDateRange

Required. The date range for which traffic data are requested. This range may cover historical dates, future dates, or both.

The data returned are not guaranteed to cover the entire requested date range. If sufficient data are not available to cover the entire requested date range, a response may be returned with a later start date, earlier end date, or both.

Returns
Type Description
DateRange|null

hasRequestedDateRange

clearRequestedDateRange

setRequestedDateRange

Required. The date range for which traffic data are requested. This range may cover historical dates, future dates, or both.

The data returned are not guaranteed to cover the entire requested date range. If sufficient data are not available to cover the entire requested date range, a response may be returned with a later start date, earlier end date, or both.

Parameter
Name Description
var DateRange
Returns
Type Description
$this

static::build

Parameter
Name Description
parent string

Required. Format: networks/{network_code} Please see ForecastServiceClient::networkName() for help formatting this field.

Returns
Type Description
RunTrafficDataRequest