Learn R Programming

lares (version 5.1.0)

fb_creatives: Facebook Creatives API

Description

For more information: Ad Creative

Usage

fb_creatives(token, which, api_version = "v11.0", process = TRUE)

Arguments

token

Character. Valid access token with sufficient privileges. Visit the Facebook API Graph Explorer to acquire one.

which

Character vector. This is the accounts, campaigns, adsets, or ads IDs to be queried. Remember: if report_level = "account", you must start the ID with act_.

api_version

Character. Facebook API version

process

Boolean. Process GET results to a more friendly format?

Value

data.frame with un-nested processed results if process=TRUE or raw API results as list when process=FALSE.

See Also

Other API: bring_api(), fb_accounts(), fb_ads(), fb_insights(), fb_posts(), fb_post(), fb_process(), fb_rf(), fb_token(), li_auth(), li_profile(), queryGA(), slackSend()

Other Facebook: fb_accounts(), fb_ads(), fb_insights(), fb_posts(), fb_post(), fb_process(), fb_rf(), fb_token()

Examples

Run this code
# NOT RUN {
token <- YOURTOKEN
which <- act_ADACCOUNT

# Query all creatives for "which"
creatives <- fb_creatives(YOURTOKEN, which)
# }

Run the code above in your browser using DataLab