public class Activity extends Object implements Serializable
An activity is a specific user action that an advertiser wants to track, such as the completion of a purchase or a visit to a webpage. You create and manage activities in Ad Manager. When a user performs the action after seeing an advertiser's ad, that's a conversion.
For example, you set up an activity in Ad Manager to track how many users visit an advertiser's promotional website after viewing or clicking on an ad. When a user views an ad, then visits the page, that's one conversion.
| Constructor and Description |
|---|
Activity() |
Activity(Integer id,
Integer activityGroupId,
String name,
String expectedURL,
ActivityStatus status,
ActivityType type) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Integer |
getActivityGroupId()
Gets the activityGroupId value for this Activity.
|
static org.apache.axis.encoding.Deserializer |
getDeserializer(String mechType,
Class _javaType,
QName _xmlType)
Get Custom Deserializer
|
String |
getExpectedURL()
Gets the expectedURL value for this Activity.
|
Integer |
getId()
Gets the id value for this Activity.
|
String |
getName()
Gets the name value for this Activity.
|
static org.apache.axis.encoding.Serializer |
getSerializer(String mechType,
Class _javaType,
QName _xmlType)
Get Custom Serializer
|
ActivityStatus |
getStatus()
Gets the status value for this Activity.
|
ActivityType |
getType()
Gets the type value for this Activity.
|
static org.apache.axis.description.TypeDesc |
getTypeDesc()
Return type metadata object
|
int |
hashCode() |
void |
setActivityGroupId(Integer activityGroupId)
Sets the activityGroupId value for this Activity.
|
void |
setExpectedURL(String expectedURL)
Sets the expectedURL value for this Activity.
|
void |
setId(Integer id)
Sets the id value for this Activity.
|
void |
setName(String name)
Sets the name value for this Activity.
|
void |
setStatus(ActivityStatus status)
Sets the status value for this Activity.
|
void |
setType(ActivityType type)
Sets the type value for this Activity.
|
String |
toString() |
public Activity()
public Activity(Integer id, Integer activityGroupId, String name, String expectedURL, ActivityStatus status, ActivityType type)
public Integer getId()
Activity. This value is readonly
and is assigned
by Google.public void setId(Integer id)
id - * The unique ID of the Activity. This value is readonly
and is assigned
by Google.public Integer getActivityGroupId()
ActivityGroup that this Activity
belongs to.public void setActivityGroupId(Integer activityGroupId)
activityGroupId - * The ID of the ActivityGroup that this Activity
belongs to.public String getName()
Activity. This attribute is required
and has a maximum length of 255
characters.public void setName(String name)
name - * The name of the Activity. This attribute is required
and has a maximum length of 255
characters.public String getExpectedURL()
public void setExpectedURL(String expectedURL)
expectedURL - * The URL of the webpage where the tags from this activity will
be placed. This attribute is
optional.public ActivityStatus getStatus()
public void setStatus(ActivityStatus status)
status - * The status of this activity. This attribute is readonly.public ActivityType getType()
Activity.Type#PAGE_VIEWSpublic void setType(ActivityType type)
type - * The activity type. This attribute is optional and defaults
to Activity.Type#PAGE_VIEWSpublic static org.apache.axis.description.TypeDesc getTypeDesc()
public static org.apache.axis.encoding.Serializer getSerializer(String mechType, Class _javaType, QName _xmlType)
Copyright © 2018. All Rights Reserved.