Skip to content

Instantly share code, notes, and snippets.

@wisdom-17
wisdom-17 / alerts.json
Last active August 17, 2023 15:18
Ad object with ad set id
"video_length_violating_ads": [
{ "ad": "test ad", "id": 123, "ad_set_id": 223, "url": "www.example.com" },
{ "ad": "test ad 2", "id": 345, "ad_set_id": 464, "url": "www.example2.com" }
],
<template>
<OmniBsModal
id="alertsModal"
modalSizeCSSClass="modal-xl"
ref="alertsModal"
:title="capitaliseSentence(alertName)"
@modal-hidden="hideAlertsModal"
>
<template #body>
<div class="container-fluid header-content my-0 mx-0 border-0 shadow-none">
{
"governance_alert_count": 0,
"safeguarding_alert_count": 0,
"best_practice_alert_count": 0,
"campaign_duration": 0,
"Campaign_start_date": "%d-%m-%Y",
"Campaign_end_date": "%d-%m-%Y",
"lifetime_budget": null,
"daily_budget": null,
"not_delivering_ad_sets": [{ "adset_name": "test adset", "id": 123, "status": "PAUSED" },
{
"using_daily_budget":false,
"daily_budget_alert_auto_pause":false,
"max_campaign_daily_budget":4,
"max_campaign_daily_budget_alert_disable":true,
"max_campaign_daily_budget_auto_pause":false,
"max_campaign_lifetime_budget":3,
"max_campaign_lifetime_budget_auto_pause":false,
"proportional_spend_threshold_":1.15,
"proportional_spend_threshold_auto_pause":true,
{
"campaign":
[{"user_defined_name": "test_user_defined_name", "report_value": "campaign_name"}],
"ad_set":
[{"user_defined_name": "user_defined_name", "report_value": "ad_set_name"}],
"ad":
[{"user_defined_name": "user_defined_ad_preview", "report_value": "ad_preview"}]
}
[2023-06-15 08:49:20,854] ERROR - Exception in ASGI application
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/uvicorn/protocols/http/h11_impl.py", line 373, in run_asgi
result = await app(self.scope, self.receive, self.send)
File "/usr/local/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 75, in __call__
return await self.app(scope, receive, send)
File "/usr/local/lib/python3.10/site-packages/uvicorn/middleware/message_logger.py", line 82, in __call__
raise exc from None
File "/usr/local/lib/python3.10/site-packages/uvicorn/middleware/message_logger.py", line 78, in __call__
await self.app(scope, inner_receive, inner_send)