R/fb_activate_campaign.R

Defines functions fb_activate_campaign

# Activate (unpause) campaign

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