R/fb_pause_adset.R

Defines functions fb_pause_adset

# Pause adset
fb_pause_adset <- function(access_token,
                        adset_id){
  url <- paste0("https://graph.facebook.com/v12.0/", adset_id)
  form_content <- list(status = "PAUSED",
                       access_token = access_token)
  response <- POST(url, body = form_content)
  return(response)
}
essentialols/fbsamplR documentation built on Dec. 20, 2021, 6:39 a.m.