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

java.lang.Object
  extended by com.google.api.ads.adwords.v201109.cm.FrequencyCap
All Implemented Interfaces:
Serializable

public class FrequencyCap
extends Object
implements Serializable

A frequency cap is the maximum number of times an ad (or some set of ads) can be shown to a user over a particular time period.

See Also:
Serialized Form

Constructor Summary
FrequencyCap()
           
FrequencyCap(Long impressions, TimeUnit timeUnit, Level level)
           
 
Method Summary
 boolean equals(Object obj)
           
static org.apache.axis.encoding.Deserializer getDeserializer(String mechType, Class _javaType, QName _xmlType)
          Get Custom Deserializer
 Long getImpressions()
          Gets the impressions value for this FrequencyCap.
 Level getLevel()
          Gets the level value for this FrequencyCap.
static org.apache.axis.encoding.Serializer getSerializer(String mechType, Class _javaType, QName _xmlType)
          Get Custom Serializer
 TimeUnit getTimeUnit()
          Gets the timeUnit value for this FrequencyCap.
static org.apache.axis.description.TypeDesc getTypeDesc()
          Return type metadata object
 int hashCode()
           
 void setImpressions(Long impressions)
          Sets the impressions value for this FrequencyCap.
 void setLevel(Level level)
          Sets the level value for this FrequencyCap.
 void setTimeUnit(TimeUnit timeUnit)
          Sets the timeUnit value for this FrequencyCap.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FrequencyCap

public FrequencyCap()

FrequencyCap

public FrequencyCap(Long impressions,
                    TimeUnit timeUnit,
                    Level level)
Method Detail

getImpressions

public Long getImpressions()
Gets the impressions value for this FrequencyCap.

Returns:
impressions * Maximum number of impressions allowed during the time range by this cap. This field can be selected using the value "FrequencyCapMaxImpressions".This field can be filtered on.

setImpressions

public void setImpressions(Long impressions)
Sets the impressions value for this FrequencyCap.

Parameters:
impressions - * Maximum number of impressions allowed during the time range by this cap. This field can be selected using the value "FrequencyCapMaxImpressions".This field can be filtered on.

getTimeUnit

public TimeUnit getTimeUnit()
Gets the timeUnit value for this FrequencyCap.

Returns:
timeUnit * Unit of time the cap is defined at. Only the Day, Week and Month time units are supported. This field can be selected using the value "TimeUnit".This field can be filtered on.

setTimeUnit

public void setTimeUnit(TimeUnit timeUnit)
Sets the timeUnit value for this FrequencyCap.

Parameters:
timeUnit - * Unit of time the cap is defined at. Only the Day, Week and Month time units are supported. This field can be selected using the value "TimeUnit".This field can be filtered on.

getLevel

public Level getLevel()
Gets the level value for this FrequencyCap.

Returns:
level * The level on which the cap is to be applied (creative/adgroup). Cap is applied to all the entities of this level in the campaign. This field can be selected using the value "Level".This field can be filtered on.

setLevel

public void setLevel(Level level)
Sets the level value for this FrequencyCap.

Parameters:
level - * The level on which the cap is to be applied (creative/adgroup). Cap is applied to all the entities of this level in the campaign. This field can be selected using the value "Level".This field can be filtered on.

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.