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
public static class Post.Targeting extends AbstractFacebookType
- See Also:
- Serialized Form
-
Field Summary
-
Constructor Summary
Constructors Constructor Description Targeting()
-
Method Summary
Modifier and Type Method Description boolean
addCity(Post.KeyedType city)
boolean
addCountry(String country)
boolean
addLocale(Integer locale)
boolean
addRegion(Post.KeyedType region)
List<Post.KeyedType>
getCities()
Values of targeting cities.List<String>
getCountries()
Values of targeting countries.Post.FeedTargeting
getGeoLocations()
List<Integer>
getLocales()
Targeted locales.List<Post.KeyedType>
getRegions()
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 of adregion to find Targeting Options and use the returned key to specify.- Returns:
- list of regions
-
removeCity
-
removeCountry
-
removeLocale
-
removeRegion
-
getGeoLocations
-
setGeoLocations
-