text: {% if var("marketing_warehouse_ad_sources") %}
  {% if 'facebook_ads' in var("marketing_warehouse_ad_sources") %}
  
  select * from {{ source('facebook_ads','campaign_history') }}
  
  {% else %} {{config(enabled=false)}} {% endif %}
  {% else %} {{config(enabled=false)}} {% endif %}
  