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

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 Filter\FieldFilter

A filter on a single field.

↳ not_filter Filter

A filter whose result is negated.

↳ and_filter Filter\FilterList

A list of filters whose results are AND-ed.

↳ or_filter Filter\FilterList

A list of filters whose results are OR-ed.

getFieldFilter

A filter on a single field.

Returns
Type Description
Filter\FieldFilter|null

hasFieldFilter

setFieldFilter

A filter on a single field.

Parameter
Name Description
var Filter\FieldFilter
Returns
Type Description
$this

getNotFilter

A filter whose result is negated.

Returns
Type Description
Filter|null

hasNotFilter

setNotFilter

A filter whose result is negated.

Parameter
Name Description
var Filter
Returns
Type Description
$this

getAndFilter

A list of filters whose results are AND-ed.

Returns
Type Description
Filter\FilterList|null

hasAndFilter

setAndFilter

A list of filters whose results are AND-ed.

Parameter
Name Description
var Filter\FilterList
Returns
Type Description
$this

getOrFilter

A list of filters whose results are OR-ed.

Returns
Type Description
Filter\FilterList|null

hasOrFilter

setOrFilter

A list of filters whose results are OR-ed.

Parameter
Name Description
var Filter\FilterList
Returns
Type Description
$this

getType

Returns
Type Description
string