com.google.api.ads.dfp.v201111
Class Placement

java.lang.Object
  extended by com.google.api.ads.dfp.v201111.SiteTargetingInfo
      extended by com.google.api.ads.dfp.v201111.Placement
All Implemented Interfaces:
Serializable

public class Placement
extends SiteTargetingInfo
implements Serializable

A Placement groups related AdUnit objects.

See Also:
Serialized Form

Constructor Summary
Placement()
           
Placement(String targetingDescription, String targetingSiteName, String targetingAdLocation, String siteTargetingInfoType, Long id, String name, String description, String placementCode, InventoryStatus status, Boolean isAdSenseTargetingEnabled, Boolean isAdPlannerTargetingEnabled, String adSenseTargetingLocale, String[] targetedAdUnitIds)
           
 
Method Summary
 boolean equals(Object obj)
           
 String getAdSenseTargetingLocale()
          Gets the adSenseTargetingLocale value for this Placement.
 String getDescription()
          Gets the description value for this Placement.
static org.apache.axis.encoding.Deserializer getDeserializer(String mechType, Class _javaType, QName _xmlType)
          Get Custom Deserializer
 Long getId()
          Gets the id value for this Placement.
 Boolean getIsAdPlannerTargetingEnabled()
          Gets the isAdPlannerTargetingEnabled value for this Placement.
 Boolean getIsAdSenseTargetingEnabled()
          Gets the isAdSenseTargetingEnabled value for this Placement.
 String getName()
          Gets the name value for this Placement.
 String getPlacementCode()
          Gets the placementCode value for this Placement.
static org.apache.axis.encoding.Serializer getSerializer(String mechType, Class _javaType, QName _xmlType)
          Get Custom Serializer
 InventoryStatus getStatus()
          Gets the status value for this Placement.
 String[] getTargetedAdUnitIds()
          Gets the targetedAdUnitIds value for this Placement.
 String getTargetedAdUnitIds(int i)
           
static org.apache.axis.description.TypeDesc getTypeDesc()
          Return type metadata object
 int hashCode()
           
 void setAdSenseTargetingLocale(String adSenseTargetingLocale)
          Sets the adSenseTargetingLocale value for this Placement.
 void setDescription(String description)
          Sets the description value for this Placement.
 void setId(Long id)
          Sets the id value for this Placement.
 void setIsAdPlannerTargetingEnabled(Boolean isAdPlannerTargetingEnabled)
          Sets the isAdPlannerTargetingEnabled value for this Placement.
 void setIsAdSenseTargetingEnabled(Boolean isAdSenseTargetingEnabled)
          Sets the isAdSenseTargetingEnabled value for this Placement.
 void setName(String name)
          Sets the name value for this Placement.
 void setPlacementCode(String placementCode)
          Sets the placementCode value for this Placement.
 void setStatus(InventoryStatus status)
          Sets the status value for this Placement.
 void setTargetedAdUnitIds(int i, String _value)
           
 void setTargetedAdUnitIds(String[] targetedAdUnitIds)
          Sets the targetedAdUnitIds value for this Placement.
 
Methods inherited from class com.google.api.ads.dfp.v201111.SiteTargetingInfo
getSiteTargetingInfoType, getTargetingAdLocation, getTargetingDescription, getTargetingSiteName, setSiteTargetingInfoType, setTargetingAdLocation, setTargetingDescription, setTargetingSiteName
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Placement

public Placement()

Placement

public Placement(String targetingDescription,
                 String targetingSiteName,
                 String targetingAdLocation,
                 String siteTargetingInfoType,
                 Long id,
                 String name,
                 String description,
                 String placementCode,
                 InventoryStatus status,
                 Boolean isAdSenseTargetingEnabled,
                 Boolean isAdPlannerTargetingEnabled,
                 String adSenseTargetingLocale,
                 String[] targetedAdUnitIds)
Method Detail

getId

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

Returns:
id * Uniquely identifies the Placement. This attribute is read-only and is assigned by Google when a placement is created.

setId

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

