Google Tag Manager

Forum Discussion

AgatheA's avatar
AgatheA
Active Member
2 months ago

Automatic Campaign/Canvas Shutdown

Hello Braze Bonfire Community,
i have the following question: we are currently evaluating the possibilities of an automatic campaign shutdown in the case of a data transfer error from our internal sources to braze. We have an alarm that notifies us if the data transfer to Braze fails. Currently, in this case, the Braze campaigns are manually stopped by the CRM Managers. But we would like to automate this process. All Braze campaigns/canvases should be automatically stopped at the alarm. Unfortunately Braze currently does not offer a suitable solution, but maybe you have an idea? Is there a suitable workaround to stop Campaigns/Canvases automatically in that special case? Thanks for your help!

  • Hi,

    It's not clear what you mean by "data transfer" (or how you have your canvas / campaigns triggered and setup), but assuming you are talking about events for the data, then you could do a check on the date of the last event(s) or you could have the process which send you the alarm send a custom event to braze (the latter would be better if data was in error), in either case use as entry / exit criteria and/or at message steps to validate qualification for messaging - This would not stop the campaigns/canvases, but it would stop the messaging.

    More details would help.

  • sudo04's avatar
    sudo04
    Active Member II

    {% if .__http_status_code__ != 200 %} {% abort_message('Connected Content returned a non-200 status code') %} I used this once, and it was aborting a campaign with broken connected content. You can also add a custom event here to track that, but I'm not 100% sure if this will solve your issue.

  • Automating the shutdown could save time and reduce manual errors. One possible workaround could be using Braze’s "REST API"to stop campaigns programmatically, Once the data transfer failure is detected. You could trigger a script from your alarm system to call the API and halt the active campaigns. Have you explored this option?