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
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 Details
-
AdKeywordStats
public AdKeywordStats()
-
-
Method Details
-
getActions
-
addAction
-
removeAction
-
getUniqueActions
-
addUniqueAction
-
removeUniqueAction
-
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
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
The number of people your ad was served to. -
setUniqueImpressions
The number of people your ad was served to. -
getReach
The number of people your ad was served to. -
setReach
The number of people your ad was served to. -
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
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
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
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
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
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
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
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. -
getSpend
The total amount you've spent so far. -
setSpend
The total amount you've spent so far. -
getCtr
The number of clicks you received divided by the number of impressions. -
setCtr
The number of clicks you received divided by the number of impressions. -
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 click-through rate would be 2%. -
setUniqueCtr
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 click-through rate would be 2%. -
getCpm
The average cost you've paid to have 1,000 impressions on your ad. -
setCpm
The average cost you've paid to have 1,000 impressions on your ad. -
getCpp
The average cost you've paid to have your ad served to 1,000 unique people. -
setCpp
The average cost you've paid to have your ad served to 1,000 unique people. -
getCpc
The average cost per click for these ads, calculated as the amount spent divided by the number of clicks received. -
setCpc
The average cost per click for these ads, calculated as the amount spent divided by the number of clicks received. -
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
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
The average cost per unique click for these ads, calculated as the amount spent divided by the number of unique clicks received. -
setCostPerUniqueClick
The average cost per unique click for these ads, calculated as the amount spent divided by the number of unique clicks received. -
getFrequency
The average number of times your ad was served to each person. -
setFrequency
The average number of times your ad was served to each person.
-