18 mins to complete
In this tutorial, you will learn how to create original or modified campaigns from scratch via Facebook API.
Video Tutorial
Instructions
- Add Create Facebook Campaign node.
- Add Input Any node. Copy paste the template of a campaign object into it:
{
"account_id": "",
"buying_type": "",
"special_ad_categories": "",
"name": "",
"objective": "",
"status": ""
}
- Add Fetch Campaign node.
- Add Select Facebook Ad Account node. Choose your Facebook ad account.
- Add Fetch Facebook Campaign id node. Connect
ad_account_id
sockets. Choose the campaign that you want to duplicate. Connectcampaign_id
sockets. - Add Patch JSON node. Connect
campaign
andvalue
sockets. Connectany
(Input Any) todata
(Patch JSON). - 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}}
- Connect
data
(Patch JSON) todata
(Create Facebook Campaign) - 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.