getCreative: Get creative content

Description Usage Arguments Author(s) Examples

View source: R/getCreative.R

Description

Get creative content details and meta-data

Usage

1
getCreative(object.story.id, token, fields = c("name", "id", "message"))

Arguments

object.story.id

Object story id, can be obtained with listCreatives

token

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

fields

Variables to retrieve, see findFields

Author(s)

John Coene jcoenep@gmail.com

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
# run authentication with your app details
fbOAuth <- fbAuthenticate(app.id = "1234567890123456", 
                          app.secret = "76xx79121xx0130x2x10a08x3e2x80xx", 
                          scope = "ads_management")
ls <- listCreatives(id = "act_1231313", token = fbOAuth)
(creative <- getCreative(object.story.id = sample(ls$object_story_id, 1), 
                         token = fbOAuth))

## End(Not run)

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