fbad_read_creative: Read ad creative

Description Usage Arguments Value References Examples

View source: R/fb_creative.R

Description

Read ad creative

Usage

1
2
3
4
5
6
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

1
2
3
4
5
## Not run: 
## get all creatives for the current account
fbad_read_creative(fbacc)

## End(Not run)

daroczig/fbRads-transition documentation built on May 20, 2019, 4:08 p.m.