@getlatedev/node 0.2.1357 → 0.2.1359

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.
@@ -47384,15 +47384,15 @@ export type ListAdSetsError = (ErrorResponse | unknown);
47384
47384
  export type CreateAdSetData = {
47385
47385
  body: {
47386
47386
  /**
47387
- * Zernio SocialAccount id owning the Google Ads connection.
47387
+ * Zernio SocialAccount id owning the Google Ads or Reddit Ads connection.
47388
47388
  */
47389
47389
  accountId: string;
47390
47390
  /**
47391
- * Only "google" is implemented today; every other value returns 501.
47391
+ * "google" and "reddit" are implemented; every other value returns 501.
47392
47392
  */
47393
47393
  platform: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit';
47394
47394
  /**
47395
- * Google platform campaign ID (numeric) the ad group is created under.
47395
+ * Platform campaign ID the ad group is created under (numeric on Google).
47396
47396
  */
47397
47397
  campaignId: string;
47398
47398
  name: string;
@@ -47402,14 +47402,56 @@ export type CreateAdSetData = {
47402
47402
  */
47403
47403
  maxCpc?: number;
47404
47404
  /**
47405
- * Platform ad account ID (Google customer ID, digits only). Only required when the connection has more than one.
47405
+ * Platform ad account ID: the Google customer ID (digits only, only required when the connection has more than one) or the Reddit ad account id (required).
47406
47406
  */
47407
47407
  adAccountId?: string;
47408
47408
  /**
47409
- * Alias of adAccountId, kept for existing callers
47409
+ * Google only. Alias of adAccountId, kept for existing callers
47410
47410
  * @deprecated
47411
47411
  */
47412
47412
  customerId?: string;
47413
+ /**
47414
+ * Reddit only. Budget of the new ad group, in the ad account's currency units. Required when the campaign has no campaign budget; not applied under campaign budget optimization.
47415
+ */
47416
+ budgetAmount?: number;
47417
+ /**
47418
+ * Reddit only. Sent together with budgetAmount.
47419
+ */
47420
+ budgetType?: 'daily' | 'lifetime';
47421
+ /**
47422
+ * Reddit only. ISO 8601 start of the ad group. Defaults to now, or to the campaign start when it is in the future.
47423
+ */
47424
+ startDate?: string;
47425
+ /**
47426
+ * Reddit only. ISO 8601 end of the ad group. Defaults to the campaign end.
47427
+ */
47428
+ endDate?: string;
47429
+ targeting?: TargetingSpec;
47430
+ /**
47431
+ * Reddit only. The pixel and the conversion event the ad group optimizes toward.
47432
+ */
47433
+ promotedObject?: {
47434
+ /**
47435
+ * Reddit pixel id. Defaults to the ad account's first pixel.
47436
+ */
47437
+ pixelId?: string;
47438
+ /**
47439
+ * Conversion event (PURCHASE, LEAD, SIGN_UP, ADD_TO_CART, PAGE_VISIT). Required on a conversions campaign.
47440
+ */
47441
+ customEventType?: string;
47442
+ };
47443
+ /**
47444
+ * Reddit only. VIDEO_VIEW_6S (default) or VIDEO_VIEW_15S on a video views campaign.
47445
+ */
47446
+ optimizationGoal?: string;
47447
+ /**
47448
+ * Reddit only. Defaults to LOWEST_COST_WITHOUT_CAP. Not accepted under campaign budget optimization.
47449
+ */
47450
+ bidStrategy?: 'LOWEST_COST_WITHOUT_CAP' | 'LOWEST_COST_WITH_BID_CAP' | 'COST_CAP';
47451
+ /**
47452
+ * Reddit only. Bid cap in currency units, sent with bidStrategy.
47453
+ */
47454
+ bidAmount?: number;
47413
47455
  };
47414
47456
  headers?: {
47415
47457
  /**
@@ -54191,10 +54233,18 @@ export type CreateStandaloneAdData = {
54191
54233
  * (geo, languages, `demandGen.channels`/`audience`/`audienceId`/
54192
54234
  * `adGroupName`) return 400. `validateOnly` is supported.
54193
54235
  *
54236
+ * On Reddit Ads the `adSetId` is the AD GROUP id. Only the post
54237
+ * and the ad are created; the ad group keeps its budget,
54238
+ * schedule, targeting, bid and optimization, so `budgetAmount`,
54239
+ * `budgetType`, `startDate`, `endDate`, targeting fields,
54240
+ * `promotedObject`, `tracking.pixelId` and `optimizationGoal`
54241
+ * return 400. `goal` is not required. An ad group of another
54242
+ * ad account returns 404.
54243
+ *
54194
54244
  */
54195
54245
  adSetId?: string;
54196
54246
  /**
54197
- * Meta, Google Ads, LinkedIn and TikTok. On TikTok: creates
54247
+ * Meta, Google Ads, LinkedIn, TikTok and Reddit Ads. On TikTok: creates
54198
54248
  * the ad group and the ad under this existing campaign; the
54199
54249
  * campaign is neither created nor activated and its
54200
54250
  * objective must fit `goal`; not with `smartPlus`.
@@ -54220,8 +54270,26 @@ export type CreateStandaloneAdData = {
54220
54270
  * a new ad group, so geo and language fields return 400 there; the new
54221
54271
  * ad group follows the campaign's targeting. On failure only the entities we
54222
54272
  * authored are cleaned up; the pre-existing parent is left
54223
- * untouched and is never (re)activated. Mutually exclusive
54224
- * with `adSetId` and `creatives[]`.
54273
+ * untouched and is never (re)activated. On Reddit Ads:
54274
+ * creates a new ad group and the ad under this EXISTING
54275
+ * campaign; `goal` may be omitted (the campaign's objective
54276
+ * decides it) and any other goal returns 400 naming the one to
54277
+ * send. The ad group must start no earlier than a future
54278
+ * campaign start and end no later than the campaign end
54279
+ * (400 otherwise); without `endDate` it ends with the
54280
+ * campaign. When the campaign has
54281
+ * no campaign budget, send `budgetAmount`/`budgetType` for the
54282
+ * new ad group (400 without them); bid, conversion event and
54283
+ * pixel work as on a new campaign. Under campaign budget
54284
+ * optimization the ad group takes the campaign's bid,
54285
+ * goal type, optimization event and pixel, carries no budget
54286
+ * of its own (a budget in the request is not applied), and
54287
+ * bid fields or another conversion event or pixel return
54288
+ * 400, as does an `endDate` when the campaign has no end
54289
+ * date. A
54290
+ * campaign of another ad account returns 404, a Reddit Max
54291
+ * campaign 422. If the ad fails, the new ad group is
54292
+ * archived. Mutually exclusive with `adSetId` and `creatives[]`.
54225
54293
  *
54226
54294
  */
54227
54295
  existingCampaignId?: string;
@@ -56886,7 +56954,7 @@ export type ListAdAudiencesData = {
56886
56954
  * Platform ad account ID
56887
56955
  */
56888
56956
  adAccountId: string;
56889
- platform?: 'facebook' | 'instagram' | 'googleads' | 'tiktok' | 'tiktokads' | 'pinterest' | 'linkedin' | 'linkedinads' | 'twitter' | 'xads';
56957
+ platform?: 'facebook' | 'instagram' | 'googleads' | 'tiktok' | 'tiktokads' | 'pinterest' | 'linkedin' | 'linkedinads' | 'twitter' | 'xads' | 'redditads';
56890
56958
  /**
56891
56959
  * Filter to one audience type. `saved_targeting` returns stored TargetingSpec audiences; the other types return uploaded/derived audiences.
56892
56960
  */
@@ -56907,7 +56975,10 @@ export type ListAdAudiencesResponse = ({
56907
56975
  platformAudienceId?: string;
56908
56976
  name?: string;
56909
56977
  description?: string;
56910
- type?: 'customer_list' | 'company_list' | 'engagement' | 'meta_engagement' | 'tiktok_engagement' | 'pinterest_engagement' | 'website' | 'website_retargeting' | 'lookalike' | 'saved_targeting';
56978
+ /**
56979
+ * `reddit_engagement`, `third_party` and `in_market` are listed from Reddit (engagement retargeting, and Reddit's own audiences) so they can be targeted. Zernio cannot create them.
56980
+ */
56981
+ type?: 'customer_list' | 'company_list' | 'engagement' | 'meta_engagement' | 'tiktok_engagement' | 'pinterest_engagement' | 'website' | 'website_retargeting' | 'lookalike' | 'saved_targeting' | 'reddit_engagement' | 'third_party' | 'in_market';
56911
56982
  /**
56912
56983
  * Present (and the only meaningful payload) when `type` is `saved_targeting`. Null for uploaded/derived audience types.
56913
56984
  */
@@ -56992,11 +57063,11 @@ export type CreateAdAudienceData = {
56992
57063
  linkedinPageUrl?: string;
56993
57064
  }>;
56994
57065
  /**
56995
- * website: the Meta pixel, TikTok pixel or Pinterest tag id. Required on those three, rejected on Google.
57066
+ * website: the Meta pixel, TikTok pixel, Pinterest tag or Reddit pixel id. Required on those four, rejected on Google.
56996
57067
  */
56997
57068
  pixelId?: string;
56998
57069
  /**
56999
- * Required for website (Meta max 180, TikTok 7/14/30/60/90/180, Pinterest and Google max 540), meta_engagement (max 365) and tiktok_engagement (7/14/30/60/90/180; organic and live video and most business-account events only 7/14/30).
57070
+ * Required for website (Meta max 180, TikTok 7/14/30/60/90/180, Reddit max 90, Pinterest and Google max 540), meta_engagement (max 365) and tiktok_engagement (7/14/30/60/90/180; organic and live video and most business-account events only 7/14/30).
57000
57071
  */
57001
57072
  retentionDays?: number;
57002
57073
  /**
@@ -57015,6 +57086,8 @@ export type CreateAdAudienceData = {
57015
57086
  * (page → page_engaged, instagram → ig_business_profile_all,
57016
57087
  * video → video_watched). Ignored when `rule` is provided.
57017
57088
  *
57089
+ * website on Reddit: the conversion event (default `PAGE_VISIT`), or a custom event name.
57090
+ *
57018
57091
  * website on TikTok: the pixel event (default `PAGE BROWSE`). website
57019
57092
  * on Pinterest: the tag event (`pagevisit`, `signup`, `checkout`, `viewcategory`, `search`, `addtocart`, `watchvideo`, `lead`, `custom` or a partner-defined event).
57020
57093
  *
@@ -57239,7 +57312,7 @@ export type AddUsersToAdAudienceResponse = ({
57239
57312
  message?: string;
57240
57313
  numReceived?: number;
57241
57314
  /**
57242
- * Rows the platform could not read. Returned on Meta only.
57315
+ * Rows the platform could not read. Returned on Meta, and on Reddit for rows without a valid email.
57243
57316
  */
57244
57317
  numInvalid?: number;
57245
57318
  });
@@ -57266,11 +57339,11 @@ export type RemoveUsersFromAdAudienceData = {
57266
57339
  export type RemoveUsersFromAdAudienceResponse = ({
57267
57340
  message?: string;
57268
57341
  /**
57269
- * Rows Meta received.
57342
+ * Rows the platform received.
57270
57343
  */
57271
57344
  numReceived?: number;
57272
57345
  /**
57273
- * Rows Meta could not read.
57346
+ * Rows the platform could not read.
57274
57347
  */
57275
57348
  numInvalid?: number;
57276
57349
  /**
@@ -57869,6 +57942,74 @@ export type RemoveCustomConversionGoalResponse = ({
57869
57942
 
57870
57943
  export type RemoveCustomConversionGoalError = (ErrorResponse | unknown);
57871
57944
 
57945
+ export type ListEventsData = {
57946
+ query: {
57947
+ /**
57948
+ * `nextCursor` from the previous page.
57949
+ */
57950
+ cursor?: string;
57951
+ /**
57952
+ * Only events with this name, such as `Purchase`.
57953
+ */
57954
+ eventName?: string;
57955
+ /**
57956
+ * Only events at or after this time (ISO 8601, on the event time).
57957
+ */
57958
+ from?: string;
57959
+ limit?: number;
57960
+ profileId: string;
57961
+ /**
57962
+ * Only events before this time (ISO 8601, on the event time).
57963
+ */
57964
+ to?: string;
57965
+ };
57966
+ };
57967
+
57968
+ export type ListEventsResponse = ({
57969
+ events?: Array<{
57970
+ eventId?: string;
57971
+ eventName?: string;
57972
+ eventTime?: string;
57973
+ receivedAt?: string;
57974
+ actionSource?: (string) | null;
57975
+ value?: (number) | null;
57976
+ currency?: (string) | null;
57977
+ /**
57978
+ * Origin, path and attribution parameters only.
57979
+ */
57980
+ sourceUrl?: (string) | null;
57981
+ utm?: {
57982
+ source?: (string) | null;
57983
+ medium?: (string) | null;
57984
+ campaign?: (string) | null;
57985
+ content?: (string) | null;
57986
+ };
57987
+ /**
57988
+ * Ad ID from the `zrn` parameter Zernio adds to links of ads it creates.
57989
+ */
57990
+ zrn?: (string) | null;
57991
+ clickIds?: {
57992
+ gclid?: (string) | null;
57993
+ fbc?: (string) | null;
57994
+ };
57995
+ /**
57996
+ * Destinations the event was forwarded to.
57997
+ */
57998
+ destinationsSent?: number;
57999
+ hasEmail?: boolean;
58000
+ hasPhone?: boolean;
58001
+ hasExternalId?: boolean;
58002
+ }>;
58003
+ /**
58004
+ * Pass as `cursor` to get the next page; `null` on the last page.
58005
+ */
58006
+ nextCursor?: (string) | null;
58007
+ });
58008
+
58009
+ export type ListEventsError = (ErrorResponse | {
58010
+ error?: string;
58011
+ });
58012
+
57872
58013
  export type SendEventsData = {
57873
58014
  body: {
57874
58015
  /**