public class CreativeWrapper extends Object implements Serializable
CreativeWrapper allows the wrapping of HTML snippets
to be
served along with Creative objects.
Creative wrappers must be associated with a
LabelType.CREATIVE_WRAPPER label and applied to
ad units by
AdUnit.appliedLabels.
| Constructor and Description |
|---|
CreativeWrapper() |
CreativeWrapper(Long id,
Long labelId,
CreativeWrapperType creativeWrapperType,
String htmlHeader,
String htmlFooter,
String ampHead,
String ampBody,
ConversionEvent_TrackingUrlsMapEntry[] videoTrackingUrls,
ThirdPartyDataDeclaration thirdPartyDataDeclaration,
CreativeWrapperOrdering ordering,
CreativeWrapperStatus status) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getAmpBody()
Gets the ampBody value for this CreativeWrapper.
|
String |
getAmpHead()
Gets the ampHead value for this CreativeWrapper.
|
CreativeWrapperType |
getCreativeWrapperType()
Gets the creativeWrapperType value for this CreativeWrapper.
|
static org.apache.axis.encoding.Deserializer |
getDeserializer(String mechType,
Class _javaType,
QName _xmlType)
Get Custom Deserializer
|
String |
getHtmlFooter()
Gets the htmlFooter value for this CreativeWrapper.
|
String |
getHtmlHeader()
Gets the htmlHeader value for this CreativeWrapper.
|
Long |
getId()
Gets the id value for this CreativeWrapper.
|
Long |
getLabelId()
Gets the labelId value for this CreativeWrapper.
|
CreativeWrapperOrdering |
getOrdering()
Gets the ordering value for this CreativeWrapper.
|
static org.apache.axis.encoding.Serializer |
getSerializer(String mechType,
Class _javaType,
QName _xmlType)
Get Custom Serializer
|
CreativeWrapperStatus |
getStatus()
Gets the status value for this CreativeWrapper.
|
ThirdPartyDataDeclaration |
getThirdPartyDataDeclaration()
Gets the thirdPartyDataDeclaration value for this CreativeWrapper.
|
static org.apache.axis.description.TypeDesc |
getTypeDesc()
Return type metadata object
|
ConversionEvent_TrackingUrlsMapEntry[] |
getVideoTrackingUrls()
Gets the videoTrackingUrls value for this CreativeWrapper.
|
ConversionEvent_TrackingUrlsMapEntry |
getVideoTrackingUrls(int i) |
int |
hashCode() |
void |
setAmpBody(String ampBody)
Sets the ampBody value for this CreativeWrapper.
|
void |
setAmpHead(String ampHead)
Sets the ampHead value for this CreativeWrapper.
|
void |
setCreativeWrapperType(CreativeWrapperType creativeWrapperType)
Sets the creativeWrapperType value for this CreativeWrapper.
|
void |
setHtmlFooter(String htmlFooter)
Sets the htmlFooter value for this CreativeWrapper.
|
void |
setHtmlHeader(String htmlHeader)
Sets the htmlHeader value for this CreativeWrapper.
|
void |
setId(Long id)
Sets the id value for this CreativeWrapper.
|
void |
setLabelId(Long labelId)
Sets the labelId value for this CreativeWrapper.
|
void |
setOrdering(CreativeWrapperOrdering ordering)
Sets the ordering value for this CreativeWrapper.
|
void |
setStatus(CreativeWrapperStatus status)
Sets the status value for this CreativeWrapper.
|
void |
setThirdPartyDataDeclaration(ThirdPartyDataDeclaration thirdPartyDataDeclaration)
Sets the thirdPartyDataDeclaration value for this CreativeWrapper.
|
void |
setVideoTrackingUrls(ConversionEvent_TrackingUrlsMapEntry[] videoTrackingUrls)
Sets the videoTrackingUrls value for this CreativeWrapper.
|
void |
setVideoTrackingUrls(int i,
ConversionEvent_TrackingUrlsMapEntry _value) |
String |
toString() |
public CreativeWrapper()
public CreativeWrapper(Long id, Long labelId, CreativeWrapperType creativeWrapperType, String htmlHeader, String htmlFooter, String ampHead, String ampBody, ConversionEvent_TrackingUrlsMapEntry[] videoTrackingUrls, ThirdPartyDataDeclaration thirdPartyDataDeclaration, CreativeWrapperOrdering ordering, CreativeWrapperStatus status)
public Long getId()
CreativeWrapper. This value is
readonly
and is assigned by Google.public void setId(Long id)
id - * The unique ID of the CreativeWrapper. This value is
readonly
and is assigned by Google.public Long getLabelId()
Label which will be used to label ad
units. The
labelId on a creative wrapper cannot be changed
once it is
created.public void setLabelId(Long labelId)
labelId - * The ID of the Label which will be used to label ad
units. The
labelId on a creative wrapper cannot be changed
once it is
created.public CreativeWrapperType getCreativeWrapperType()
CreativeWrapperType.VIDEO_TRACKING_URL, the
videoTrackingUrls field must be
set. If the creative wrapper type is CreativeWrapperType.HTML,
either the
header or footer field must be set.
This field is required.public void setCreativeWrapperType(CreativeWrapperType creativeWrapperType)
creativeWrapperType - * The creative wrapper type. If the creative wrapper type is
CreativeWrapperType.VIDEO_TRACKING_URL, the
videoTrackingUrls field must be
set. If the creative wrapper type is CreativeWrapperType.HTML,
either the
header or footer field must be set.
This field is required.public String getHtmlHeader()
public void setHtmlHeader(String htmlHeader)
htmlHeader - * The header HTML snippet that this creative wrapper delivers.public String getHtmlFooter()
public void setHtmlFooter(String htmlFooter)
htmlFooter - * The footer HTML snippet that this creative wrapper delivers.public String getAmpHead()
public void setAmpHead(String ampHead)
ampHead - * The header AMP snippet that this creative wrapper delivers.public String getAmpBody()
public void setAmpBody(String ampBody)
ampBody - * The footer AMP snippet that this creative wrapper delivers.public ConversionEvent_TrackingUrlsMapEntry[] getVideoTrackingUrls()
creativeWrapperType is CreativeWrapperType.VIDEO_TRACKING_URL
and ignored
otherwise.public void setVideoTrackingUrls(ConversionEvent_TrackingUrlsMapEntry[] videoTrackingUrls)
videoTrackingUrls - * The video tracking URLs that this creative wrapper delivers.
This field is required if the
creativeWrapperType is CreativeWrapperType.VIDEO_TRACKING_URL
and ignored
otherwise.public ConversionEvent_TrackingUrlsMapEntry getVideoTrackingUrls(int i)
public void setVideoTrackingUrls(int i,
ConversionEvent_TrackingUrlsMapEntry _value)
public ThirdPartyDataDeclaration getThirdPartyDataDeclaration()
ThirdPartyDataDeclaration for this creative wrapper.
It is copied to one of the underlying creatives. If the header creative is active then it is persisted there. Otherwise it is stored on the footer creative.
public void setThirdPartyDataDeclaration(ThirdPartyDataDeclaration thirdPartyDataDeclaration)
thirdPartyDataDeclaration - * The ThirdPartyDataDeclaration for this creative wrapper.
It is copied to one of the underlying creatives. If the header creative is active then it is persisted there. Otherwise it is stored on the footer creative.
public CreativeWrapperOrdering getOrdering()
ordering defines the order in which the HTML
snippets are rendered.public void setOrdering(CreativeWrapperOrdering ordering)
ordering - * If there are multiple wrappers for a creative, then
ordering defines the order in which the HTML
snippets are rendered.public CreativeWrapperStatus getStatus()
CreativeWrapper. This attribute is
readonly.public void setStatus(CreativeWrapperStatus status)
status - * The status of the CreativeWrapper. This attribute is
readonly.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.