listBusinesses: List businesses

Description Usage Arguments Details Author(s) Examples

View source: R/listBusinesses.R

Description

Fetches all businesses under the authenticated user. Requires access to Business Managers' API.

Usage

1
listBusinesses(token, id = "me", n = 100, verbose = FALSE, limit = 100)

Arguments

token

A valid token as returned by fbAuthenticate or a short-term token from facebook Graph API Explorer.

id

user ID, defaults to me.

n

Number of results to retrieve, defaults to 100. When you make an API request, you will usually not receive all of the results of that request in a single response. This is because some responses could contain thousands of objects so most responses are paginated by default. previous fetches the previous page of response (after the initial query) similarly next fetches the next page and NULL does not paginate (only makes one query).

verbose

Defaults to FALSE if TRUE will print information on the query in the console.

limit

Number of results requested at each API call, defaults to 100.

Details

Returns data.frame of account IDs and status. requires ads_management permission!

Author(s)

John Coene jcoenep@gmail.com

Examples

1
2
3
4
5
## Not run: 
# get account ids
accs <- listBusinesses(token = "XXXXXX")

## End(Not run)

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