grabAds: Grab list of ads

Description Usage Arguments Author(s) See Also Examples

Description

Fetches the list of ads under a given account, campaign or adset.

Usage

1
2
grabAds(id, token, fields = "default", ..., n = 100, verbose = FALSE,
  limit = 100)

Arguments

id

ID of object to grab from. how to find yours.

token

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

fields

default ("default") returns the most popular ones. Run findFields to see all valid fields.

...

additional parameters to pass to insights.

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.

Author(s)

John Coene jcoenep@gmail.com

See Also

getAd

Examples

1
2
3
4
## Not run: 
ads <- grabAds(id = "act_123456789012345", token = "XXXXXX")

## End(Not run)

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