Parameters:
id - * Uniquely identifies the Placement. This attribute is read-only and is assigned by Google when a placement is created.

getName

public String getName()
Gets the name value for this Placement.

Returns:
name * The name of the Placement. This value is required and has a maximum length of 255 characters.

setName

public void setName(String name)
Sets the name value for this Placement.

Parameters:
name - * The name of the Placement. This value is required and has a maximum length of 255 characters.

getDescription

public String getDescription()
Gets the description value for this Placement.

Returns:
description * A description of the Placement. This value is required and its maximum length is 65,535 characters.

setDescription

public void setDescription(String description)
Sets the description value for this Placement.

Parameters:
description - * A description of the Placement. This value is required and its maximum length is 65,535 characters.

getPlacementCode

public String getPlacementCode()
Gets the placementCode value for this Placement.

Returns:
placementCode * A string used to uniquely identify the Placement for purposes of serving the ad. This attribute is read-only and is assigned by Google when a placement is created.

setPlacementCode

public void setPlacementCode(String placementCode)
Sets the placementCode value for this Placement.

Parameters:
placementCode - * A string used to uniquely identify the Placement for purposes of serving the ad. This attribute is read-only and is assigned by Google when a placement is created.

getStatus

public InventoryStatus getStatus()
Gets the status value for this Placement.

Returns:
status * The status of the Placement. This attribute is read-only.

setStatus

public void setStatus(InventoryStatus status)
Sets the status value for this Placement.

Parameters:
status - * The status of the Placement. This attribute is read-only.

getIsAdSenseTargetingEnabled

public Boolean getIsAdSenseTargetingEnabled()
Gets the isAdSenseTargetingEnabled value for this Placement.

Returns:
isAdSenseTargetingEnabled * Describes whether the Placement is available for site targeting by AdWords advertisers.

setIsAdSenseTargetingEnabled

public void setIsAdSenseTargetingEnabled(Boolean isAdSenseTargetingEnabled)
Sets the isAdSenseTargetingEnabled value for this Placement.

Parameters:
isAdSenseTargetingEnabled - * Describes whether the Placement is available for site targeting by AdWords advertisers.

getIsAdPlannerTargetingEnabled

public Boolean getIsAdPlannerTargetingEnabled()
Gets the isAdPlannerTargetingEnabled value for this Placement.

Returns:
isAdPlannerTargetingEnabled * Describes whether the Placement is available for targeting by AdPlanner advertisers

setIsAdPlannerTargetingEnabled

public void setIsAdPlannerTargetingEnabled(Boolean isAdPlannerTargetingEnabled)
Sets the isAdPlannerTargetingEnabled value for this Placement.

Parameters:
isAdPlannerTargetingEnabled - * Describes whether the Placement is available for targeting by AdPlanner advertisers

getAdSenseTargetingLocale

public String getAdSenseTargetingLocale()
Gets the adSenseTargetingLocale value for this Placement.

Returns:
adSenseTargetingLocale * If isAdSenseTargetingEnabled is true, restricts AdWords ads to those only in the placement's language.

setAdSenseTargetingLocale

public void setAdSenseTargetingLocale(String adSenseTargetingLocale)
Sets the adSenseTargetingLocale value for this Placement.

Parameters:
adSenseTargetingLocale - * If isAdSenseTargetingEnabled is true, restricts AdWords ads to those only in the placement's language.

getTargetedAdUnitIds

public String[] getTargetedAdUnitIds()
Gets the targetedAdUnitIds value for this Placement.

Returns:
targetedAdUnitIds * The collection of AdUnit object IDs that constitute the Placement.

setTargetedAdUnitIds

public void setTargetedAdUnitIds(String[] targetedAdUnitIds)
Sets the targetedAdUnitIds value for this Placement.

Parameters:
targetedAdUnitIds - * The collection of AdUnit object IDs that constitute the Placement.

getTargetedAdUnitIds

public String getTargetedAdUnitIds(int i)

setTargetedAdUnitIds

public void setTargetedAdUnitIds(int i,
                                 String _value)

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class SiteTargetingInfo

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.