com.google.api.ads.dfp.axis.v201203
Class CustomTargetingValue

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

public class CustomTargetingValue
extends Object
implements Serializable

CustomTargetingValue represents a value used for custom targeting.

See Also:
Serialized Form

Constructor Summary
CustomTargetingValue()
           
CustomTargetingValue(Long customTargetingKeyId, Long id, String name, String displayName, CustomTargetingValueMatchType matchType)
           
 
Method Summary
 boolean equals(Object obj)
           
 Long getCustomTargetingKeyId()
          Gets the customTargetingKeyId value for this CustomTargetingValue.
static org.apache.axis.encoding.Deserializer getDeserializer(String mechType, Class _javaType, QName _xmlType)
          Get Custom Deserializer
 String getDisplayName()
          Gets the displayName value for this CustomTargetingValue.
 Long getId()
          Gets the id value for this CustomTargetingValue.
 CustomTargetingValueMatchType getMatchType()
          Gets the matchType value for this CustomTargetingValue.
 String getName()
          Gets the name value for this CustomTargetingValue.
static org.apache.axis.encoding.Serializer getSerializer(String mechType, Class _javaType, QName _xmlType)
          Get Custom Serializer
static org.apache.axis.description.TypeDesc getTypeDesc()
          Return type metadata object
 int hashCode()
           
 void setCustomTargetingKeyId(Long customTargetingKeyId)
          Sets the customTargetingKeyId value for this CustomTargetingValue.
 void setDisplayName(String displayName)
          Sets the displayName value for this CustomTargetingValue.
 void setId(Long id)
          Sets the id value for this CustomTargetingValue.
 void setMatchType(CustomTargetingValueMatchType matchType)
          Sets the matchType value for this CustomTargetingValue.
 void setName(String name)
          Sets the name value for this CustomTargetingValue.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomTargetingValue

public CustomTargetingValue()

CustomTargetingValue

public CustomTargetingValue(Long customTargetingKeyId,
                            Long id,
                            String name,
                            String displayName,
                            CustomTargetingValueMatchType matchType)
Method Detail

getCustomTargetingKeyId

public Long getCustomTargetingKeyId()
Gets the customTargetingKeyId value for this CustomTargetingValue.

Returns:
customTargetingKeyId * The ID of the CustomTargetingKey for which this is the value.

setCustomTargetingKeyId

public void setCustomTargetingKeyId(Long customTargetingKeyId)
Sets the customTargetingKeyId value for this CustomTargetingValue.

Parameters:
customTargetingKeyId - * The ID of the CustomTargetingKey for which this is the value.

getId

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

Returns:
id * The ID of the CustomTargetingValue. This value is readonly and is populated by Google.

setId

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

Parameters:
id - * The ID of the CustomTargetingValue. This value is readonly and is populated by Google.

getName

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

Returns:
name * Name of the value. This can be used for encoding . If you don't want users to be able to see potentially sensitive targeting information in the ad tags of your site, you can encode your key/values. For example, you can create key/value g1=abc to represent gender=female. Values can contain up to 40 characters each. You can use alphanumeric characters and symbols other than the following: ", ', =, !, +, #, *, ~, ;, ^, (, ), <, >, [, ]. Values are not data-specific; all values are treated as string. For example, instead of using "age>=18 AND <=34", try "18-34"

setName

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

Parameters:
name - * Name of the value. This can be used for encoding . If you don't want users to be able to see potentially sensitive targeting information in the ad tags of your site, you can encode your key/values. For example, you can create key/value g1=abc to represent gender=female. Values can contain up to 40 characters each. You can use alphanumeric characters and symbols other than the following: ", ', =, !, +, #, *, ~, ;, ^, (, ), <, >, [, ]. Values are not data-specific; all values are treated as string. For example, instead of using "age>=18 AND <=34", try "18-34"

getDisplayName

public String getDisplayName()
Gets the displayName value for this CustomTargetingValue.

Returns:
displayName * Descriptive name for the value.

setDisplayName

public void setDisplayName(String displayName)
Sets the displayName value for this CustomTargetingValue.

Parameters:
displayName - * Descriptive name for the value.

getMatchType

public CustomTargetingValueMatchType getMatchType()
Gets the matchType value for this CustomTargetingValue.

Returns:
matchType * The way in which the name strings will be matched. This feature is only available for DFP premium solution accounts. For Small Business accounts, only MatchType#EXACT matching is allowed.

setMatchType

public void setMatchType(CustomTargetingValueMatchType matchType)
Sets the matchType value for this CustomTargetingValue.

Parameters:
matchType - * The way in which the name strings will be matched. This feature is only available for DFP premium solution accounts. For Small Business accounts, only MatchType#EXACT matching is allowed.

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.