@getlatedev/node 0.2.1750 → 0.2.1751

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.js CHANGED
@@ -36,7 +36,7 @@ module.exports = __toCommonJS(index_exports);
36
36
  // package.json
37
37
  var package_default = {
38
38
  name: "@getlatedev/node",
39
- version: "0.2.1750",
39
+ version: "0.2.1751",
40
40
  description: "The official Node.js library for the Zernio API",
41
41
  main: "dist/index.js",
42
42
  module: "dist/index.mjs",
@@ -427,6 +427,12 @@ var getCampaignMetrics = (options) => {
427
427
  url: "/v1/metrics/campaigns"
428
428
  });
429
429
  };
430
+ var getAdSetMetrics = (options) => {
431
+ return (options?.client ?? client).get({
432
+ ...options,
433
+ url: "/v1/metrics/ad-sets"
434
+ });
435
+ };
430
436
  var getAdAccountMetrics = (options) => {
431
437
  return (options?.client ?? client).get({
432
438
  ...options,
@@ -8818,6 +8824,7 @@ var Zernio = class _Zernio {
8818
8824
  getInboxMetrics: this._bind(getInboxMetrics),
8819
8825
  getAdMetrics: this._bind(getAdMetrics),
8820
8826
  getCampaignMetrics: this._bind(getCampaignMetrics),
8827
+ getAdSetMetrics: this._bind(getAdSetMetrics),
8821
8828
  getAdAccountMetrics: this._bind(getAdAccountMetrics),
8822
8829
  queryMetaAds: this._bind(queryMetaAds),
8823
8830
  queryGoogleAds: this._bind(queryGoogleAds),
package/dist/index.mjs CHANGED
@@ -5,7 +5,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
5
5
  // package.json
6
6
  var package_default = {
7
7
  name: "@getlatedev/node",
8
- version: "0.2.1750",
8
+ version: "0.2.1751",
9
9
  description: "The official Node.js library for the Zernio API",
10
10
  main: "dist/index.js",
11
11
  module: "dist/index.mjs",
@@ -396,6 +396,12 @@ var getCampaignMetrics = (options) => {
396
396
  url: "/v1/metrics/campaigns"
397
397
  });
398
398
  };
399
+ var getAdSetMetrics = (options) => {
400
+ return (options?.client ?? client).get({
401
+ ...options,
402
+ url: "/v1/metrics/ad-sets"
403
+ });
404
+ };
399
405
  var getAdAccountMetrics = (options) => {
400
406
  return (options?.client ?? client).get({
401
407
  ...options,
@@ -8787,6 +8793,7 @@ var Zernio = class _Zernio {
8787
8793
  getInboxMetrics: this._bind(getInboxMetrics),
8788
8794
  getAdMetrics: this._bind(getAdMetrics),
8789
8795
  getCampaignMetrics: this._bind(getCampaignMetrics),
8796
+ getAdSetMetrics: this._bind(getAdSetMetrics),
8790
8797
  getAdAccountMetrics: this._bind(getAdAccountMetrics),
8791
8798
  queryMetaAds: this._bind(queryMetaAds),
8792
8799
  queryGoogleAds: this._bind(queryGoogleAds),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getlatedev/node",
3
- "version": "0.2.1750",
3
+ "version": "0.2.1751",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
package/src/client.ts CHANGED
@@ -421,6 +421,7 @@ import {
421
421
  getAdRule,
422
422
  getAdRuleHourlyWindows,
423
423
  getAdSetDetails,
424
+ getAdSetMetrics,
424
425
  getAdSetTargeting,
425
426
  getAdTrackingTags,
426
427
  getAdTree,
@@ -1569,6 +1570,7 @@ export class Zernio {
1569
1570
  getInboxMetrics: this._bind(getInboxMetrics),
1570
1571
  getAdMetrics: this._bind(getAdMetrics),
1571
1572
  getCampaignMetrics: this._bind(getCampaignMetrics),
1573
+ getAdSetMetrics: this._bind(getAdSetMetrics),
1572
1574
  getAdAccountMetrics: this._bind(getAdAccountMetrics),
1573
1575
  queryMetaAds: this._bind(queryMetaAds),
1574
1576
  queryGoogleAds: this._bind(queryGoogleAds),