Budget (or other settings) set too high/false

15 mins to complete

In this tutorial, you will learn how to send Slack notifications if your budget was sent too high accidentally.

Facebook uses JSON to work with data. If you are not familiar with JSON, refer to the tutorial.

Notion image

Video Tutorial

Instructions

  1. Add Fetch Facebook Adsets node.
  1. Add Fetch Facebook Adsets Ids node. If you use lifetime budgets, disable is_completed socket. Choose ACTIVE in effective_status socket. Connect adset_ids sockets.
  1. Add Select Facebook Ad Account Ids node. Choose a Facebook account. Connect ad_account_ids sockets.
  1. Add Filter node. Connect adsets socket to items.
  1. Add Build filter node. Select Facebook Insight schema. Within filters socket choose filtering parameters. Connect filters sockets.
  1. Add Slack Notifier node.
  1. Add Select Slack Conversation Node. Select a channel in which you would want the message to be sent. Connect conversation_id sockets. If you want your message to go into the thread under another message, input thread_ts socket.
  1. Add For Each node. We will send 1 Slack message for one campaign or adset that is overspending. Connect items (Filter) to items
  1. Add Patch JSON node. Connectitem to value
  1. Copy or create blocks JSON into the data socket of the Patch JSON node. Then, refer to Slack block builder to find the correct format.
  1. Select “replace” operation inside of the patch node. Add a path. In our example it’s /0/text/text. The path consists of the index of an object in the list and the path to the element you want to change.
  1. In the value field, write down your message. You can insert the dynamic parameters by using {{inputValue("/path_to_value")}}. In our example it’s {{inputValue("/name")}} and {{inputValue("/id")}}.
  1. Connect data (Patch JSON) to blocks (Slack Notifier).
  1. Add Delay or Delay to Node.
 
Did this answer your question?
😞
😐
🤩

Last updated on August 6, 2021