[Slack Alert] Pinterest Ads URL Check
Receive a Slack alert if any of your active Pinterest Ads lead to unresponsive landing pages.
With this automation, get a Slack message for any ads with non-functioning URLs.
JSON Recipe
Import the automation recipe(s) into your own account. Don’t know how? Learn here.
{"name":"[Slack Alert] Pinterest Ads URL Check","description":"","nodes":{"pinterest_fetch_ads_1":{"type":"pinterest_fetch_ads","logging_enabled":false,"x":393,"y":260,"group":"group_1","inputs":{"operational_status":{"export_enabled":true,"data":"RUNNING"}}},"if_v2_1":{"type":"if_v2","logging_enabled":false,"x":1271,"y":297,"inputs":{"b":{"export_enabled":true,"data":[]},"condition":{"export_enabled":true,"data":"not_equal"}}},"filter_v2_1":{"type":"filter_v2","logging_enabled":false,"x":1039,"y":298,"inputs":{"filters":{"export_enabled":true,"data":[{"value":400,"pointer":"/code","operator":"\u003e="}]}},"outputs":{"filtered":{"title":"filtered","description":"Triggered when filtered"}}},"pinterest_select_ad_account_ids_1":{"type":"pinterest_select_ad_account_ids","logging_enabled":false,"x":324,"y":127,"inputs":{"ad_account_ids":{"title":"ad_account_ids","description":"Select one or more Pinterest Ad Accounts"}}},"for_each_v2_1":{"type":"for_each_v2","logging_enabled":false,"x":330,"y":301},"start_1":{"type":"start","logging_enabled":false,"x":18,"y":381},"stop_1":{"type":"stop","logging_enabled":false,"x":16,"y":436,"inputs":{"stop":{"export_enabled":true}}},"health_check_urls_v2_1":{"type":"health_check_urls_v2","title":"Health Check Urls","description":"Checks urls for their health","logging_enabled":false,"max_job_retries":6,"timeout":300,"x":805,"y":299,"inputs":{"follow_redirects":{"export_enabled":true,"data":true},"max_request_duration":{"export_enabled":true,"data":15000}}},"patch_json_v2_1":{"type":"patch_json_v2","logging_enabled":false,"x":1124,"y":449,"group":"group_2","inputs":{"patches":{"export_enabled":true,"data":[{"op":"replace","path":"/0/text/text","value":"Hey there, the URL of this ad {{input.value/name}} (Ad ID: {{input.value/url/id/id}}) has not been responsive. Could you please check this URL {{input.value/url/url}}?"},{"op":"replace","path":"/1/elements/0/url","value":"https://ads.pinterest.com/advertiser/{{input.value/url/id/context/ad_account_id}}/reporting/ads/?name={{input.value/url/id/context/ad_name}}"}]},"data":{"export_enabled":true,"data":[{"type":"section","text":{"type":"mrkdwn","text":""}},{"type":"actions","elements":[{"type":"button","text":{"type":"plain_text","text":"Open in Ads Manager"},"url":""}]}]}}},"slack_notifier_v2_1":{"type":"slack_notifier_v2","logging_enabled":false,"x":1438,"y":454,"group":"group_2"},"slack_select_conversation_id_1":{"type":"slack_select_conversation_id","logging_enabled":false,"x":89,"y":325,"group":"group_2","inputs":{"conversation_id":{"title":"conversation_id","description":"Select a Slack Channel or Conversation"}}},"slack_notifier_v2_2":{"type":"slack_notifier_v2","logging_enabled":false,"x":432,"y":500,"group":"group_2","inputs":{"blocks":{"export_enabled":true,"data":[{"type":"section","text":{"type":"mrkdwn","text":"⚠️These ad(s) have a non-functioning URL."}}]},"thread_ts":{"export_enabled":true}}},"for_each_v2_2":{"type":"for_each_v2","logging_enabled":false,"x":774,"y":406,"group":"group_2","outputs":{"done":{"title":"done","description":"Triggers when all items are iterated"}}},"delay_1":{"type":"delay","logging_enabled":false,"x":22,"y":126,"inputs":{"duration":{"export_enabled":true,"data":10800}}},"replace_list_string_1":{"type":"replace_list_string","logging_enabled":false,"x":863,"y":259,"group":"group_1","inputs":{"value":{"export_enabled":true,"data":""},"regex":{"export_enabled":true,"data":"\\?utm.*"},"pointer":{"export_enabled":true,"data":"/url"},"schema":{"export_enabled":true,"data":"url"}},"outputs":{"replaced":{"title":"replaced","description":"Triggered when replacing is done"}}},"input_any_1":{"type":"input_any","logging_enabled":false,"x":639,"y":49,"group":"group_1","inputs":{"any":{"export_enabled":true,"data":[{"op":"add","path":"/root","value":{}},{"op":"move","path":"/root/url","from":"/destination_url"},{"op":"move","path":"/id_helper","from":"/id"},{"op":"add","path":"/root/id","value":{"provider":"pinterest","type":"ad"}},{"op":"move","path":"/root/id/id","from":"/id_helper"},{"op":"add","path":"/root/id/context/adset_id","value":{"provider":"pinterest","type":"ad_group"}},{"op":"move","path":"/root/id/context/adset_id/id","from":"/ad_group_id"},{"op":"move","path":"/root/id/context/ad_account_id","from":"/ad_account_id"},{"op":"move","path":"/root/id/context/ad_name","from":"/name"},{"op":"move","path":"","from":"/root"}]}}},"patch_json_list_v2_1":{"type":"patch_json_list_v2","logging_enabled":false,"x":628,"y":259,"group":"group_1","inputs":{"value":{"export_enabled":true}}},"filter_v2_2":{"type":"filter_v2","logging_enabled":false,"x":1099,"y":260,"group":"group_1","inputs":{"filters":{"export_enabled":true,"data":[{"operator":"!=","pointer":"/id/context/ad_name","value":null}]}}}},"edges":["patch_json_list_v2_1.data_list:replace_list_string_1.data_list","patch_json_list_v2_1.patched:replace_list_string_1.replace","for_each_v2_2.do:patch_json_v2_1.patch","slack_notifier_v2_2.thread_ts:slack_notifier_v2_1.thread_ts","slack_select_conversation_id_1.conversation_id:slack_notifier_v2_1.conversation_id","slack_select_conversation_id_1.conversation_id:slack_notifier_v2_2.conversation_id","slack_notifier_v2_2.sent:for_each_v2_2.start","patch_json_v2_1.data:slack_notifier_v2_1.blocks","for_each_v2_2.item:patch_json_v2_1.value","patch_json_v2_1.patched:slack_notifier_v2_1.send","slack_notifier_v2_1.sent:for_each_v2_2.next","if_v2_1.true:slack_notifier_v2_2.send","health_check_urls_v2_1.results:filter_v2_1.items","health_check_urls_v2_1.checked:filter_v2_1.filter","filter_v2_1.items:if_v2_1.a","filter_v2_1.filtered:if_v2_1.evaluate","filter_v2_1.items:for_each_v2_2.items","pinterest_select_ad_account_ids_1.ad_account_ids:for_each_v2_1.items","start_1.start:for_each_v2_1.start","for_each_v2_1.done:delay_1.start","if_v2_1.false:for_each_v2_1.next","for_each_v2_2.done:for_each_v2_1.next","delay_1.delayed:for_each_v2_1.start","input_any_1.any:patch_json_list_v2_1.patches","filter_v2_2.filtered:health_check_urls_v2_1.check","replace_list_string_1.replaced:filter_v2_2.filter","replace_list_string_1.data_list:filter_v2_2.items","filter_v2_2.items:health_check_urls_v2_1.urls","for_each_v2_1.do:pinterest_fetch_ads_1.fetch","for_each_v2_1.item:pinterest_fetch_ads_1.ad_account_id"],"groups":{"group_1":{"title":"Get Active Ad URLs","description":"","x":569,"y":305,"inputs":["pinterest_fetch_ads_1.ad_account_id","pinterest_fetch_ads_1.fetch"],"outputs":["filter_v2_2.filtered","filter_v2_2.items"]},"group_2":{"title":"Send Slack Message","description":"","x":1505,"y":301,"inputs":["for_each_v2_2.items","slack_notifier_v2_2.send"],"outputs":["for_each_v2_2.done"]}},"widgets":{"widget_1":{"title":"Slack Channel","description":"Select a Slack Channel or Conversation","position":2,"input":"slack_select_conversation_id_1.conversation_id"},"widget_2":{"title":"Ad Accounts","description":"Select one or more Pinterest Ad Accounts","position":1,"input":"pinterest_select_ad_account_ids_1.ad_account_ids"},"widget_3":{"title":"Run Every","description":"The duration to delay the trigger (in Seconds)","position":3,"icon":"las la-clock","input":"delay_1.duration"}},"variables":{},"config":{"capture_inputs_enabled":false,"caching_enabled":false},"tags":[]}
How To
After creating the automation, make a few selections and then hit “Run Automation”. The check will then take place on the specified weekday(s) at the specified time.
Per default, all active ads in an account will be checked. If you want to be more specific in the campaign, ad set, or ad selection you can add filters to the automation following this Builder tutorial.
Step 1
Select an Ad Account
Step 2
Select a Slack Channel, in which you would like to receive the notifications
Step 3
Define how often you want the automation to run
In order to check whether the URLs are healthy, we make a server-side request to each. Note that if your website uses Cloudflare, we may report URLs as unhealthy despite being accessible in your browser. Reach out to your CSM or contact us at support@kitchn.io if that is the case for you.
Did this answer your question?
😞
😐
🤩
Last updated on January 26, 2023