Create an ad from a Post ID

This automation allows you to boost any Facebook or Instagram post ad within your ad account.

JSON Recipe

Import the automation recipe(s) into your own account. Don’t know how? Learn here.

Organic Instragram Post Booster
{"name":"Organic IG Post Booster","description":"Boost_IG_Post_2023-03-23","nodes":{"fb_select_ad_account_id_v2_1":{"type":"fb_select_ad_account_id_v2","logging_enabled":false,"x":183,"y":134,"inputs":{"ad_account_id":{"export_enabled":true}}},"start_1":{"type":"start","logging_enabled":false,"x":112,"y":547},"fb_fetch_ad_v2_1":{"type":"fb_fetch_ad_v2","logging_enabled":false,"x":646,"y":145,"group":"group_1"},"input_string_1":{"type":"input_string","title":"Input Ad Name","description":"Allows to input a string","logging_enabled":false,"max_job_retries":6,"timeout":30,"x":691,"y":478,"group":"group_1","inputs":{"string":{"export_enabled":true,"data":"My new IG Post Ad"}}},"patch_json_v2_1":{"type":"patch_json_v2","logging_enabled":false,"x":1887,"y":247,"group":"group_1","inputs":{"patches":{"export_enabled":true,"data":[{"op":"replace","path":"/creative","value":"{{input.value}}"}]}},"outputs":{"patched":{"title":"patched","description":"Triggers when the patching is done"}}},"patch_json_v2_2":{"type":"patch_json_v2","logging_enabled":false,"x":1103,"y":255,"group":"group_1","inputs":{"patches":{"export_enabled":true,"data":[{"op":"remove","path":"/source_ad_id"},{"op":"remove","path":"/source_ad"},{"op":"remove","path":"/adset"},{"op":"remove","path":"/campaign"},{"op":"replace","path":"/status","value":"PAUSED"},{"op":"replace","path":"/name","value":"{{input.value}}"},{"op":"remove","path":"/created_time"},{"op":"remove","path":"/updated_time"},{"op":"remove","path":"/configured_status"},{"op":"remove","path":"/effective_status"},{"op":"remove","path":"/id"},{"op":"remove","path":"/last_updated_by_app_id"},{"op":"remove","path":"/campaign_id"},{"op":"remove","path":"/preview_shareable_link"},{"op":"remove","path":"/adrules_governed"}]}}},"input_string_2":{"type":"input_string","title":"Input IG Post ID","description":"Allows to input a string","logging_enabled":false,"max_job_retries":6,"timeout":30,"x":1034,"y":637,"group":"group_2","inputs":{"string":{"export_enabled":true,"data":"123456789"}}},"fb_fetch_ad_creative_v2_1":{"type":"fb_fetch_ad_creative_v2","logging_enabled":false,"x":1002,"y":369,"group":"group_2"},"extract_1":{"type":"extract_v2","logging_enabled":false,"x":352,"y":293,"group":"group_2","inputs":{"pointer":{"export_enabled":true,"data":"/creative/id"}}},"parse_string_to_id_1":{"type":"parse_string_to_id","logging_enabled":false,"x":673,"y":337,"group":"group_2","inputs":{"schema":{"export_enabled":true,"data":"fb_ad_creative_id"}}},"patch_json_v2_3":{"type":"patch_json_v2","logging_enabled":false,"x":1348,"y":361,"group":"group_2","inputs":{"patches":{"export_enabled":true,"data":[{"op":"add","path":"/actor_id","value":"{{input.value/actor_id}}"},{"op":"add","path":"/instagram_actor_id","value":"{{input.value/instagram_actor_id}}"},{"op":"add","path":"/url_tags","value":"{{input.value/url_tags}}"},{"op":"add","path":"/object_id","value":"{{input.value/actor_id}}"}]},"data":{"export_enabled":true,"data":{}}}},"patch_json_v2_4":{"type":"patch_json_v2","logging_enabled":false,"x":2686,"y":362,"group":"group_2","inputs":{"patches":{"export_enabled":true,"data":[{"op":"add","path":"/source_instagram_media_id","value":"{{input.value}}"},{"op":"remove","path":"/object_story_id"},{"op":"remove","path":"/instagram_actor_id"}]}}},"patch_json_v2_5":{"type":"patch_json_v2","logging_enabled":false,"x":1174,"y":498,"inputs":{"patches":{"export_enabled":true,"data":[{"op":"replace","path":"/adset_id","value":"{{input.value/id}}"},{"op":"replace","path":"/account_id","value":"{{input.value/context/ad_account_id/id}}"}]}}},"fb_select_ad_id_v2_1":{"type":"fb_select_ad_id_v2","logging_enabled":false,"x":188,"y":309,"inputs":{"ad_id":{"export_enabled":true}}},"fb_select_adset_id_v2_1":{"type":"fb_select_adset_id_v2","logging_enabled":false,"x":471,"y":654,"inputs":{"adset_id":{"export_enabled":true}}},"fetch_integration_url_v2_1":{"type":"fetch_integration_url_v2","logging_enabled":false,"x":579,"y":1023,"inputs":{"headers":{"export_enabled":true},"field":{"export_enabled":true},"all_pages":{"export_enabled":true},"url":{"export_enabled":true,"data":"https://graph.facebook.com/v14.0/act_641661673230445/connected_instagram_accounts"},"provider":{"export_enabled":true,"data":"facebook"}}},"fetch_integration_url_v2_2":{"type":"fetch_integration_url_v2","logging_enabled":false,"x":892,"y":1089,"inputs":{"headers":{"export_enabled":true},"field":{"export_enabled":true},"all_pages":{"export_enabled":true},"url":{"export_enabled":true,"data":"https://graph.facebook.com/v14.0/17961397850000575"},"provider":{"export_enabled":true,"data":"facebook"}}},"replace_string_1":{"type":"replace_string","logging_enabled":false,"x":1393,"y":1502,"group":"group_2","inputs":{"regex":{"export_enabled":true,"data":"POSTID"},"pointer":{"export_enabled":true,"data":""},"schema":{"export_enabled":true,"data":"string"}}},"extract_2":{"type":"extract_v2","logging_enabled":false,"x":1377,"y":731,"group":"group_2","inputs":{"pointer":{"export_enabled":true,"data":"/instagram_actor_id"}}},"patch_json_v2_6":{"type":"patch_json_v2","logging_enabled":false,"x":1761,"y":329,"group":"group_2","inputs":{"patches":{"export_enabled":true,"data":[{"op":"add","path":"/object_story_id","value":"{{input.value}}"}]}}},"replace_string_2":{"type":"replace_string","logging_enabled":false,"x":1389,"y":1083,"group":"group_2","inputs":{"regex":{"export_enabled":true,"data":"PAGEID"},"pointer":{"export_enabled":true,"data":""},"schema":{"export_enabled":true,"data":"string"},"data":{"export_enabled":true,"data":"PAGEID_POSTID"}}},"input_string_3":{"type":"input_string","title":"Input IG User ID","description":"Allows to input a string","logging_enabled":false,"max_job_retries":6,"timeout":30,"x":1027,"y":838,"group":"group_2","inputs":{"string":{"export_enabled":true,"data":"987654321"}}},"patch_json_v2_7":{"type":"patch_json_v2","logging_enabled":false,"x":2046,"y":340,"group":"group_2","inputs":{"patches":{"export_enabled":true,"data":[{"op":"add","path":"/instagram_user_id","value":"{{input.value}}"}]}}},"input_any_1":{"type":"input_any","logging_enabled":false,"x":802,"y":867,"inputs":{"any":{"export_enabled":true,"data":{"account_id":"1156873581042765","adset_id":"23852048720110007","creative":{"actor_id":"593414360822959","source_instagram_media_id":"17984933416664829","enable_direct_install":false,"enable_launch_instant_app":false,"instagram_user_id":"17841403482368863","url_tags":"utm_source=facebook\u0026utm_medium=cpc\u0026utm_campaign={{campaign.name}}\u0026utm_term={{adset.name}}\u0026utm_content={{ad.name}}","use_page_actor_override":false},"name":"My new IG Post Ad","status":"PAUSED","tracking_specs":[]}}}},"fb_create_ad_v4_1":{"type":"fb_create_ad_v4","title":"Create Facebook Ad","description":"Creates an Ad for a specified Ad Account inside a specified Ad Set.","logging_enabled":true,"max_job_retries":6,"timeout":30,"x":1624,"y":511,"inputs":{"create":{"title":"create","description":"Starts the creation"}}},"stop_1":{"type":"stop","logging_enabled":false,"x":2055,"y":769},"input_any_2":{"type":"input_any","logging_enabled":false,"x":1945,"y":122,"group":"group_2","inputs":{"any":{"export_enabled":true,"data":{"enable_direct_install":false,"enable_launch_instant_app":false,"use_page_actor_override":false}}}}},"edges":["fb_select_ad_id_v2_1.ad_id:fb_fetch_ad_v2_1.ad_id","fb_select_ad_account_id_v2_1.ad_account_id:fb_select_ad_id_v2_1.ad_account_id","input_string_1.string:patch_json_v2_2.value","parse_string_to_id_1.result:fb_fetch_ad_creative_v2_1.ad_creative_id","parse_string_to_id_1.parsed:fb_fetch_ad_creative_v2_1.fetch","extract_1.data:parse_string_to_id_1.value","extract_1.extracted:parse_string_to_id_1.parse","fb_fetch_ad_v2_1.ad:extract_1.data","fb_fetch_ad_creative_v2_1.ad_creative:patch_json_v2_3.value","fb_fetch_ad_creative_v2_1.fetched:patch_json_v2_3.patch","patch_json_v2_4.data:patch_json_v2_1.value","fb_fetch_ad_v2_1.ad:patch_json_v2_2.data","patch_json_v2_4.patched:patch_json_v2_1.patch","fb_fetch_ad_v2_1.fetched:patch_json_v2_2.patch","patch_json_v2_2.patched:extract_1.extract","patch_json_v2_2.data:patch_json_v2_1.data","patch_json_v2_1.data:patch_json_v2_5.data","fb_select_ad_account_id_v2_1.ad_account_id:fb_select_adset_id_v2_1.ad_account_id","fb_select_adset_id_v2_1.adset_id:patch_json_v2_5.value","patch_json_v2_1.patched:patch_json_v2_5.patch","fb_create_ad_v4_1.created:stop_1.stop","start_1.start:fb_fetch_ad_v2_1.fetch","input_string_2.string:patch_json_v2_4.value","patch_json_v2_3.data:extract_2.data","patch_json_v2_3.patched:extract_2.extract","extract_2.data:replace_string_2.value","replace_string_2.data:replace_string_1.data","input_string_2.string:replace_string_1.value","replace_string_1.data:patch_json_v2_6.value","patch_json_v2_3.data:patch_json_v2_6.data","extract_2.extracted:replace_string_2.replace","replace_string_2.replaced:replace_string_1.replace","replace_string_1.replaced:patch_json_v2_6.patch","patch_json_v2_7.data:patch_json_v2_4.data","patch_json_v2_7.patched:patch_json_v2_4.patch","patch_json_v2_6.patched:patch_json_v2_7.patch","patch_json_v2_6.data:patch_json_v2_7.data","input_string_3.string:patch_json_v2_7.value","patch_json_v2_5.data:fb_create_ad_v4_1.data","patch_json_v2_5.patched:fb_create_ad_v4_1.create"],"groups":{"group_1":{"title":"Prep Ad","description":"","x":798,"y":226,"inputs":["fb_fetch_ad_v2_1.ad_id","fb_fetch_ad_v2_1.fetch"],"outputs":["patch_json_v2_1.data","patch_json_v2_1.patched"]},"group_2":{"title":"Prep Ad Creative","description":"","x":1386,"y":226,"group":"group_1","inputs":["extract_1.data","extract_1.extract"],"outputs":["patch_json_v2_4.data","patch_json_v2_4.patched"]}},"widgets":{"widget_1":{"title":"Template Ad - Ad","description":"Select an Ad","position":1,"input":"fb_select_ad_id_v2_1.ad_id"},"widget_2":{"title":"Ad Account","description":"Select an Account","position":0,"input":"fb_select_ad_account_id_v2_1.ad_account_id"},"widget_3":{"title":"Target Adset","description":"Select an Adset","position":6,"input":"fb_select_adset_id_v2_1.adset_id"},"widget_4":{"title":"Ad Name","description":"A string to input","position":4,"icon":"las la-signature","input":"input_string_1.string"},"widget_5":{"title":"IG Post Id","description":"A string to input","position":3,"icon":"la la-instagram","input":"input_string_2.string"},"widget_6":{"title":"IG User Id","description":"A string to input","position":3,"icon":"la la-instagram","input":"input_string_3.string"}},"variables":{},"config":{"capture_inputs_enabled":false,"caching_enabled":false},"tags":[]}
Organic Facebook Post Booster
{"name":"Organic FB Posts Booster","description":"Boost_FB_Post_2023-03-23","nodes":{"patch_json_v2_1":{"type":"patch_json_v2","logging_enabled":false,"x":1101,"y":22,"group":"group_1","inputs":{"patches":{"export_enabled":true,"data":[{"op":"remove","path":"/source_ad_id"},{"op":"remove","path":"/source_ad"},{"op":"remove","path":"/adset"},{"op":"remove","path":"/campaign"},{"op":"replace","path":"/status","value":"PAUSED"},{"op":"replace","path":"/name","value":"{{input.value}}"},{"op":"remove","path":"/created_time"},{"op":"remove","path":"/updated_time"},{"op":"remove","path":"/configured_status"},{"op":"remove","path":"/effective_status"},{"op":"remove","path":"/id"},{"op":"remove","path":"/last_updated_by_app_id"},{"op":"remove","path":"/campaign_id"},{"op":"remove","path":"/preview_shareable_link"},{"op":"remove","path":"/adrules_governed"}]}}},"patch_json_v2_2":{"type":"patch_json_v2","logging_enabled":false,"x":1740,"y":229,"group":"group_1","inputs":{"patches":{"export_enabled":true,"data":[{"op":"replace","path":"/creative","value":"{{input.value}}"}]}},"outputs":{"patched":{"title":"patched","description":"Triggers when the patching is done"}}},"fb_select_ad_account_id_v2_1":{"type":"fb_select_ad_account_id_v2","logging_enabled":false,"x":183,"y":134,"inputs":{"ad_account_id":{"export_enabled":true}}},"input_string_1":{"type":"input_string","title":"Page id","description":"Allows to input a string","logging_enabled":false,"x":1333,"y":718,"group":"group_2","inputs":{"string":{"export_enabled":true,"data":"123456789"}}},"start_1":{"type":"start","logging_enabled":false,"x":112,"y":547},"fb_fetch_ad_v2_1":{"type":"fb_fetch_ad_v2","logging_enabled":false,"x":782,"y":226,"group":"group_1"},"input_string_2":{"type":"input_string","title":"Input Ad Name","description":"Allows to input a string","logging_enabled":false,"max_job_retries":6,"timeout":30,"x":691,"y":478,"group":"group_1","inputs":{"string":{"export_enabled":true,"data":"My new  Ad"}}},"fb_fetch_ad_creative_v2_1":{"type":"fb_fetch_ad_creative_v2","logging_enabled":false,"x":1002,"y":369,"group":"group_2"},"extract_1":{"type":"extract_v2","logging_enabled":false,"x":352,"y":293,"group":"group_2","inputs":{"pointer":{"export_enabled":true,"data":"/creative/id"}}},"parse_string_to_id_1":{"type":"parse_string_to_id","logging_enabled":false,"x":673,"y":337,"group":"group_2","inputs":{"schema":{"export_enabled":true,"data":"fb_ad_creative_id"}}},"patch_json_v2_3":{"type":"patch_json_v2","logging_enabled":false,"x":1353,"y":400,"group":"group_2","inputs":{"patches":{"export_enabled":true,"data":[{"op":"add","path":"/actor_id","value":"{{input.value/actor_id}}"},{"op":"add","path":"/instagram_actor_id","value":"{{input.value/instagram_actor_id}}"},{"op":"add","path":"/url_tags","value":"{{input.value/url_tags}}"}]},"data":{"export_enabled":true,"data":{}}}},"patch_json_v2_4":{"type":"patch_json_v2","logging_enabled":false,"x":2327,"y":561,"group":"group_2","inputs":{"patches":{"export_enabled":true,"data":[{"op":"replace","path":"/object_story_id","value":"{{input.value}}"}]}}},"replace_string_1":{"type":"replace_string","logging_enabled":false,"x":1701,"y":408,"group":"group_2","inputs":{"regex":{"export_enabled":true,"data":"PAGEID"},"pointer":{"export_enabled":true,"data":""},"schema":{"export_enabled":true,"data":"string"},"data":{"export_enabled":true,"data":"PAGEID_POSTID"}}},"replace_string_2":{"type":"replace_string","logging_enabled":false,"x":1979,"y":482,"group":"group_2","inputs":{"regex":{"export_enabled":true,"data":"POSTID"},"pointer":{"export_enabled":true,"data":""},"schema":{"export_enabled":true,"data":"string"}}},"fb_create_ad_v4_1":{"type":"fb_create_ad_v4","title":"Create Facebook Ad","description":"Creates an Ad for a specified Ad Account inside a specified Ad Set.","logging_enabled":true,"max_job_retries":6,"timeout":30,"x":1163,"y":645},"patch_json_v2_5":{"type":"patch_json_v2","logging_enabled":false,"x":849,"y":527,"inputs":{"patches":{"export_enabled":true,"data":[{"op":"replace","path":"/adset_id","value":"{{input.value/id}}"},{"op":"replace","path":"/account_id","value":"{{input.value/context/ad_account_id/id}}"}]}}},"fb_select_ad_id_v2_1":{"type":"fb_select_ad_id_v2","logging_enabled":false,"x":188,"y":309,"inputs":{"ad_id":{"export_enabled":true}}},"stop_1":{"type":"stop","logging_enabled":false,"x":1441,"y":888},"fb_select_adset_id_v2_1":{"type":"fb_select_adset_id_v2","logging_enabled":false,"x":471,"y":654,"inputs":{"adset_id":{"export_enabled":true}}},"input_any_1":{"type":"input_any","title":"Page - Template Ad Mapping","description":"Allows to input a any type","logging_enabled":false,"max_job_retries":6,"timeout":30,"x":592,"y":142,"inputs":{"any":{"export_enabled":true,"data":{"1798885783658580":"23851995042430007","PAGE_ID":"AD_ID","923056011147134":"23851587475740007"}}}},"input_string_3":{"type":"input_string","logging_enabled":false,"x":1695,"y":884,"group":"group_2","inputs":{"string":{"export_enabled":true,"data":"987654321"}}}},"edges":["fb_select_ad_id_v2_1.ad_id:fb_fetch_ad_v2_1.ad_id","fb_select_ad_account_id_v2_1.ad_account_id:fb_select_ad_id_v2_1.ad_account_id","input_string_2.string:patch_json_v2_1.value","parse_string_to_id_1.result:fb_fetch_ad_creative_v2_1.ad_creative_id","parse_string_to_id_1.parsed:fb_fetch_ad_creative_v2_1.fetch","extract_1.data:parse_string_to_id_1.value","extract_1.extracted:parse_string_to_id_1.parse","fb_fetch_ad_v2_1.ad:extract_1.data","input_string_1.string:replace_string_1.value","replace_string_1.data:replace_string_2.data","input_string_3.string:replace_string_2.value","replace_string_1.replaced:replace_string_2.replace","replace_string_2.data:patch_json_v2_4.value","replace_string_2.replaced:patch_json_v2_4.patch","fb_fetch_ad_creative_v2_1.ad_creative:patch_json_v2_3.value","fb_fetch_ad_creative_v2_1.fetched:patch_json_v2_3.patch","patch_json_v2_3.data:patch_json_v2_4.data","patch_json_v2_3.patched:replace_string_1.replace","patch_json_v2_4.data:patch_json_v2_2.value","fb_fetch_ad_v2_1.ad:patch_json_v2_1.data","patch_json_v2_4.patched:patch_json_v2_2.patch","fb_fetch_ad_v2_1.fetched:patch_json_v2_1.patch","patch_json_v2_1.patched:extract_1.extract","patch_json_v2_1.data:patch_json_v2_2.data","patch_json_v2_2.data:patch_json_v2_5.data","patch_json_v2_5.data:fb_create_ad_v4_1.data","patch_json_v2_5.patched:fb_create_ad_v4_1.create","fb_select_ad_account_id_v2_1.ad_account_id:fb_select_adset_id_v2_1.ad_account_id","fb_select_adset_id_v2_1.adset_id:patch_json_v2_5.value","patch_json_v2_2.patched:patch_json_v2_5.patch","fb_create_ad_v4_1.created:stop_1.stop","start_1.start:fb_fetch_ad_v2_1.fetch"],"groups":{"group_1":{"title":"Prep Ad","description":"","x":490,"y":413,"inputs":["fb_fetch_ad_v2_1.ad_id","fb_fetch_ad_v2_1.fetch"],"outputs":["patch_json_v2_2.data","patch_json_v2_2.patched"]},"group_2":{"title":"Prep Ad Creative","description":"","x":1383,"y":321,"group":"group_1","inputs":["extract_1.data","extract_1.extract"],"outputs":["patch_json_v2_4.data","patch_json_v2_4.patched"]}},"widgets":{"widget_1":{"title":"Template Ad - Ad","description":"Select an Ad","position":1,"input":"fb_select_ad_id_v2_1.ad_id"},"widget_2":{"title":"Page id","description":"A string to input","position":2,"icon":"la la-facebook","input":"input_string_1.string"},"widget_3":{"title":"Ad Account","description":"Select an Account","position":0,"input":"fb_select_ad_account_id_v2_1.ad_account_id"},"widget_4":{"title":"Target Adset","description":"Select an Adset","position":6,"input":"fb_select_adset_id_v2_1.adset_id"},"widget_5":{"title":"Ad Name","description":"A string to input","position":4,"icon":"las la-signature","input":"input_string_2.string"},"widget_6":{"title":"Post Id","description":"A string to input","position":3,"icon":"la la-facebook","input":"input_string_3.string"}},"variables":{},"config":{"capture_inputs_enabled":false,"caching_enabled":false},"tags":[]}

How To

Step 1

Copy the automation into your account.

Step 2

In the Configuration view, choose the ad account, the template ad you want to use, and the destination adset you want to copy the ad into.

Finally, select the post you’d like to boost along with the corresponding Facebook or Instagram page and give a name to your new ad.

Notion image

Step 3

Click Run Automation and wait for the automation to copy the ad into the destination adset.

Did this answer your question?
😞
😐
🤩

Last updated on March 23, 2023