@@ -367,19 +405,23 @@ function CreativeCard({ ad }: { ad: AdCreativeCard }) {
alt={ad.adName}
className="w-full h-full object-cover max-h-[420px]"
loading="lazy"
- referrerPolicy="no-referrer"
/>
- ) : ad.platform === 'google' ? (
-
+ ) : ad.platform === 'google' && headlines.length ? (
+
Google Ads · {ad.mediaType || 'rsa'}
-
- {(ad.headline || ad.adName).split('\n')[0]}
-
-
- {(ad.primaryText || ad.campaignName || '').split('\n')[0]}
-
+ {headlines.slice(0, 3).map((h) => (
+
+ {h}
+
+ ))}
+ {bodies[0] ? (
+
{bodies[0]}
+ ) : null}
) : (
@@ -424,17 +466,15 @@ function CreativeCard({ ad }: { ad: AdCreativeCard }) {
) : null}
- {(ad.headline || ad.primaryText) && (
+ {(headlines.length > 0 || bodies.length > 0) && (
- {ad.headline ? (
+ {headlines[0] ? (
- {ad.headline.split('\n')[0]}
+ {headlines[0]}
) : null}
- {ad.primaryText ? (
-
- {ad.primaryText.split('\n')[0]}
-
+ {bodies[0] ? (
+
{bodies[0]}
) : null}
)}
@@ -731,6 +771,19 @@ export default function AdTrackerClient({