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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddCity(Post.KeyedType city) booleanaddCountry(String country) booleanbooleanaddRegion(Post.KeyedType region) Values of targeting cities.Values of targeting countries.Targeted locales.Values of targeting regions.booleanremoveCity(NamedFacebookType city) booleanremoveCountry(String country) booleanremoveLocale(Integer locale) booleanremoveRegion(NamedFacebookType region) voidsetGeoLocations(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 ofadregionto find Targeting Options and use the returned key to specify.- Returns:
- list of regions
-
removeCity
-
removeCountry
-
removeLocale
-
removeRegion
-
getGeoLocations
-
setGeoLocations
-