fbad_read_creative: Read ad creative

View source: R/fb_creative.R

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

fbRads documentation built on Aug. 21, 2023, 1:06 a.m.