findFields: Find valid fields

Description Usage Arguments Details Author(s) See Also Examples

View source: R/findFields.R

Description

Returns all valid fields which can be used in the GET-family functions. See details below for more information.

Usage

1
findFields(fct = "getAny")

Arguments

fct

Name of the function you need the fields for

Details

fields vary from date to cpm Applies to the following functions (fct argument, i.e.: fct = "whatStatus")

Author(s)

John Coene jcoenep@gmail.com

See Also

getAccount

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
# video-related metrics
videos <- findFields("getAccount")[grep("video", findFields("getAccount"))]

# get account data on fields of interest
data <- getAccount(account.id = "act_123456789012345", token = "XXXXXXXXXXXX", 
                   fields = videos)

## End(Not run)

JohnCoene/fbadsinsightsr documentation built on May 28, 2019, 12:55 p.m.