Package com.restfb.types
Class Post.Targeting
java.lang.Object
com.restfb.types.AbstractFacebookType
com.restfb.types.Post.Targeting
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
Post.FeedTargeting
- Enclosing class:
- Post
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
addCity
(Post.KeyedType city) boolean
addCountry
(String country) boolean
boolean
addRegion
(Post.KeyedType region) Values of targeting cities.Values of targeting countries.Targeted locales.Values of targeting regions.boolean
removeCity
(NamedFacebookType city) boolean
removeCountry
(String country) boolean
removeLocale
(Integer locale) boolean
removeRegion
(NamedFacebookType region) void
setGeoLocations
(Post.FeedTargeting geoLocations) Methods inherited from class com.restfb.types.AbstractFacebookType
equals, hashCode, toString
-
Field Details
-
cities
-
countries
-
regions
-
locales
-
-
Constructor Details
-
Targeting
public Targeting()
-
-
Method Details
-
addCity
-
addCountry
-
addLocale
-
addRegion
-
getCities
Values of targeting cities. Use type of adcity to find Targeting Options and use the returned key to specify.- Returns:
- list of cities
-
getCountries
Values of targeting countries. You can specify up to 25 countries. Use ISO 3166 format codes.- Returns:
- list of targeting countries.
-
getLocales
Targeted locales. Use type of adlocale to find Targeting Options and use the returned key to specify.- Returns:
- list of locales
-
getRegions
Values of targeting regions. Use type ofadregion
to find Targeting Options and use the returned key to specify.- Returns:
- list of regions
-
removeCity
-
removeCountry
-
removeLocale
-
removeRegion
-
getGeoLocations
-
setGeoLocations
-