public class AdSpot extends Object implements Serializable
AdSpot is a targetable entity used in the creation of
AdRule objects.
A ad spot contains a variable number of ads and has constraints (ad duration, reservation type, etc) on the ads that can appear in it.
| Constructor and Description |
|---|
AdSpot() |
AdSpot(Long id,
String name,
String displayName,
Boolean customSpot,
Boolean flexible,
Long maxDurationMillis,
Integer maxNumberOfAds,
AdSpotTargetingType targetingType,
Boolean backfillBlocked,
LineItemType[] allowedLineItemTypes,
Boolean inventorySharingBlocked) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
LineItemType[] |
getAllowedLineItemTypes()
Gets the allowedLineItemTypes value for this AdSpot.
|
LineItemType |
getAllowedLineItemTypes(int i) |
Boolean |
getBackfillBlocked()
Gets the backfillBlocked value for this AdSpot.
|
Boolean |
getCustomSpot()
Gets the customSpot value for this AdSpot.
|
static org.apache.axis.encoding.Deserializer |
getDeserializer(String mechType,
Class _javaType,
QName _xmlType)
Get Custom Deserializer
|
String |
getDisplayName()
Gets the displayName value for this AdSpot.
|
Boolean |
getFlexible()
Gets the flexible value for this AdSpot.
|
Long |
getId()
Gets the id value for this AdSpot.
|
Boolean |
getInventorySharingBlocked()
Gets the inventorySharingBlocked value for this AdSpot.
|
Long |
getMaxDurationMillis()
Gets the maxDurationMillis value for this AdSpot.
|
Integer |
getMaxNumberOfAds()
Gets the maxNumberOfAds value for this AdSpot.
|
String |
getName()
Gets the name value for this AdSpot.
|
static org.apache.axis.encoding.Serializer |
getSerializer(String mechType,
Class _javaType,
QName _xmlType)
Get Custom Serializer
|
AdSpotTargetingType |
getTargetingType()
Gets the targetingType value for this AdSpot.
|
static org.apache.axis.description.TypeDesc |
getTypeDesc()
Return type metadata object
|
int |
hashCode() |
void |
setAllowedLineItemTypes(int i,
LineItemType _value) |
void |
setAllowedLineItemTypes(LineItemType[] allowedLineItemTypes)
Sets the allowedLineItemTypes value for this AdSpot.
|
void |
setBackfillBlocked(Boolean backfillBlocked)
Sets the backfillBlocked value for this AdSpot.
|
void |
setCustomSpot(Boolean customSpot)
Sets the customSpot value for this AdSpot.
|
void |
setDisplayName(String displayName)
Sets the displayName value for this AdSpot.
|
void |
setFlexible(Boolean flexible)
Sets the flexible value for this AdSpot.
|
void |
setId(Long id)
Sets the id value for this AdSpot.
|
void |
setInventorySharingBlocked(Boolean inventorySharingBlocked)
Sets the inventorySharingBlocked value for this AdSpot.
|
void |
setMaxDurationMillis(Long maxDurationMillis)
Sets the maxDurationMillis value for this AdSpot.
|
void |
setMaxNumberOfAds(Integer maxNumberOfAds)
Sets the maxNumberOfAds value for this AdSpot.
|
void |
setName(String name)
Sets the name value for this AdSpot.
|
void |
setTargetingType(AdSpotTargetingType targetingType)
Sets the targetingType value for this AdSpot.
|
String |
toString() |
public Long getId()
AdSpot. This value is readonly
and is assigned by Google.public void setId(Long id)
id - * The unique ID of the AdSpot. This value is readonly
and is assigned by Google.public String getName()
AdSpot. The name is case insenstive and
can be referenced in ad tags. This
value is required if customSpot is true, and
cannot be set otherwise.
You can use alphanumeric characters and symbols other than the following: ", ', =, !, +, #, *, ~, ;, ^, (, ), <, >, [, ], the white space character.
public void setName(String name)
name - * Name of the AdSpot. The name is case insenstive and
can be referenced in ad tags. This
value is required if customSpot is true, and
cannot be set otherwise.
You can use alphanumeric characters and symbols other than the following: ", ', =, !, +, #, *, ~, ;, ^, (, ), <, >, [, ], the white space character.
public String getDisplayName()
AdSpot.This value is optional
if customSpot is true,
and cannot be set otherwise.public void setDisplayName(String displayName)
displayName - * Descriptive name for the AdSpot.This value is optional
if customSpot is true,
and cannot be set otherwise.public Boolean getCustomSpot()
Custom spots can be reused and targeted in the targeting picker.
public void setCustomSpot(Boolean customSpot)
customSpot - * Whether this ad spot is a custom spot. This field is optional
and defaults to false.
Custom spots can be reused and targeted in the targeting picker.
public Boolean getFlexible()
Flexible spots are allowed to have no max number of ads.
public void setFlexible(Boolean flexible)
flexible - * Whether this ad spot is a flexible spot. This field is optional
and defaults to false.
Flexible spots are allowed to have no max number of ads.
public Long getMaxDurationMillis()
AdSpot. This field
is optional, defaults to 0,
and supports precision to the nearest second.public void setMaxDurationMillis(Long maxDurationMillis)
maxDurationMillis - * The maximum total duration for this AdSpot. This field
is optional, defaults to 0,
and supports precision to the nearest second.public Integer getMaxNumberOfAds()
AdSpot. This
field is optional and defaults to
O.
A maxNumberOfAds of 0 means that there
is no maximum for the number of ads in the ad
spot. No max ads is only supported for ad spots that
have flexible set to true.
public void setMaxNumberOfAds(Integer maxNumberOfAds)
maxNumberOfAds - * The maximum number of ads allowed in the AdSpot. This
field is optional and defaults to
O.
A maxNumberOfAds of 0 means that there
is no maximum for the number of ads in the ad
spot. No max ads is only supported for ad spots that
have flexible set to true.
public AdSpotTargetingType getTargetingType()
SubpodTargetingType determines how this ad spot
can be targeted. This field is
required.public void setTargetingType(AdSpotTargetingType targetingType)
targetingType - * The SubpodTargetingType determines how this ad spot
can be targeted. This field is
required.public Boolean getBackfillBlocked()
public void setBackfillBlocked(Boolean backfillBlocked)
backfillBlocked - * Whether backfill is blocked in this ad spot. This field is
optional and defaults to false.public LineItemType[] getAllowedLineItemTypes()
Note, backfill reservation types are controlled
via the backfillBlocked field.
public void setAllowedLineItemTypes(LineItemType[] allowedLineItemTypes)
allowedLineItemTypes - * The set of line item types that may appear in the ad spot.
This field is optional and defaults
to an empty set, which means that all types are allowed.
Note, backfill reservation types are controlled
via the backfillBlocked field.
public LineItemType getAllowedLineItemTypes(int i)
public void setAllowedLineItemTypes(int i,
LineItemType _value)
public Boolean getInventorySharingBlocked()
public void setInventorySharingBlocked(Boolean inventorySharingBlocked)
inventorySharingBlocked - * Whether inventory sharing is blocked in this ad spot. This
field is optional and defaults to
false.public static org.apache.axis.description.TypeDesc getTypeDesc()
public static org.apache.axis.encoding.Serializer getSerializer(String mechType, Class _javaType, QName _xmlType)
Copyright © 2021. All rights reserved.