Package com.restfb.types.ads
Class AdKeywordStats
 java.lang.Object

 com.restfb.types.AbstractFacebookType

 com.restfb.types.ads.BaseAdsObject

 com.restfb.types.ads.NamedAdsObject

 com.restfb.types.ads.AdKeywordStats

 All Implemented Interfaces:
Serializable
public class AdKeywordStats extends NamedAdsObject
 See Also:
 Serialized Form


Constructor Summary
Constructors Constructor Description AdKeywordStats()

Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
addAction(AdsActionStats action)
boolean
addUniqueAction(AdsActionStats uniqueAction)
List<AdsActionStats>
getActions()
Integer
getClicks()
The total number of clicks on your ad.Double
getCostPerTotalAction()
The average you've spent on actions.Double
getCostPerUniqueClick()
The average cost per unique click for these ads, calculated as the amount spent divided by the number of unique clicks received.Double
getCpc()
The average cost per click for these ads, calculated as the amount spent divided by the number of clicks received.Double
getCpm()
The average cost you've paid to have 1,000 impressions on your ad.Double
getCpp()
The average cost you've paid to have your ad served to 1,000 unique people.Double
getCtr()
The number of clicks you received divided by the number of impressions.Double
getFrequency()
The average number of times your ad was served to each person.Integer
getImpressions()
The number of times your ad was served.Integer
getReach()
The number of people your ad was served to.Double
getSpend()
The total amount you've spent so far.Integer
getTotalActions()
The number of actions taken on your ad, Page, app or event after your ad was served to someone, even if they didn't click on it.Integer
getTotalUniqueActions()
The number of unique people who took an action such as liking your Page or installing your app as a result of your ad.List<AdsActionStats>
getUniqueActions()
Integer
getUniqueClicks()
The total number of unique people who have clicked on your ad.Double
getUniqueCtr()
The number of people who clicked on your ad divided by the number of people you reached.Integer
getUniqueImpressions()
The number of people your ad was served to.boolean
removeAction(AdsActionStats action)
boolean
removeUniqueAction(AdsActionStats uniqueAction)
void
setClicks(Integer clicks)
The total number of clicks on your ad.void
setCostPerTotalAction(Double costPerTotalAction)
The average you've spent on actions.void
setCostPerUniqueClick(Double costPerUniqueClick)
The average cost per unique click for these ads, calculated as the amount spent divided by the number of unique clicks received.void
setCpc(Double cpc)
The average cost per click for these ads, calculated as the amount spent divided by the number of clicks received.void
setCpm(Double cpm)
The average cost you've paid to have 1,000 impressions on your ad.void
setCpp(Double cpp)
The average cost you've paid to have your ad served to 1,000 unique people.void
setCtr(Double ctr)
The number of clicks you received divided by the number of impressions.void
setFrequency(Double frequency)
The average number of times your ad was served to each person.void
setImpressions(Integer impressions)
The number of times your ad was served.void
setReach(Integer reach)
The number of people your ad was served to.void
setSpend(Double spend)
The total amount you've spent so far.void
setTotalActions(Integer totalActions)
The number of actions taken on your ad, Page, app or event after your ad was served to someone, even if they didn't click on it.void
setTotalUniqueActions(Integer totalUniqueActions)
The number of unique people who took an action such as liking your Page or installing your app as a result of your ad.void
setUniqueClicks(Integer uniqueClicks)
The total number of unique people who have clicked on your ad.void
setUniqueCtr(Double uniqueCtr)
The number of people who clicked on your ad divided by the number of people you reached.void
setUniqueImpressions(Integer uniqueImpressions)
The number of people your ad was served to.
Methods inherited from class com.restfb.types.ads.NamedAdsObject
getName, setName

Methods inherited from class com.restfb.types.ads.BaseAdsObject
getId, setId

Methods inherited from class com.restfb.types.AbstractFacebookType
equals, hashCode, toString




Constructor Detail

AdKeywordStats
public AdKeywordStats()


Method Detail

getActions
public List<AdsActionStats> getActions()

addAction
public boolean addAction(AdsActionStats action)

removeAction
public boolean removeAction(AdsActionStats action)

getUniqueActions
public List<AdsActionStats> getUniqueActions()

addUniqueAction
public boolean addUniqueAction(AdsActionStats uniqueAction)

removeUniqueAction
public boolean removeUniqueAction(AdsActionStats uniqueAction)

