Google Ads Ad Manager V1 Client - Class Filter (0.1.0)

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

A filter over one or more fields.

Generated from protobuf message google.ads.admanager.v1.Report.Filter

Namespace

Google \ Ads \ AdManager \ V1 \ Report

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ field_filter Google\Ads\AdManager\V1\Report\Filter\FieldFilter

A filter on a single field.

↳ not_filter Google\Ads\AdManager\V1\Report\Filter

A filter whose result is negated.

↳ and_filter Google\Ads\AdManager\V1\Report\Filter\FilterList

A list of filters whose results are AND-ed.

↳ or_filter Google\Ads\AdManager\V1\Report\Filter\FilterList

A list of filters whose results are OR-ed.

getFieldFilter

A filter on a single field.

Returns
Type Description
Google\Ads\AdManager\V1\Report\Filter\FieldFilter|null

hasFieldFilter

setFieldFilter

A filter on a single field.

Parameter
Name Description
var Google\Ads\AdManager\V1\Report\Filter\FieldFilter
Returns
Type Description
$this

getNotFilter

A filter whose result is negated.

Returns
Type Description
Google\Ads\AdManager\V1\Report\Filter|null

hasNotFilter

setNotFilter

A filter whose result is negated.

Parameter
Name Description
var Google\Ads\AdManager\V1\Report\Filter
Returns
Type Description
$this

getAndFilter

A list of filters whose results are AND-ed.

Returns
Type Description
Google\Ads\AdManager\V1\Report\Filter\FilterList|null

hasAndFilter

setAndFilter

A list of filters whose results are AND-ed.

Parameter
Name Description
var Google\Ads\AdManager\V1\Report\Filter\FilterList
Returns
Type Description
$this

getOrFilter

A list of filters whose results are OR-ed.

Returns
Type Description
Google\Ads\AdManager\V1\Report\Filter\FilterList|null

hasOrFilter

setOrFilter

A list of filters whose results are OR-ed.

Parameter
Name Description
var Google\Ads\AdManager\V1\Report\Filter\FilterList
Returns
Type Description
$this

getType

Returns
Type Description
string