Skip to contents

When targeting around a specific location, returns a suggested radius to reach enough people

Usage

get_fb_suggested_radius(location, distance_unit = "kilometer", version, token)

Arguments

location

Vector of latitude and longitude (c(lat, lon)).

distance_unit

Either "kilometer" or "mile"; defaults to "kilometer"

version

'Facebook Marketing' API version; for example, "v19.0"

token

'Facebook Marketing' API token

Value

Dataframe with suggested radius and distance unit

Details

For more information, see the Facebook documentation here

Examples

if (FALSE) {
get_fb_suggested_radius(location = c(38.89831, -77.03658),
                        version  = "v14.0",
                        token    = "TOKEN-HERE")
}