@getlatedev/node 0.2.1661 → 0.2.1663

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/README.md CHANGED
@@ -607,7 +607,7 @@ try {
607
607
  | `adCampaigns.updateAdCampaign()` | Update a campaign |
608
608
  | `adCampaigns.updateAdCampaignStatus()` | Pause or resume a campaign |
609
609
  | `adCampaigns.updateAdGroupAssets()` | Update ad-group assets |
610
- | `adCampaigns.updateAdKeyword()` | Pause or enable a Search keyword |
610
+ | `adCampaigns.updateAdKeyword()` | Update a Search keyword |
611
611
  | `adCampaigns.updateAdSet()` | Update an ad set |
612
612
  | `adCampaigns.updateAdSetStatus()` | Pause or resume a single ad set |
613
613
  | `adCampaigns.updateAdStatus()` | Pause or resume a single ad |
package/dist/index.d.mts CHANGED
@@ -3613,6 +3613,10 @@ type AdKeyword = {
3613
3613
  matchType?: 'exact' | 'phrase' | 'broad' | 'unknown';
3614
3614
  status?: 'active' | 'paused';
3615
3615
  negative?: boolean;
3616
+ /**
3617
+ * Max CPC bid set on this keyword, in the ad account currency. Null when the keyword uses its ad group bid. Takes effect only under Manual CPC bidding.
3618
+ */
3619
+ cpcBid?: (number) | null;
3616
3620
  /**
3617
3621
  * Deprecated, use `quality.score`. Google Quality Score, 1-10. Null when unrated.
3618
3622
  */
@@ -58463,7 +58467,11 @@ type AddAdKeywordsResponse = ({
58463
58467
  type AddAdKeywordsError = (ErrorResponse | unknown);
58464
58468
  type UpdateAdKeywordData = {
58465
58469
  body: {
58466
- status: 'active' | 'paused';
58470
+ status?: 'active' | 'paused';
58471
+ /**
58472
+ * Max CPC bid for this keyword, in the ad account currency. Takes effect only under Manual CPC bidding.
58473
+ */
58474
+ cpcBid?: number;
58467
58475
  };
58468
58476
  path: {
58469
58477
  /**
@@ -68459,6 +68467,23 @@ type CreateStandaloneAdData = {
68459
68467
  */
68460
68468
  locationTargetingType?: (GoogleLocationTargetingType);
68461
68469
  assetGroup?: GooglePmaxAssetGroupInput;
68470
+ /**
68471
+ * 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.
68472
+ */
68473
+ merchantCenter?: {
68474
+ /**
68475
+ * Numeric Merchant Center id.
68476
+ */
68477
+ merchantId: string;
68478
+ /**
68479
+ * Feed label to use. Omitted, every feed of the Merchant Center is used.
68480
+ */
68481
+ feedLabel?: string;
68482
+ /**
68483
+ * 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.
68484
+ */
68485
+ listingType?: 'vehicles';
68486
+ };
68462
68487
  demandGen?: GoogleDemandGenInput;
68463
68488
  /**
68464
68489
  * 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
@@ -3613,6 +3613,10 @@ type AdKeyword = {
3613
3613
  matchType?: 'exact' | 'phrase' | 'broad' | 'unknown';
3614
3614
  status?: 'active' | 'paused';
3615
3615
  negative?: boolean;
3616
+ /**
3617
+ * Max CPC bid set on this keyword, in the ad account currency. Null when the keyword uses its ad group bid. Takes effect only under Manual CPC bidding.
3618
+ */
3619
+ cpcBid?: (number) | null;
3616
3620
  /**
3617
3621
  * Deprecated, use `quality.score`. Google Quality Score, 1-10. Null when unrated.
3618
3622
  */
@@ -58463,7 +58467,11 @@ type AddAdKeywordsResponse = ({
58463
58467
  type AddAdKeywordsError = (ErrorResponse | unknown);
58464
58468
  type UpdateAdKeywordData = {
58465
58469
  body: {
58466
- status: 'active' | 'paused';
58470
+ status?: 'active' | 'paused';
58471
+ /**
58472
+ * Max CPC bid for this keyword, in the ad account currency. Takes effect only under Manual CPC bidding.
58473
+ */
58474
+ cpcBid?: number;
58467
58475
  };
58468
58476
  path: {
58469
58477
  /**
@@ -68459,6 +68467,23 @@ type CreateStandaloneAdData = {
68459
68467
  */
68460
68468
  locationTargetingType?: (GoogleLocationTargetingType);
68461
68469
  assetGroup?: GooglePmaxAssetGroupInput;
68470
+ /**
68471
+ * 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.
68472
+ */
68473
+ merchantCenter?: {
68474
+ /**
68475
+ * Numeric Merchant Center id.
68476
+ */
68477
+ merchantId: string;
68478
+ /**
68479
+ * Feed label to use. Omitted, every feed of the Merchant Center is used.
68480
+ */
68481
+ feedLabel?: string;
68482
+ /**
68483
+ * 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.
68484
+ */
68485
+ listingType?: 'vehicles';
68486
+ };
68462
68487
  demandGen?: GoogleDemandGenInput;
68463
68488
  /**
68464
68489
  * 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.1661",
39
+ version: "0.2.1663",
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.1661",
8
+ version: "0.2.1663",
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.1661",
3
+ "version": "0.2.1663",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -13423,11 +13423,14 @@ export const addAdKeywords = <ThrowOnError extends boolean = false>(options: Opt
13423
13423
  };
13424
13424
 
13425
13425
  /**
13426
- * Pause or enable a Search keyword
13427
- * Pauses or re-enables a single Google Search keyword.
13426
+ * Update a Search keyword
13427
+ * Pauses, re-enables or sets the bid of a single Google Search keyword. Send `status`, `cpcBid` or both.
13428
13428
  *
13429
- * Changes `ad_group_criterion.status` for one keyword criterion (M.140).
13430
- * Negative keywords have no status on Google and cannot be paused or enabled.
13429
+ * Changes `ad_group_criterion.status` (M.140) and `ad_group_criterion.cpc_bid_micros` for one keyword criterion.
13430
+ *
13431
+ * `cpcBid` is in the ad account currency and takes effect only under Manual CPC bidding. A keyword with no bid of its own reads back `cpcBid: null` and uses its ad group bid.
13432
+ *
13433
+ * Negative keywords have no status or bid on Google and cannot be paused, enabled or given a bid.
13431
13434
  *
13432
13435
  */
13433
13436
  export const updateAdKeyword = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<UpdateAdKeywordData, ThrowOnError>) => {
@@ -18136,6 +18139,7 @@ export const replaceGoogleListingGroupFilters = <ThrowOnError extends boolean =
18136
18139
  * - PMax rejects ACTIVE creation, portfolio bidding, bid caps, legacy creative fields and attach shapes.
18137
18140
  * - Geo and language targeting are supported; omitted geo targets all locations.
18138
18141
  * - PMax does not require top-level goal, headline, body or linkUrl.
18142
+ * - `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.
18139
18143
  *
18140
18144
  * Supported bidding:
18141
18145
  *
@@ -1157,6 +1157,10 @@ export type AdKeyword = {
1157
1157
  matchType?: 'exact' | 'phrase' | 'broad' | 'unknown';
1158
1158
  status?: 'active' | 'paused';
1159
1159
  negative?: boolean;
1160
+ /**
1161
+ * Max CPC bid set on this keyword, in the ad account currency. Null when the keyword uses its ad group bid. Takes effect only under Manual CPC bidding.
1162
+ */
1163
+ cpcBid?: (number) | null;
1160
1164
  /**
1161
1165
  * Deprecated, use `quality.score`. Google Quality Score, 1-10. Null when unrated.
1162
1166
  */
@@ -59403,7 +59407,11 @@ export type AddAdKeywordsError = (ErrorResponse | unknown);
59403
59407
 
59404
59408
  export type UpdateAdKeywordData = {
59405
59409
  body: {
59406
- status: 'active' | 'paused';
59410
+ status?: 'active' | 'paused';
59411
+ /**
59412
+ * Max CPC bid for this keyword, in the ad account currency. Takes effect only under Manual CPC bidding.
59413
+ */
59414
+ cpcBid?: number;
59407
59415
  };
59408
59416
  path: {
59409
59417
  /**
@@ -69983,6 +69991,23 @@ export type CreateStandaloneAdData = {
69983
69991
  */
69984
69992
  locationTargetingType?: (GoogleLocationTargetingType);
69985
69993
  assetGroup?: GooglePmaxAssetGroupInput;
69994
+ /**
69995
+ * 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.
69996
+ */
69997
+ merchantCenter?: {
69998
+ /**
69999
+ * Numeric Merchant Center id.
70000
+ */
70001
+ merchantId: string;
70002
+ /**
70003
+ * Feed label to use. Omitted, every feed of the Merchant Center is used.
70004
+ */
70005
+ feedLabel?: string;
70006
+ /**
70007
+ * 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.
70008
+ */
70009
+ listingType?: 'vehicles';
70010
+ };
69986
70011
  demandGen?: GoogleDemandGenInput;
69987
70012
  /**
69988
70013
  * 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.