Fix missing ads_header variable in custom layouts