com.google.api.ads.dfp.axis.v201204
Class SuggestedAdUnit

java.lang.Object
  extended by com.google.api.ads.dfp.axis.v201204.SuggestedAdUnit
All Implemented Interfaces:
Serializable

public class SuggestedAdUnit
extends Object
implements Serializable

A SuggestedAdUnit represents a suggestion for a new ad unit, based on an ad tag that has been served at least ten times in the past week, but which does not correspond to a defined ad unit. This class is read-only.

See Also:
Serialized Form

Constructor Summary
SuggestedAdUnit()
           
SuggestedAdUnit(String id, Long numRequests, String[] path, AdUnitTargetWindow targetWindow, TargetPlatform targetPlatform, AdUnitSize[] suggestedAdUnitSizes)
           
 
Method Summary
 boolean equals(Object obj)
           
static org.apache.axis.encoding.Deserializer getDeserializer(String mechType, Class _javaType, QName _xmlType)
          Get Custom Deserializer
 String getId()
          Gets the id value for this SuggestedAdUnit.
 Long getNumRequests()
          Gets the numRequests value for this SuggestedAdUnit.
 String[] getPath()
          Gets the path value for this SuggestedAdUnit.
 String getPath(int i)
           
static org.apache.axis.encoding.Serializer getSerializer(String mechType, Class _javaType, QName _xmlType)
          Get Custom Serializer
 AdUnitSize[] getSuggestedAdUnitSizes()
          Gets the suggestedAdUnitSizes value for this SuggestedAdUnit.
 AdUnitSize getSuggestedAdUnitSizes(int i)
           
 TargetPlatform getTargetPlatform()
          Gets the targetPlatform value for this SuggestedAdUnit.
 AdUnitTargetWindow getTargetWindow()
          Gets the targetWindow value for this SuggestedAdUnit.
static org.apache.axis.description.TypeDesc getTypeDesc()
          Return type metadata object
 int hashCode()
           
 void setId(String id)
          Sets the id value for this SuggestedAdUnit.
 void setNumRequests(Long numRequests)
          Sets the numRequests value for this SuggestedAdUnit.
 void setPath(int i, String _value)
           
 void setPath(String[] path)
          Sets the path value for this SuggestedAdUnit.
 void setSuggestedAdUnitSizes(AdUnitSize[] suggestedAdUnitSizes)
          Sets the suggestedAdUnitSizes value for this SuggestedAdUnit.
 void setSuggestedAdUnitSizes(int i, AdUnitSize _value)
           
 void setTargetPlatform(TargetPlatform targetPlatform)
          Sets the targetPlatform value for this SuggestedAdUnit.
 void setTargetWindow(AdUnitTargetWindow targetWindow)
          Sets the targetWindow value for this SuggestedAdUnit.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SuggestedAdUnit

public SuggestedAdUnit()

SuggestedAdUnit

public SuggestedAdUnit(String id,
                       Long numRequests,
                       String[] path,
                       AdUnitTargetWindow targetWindow,
                       TargetPlatform targetPlatform,
                       AdUnitSize[] suggestedAdUnitSizes)
Method Detail

getId

public String getId()
Gets the id value for this SuggestedAdUnit.

Returns:
id * The unique ID of the SuggestedAdUnit. This value is the complete path to the SuggestedAdUnit; path elements are separated by '/' characters. This field is read-only.

setId

public void setId(String id)
Sets the id value for this SuggestedAdUnit.

Parameters:
id - * The unique ID of the SuggestedAdUnit. This value is the complete path to the SuggestedAdUnit; path elements are separated by '/' characters. This field is read-only.

getNumRequests

public Long getNumRequests()
Gets the numRequests value for this SuggestedAdUnit.

Returns:
numRequests * Returns the number of times the ad tag corresponding to this suggested ad unit has been served in the previous week. (Suggested ad units are only created when they have been served at least ten times in that period.) This field is read-only.

setNumRequests

public void setNumRequests(Long numRequests)
Sets the numRequests value for this SuggestedAdUnit.

Parameters:
numRequests - * Returns the number of times the ad tag corresponding to this suggested ad unit has been served in the previous week. (Suggested ad units are only created when they have been served at least ten times in that period.) This field is read-only.

getPath

public String[] getPath()
Gets the path value for this SuggestedAdUnit.

Returns:
path * The path to the suggested ad unit. Each path element is a separate ad unit code in the returned list. This field is read-only.

setPath

public void setPath(String[] path)
Sets the path value for this SuggestedAdUnit.

Parameters:
path - * The path to the suggested ad unit. Each path element is a separate ad unit code in the returned list. This field is read-only.

getPath

public String getPath(int i)

setPath

public void setPath(int i,
                    String _value)

getTargetWindow

public AdUnitTargetWindow getTargetWindow()
Gets the targetWindow value for this SuggestedAdUnit.

Returns:
targetWindow * The target attribute of the underlying ad tag, as defined in AdUnit. This field is read-only.

setTargetWindow

public void setTargetWindow(AdUnitTargetWindow targetWindow)
Sets the targetWindow value for this SuggestedAdUnit.

Parameters:
targetWindow - * The target attribute of the underlying ad tag, as defined in AdUnit. This field is read-only.

getTargetPlatform

public TargetPlatform getTargetPlatform()
Gets the targetPlatform value for this SuggestedAdUnit.

Returns:
targetPlatform * The target platform for the browser that clicked the underlying ad tag. This field is read-only.

setTargetPlatform

public void setTargetPlatform(TargetPlatform targetPlatform)
Sets the targetPlatform value for this SuggestedAdUnit.

Parameters:
targetPlatform - * The target platform for the browser that clicked the underlying ad tag. This field is read-only.

getSuggestedAdUnitSizes

public AdUnitSize[] getSuggestedAdUnitSizes()
Gets the suggestedAdUnitSizes value for this SuggestedAdUnit.

Returns:
suggestedAdUnitSizes * The target sizes associated with this SuggestedAdUnit. This field is read-only.

setSuggestedAdUnitSizes

public void setSuggestedAdUnitSizes(AdUnitSize[] suggestedAdUnitSizes)
Sets the suggestedAdUnitSizes value for this SuggestedAdUnit.

Parameters:
suggestedAdUnitSizes - * The target sizes associated with this SuggestedAdUnit. This field is read-only.

getSuggestedAdUnitSizes

public AdUnitSize getSuggestedAdUnitSizes(int i)

setSuggestedAdUnitSizes

public void setSuggestedAdUnitSizes(int i,
                                    AdUnitSize _value)

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 © 2012. All Rights Reserved.