@getlatedev/node 0.2.947 → 0.2.948
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 +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +8 -0
- package/src/generated/types.gen.ts +4 -0
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
|
*/
|
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
|
*/
|
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.
|
|
39
|
+
version: "0.2.948",
|
|
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.
|
|
8
|
+
version: "0.2.948",
|
|
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
package/src/generated/sdk.gen.ts
CHANGED
|
@@ -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>({
|
|
@@ -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
|
*/
|