Duplicating original and modified adsets

20 mins to complete

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

Notion image

Video Tutorial

Instructions

  1. Add Create Facebook Adset node.
  1. Add Input Any node. Copy-paste the template of a campaign object into it:
{
    "account_id": "",
    "bid_strategy": "",
    "billing_event": "",
    "campaign_id": "",
    "name": "",
    "optimization_goal": "",
    "daily_budget": "",
    "pacing_type": "",
    "promoted_object": "",
    "targeting": "",
    "status": ""
}
  1. Add Fetch Adset node.
  1. Add Select Facebook Ad Account node. Choose your Facebook ad account.
  1. Add Fetch Facebook Adset id node. Connect ad_account_id sockets. Choose the adset that you want to duplicate. Connect adset_id sockets.
  1. Add Patch JSON node. Connect adset and value sockets. Connect any (Input Any) to data (Patch JSON).
  1. Add 11 replace patches with the following input:
  • path: /account_id value: {{input.value/account_id}}
  • path: /campaign_id value: {{input.value/campaign_id}}
  • path: /name value: {{input.value/name}}
  • path: /bid_strategy value: {{input.value/bid_strategy}}
  • path: /billing_event value: {{input.value/billing_event}}
  • path: /optimization_goal value: {{input.value/optimization_goal}}
  • path: /pacing_type value: {{input.value/pacing_type}}
  • path: /daily_budget value: {{input.value/daily_budget}}
  • path: /targeting value: {{input.value/targeting}}
  • path: /promoted_object value: {{input.value/promoted_object}}
  • path: /status value: {{input.value/status}}
  1. Connect data (Patch JSON) to data (Create Facebook Adset)
  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 6, 2021