Duplicating original and modified ads
20 mins to complete
In this tutorial, you will learn how to create original or modified ads from scratch via Facebook API.
Video Tutorial
Instructions
- Add Select Facebook Ad Account node. Choose your Facebook ad account.
- Add Select Facebook Ad id node. Connect
ad_account_id
sockets. Choose the ad that you want to duplicate.
- Add Fetch Facebook Ad node. Connect
ad_id
sockets.
- Add Input Any node. Copy-paste the template of a campaign object into it:
{
"account_id": "",
"adset_id": "",
"creative": {
"object_story_id": ""
},
"name": "",
"conversion_domain": "",
"tracking_specs": ""
}
- Add Fetch Facebook Ad Creative node.
- Add Extract node. Use
/creative/id
pointer.
- Add Parse string to id node. Choose Facebook Ad Creative Id
schema
.
- Connect
result
(Parse string to id) toad_creative_id
(Fetch Facebook Ad Creative)
- Add Patch JSON node. Connect
ad
(Fetch Facebook Ad) tovalue
. Connectad_creative
tovalue
.
- Add 1
replace
patch with the following input:
path: /creative
value: {{input.value}}
- Add Patch JSON node. Connect
data
(Patch JSON) todata
. Connectad
(Fetch Facebook Ad) tovalue
.
- Add 5
replace
patches with the following input:
- path:
/account_id
value:{{input.value/account_id}}
- path:
/adset_id
value:{{input.value/adset}}
- path:
/name
value:{{input.value/name}}
- path:
/tracking_specs
value:{{input.value/tracking_specs}}
- path:
/conversion_domain
value:{{input.value/conversion_domain}}
- path:
/status
value:{{input.value/status}}
- path:
/creative/object_story_id
value:{{input.value/creative/effective_object_story_id}}
- Add Create Facebook Ad node.
- Connect
data
(Patch JSON) todata
(Create Facebook Ad)
- 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