@wrangled/cli 0.3.156 → 0.3.157
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.js +3 -1
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -4179,7 +4179,9 @@ function winnersAdLines(ad, currency, words) {
|
|
|
4179
4179
|
const goal = onSales ? words.primary : (words.fallback ?? FIRST_LEAD);
|
|
4180
4180
|
const [costPer, number] = onSales ? [n.costPerSale, n.sales] : [n.costPerSignup, n.signups];
|
|
4181
4181
|
const cost = costPer === null ? `no ${goal.many}` : `${money(costPer, currency)} per ${goal.one}`;
|
|
4182
|
-
const
|
|
4182
|
+
const merged = ad.adIds !== undefined && ad.adIds.length > 1 ? ad.adIds.length : 0;
|
|
4183
|
+
const title = merged > 0 ? `${ad.creativeName ?? ad.name} (${merged} ads)` : (ad.name ?? `Ad ${ad.adId}`);
|
|
4184
|
+
const name = [title, ad.sku && `[${ad.sku}]`, ad.campaignName && `(${ad.campaignName})`].filter(Boolean).join(" ");
|
|
4183
4185
|
const tags = Object.entries(ad.tags).map(([field, value]) => `${field}: ${value}`).join(", ");
|
|
4184
4186
|
const count = number !== null && countOf(number, goal);
|
|
4185
4187
|
const facebook = n.facebookResults == null ? "" : `, Facebook counts ${tenths(n.facebookResults)}`;
|