This repository was archived by the owner on Mar 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 56
/
Copy pathfbad_create_creative.Rd
74 lines (58 loc) · 1.53 KB
/
fbad_create_creative.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fb_creative.R
\name{fbad_create_creative}
\alias{fbad_create_creative}
\title{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{
\item{fbacc}{(optional) \code{FB_Ad_account} object, which defaults to the last returned object of \code{\link{fbad_init}}.}
\item{title}{string}
\item{body}{string}
\item{name}{string}
\item{actor_id}{Facebook object ID reference}
\item{follow_redirect}{boolean}
\item{image_file}{local image passed to Facebook. You might first upload the image via \code{fbad_create_image}.}
\item{image_hash}{string}
\item{image_crops}{list}
\item{image_url}{string}
\item{link_url}{string}
\item{url_tags}{list}
\item{object_id}{Facebook object ID reference}
\item{object_story_id}{post ID reference}
\item{object_story_spec}{list}
\item{object_url}{string list}
\item{call_to_action_type}{string}
}
\value{
creative id
}
\description{
Create an ad creative
}
\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{
\url{https://developers.facebook.com/docs/marketing-api/reference/ad-creative#Creating}
}