@zernio/node 0.2.74 → 0.2.75
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/index.d.mts +14 -0
- package/dist/index.d.ts +14 -0
- package/package.json +1 -1
- package/src/generated/types.gen.ts +14 -0
package/dist/index.d.mts
CHANGED
|
@@ -857,6 +857,20 @@ type AdMetrics = {
|
|
|
857
857
|
*/
|
|
858
858
|
cpm?: number;
|
|
859
859
|
engagement?: number;
|
|
860
|
+
/**
|
|
861
|
+
* Count of conversion events matching the campaign's promoted_object.custom_event_type (PURCHASE, LEAD, etc.) over the requested date range. 0 for non-conversion campaigns or when no events have fired. Meta-only at time of writing; other platforms return 0.
|
|
862
|
+
*/
|
|
863
|
+
conversions?: number;
|
|
864
|
+
/**
|
|
865
|
+
* Derived spend / conversions in the same currency as spend. 0 when conversions is 0.
|
|
866
|
+
*/
|
|
867
|
+
costPerConversion?: number;
|
|
868
|
+
/**
|
|
869
|
+
* Raw per-action-type counts from Meta's Insights actions[] array, summed over the date range. Keys are Meta action_type strings (e.g. link_click, offsite_conversion.fb_pixel_purchase, onsite_conversion.lead_grouped). Use this to extract any conversion event (purchases, leads, add_to_cart, etc.) without relying on the derived conversions field. Empty object when no actions are reported.
|
|
870
|
+
*/
|
|
871
|
+
actions?: {
|
|
872
|
+
[key: string]: (number);
|
|
873
|
+
};
|
|
860
874
|
/**
|
|
861
875
|
* Present on individual ads only, not on campaign aggregations
|
|
862
876
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -857,6 +857,20 @@ type AdMetrics = {
|
|
|
857
857
|
*/
|
|
858
858
|
cpm?: number;
|
|
859
859
|
engagement?: number;
|
|
860
|
+
/**
|
|
861
|
+
* Count of conversion events matching the campaign's promoted_object.custom_event_type (PURCHASE, LEAD, etc.) over the requested date range. 0 for non-conversion campaigns or when no events have fired. Meta-only at time of writing; other platforms return 0.
|
|
862
|
+
*/
|
|
863
|
+
conversions?: number;
|
|
864
|
+
/**
|
|
865
|
+
* Derived spend / conversions in the same currency as spend. 0 when conversions is 0.
|
|
866
|
+
*/
|
|
867
|
+
costPerConversion?: number;
|
|
868
|
+
/**
|
|
869
|
+
* Raw per-action-type counts from Meta's Insights actions[] array, summed over the date range. Keys are Meta action_type strings (e.g. link_click, offsite_conversion.fb_pixel_purchase, onsite_conversion.lead_grouped). Use this to extract any conversion event (purchases, leads, add_to_cart, etc.) without relying on the derived conversions field. Empty object when no actions are reported.
|
|
870
|
+
*/
|
|
871
|
+
actions?: {
|
|
872
|
+
[key: string]: (number);
|
|
873
|
+
};
|
|
860
874
|
/**
|
|
861
875
|
* Present on individual ads only, not on campaign aggregations
|
|
862
876
|
*/
|
package/package.json
CHANGED
|
@@ -275,6 +275,20 @@ export type AdMetrics = {
|
|
|
275
275
|
*/
|
|
276
276
|
cpm?: number;
|
|
277
277
|
engagement?: number;
|
|
278
|
+
/**
|
|
279
|
+
* Count of conversion events matching the campaign's promoted_object.custom_event_type (PURCHASE, LEAD, etc.) over the requested date range. 0 for non-conversion campaigns or when no events have fired. Meta-only at time of writing; other platforms return 0.
|
|
280
|
+
*/
|
|
281
|
+
conversions?: number;
|
|
282
|
+
/**
|
|
283
|
+
* Derived spend / conversions in the same currency as spend. 0 when conversions is 0.
|
|
284
|
+
*/
|
|
285
|
+
costPerConversion?: number;
|
|
286
|
+
/**
|
|
287
|
+
* Raw per-action-type counts from Meta's Insights actions[] array, summed over the date range. Keys are Meta action_type strings (e.g. link_click, offsite_conversion.fb_pixel_purchase, onsite_conversion.lead_grouped). Use this to extract any conversion event (purchases, leads, add_to_cart, etc.) without relying on the derived conversions field. Empty object when no actions are reported.
|
|
288
|
+
*/
|
|
289
|
+
actions?: {
|
|
290
|
+
[key: string]: (number);
|
|
291
|
+
};
|
|
278
292
|
/**
|
|
279
293
|
* Present on individual ads only, not on campaign aggregations
|
|
280
294
|
*/
|