Duplicate original and modified campaigns

18 mins to complete

In this tutorial, you will learn how to create original or modified campaigns from scratch via Facebook API.

Notion image

Video Tutorial

Instructions

  1. Add Create Facebook Campaign node.
  1. Add Input Any node. Copy paste the template of a campaign object into it:
{
    "account_id": "",
    "buying_type": "",
    "special_ad_categories": "",
    "name": "",
    "objective": "",
    "status": ""
}
  1. Add Fetch Campaign node.
  1. Add Select Facebook Ad Account node. Choose your Facebook ad account.
  1. Add Fetch Facebook Campaign id node. Connect ad_account_id sockets. Choose the campaign that you want to duplicate. Connect campaign_id sockets.
  1. Add Patch JSON node. Connect campaign and value sockets. Connect any (Input Any) to data (Patch JSON).
  1. Add 6 replace patches with the following input:
  • path: /account_id value: {{input.value/account_id}}
  • path: /buying_type value: {{input.value/buying_type}}
  • path: /special_ad_categories value: {{input.value/special_ad_categories}}
  • path: /name value: {{input.value/name}}
  • path: /objective value: {{input.value/objective}}
  • path: /status value: {{input.value/status}}
  1. Connect data (Patch JSON) to data (Create Facebook Campaign)
  1. If you want to change something in the campaign you are copying, use an additional Patch JSON node and Input Any for the value you want to change.
 
Did this answer your question?
😞
😐
🤩

Last updated on August 4, 2021