@getlatedev/node 0.2.1663 → 0.2.1665

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.
@@ -13178,6 +13178,10 @@ export type GooglePmaxAssetGroup = {
13178
13178
  */
13179
13179
  fieldType: string;
13180
13180
  status: string;
13181
+ /**
13182
+ * Who added the asset: ADVERTISER, or AUTOMATICALLY_CREATED when Google generated it. Empty when Google does not say.
13183
+ */
13184
+ source?: string;
13181
13185
  text?: string;
13182
13186
  imageUrl?: string;
13183
13187
  youtubeVideoId?: string;
@@ -19571,6 +19575,32 @@ export type type30 = 'CNAME';
19571
19575
  */
19572
19576
  export type TrackingSiteConsentMode = 'eu_opt_in' | 'opt_in' | 'opt_out';
19573
19577
 
19578
+ /**
19579
+ * A tracking site's page views over a period, as approximate distinct counts.
19580
+ */
19581
+ export type TrackingSitePeriodTotals = {
19582
+ /**
19583
+ * Page views without bots.
19584
+ */
19585
+ visits?: number;
19586
+ /**
19587
+ * Page views from bots.
19588
+ */
19589
+ bots?: number;
19590
+ /**
19591
+ * Page views with ad storage consent, at most `visits`.
19592
+ */
19593
+ consented?: number;
19594
+ /**
19595
+ * Purchases recorded on the site.
19596
+ */
19597
+ purchases?: number;
19598
+ /**
19599
+ * Purchases with ad consent for which no browser pixel fired, so only the server reported them.
19600
+ */
19601
+ recovered?: number;
19602
+ };
19603
+
19574
19604
  /**
19575
19605
  * A platform measurement tag: the thing you create, install on a website, send events to, and target ads against. On Meta this is a Pixel (`kind: pixel`).
19576
19606
  *
@@ -61371,13 +61401,13 @@ export type BulkUpdateAdCampaignStatusError = (unknown | ErrorResponse);
61371
61401
 
61372
61402
  export type DuplicateAdCampaignData = {
61373
61403
  body: {
61374
- platform: 'facebook' | 'instagram' | 'tiktok' | 'linkedin';
61404
+ platform: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'google';
61375
61405
  /**
61376
61406
  * Copy child ad sets + ads + creatives + targeting
61377
61407
  */
61378
61408
  deepCopy?: boolean;
61379
61409
  /**
61380
- * ACTIVE = launch the clone immediately (spends the moment LinkedIn approves it). PAUSED = clone stays DRAFT, safe default. INHERITED_FROM_SOURCE = mirror each entity's source status per-entity. Duplicating an ACTIVE campaign this way starts a second front of spend.
61410
+ * ACTIVE = launch the clone immediately (spends the moment LinkedIn approves it). PAUSED = clone stays DRAFT, safe default. Google only accepts PAUSED. INHERITED_FROM_SOURCE = mirror each entity's source status per-entity. Duplicating an ACTIVE campaign this way starts a second front of spend.
61381
61411
  *
61382
61412
  */
61383
61413
  statusOption?: 'ACTIVE' | 'PAUSED' | 'INHERITED_FROM_SOURCE';
@@ -61386,6 +61416,7 @@ export type DuplicateAdCampaignData = {
61386
61416
  *
61387
61417
  * - Meta and TikTok: a value without an offset (`YYYY-MM-DD`, `YYYY-MM-DD HH:MM:SS` or `YYYY-MM-DDTHH:MM:SS`) is read in the ad account timezone.
61388
61418
  * - LinkedIn: ad accounts carry no timezone, so it is read as UTC.
61419
+ * - Google: the date is used as a whole day in the customer timezone.
61389
61420
  */
61390
61421
  startTime?: string;
61391
61422
  /**
@@ -61397,7 +61428,7 @@ export type DuplicateAdCampaignData = {
61397
61428
  *
61398
61429
  * - `DEEP_RENAME`: renames the copied campaign and every copied child (ad sets, ads) with `renamePrefix` / `renameSuffix`.
61399
61430
  * - `ONLY_TOP_LEVEL_RENAME`: renames only the copied campaign; children keep their source names.
61400
- * - `NO_RENAME`: keeps every source name.
61431
+ * - `NO_RENAME`: keeps every source name. Google returns 400, since its campaign names are unique per account.
61401
61432
  *
61402
61433
  * With no rename option at all, Meta appends its own ` - Copy` suffix; LinkedIn defaults to `DEEP_RENAME` (its campaign group and campaigns are renamed). Ignored on TikTok, where `renamePrefix` / `renameSuffix` apply to every copied object.
61403
61434
  *
@@ -61408,7 +61439,7 @@ export type DuplicateAdCampaignData = {
61408
61439
  */
61409
61440
  renamePrefix?: string;
61410
61441
  /**
61411
- * Text appended to each renamed object's name. On LinkedIn an omitted suffix defaults to ` (Copy)`.
61442
+ * Text appended to each renamed object's name. On LinkedIn and Google an omitted suffix defaults to ` (Copy)` when no prefix is sent.
61412
61443
  */
61413
61444
  renameSuffix?: string;
61414
61445
  /**
@@ -61443,13 +61474,13 @@ export type DuplicateAdCampaignResponse = ({
61443
61474
  */
61444
61475
  copiedCampaignId?: string;
61445
61476
  /**
61446
- * Meta only: source ad set ID to copied ad set ID. Empty when `deepCopy` is false.
61477
+ * Meta: source ad set ID to copied ad set ID. Empty when `deepCopy` is false. Google: source asset group ID to copied asset group ID.
61447
61478
  */
61448
61479
  adSetIdMap?: {
61449
61480
  [key: string]: (string);
61450
61481
  };
61451
61482
  /**
61452
- * Meta only: source ad ID to copied ad ID, across every copied ad set. Empty when `deepCopy` is false.
61483
+ * Meta: source ad ID to copied ad ID, across every copied ad set. Empty when `deepCopy` is false. Google: the same map as `adSetIdMap`, since a Performance Max asset group is its ad.
61453
61484
  */
61454
61485
  adIdMap?: {
61455
61486
  [key: string]: (string);
@@ -73551,6 +73582,14 @@ export type GetEventsOverviewResponse = ({
73551
73582
  * The last day in the past 7 with a hit. `null` when none.
73552
73583
  */
73553
73584
  lastActiveOn?: (string) | null;
73585
+ /**
73586
+ * The site's page views per period (`today`, `7d`, `30d`), each ending today (UTC).
73587
+ */
73588
+ totals?: {
73589
+ today?: TrackingSitePeriodTotals;
73590
+ '7d'?: TrackingSitePeriodTotals;
73591
+ '30d'?: TrackingSitePeriodTotals;
73592
+ };
73554
73593
  }>;
73555
73594
  });
73556
73595
 
@@ -73558,6 +73597,100 @@ export type GetEventsOverviewError = (ErrorResponse | {
73558
73597
  error?: string;
73559
73598
  });
73560
73599
 
73600
+ export type GetEventsOverviewDailyData = {
73601
+ query?: {
73602
+ /**
73603
+ * The days to cover, each ending today (UTC): `today`, the last 7 days or the last 30 days.
73604
+ */
73605
+ period?: 'today' | '7d' | '30d';
73606
+ /**
73607
+ * The profile to read. Omit to cover every profile you can access, summed across them.
73608
+ */
73609
+ profileId?: string;
73610
+ };
73611
+ };
73612
+
73613
+ export type GetEventsOverviewDailyResponse = ({
73614
+ period?: 'today' | '7d' | '30d';
73615
+ /**
73616
+ * The period's figures, shaped like the overview's `today`.
73617
+ */
73618
+ totals?: {
73619
+ /**
73620
+ * Stored events that occurred in the period, retracted ones excluded.
73621
+ */
73622
+ conversions?: number;
73623
+ /**
73624
+ * Value of those events in `currency`. Events in other currencies are left out.
73625
+ */
73626
+ value?: number;
73627
+ /**
73628
+ * The currency most of the period's events use; `null` when none carried a value.
73629
+ */
73630
+ currency?: (string) | null;
73631
+ /**
73632
+ * Events first sent to a destination in the period, one per event and destination.
73633
+ */
73634
+ sent?: number;
73635
+ /**
73636
+ * Those whose latest send the platform accepted.
73637
+ */
73638
+ accepted?: number;
73639
+ /**
73640
+ * The period's events matched to an ad campaign.
73641
+ */
73642
+ matched?: number;
73643
+ };
73644
+ /**
73645
+ * Every day of the period, oldest first, zero where nothing happened.
73646
+ */
73647
+ days?: Array<{
73648
+ day?: string;
73649
+ /**
73650
+ * Stored events that occurred that day.
73651
+ */
73652
+ conversions?: number;
73653
+ /**
73654
+ * Events first sent to a destination that day.
73655
+ */
73656
+ sent?: number;
73657
+ /**
73658
+ * Those the platform accepted.
73659
+ */
73660
+ accepted?: number;
73661
+ }>;
73662
+ });
73663
+
73664
+ export type GetEventsOverviewDailyError = (ErrorResponse | {
73665
+ error?: string;
73666
+ });
73667
+
73668
+ export type ListEventNamesData = {
73669
+ query?: {
73670
+ /**
73671
+ * The profile to read. Omit to cover every profile you can access.
73672
+ */
73673
+ profileId?: string;
73674
+ };
73675
+ };
73676
+
73677
+ export type ListEventNamesResponse = ({
73678
+ names?: Array<{
73679
+ /**
73680
+ * Event name, such as `Purchase` or `demo_booked`.
73681
+ */
73682
+ name?: string;
73683
+ /**
73684
+ * Events stored with this name in the last 30 days.
73685
+ */
73686
+ events?: number;
73687
+ }>;
73688
+ });
73689
+
73690
+ export type ListEventNamesError = (ErrorResponse | {
73691
+ error?: string;
73692
+ });
73693
+
73561
73694
  export type GetEventData = {
73562
73695
  path: {
73563
73696
  /**