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

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

public class CustomCriteria
extends CustomCriteriaNode
implements Serializable

A CustomCriteria object is used to perform custom criteria targeting on custom targeting keys of type CustomTargetingKey.Type#PREDEFINED or CustomTargetingKey.Type#FREEFORM.

See Also:
Serialized Form

Constructor Summary
CustomCriteria()
           
CustomCriteria(String customCriteriaNodeType, Long keyId, long[] valueIds, CustomCriteriaComparisonOperator operator)
           
 
Method Summary
 boolean equals(Object obj)
           
static org.apache.axis.encoding.Deserializer getDeserializer(String mechType, Class _javaType, QName _xmlType)
          Get Custom Deserializer
 Long getKeyId()
          Gets the keyId value for this CustomCriteria.
 CustomCriteriaComparisonOperator getOperator()
          Gets the operator value for this CustomCriteria.
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
 long[] getValueIds()
          Gets the valueIds value for this CustomCriteria.
 long getValueIds(int i)
           
 int hashCode()
           
 void setKeyId(Long keyId)
          Sets the keyId value for this CustomCriteria.
 void setOperator(CustomCriteriaComparisonOperator operator)
          Sets the operator value for this CustomCriteria.
 void setValueIds(int i, long _value)
           
 void setValueIds(long[] valueIds)
          Sets the valueIds value for this CustomCriteria.
 
Methods inherited from class com.google.api.ads.dfp.v201111.CustomCriteriaNode
getCustomCriteriaNodeType, setCustomCriteriaNodeType
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomCriteria

public CustomCriteria()

CustomCriteria

public CustomCriteria(String customCriteriaNodeType,
                      Long keyId,
                      long[] valueIds,
                      CustomCriteriaComparisonOperator operator)
Method Detail

getKeyId

public Long getKeyId()
Gets the keyId value for this CustomCriteria.

Returns:
keyId * The CustomTargetingKey.id of the CustomTargetingKey object that was created using CustomTargetingService. This attribute is required.

setKeyId

public void setKeyId(Long keyId)
Sets the keyId value for this CustomCriteria.

Parameters:
keyId - * The CustomTargetingKey.id of the CustomTargetingKey object that was created using CustomTargetingService. This attribute is required.

getValueIds

public long[] getValueIds()
Gets the valueIds value for this CustomCriteria.

Returns:
valueIds * The ids of CustomTargetingValue objects to target the custom targeting key with id keyId. This attribute is required.

setValueIds

public void setValueIds(long[] valueIds)
Sets the valueIds value for this CustomCriteria.

Parameters:
valueIds - * The ids of CustomTargetingValue objects to target the custom targeting key with id keyId. This attribute is required.

getValueIds

public long getValueIds(int i)

setValueIds

public void setValueIds(int i,
                        long _value)

getOperator

public CustomCriteriaComparisonOperator getOperator()
Gets the operator value for this CustomCriteria.

Returns:
operator * The comparison operator. This attribute is required.

setOperator

public void setOperator(CustomCriteriaComparisonOperator operator)
Sets the operator value for this CustomCriteria.

Parameters:
operator - * The comparison operator. This attribute is required.

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class CustomCriteriaNode

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.