fbad_reachestimate: Query for reach estimate for given targeting spec

View source: R/fb_reachestimate.R

fbad_reachestimateR Documentation

Query for reach estimate for given targeting spec

Description

Query for reach estimate for given targeting spec

Usage

fbad_reachestimate(fbacc, targeting_spec)

Arguments

fbacc

(optional) FB_Ad_account object, which defaults to the last returned object of fbad_init.

targeting_spec

lists of targeting spec characteristics as described at https://developers.facebook.com/docs/marketing-api/audiences/reference/advanced-targeting

Value

list

References

https://developers.facebook.com/docs/marketing-api/reference/ad-account/reachestimate/

Examples

## Not run: 
library(jsonlite)
targetspec <- list(
  age_min = unbox(24),
  age_max = unbox(55),
  geo_locations = list(countries = 'US'))
fbad_reachestimate(targeting_spec = targetspec)

## End(Not run)

fbRads documentation built on Aug. 21, 2023, 1:06 a.m.