com.google.api.ads.adwords.v201109.cm
Class Ad

java.lang.Object
  extended by com.google.api.ads.adwords.v201109.cm.Ad
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
DeprecatedAd, ImageAd, MobileAd, MobileImageAd, ProductAd, RichMediaAd, TemplateAd, TextAd

public class Ad
extends Object
implements Serializable

The base class of all ad types. To update basic ad fields, you can construct an Ad object (instead of the ad's concrete type) with the appropriate fields set.

See Also:
Serialized Form

Constructor Summary
Ad()
           
Ad(Long id, String url, String displayUrl, AdApprovalStatus approvalStatus, String[] disapprovalReasons, Boolean trademarkDisapproved, String adType)
           
 
Method Summary
 boolean equals(Object obj)
           
 String getAdType()
          Gets the adType value for this Ad.
 AdApprovalStatus getApprovalStatus()
          Gets the approvalStatus value for this Ad.
static org.apache.axis.encoding.Deserializer getDeserializer(String mechType, Class _javaType, QName _xmlType)
          Get Custom Deserializer
 String[] getDisapprovalReasons()
          Gets the disapprovalReasons value for this Ad.
 String getDisapprovalReasons(int i)
           
 String getDisplayUrl()
          Gets the displayUrl value for this Ad.
 Long getId()
          Gets the id value for this Ad.
static org.apache.axis.encoding.Serializer getSerializer(String mechType, Class _javaType, QName _xmlType)
          Get Custom Serializer
 Boolean getTrademarkDisapproved()
          Gets the trademarkDisapproved value for this Ad.
static org.apache.axis.description.TypeDesc getTypeDesc()
          Return type metadata object
 String getUrl()
          Gets the url value for this Ad.
 int hashCode()
           
 void setAdType(String adType)
          Sets the adType value for this Ad.
 void setApprovalStatus(AdApprovalStatus approvalStatus)
          Sets the approvalStatus value for this Ad.
 void setDisapprovalReasons(int i, String _value)
           
 void setDisapprovalReasons(String[] disapprovalReasons)
          Sets the disapprovalReasons value for this Ad.
 void setDisplayUrl(String displayUrl)
          Sets the displayUrl value for this Ad.
 void setId(Long id)
          Sets the id value for this Ad.
 void setTrademarkDisapproved(Boolean trademarkDisapproved)
          Sets the trademarkDisapproved value for this Ad.
 void setUrl(String url)
          Sets the url value for this Ad.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Ad

public Ad()

Ad

public Ad(Long id,
          String url,
          String displayUrl,
          AdApprovalStatus approvalStatus,
          String[] disapprovalReasons,
          Boolean trademarkDisapproved,
          String adType)
Method Detail

getId

public Long getId()
Gets the id value for this Ad.

Returns:
id * ID of this ad. This field is ignored when creating ads using AdGroupAdService. This field can be selected using the value "Id".This field can be filtered on.

setId

public void setId(Long id)
Sets the id value for this Ad.

Parameters:
id - * ID of this ad. This field is ignored when creating ads using AdGroupAdService. This field can be selected using the value "Id".This field can be filtered on.

getUrl

public String getUrl()
Gets the url value for this Ad.

Returns:
url * Destination URL. This field can be selected using the value "Url".This field can be filtered on.

setUrl

public void setUrl(String url)
Sets the url value for this Ad.

Parameters:
url - * Destination URL. This field can be selected using the value "Url".This field can be filtered on.

getDisplayUrl

public String getDisplayUrl()
Gets the displayUrl value for this Ad.

Returns:
displayUrl * Visible URL. This field can be selected using the value "DisplayUrl".This field can be filtered on.

setDisplayUrl

public void setDisplayUrl(String displayUrl)
Sets the displayUrl value for this Ad.

Parameters:
displayUrl - * Visible URL. This field can be selected using the value "DisplayUrl".This field can be filtered on.

getApprovalStatus

public AdApprovalStatus getApprovalStatus()
Gets the approvalStatus value for this Ad.

Returns:
approvalStatus * Approval status. This field can be selected using the value "CreativeApprovalStatus".This field can be filtered on. This field is read only and should not be set. If this field is sent to the API, it will be ignored.

setApprovalStatus

public void setApprovalStatus(AdApprovalStatus approvalStatus)
Sets the approvalStatus value for this Ad.

Parameters:
approvalStatus - * Approval status. This field can be selected using the value "CreativeApprovalStatus".This field can be filtered on. This field is read only and should not be set. If this field is sent to the API, it will be ignored.

getDisapprovalReasons

public String[] getDisapprovalReasons()
Gets the disapprovalReasons value for this Ad.

Returns:
disapprovalReasons * List of disapproval reasons. This field can be selected using the value "DisapprovalReasons". This field is read only and should not be set. If this field is sent to the API, it will be ignored.

setDisapprovalReasons

public void setDisapprovalReasons(String[] disapprovalReasons)
Sets the disapprovalReasons value for this Ad.

Parameters:
disapprovalReasons - * List of disapproval reasons. This field can be selected using the value "DisapprovalReasons". This field is read only and should not be set. If this field is sent to the API, it will be ignored.

getDisapprovalReasons

public String getDisapprovalReasons(int i)

setDisapprovalReasons

public void setDisapprovalReasons(int i,
                                  String _value)

getTrademarkDisapproved

public Boolean getTrademarkDisapproved()
Gets the trademarkDisapproved value for this Ad.

Returns:
trademarkDisapproved * True if and only if this ad is not serving because it does not meet trademark policy. This field is only useful when approvalStatus is an approved status. This field can be selected using the value "TrademarkDisapproved". This field is read only and should not be set. If this field is sent to the API, it will be ignored.

setTrademarkDisapproved

public void setTrademarkDisapproved(Boolean trademarkDisapproved)
Sets the trademarkDisapproved value for this Ad.

Parameters:
trademarkDisapproved - * True if and only if this ad is not serving because it does not meet trademark policy. This field is only useful when approvalStatus is an approved status. This field can be selected using the value "TrademarkDisapproved". This field is read only and should not be set. If this field is sent to the API, it will be ignored.

getAdType

public String getAdType()
Gets the adType value for this Ad.

Returns:
adType * Indicates that this instance is a subtype of Ad. Although this field is returned in the response, it is ignored on input and cannot be selected. Specify xsi:type instead.

setAdType

public void setAdType(String adType)
Sets the adType value for this Ad.

Parameters:
adType - * Indicates that this instance is a subtype of Ad. Although this field is returned in the response, it is ignored on input and cannot be selected. Specify xsi:type instead.

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

getTypeDesc

public static org.apache.axis.description.TypeDesc getTypeDesc()
Return type metadata object


getSerializer

public static org.apache.axis.encoding.Serializer getSerializer(String mechType,
                                                                Class _javaType,
                                                                QName _xmlType)
Get Custom Serializer


getDeserializer

public static org.apache.axis.encoding.Deserializer getDeserializer(String mechType,
                                                                    Class _javaType,
                                                                    QName _xmlType)
Get Custom Deserializer



Copyright © 2011. All Rights Reserved.