15 mins to complete
In this tutorial, you will learn how to create an ad from a post id. It’s helpful when you want to create a new ad, but keep the existing engagement of the creative.
Video Tutorial
Instructions
- Add Select Facebook Ad Id node.
- Add Select Facebook Ad Account Id node. Select your preferred Facebook Ad Account. Connect
ad_account_id
sockets. Select anad_id
which you want to transform into a post. - Add Fetch Facebook Ad node. Connect
ad_id
sockets. - Add Extract node. Connect
ad
(Fetch Facebook Ad) todata
(Extract). Select/creative/id
pointer
. - Add Parse string to id node. Connect
data
tovalue
. ChooseAd Creative Id
schema. - Add Fetch Facebook Ad Creative node. Connect
result
toad_creative
. Take a look at thead_creative
socket. We would needeffective_object_story_id
to proceed with automation. - Add Patch JSON node. Copy the following JSON into the
data
socket:
{
"object_story_id": "",
"url_tags": ""
}
This is the schema that we need to create an ad from a post id. Add 2 REPLACE patches
with /object_story_id
, /url_tags path
and {{input.value/effective_story_object_id}}
, {{input.value/url_tags}}
values respectively.
- Add another Patch JSON node. Connect
data
(Patch JSON 1) tovalue
(Patch JSON 2). Connectad_id
(Select Facebook Ad Id) to data (Patch JSON 2). Add 1 ADD patch with apath
/creative
and{{input.value}}
as avalue
. - Add Update Facebook Ad node. Connect
data
toad
.