Skip to contents

Usage

cc_get_fb_ads_daily(
  fields = c("spend"),
  level = "campaign",
  start_date = NULL,
  end_date = NULL,
  api_version = "v19.0",
  fb_ad_account_id = NULL,
  max_pages = NULL,
  fb_user_token = NULL,
  cache = TRUE,
  update = TRUE
)

Arguments

fields

A character vector of fields to retrieve. Defaults to "spend".

Details

It currently returns all fields that return a single value, `cc_valid_fields_ad_campaign_group_v`

For reference, these are the fields that are always present for all campaigns: "id,name,created_time,updated_time,start_time,stop_time,objective,status"

Cache updating currently suboptimal.

Examples

if (FALSE) { # \dontrun{
cc_get_fb_ads_daily()
} # }