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.
Video Tutorial
Instructions
- Add Create Facebook Adset node.
- 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": ""
}
- Add Fetch Adset node.
- Add Select Facebook Ad Account node. Choose your Facebook ad account.
- Add Fetch Facebook Adset id node. Connect
ad_account_id
sockets. Choose the adset that you want to duplicate. Connectadset_id
sockets.
- Add Patch JSON node. Connect
adset
andvalue
sockets. Connectany
(Input Any) todata
(Patch JSON).
- 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}}
- Connect
data
(Patch JSON) todata
(Create Facebook Adset)
- 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