@zernio/node 0.2.1518 → 0.2.1519

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 CHANGED
@@ -55345,7 +55345,10 @@ type CreateAdSetData = {
55345
55345
  * Reddit only. ISO 8601 end of the ad group. Defaults to the campaign end.
55346
55346
  */
55347
55347
  endDate?: string;
55348
- targeting?: TargetingSpec;
55348
+ /**
55349
+ * Reddit: the full targeting object. Google: locations and languages only, on a Demand Gen campaign.
55350
+ */
55351
+ targeting?: (TargetingSpec);
55349
55352
  /**
55350
55353
  * Reddit only. The pixel and the conversion event the ad group optimizes toward.
55351
55354
  */
@@ -62160,12 +62163,14 @@ type CreateStandaloneAdData = {
62160
62163
  /**
62161
62164
  * Meta only. Where the budget lives, which selects the Meta budget model:
62162
62165
  *
62163
- * - `adset` (default): ABO (Ad-set Budget Optimization). The budget is set on the ad set. Back-compatible; omit this field to keep it.
62166
+ * - `adset` (used when omitted): ABO (Ad-set Budget Optimization). The budget is set on the ad set.
62164
62167
  * - `campaign`: CBO (Campaign Budget Optimization / Advantage Campaign Budget). The budget AND `bidStrategy` are set on the CAMPAIGN, and Meta distributes spend across ad sets automatically.
62165
62168
  *
62166
62169
  * The returned ad stores the applied `budgetLevel`, and the budget in `campaignBudget` (CBO) or `adSetBudget` (ABO). Edit CBO budgets with `PUT /v1/ads/campaigns/{campaignId}` and ABO budgets with `PUT /v1/ads/ad-sets/{adSetId}`.
62167
62170
  *
62168
- * Meta requires the budget at exactly one level, never both. Non-Meta platforms ignore this field. Ignored on the attach shape (`adSetId`), which inherits the existing budget.
62171
+ * Meta requires the budget at exactly one level, never both. Ignored on the Meta attach shape (`adSetId`), which inherits the existing budget.
62172
+ *
62173
+ * Google Demand Gen also reads it. A new Demand Gen campaign accepts only `campaign` or no value. With `existingCampaignId` or `adSetId`, omit it: the budget stays on the existing campaign. Other platforms ignore it.
62169
62174
  *
62170
62175
  */
62171
62176
  budgetLevel?: 'adset' | 'campaign';
@@ -62924,7 +62929,7 @@ type CreateStandaloneAdData = {
62924
62929
  */
62925
62930
  audienceId?: string;
62926
62931
  /**
62927
- * Google only. Performance Max requires assetGroup and Demand Gen requires demandGen; both are always created PAUSED. With `adSetId` it defaults to the ad group's own campaign type instead of display.
62932
+ * Google only. Omitted, it is display on a new campaign, and the existing campaign's own type with `existingCampaignId` or `adSetId` (Search, Display or Demand Gen; other types return 422). Performance Max requires assetGroup and Demand Gen requires demandGen; both are always created PAUSED.
62928
62933
  */
62929
62934
  campaignType?: 'display' | 'search' | 'pmax' | 'demand_gen';
62930
62935
  /**
package/dist/index.d.ts CHANGED
@@ -55345,7 +55345,10 @@ type CreateAdSetData = {
55345
55345
  * Reddit only. ISO 8601 end of the ad group. Defaults to the campaign end.
55346
55346
  */
55347
55347
  endDate?: string;
55348
- targeting?: TargetingSpec;
55348
+ /**
55349
+ * Reddit: the full targeting object. Google: locations and languages only, on a Demand Gen campaign.
55350
+ */
55351
+ targeting?: (TargetingSpec);
55349
55352
  /**
55350
55353
  * Reddit only. The pixel and the conversion event the ad group optimizes toward.
55351
55354
  */
@@ -62160,12 +62163,14 @@ type CreateStandaloneAdData = {
62160
62163
  /**
62161
62164
  * Meta only. Where the budget lives, which selects the Meta budget model:
62162
62165
  *
62163
- * - `adset` (default): ABO (Ad-set Budget Optimization). The budget is set on the ad set. Back-compatible; omit this field to keep it.
62166
+ * - `adset` (used when omitted): ABO (Ad-set Budget Optimization). The budget is set on the ad set.
62164
62167
  * - `campaign`: CBO (Campaign Budget Optimization / Advantage Campaign Budget). The budget AND `bidStrategy` are set on the CAMPAIGN, and Meta distributes spend across ad sets automatically.
62165
62168
  *
62166
62169
  * The returned ad stores the applied `budgetLevel`, and the budget in `campaignBudget` (CBO) or `adSetBudget` (ABO). Edit CBO budgets with `PUT /v1/ads/campaigns/{campaignId}` and ABO budgets with `PUT /v1/ads/ad-sets/{adSetId}`.
62167
62170
  *
62168
- * Meta requires the budget at exactly one level, never both. Non-Meta platforms ignore this field. Ignored on the attach shape (`adSetId`), which inherits the existing budget.
62171
+ * Meta requires the budget at exactly one level, never both. Ignored on the Meta attach shape (`adSetId`), which inherits the existing budget.
62172
+ *
62173
+ * Google Demand Gen also reads it. A new Demand Gen campaign accepts only `campaign` or no value. With `existingCampaignId` or `adSetId`, omit it: the budget stays on the existing campaign. Other platforms ignore it.
62169
62174
  *
62170
62175
  */
62171
62176
  budgetLevel?: 'adset' | 'campaign';
@@ -62924,7 +62929,7 @@ type CreateStandaloneAdData = {
62924
62929
  */
62925
62930
  audienceId?: string;
62926
62931
  /**
62927
- * Google only. Performance Max requires assetGroup and Demand Gen requires demandGen; both are always created PAUSED. With `adSetId` it defaults to the ad group's own campaign type instead of display.
62932
+ * Google only. Omitted, it is display on a new campaign, and the existing campaign's own type with `existingCampaignId` or `adSetId` (Search, Display or Demand Gen; other types return 422). Performance Max requires assetGroup and Demand Gen requires demandGen; both are always created PAUSED.
62928
62933
  */
62929
62934
  campaignType?: 'display' | 'search' | 'pmax' | 'demand_gen';
62930
62935
  /**
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: "@zernio/node",
39
- version: "0.2.1518",
39
+ version: "0.2.1519",
40
40
  description: "The official Node.js library for the Zernio API",
41
41
  main: "dist/index.js",
42
42
  module: "dist/index.mjs",
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: "@zernio/node",
8
- version: "0.2.1518",
8
+ version: "0.2.1519",
9
9
  description: "The official Node.js library for the Zernio API",
10
10
  main: "dist/index.js",
11
11
  module: "dist/index.mjs",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zernio/node",
3
- "version": "0.2.1518",
3
+ "version": "0.2.1519",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -13797,6 +13797,15 @@ export const listAdSets = <ThrowOnError extends boolean = false>(options?: Optio
13797
13797
  *
13798
13798
  * The ad group is created WITHOUT an ad (Google Ads compliance row C.190). Ads join it later via `adSetId` on POST /v1/ads/create. Supports Google Ads and Reddit Ads; every other platform returns 501.
13799
13799
  *
13800
+ * **Google Ads** (`platform: google`)
13801
+ *
13802
+ * - The ad group type follows the campaign: a standard ad group under a Search or Display campaign, a Demand Gen ad group under a Demand Gen campaign.
13803
+ * - On a Demand Gen campaign the ad group is always created PAUSED, and `maxCpc` or `status: ACTIVE` returns 400 (Demand Gen bids at the campaign).
13804
+ * - `targeting` sets a Demand Gen ad group's locations and languages (`countries`, `regions`, `cities`, `zips`, `metros`, `languages`), created atomically with the ad group. Without it the ad group serves worldwide.
13805
+ * - `targeting` returns 400 for any other targeting field, and on campaigns that keep geo on the campaign: Search, Display, and Demand Gen campaigns migrated from Discovery. Edit those with PUT /v1/ads/campaigns/{campaignId}/targeting.
13806
+ * - Any other campaign type returns 400 (Performance Max has asset groups instead of ad groups).
13807
+ * - A campaign that is not in the ad account, or was removed, returns 404.
13808
+ *
13800
13809
  * **Reddit Ads** (`platform: reddit`)
13801
13810
  *
13802
13811
  * - `adAccountId` (the Reddit ad account id) is required and must be a selected ad account of the connection (403 otherwise).
@@ -13807,7 +13816,7 @@ export const listAdSets = <ThrowOnError extends boolean = false>(options?: Optio
13807
13816
  * - The ad group must start no earlier than a future campaign start and end no later than the campaign end (400 otherwise).
13808
13817
  * - `targeting` takes the same targeting object as the other ad endpoints (no geo defaults to the US).
13809
13818
  * - A campaign of another ad account returns 404, a Reddit Max campaign 422.
13810
- * - `maxCpc` and `customerId` are Google only (400 on Reddit), and the Reddit fields return 400 on Google.
13819
+ * - `maxCpc` and `customerId` are Google only (400 on Reddit), and the other Reddit fields return 400 on Google.
13811
13820
  *
13812
13821
  * ### After creation
13813
13822
  *
@@ -17025,6 +17034,8 @@ export const listGoogleAssetGroups = <ThrowOnError extends boolean = false>(opti
17025
17034
  *
17026
17035
  * The group, any new assets, their links and an optional listing-group tree are created in one atomic request, so Google checks the asset minimums (for non-retail campaigns) against the whole set. Created PAUSED unless status is ENABLED. validateOnly: true runs Google's validation without creating anything.
17027
17036
  *
17037
+ * A campaign that is not Performance Max returns 400 on campaignId (add an ad group with POST /v1/ads/ad-sets instead). A missing or removed campaign returns 404.
17038
+ *
17028
17039
  */
17029
17040
  export const createGoogleAssetGroup = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<CreateGoogleAssetGroupData, ThrowOnError>) => {
17030
17041
  return (options?.client ?? client).post<CreateGoogleAssetGroupResponse, CreateGoogleAssetGroupError, ThrowOnError>({
@@ -56316,7 +56316,10 @@ export type CreateAdSetData = {
56316
56316
  * Reddit only. ISO 8601 end of the ad group. Defaults to the campaign end.
56317
56317
  */
56318
56318
  endDate?: string;
56319
- targeting?: TargetingSpec;
56319
+ /**
56320
+ * Reddit: the full targeting object. Google: locations and languages only, on a Demand Gen campaign.
56321
+ */
56322
+ targeting?: (TargetingSpec);
56320
56323
  /**
56321
56324
  * Reddit only. The pixel and the conversion event the ad group optimizes toward.
56322
56325
  */
@@ -63518,12 +63521,14 @@ export type CreateStandaloneAdData = {
63518
63521
  /**
63519
63522
  * Meta only. Where the budget lives, which selects the Meta budget model:
63520
63523
  *
63521
- * - `adset` (default): ABO (Ad-set Budget Optimization). The budget is set on the ad set. Back-compatible; omit this field to keep it.
63524
+ * - `adset` (used when omitted): ABO (Ad-set Budget Optimization). The budget is set on the ad set.
63522
63525
  * - `campaign`: CBO (Campaign Budget Optimization / Advantage Campaign Budget). The budget AND `bidStrategy` are set on the CAMPAIGN, and Meta distributes spend across ad sets automatically.
63523
63526
  *
63524
63527
  * The returned ad stores the applied `budgetLevel`, and the budget in `campaignBudget` (CBO) or `adSetBudget` (ABO). Edit CBO budgets with `PUT /v1/ads/campaigns/{campaignId}` and ABO budgets with `PUT /v1/ads/ad-sets/{adSetId}`.
63525
63528
  *
63526
- * Meta requires the budget at exactly one level, never both. Non-Meta platforms ignore this field. Ignored on the attach shape (`adSetId`), which inherits the existing budget.
63529
+ * Meta requires the budget at exactly one level, never both. Ignored on the Meta attach shape (`adSetId`), which inherits the existing budget.
63530
+ *
63531
+ * Google Demand Gen also reads it. A new Demand Gen campaign accepts only `campaign` or no value. With `existingCampaignId` or `adSetId`, omit it: the budget stays on the existing campaign. Other platforms ignore it.
63527
63532
  *
63528
63533
  */
63529
63534
  budgetLevel?: 'adset' | 'campaign';
@@ -64282,7 +64287,7 @@ export type CreateStandaloneAdData = {
64282
64287
  */
64283
64288
  audienceId?: string;
64284
64289
  /**
64285
- * Google only. Performance Max requires assetGroup and Demand Gen requires demandGen; both are always created PAUSED. With `adSetId` it defaults to the ad group's own campaign type instead of display.
64290
+ * Google only. Omitted, it is display on a new campaign, and the existing campaign's own type with `existingCampaignId` or `adSetId` (Search, Display or Demand Gen; other types return 422). Performance Max requires assetGroup and Demand Gen requires demandGen; both are always created PAUSED.
64286
64291
  */
64287
64292
  campaignType?: 'display' | 'search' | 'pmax' | 'demand_gen';
64288
64293
  /**