@zernio/node 0.2.73 → 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 +26 -0
- package/dist/index.d.ts +26 -0
- package/package.json +1 -1
- package/src/generated/types.gen.ts +26 -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
|
*/
|
|
@@ -11604,6 +11618,10 @@ type UpdateAdData = {
|
|
|
11604
11618
|
id: string;
|
|
11605
11619
|
name: string;
|
|
11606
11620
|
}>;
|
|
11621
|
+
/**
|
|
11622
|
+
* Meta only. Omit to preserve the existing setting on update. 0 = disabled, 1 = enabled.
|
|
11623
|
+
*/
|
|
11624
|
+
advantage_audience?: 0 | 1;
|
|
11607
11625
|
};
|
|
11608
11626
|
name?: string;
|
|
11609
11627
|
};
|
|
@@ -11741,6 +11759,10 @@ type BoostPostData = {
|
|
|
11741
11759
|
id: string;
|
|
11742
11760
|
name: string;
|
|
11743
11761
|
}>;
|
|
11762
|
+
/**
|
|
11763
|
+
* Meta only. 0 = disabled (default), 1 = enabled.
|
|
11764
|
+
*/
|
|
11765
|
+
advantage_audience?: 0 | 1;
|
|
11744
11766
|
};
|
|
11745
11767
|
/**
|
|
11746
11768
|
* Max bid cap (Meta only)
|
|
@@ -11841,6 +11863,10 @@ type CreateStandaloneAdData = {
|
|
|
11841
11863
|
* Google Search RSA only. Extra descriptions.
|
|
11842
11864
|
*/
|
|
11843
11865
|
additionalDescriptions?: Array<(string)>;
|
|
11866
|
+
/**
|
|
11867
|
+
* Meta only. Controls the Advantage audience feature (targeting_automation). 0 = disabled (default), 1 = enabled. Meta Marketing API requires this field on all ad set creation requests.
|
|
11868
|
+
*/
|
|
11869
|
+
advantageAudience?: 0 | 1;
|
|
11844
11870
|
};
|
|
11845
11871
|
};
|
|
11846
11872
|
type CreateStandaloneAdResponse = ({
|
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
|
*/
|
|
@@ -11604,6 +11618,10 @@ type UpdateAdData = {
|
|
|
11604
11618
|
id: string;
|
|
11605
11619
|
name: string;
|
|
11606
11620
|
}>;
|
|
11621
|
+
/**
|
|
11622
|
+
* Meta only. Omit to preserve the existing setting on update. 0 = disabled, 1 = enabled.
|
|
11623
|
+
*/
|
|
11624
|
+
advantage_audience?: 0 | 1;
|
|
11607
11625
|
};
|
|
11608
11626
|
name?: string;
|
|
11609
11627
|
};
|
|
@@ -11741,6 +11759,10 @@ type BoostPostData = {
|
|
|
11741
11759
|
id: string;
|
|
11742
11760
|
name: string;
|
|
11743
11761
|
}>;
|
|
11762
|
+
/**
|
|
11763
|
+
* Meta only. 0 = disabled (default), 1 = enabled.
|
|
11764
|
+
*/
|
|
11765
|
+
advantage_audience?: 0 | 1;
|
|
11744
11766
|
};
|
|
11745
11767
|
/**
|
|
11746
11768
|
* Max bid cap (Meta only)
|
|
@@ -11841,6 +11863,10 @@ type CreateStandaloneAdData = {
|
|
|
11841
11863
|
* Google Search RSA only. Extra descriptions.
|
|
11842
11864
|
*/
|
|
11843
11865
|
additionalDescriptions?: Array<(string)>;
|
|
11866
|
+
/**
|
|
11867
|
+
* Meta only. Controls the Advantage audience feature (targeting_automation). 0 = disabled (default), 1 = enabled. Meta Marketing API requires this field on all ad set creation requests.
|
|
11868
|
+
*/
|
|
11869
|
+
advantageAudience?: 0 | 1;
|
|
11844
11870
|
};
|
|
11845
11871
|
};
|
|
11846
11872
|
type CreateStandaloneAdResponse = ({
|
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
|
*/
|
|
@@ -11884,6 +11898,10 @@ export type UpdateAdData = {
|
|
|
11884
11898
|
id: string;
|
|
11885
11899
|
name: string;
|
|
11886
11900
|
}>;
|
|
11901
|
+
/**
|
|
11902
|
+
* Meta only. Omit to preserve the existing setting on update. 0 = disabled, 1 = enabled.
|
|
11903
|
+
*/
|
|
11904
|
+
advantage_audience?: 0 | 1;
|
|
11887
11905
|
};
|
|
11888
11906
|
name?: string;
|
|
11889
11907
|
};
|
|
@@ -12033,6 +12051,10 @@ export type BoostPostData = {
|
|
|
12033
12051
|
id: string;
|
|
12034
12052
|
name: string;
|
|
12035
12053
|
}>;
|
|
12054
|
+
/**
|
|
12055
|
+
* Meta only. 0 = disabled (default), 1 = enabled.
|
|
12056
|
+
*/
|
|
12057
|
+
advantage_audience?: 0 | 1;
|
|
12036
12058
|
};
|
|
12037
12059
|
/**
|
|
12038
12060
|
* Max bid cap (Meta only)
|
|
@@ -12136,6 +12158,10 @@ export type CreateStandaloneAdData = {
|
|
|
12136
12158
|
* Google Search RSA only. Extra descriptions.
|
|
12137
12159
|
*/
|
|
12138
12160
|
additionalDescriptions?: Array<(string)>;
|
|
12161
|
+
/**
|
|
12162
|
+
* Meta only. Controls the Advantage audience feature (targeting_automation). 0 = disabled (default), 1 = enabled. Meta Marketing API requires this field on all ad set creation requests.
|
|
12163
|
+
*/
|
|
12164
|
+
advantageAudience?: 0 | 1;
|
|
12139
12165
|
};
|
|
12140
12166
|
};
|
|
12141
12167
|
|