Learn R Programming

fbRads (version 17.0.0)

fbad_read_creative: Read ad creative

Description

Read ad creative

Usage

fbad_read_creative(
  fbacc,
  id,
  by = c("account", "creative", "ad"),
  fields = c("id", "name", "body", "title", "run_status", "actor_id",
    "call_to_action_type", "follow_redirect", "image_crops", "image_file", "image_hash",
    "image_url", "thumbnail_url", "link_url", "url_tags", "object_id", "object_story_id",
    "object_story_spec", "object_type", "object_url")
)

Value

list to be post-processed

Arguments

fbacc

(optional) FB_Ad_account object, which defaults to the last returned object of fbad_init.

id

Ad Creative or Ad Set id

by

get all Ad Creatives for the account, for a given Ad or a single Creative

fields

character vector of fields to get from the API

References

https://developers.facebook.com/docs/marketing-api/reference/ad-creative#Reading

Examples

Run this code
if (FALSE) {
## get all creatives for the current account
fbad_read_creative(fbacc)
}

Run the code above in your browser using DataLab