@getlatedev/node 0.2.946 → 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.
@@ -5079,6 +5079,23 @@ export type GoogleCustomerConversionGoal = {
5079
5079
  }>;
5080
5080
  };
5081
5081
 
5082
+ /**
5083
+ * Created as a Google Audience and attached to the ad group. Send at least one dimension. Ids are numeric Google ids (user lists, interest categories, custom audiences) from the same customer.
5084
+ */
5085
+ export type GoogleDemandGenAudience = {
5086
+ userLists?: Array<(string)>;
5087
+ userInterests?: Array<(string)>;
5088
+ customAudiences?: Array<(string)>;
5089
+ ageRanges?: Array<{
5090
+ min: 18 | 25 | 35 | 45 | 55 | 65;
5091
+ /**
5092
+ * Omit for no upper bound.
5093
+ */
5094
+ max?: 24 | 34 | 44 | 54 | 64;
5095
+ }>;
5096
+ genders?: Array<('male' | 'female' | 'undetermined')>;
5097
+ };
5098
+
5082
5099
  /**
5083
5100
  * Creative, channel and audience settings for a Google Demand Gen campaign (campaignType demand_gen). Creates one ad group with one ad: a multi-asset image ad, a video responsive ad when youtubeVideoIds is sent, or a carousel ad when carouselCards is sent.
5084
5101
  */
@@ -5159,22 +5176,59 @@ export type GoogleDemandGenInput = {
5159
5176
  * Channel controls on the ad group. Only the listed channels serve; omit to serve on all of them.
5160
5177
  */
5161
5178
  channels?: Array<('youtube_in_stream' | 'youtube_in_feed' | 'youtube_shorts' | 'discover' | 'gmail' | 'display')>;
5179
+ audience?: GoogleDemandGenAudience;
5162
5180
  /**
5163
- * Created as a Google Audience and attached to the ad group. Send at least one dimension. Ids are numeric Google ids (user lists, interest categories, custom audiences) from the same customer.
5181
+ * Attach an existing Google Audience by numeric id instead of audience.
5164
5182
  */
5165
- audience?: {
5166
- userLists?: Array<(string)>;
5167
- userInterests?: Array<(string)>;
5168
- customAudiences?: Array<(string)>;
5169
- ageRanges?: Array<{
5170
- min: 18 | 25 | 35 | 45 | 55 | 65;
5171
- /**
5172
- * Omit for no upper bound.
5173
- */
5174
- max?: 24 | 34 | 44 | 54 | 64;
5175
- }>;
5176
- genders?: Array<('male' | 'female' | 'undetermined')>;
5183
+ audienceId?: string;
5184
+ };
5185
+
5186
+ /**
5187
+ * Partial edit of a Google Demand Gen ad, sent in one atomic Google request. Every field
5188
+ * you send replaces that whole field; fields you omit are kept. Which creative fields
5189
+ * apply depends on the ad (read from Google): image ads take headlines, descriptions,
5190
+ * businessName, callToAction and images (landscape, square, portrait, logo); video ads
5191
+ * take headlines, longHeadlines, descriptions, businessName, youtubeVideoIds and exactly
5192
+ * one images.logo; carousel ads take exactly one headline, one description, one logo,
5193
+ * businessName and callToAction (their cards cannot be edited: create a new carousel ad).
5194
+ * A field the ad does not take returns 422. New images are uploaded as new Google assets;
5195
+ * the previous ones stay in the account's asset library.
5196
+ *
5197
+ * `channels`, `audience` and `audienceId` change the ad's ad group, so they apply to every
5198
+ * ad in it. `audience` builds a new Google Audience and attaches it in place of the current
5199
+ * one (the previous audience is detached, not deleted); `audienceId` attaches an existing
5200
+ * one. Ad groups of campaigns migrated from Discovery use ungrouped audience segments,
5201
+ * and Google refuses an Audience on them.
5202
+ *
5203
+ */
5204
+ export type GoogleDemandGenUpdate = {
5205
+ finalUrl?: string;
5206
+ businessName?: string;
5207
+ headlines?: Array<(string)>;
5208
+ /**
5209
+ * Video ads only.
5210
+ */
5211
+ longHeadlines?: Array<(string)>;
5212
+ descriptions?: Array<(string)>;
5213
+ /**
5214
+ * Image and carousel ads only.
5215
+ */
5216
+ callToAction?: string;
5217
+ images?: {
5218
+ landscape?: Array<(string)>;
5219
+ square?: Array<(string)>;
5220
+ portrait?: Array<(string)>;
5221
+ logo?: Array<(string)>;
5177
5222
  };
5223
+ /**
5224
+ * Video ads only.
5225
+ */
5226
+ youtubeVideoIds?: Array<(string)>;
5227
+ /**
5228
+ * Replaces the ad group's channel controls; only the listed channels serve.
5229
+ */
5230
+ channels?: Array<('youtube_in_stream' | 'youtube_in_feed' | 'youtube_shorts' | 'discover' | 'gmail' | 'display')>;
5231
+ audience?: GoogleDemandGenAudience;
5178
5232
  /**
5179
5233
  * Attach an existing Google Audience by numeric id instead of audience.
5180
5234
  */
@@ -36737,6 +36791,10 @@ export type UpdateCampaignTargetingData = {
36737
36791
 
36738
36792
  export type UpdateCampaignTargetingResponse = ({
36739
36793
  campaignId?: string;
36794
+ /**
36795
+ * Demand Gen only: the ad group that received the locations and languages.
36796
+ */
36797
+ adGroupId?: string;
36740
36798
  /**
36741
36799
  * Which targeting fields were applied.
36742
36800
  */
@@ -37451,6 +37509,10 @@ export type UpdateAdData = {
37451
37509
  * Google Performance Max only. Replaces whole asset roles on the ad's asset group. Returns 422 on any other platform or channel.
37452
37510
  */
37453
37511
  assetGroup?: (GooglePmaxAssetGroupUpdate);
37512
+ /**
37513
+ * Google Demand Gen only. Returns 422 on any other platform or channel.
37514
+ */
37515
+ demandGen?: (GoogleDemandGenUpdate);
37454
37516
  status?: 'active' | 'paused';
37455
37517
  budget?: {
37456
37518
  /**