Google Ads Ad Manager V1 Client - Class Rule (0.14.1)

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

Eligibility criteria for a user to be part of an AudienceSegment.

Generated from protobuf message google.ads.admanager.v1.AudienceSegment.Rule

Namespace

Google \ Ads \ AdManager \ V1 \ AudienceSegment

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ inventory_targeting Google\Ads\AdManager\V1\InventoryTargeting

Required. Specification of inventory (i.e. ad units and placements) that are part of the rule of the RuleBasedFirstPartyAudienceSegment.

↳ custom_targeting Google\Ads\AdManager\V1\CustomTargeting

Optional. Specification of custom criteria that are part of the rule of the RuleBasedFirstPartyAudienceSegment. Once specified, the server may return a normalized but equivalent representation of the rule. There are up to 3 levels of custom criteria allowed. See CustomTargeting and its sub-messages for limitations.

getInventoryTargeting

Required. Specification of inventory (i.e. ad units and placements) that are part of the rule of the RuleBasedFirstPartyAudienceSegment.

Returns
Type Description
Google\Ads\AdManager\V1\InventoryTargeting|null

hasInventoryTargeting

clearInventoryTargeting

setInventoryTargeting

Required. Specification of inventory (i.e. ad units and placements) that are part of the rule of the RuleBasedFirstPartyAudienceSegment.

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

getCustomTargeting

Optional. Specification of custom criteria that are part of the rule of the RuleBasedFirstPartyAudienceSegment. Once specified, the server may return a normalized but equivalent representation of the rule. There are up to 3 levels of custom criteria allowed. See CustomTargeting and its sub-messages for limitations.

Returns
Type Description
Google\Ads\AdManager\V1\CustomTargeting|null

hasCustomTargeting

clearCustomTargeting

setCustomTargeting

Optional. Specification of custom criteria that are part of the rule of the RuleBasedFirstPartyAudienceSegment. Once specified, the server may return a normalized but equivalent representation of the rule. There are up to 3 levels of custom criteria allowed. See CustomTargeting and its sub-messages for limitations.

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