fbGetBusinessUserAdAccounts: Get a list of accounts for a business manager user

View source: R/fbGetBusinessUserAdAccounts.R

fbGetBusinessUserAdAccountsR Documentation

Get a list of accounts for a business manager user

Description

Loading account list for business manager user.

Usage

fbGetBusinessUserAdAccounts(
     business_users_id = NULL, 
     business_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

business_users_id

ID by business manager user.

business_id

ID by your Business Manager

username

your username on Facebook

token_path

path to dir with credentials

access_token

Your facebook API token.

api_version

Current Facebook API version.

Value

Data frame with ad account list.

Author(s)

Alexey Seleznev

Examples

## Not run: 
options(rfacebookstat.business_id  = 000000000000,
        rfacebookstat.access_token = "abcde12345....")

my_accs <- fbGetBusinessUserAdAccounts(
                     business_users_id = 777423445991332
					 )

## End(Not run)

rfacebookstat documentation built on Sept. 29, 2022, 5:13 p.m.