public static final class AdSenseCreativeDetails.Builder extends GeneratedMessage.Builder<AdSenseCreativeDetails.Builder> implements AdSenseCreativeDetailsOrBuilderAn AdSense dynamic allocation creative.
Protobuf type google.ads.admanager.v1.AdSenseCreativeDetails
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > AdSenseCreativeDetails.BuilderImplements
AdSenseCreativeDetailsOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public AdSenseCreativeDetails build()| Returns | |
|---|---|
| Type | Description |
AdSenseCreativeDetails |
|
buildPartial()
public AdSenseCreativeDetails buildPartial()| Returns | |
|---|---|
| Type | Description |
AdSenseCreativeDetails |
|
clear()
public AdSenseCreativeDetails.Builder clear()| Returns | |
|---|---|
| Type | Description |
AdSenseCreativeDetails.Builder |
|
clearBackfillSnippet()
public AdSenseCreativeDetails.Builder clearBackfillSnippet()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 |
AdSenseCreativeDetails.Builder |
This builder for chaining. |
clearSlotId()
public AdSenseCreativeDetails.Builder clearSlotId()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 |
AdSenseCreativeDetails.Builder |
This builder for chaining. |
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 |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(AdSenseCreativeDetails other)
public AdSenseCreativeDetails.Builder mergeFrom(AdSenseCreativeDetails other)| Parameter | |
|---|---|
| Name | Description |
other |
AdSenseCreativeDetails |
| Returns | |
|---|---|
| Type | Description |
AdSenseCreativeDetails.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public AdSenseCreativeDetails.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AdSenseCreativeDetails.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public AdSenseCreativeDetails.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
AdSenseCreativeDetails.Builder |
|
setBackfillSnippet(String value)
public AdSenseCreativeDetails.Builder setBackfillSnippet(String value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe backfillSnippet to set. |
| Returns | |
|---|---|
| Type | Description |
AdSenseCreativeDetails.Builder |
This builder for chaining. |
setBackfillSnippetBytes(ByteString value)
public AdSenseCreativeDetails.Builder setBackfillSnippetBytes(ByteString value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for backfillSnippet to set. |
| Returns | |
|---|---|
| Type | Description |
AdSenseCreativeDetails.Builder |
This builder for chaining. |
setSlotId(String value)
public AdSenseCreativeDetails.Builder setSlotId(String value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe slotId to set. |
| Returns | |
|---|---|
| Type | Description |
AdSenseCreativeDetails.Builder |
This builder for chaining. |
setSlotIdBytes(ByteString value)
public AdSenseCreativeDetails.Builder setSlotIdBytes(ByteString value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for slotId to set. |
| Returns | |
|---|---|
| Type | Description |
AdSenseCreativeDetails.Builder |
This builder for chaining. |