public class Activity extends Object
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 DFP. When a user performs the action after seeing an advertiser's ad, that's a conversion.
For example, you set up an activity in DFP 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.
Java class for Activity complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="Activity">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="id" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
<element name="activityGroupId" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
<element name="name" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="expectedURL" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="status" type="{https://www.google.com/apis/ads/publisher/v201802}Activity.Status" minOccurs="0"/>
<element name="type" type="{https://www.google.com/apis/ads/publisher/v201802}Activity.Type" minOccurs="0"/>
</sequence>
</restriction>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected Integer |
activityGroupId |
protected String |
expectedURL |
protected Integer |
id |
protected String |
name |
protected ActivityStatus |
status |
protected ActivityType |
type |
| Constructor and Description |
|---|
Activity() |
| Modifier and Type | Method and Description |
|---|---|
Integer |
getActivityGroupId()
Gets the value of the activityGroupId property.
|
String |
getExpectedURL()
Gets the value of the expectedURL property.
|
Integer |
getId()
Gets the value of the id property.
|
String |
getName()
Gets the value of the name property.
|
ActivityStatus |
getStatus()
Gets the value of the status property.
|
ActivityType |
getType()
Gets the value of the type property.
|
void |
setActivityGroupId(Integer value)
Sets the value of the activityGroupId property.
|
void |
setExpectedURL(String value)
Sets the value of the expectedURL property.
|
void |
setId(Integer value)
Sets the value of the id property.
|
void |
setName(String value)
Sets the value of the name property.
|
void |
setStatus(ActivityStatus value)
Sets the value of the status property.
|
void |
setType(ActivityType value)
Sets the value of the type property.
|
protected Integer id
protected Integer activityGroupId
protected String name
protected String expectedURL
protected ActivityStatus status
protected ActivityType type
public void setId(Integer value)
value - allowed object is
Integerpublic Integer getActivityGroupId()
Integerpublic void setActivityGroupId(Integer value)
value - allowed object is
Integerpublic String getName()
Stringpublic void setName(String value)
value - allowed object is
Stringpublic String getExpectedURL()
Stringpublic void setExpectedURL(String value)
value - allowed object is
Stringpublic ActivityStatus getStatus()
ActivityStatuspublic void setStatus(ActivityStatus value)
value - allowed object is
ActivityStatuspublic ActivityType getType()
ActivityTypepublic void setType(ActivityType value)
value - allowed object is
ActivityTypeCopyright © 2018. All Rights Reserved.