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.
![Notion image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F6a4c79e8-5521-4908-85ad-4fbbe90a6429%2FUntitled.png?table=block&id=a2a379f8-07d0-446b-a076-44dac4e5a609&cache=v2)
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