@getlatedev/node 0.2.1662 → 0.2.1664

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
@@ -15105,6 +15105,10 @@ type GooglePmaxAssetGroup = {
15105
15105
  */
15106
15106
  fieldType: string;
15107
15107
  status: string;
15108
+ /**
15109
+ * Who added the asset: ADVERTISER, or AUTOMATICALLY_CREATED when Google generated it. Empty when Google does not say.
15110
+ */
15111
+ source?: string;
15108
15112
  text?: string;
15109
15113
  imageUrl?: string;
15110
15114
  youtubeVideoId?: string;
@@ -60246,13 +60250,13 @@ type BulkUpdateAdCampaignStatusResponse = ({
60246
60250
  type BulkUpdateAdCampaignStatusError = (unknown | ErrorResponse);
60247
60251
  type DuplicateAdCampaignData = {
60248
60252
  body: {
60249
- platform: 'facebook' | 'instagram' | 'tiktok' | 'linkedin';
60253
+ platform: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'google';
60250
60254
  /**
60251
60255
  * Copy child ad sets + ads + creatives + targeting
60252
60256
  */
60253
60257
  deepCopy?: boolean;
60254
60258
  /**
60255
- * ACTIVE = launch the clone immediately (spends the moment LinkedIn approves it). PAUSED = clone stays DRAFT, safe default. INHERITED_FROM_SOURCE = mirror each entity's source status per-entity. Duplicating an ACTIVE campaign this way starts a second front of spend.
60259
+ * ACTIVE = launch the clone immediately (spends the moment LinkedIn approves it). PAUSED = clone stays DRAFT, safe default. Google only accepts PAUSED. INHERITED_FROM_SOURCE = mirror each entity's source status per-entity. Duplicating an ACTIVE campaign this way starts a second front of spend.
60256
60260
  *
60257
60261
  */
60258
60262
  statusOption?: 'ACTIVE' | 'PAUSED' | 'INHERITED_FROM_SOURCE';
@@ -60261,6 +60265,7 @@ type DuplicateAdCampaignData = {
60261
60265
  *
60262
60266
  * - Meta and TikTok: a value without an offset (`YYYY-MM-DD`, `YYYY-MM-DD HH:MM:SS` or `YYYY-MM-DDTHH:MM:SS`) is read in the ad account timezone.
60263
60267
  * - LinkedIn: ad accounts carry no timezone, so it is read as UTC.
60268
+ * - Google: the date is used as a whole day in the customer timezone.
60264
60269
  */
60265
60270
  startTime?: string;
60266
60271
  /**
@@ -60272,7 +60277,7 @@ type DuplicateAdCampaignData = {
60272
60277
  *
60273
60278
  * - `DEEP_RENAME`: renames the copied campaign and every copied child (ad sets, ads) with `renamePrefix` / `renameSuffix`.
60274
60279
  * - `ONLY_TOP_LEVEL_RENAME`: renames only the copied campaign; children keep their source names.
60275
- * - `NO_RENAME`: keeps every source name.
60280
+ * - `NO_RENAME`: keeps every source name. Google returns 400, since its campaign names are unique per account.
60276
60281
  *
60277
60282
  * With no rename option at all, Meta appends its own ` - Copy` suffix; LinkedIn defaults to `DEEP_RENAME` (its campaign group and campaigns are renamed). Ignored on TikTok, where `renamePrefix` / `renameSuffix` apply to every copied object.
60278
60283
  *
@@ -60283,7 +60288,7 @@ type DuplicateAdCampaignData = {
60283
60288
  */
60284
60289
  renamePrefix?: string;
60285
60290
  /**
60286
- * Text appended to each renamed object's name. On LinkedIn an omitted suffix defaults to ` (Copy)`.
60291
+ * Text appended to each renamed object's name. On LinkedIn and Google an omitted suffix defaults to ` (Copy)` when no prefix is sent.
60287
60292
  */
60288
60293
  renameSuffix?: string;
60289
60294
  /**
@@ -60317,13 +60322,13 @@ type DuplicateAdCampaignResponse = ({
60317
60322
  */
60318
60323
  copiedCampaignId?: string;
60319
60324
  /**
60320
- * Meta only: source ad set ID to copied ad set ID. Empty when `deepCopy` is false.
60325
+ * Meta: source ad set ID to copied ad set ID. Empty when `deepCopy` is false. Google: source asset group ID to copied asset group ID.
60321
60326
  */
60322
60327
  adSetIdMap?: {
60323
60328
  [key: string]: (string);
60324
60329
  };
60325
60330
  /**
60326
- * Meta only: source ad ID to copied ad ID, across every copied ad set. Empty when `deepCopy` is false.
60331
+ * Meta: source ad ID to copied ad ID, across every copied ad set. Empty when `deepCopy` is false. Google: the same map as `adSetIdMap`, since a Performance Max asset group is its ad.
60327
60332
  */
60328
60333
  adIdMap?: {
60329
60334
  [key: string]: (string);
@@ -68467,6 +68472,23 @@ type CreateStandaloneAdData = {
68467
68472
  */
68468
68473
  locationTargetingType?: (GoogleLocationTargetingType);
68469
68474
  assetGroup?: GooglePmaxAssetGroupInput;
68475
+ /**
68476
+ * Google Performance Max only; any other campaign type returns 400. Links the new campaign to a Merchant Center account. Google rejects the create, and nothing is created, when the ad account is not linked to that Merchant Center.
68477
+ */
68478
+ merchantCenter?: {
68479
+ /**
68480
+ * Numeric Merchant Center id.
68481
+ */
68482
+ merchantId: string;
68483
+ /**
68484
+ * Feed label to use. Omitted, every feed of the Merchant Center is used.
68485
+ */
68486
+ feedLabel?: string;
68487
+ /**
68488
+ * Set to `vehicles` for vehicle listings. Omitted, the campaign is a retail Performance Max campaign. Vehicle ads require Google to allowlist the ad account; otherwise Google rejects the create.
68489
+ */
68490
+ listingType?: 'vehicles';
68491
+ };
68470
68492
  demandGen?: GoogleDemandGenInput;
68471
68493
  /**
68472
68494
  * Google Search only. Keywords on the new ad group; entries are strings (BROAD) or { text, matchType }. Editable later via PUT /v1/ads/{adId} targeting.keywords.
package/dist/index.d.ts CHANGED
@@ -15105,6 +15105,10 @@ type GooglePmaxAssetGroup = {
15105
15105
  */
15106
15106
  fieldType: string;
15107
15107
  status: string;
15108
+ /**
15109
+ * Who added the asset: ADVERTISER, or AUTOMATICALLY_CREATED when Google generated it. Empty when Google does not say.
15110
+ */
15111
+ source?: string;
15108
15112
  text?: string;
15109
15113
  imageUrl?: string;
15110
15114
  youtubeVideoId?: string;
@@ -60246,13 +60250,13 @@ type BulkUpdateAdCampaignStatusResponse = ({
60246
60250
  type BulkUpdateAdCampaignStatusError = (unknown | ErrorResponse);
60247
60251
  type DuplicateAdCampaignData = {
60248
60252
  body: {
60249
- platform: 'facebook' | 'instagram' | 'tiktok' | 'linkedin';
60253
+ platform: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'google';
60250
60254
  /**
60251
60255
  * Copy child ad sets + ads + creatives + targeting
60252
60256
  */
60253
60257
  deepCopy?: boolean;
60254
60258
  /**
60255
- * ACTIVE = launch the clone immediately (spends the moment LinkedIn approves it). PAUSED = clone stays DRAFT, safe default. INHERITED_FROM_SOURCE = mirror each entity's source status per-entity. Duplicating an ACTIVE campaign this way starts a second front of spend.
60259
+ * ACTIVE = launch the clone immediately (spends the moment LinkedIn approves it). PAUSED = clone stays DRAFT, safe default. Google only accepts PAUSED. INHERITED_FROM_SOURCE = mirror each entity's source status per-entity. Duplicating an ACTIVE campaign this way starts a second front of spend.
60256
60260
  *
60257
60261
  */
60258
60262
  statusOption?: 'ACTIVE' | 'PAUSED' | 'INHERITED_FROM_SOURCE';
@@ -60261,6 +60265,7 @@ type DuplicateAdCampaignData = {
60261
60265
  *
60262
60266
  * - Meta and TikTok: a value without an offset (`YYYY-MM-DD`, `YYYY-MM-DD HH:MM:SS` or `YYYY-MM-DDTHH:MM:SS`) is read in the ad account timezone.
60263
60267
  * - LinkedIn: ad accounts carry no timezone, so it is read as UTC.
60268
+ * - Google: the date is used as a whole day in the customer timezone.
60264
60269
  */
60265
60270
  startTime?: string;
60266
60271
  /**
@@ -60272,7 +60277,7 @@ type DuplicateAdCampaignData = {
60272
60277
  *
60273
60278
  * - `DEEP_RENAME`: renames the copied campaign and every copied child (ad sets, ads) with `renamePrefix` / `renameSuffix`.
60274
60279
  * - `ONLY_TOP_LEVEL_RENAME`: renames only the copied campaign; children keep their source names.
60275
- * - `NO_RENAME`: keeps every source name.
60280
+ * - `NO_RENAME`: keeps every source name. Google returns 400, since its campaign names are unique per account.
60276
60281
  *
60277
60282
  * With no rename option at all, Meta appends its own ` - Copy` suffix; LinkedIn defaults to `DEEP_RENAME` (its campaign group and campaigns are renamed). Ignored on TikTok, where `renamePrefix` / `renameSuffix` apply to every copied object.
60278
60283
  *
@@ -60283,7 +60288,7 @@ type DuplicateAdCampaignData = {
60283
60288
  */
60284
60289
  renamePrefix?: string;
60285
60290
  /**
60286
- * Text appended to each renamed object's name. On LinkedIn an omitted suffix defaults to ` (Copy)`.
60291
+ * Text appended to each renamed object's name. On LinkedIn and Google an omitted suffix defaults to ` (Copy)` when no prefix is sent.
60287
60292
  */
60288
60293
  renameSuffix?: string;
60289
60294
  /**
@@ -60317,13 +60322,13 @@ type DuplicateAdCampaignResponse = ({
60317
60322
  */
60318
60323
  copiedCampaignId?: string;
60319
60324
  /**
60320
- * Meta only: source ad set ID to copied ad set ID. Empty when `deepCopy` is false.
60325
+ * Meta: source ad set ID to copied ad set ID. Empty when `deepCopy` is false. Google: source asset group ID to copied asset group ID.
60321
60326
  */
60322
60327
  adSetIdMap?: {
60323
60328
  [key: string]: (string);
60324
60329
  };
60325
60330
  /**
60326
- * Meta only: source ad ID to copied ad ID, across every copied ad set. Empty when `deepCopy` is false.
60331
+ * Meta: source ad ID to copied ad ID, across every copied ad set. Empty when `deepCopy` is false. Google: the same map as `adSetIdMap`, since a Performance Max asset group is its ad.
60327
60332
  */
60328
60333
  adIdMap?: {
60329
60334
  [key: string]: (string);
@@ -68467,6 +68472,23 @@ type CreateStandaloneAdData = {
68467
68472
  */
68468
68473
  locationTargetingType?: (GoogleLocationTargetingType);
68469
68474
  assetGroup?: GooglePmaxAssetGroupInput;
68475
+ /**
68476
+ * Google Performance Max only; any other campaign type returns 400. Links the new campaign to a Merchant Center account. Google rejects the create, and nothing is created, when the ad account is not linked to that Merchant Center.
68477
+ */
68478
+ merchantCenter?: {
68479
+ /**
68480
+ * Numeric Merchant Center id.
68481
+ */
68482
+ merchantId: string;
68483
+ /**
68484
+ * Feed label to use. Omitted, every feed of the Merchant Center is used.
68485
+ */
68486
+ feedLabel?: string;
68487
+ /**
68488
+ * Set to `vehicles` for vehicle listings. Omitted, the campaign is a retail Performance Max campaign. Vehicle ads require Google to allowlist the ad account; otherwise Google rejects the create.
68489
+ */
68490
+ listingType?: 'vehicles';
68491
+ };
68470
68492
  demandGen?: GoogleDemandGenInput;
68471
68493
  /**
68472
68494
  * Google Search only. Keywords on the new ad group; entries are strings (BROAD) or { text, matchType }. Editable later via PUT /v1/ads/{adId} targeting.keywords.
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.1662",
39
+ version: "0.2.1664",
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: "@getlatedev/node",
8
- version: "0.2.1662",
8
+ version: "0.2.1664",
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": "@getlatedev/node",
3
- "version": "0.2.1662",
3
+ "version": "0.2.1664",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -14589,6 +14589,7 @@ export const bulkUpdateAdCampaignStatus = <ThrowOnError extends boolean = false>
14589
14589
  * - **Meta** copies one level at a time with Meta's `/copies` endpoint. See below.
14590
14590
  * - **TikTok** has no native copy primitive. See below.
14591
14591
  * - **LinkedIn** has no native copy primitive. See below.
14592
+ * - **Google** copies Performance Max campaigns in one atomic request. See below.
14592
14593
  * - Other platforms return 501 Not Implemented.
14593
14594
  *
14594
14595
  * ### Meta
@@ -14615,6 +14616,21 @@ export const bulkUpdateAdCampaignStatus = <ThrowOnError extends boolean = false>
14615
14616
  *
14616
14617
  * Duplicating an ACTIVE campaign with `INHERITED_FROM_SOURCE` starts a second front of spend the moment the clone activates. The safe default is `PAUSED`.
14617
14618
  *
14619
+ * ### Google
14620
+ *
14621
+ * Performance Max campaigns only; any other Google campaign type returns 501 naming its channel. Zernio reads the campaign and recreates it in one atomic Google request, so a copy either exists whole or not at all.
14622
+ *
14623
+ * - The copy is always created paused. `statusOption` other than `PAUSED` and `deepCopy: false` return 400.
14624
+ * - The name is `renamePrefix` + the source name + `renameSuffix`. With neither sent, the suffix defaults to ` (Copy)`. `NO_RENAME` returns 400 because Google campaign names are unique per account. Asset groups are renamed only under `DEEP_RENAME`.
14625
+ * - `startTime` and `endTime` are whole days in the customer's timezone. Without `startTime` the copy starts when created. Without `endTime` the source's end date is kept.
14626
+ * - Copied budget: a shared budget is reused, so the copy shares its spend; a daily budget is recreated.
14627
+ * - Copied bidding: a portfolio strategy, Maximize conversions with its target CPA, or Maximize conversion value with its target ROAS.
14628
+ * - Copied campaign settings: Merchant Center feed and vehicle listings, location, language, proximity and ad schedule criteria, negative keywords, negative keyword lists, sitelinks and other campaign assets, tracking template and URL parameters, geo target type and automated asset settings.
14629
+ * - Copied asset groups: every asset group with its assets, listing tree, search themes and audience signals.
14630
+ * - Assets Google created automatically are not copied; Google regenerates them.
14631
+ * - Anything else returns 422 naming each setting that cannot be copied, and nothing is created: other bidding strategies or budget types, other campaign criteria or shared set types, brand guidelines, conversion goals set on the campaign, audiences scoped to an asset group, and listing trees that are not Shopping trees.
14632
+ * - `adSetIdMap` and `adIdMap` both map each source asset group id to its copy.
14633
+ *
14618
14634
  * ### Sync
14619
14635
  *
14620
14636
  * The copy exists on the platform when this call returns. The new hierarchy reaches our DB through a sync discovery that starts automatically and runs after the response, usually within a few minutes.
@@ -18139,6 +18155,7 @@ export const replaceGoogleListingGroupFilters = <ThrowOnError extends boolean =
18139
18155
  * - PMax rejects ACTIVE creation, portfolio bidding, bid caps, legacy creative fields and attach shapes.
18140
18156
  * - Geo and language targeting are supported; omitted geo targets all locations.
18141
18157
  * - PMax does not require top-level goal, headline, body or linkUrl.
18158
+ * - `merchantCenter` links the campaign to a Merchant Center feed and adds one all-products listing group to the asset group. Google rejects the whole create (nothing is created) when the ad account is not linked to that Merchant Center.
18142
18159
  *
18143
18160
  * Supported bidding:
18144
18161
  *
@@ -13178,6 +13178,10 @@ export type GooglePmaxAssetGroup = {
13178
13178
  */
13179
13179
  fieldType: string;
13180
13180
  status: string;
13181
+ /**
13182
+ * Who added the asset: ADVERTISER, or AUTOMATICALLY_CREATED when Google generated it. Empty when Google does not say.
13183
+ */
13184
+ source?: string;
13181
13185
  text?: string;
13182
13186
  imageUrl?: string;
13183
13187
  youtubeVideoId?: string;
@@ -61371,13 +61375,13 @@ export type BulkUpdateAdCampaignStatusError = (unknown | ErrorResponse);
61371
61375
 
61372
61376
  export type DuplicateAdCampaignData = {
61373
61377
  body: {
61374
- platform: 'facebook' | 'instagram' | 'tiktok' | 'linkedin';
61378
+ platform: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'google';
61375
61379
  /**
61376
61380
  * Copy child ad sets + ads + creatives + targeting
61377
61381
  */
61378
61382
  deepCopy?: boolean;
61379
61383
  /**
61380
- * ACTIVE = launch the clone immediately (spends the moment LinkedIn approves it). PAUSED = clone stays DRAFT, safe default. INHERITED_FROM_SOURCE = mirror each entity's source status per-entity. Duplicating an ACTIVE campaign this way starts a second front of spend.
61384
+ * ACTIVE = launch the clone immediately (spends the moment LinkedIn approves it). PAUSED = clone stays DRAFT, safe default. Google only accepts PAUSED. INHERITED_FROM_SOURCE = mirror each entity's source status per-entity. Duplicating an ACTIVE campaign this way starts a second front of spend.
61381
61385
  *
61382
61386
  */
61383
61387
  statusOption?: 'ACTIVE' | 'PAUSED' | 'INHERITED_FROM_SOURCE';
@@ -61386,6 +61390,7 @@ export type DuplicateAdCampaignData = {
61386
61390
  *
61387
61391
  * - Meta and TikTok: a value without an offset (`YYYY-MM-DD`, `YYYY-MM-DD HH:MM:SS` or `YYYY-MM-DDTHH:MM:SS`) is read in the ad account timezone.
61388
61392
  * - LinkedIn: ad accounts carry no timezone, so it is read as UTC.
61393
+ * - Google: the date is used as a whole day in the customer timezone.
61389
61394
  */
61390
61395
  startTime?: string;
61391
61396
  /**
@@ -61397,7 +61402,7 @@ export type DuplicateAdCampaignData = {
61397
61402
  *
61398
61403
  * - `DEEP_RENAME`: renames the copied campaign and every copied child (ad sets, ads) with `renamePrefix` / `renameSuffix`.
61399
61404
  * - `ONLY_TOP_LEVEL_RENAME`: renames only the copied campaign; children keep their source names.
61400
- * - `NO_RENAME`: keeps every source name.
61405
+ * - `NO_RENAME`: keeps every source name. Google returns 400, since its campaign names are unique per account.
61401
61406
  *
61402
61407
  * With no rename option at all, Meta appends its own ` - Copy` suffix; LinkedIn defaults to `DEEP_RENAME` (its campaign group and campaigns are renamed). Ignored on TikTok, where `renamePrefix` / `renameSuffix` apply to every copied object.
61403
61408
  *
@@ -61408,7 +61413,7 @@ export type DuplicateAdCampaignData = {
61408
61413
  */
61409
61414
  renamePrefix?: string;
61410
61415
  /**
61411
- * Text appended to each renamed object's name. On LinkedIn an omitted suffix defaults to ` (Copy)`.
61416
+ * Text appended to each renamed object's name. On LinkedIn and Google an omitted suffix defaults to ` (Copy)` when no prefix is sent.
61412
61417
  */
61413
61418
  renameSuffix?: string;
61414
61419
  /**
@@ -61443,13 +61448,13 @@ export type DuplicateAdCampaignResponse = ({
61443
61448
  */
61444
61449
  copiedCampaignId?: string;
61445
61450
  /**
61446
- * Meta only: source ad set ID to copied ad set ID. Empty when `deepCopy` is false.
61451
+ * Meta: source ad set ID to copied ad set ID. Empty when `deepCopy` is false. Google: source asset group ID to copied asset group ID.
61447
61452
  */
61448
61453
  adSetIdMap?: {
61449
61454
  [key: string]: (string);
61450
61455
  };
61451
61456
  /**
61452
- * Meta only: source ad ID to copied ad ID, across every copied ad set. Empty when `deepCopy` is false.
61457
+ * Meta: source ad ID to copied ad ID, across every copied ad set. Empty when `deepCopy` is false. Google: the same map as `adSetIdMap`, since a Performance Max asset group is its ad.
61453
61458
  */
61454
61459
  adIdMap?: {
61455
61460
  [key: string]: (string);
@@ -69991,6 +69996,23 @@ export type CreateStandaloneAdData = {
69991
69996
  */
69992
69997
  locationTargetingType?: (GoogleLocationTargetingType);
69993
69998
  assetGroup?: GooglePmaxAssetGroupInput;
69999
+ /**
70000
+ * Google Performance Max only; any other campaign type returns 400. Links the new campaign to a Merchant Center account. Google rejects the create, and nothing is created, when the ad account is not linked to that Merchant Center.
70001
+ */
70002
+ merchantCenter?: {
70003
+ /**
70004
+ * Numeric Merchant Center id.
70005
+ */
70006
+ merchantId: string;
70007
+ /**
70008
+ * Feed label to use. Omitted, every feed of the Merchant Center is used.
70009
+ */
70010
+ feedLabel?: string;
70011
+ /**
70012
+ * Set to `vehicles` for vehicle listings. Omitted, the campaign is a retail Performance Max campaign. Vehicle ads require Google to allowlist the ad account; otherwise Google rejects the create.
70013
+ */
70014
+ listingType?: 'vehicles';
70015
+ };
69994
70016
  demandGen?: GoogleDemandGenInput;
69995
70017
  /**
69996
70018
  * Google Search only. Keywords on the new ad group; entries are strings (BROAD) or { text, matchType }. Editable later via PUT /v1/ads/{adId} targeting.keywords.