fbad_read_creative {fbRads}R Documentation

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")
)

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

Value

list to be post-processed

References

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

Examples

## Not run: 
## get all creatives for the current account
fbad_read_creative(fbacc)

## End(Not run)

[Package fbRads version 17.0.0 Index]