@zernio/node 0.2.732 → 0.2.733

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
  */
@@ -33272,6 +33348,14 @@ export type GetAdData = {
33272
33348
 
33273
33349
  export type GetAdResponse = ({
33274
33350
  ad?: Ad;
33351
+ /**
33352
+ * Google RSA details cache timestamp.
33353
+ */
33354
+ cachedAt?: (string) | null;
33355
+ /**
33356
+ * Whether Google RSA details use the last successful cached response.
33357
+ */
33358
+ stale?: boolean;
33275
33359
  });
33276
33360
 
33277
33361
  export type GetAdError = (ErrorResponse | {
@@ -33280,6 +33364,18 @@ export type GetAdError = (ErrorResponse | {
33280
33364
 
33281
33365
  export type UpdateAdData = {
33282
33366
  body: {
33367
+ /**
33368
+ * Google RSA only. Replaces the complete headline list. No padding or truncation on update.
33369
+ */
33370
+ headlines?: Array<GoogleRsaHeadline>;
33371
+ /**
33372
+ * Google RSA only. Replaces the complete description list. No padding or truncation on update.
33373
+ */
33374
+ descriptions?: Array<GoogleRsaDescription>;
33375
+ /**
33376
+ * Google RSA only. Replaces final URLs. Omitted lists stay unchanged.
33377
+ */
33378
+ finalUrls?: Array<(string)>;
33283
33379
  status?: 'active' | 'paused';
33284
33380
  budget?: {
33285
33381
  /**
@@ -33469,34 +33565,71 @@ export type UpdateAdStatusError = (unknown | {
33469
33565
  error?: string;
33470
33566
  });
33471
33567
 
33568
+ export type ListCampaignAssetsData = {
33569
+ path: {
33570
+ /**
33571
+ * Numeric Google platform id.
33572
+ */
33573
+ campaignId: string;
33574
+ };
33575
+ query: {
33576
+ accountId: string;
33577
+ customerId?: string;
33578
+ };
33579
+ };
33580
+
33581
+ export type ListCampaignAssetsResponse = ({
33582
+ campaignId?: string;
33583
+ sitelinks?: Array<{
33584
+ assetResourceName?: string;
33585
+ campaignAssetResourceName?: string;
33586
+ text?: string;
33587
+ linkUrl?: string;
33588
+ description1?: string;
33589
+ description2?: string;
33590
+ }>;
33591
+ callouts?: Array<{
33592
+ assetResourceName?: string;
33593
+ campaignAssetResourceName?: string;
33594
+ calloutText?: string;
33595
+ }>;
33596
+ structuredSnippets?: Array<{
33597
+ assetResourceName?: string;
33598
+ campaignAssetResourceName?: string;
33599
+ header?: string;
33600
+ values?: Array<(string)>;
33601
+ }>;
33602
+ /**
33603
+ * Time of the cached Google read. Null when no cache was used.
33604
+ */
33605
+ cachedAt?: (string) | null;
33606
+ /**
33607
+ * True when exhausted quota required returning the last successful read.
33608
+ */
33609
+ stale?: boolean;
33610
+ });
33611
+
33612
+ export type ListCampaignAssetsError = (ErrorResponse | {
33613
+ error?: string;
33614
+ } | unknown);
33615
+
33472
33616
  export type AttachCampaignAssetsData = {
33473
33617
  body: {
33474
33618
  /**
33475
- * Zernio Google Ads SocialAccount id. Resolves the customer id + refresh token.
33619
+ * Zernio Google Ads connection id.
33476
33620
  */
33477
33621
  accountId: string;
33478
33622
  /**
33479
- * Numeric Google Ads customer id. Required when the connection has multiple Google Ads accounts; optional (and inferred) when it has only one.
33623
+ * Google customer id without dashes. Required when the connection has multiple customers.
33480
33624
  */
33481
33625
  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
- }>;
33626
+ sitelinks?: Array<GoogleSitelink>;
33491
33627
  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
- }>;
33628
+ structuredSnippets?: Array<GoogleStructuredSnippet>;
33496
33629
  };
33497
33630
  path: {
33498
33631
  /**
33499
- * Numeric Google platform campaign id.
33632
+ * Numeric Google platform id.
33500
33633
  */
33501
33634
  campaignId: string;
33502
33635
  };
@@ -33509,10 +33642,205 @@ export type AttachCampaignAssetsResponse = ({
33509
33642
  structuredSnippetAssetResourceNames?: Array<(string)>;
33510
33643
  });
33511
33644
 
33512
- export type AttachCampaignAssetsError = (unknown | {
33645
+ export type AttachCampaignAssetsError = (ErrorResponse | {
33513
33646
  error?: string;
33647
+ } | unknown);
33648
+
33649
+ export type UpdateCampaignAssetsData = {
33650
+ body: {
33651
+ /**
33652
+ * Zernio Google Ads connection id.
33653
+ */
33654
+ accountId: string;
33655
+ /**
33656
+ * Google customer id without dashes. Required when the connection has multiple customers.
33657
+ */
33658
+ customerId?: string;
33659
+ updates: Array<GoogleAssetUpdate>;
33660
+ };
33661
+ path: {
33662
+ /**
33663
+ * Numeric Google platform id.
33664
+ */
33665
+ campaignId: string;
33666
+ };
33667
+ };
33668
+
33669
+ export type UpdateCampaignAssetsResponse = ({
33670
+ updated?: number;
33671
+ });
33672
+
33673
+ export type UpdateCampaignAssetsError = (ErrorResponse | {
33674
+ error?: string;
33675
+ } | unknown);
33676
+
33677
+ export type RemoveCampaignAssetsData = {
33678
+ body: {
33679
+ /**
33680
+ * Zernio Google Ads connection id.
33681
+ */
33682
+ accountId: string;
33683
+ /**
33684
+ * Google customer id without dashes. Required when the connection has multiple customers.
33685
+ */
33686
+ customerId?: string;
33687
+ assetResourceNames: Array<(string)>;
33688
+ campaignAssetResourceNames: Array<(string)>;
33689
+ };
33690
+ path: {
33691
+ /**
33692
+ * Numeric Google platform id.
33693
+ */
33694
+ campaignId: string;
33695
+ };
33696
+ };
33697
+
33698
+ export type RemoveCampaignAssetsResponse = ({
33699
+ removed?: boolean;
33700
+ });
33701
+
33702
+ export type RemoveCampaignAssetsError = (ErrorResponse | {
33703
+ error?: string;
33704
+ } | unknown);
33705
+
33706
+ export type ListAdGroupAssetsData = {
33707
+ path: {
33708
+ /**
33709
+ * Numeric Google platform id.
33710
+ */
33711
+ adSetId: string;
33712
+ };
33713
+ query: {
33714
+ accountId: string;
33715
+ customerId?: string;
33716
+ };
33717
+ };
33718
+
33719
+ export type ListAdGroupAssetsResponse = ({
33720
+ adGroupId?: string;
33721
+ sitelinks?: Array<{
33722
+ assetResourceName?: string;
33723
+ adGroupAssetResourceName?: string;
33724
+ text?: string;
33725
+ linkUrl?: string;
33726
+ description1?: string;
33727
+ description2?: string;
33728
+ }>;
33729
+ callouts?: Array<{
33730
+ assetResourceName?: string;
33731
+ adGroupAssetResourceName?: string;
33732
+ calloutText?: string;
33733
+ }>;
33734
+ structuredSnippets?: Array<{
33735
+ assetResourceName?: string;
33736
+ adGroupAssetResourceName?: string;
33737
+ header?: string;
33738
+ values?: Array<(string)>;
33739
+ }>;
33740
+ /**
33741
+ * Time of the cached Google read. Null when no cache was used.
33742
+ */
33743
+ cachedAt?: (string) | null;
33744
+ /**
33745
+ * True when exhausted quota required returning the last successful read.
33746
+ */
33747
+ stale?: boolean;
33748
+ });
33749
+
33750
+ export type ListAdGroupAssetsError = (ErrorResponse | {
33751
+ error?: string;
33752
+ } | unknown);
33753
+
33754
+ export type AttachAdGroupAssetsData = {
33755
+ body: {
33756
+ /**
33757
+ * Zernio Google Ads connection id.
33758
+ */
33759
+ accountId: string;
33760
+ /**
33761
+ * Google customer id without dashes. Required when the connection has multiple customers.
33762
+ */
33763
+ customerId?: string;
33764
+ sitelinks?: Array<GoogleSitelink>;
33765
+ callouts?: Array<(string)>;
33766
+ structuredSnippets?: Array<GoogleStructuredSnippet>;
33767
+ };
33768
+ path: {
33769
+ /**
33770
+ * Numeric Google platform id.
33771
+ */
33772
+ adSetId: string;
33773
+ };
33774
+ };
33775
+
33776
+ export type AttachAdGroupAssetsResponse = ({
33777
+ adGroupId?: string;
33778
+ sitelinkAssetResourceNames?: Array<(string)>;
33779
+ calloutAssetResourceNames?: Array<(string)>;
33780
+ structuredSnippetAssetResourceNames?: Array<(string)>;
33781
+ });
33782
+
33783
+ export type AttachAdGroupAssetsError = (ErrorResponse | {
33784
+ error?: string;
33785
+ } | unknown);
33786
+
33787
+ export type UpdateAdGroupAssetsData = {
33788
+ body: {
33789
+ /**
33790
+ * Zernio Google Ads connection id.
33791
+ */
33792
+ accountId: string;
33793
+ /**
33794
+ * Google customer id without dashes. Required when the connection has multiple customers.
33795
+ */
33796
+ customerId?: string;
33797
+ updates: Array<GoogleAssetUpdate>;
33798
+ };
33799
+ path: {
33800
+ /**
33801
+ * Numeric Google platform id.
33802
+ */
33803
+ adSetId: string;
33804
+ };
33805
+ };
33806
+
33807
+ export type UpdateAdGroupAssetsResponse = ({
33808
+ updated?: number;
33809
+ });
33810
+
33811
+ export type UpdateAdGroupAssetsError = (ErrorResponse | {
33812
+ error?: string;
33813
+ } | unknown);
33814
+
33815
+ export type RemoveAdGroupAssetsData = {
33816
+ body: {
33817
+ /**
33818
+ * Zernio Google Ads connection id.
33819
+ */
33820
+ accountId: string;
33821
+ /**
33822
+ * Google customer id without dashes. Required when the connection has multiple customers.
33823
+ */
33824
+ customerId?: string;
33825
+ assetResourceNames: Array<(string)>;
33826
+ adGroupAssetResourceNames: Array<(string)>;
33827
+ };
33828
+ path: {
33829
+ /**
33830
+ * Numeric Google platform id.
33831
+ */
33832
+ adSetId: string;
33833
+ };
33834
+ };
33835
+
33836
+ export type RemoveAdGroupAssetsResponse = ({
33837
+ removed?: boolean;
33514
33838
  });
33515
33839
 
33840
+ export type RemoveAdGroupAssetsError = (ErrorResponse | {
33841
+ error?: string;
33842
+ } | unknown);
33843
+
33516
33844
  export type GetCampaignAnalyticsData = {
33517
33845
  path: {
33518
33846
  /**
@@ -35485,13 +35813,7 @@ export type ReplaceCampaignNegativeKeywordListsError = (ErrorResponse | {
35485
35813
 
35486
35814
  export type ListAccountCalloutsData = {
35487
35815
  query: {
35488
- /**
35489
- * Google ads SocialAccount id.
35490
- */
35491
35816
  accountId: string;
35492
- /**
35493
- * Numeric Google Ads customer id (no dashes). Defaults to the account's connected customer.
35494
- */
35495
35817
  customerId?: string;
35496
35818
  };
35497
35819
  };
@@ -35500,18 +35822,15 @@ export type ListAccountCalloutsResponse = ({
35500
35822
  customerId?: string;
35501
35823
  callouts?: Array<{
35502
35824
  assetId?: string;
35503
- text?: string;
35504
- /**
35505
- * customer_asset.status, e.g. ENABLED, REMOVED, PAUSED.
35506
- */
35507
35825
  status?: string;
35826
+ text?: string;
35508
35827
  }>;
35509
35828
  /**
35510
- * When this list was fetched from Google. Null when it was never served from cache.
35829
+ * Time of the cached Google read. Null when no cache was used.
35511
35830
  */
35512
35831
  cachedAt?: (string) | null;
35513
35832
  /**
35514
- * True when Google's daily API quota was exhausted and this is the last successful fetch, not a live read.
35833
+ * True when exhausted quota required returning the last successful read.
35515
35834
  */
35516
35835
  stale?: boolean;
35517
35836
  });
@@ -35523,16 +35842,13 @@ export type ListAccountCalloutsError = (ErrorResponse | {
35523
35842
  export type AddAccountCalloutsData = {
35524
35843
  body: {
35525
35844
  /**
35526
- * Zernio SocialAccount id owning the Google Ads connection.
35845
+ * Zernio Google Ads connection id.
35527
35846
  */
35528
35847
  accountId: string;
35529
35848
  /**
35530
- * Numeric Google Ads customer id. Only required when the connection has more than one.
35849
+ * Google customer id without dashes. Required when the connection has multiple customers.
35531
35850
  */
35532
35851
  customerId?: string;
35533
- /**
35534
- * Callout text, 1-25 characters each; up to 20 per request (Google's CalloutAsset limits).
35535
- */
35536
35852
  callouts: Array<(string)>;
35537
35853
  };
35538
35854
  };
@@ -35549,19 +35865,47 @@ export type AddAccountCalloutsError = (ErrorResponse | {
35549
35865
  error?: string;
35550
35866
  } | unknown);
35551
35867
 
35552
- export type RemoveAccountCalloutData = {
35868
+ export type UpdateAccountCalloutsData = {
35553
35869
  body: {
35554
35870
  /**
35555
- * Zernio SocialAccount id owning the Google Ads connection.
35871
+ * Zernio Google Ads connection id.
35556
35872
  */
35557
35873
  accountId: string;
35558
35874
  /**
35559
- * Numeric Google Ads customer id. Only required when the connection has more than one.
35875
+ * Google customer id without dashes. Required when the connection has multiple customers.
35560
35876
  */
35561
35877
  customerId?: string;
35878
+ updates: Array<{
35879
+ /**
35880
+ * Asset resource name returned by a list operation. Must belong to the selected customer.
35881
+ */
35882
+ assetResourceName: string;
35883
+ calloutAsset?: {
35884
+ calloutText: string;
35885
+ };
35886
+ }>;
35887
+ };
35888
+ };
35889
+
35890
+ export type UpdateAccountCalloutsResponse = ({
35891
+ updated?: number;
35892
+ customerId?: string;
35893
+ });
35894
+
35895
+ export type UpdateAccountCalloutsError = (ErrorResponse | {
35896
+ error?: string;
35897
+ } | unknown);
35898
+
35899
+ export type RemoveAccountCalloutData = {
35900
+ body: {
35901
+ /**
35902
+ * Zernio Google Ads connection id.
35903
+ */
35904
+ accountId: string;
35562
35905
  /**
35563
- * Numeric asset id from GET /v1/ads/accounts/callouts.
35906
+ * Google customer id without dashes. Required when the connection has multiple customers.
35564
35907
  */
35908
+ customerId?: string;
35565
35909
  assetId: string;
35566
35910
  };
35567
35911
  };
@@ -35575,6 +35919,239 @@ export type RemoveAccountCalloutError = (ErrorResponse | {
35575
35919
  error?: string;
35576
35920
  } | unknown);
35577
35921
 
35922
+ export type ListAccountSitelinksData = {
35923
+ query: {
35924
+ accountId: string;
35925
+ customerId?: string;
35926
+ };
35927
+ };
35928
+
35929
+ export type ListAccountSitelinksResponse = ({
35930
+ customerId?: string;
35931
+ sitelinks?: Array<{
35932
+ assetId?: string;
35933
+ status?: string;
35934
+ assetResourceName?: string;
35935
+ customerAssetResourceName?: string;
35936
+ text?: string;
35937
+ linkUrl?: string;
35938
+ description1?: string;
35939
+ description2?: string;
35940
+ }>;
35941
+ /**
35942
+ * Time of the cached Google read. Null when no cache was used.
35943
+ */
35944
+ cachedAt?: (string) | null;
35945
+ /**
35946
+ * True when exhausted quota required returning the last successful read.
35947
+ */
35948
+ stale?: boolean;
35949
+ });
35950
+
35951
+ export type ListAccountSitelinksError = (ErrorResponse | {
35952
+ error?: string;
35953
+ } | unknown);
35954
+
35955
+ export type AddAccountSitelinksData = {
35956
+ body: {
35957
+ /**
35958
+ * Zernio Google Ads connection id.
35959
+ */
35960
+ accountId: string;
35961
+ /**
35962
+ * Google customer id without dashes. Required when the connection has multiple customers.
35963
+ */
35964
+ customerId?: string;
35965
+ sitelinks: Array<GoogleSitelink>;
35966
+ };
35967
+ };
35968
+
35969
+ export type AddAccountSitelinksResponse = ({
35970
+ customerId?: string;
35971
+ sitelinks?: Array<{
35972
+ assetId?: string;
35973
+ text?: string;
35974
+ linkUrl?: string;
35975
+ description1?: string;
35976
+ description2?: string;
35977
+ }>;
35978
+ });
35979
+
35980
+ export type AddAccountSitelinksError = (ErrorResponse | {
35981
+ error?: string;
35982
+ } | unknown);
35983
+
35984
+ export type UpdateAccountSitelinksData = {
35985
+ body: {
35986
+ /**
35987
+ * Zernio Google Ads connection id.
35988
+ */
35989
+ accountId: string;
35990
+ /**
35991
+ * Google customer id without dashes. Required when the connection has multiple customers.
35992
+ */
35993
+ customerId?: string;
35994
+ updates: Array<{
35995
+ /**
35996
+ * Asset resource name returned by a list operation. Must belong to the selected customer.
35997
+ */
35998
+ assetResourceName: string;
35999
+ sitelinkAsset?: {
36000
+ linkText?: string;
36001
+ description1?: string;
36002
+ description2?: string;
36003
+ /**
36004
+ * Alias for finalUrls with one URL. Do not supply both.
36005
+ */
36006
+ linkUrl?: string;
36007
+ };
36008
+ finalUrls?: Array<(string)>;
36009
+ }>;
36010
+ };
36011
+ };
36012
+
36013
+ export type UpdateAccountSitelinksResponse = ({
36014
+ updated?: number;
36015
+ customerId?: string;
36016
+ });
36017
+
36018
+ export type UpdateAccountSitelinksError = (ErrorResponse | {
36019
+ error?: string;
36020
+ } | unknown);
36021
+
36022
+ export type RemoveAccountSitelinkData = {
36023
+ body: {
36024
+ /**
36025
+ * Zernio Google Ads connection id.
36026
+ */
36027
+ accountId: string;
36028
+ /**
36029
+ * Google customer id without dashes. Required when the connection has multiple customers.
36030
+ */
36031
+ customerId?: string;
36032
+ assetId: string;
36033
+ };
36034
+ };
36035
+
36036
+ export type RemoveAccountSitelinkResponse = ({
36037
+ removed?: boolean;
36038
+ customerId?: string;
36039
+ });
36040
+
36041
+ export type RemoveAccountSitelinkError = (ErrorResponse | {
36042
+ error?: string;
36043
+ } | unknown);
36044
+
36045
+ export type ListAccountStructuredSnippetsData = {
36046
+ query: {
36047
+ accountId: string;
36048
+ customerId?: string;
36049
+ };
36050
+ };
36051
+
36052
+ export type ListAccountStructuredSnippetsResponse = ({
36053
+ customerId?: string;
36054
+ structuredSnippets?: Array<{
36055
+ assetId?: string;
36056
+ status?: string;
36057
+ assetResourceName?: string;
36058
+ customerAssetResourceName?: string;
36059
+ header?: string;
36060
+ values?: Array<(string)>;
36061
+ }>;
36062
+ /**
36063
+ * Time of the cached Google read. Null when no cache was used.
36064
+ */
36065
+ cachedAt?: (string) | null;
36066
+ /**
36067
+ * True when exhausted quota required returning the last successful read.
36068
+ */
36069
+ stale?: boolean;
36070
+ });
36071
+
36072
+ export type ListAccountStructuredSnippetsError = (ErrorResponse | {
36073
+ error?: string;
36074
+ } | unknown);
36075
+
36076
+ export type AddAccountStructuredSnippetsData = {
36077
+ body: {
36078
+ /**
36079
+ * Zernio Google Ads connection id.
36080
+ */
36081
+ accountId: string;
36082
+ /**
36083
+ * Google customer id without dashes. Required when the connection has multiple customers.
36084
+ */
36085
+ customerId?: string;
36086
+ structuredSnippets: Array<GoogleStructuredSnippet>;
36087
+ };
36088
+ };
36089
+
36090
+ export type AddAccountStructuredSnippetsResponse = ({
36091
+ customerId?: string;
36092
+ structuredSnippets?: Array<{
36093
+ assetId?: string;
36094
+ header?: 'Amenities' | 'Brands' | 'Courses' | 'Degree programs' | 'Destinations' | 'Featured hotels' | 'Insurance coverage' | 'Models' | 'Neighborhoods' | 'Service catalog' | 'Shows' | 'Styles' | 'Types';
36095
+ values?: Array<(string)>;
36096
+ }>;
36097
+ });
36098
+
36099
+ export type AddAccountStructuredSnippetsError = (ErrorResponse | {
36100
+ error?: string;
36101
+ } | unknown);
36102
+
36103
+ export type UpdateAccountStructuredSnippetsData = {
36104
+ body: {
36105
+ /**
36106
+ * Zernio Google Ads connection id.
36107
+ */
36108
+ accountId: string;
36109
+ /**
36110
+ * Google customer id without dashes. Required when the connection has multiple customers.
36111
+ */
36112
+ customerId?: string;
36113
+ updates: Array<{
36114
+ /**
36115
+ * Asset resource name returned by a list operation. Must belong to the selected customer.
36116
+ */
36117
+ assetResourceName: string;
36118
+ structuredSnippetAsset?: GoogleStructuredSnippet;
36119
+ }>;
36120
+ };
36121
+ };
36122
+
36123
+ export type UpdateAccountStructuredSnippetsResponse = ({
36124
+ updated?: number;
36125
+ customerId?: string;
36126
+ });
36127
+
36128
+ export type UpdateAccountStructuredSnippetsError = (ErrorResponse | {
36129
+ error?: string;
36130
+ } | unknown);
36131
+
36132
+ export type RemoveAccountStructuredSnippetData = {
36133
+ body: {
36134
+ /**
36135
+ * Zernio Google Ads connection id.
36136
+ */
36137
+ accountId: string;
36138
+ /**
36139
+ * Google customer id without dashes. Required when the connection has multiple customers.
36140
+ */
36141
+ customerId?: string;
36142
+ assetId: string;
36143
+ };
36144
+ };
36145
+
36146
+ export type RemoveAccountStructuredSnippetResponse = ({
36147
+ removed?: boolean;
36148
+ customerId?: string;
36149
+ });
36150
+
36151
+ export type RemoveAccountStructuredSnippetError = (ErrorResponse | {
36152
+ error?: string;
36153
+ } | unknown);
36154
+
35578
36155
  export type GetAdAccountFinanceData = {
35579
36156
  query: {
35580
36157
  /**
@@ -36931,13 +37508,13 @@ export type CreateStandaloneAdData = {
36931
37508
  */
36932
37509
  campaignNegativeKeywords?: Array<KeywordEntry>;
36933
37510
  /**
36934
- * Google Search RSA only. Extra headlines.
37511
+ * 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
37512
  */
36936
- additionalHeadlines?: Array<(string)>;
37513
+ additionalHeadlines?: Array<(string | GoogleRsaHeadline)>;
36937
37514
  /**
36938
- * Google Search RSA only. Extra descriptions.
37515
+ * 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
37516
  */
36940
- additionalDescriptions?: Array<(string)>;
37517
+ additionalDescriptions?: Array<(string | GoogleRsaDescription)>;
36941
37518
  /**
36942
37519
  * Google Search only. Sitelink assets to create and attach at the campaign level.
36943
37520
  * Each entry becomes an Asset (with sitelink_asset + Asset.final_urls) plus a