fbGetCampaigns: Get campaign list from facebook marketing API

View source: R/fbGetCampaigns.R

fbGetCampaignsR Documentation

Get campaign list from facebook marketing API

Description

Get campaign list with parameters from facebook marketing API.

Usage

fbGetCampaigns(accounts_id  = getOption("rfacebookstat.accounts_id"),
               api_version  = getOption("rfacebookstat.api_version"), 
			   username     = getOption("rfacebookstat.username"),
               token_path   = fbTokenPath(),
			   access_token = getOption("rfacebookstat.access_token"))

Arguments

accounts_id

Your account ID, for example 'act_11111111111111111'.

api_version

Current Facebook API version.

username

your username on Facebook

token_path

path to dir with credentials

access_token

Your facebook API token.

Value

Data frame with campaign list.

Author(s)

Alexey Seleznev

Examples

## Not run: 
library(rfacebookstat)
fb_token <- fbGetToken(app_id = 0000000)
camp <- fbGetCampaigns(accounts_id  = "act_11111111111111111",
                       api_version  = 'v3.0',
                       access_token = fb_token)

## End(Not run)

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