fbGetAdAccounts: Get avable ad account list.

View source: R/fbGetAdAccounts.R

fbGetAdAccountsR Documentation

Get avable ad account list.

Description

fbGetAdAccounts get data frame with avable in your bussines manager ad account list in R.

Usage

fbGetAdAccounts(source_id    = getOption("rfacebookstat.business_id"), 
                api_version  = getOption("rfacebookstat.api_version"), 
                username     = getOption("rfacebookstat.username"),
                token_path   = fbTokenPath(),
				access_token = getOption("rfacebookstat.access_token"))

Arguments

source_id

Your business manager or project ID.

access_token

Your facebook API token.

username

your username on Facebook

token_path

path to dir with credentials

api_version

Current Facebook API version.

Value

Data frame with ad account list.

Author(s)

Alexey Seleznev

Examples

## Not run: 
fbAccounts <- fbGetAdAccounts(source_id = "xxxxxxxxxxxxx",
                              api_version = "v2.10", 
							  access_token = "xxxxxxxx")
							  

## End(Not run)

rfacebookstat documentation built on Sept. 11, 2024, 6:05 p.m.