public abstract class Creative extends Object implements Serializable
Creative represents the media for the ad being served.
Read more about creatives on the Ad Manager Help Center.
| Constructor and Description |
|---|
Creative() |
Creative(Long advertiserId,
Long id,
String name,
Size size,
String previewUrl,
CreativePolicyViolation[] policyLabels,
AppliedLabel[] appliedLabels,
DateTime lastModifiedDateTime,
BaseCustomFieldValue[] customFieldValues,
ThirdPartyDataDeclaration thirdPartyDataDeclaration,
ThirdPartyDataDeclarationStatus thirdPartyDataDeclarationStatus,
Boolean adBadgingEnabled,
Boolean selfDeclaredEuropeanUnionPoliticalContent) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Boolean |
getAdBadgingEnabled()
Gets the adBadgingEnabled value for this Creative.
|
Long |
getAdvertiserId()
Gets the advertiserId value for this Creative.
|
AppliedLabel[] |
getAppliedLabels()
Gets the appliedLabels value for this Creative.
|
AppliedLabel |
getAppliedLabels(int i) |
BaseCustomFieldValue[] |
getCustomFieldValues()
Gets the customFieldValues value for this Creative.
|
BaseCustomFieldValue |
getCustomFieldValues(int i) |
static org.apache.axis.encoding.Deserializer |
getDeserializer(String mechType,
Class _javaType,
QName _xmlType)
Get Custom Deserializer
|
Long |
getId()
Gets the id value for this Creative.
|
DateTime |
getLastModifiedDateTime()
Gets the lastModifiedDateTime value for this Creative.
|
String |
getName()
Gets the name value for this Creative.
|
CreativePolicyViolation[] |
getPolicyLabels()
Gets the policyLabels value for this Creative.
|
CreativePolicyViolation |
getPolicyLabels(int i) |
String |
getPreviewUrl()
Gets the previewUrl value for this Creative.
|
Boolean |
getSelfDeclaredEuropeanUnionPoliticalContent()
Gets the selfDeclaredEuropeanUnionPoliticalContent value for this Creative.
|
static org.apache.axis.encoding.Serializer |
getSerializer(String mechType,
Class _javaType,
QName _xmlType)
Get Custom Serializer
|
Size |
getSize()
Gets the size value for this Creative.
|
ThirdPartyDataDeclaration |
getThirdPartyDataDeclaration()
Gets the thirdPartyDataDeclaration value for this Creative.
|
ThirdPartyDataDeclarationStatus |
getThirdPartyDataDeclarationStatus()
Gets the thirdPartyDataDeclarationStatus value for this Creative.
|
static org.apache.axis.description.TypeDesc |
getTypeDesc()
Return type metadata object
|
int |
hashCode() |
void |
setAdBadgingEnabled(Boolean adBadgingEnabled)
Sets the adBadgingEnabled value for this Creative.
|
void |
setAdvertiserId(Long advertiserId)
Sets the advertiserId value for this Creative.
|
void |
setAppliedLabels(AppliedLabel[] appliedLabels)
Sets the appliedLabels value for this Creative.
|
void |
setAppliedLabels(int i,
AppliedLabel _value) |
void |
setCustomFieldValues(BaseCustomFieldValue[] customFieldValues)
Sets the customFieldValues value for this Creative.
|
void |
setCustomFieldValues(int i,
BaseCustomFieldValue _value) |
void |
setId(Long id)
Sets the id value for this Creative.
|
void |
setLastModifiedDateTime(DateTime lastModifiedDateTime)
Sets the lastModifiedDateTime value for this Creative.
|
void |
setName(String name)
Sets the name value for this Creative.
|
void |
setPolicyLabels(CreativePolicyViolation[] policyLabels)
Sets the policyLabels value for this Creative.
|
void |
setPolicyLabels(int i,
CreativePolicyViolation _value) |
void |
setPreviewUrl(String previewUrl)
Sets the previewUrl value for this Creative.
|
void |
setSelfDeclaredEuropeanUnionPoliticalContent(Boolean selfDeclaredEuropeanUnionPoliticalContent)
Sets the selfDeclaredEuropeanUnionPoliticalContent value for this Creative.
|
void |
setSize(Size size)
Sets the size value for this Creative.
|
void |
setThirdPartyDataDeclaration(ThirdPartyDataDeclaration thirdPartyDataDeclaration)
Sets the thirdPartyDataDeclaration value for this Creative.
|
void |
setThirdPartyDataDeclarationStatus(ThirdPartyDataDeclarationStatus thirdPartyDataDeclarationStatus)
Sets the thirdPartyDataDeclarationStatus value for this Creative.
|
String |
toString() |
public Creative()
public Creative(Long advertiserId, Long id, String name, Size size, String previewUrl, CreativePolicyViolation[] policyLabels, AppliedLabel[] appliedLabels, DateTime lastModifiedDateTime, BaseCustomFieldValue[] customFieldValues, ThirdPartyDataDeclaration thirdPartyDataDeclaration, ThirdPartyDataDeclarationStatus thirdPartyDataDeclarationStatus, Boolean adBadgingEnabled, Boolean selfDeclaredEuropeanUnionPoliticalContent)
public Long getAdvertiserId()
public void setAdvertiserId(Long advertiserId)
advertiserId - * The ID of the advertiser that owns the creative. This attribute
is required.public Long getId()
Creative. This value is read-only
and is assigned by Google
when the creative is created. This attribute is required
for updates.public void setId(Long id)
id - * Uniquely identifies the Creative. This value is read-only
and is assigned by Google
when the creative is created. This attribute is required
for updates.public String getName()
public void setName(String name)
name - * The name of the creative. This attribute is required and has
a maximum length of 255
characters.public Size getSize()
Size of the creative. This attribute is required
for creation and then is
read-only.public void setSize(Size size)
size - * The Size of the creative. This attribute is required
for creation and then is
read-only.public String getPreviewUrl()
public void setPreviewUrl(String previewUrl)
previewUrl - * The URL of the creative for previewing the media. This attribute
is read-only and is assigned
by Google when a creative is created.public CreativePolicyViolation[] getPolicyLabels()
public void setPolicyLabels(CreativePolicyViolation[] policyLabels)
policyLabels - * Set of policy labels detected for this creative.
This attribute is read-only.public CreativePolicyViolation getPolicyLabels(int i)
public void setPolicyLabels(int i,
CreativePolicyViolation _value)
public AppliedLabel[] getAppliedLabels()
public void setAppliedLabels(AppliedLabel[] appliedLabels)
appliedLabels - * The set of labels applied to this creative.public AppliedLabel getAppliedLabels(int i)
public void setAppliedLabels(int i,
AppliedLabel _value)
public DateTime getLastModifiedDateTime()
public void setLastModifiedDateTime(DateTime lastModifiedDateTime)
lastModifiedDateTime - * The date and time this creative was last modified.public BaseCustomFieldValue[] getCustomFieldValues()
public void setCustomFieldValues(BaseCustomFieldValue[] customFieldValues)
customFieldValues - * The values of the custom fields associated with this creative.public BaseCustomFieldValue getCustomFieldValues(int i)
public void setCustomFieldValues(int i,
BaseCustomFieldValue _value)
public ThirdPartyDataDeclaration getThirdPartyDataDeclaration()
This is distinct from any associated companies that Google may detect programmatically.
public void setThirdPartyDataDeclaration(ThirdPartyDataDeclaration thirdPartyDataDeclaration)
thirdPartyDataDeclaration - * The third party companies associated with this creative.
This is distinct from any associated companies that Google may detect programmatically.
public ThirdPartyDataDeclarationStatus getThirdPartyDataDeclarationStatus()
ThirdPartyDataDeclaration compared
with the set of third party
companies detected during automated scanning.
For example, if automated scanning detects more
companies than have been declared, this
status will be ThirdPartyDataDeclarationStatus.INCOMPLETE.
public void setThirdPartyDataDeclarationStatus(ThirdPartyDataDeclarationStatus thirdPartyDataDeclarationStatus)
thirdPartyDataDeclarationStatus - * The status of the ThirdPartyDataDeclaration compared
with the set of third party
companies detected during automated scanning.
For example, if automated scanning detects more
companies than have been declared, this
status will be ThirdPartyDataDeclarationStatus.INCOMPLETE.
public Boolean getAdBadgingEnabled()
Defaults to false for CreativeType.VAST_REDIRECT,
CreativeType.THIRD_PARTY,
CreativeType.AUDIO_VAST_REDIRECT, CreativeType.PROGRAMMATIC,
CreativeType.DFP_MOBILE_CREATIVE, CreativeType.FLASH_OVERLAY,
CreativeType.GRAPHICAL_INTERSTITIAL, CreativeType.LEGACY_DFP_CREATIVE,
CreativeType.MOBILE_AD_NETWORK_BACKFILL, CreativeType.MOBILE_VIDEO_INTERSTITIAL,
CreativeType.SDK_MEDIATION and CreativeType.STANDARD_FLASH
creative types.
. Defaults to true for all other creative types.
public void setAdBadgingEnabled(Boolean adBadgingEnabled)
adBadgingEnabled - * Whether the creative has ad badging enabled.
Defaults to false for CreativeType.VAST_REDIRECT,
CreativeType.THIRD_PARTY,
CreativeType.AUDIO_VAST_REDIRECT, CreativeType.PROGRAMMATIC,
CreativeType.DFP_MOBILE_CREATIVE, CreativeType.FLASH_OVERLAY,
CreativeType.GRAPHICAL_INTERSTITIAL, CreativeType.LEGACY_DFP_CREATIVE,
CreativeType.MOBILE_AD_NETWORK_BACKFILL, CreativeType.MOBILE_VIDEO_INTERSTITIAL,
CreativeType.SDK_MEDIATION and CreativeType.STANDARD_FLASH
creative types.
. Defaults to true for all other creative types.
public Boolean getSelfDeclaredEuropeanUnionPoliticalContent()
Support for this field will be rolled out gradually
in Q3 2025. Until then, setting this
field will return an error with reason FeatureError.Reason#MISSING_FEATURE.
Defaults to false for all creative types.
public void setSelfDeclaredEuropeanUnionPoliticalContent(Boolean selfDeclaredEuropeanUnionPoliticalContent)
selfDeclaredEuropeanUnionPoliticalContent - * Whether the publisher has declared that the creative contains
European Union political content.
Support for this field will be rolled out gradually
in Q3 2025. Until then, setting this
field will return an error with reason FeatureError.Reason#MISSING_FEATURE.
Defaults to false for all creative types.
public static org.apache.axis.description.TypeDesc getTypeDesc()
public static org.apache.axis.encoding.Serializer getSerializer(String mechType, Class _javaType, QName _xmlType)
Copyright © 2026. All rights reserved.