Map Parameters over Vector
Converts a vector into a map_param
object. When a map_param
object is entered as a parameter in query_fb_marketing_api()
, query_fb_marketing_api()
makes a separate API query for each item within map_param
(ie, for each item in the original vector entered into map_param
). A map_param
object is structured as a list, where the map_param
class triggers the query_fb_marketing_api
function to make a separate API query for each item in the list.
Source: R/map_param.R
map_param_vec.Rd
Map Parameters over Vector
Converts a vector into a map_param
object. When a map_param
object is entered as a parameter in query_fb_marketing_api()
, query_fb_marketing_api()
makes a separate API query for each item within map_param
(ie, for each item in the original vector entered into map_param
). A map_param
object is structured as a list, where the map_param
class triggers the query_fb_marketing_api
function to make a separate API query for each item in the list.
Value
Object of class map_param
to be used as input to the query_fb_marketing_api()
function to make multiple API queries.
Examples
if (FALSE) {
# Make 2 queries:
# 1. Number of male MAU/DAU
# 2. Number of female MAU/DAU
query_fb_marketing_api(
location_unit_type = "countries",
location_keys = "US",
gender = map_param_vec(1:2),
version = VERSION,
creation_act = CREATION_ACT,
token = TOKEN)
}