Pular para o conteúdo

City Ads

The city ads system displays advertisements within real estate listings on city pages, mixed organically with search results.

File Naming

Create a JSON file named after the city slug in site/ads/:

  • garopaba.json — Ads for Garopaba city page
  • rio-de-janeiro.json — Ads for Rio de Janeiro city page
  • sao-paulo.json — Ads for São Paulo city page

Ad Format

Each JSON file contains an array of ad objects:

[
{
"title": "Ad Title",
"link": "https://example.com",
"snippet": "Ad description text",
"featured": true,
"adType": "premium",
"imageUrl": "/static/images/ad-image.webp",
"phone": "5548999999999",
"buttonText": "Ver Mais",
"position": 2,
"background": "#f0f9ff",
"borderColor": "#3b82f6"
}
]

Field Descriptions

FieldTypeDescription
titlestringRequired. The ad headline
linkstringRequired. URL to redirect when clicked
snippetstringRequired. Description text
featuredbooleanShow “DESTAQUE” badge with orange styling
adTypestringVisual style: premium, featured, or standard
imageUrlstringOptional image URL
phonestringOptional WhatsApp number (with country code)
buttonTextstringCustom CTA button text
positionnumberFixed position in list (1-based). 0 = random
backgroundstringCustom background color (hex)
borderColorstringCustom border color (hex)

Ad Types

Premium

  • Purple gradient border
  • Enhanced shadow
  • Hover lift effect
  • Orange border
  • Good visibility

Standard

  • Subtle gray styling
  • Blends naturally

Tips

  1. Limit ad count: 2-3 ads per city page
  2. Use images: Ads with images get more clicks
  3. WhatsApp button: Enables direct contact
  4. Position strategically: Position 1 gets most visibility