Description Usage Arguments Value References
Create a Facebook ad for a strata
1 2 3 4 5 6 7 8 9 10 11 | strata_ad(fbacc, strata_id, adset_name, ad_name, optimization_goal = c("NONE",
"APP_INSTALLS", "CLICKS", "ENGAGED_USERS", "EXTERNAL", "EVENT_RESPONSES",
"IMPRESSIONS", "LINK_CLICKS", "OFFER_CLAIMS", "OFFSITE_CONVERSIONS",
"PAGE_ENGAGEMENT", "PAGE_LIKES", "POST_ENGAGEMENT", "REACH",
"SOCIAL_IMPRESSIONS", "VIDEO_VIEWS"), billing_event = c("APP_INSTALLS",
"CLICKS", "IMPRESSIONS", "LINK_CLICKS", "OFFER_CLAIMS", "PAGE_LIKES",
"POST_ENGAGEMENT", "VIDEO_VIEWS"), bid_amount, promoted_object, campaign_id,
is_autobid = FALSE, status = c("ACTIVE", "PAUSED", "ARCHIVED", "DELETED"),
daily_budget, end_time = NULL, start_time = NULL, creative_id, targeting,
adset_status = c("ACTIVE", "PAUSED"), ad_status = c("ACTIVE", "PAUSED"),
...)
|
fbacc |
|
strata_id |
character. Strata ID. |
adset_name |
character. Name of the Ad Set. |
optimization_goal |
character. Optimization goal. |
billing_event |
character. The billing event. |
bid_amount |
integer. The amount you set for bid and budget are at ad account currencies minimum denomination level. For example cents for US dollars. |
promoted_object |
list. See at https://developers.facebook.com/docs/marketing-api/reference/ad-campaign/promoted-object. |
campaign_id |
character. Parent Ad Campaign ID. |
is_autobid |
logical. If |
daily_budget |
integer. The amount you set for bid and budget are at ad account currencies minimum denomination level. For example cents for US dollars. |
end_time |
UTC UNIX timestamp. |
start_time |
UTC UNIX timestamp. |
creative_id |
character. Creative ID that identifies the ad creative object you plan to display as your ad. See https://developers.facebook.com/docs/marketing-api/reference/ad-creative. |
targeting |
list. Describes the demographics of your strata. |
adset_status |
character. Ad Set status. |
ad_status |
character. Ad status. |
... |
further arguments passed to the API endpoint |
A data.frame with Strata ID, Ad Set ID, Ad ID
https://developers.facebook.com/docs/marketing-api/reference/ad-campaign#Creating
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.