Class AdSenseCreativeDetails (0.62.0)

public final class AdSenseCreativeDetails extends GeneratedMessage implements AdSenseCreativeDetailsOrBuilder

An AdSense dynamic allocation creative.

Protobuf type google.ads.admanager.v1.AdSenseCreativeDetails

Static Fields

BACKFILL_SNIPPET_FIELD_NUMBER

public static final int BACKFILL_SNIPPET_FIELD_NUMBER
Field Value
Type Description
int

SLOT_ID_FIELD_NUMBER

public static final int SLOT_ID_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static AdSenseCreativeDetails getDefaultInstance()
Returns
Type Description
AdSenseCreativeDetails

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static AdSenseCreativeDetails.Builder newBuilder()
Returns
Type Description
AdSenseCreativeDetails.Builder

newBuilder(AdSenseCreativeDetails prototype)

public static AdSenseCreativeDetails.Builder newBuilder(AdSenseCreativeDetails prototype)
Parameter
Name Description
prototype AdSenseCreativeDetails
Returns
Type Description
AdSenseCreativeDetails.Builder

parseDelimitedFrom(InputStream input)

public static AdSenseCreativeDetails parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AdSenseCreativeDetails
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AdSenseCreativeDetails parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AdSenseCreativeDetails
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static AdSenseCreativeDetails parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
AdSenseCreativeDetails
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AdSenseCreativeDetails parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AdSenseCreativeDetails
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AdSenseCreativeDetails parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
AdSenseCreativeDetails
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AdSenseCreativeDetails parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AdSenseCreativeDetails
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AdSenseCreativeDetails parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
AdSenseCreativeDetails
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AdSenseCreativeDetails parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AdSenseCreativeDetails
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static AdSenseCreativeDetails parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AdSenseCreativeDetails
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AdSenseCreativeDetails parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AdSenseCreativeDetails
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static AdSenseCreativeDetails parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
AdSenseCreativeDetails
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AdSenseCreativeDetails parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AdSenseCreativeDetails
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<AdSenseCreativeDetails> parser()
Returns
Type Description
Parser<AdSenseCreativeDetails>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getBackfillSnippet()

public String getBackfillSnippet()

Optional. The code snippet (ad tag) from Ad Exchange or AdSense to traffic the dynamic allocation creative. Only valid Ad Exchange or AdSense parameters will be considered. Any extraneous HTML or JavaScript will be ignored.

optional string backfill_snippet = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The backfillSnippet.

getBackfillSnippetBytes()

public ByteString getBackfillSnippetBytes()

Optional. The code snippet (ad tag) from Ad Exchange or AdSense to traffic the dynamic allocation creative. Only valid Ad Exchange or AdSense parameters will be considered. Any extraneous HTML or JavaScript will be ignored.

optional string backfill_snippet = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for backfillSnippet.

getDefaultInstanceForType()

public AdSenseCreativeDetails getDefaultInstanceForType()
Returns
Type Description
AdSenseCreativeDetails

getParserForType()

public Parser<AdSenseCreativeDetails> getParserForType()
Returns
Type Description
Parser<AdSenseCreativeDetails>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getSlotId()

public String getSlotId()

Output only. The ID of ad slot (inventory) that an advertiser might want to target.

optional string slot_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The slotId.

getSlotIdBytes()

public ByteString getSlotIdBytes()

Output only. The ID of ad slot (inventory) that an advertiser might want to target.

optional string slot_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for slotId.

hasBackfillSnippet()

public boolean hasBackfillSnippet()

Optional. The code snippet (ad tag) from Ad Exchange or AdSense to traffic the dynamic allocation creative. Only valid Ad Exchange or AdSense parameters will be considered. Any extraneous HTML or JavaScript will be ignored.

optional string backfill_snippet = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the backfillSnippet field is set.

hasSlotId()

public boolean hasSlotId()

Output only. The ID of ad slot (inventory) that an advertiser might want to target.

optional string slot_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the slotId field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public AdSenseCreativeDetails.Builder newBuilderForType()
Returns
Type Description
AdSenseCreativeDetails.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected AdSenseCreativeDetails.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
AdSenseCreativeDetails.Builder
Overrides

toBuilder()

public AdSenseCreativeDetails.Builder toBuilder()
Returns
Type Description
AdSenseCreativeDetails.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException