strata_ad: Create a Facebook ad for a strata

Description Usage Arguments Value References

Description

Create a Facebook ad for a strata

Usage

 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"),
  ...)

Arguments

fbacc

FB_Ad_account object that identifies your Facebook Ad account. Note this is not your Ad account number.

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 TRUE, bidding amount is automated and you do not need to include a bid_amount.

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

Value

A data.frame with Strata ID, Ad Set ID, Ad ID

References

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


anonresearcher/fbsample documentation built on May 30, 2019, 8:28 a.m.