Interface AudienceSegmentTargetingOrBuilder (0.39.0)

public interface AudienceSegmentTargetingOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAudienceSegments(int index)

public abstract String getAudienceSegments(int index)

Optional. The targeted audience segments.

This is either the resource name of a first-party audience segment or an alias to the effective third-party audience segment. Third-party audience segment resource names containing ~direct or ~global will be normalized by the server. For example, networks/1234/audienceSegments/4567~direct will be normalized to networks/1234/audienceSegments/4567.

repeated string audience_segments = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The audienceSegments at the given index.

getAudienceSegmentsBytes(int index)

public abstract ByteString getAudienceSegmentsBytes(int index)

Optional. The targeted audience segments.

This is either the resource name of a first-party audience segment or an alias to the effective third-party audience segment. Third-party audience segment resource names containing ~direct or ~global will be normalized by the server. For example, networks/1234/audienceSegments/4567~direct will be normalized to networks/1234/audienceSegments/4567.

repeated string audience_segments = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the audienceSegments at the given index.

getAudienceSegmentsCount()

public abstract int getAudienceSegmentsCount()

Optional. The targeted audience segments.

This is either the resource name of a first-party audience segment or an alias to the effective third-party audience segment. Third-party audience segment resource names containing ~direct or ~global will be normalized by the server. For example, networks/1234/audienceSegments/4567~direct will be normalized to networks/1234/audienceSegments/4567.

repeated string audience_segments = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
int

The count of audienceSegments.

getAudienceSegmentsList()

public abstract List<String> getAudienceSegmentsList()

Optional. The targeted audience segments.

This is either the resource name of a first-party audience segment or an alias to the effective third-party audience segment. Third-party audience segment resource names containing ~direct or ~global will be normalized by the server. For example, networks/1234/audienceSegments/4567~direct will be normalized to networks/1234/audienceSegments/4567.

repeated string audience_segments = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
List<String>

A list containing the audienceSegments.

getNegative()

public abstract boolean getNegative()

Whether this expression is negatively targeted, meaning it matches ad requests that exclude the below values.

optional bool negative = 1;

Returns
Type Description
boolean

The negative.

hasNegative()

public abstract boolean hasNegative()

Whether this expression is negatively targeted, meaning it matches ad requests that exclude the below values.

optional bool negative = 1;

Returns
Type Description
boolean

Whether the negative field is set.