@getlatedev/node 0.2.947 → 0.2.949

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
@@ -36456,6 +36456,10 @@ type UpdateCampaignTargetingData = {
36456
36456
  };
36457
36457
  type UpdateCampaignTargetingResponse = ({
36458
36458
  campaignId?: string;
36459
+ /**
36460
+ * Demand Gen only: the ad group that received the locations and languages.
36461
+ */
36462
+ adGroupId?: string;
36459
36463
  /**
36460
36464
  * Which targeting fields were applied.
36461
36465
  */
@@ -41693,6 +41697,11 @@ type CreateStandaloneAdData = {
41693
41697
  * `budgetAmount`/`budgetType` and bidding fields
41694
41698
  * (`bidStrategy`, `bidAmount`, `portfolioBidStrategyId`)
41695
41699
  * return 400 on this shape; the ad group already owns them.
41700
+ * With `campaignType: "demand_gen"` the ad group must belong to a
41701
+ * Demand Gen campaign (otherwise 400); `demandGen` carries only the
41702
+ * ad's creative, the new ad is created PAUSED, and ad group settings
41703
+ * (geo, languages, `demandGen.channels`/`audience`/`audienceId`/
41704
+ * `adGroupName`) return 400. `validateOnly` is supported.
41696
41705
  *
41697
41706
  */
41698
41707
  adSetId?: string;
@@ -41713,7 +41722,12 @@ type CreateStandaloneAdData = {
41713
41722
  * Ads: create a new ad group under this EXISTING campaign;
41714
41723
  * the new ad group inherits the campaign's budget, so omit
41715
41724
  * `budgetAmount`/`budgetType` (and any bidding field), or
41716
- * the request returns 400. On failure only the entities we
41725
+ * the request returns 400. With `campaignType: "demand_gen"` the
41726
+ * campaign must be a Demand Gen campaign (otherwise 400): the new ad
41727
+ * group (with its geo, languages, channels and audience from the
41728
+ * request) and its ad are created in one atomic request, the ad
41729
+ * group PAUSED; schedule and `locationTargetingType` belong to the
41730
+ * campaign and return 400. On failure only the entities we
41717
41731
  * authored are cleaned up; the pre-existing parent is left
41718
41732
  * untouched and is never (re)activated. Mutually exclusive
41719
41733
  * with `adSetId` and `creatives[]`.
package/dist/index.d.ts CHANGED
@@ -36456,6 +36456,10 @@ type UpdateCampaignTargetingData = {
36456
36456
  };
36457
36457
  type UpdateCampaignTargetingResponse = ({
36458
36458
  campaignId?: string;
36459
+ /**
36460
+ * Demand Gen only: the ad group that received the locations and languages.
36461
+ */
36462
+ adGroupId?: string;
36459
36463
  /**
36460
36464
  * Which targeting fields were applied.
36461
36465
  */
@@ -41693,6 +41697,11 @@ type CreateStandaloneAdData = {
41693
41697
  * `budgetAmount`/`budgetType` and bidding fields
41694
41698
  * (`bidStrategy`, `bidAmount`, `portfolioBidStrategyId`)
41695
41699
  * return 400 on this shape; the ad group already owns them.
41700
+ * With `campaignType: "demand_gen"` the ad group must belong to a
41701
+ * Demand Gen campaign (otherwise 400); `demandGen` carries only the
41702
+ * ad's creative, the new ad is created PAUSED, and ad group settings
41703
+ * (geo, languages, `demandGen.channels`/`audience`/`audienceId`/
41704
+ * `adGroupName`) return 400. `validateOnly` is supported.
41696
41705
  *
41697
41706
  */
41698
41707
  adSetId?: string;
@@ -41713,7 +41722,12 @@ type CreateStandaloneAdData = {
41713
41722
  * Ads: create a new ad group under this EXISTING campaign;
41714
41723
  * the new ad group inherits the campaign's budget, so omit
41715
41724
  * `budgetAmount`/`budgetType` (and any bidding field), or
41716
- * the request returns 400. On failure only the entities we
41725
+ * the request returns 400. With `campaignType: "demand_gen"` the
41726
+ * campaign must be a Demand Gen campaign (otherwise 400): the new ad
41727
+ * group (with its geo, languages, channels and audience from the
41728
+ * request) and its ad are created in one atomic request, the ad
41729
+ * group PAUSED; schedule and `locationTargetingType` belong to the
41730
+ * campaign and return 400. On failure only the entities we
41717
41731
  * authored are cleaned up; the pre-existing parent is left
41718
41732
  * untouched and is never (re)activated. Mutually exclusive
41719
41733
  * with `adSetId` and `creatives[]`.
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.947",
39
+ version: "0.2.949",
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.947",
8
+ version: "0.2.949",
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.947",
3
+ "version": "0.2.949",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -9083,6 +9083,14 @@ export const getCampaignTargeting = <ThrowOnError extends boolean = false>(optio
9083
9083
  * read back from Google after the edit, and invalidates the cached copy
9084
9084
  * `GET` on this campaign would otherwise keep serving.
9085
9085
  *
9086
+ * **Demand Gen:** Google keeps a Demand Gen campaign's locations and languages on its
9087
+ * ad groups and refuses them on the campaign. When the campaign has one ad group they are
9088
+ * written there and the response carries its `adGroupId` (the campaign-level
9089
+ * `locations`/`languages` read back then stay empty). With several ad groups the call
9090
+ * returns 400 naming them: edit each one with PUT /v1/ads/{adId} `targeting` on an ad of
9091
+ * that ad group. Campaigns migrated from Discovery that still target on the campaign keep
9092
+ * being written there. `devices` and `locationTargetingType` stay campaign-level.
9093
+ *
9086
9094
  */
9087
9095
  export const updateCampaignTargeting = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<UpdateCampaignTargetingData, ThrowOnError>) => {
9088
9096
  return (options?.client ?? client).put<UpdateCampaignTargetingResponse, UpdateCampaignTargetingError, ThrowOnError>({
@@ -10978,6 +10986,10 @@ export const replaceGoogleListingGroupFilters = <ThrowOnError extends boolean =
10978
10986
  * group) and `platformAdId`. Activate with PUT /v1/ads/campaigns/{campaignId}/status;
10979
10987
  * budget, bidding and name are edited with the regular campaign endpoints; creative,
10980
10988
  * channels, audience and ad group targeting with PUT /v1/ads/{adId} (`demandGen`, `targeting`).
10989
+ * To grow an existing Demand Gen campaign, send `existingCampaignId` (adds a PAUSED ad group,
10990
+ * with its own geo, languages, channels and audience, plus its ad) or `adSetId` (adds a
10991
+ * PAUSED ad to that ad group); neither takes budget, bidding or schedule fields, and both
10992
+ * support `validateOnly`.
10981
10993
  *
10982
10994
  * Other mutually-exclusive request shapes are selected by the body:
10983
10995
  *
@@ -36791,6 +36791,10 @@ export type UpdateCampaignTargetingData = {
36791
36791
 
36792
36792
  export type UpdateCampaignTargetingResponse = ({
36793
36793
  campaignId?: string;
36794
+ /**
36795
+ * Demand Gen only: the ad group that received the locations and languages.
36796
+ */
36797
+ adGroupId?: string;
36794
36798
  /**
36795
36799
  * Which targeting fields were applied.
36796
36800
  */
@@ -42351,6 +42355,11 @@ export type CreateStandaloneAdData = {
42351
42355
  * `budgetAmount`/`budgetType` and bidding fields
42352
42356
  * (`bidStrategy`, `bidAmount`, `portfolioBidStrategyId`)
42353
42357
  * return 400 on this shape; the ad group already owns them.
42358
+ * With `campaignType: "demand_gen"` the ad group must belong to a
42359
+ * Demand Gen campaign (otherwise 400); `demandGen` carries only the
42360
+ * ad's creative, the new ad is created PAUSED, and ad group settings
42361
+ * (geo, languages, `demandGen.channels`/`audience`/`audienceId`/
42362
+ * `adGroupName`) return 400. `validateOnly` is supported.
42354
42363
  *
42355
42364
  */
42356
42365
  adSetId?: string;
@@ -42371,7 +42380,12 @@ export type CreateStandaloneAdData = {
42371
42380
  * Ads: create a new ad group under this EXISTING campaign;
42372
42381
  * the new ad group inherits the campaign's budget, so omit
42373
42382
  * `budgetAmount`/`budgetType` (and any bidding field), or
42374
- * the request returns 400. On failure only the entities we
42383
+ * the request returns 400. With `campaignType: "demand_gen"` the
42384
+ * campaign must be a Demand Gen campaign (otherwise 400): the new ad
42385
+ * group (with its geo, languages, channels and audience from the
42386
+ * request) and its ad are created in one atomic request, the ad
42387
+ * group PAUSED; schedule and `locationTargetingType` belong to the
42388
+ * campaign and return 400. On failure only the entities we
42375
42389
  * authored are cleaned up; the pre-existing parent is left
42376
42390
  * untouched and is never (re)activated. Mutually exclusive
42377
42391
  * with `adSetId` and `creatives[]`.