fbad_create_campaign function

Created Ad Campaign

Created Ad Campaign

fbad_create_campaign( fbacc, buying_type = c("AUCTION", "FIXED_CPM", "RESERVED"), campaign_status = c("ACTIVE", "PAUSED"), execution_options = NULL, name, objective = c("BRAND_AWARENESS", "CANVAS_APP_ENGAGEMENT", "CANVAS_APP_INSTALLS", "CONVERSIONS", "EVENT_RESPONSES", "EXTERNAL", "LEAD_GENERATION", "LINK_CLICKS", "LOCAL_AWARENESS", "MOBILE_APP_ENGAGEMENT", "MOBILE_APP_INSTALLS", "OFFER_CLAIMS", "PAGE_LIKES", "POST_ENGAGEMENT", "PRODUCT_CATALOG_SALES", "VIDEO_VIEWS"), spend_cap = NULL )

Arguments

  • fbacc: (optional) FB_Ad_account object, which defaults to the last returned object of fbad_init.
  • buying_type: Facebook optimization algorithm to delivery, pricing, and limits
  • campaign_status: initial status of the Ad Campaign
  • execution_options: special execution settings passed to the API
  • name: Ad Campaign name
  • objective: the campaign's objective
  • spend_cap: spend cap of the campaign

Returns

Ad Campaign id

References

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