getImpressions
public Integer getImpressions()
The number of times your ad was served. On our mobile apps an ad is counted as served the first time it's viewed. On all other Facebook interfaces, an ad is served the first time it's placed in a person's News Feed or each time it's placed in the right column.

setImpressions
public void setImpressions(Integer impressions)
The number of times your ad was served. On our mobile apps an ad is counted as served the first time it's viewed. On all other Facebook interfaces, an ad is served the first time it's placed in a person's News Feed or each time it's placed in the right column.

getUniqueImpressions
public Integer getUniqueImpressions()
The number of people your ad was served to.

setUniqueImpressions
public void setUniqueImpressions(Integer uniqueImpressions)
The number of people your ad was served to.

getClicks
public Integer getClicks()
The total number of clicks on your ad. Depending on what you're promoting, this can include Page likes, event responses or app installs.

setClicks
public void setClicks(Integer clicks)
The total number of clicks on your ad. Depending on what you're promoting, this can include Page likes, event responses or app installs.

getUniqueClicks
public Integer getUniqueClicks()
The total number of unique people who have clicked on your ad. For example, if 3 people click on the same ad 5 times, it will count as 3 unique clicks.

setUniqueClicks
public void setUniqueClicks(Integer uniqueClicks)
The total number of unique people who have clicked on your ad. For example, if 3 people click on the same ad 5 times, it will count as 3 unique clicks.

getTotalActions
public Integer getTotalActions()
The number of actions taken on your ad, Page, app or event after your ad was served to someone, even if they didn't click on it. Actions include Page likes, app installs, conversions, event responses and more. For example, 2 Page likes and 2 comments would be counted as 4 actions.

setTotalActions
public void setTotalActions(Integer totalActions)
The number of actions taken on your ad, Page, app or event after your ad was served to someone, even if they didn't click on it. Actions include Page likes, app installs, conversions, event responses and more. For example, 2 Page likes and 2 comments would be counted as 4 actions.

getTotalUniqueActions
public Integer getTotalUniqueActions()
The number of unique people who took an action such as liking your Page or installing your app as a result of your ad. For example, if the same person likes and comments on a post, they will be counted as 1 unique person.

setTotalUniqueActions
public void setTotalUniqueActions(Integer totalUniqueActions)
The number of unique people who took an action such as liking your Page or installing your app as a result of your ad. For example, if the same person likes and comments on a post, they will be counted as 1 unique person.

getCtr
public Double getCtr()
The number of clicks you received divided by the number of impressions.

setCtr
public void setCtr(Double ctr)
The number of clicks you received divided by the number of impressions.

getUniqueCtr
public Double getUniqueCtr()
The number of people who clicked on your ad divided by the number of people you reached. For example, if you received 20 unique clicks and your ad was served to 1,000 unique people, your unique clickthrough rate would be 2%.

setUniqueCtr
public void setUniqueCtr(Double uniqueCtr)
The number of people who clicked on your ad divided by the number of people you reached. For example, if you received 20 unique clicks and your ad was served to 1,000 unique people, your unique clickthrough rate would be 2%.

setCpm
public void setCpm(Double cpm)
The average cost you've paid to have 1,000 impressions on your ad.

getCpp
public Double getCpp()
The average cost you've paid to have your ad served to 1,000 unique people.

setCpp
public void setCpp(Double cpp)
The average cost you've paid to have your ad served to 1,000 unique people.

getCpc
public Double getCpc()
The average cost per click for these ads, calculated as the amount spent divided by the number of clicks received.

setCpc
public void setCpc(Double cpc)
The average cost per click for these ads, calculated as the amount spent divided by the number of clicks received.

getCostPerTotalAction
public Double getCostPerTotalAction()
The average you've spent on actions. For example, if you spent $20 and you got 10 Page likes, each one cost an average of $2.

setCostPerTotalAction
public void setCostPerTotalAction(Double costPerTotalAction)
The average you've spent on actions. For example, if you spent $20 and you got 10 Page likes, each one cost an average of $2.

getCostPerUniqueClick
public Double getCostPerUniqueClick()
The average cost per unique click for these ads, calculated as the amount spent divided by the number of unique clicks received.

setCostPerUniqueClick
public void setCostPerUniqueClick(Double costPerUniqueClick)
The average cost per unique click for these ads, calculated as the amount spent divided by the number of unique clicks received.

getFrequency
public Double getFrequency()
The average number of times your ad was served to each person.

setFrequency
public void setFrequency(Double frequency)
The average number of times your ad was served to each person.

