@zernio/node 0.2.732 → 0.2.734

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.
@@ -255,6 +255,18 @@ export type Ad = {
255
255
  * Platform-specific creative data. Fields vary by platform.
256
256
  */
257
257
  creative?: {
258
+ /**
259
+ * Google RSA only. Replaces the complete headline list. No padding or truncation on update.
260
+ */
261
+ headlines?: Array<GoogleRsaHeadline>;
262
+ /**
263
+ * Google RSA only. Replaces the complete description list. No padding or truncation on update.
264
+ */
265
+ descriptions?: Array<GoogleRsaDescription>;
266
+ /**
267
+ * Google RSA only. Replaces final URLs. Omitted lists stay unchanged.
268
+ */
269
+ finalUrls?: Array<(string)>;
258
270
  /**
259
271
  * Primary thumbnail/image URL
260
272
  */
@@ -4280,6 +4292,30 @@ export type GeoRestriction = {
4280
4292
  countries: Array<(string)>;
4281
4293
  };
4282
4294
 
4295
+ /**
4296
+ * Supply fields for exactly one asset type per update. finalUrls may accompany sitelinkAsset. Shared asset edits affect every attachment using the asset.
4297
+ */
4298
+ export type GoogleAssetUpdate = {
4299
+ /**
4300
+ * Asset resource name returned by a list operation. Must belong to the selected customer.
4301
+ */
4302
+ assetResourceName: string;
4303
+ sitelinkAsset?: {
4304
+ linkText?: string;
4305
+ description1?: string;
4306
+ description2?: string;
4307
+ /**
4308
+ * Alias for finalUrls with one URL. Do not supply both.
4309
+ */
4310
+ linkUrl?: string;
4311
+ };
4312
+ finalUrls?: Array<(string)>;
4313
+ calloutAsset?: {
4314
+ calloutText: string;
4315
+ };
4316
+ structuredSnippetAsset?: GoogleStructuredSnippet;
4317
+ };
4318
+
4283
4319
  /**
4284
4320
  * Text and single image only (no videos). Supports STANDARD, EVENT, OFFER, and ALERT post types. Posts appear on Google Business Profile, Google Search, and Maps. Use locationId for multi-location posting. Schedule dates accept both ISO 8601 strings (e.g. '2026-04-15T09:00:00Z') and Google's native {year, month, day} objects.
4285
4321
  */
@@ -4437,6 +4473,46 @@ export type GoogleBusinessReview = {
4437
4473
  */
4438
4474
  export type starRating = 'ONE' | 'TWO' | 'THREE' | 'FOUR' | 'FIVE';
4439
4475
 
4476
+ export type GoogleRsaDescription = {
4477
+ text: string;
4478
+ /**
4479
+ * Optional fixed description position. Omit to leave the asset unpinned.
4480
+ */
4481
+ pinnedField?: 'DESCRIPTION_1' | 'DESCRIPTION_2';
4482
+ };
4483
+
4484
+ /**
4485
+ * Optional fixed description position. Omit to leave the asset unpinned.
4486
+ */
4487
+ export type pinnedField = 'DESCRIPTION_1' | 'DESCRIPTION_2';
4488
+
4489
+ export type GoogleRsaHeadline = {
4490
+ text: string;
4491
+ /**
4492
+ * Optional fixed headline position. Omit to leave the asset unpinned.
4493
+ */
4494
+ pinnedField?: 'HEADLINE_1' | 'HEADLINE_2' | 'HEADLINE_3';
4495
+ };
4496
+
4497
+ /**
4498
+ * Optional fixed headline position. Omit to leave the asset unpinned.
4499
+ */
4500
+ export type pinnedField2 = 'HEADLINE_1' | 'HEADLINE_2' | 'HEADLINE_3';
4501
+
4502
+ export type GoogleSitelink = {
4503
+ text: string;
4504
+ linkUrl: string;
4505
+ description1?: string;
4506
+ description2?: string;
4507
+ };
4508
+
4509
+ export type GoogleStructuredSnippet = {
4510
+ header: 'Amenities' | 'Brands' | 'Courses' | 'Degree programs' | 'Destinations' | 'Featured hotels' | 'Insurance coverage' | 'Models' | 'Neighborhoods' | 'Service catalog' | 'Shows' | 'Styles' | 'Types';
4511
+ values: Array<(string)>;
4512
+ };
4513
+
4514
+ export type header = 'Amenities' | 'Brands' | 'Courses' | 'Degree programs' | 'Destinations' | 'Featured hotels' | 'Insurance coverage' | 'Models' | 'Neighborhoods' | 'Service catalog' | 'Shows' | 'Styles' | 'Types';
4515
+
4440
4516
  /**
4441
4517
  * Attachment snapshot inside an edit-history entry.
4442
4518
  */
@@ -9561,8 +9637,11 @@ export type event21 = 'post.scheduled' | 'post.published' | 'post.failed' | 'pos
9561
9637
  * and for `post.tiktok.url_resolved` (same shape, fired when a
9562
9638
  * published TikTok post's public URL is backfilled). Terminal events
9563
9639
  * fire once per platform target inside a post as that platform
9564
- * reaches a terminal state (published or permanent failure). The
9565
- * `post` envelope mirrors the shape of `WebhookPayloadPost` so
9640
+ * reaches a terminal state (published or permanent failure), except
9641
+ * that a target which later fails background reconciliation emits
9642
+ * `post.platform.failed` a second time, after its own
9643
+ * `post.platform.published`. The `post` envelope mirrors the shape
9644
+ * of `WebhookPayloadPost` so
9566
9645
  * consumers can reuse rendering logic; the `platform` block
9567
9646
  * identifies which specific platform transitioned; the `account`
9568
9647
  * block identifies the connected account behind that
@@ -33272,6 +33351,14 @@ export type GetAdData = {
33272
33351
 
33273
33352
  export type GetAdResponse = ({
33274
33353
  ad?: Ad;
33354
+ /**
33355
+ * Google RSA details cache timestamp.
33356
+ */
33357
+ cachedAt?: (string) | null;
33358
+ /**
33359
+ * Whether Google RSA details use the last successful cached response.
33360
+ */
33361
+ stale?: boolean;
33275
33362
  });
33276
33363
 
33277
33364
  export type GetAdError = (ErrorResponse | {
@@ -33280,6 +33367,18 @@ export type GetAdError = (ErrorResponse | {
33280
33367
 
33281
33368
  export type UpdateAdData = {
33282
33369
  body: {
33370
+ /**
33371
+ * Google RSA only. Replaces the complete headline list. No padding or truncation on update.
33372
+ */
33373
+ headlines?: Array<GoogleRsaHeadline>;
33374
+ /**
33375
+ * Google RSA only. Replaces the complete description list. No padding or truncation on update.
33376
+ */
33377
+ descriptions?: Array<GoogleRsaDescription>;
33378
+ /**
33379
+ * Google RSA only. Replaces final URLs. Omitted lists stay unchanged.
33380
+ */
33381
+ finalUrls?: Array<(string)>;
33283
33382
  status?: 'active' | 'paused';
33284
33383
  budget?: {
33285
33384
  /**
@@ -33469,34 +33568,71 @@ export type UpdateAdStatusError = (unknown | {
33469
33568
  error?: string;
33470
33569
  });
33471
33570
 
33571
+ export type ListCampaignAssetsData = {
33572
+ path: {
33573
+ /**
33574
+ * Numeric Google platform id.
33575
+ */
33576
+ campaignId: string;
33577
+ };
33578
+ query: {
33579
+ accountId: string;
33580
+ customerId?: string;
33581
+ };
33582
+ };
33583
+
33584
+ export type ListCampaignAssetsResponse = ({
33585
+ campaignId?: string;
33586
+ sitelinks?: Array<{
33587
+ assetResourceName?: string;
33588
+ campaignAssetResourceName?: string;
33589
+ text?: string;
33590
+ linkUrl?: string;
33591
+ description1?: string;
33592
+ description2?: string;
33593
+ }>;
33594
+ callouts?: Array<{
33595
+ assetResourceName?: string;
33596
+ campaignAssetResourceName?: string;
33597
+ calloutText?: string;
33598
+ }>;
33599
+ structuredSnippets?: Array<{
33600
+ assetResourceName?: string;
33601
+ campaignAssetResourceName?: string;
33602
+ header?: string;
33603
+ values?: Array<(string)>;
33604
+ }>;
33605
+ /**
33606
+ * Time of the cached Google read. Null when no cache was used.
33607
+ */
33608
+ cachedAt?: (string) | null;
33609
+ /**
33610
+ * True when exhausted quota required returning the last successful read.
33611
+ */
33612
+ stale?: boolean;
33613
+ });
33614
+
33615
+ export type ListCampaignAssetsError = (ErrorResponse | {
33616
+ error?: string;
33617
+ } | unknown);
33618
+
33472
33619
  export type AttachCampaignAssetsData = {
33473
33620
  body: {
33474
33621
  /**
33475
- * Zernio Google Ads SocialAccount id. Resolves the customer id + refresh token.
33622
+ * Zernio Google Ads connection id.
33476
33623
  */
33477
33624
  accountId: string;
33478
33625
  /**
33479
- * Numeric Google Ads customer id. Required when the connection has multiple Google Ads accounts; optional (and inferred) when it has only one.
33626
+ * Google customer id without dashes. Required when the connection has multiple customers.
33480
33627
  */
33481
33628
  customerId?: string;
33482
- /**
33483
- * See POST /v1/ads/create sitelinks, same shape.
33484
- */
33485
- sitelinks?: Array<{
33486
- text: string;
33487
- linkUrl: string;
33488
- description1?: string;
33489
- description2?: string;
33490
- }>;
33629
+ sitelinks?: Array<GoogleSitelink>;
33491
33630
  callouts?: Array<(string)>;
33492
- structuredSnippets?: Array<{
33493
- header: 'Amenities' | 'Brands' | 'Courses' | 'Degree programs' | 'Destinations' | 'Featured hotels' | 'Insurance coverage' | 'Models' | 'Neighborhoods' | 'Service catalog' | 'Shows' | 'Styles' | 'Types';
33494
- values: Array<(string)>;
33495
- }>;
33631
+ structuredSnippets?: Array<GoogleStructuredSnippet>;
33496
33632
  };
33497
33633
  path: {
33498
33634
  /**
33499
- * Numeric Google platform campaign id.
33635
+ * Numeric Google platform id.
33500
33636
  */
33501
33637
  campaignId: string;
33502
33638
  };
@@ -33509,10 +33645,205 @@ export type AttachCampaignAssetsResponse = ({
33509
33645
  structuredSnippetAssetResourceNames?: Array<(string)>;
33510
33646
  });
33511
33647
 
33512
- export type AttachCampaignAssetsError = (unknown | {
33648
+ export type AttachCampaignAssetsError = (ErrorResponse | {
33513
33649
  error?: string;
33650
+ } | unknown);
33651
+
33652
+ export type UpdateCampaignAssetsData = {
33653
+ body: {
33654
+ /**
33655
+ * Zernio Google Ads connection id.
33656
+ */
33657
+ accountId: string;
33658
+ /**
33659
+ * Google customer id without dashes. Required when the connection has multiple customers.
33660
+ */
33661
+ customerId?: string;
33662
+ updates: Array<GoogleAssetUpdate>;
33663
+ };
33664
+ path: {
33665
+ /**
33666
+ * Numeric Google platform id.
33667
+ */
33668
+ campaignId: string;
33669
+ };
33670
+ };
33671
+
33672
+ export type UpdateCampaignAssetsResponse = ({
33673
+ updated?: number;
33674
+ });
33675
+
33676
+ export type UpdateCampaignAssetsError = (ErrorResponse | {
33677
+ error?: string;
33678
+ } | unknown);
33679
+
33680
+ export type RemoveCampaignAssetsData = {
33681
+ body: {
33682
+ /**
33683
+ * Zernio Google Ads connection id.
33684
+ */
33685
+ accountId: string;
33686
+ /**
33687
+ * Google customer id without dashes. Required when the connection has multiple customers.
33688
+ */
33689
+ customerId?: string;
33690
+ assetResourceNames: Array<(string)>;
33691
+ campaignAssetResourceNames: Array<(string)>;
33692
+ };
33693
+ path: {
33694
+ /**
33695
+ * Numeric Google platform id.
33696
+ */
33697
+ campaignId: string;
33698
+ };
33699
+ };
33700
+
33701
+ export type RemoveCampaignAssetsResponse = ({
33702
+ removed?: boolean;
33703
+ });
33704
+
33705
+ export type RemoveCampaignAssetsError = (ErrorResponse | {
33706
+ error?: string;
33707
+ } | unknown);
33708
+
33709
+ export type ListAdGroupAssetsData = {
33710
+ path: {
33711
+ /**
33712
+ * Numeric Google platform id.
33713
+ */
33714
+ adSetId: string;
33715
+ };
33716
+ query: {
33717
+ accountId: string;
33718
+ customerId?: string;
33719
+ };
33720
+ };
33721
+
33722
+ export type ListAdGroupAssetsResponse = ({
33723
+ adGroupId?: string;
33724
+ sitelinks?: Array<{
33725
+ assetResourceName?: string;
33726
+ adGroupAssetResourceName?: string;
33727
+ text?: string;
33728
+ linkUrl?: string;
33729
+ description1?: string;
33730
+ description2?: string;
33731
+ }>;
33732
+ callouts?: Array<{
33733
+ assetResourceName?: string;
33734
+ adGroupAssetResourceName?: string;
33735
+ calloutText?: string;
33736
+ }>;
33737
+ structuredSnippets?: Array<{
33738
+ assetResourceName?: string;
33739
+ adGroupAssetResourceName?: string;
33740
+ header?: string;
33741
+ values?: Array<(string)>;
33742
+ }>;
33743
+ /**
33744
+ * Time of the cached Google read. Null when no cache was used.
33745
+ */
33746
+ cachedAt?: (string) | null;
33747
+ /**
33748
+ * True when exhausted quota required returning the last successful read.
33749
+ */
33750
+ stale?: boolean;
33751
+ });
33752
+
33753
+ export type ListAdGroupAssetsError = (ErrorResponse | {
33754
+ error?: string;
33755
+ } | unknown);
33756
+
33757
+ export type AttachAdGroupAssetsData = {
33758
+ body: {
33759
+ /**
33760
+ * Zernio Google Ads connection id.
33761
+ */
33762
+ accountId: string;
33763
+ /**
33764
+ * Google customer id without dashes. Required when the connection has multiple customers.
33765
+ */
33766
+ customerId?: string;
33767
+ sitelinks?: Array<GoogleSitelink>;
33768
+ callouts?: Array<(string)>;
33769
+ structuredSnippets?: Array<GoogleStructuredSnippet>;
33770
+ };
33771
+ path: {
33772
+ /**
33773
+ * Numeric Google platform id.
33774
+ */
33775
+ adSetId: string;
33776
+ };
33777
+ };
33778
+
33779
+ export type AttachAdGroupAssetsResponse = ({
33780
+ adGroupId?: string;
33781
+ sitelinkAssetResourceNames?: Array<(string)>;
33782
+ calloutAssetResourceNames?: Array<(string)>;
33783
+ structuredSnippetAssetResourceNames?: Array<(string)>;
33784
+ });
33785
+
33786
+ export type AttachAdGroupAssetsError = (ErrorResponse | {
33787
+ error?: string;
33788
+ } | unknown);
33789
+
33790
+ export type UpdateAdGroupAssetsData = {
33791
+ body: {
33792
+ /**
33793
+ * Zernio Google Ads connection id.
33794
+ */
33795
+ accountId: string;
33796
+ /**
33797
+ * Google customer id without dashes. Required when the connection has multiple customers.
33798
+ */
33799
+ customerId?: string;
33800
+ updates: Array<GoogleAssetUpdate>;
33801
+ };
33802
+ path: {
33803
+ /**
33804
+ * Numeric Google platform id.
33805
+ */
33806
+ adSetId: string;
33807
+ };
33808
+ };
33809
+
33810
+ export type UpdateAdGroupAssetsResponse = ({
33811
+ updated?: number;
33812
+ });
33813
+
33814
+ export type UpdateAdGroupAssetsError = (ErrorResponse | {
33815
+ error?: string;
33816
+ } | unknown);
33817
+
33818
+ export type RemoveAdGroupAssetsData = {
33819
+ body: {
33820
+ /**
33821
+ * Zernio Google Ads connection id.
33822
+ */
33823
+ accountId: string;
33824
+ /**
33825
+ * Google customer id without dashes. Required when the connection has multiple customers.
33826
+ */
33827
+ customerId?: string;
33828
+ assetResourceNames: Array<(string)>;
33829
+ adGroupAssetResourceNames: Array<(string)>;
33830
+ };
33831
+ path: {
33832
+ /**
33833
+ * Numeric Google platform id.
33834
+ */
33835
+ adSetId: string;
33836
+ };
33837
+ };
33838
+
33839
+ export type RemoveAdGroupAssetsResponse = ({
33840
+ removed?: boolean;
33514
33841
  });
33515
33842
 
33843
+ export type RemoveAdGroupAssetsError = (ErrorResponse | {
33844
+ error?: string;
33845
+ } | unknown);
33846
+
33516
33847
  export type GetCampaignAnalyticsData = {
33517
33848
  path: {
33518
33849
  /**
@@ -35485,13 +35816,7 @@ export type ReplaceCampaignNegativeKeywordListsError = (ErrorResponse | {
35485
35816
 
35486
35817
  export type ListAccountCalloutsData = {
35487
35818
  query: {
35488
- /**
35489
- * Google ads SocialAccount id.
35490
- */
35491
35819
  accountId: string;
35492
- /**
35493
- * Numeric Google Ads customer id (no dashes). Defaults to the account's connected customer.
35494
- */
35495
35820
  customerId?: string;
35496
35821
  };
35497
35822
  };
@@ -35500,18 +35825,15 @@ export type ListAccountCalloutsResponse = ({
35500
35825
  customerId?: string;
35501
35826
  callouts?: Array<{
35502
35827
  assetId?: string;
35503
- text?: string;
35504
- /**
35505
- * customer_asset.status, e.g. ENABLED, REMOVED, PAUSED.
35506
- */
35507
35828
  status?: string;
35829
+ text?: string;
35508
35830
  }>;
35509
35831
  /**
35510
- * When this list was fetched from Google. Null when it was never served from cache.
35832
+ * Time of the cached Google read. Null when no cache was used.
35511
35833
  */
35512
35834
  cachedAt?: (string) | null;
35513
35835
  /**
35514
- * True when Google's daily API quota was exhausted and this is the last successful fetch, not a live read.
35836
+ * True when exhausted quota required returning the last successful read.
35515
35837
  */
35516
35838
  stale?: boolean;
35517
35839
  });
@@ -35523,16 +35845,13 @@ export type ListAccountCalloutsError = (ErrorResponse | {
35523
35845
  export type AddAccountCalloutsData = {
35524
35846
  body: {
35525
35847
  /**
35526
- * Zernio SocialAccount id owning the Google Ads connection.
35848
+ * Zernio Google Ads connection id.
35527
35849
  */
35528
35850
  accountId: string;
35529
35851
  /**
35530
- * Numeric Google Ads customer id. Only required when the connection has more than one.
35852
+ * Google customer id without dashes. Required when the connection has multiple customers.
35531
35853
  */
35532
35854
  customerId?: string;
35533
- /**
35534
- * Callout text, 1-25 characters each; up to 20 per request (Google's CalloutAsset limits).
35535
- */
35536
35855
  callouts: Array<(string)>;
35537
35856
  };
35538
35857
  };
@@ -35549,19 +35868,47 @@ export type AddAccountCalloutsError = (ErrorResponse | {
35549
35868
  error?: string;
35550
35869
  } | unknown);
35551
35870
 
35552
- export type RemoveAccountCalloutData = {
35871
+ export type UpdateAccountCalloutsData = {
35553
35872
  body: {
35554
35873
  /**
35555
- * Zernio SocialAccount id owning the Google Ads connection.
35874
+ * Zernio Google Ads connection id.
35556
35875
  */
35557
35876
  accountId: string;
35558
35877
  /**
35559
- * Numeric Google Ads customer id. Only required when the connection has more than one.
35878
+ * Google customer id without dashes. Required when the connection has multiple customers.
35560
35879
  */
35561
35880
  customerId?: string;
35881
+ updates: Array<{
35882
+ /**
35883
+ * Asset resource name returned by a list operation. Must belong to the selected customer.
35884
+ */
35885
+ assetResourceName: string;
35886
+ calloutAsset?: {
35887
+ calloutText: string;
35888
+ };
35889
+ }>;
35890
+ };
35891
+ };
35892
+
35893
+ export type UpdateAccountCalloutsResponse = ({
35894
+ updated?: number;
35895
+ customerId?: string;
35896
+ });
35897
+
35898
+ export type UpdateAccountCalloutsError = (ErrorResponse | {
35899
+ error?: string;
35900
+ } | unknown);
35901
+
35902
+ export type RemoveAccountCalloutData = {
35903
+ body: {
35904
+ /**
35905
+ * Zernio Google Ads connection id.
35906
+ */
35907
+ accountId: string;
35562
35908
  /**
35563
- * Numeric asset id from GET /v1/ads/accounts/callouts.
35909
+ * Google customer id without dashes. Required when the connection has multiple customers.
35564
35910
  */
35911
+ customerId?: string;
35565
35912
  assetId: string;
35566
35913
  };
35567
35914
  };
@@ -35575,6 +35922,239 @@ export type RemoveAccountCalloutError = (ErrorResponse | {
35575
35922
  error?: string;
35576
35923
  } | unknown);
35577
35924
 
35925
+ export type ListAccountSitelinksData = {
35926
+ query: {
35927
+ accountId: string;
35928
+ customerId?: string;
35929
+ };
35930
+ };
35931
+
35932
+ export type ListAccountSitelinksResponse = ({
35933
+ customerId?: string;
35934
+ sitelinks?: Array<{
35935
+ assetId?: string;
35936
+ status?: string;
35937
+ assetResourceName?: string;
35938
+ customerAssetResourceName?: string;
35939
+ text?: string;
35940
+ linkUrl?: string;
35941
+ description1?: string;
35942
+ description2?: string;
35943
+ }>;
35944
+ /**
35945
+ * Time of the cached Google read. Null when no cache was used.
35946
+ */
35947
+ cachedAt?: (string) | null;
35948
+ /**
35949
+ * True when exhausted quota required returning the last successful read.
35950
+ */
35951
+ stale?: boolean;
35952
+ });
35953
+
35954
+ export type ListAccountSitelinksError = (ErrorResponse | {
35955
+ error?: string;
35956
+ } | unknown);
35957
+
35958
+ export type AddAccountSitelinksData = {
35959
+ body: {
35960
+ /**
35961
+ * Zernio Google Ads connection id.
35962
+ */
35963
+ accountId: string;
35964
+ /**
35965
+ * Google customer id without dashes. Required when the connection has multiple customers.
35966
+ */
35967
+ customerId?: string;
35968
+ sitelinks: Array<GoogleSitelink>;
35969
+ };
35970
+ };
35971
+
35972
+ export type AddAccountSitelinksResponse = ({
35973
+ customerId?: string;
35974
+ sitelinks?: Array<{
35975
+ assetId?: string;
35976
+ text?: string;
35977
+ linkUrl?: string;
35978
+ description1?: string;
35979
+ description2?: string;
35980
+ }>;
35981
+ });
35982
+
35983
+ export type AddAccountSitelinksError = (ErrorResponse | {
35984
+ error?: string;
35985
+ } | unknown);
35986
+
35987
+ export type UpdateAccountSitelinksData = {
35988
+ body: {
35989
+ /**
35990
+ * Zernio Google Ads connection id.
35991
+ */
35992
+ accountId: string;
35993
+ /**
35994
+ * Google customer id without dashes. Required when the connection has multiple customers.
35995
+ */
35996
+ customerId?: string;
35997
+ updates: Array<{
35998
+ /**
35999
+ * Asset resource name returned by a list operation. Must belong to the selected customer.
36000
+ */
36001
+ assetResourceName: string;
36002
+ sitelinkAsset?: {
36003
+ linkText?: string;
36004
+ description1?: string;
36005
+ description2?: string;
36006
+ /**
36007
+ * Alias for finalUrls with one URL. Do not supply both.
36008
+ */
36009
+ linkUrl?: string;
36010
+ };
36011
+ finalUrls?: Array<(string)>;
36012
+ }>;
36013
+ };
36014
+ };
36015
+
36016
+ export type UpdateAccountSitelinksResponse = ({
36017
+ updated?: number;
36018
+ customerId?: string;
36019
+ });
36020
+
36021
+ export type UpdateAccountSitelinksError = (ErrorResponse | {
36022
+ error?: string;
36023
+ } | unknown);
36024
+
36025
+ export type RemoveAccountSitelinkData = {
36026
+ body: {
36027
+ /**
36028
+ * Zernio Google Ads connection id.
36029
+ */
36030
+ accountId: string;
36031
+ /**
36032
+ * Google customer id without dashes. Required when the connection has multiple customers.
36033
+ */
36034
+ customerId?: string;
36035
+ assetId: string;
36036
+ };
36037
+ };
36038
+
36039
+ export type RemoveAccountSitelinkResponse = ({
36040
+ removed?: boolean;
36041
+ customerId?: string;
36042
+ });
36043
+
36044
+ export type RemoveAccountSitelinkError = (ErrorResponse | {
36045
+ error?: string;
36046
+ } | unknown);
36047
+
36048
+ export type ListAccountStructuredSnippetsData = {
36049
+ query: {
36050
+ accountId: string;
36051
+ customerId?: string;
36052
+ };
36053
+ };
36054
+
36055
+ export type ListAccountStructuredSnippetsResponse = ({
36056
+ customerId?: string;
36057
+ structuredSnippets?: Array<{
36058
+ assetId?: string;
36059
+ status?: string;
36060
+ assetResourceName?: string;
36061
+ customerAssetResourceName?: string;
36062
+ header?: string;
36063
+ values?: Array<(string)>;
36064
+ }>;
36065
+ /**
36066
+ * Time of the cached Google read. Null when no cache was used.
36067
+ */
36068
+ cachedAt?: (string) | null;
36069
+ /**
36070
+ * True when exhausted quota required returning the last successful read.
36071
+ */
36072
+ stale?: boolean;
36073
+ });
36074
+
36075
+ export type ListAccountStructuredSnippetsError = (ErrorResponse | {
36076
+ error?: string;
36077
+ } | unknown);
36078
+
36079
+ export type AddAccountStructuredSnippetsData = {
36080
+ body: {
36081
+ /**
36082
+ * Zernio Google Ads connection id.
36083
+ */
36084
+ accountId: string;
36085
+ /**
36086
+ * Google customer id without dashes. Required when the connection has multiple customers.
36087
+ */
36088
+ customerId?: string;
36089
+ structuredSnippets: Array<GoogleStructuredSnippet>;
36090
+ };
36091
+ };
36092
+
36093
+ export type AddAccountStructuredSnippetsResponse = ({
36094
+ customerId?: string;
36095
+ structuredSnippets?: Array<{
36096
+ assetId?: string;
36097
+ header?: 'Amenities' | 'Brands' | 'Courses' | 'Degree programs' | 'Destinations' | 'Featured hotels' | 'Insurance coverage' | 'Models' | 'Neighborhoods' | 'Service catalog' | 'Shows' | 'Styles' | 'Types';
36098
+ values?: Array<(string)>;
36099
+ }>;
36100
+ });
36101
+
36102
+ export type AddAccountStructuredSnippetsError = (ErrorResponse | {
36103
+ error?: string;
36104
+ } | unknown);
36105
+
36106
+ export type UpdateAccountStructuredSnippetsData = {
36107
+ body: {
36108
+ /**
36109
+ * Zernio Google Ads connection id.
36110
+ */
36111
+ accountId: string;
36112
+ /**
36113
+ * Google customer id without dashes. Required when the connection has multiple customers.
36114
+ */
36115
+ customerId?: string;
36116
+ updates: Array<{
36117
+ /**
36118
+ * Asset resource name returned by a list operation. Must belong to the selected customer.
36119
+ */
36120
+ assetResourceName: string;
36121
+ structuredSnippetAsset?: GoogleStructuredSnippet;
36122
+ }>;
36123
+ };
36124
+ };
36125
+
36126
+ export type UpdateAccountStructuredSnippetsResponse = ({
36127
+ updated?: number;
36128
+ customerId?: string;
36129
+ });
36130
+
36131
+ export type UpdateAccountStructuredSnippetsError = (ErrorResponse | {
36132
+ error?: string;
36133
+ } | unknown);
36134
+
36135
+ export type RemoveAccountStructuredSnippetData = {
36136
+ body: {
36137
+ /**
36138
+ * Zernio Google Ads connection id.
36139
+ */
36140
+ accountId: string;
36141
+ /**
36142
+ * Google customer id without dashes. Required when the connection has multiple customers.
36143
+ */
36144
+ customerId?: string;
36145
+ assetId: string;
36146
+ };
36147
+ };
36148
+
36149
+ export type RemoveAccountStructuredSnippetResponse = ({
36150
+ removed?: boolean;
36151
+ customerId?: string;
36152
+ });
36153
+
36154
+ export type RemoveAccountStructuredSnippetError = (ErrorResponse | {
36155
+ error?: string;
36156
+ } | unknown);
36157
+
35578
36158
  export type GetAdAccountFinanceData = {
35579
36159
  query: {
35580
36160
  /**
@@ -36931,13 +37511,13 @@ export type CreateStandaloneAdData = {
36931
37511
  */
36932
37512
  campaignNegativeKeywords?: Array<KeywordEntry>;
36933
37513
  /**
36934
- * Google Search RSA only. Extra headlines.
37514
+ * Google Search RSA only. Extra text assets as strings or objects with text and optional pinnedField. Existing string input remains supported. The effective create lists, including primary text and deduplication, must contain 3-15 headlines and 2-4 descriptions; excess entries return 400.
36935
37515
  */
36936
- additionalHeadlines?: Array<(string)>;
37516
+ additionalHeadlines?: Array<(string | GoogleRsaHeadline)>;
36937
37517
  /**
36938
- * Google Search RSA only. Extra descriptions.
37518
+ * Google Search RSA only. Extra text assets as strings or objects with text and optional pinnedField. Existing string input remains supported. The effective create lists, including primary text and deduplication, must contain 3-15 headlines and 2-4 descriptions; excess entries return 400.
36939
37519
  */
36940
- additionalDescriptions?: Array<(string)>;
37520
+ additionalDescriptions?: Array<(string | GoogleRsaDescription)>;
36941
37521
  /**
36942
37522
  * Google Search only. Sitelink assets to create and attach at the campaign level.
36943
37523
  * Each entry becomes an Asset (with sitelink_asset + Asset.final_urls) plus a