Interface NativeStyleOrBuilder (0.58.0)

public interface NativeStyleOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getCreativeTemplate()

public abstract String getCreativeTemplate()

Required. Immutable. The creative template this native style is associated with. Format: "networks/{network_code}/creativeTemplates/{creative_template}"

optional string creative_template = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The creativeTemplate.

getCreativeTemplateBytes()

public abstract ByteString getCreativeTemplateBytes()

Required. Immutable. The creative template this native style is associated with. Format: "networks/{network_code}/creativeTemplates/{creative_template}"

optional string creative_template = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for creativeTemplate.

getCssSnippet()

public abstract String getCssSnippet()

Optional. The CSS snippet of the native style, with placeholders for the associated variables.

optional string css_snippet = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The cssSnippet.

getCssSnippetBytes()

public abstract ByteString getCssSnippetBytes()

Optional. The CSS snippet of the native style, with placeholders for the associated variables.

optional string css_snippet = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for cssSnippet.

getDisplayName()

public abstract String getDisplayName()

Required. The display name of the native style. This attribute has a maximum length of 255 characters.

optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public abstract ByteString getDisplayNameBytes()

Required. The display name of the native style. This attribute has a maximum length of 255 characters.

optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for displayName.

getHtmlSnippet()

public abstract String getHtmlSnippet()

Optional. The HTML snippet of the native style with placeholders for the associated variables.

optional string html_snippet = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The htmlSnippet.

getHtmlSnippetBytes()

public abstract ByteString getHtmlSnippetBytes()

Optional. The HTML snippet of the native style with placeholders for the associated variables.

optional string html_snippet = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for htmlSnippet.

getName()

public abstract String getName()

Identifier. The resource name of the NativeStyle. Format: networks/{network_code}/nativeStyles/{native_style_id}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
String

The name.

getNameBytes()

public abstract ByteString getNameBytes()

Identifier. The resource name of the NativeStyle. Format: networks/{network_code}/nativeStyles/{native_style_id}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ByteString

The bytes for name.

getSize()

public abstract Size getSize()

Required. The size of the native style.

.google.ads.admanager.v1.Size size = 12 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Size

The size.

getSizeOrBuilder()

public abstract SizeOrBuilder getSizeOrBuilder()

Required. The size of the native style.

.google.ads.admanager.v1.Size size = 12 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SizeOrBuilder

getStatus()

public abstract NativeStyleStatusEnum.NativeStyleStatus getStatus()

Output only. The status of the native style.

optional .google.ads.admanager.v1.NativeStyleStatusEnum.NativeStyleStatus status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
NativeStyleStatusEnum.NativeStyleStatus

The status.

getStatusValue()

public abstract int getStatusValue()

Output only. The status of the native style.

optional .google.ads.admanager.v1.NativeStyleStatusEnum.NativeStyleStatus status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for status.

getTargeting()

public abstract Targeting getTargeting()

Optional. The targeting criteria for this native style.

.google.ads.admanager.v1.Targeting targeting = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Targeting

The targeting.

getTargetingOrBuilder()

public abstract TargetingOrBuilder getTargetingOrBuilder()

Optional. The targeting criteria for this native style.

.google.ads.admanager.v1.Targeting targeting = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TargetingOrBuilder

hasCreativeTemplate()

public abstract boolean hasCreativeTemplate()

Required. Immutable. The creative template this native style is associated with. Format: "networks/{network_code}/creativeTemplates/{creative_template}"

optional string creative_template = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
boolean

Whether the creativeTemplate field is set.

hasCssSnippet()

public abstract boolean hasCssSnippet()

Optional. The CSS snippet of the native style, with placeholders for the associated variables.

optional string css_snippet = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the cssSnippet field is set.

hasDisplayName()

public abstract boolean hasDisplayName()

Required. The display name of the native style. This attribute has a maximum length of 255 characters.

optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the displayName field is set.

hasHtmlSnippet()

public abstract boolean hasHtmlSnippet()

Optional. The HTML snippet of the native style with placeholders for the associated variables.

optional string html_snippet = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the htmlSnippet field is set.

hasSize()

public abstract boolean hasSize()

Required. The size of the native style.

.google.ads.admanager.v1.Size size = 12 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the size field is set.

hasStatus()

public abstract boolean hasStatus()

Output only. The status of the native style.

optional .google.ads.admanager.v1.NativeStyleStatusEnum.NativeStyleStatus status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the status field is set.

hasTargeting()

public abstract boolean hasTargeting()

Optional. The targeting criteria for this native style.

.google.ads.admanager.v1.Targeting targeting = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the targeting field is set.