fbad_create_creative: Create an ad creative

View source: R/fb_creative.R

fbad_create_creativeR Documentation

Create an ad creative

Description

Create an ad creative

Usage

fbad_create_creative(
  fbacc,
  title,
  body,
  name,
  actor_id,
  follow_redirect,
  image_file,
  image_hash,
  image_crops,
  image_url,
  link_url,
  url_tags,
  object_id,
  object_story_id,
  object_story_spec,
  object_url,
  call_to_action_type = c("OPEN_LINK", "BOOK_TRAVEL", "SHOP_NOW", "PLAY_GAME",
    "LISTEN_MUSIC", "WATCH_VIDEO", "USE_APP")
)

Arguments

fbacc

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

title

string

body

string

name

string

actor_id

Facebook object ID reference

follow_redirect

boolean

image_file

local image passed to Facebook. You might first upload the image via fbad_create_image.

image_hash

string

image_crops

list

image_url

string

link_url

string

url_tags

list

object_id

Facebook object ID reference

object_story_id

post ID reference

object_story_spec

list

object_url

string list

call_to_action_type

string

Value

creative id

Note

There are no checks done before passing provided arguments to Facebook. You have to know what you are up to. Read the Facebook docs.

References

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


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