@postrun/js 2.18.0 → 2.20.0

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.
package/dist/index.cjs CHANGED
@@ -1695,6 +1695,612 @@ z__namespace.object({
1695
1695
  dry_run: z__namespace.boolean().optional().default(false),
1696
1696
  variants: z__namespace.array(zPostVariantInput).min(1)
1697
1697
  });
1698
+ var zGoogleAdsAdGroup = z__namespace.object({
1699
+ id: z__namespace.string(),
1700
+ name: z__namespace.string().nullable(),
1701
+ status: z__namespace.enum([
1702
+ "UNSPECIFIED",
1703
+ "UNKNOWN",
1704
+ "ENABLED",
1705
+ "PAUSED",
1706
+ "REMOVED"
1707
+ ]),
1708
+ type: z__namespace.enum([
1709
+ "UNSPECIFIED",
1710
+ "UNKNOWN",
1711
+ "SEARCH_STANDARD",
1712
+ "DISPLAY_STANDARD",
1713
+ "SHOPPING_PRODUCT_ADS",
1714
+ "HOTEL_ADS",
1715
+ "SHOPPING_SMART_ADS",
1716
+ "VIDEO_BUMPER",
1717
+ "VIDEO_TRUE_VIEW_IN_STREAM",
1718
+ "VIDEO_TRUE_VIEW_IN_DISPLAY",
1719
+ "VIDEO_NON_SKIPPABLE_IN_STREAM",
1720
+ "SEARCH_DYNAMIC_ADS",
1721
+ "SHOPPING_COMPARISON_LISTING_ADS",
1722
+ "PROMOTED_HOTEL_ADS",
1723
+ "VIDEO_RESPONSIVE",
1724
+ "VIDEO_EFFICIENT_REACH",
1725
+ "SMART_CAMPAIGN_ADS",
1726
+ "TRAVEL_ADS",
1727
+ "YOUTUBE_AUDIO"
1728
+ ]),
1729
+ campaign: z__namespace.string().nullable()
1730
+ });
1731
+ var zGoogleAdsAd = z__namespace.object({
1732
+ id: z__namespace.string().regex(/^\d+~\d+$/),
1733
+ name: z__namespace.string().nullable(),
1734
+ type: z__namespace.enum([
1735
+ "UNSPECIFIED",
1736
+ "UNKNOWN",
1737
+ "TEXT_AD",
1738
+ "EXPANDED_TEXT_AD",
1739
+ "EXPANDED_DYNAMIC_SEARCH_AD",
1740
+ "HOTEL_AD",
1741
+ "SHOPPING_SMART_AD",
1742
+ "SHOPPING_PRODUCT_AD",
1743
+ "VIDEO_AD",
1744
+ "IMAGE_AD",
1745
+ "RESPONSIVE_SEARCH_AD",
1746
+ "LEGACY_RESPONSIVE_DISPLAY_AD",
1747
+ "APP_AD",
1748
+ "LEGACY_APP_INSTALL_AD",
1749
+ "RESPONSIVE_DISPLAY_AD",
1750
+ "LOCAL_AD",
1751
+ "HTML5_UPLOAD_AD",
1752
+ "DYNAMIC_HTML5_AD",
1753
+ "APP_ENGAGEMENT_AD",
1754
+ "SHOPPING_COMPARISON_LISTING_AD",
1755
+ "VIDEO_BUMPER_AD",
1756
+ "VIDEO_NON_SKIPPABLE_IN_STREAM_AD",
1757
+ "VIDEO_TRUEVIEW_IN_STREAM_AD",
1758
+ "VIDEO_RESPONSIVE_AD",
1759
+ "SMART_CAMPAIGN_AD",
1760
+ "CALL_AD",
1761
+ "APP_PRE_REGISTRATION_AD",
1762
+ "IN_FEED_VIDEO_AD",
1763
+ "DEMAND_GEN_MULTI_ASSET_AD",
1764
+ "DEMAND_GEN_CAROUSEL_AD",
1765
+ "TRAVEL_AD",
1766
+ "DEMAND_GEN_VIDEO_RESPONSIVE_AD",
1767
+ "DEMAND_GEN_PRODUCT_AD",
1768
+ "YOUTUBE_AUDIO_AD"
1769
+ ]),
1770
+ status: z__namespace.enum([
1771
+ "UNSPECIFIED",
1772
+ "UNKNOWN",
1773
+ "ENABLED",
1774
+ "PAUSED",
1775
+ "REMOVED"
1776
+ ]),
1777
+ ad_group: z__namespace.string().nullable()
1778
+ });
1779
+ var zGoogleAdsKeyword = z__namespace.object({
1780
+ id: z__namespace.string().regex(/^\d+~\d+$/),
1781
+ text: z__namespace.string().nullable(),
1782
+ match_type: z__namespace.enum([
1783
+ "UNSPECIFIED",
1784
+ "UNKNOWN",
1785
+ "EXACT",
1786
+ "PHRASE",
1787
+ "BROAD"
1788
+ ]),
1789
+ status: z__namespace.enum([
1790
+ "UNSPECIFIED",
1791
+ "UNKNOWN",
1792
+ "ENABLED",
1793
+ "PAUSED",
1794
+ "REMOVED"
1795
+ ]),
1796
+ negative: z__namespace.boolean(),
1797
+ ad_group: z__namespace.string().nullable()
1798
+ });
1799
+ var zGoogleAdsAudience = z__namespace.union([
1800
+ z__namespace.object({
1801
+ kind: z__namespace.literal("user_list"),
1802
+ id: z__namespace.string(),
1803
+ resource_name: z__namespace.string(),
1804
+ name: z__namespace.string().nullable(),
1805
+ type: z__namespace.enum([
1806
+ "UNSPECIFIED",
1807
+ "UNKNOWN",
1808
+ "REMARKETING",
1809
+ "LOGICAL",
1810
+ "EXTERNAL_REMARKETING",
1811
+ "RULE_BASED",
1812
+ "SIMILAR",
1813
+ "CRM_BASED",
1814
+ "LOOKALIKE"
1815
+ ]),
1816
+ membership_status: z__namespace.enum([
1817
+ "UNSPECIFIED",
1818
+ "UNKNOWN",
1819
+ "OPEN",
1820
+ "CLOSED"
1821
+ ])
1822
+ }),
1823
+ z__namespace.object({
1824
+ kind: z__namespace.literal("audience"),
1825
+ id: z__namespace.string(),
1826
+ resource_name: z__namespace.string(),
1827
+ name: z__namespace.string().nullable(),
1828
+ status: z__namespace.enum([
1829
+ "UNSPECIFIED",
1830
+ "UNKNOWN",
1831
+ "ENABLED",
1832
+ "REMOVED"
1833
+ ])
1834
+ }),
1835
+ z__namespace.object({
1836
+ kind: z__namespace.literal("custom_audience"),
1837
+ id: z__namespace.string(),
1838
+ resource_name: z__namespace.string(),
1839
+ name: z__namespace.string().nullable(),
1840
+ status: z__namespace.enum([
1841
+ "UNSPECIFIED",
1842
+ "UNKNOWN",
1843
+ "ENABLED",
1844
+ "REMOVED"
1845
+ ]),
1846
+ type: z__namespace.enum([
1847
+ "UNSPECIFIED",
1848
+ "UNKNOWN",
1849
+ "AUTO",
1850
+ "INTEREST",
1851
+ "PURCHASE_INTENT",
1852
+ "SEARCH"
1853
+ ])
1854
+ })
1855
+ ]);
1856
+ var zGoogleAdsCampaignCriterion = z__namespace.union([
1857
+ z__namespace.object({
1858
+ type: z__namespace.literal("LOCATION"),
1859
+ criterion_id: z__namespace.string(),
1860
+ status: z__namespace.enum([
1861
+ "UNSPECIFIED",
1862
+ "UNKNOWN",
1863
+ "ENABLED",
1864
+ "PAUSED",
1865
+ "REMOVED"
1866
+ ]),
1867
+ negative: z__namespace.boolean(),
1868
+ geo_target_constant: z__namespace.string().nullable()
1869
+ }),
1870
+ z__namespace.object({
1871
+ type: z__namespace.literal("LANGUAGE"),
1872
+ criterion_id: z__namespace.string(),
1873
+ status: z__namespace.enum([
1874
+ "UNSPECIFIED",
1875
+ "UNKNOWN",
1876
+ "ENABLED",
1877
+ "PAUSED",
1878
+ "REMOVED"
1879
+ ]),
1880
+ negative: z__namespace.boolean(),
1881
+ language_constant: z__namespace.string().nullable()
1882
+ }),
1883
+ z__namespace.object({
1884
+ type: z__namespace.enum([
1885
+ "UNSPECIFIED",
1886
+ "UNKNOWN",
1887
+ "KEYWORD",
1888
+ "PLACEMENT",
1889
+ "MOBILE_APP_CATEGORY",
1890
+ "MOBILE_APPLICATION",
1891
+ "DEVICE",
1892
+ "LISTING_GROUP",
1893
+ "AD_SCHEDULE",
1894
+ "AGE_RANGE",
1895
+ "GENDER",
1896
+ "INCOME_RANGE",
1897
+ "PARENTAL_STATUS",
1898
+ "YOUTUBE_VIDEO",
1899
+ "YOUTUBE_CHANNEL",
1900
+ "USER_LIST",
1901
+ "PROXIMITY",
1902
+ "TOPIC",
1903
+ "LISTING_SCOPE",
1904
+ "IP_BLOCK",
1905
+ "CONTENT_LABEL",
1906
+ "CARRIER",
1907
+ "USER_INTEREST",
1908
+ "WEBPAGE",
1909
+ "OPERATING_SYSTEM_VERSION",
1910
+ "APP_PAYMENT_MODEL",
1911
+ "MOBILE_DEVICE",
1912
+ "CUSTOM_AFFINITY",
1913
+ "CUSTOM_INTENT",
1914
+ "LOCATION_GROUP",
1915
+ "CUSTOM_AUDIENCE",
1916
+ "COMBINED_AUDIENCE",
1917
+ "KEYWORD_THEME",
1918
+ "AUDIENCE",
1919
+ "NEGATIVE_KEYWORD_LIST",
1920
+ "LOCAL_SERVICE_ID",
1921
+ "SEARCH_THEME",
1922
+ "BRAND",
1923
+ "BRAND_LIST",
1924
+ "LIFE_EVENT",
1925
+ "WEBPAGE_LIST",
1926
+ "VIDEO_LINEUP",
1927
+ "PLACEMENT_LIST",
1928
+ "VERTICAL_ADS_ITEM_GROUP_RULE_LIST",
1929
+ "VERTICAL_ADS_ITEM_GROUP_RULE"
1930
+ ]),
1931
+ criterion_id: z__namespace.string()
1932
+ })
1933
+ ]);
1934
+ var zGoogleAdsAdGroupCriterion = z__namespace.union([
1935
+ z__namespace.object({
1936
+ type: z__namespace.literal("AGE_RANGE"),
1937
+ criterion_id: z__namespace.string(),
1938
+ status: z__namespace.enum([
1939
+ "UNSPECIFIED",
1940
+ "UNKNOWN",
1941
+ "ENABLED",
1942
+ "PAUSED",
1943
+ "REMOVED"
1944
+ ]),
1945
+ negative: z__namespace.boolean(),
1946
+ age_range: z__namespace.enum([
1947
+ "UNSPECIFIED",
1948
+ "UNKNOWN",
1949
+ "AGE_RANGE_18_24",
1950
+ "AGE_RANGE_25_34",
1951
+ "AGE_RANGE_35_44",
1952
+ "AGE_RANGE_45_54",
1953
+ "AGE_RANGE_55_64",
1954
+ "AGE_RANGE_65_UP",
1955
+ "AGE_RANGE_UNDETERMINED"
1956
+ ])
1957
+ }),
1958
+ z__namespace.object({
1959
+ type: z__namespace.literal("GENDER"),
1960
+ criterion_id: z__namespace.string(),
1961
+ status: z__namespace.enum([
1962
+ "UNSPECIFIED",
1963
+ "UNKNOWN",
1964
+ "ENABLED",
1965
+ "PAUSED",
1966
+ "REMOVED"
1967
+ ]),
1968
+ negative: z__namespace.boolean(),
1969
+ gender: z__namespace.enum([
1970
+ "UNSPECIFIED",
1971
+ "UNKNOWN",
1972
+ "MALE",
1973
+ "FEMALE",
1974
+ "UNDETERMINED"
1975
+ ])
1976
+ }),
1977
+ z__namespace.object({
1978
+ type: z__namespace.literal("INCOME_RANGE"),
1979
+ criterion_id: z__namespace.string(),
1980
+ status: z__namespace.enum([
1981
+ "UNSPECIFIED",
1982
+ "UNKNOWN",
1983
+ "ENABLED",
1984
+ "PAUSED",
1985
+ "REMOVED"
1986
+ ]),
1987
+ negative: z__namespace.boolean(),
1988
+ income_range: z__namespace.enum([
1989
+ "UNSPECIFIED",
1990
+ "UNKNOWN",
1991
+ "INCOME_RANGE_0_50",
1992
+ "INCOME_RANGE_50_60",
1993
+ "INCOME_RANGE_60_70",
1994
+ "INCOME_RANGE_70_80",
1995
+ "INCOME_RANGE_80_90",
1996
+ "INCOME_RANGE_90_UP",
1997
+ "INCOME_RANGE_UNDETERMINED"
1998
+ ])
1999
+ }),
2000
+ z__namespace.object({
2001
+ type: z__namespace.literal("PARENTAL_STATUS"),
2002
+ criterion_id: z__namespace.string(),
2003
+ status: z__namespace.enum([
2004
+ "UNSPECIFIED",
2005
+ "UNKNOWN",
2006
+ "ENABLED",
2007
+ "PAUSED",
2008
+ "REMOVED"
2009
+ ]),
2010
+ negative: z__namespace.boolean(),
2011
+ parental_status: z__namespace.enum([
2012
+ "UNSPECIFIED",
2013
+ "UNKNOWN",
2014
+ "PARENT",
2015
+ "NOT_A_PARENT",
2016
+ "UNDETERMINED"
2017
+ ])
2018
+ }),
2019
+ z__namespace.object({
2020
+ type: z__namespace.literal("USER_LIST"),
2021
+ criterion_id: z__namespace.string(),
2022
+ status: z__namespace.enum([
2023
+ "UNSPECIFIED",
2024
+ "UNKNOWN",
2025
+ "ENABLED",
2026
+ "PAUSED",
2027
+ "REMOVED"
2028
+ ]),
2029
+ negative: z__namespace.boolean(),
2030
+ user_list: z__namespace.string().nullable()
2031
+ }),
2032
+ z__namespace.object({
2033
+ type: z__namespace.literal("AUDIENCE"),
2034
+ criterion_id: z__namespace.string(),
2035
+ status: z__namespace.enum([
2036
+ "UNSPECIFIED",
2037
+ "UNKNOWN",
2038
+ "ENABLED",
2039
+ "PAUSED",
2040
+ "REMOVED"
2041
+ ]),
2042
+ negative: z__namespace.boolean(),
2043
+ audience: z__namespace.string().nullable()
2044
+ }),
2045
+ z__namespace.object({
2046
+ type: z__namespace.literal("CUSTOM_AUDIENCE"),
2047
+ criterion_id: z__namespace.string(),
2048
+ status: z__namespace.enum([
2049
+ "UNSPECIFIED",
2050
+ "UNKNOWN",
2051
+ "ENABLED",
2052
+ "PAUSED",
2053
+ "REMOVED"
2054
+ ]),
2055
+ negative: z__namespace.boolean(),
2056
+ custom_audience: z__namespace.string().nullable()
2057
+ }),
2058
+ z__namespace.object({
2059
+ type: z__namespace.enum([
2060
+ "UNSPECIFIED",
2061
+ "UNKNOWN",
2062
+ "KEYWORD",
2063
+ "PLACEMENT",
2064
+ "MOBILE_APP_CATEGORY",
2065
+ "MOBILE_APPLICATION",
2066
+ "DEVICE",
2067
+ "LOCATION",
2068
+ "LISTING_GROUP",
2069
+ "AD_SCHEDULE",
2070
+ "YOUTUBE_VIDEO",
2071
+ "YOUTUBE_CHANNEL",
2072
+ "PROXIMITY",
2073
+ "TOPIC",
2074
+ "LISTING_SCOPE",
2075
+ "LANGUAGE",
2076
+ "IP_BLOCK",
2077
+ "CONTENT_LABEL",
2078
+ "CARRIER",
2079
+ "USER_INTEREST",
2080
+ "WEBPAGE",
2081
+ "OPERATING_SYSTEM_VERSION",
2082
+ "APP_PAYMENT_MODEL",
2083
+ "MOBILE_DEVICE",
2084
+ "CUSTOM_AFFINITY",
2085
+ "CUSTOM_INTENT",
2086
+ "LOCATION_GROUP",
2087
+ "COMBINED_AUDIENCE",
2088
+ "KEYWORD_THEME",
2089
+ "NEGATIVE_KEYWORD_LIST",
2090
+ "LOCAL_SERVICE_ID",
2091
+ "SEARCH_THEME",
2092
+ "BRAND",
2093
+ "BRAND_LIST",
2094
+ "LIFE_EVENT",
2095
+ "WEBPAGE_LIST",
2096
+ "VIDEO_LINEUP",
2097
+ "PLACEMENT_LIST",
2098
+ "VERTICAL_ADS_ITEM_GROUP_RULE_LIST",
2099
+ "VERTICAL_ADS_ITEM_GROUP_RULE"
2100
+ ]),
2101
+ criterion_id: z__namespace.string()
2102
+ })
2103
+ ]);
2104
+ var zGoogleAdsGeoTargetConstant = z__namespace.object({
2105
+ id: z__namespace.string(),
2106
+ resource_name: z__namespace.string().nullable(),
2107
+ name: z__namespace.string().nullable(),
2108
+ canonical_name: z__namespace.string().nullable(),
2109
+ country_code: z__namespace.string().nullable(),
2110
+ target_type: z__namespace.string().nullable(),
2111
+ status: z__namespace.enum([
2112
+ "UNSPECIFIED",
2113
+ "UNKNOWN",
2114
+ "ENABLED",
2115
+ "REMOVAL_PLANNED"
2116
+ ])
2117
+ });
2118
+ z__namespace.object({
2119
+ id: z__namespace.string().nullable(),
2120
+ resource_name: z__namespace.string().nullable(),
2121
+ dry_run: z__namespace.boolean(),
2122
+ executed: z__namespace.boolean()
2123
+ });
2124
+ z__namespace.object({
2125
+ id: z__namespace.string(),
2126
+ resource_name: z__namespace.string(),
2127
+ dry_run: z__namespace.boolean(),
2128
+ executed: z__namespace.boolean()
2129
+ });
2130
+ z__namespace.object({
2131
+ id: z__namespace.string(),
2132
+ removed: z__namespace.boolean(),
2133
+ dry_run: z__namespace.boolean(),
2134
+ executed: z__namespace.boolean()
2135
+ });
2136
+ z__namespace.union([
2137
+ z__namespace.object({
2138
+ type: z__namespace.literal("location"),
2139
+ geo_target_constant: z__namespace.string().regex(/^geoTargetConstants\/\d+$/),
2140
+ negative: z__namespace.boolean().optional().default(false)
2141
+ }),
2142
+ z__namespace.object({
2143
+ type: z__namespace.literal("language"),
2144
+ language_constant: z__namespace.string().min(1)
2145
+ })
2146
+ ]);
2147
+ z__namespace.union([
2148
+ z__namespace.object({
2149
+ type: z__namespace.literal("age_range"),
2150
+ age_range: z__namespace.enum([
2151
+ "AGE_RANGE_18_24",
2152
+ "AGE_RANGE_25_34",
2153
+ "AGE_RANGE_35_44",
2154
+ "AGE_RANGE_45_54",
2155
+ "AGE_RANGE_55_64",
2156
+ "AGE_RANGE_65_UP",
2157
+ "AGE_RANGE_UNDETERMINED"
2158
+ ]),
2159
+ negative: z__namespace.boolean().optional().default(false)
2160
+ }),
2161
+ z__namespace.object({
2162
+ type: z__namespace.literal("gender"),
2163
+ gender: z__namespace.enum([
2164
+ "MALE",
2165
+ "FEMALE",
2166
+ "UNDETERMINED"
2167
+ ]),
2168
+ negative: z__namespace.boolean().optional().default(false)
2169
+ }),
2170
+ z__namespace.object({
2171
+ type: z__namespace.literal("income_range"),
2172
+ income_range: z__namespace.enum([
2173
+ "INCOME_RANGE_0_50",
2174
+ "INCOME_RANGE_50_60",
2175
+ "INCOME_RANGE_60_70",
2176
+ "INCOME_RANGE_70_80",
2177
+ "INCOME_RANGE_80_90",
2178
+ "INCOME_RANGE_90_UP",
2179
+ "INCOME_RANGE_UNDETERMINED"
2180
+ ]),
2181
+ negative: z__namespace.boolean().optional().default(false)
2182
+ }),
2183
+ z__namespace.object({
2184
+ type: z__namespace.literal("parental_status"),
2185
+ parental_status: z__namespace.enum([
2186
+ "PARENT",
2187
+ "NOT_A_PARENT",
2188
+ "UNDETERMINED"
2189
+ ]),
2190
+ negative: z__namespace.boolean().optional().default(false)
2191
+ }),
2192
+ z__namespace.object({
2193
+ type: z__namespace.literal("user_list"),
2194
+ user_list: z__namespace.string().regex(/^customers\/\d+\/userLists\/\d+$/),
2195
+ negative: z__namespace.boolean().optional().default(false)
2196
+ }),
2197
+ z__namespace.object({
2198
+ type: z__namespace.literal("audience"),
2199
+ audience: z__namespace.string().regex(/^customers\/\d+\/audiences\/\d+$/),
2200
+ negative: z__namespace.boolean().optional().default(false)
2201
+ }),
2202
+ z__namespace.object({
2203
+ type: z__namespace.literal("custom_audience"),
2204
+ custom_audience: z__namespace.string().regex(/^customers\/\d+\/customAudiences\/\d+$/),
2205
+ negative: z__namespace.boolean().optional().default(false)
2206
+ })
2207
+ ]);
2208
+ z__namespace.object({
2209
+ positive_geo_target_type: z__namespace.enum(["PRESENCE_OR_INTEREST", "PRESENCE"]).optional(),
2210
+ negative_geo_target_type: z__namespace.enum(["PRESENCE_OR_INTEREST", "PRESENCE"]).optional()
2211
+ });
2212
+ var zGoogleAdsInsightLevel = z__namespace.enum([
2213
+ "account",
2214
+ "campaign",
2215
+ "ad_group",
2216
+ "ad",
2217
+ "keyword"
2218
+ ]);
2219
+ var zGoogleAdsInsightsRow = z__namespace.object({
2220
+ level: zGoogleAdsInsightLevel,
2221
+ id: z__namespace.string().min(1),
2222
+ name: z__namespace.string().nullable(),
2223
+ parent_id: z__namespace.string().min(1).nullable(),
2224
+ metrics: z__namespace.record(z__namespace.string(), z__namespace.number().nullable()),
2225
+ segments: z__namespace.record(z__namespace.string(), z__namespace.string()).optional()
2226
+ });
2227
+ z__namespace.object({
2228
+ object: z__namespace.literal("list"),
2229
+ data: z__namespace.array(zGoogleAdsInsightsRow)
2230
+ });
2231
+ var zGoogleAdsInsightMetric = z__namespace.enum([
2232
+ "impressions",
2233
+ "clicks",
2234
+ "ctr",
2235
+ "average_cpc",
2236
+ "cost_micros",
2237
+ "conversions",
2238
+ "conversions_value",
2239
+ "cost_per_conversion"
2240
+ ]);
2241
+ var zGoogleAdsInsightSegment = z__namespace.enum(["date", "device"]);
2242
+ z__namespace.object({
2243
+ level: zGoogleAdsInsightLevel.optional().default("campaign"),
2244
+ metrics: z__namespace.array(zGoogleAdsInsightMetric).min(1).optional().default([
2245
+ "impressions",
2246
+ "clicks",
2247
+ "cost_micros",
2248
+ "conversions"
2249
+ ]),
2250
+ segments: z__namespace.array(zGoogleAdsInsightSegment).optional(),
2251
+ campaign_id: z__namespace.string().regex(/^\d+$/).optional(),
2252
+ ad_group_id: z__namespace.string().regex(/^\d+$/).optional(),
2253
+ since: z__namespace.iso.date(),
2254
+ until: z__namespace.iso.date()
2255
+ });
2256
+ var zGoogleAdTreeNode = z__namespace.object({
2257
+ level: z__namespace.enum([
2258
+ "campaign",
2259
+ "ad_group",
2260
+ "ad",
2261
+ "keyword"
2262
+ ]),
2263
+ id: z__namespace.string().min(1),
2264
+ name: z__namespace.string().nullable(),
2265
+ parent_id: z__namespace.string().min(1).nullable(),
2266
+ status: z__namespace.enum([
2267
+ "UNSPECIFIED",
2268
+ "UNKNOWN",
2269
+ "ENABLED",
2270
+ "PAUSED",
2271
+ "REMOVED"
2272
+ ]),
2273
+ type: z__namespace.enum([
2274
+ "UNSPECIFIED",
2275
+ "UNKNOWN",
2276
+ "SEARCH",
2277
+ "DISPLAY",
2278
+ "SHOPPING",
2279
+ "HOTEL",
2280
+ "VIDEO",
2281
+ "MULTI_CHANNEL",
2282
+ "LOCAL",
2283
+ "SMART",
2284
+ "PERFORMANCE_MAX",
2285
+ "LOCAL_SERVICES",
2286
+ "TRAVEL",
2287
+ "DEMAND_GEN"
2288
+ ]).nullable(),
2289
+ child_kind: z__namespace.enum([
2290
+ "ad_group",
2291
+ "asset_group",
2292
+ "none"
2293
+ ]),
2294
+ expandable: z__namespace.boolean(),
2295
+ metrics: z__namespace.record(z__namespace.string(), z__namespace.number().nullable()),
2296
+ cost_micros: z__namespace.number(),
2297
+ cost: z__namespace.number()
2298
+ });
2299
+ z__namespace.object({
2300
+ object: z__namespace.literal("list"),
2301
+ data: z__namespace.array(zGoogleAdTreeNode)
2302
+ });
2303
+ z__namespace.string().min(1).max(255);
1698
2304
  z__namespace.object({
1699
2305
  limit: z__namespace.int().gte(1).lte(100).optional().default(20),
1700
2306
  offset: z__namespace.int().gte(0).lte(9007199254740991).optional().default(0),
@@ -1723,6 +2329,9 @@ z__namespace.object({
1723
2329
  z__namespace.boolean()
1724
2330
  ])).optional()
1725
2331
  });
2332
+ z__namespace.object({
2333
+ "Idempotency-Key": z__namespace.string().min(1).max(255).optional()
2334
+ });
1726
2335
  z__namespace.object({
1727
2336
  id: z__namespace.string()
1728
2337
  });
@@ -1765,6 +2374,9 @@ z__namespace.object({
1765
2374
  offset: z__namespace.int().gte(-9007199254740991).lte(9007199254740991),
1766
2375
  has_more: z__namespace.boolean()
1767
2376
  });
2377
+ z__namespace.object({
2378
+ "Idempotency-Key": z__namespace.string().min(1).max(255).optional()
2379
+ });
1768
2380
  z__namespace.object({
1769
2381
  id: z__namespace.string()
1770
2382
  });
@@ -1779,6 +2391,9 @@ z__namespace.object({
1779
2391
  z__namespace.object({
1780
2392
  external_account_id: z__namespace.string().min(1)
1781
2393
  });
2394
+ z__namespace.object({
2395
+ "Idempotency-Key": z__namespace.string().min(1).max(255).optional()
2396
+ });
1782
2397
  z__namespace.object({
1783
2398
  id: z__namespace.string()
1784
2399
  });
@@ -1800,6 +2415,9 @@ z__namespace.object({
1800
2415
  "tiktok"
1801
2416
  ])
1802
2417
  });
2418
+ z__namespace.object({
2419
+ "Idempotency-Key": z__namespace.string().min(1).max(255).optional()
2420
+ });
1803
2421
  z__namespace.object({
1804
2422
  id: z__namespace.string()
1805
2423
  });
@@ -1844,6 +2462,9 @@ z__namespace.object({
1844
2462
  z__namespace.boolean()
1845
2463
  ])).optional()
1846
2464
  });
2465
+ z__namespace.object({
2466
+ "Idempotency-Key": z__namespace.string().min(1).max(255).optional()
2467
+ });
1847
2468
  z__namespace.object({
1848
2469
  id: z__namespace.string(),
1849
2470
  object: z__namespace.literal("media"),
@@ -1998,6 +2619,9 @@ z__namespace.object({
1998
2619
  expires_at: z__namespace.string()
1999
2620
  }).nullable()
2000
2621
  });
2622
+ z__namespace.object({
2623
+ "Idempotency-Key": z__namespace.string().min(1).max(255).optional()
2624
+ });
2001
2625
  z__namespace.object({
2002
2626
  id: z__namespace.string()
2003
2627
  });
@@ -2026,6 +2650,9 @@ z__namespace.object({
2026
2650
  "google_ads"
2027
2651
  ])).min(1).optional()
2028
2652
  });
2653
+ z__namespace.object({
2654
+ "Idempotency-Key": z__namespace.string().min(1).max(255).optional()
2655
+ });
2029
2656
  z__namespace.object({
2030
2657
  id: z__namespace.string()
2031
2658
  });
@@ -2083,6 +2710,9 @@ z__namespace.object({
2083
2710
  offset: z__namespace.int().gte(-9007199254740991).lte(9007199254740991),
2084
2711
  has_more: z__namespace.boolean()
2085
2712
  });
2713
+ z__namespace.object({
2714
+ "Idempotency-Key": z__namespace.string().min(1).max(255).optional()
2715
+ });
2086
2716
  z__namespace.object({
2087
2717
  id: z__namespace.string(),
2088
2718
  object: z__namespace.literal("post"),
@@ -2139,6 +2769,9 @@ z__namespace.object({
2139
2769
  dry_run: z__namespace.boolean().optional().default(false),
2140
2770
  variants: z__namespace.array(zPostVariantInput).min(1).optional()
2141
2771
  });
2772
+ z__namespace.object({
2773
+ "Idempotency-Key": z__namespace.string().min(1).max(255).optional()
2774
+ });
2142
2775
  z__namespace.object({
2143
2776
  id: z__namespace.string()
2144
2777
  });
@@ -2302,6 +2935,22 @@ z__namespace.object({
2302
2935
  hint: z__namespace.string().optional(),
2303
2936
  allowed: z__namespace.array(z__namespace.string()).optional(),
2304
2937
  got: z__namespace.string().optional(),
2938
+ source: z__namespace.object({
2939
+ platform: z__namespace.enum([
2940
+ "google",
2941
+ "meta",
2942
+ "x",
2943
+ "linkedin",
2944
+ "instagram",
2945
+ "facebook",
2946
+ "tiktok",
2947
+ "youtube"
2948
+ ]),
2949
+ platform_code: z__namespace.string().optional(),
2950
+ field: z__namespace.string().optional(),
2951
+ value: z__namespace.string().optional(),
2952
+ platform_request_id: z__namespace.string().optional()
2953
+ }).optional(),
2305
2954
  variant_index: z__namespace.int().gte(-9007199254740991).lte(9007199254740991),
2306
2955
  path: z__namespace.array(z__namespace.union([z__namespace.string(), z__namespace.number()])),
2307
2956
  platform: zPostPlatform.optional(),
@@ -2521,27 +3170,16 @@ z__namespace.object({
2521
3170
  test_account: z__namespace.boolean()
2522
3171
  });
2523
3172
  z__namespace.object({
2524
- level: z__namespace.enum([
2525
- "account",
2526
- "campaign",
2527
- "ad_group"
2528
- ]).optional().default("campaign"),
2529
- metrics: z__namespace.array(z__namespace.enum([
2530
- "impressions",
2531
- "clicks",
2532
- "ctr",
2533
- "average_cpc",
2534
- "cost_micros",
2535
- "conversions",
2536
- "conversions_value",
2537
- "cost_per_conversion"
2538
- ])).min(1).optional().default([
3173
+ level: zGoogleAdsInsightLevel.optional().default("campaign"),
3174
+ metrics: z__namespace.array(zGoogleAdsInsightMetric).min(1).optional().default([
2539
3175
  "impressions",
2540
3176
  "clicks",
2541
3177
  "cost_micros",
2542
3178
  "conversions"
2543
3179
  ]),
2544
- segments: z__namespace.array(z__namespace.enum(["date", "device"])).optional(),
3180
+ segments: z__namespace.array(zGoogleAdsInsightSegment).optional(),
3181
+ campaign_id: z__namespace.string().regex(/^\d+$/).optional(),
3182
+ ad_group_id: z__namespace.string().regex(/^\d+$/).optional(),
2545
3183
  since: z__namespace.iso.date(),
2546
3184
  until: z__namespace.iso.date()
2547
3185
  });
@@ -2549,18 +3187,18 @@ z__namespace.object({
2549
3187
  connection_id: z__namespace.string()
2550
3188
  });
2551
3189
  z__namespace.object({
2552
- object: z__namespace.literal("list"),
2553
- data: z__namespace.array(z__namespace.object({
2554
- level: z__namespace.enum([
2555
- "account",
2556
- "campaign",
2557
- "ad_group"
2558
- ]),
2559
- id: z__namespace.string(),
2560
- name: z__namespace.string().nullable(),
2561
- metrics: z__namespace.record(z__namespace.string(), z__namespace.number().nullable()),
2562
- segments: z__namespace.record(z__namespace.string(), z__namespace.string()).optional()
2563
- }))
3190
+ connection_id: z__namespace.string()
3191
+ });
3192
+ z__namespace.object({
3193
+ campaign_id: z__namespace.string().regex(/^\d+$/).optional(),
3194
+ metrics: z__namespace.array(zGoogleAdsInsightMetric).min(1).optional().default([
3195
+ "impressions",
3196
+ "clicks",
3197
+ "cost_micros",
3198
+ "conversions"
3199
+ ]),
3200
+ since: z__namespace.iso.date(),
3201
+ until: z__namespace.iso.date()
2564
3202
  });
2565
3203
  z__namespace.object({
2566
3204
  query: z__namespace.string().min(1).max(1e4)
@@ -2578,41 +3216,32 @@ z__namespace.object({
2578
3216
  dry_run: z__namespace.boolean().optional().default(false)
2579
3217
  });
2580
3218
  z__namespace.object({
2581
- connection_id: z__namespace.string()
3219
+ "Idempotency-Key": z__namespace.string().min(1).max(255).optional()
2582
3220
  });
2583
3221
  z__namespace.object({
2584
- id: z__namespace.string().nullable(),
2585
- resource_name: z__namespace.string().nullable(),
2586
- dry_run: z__namespace.boolean(),
2587
- executed: z__namespace.boolean()
3222
+ connection_id: z__namespace.string()
2588
3223
  });
2589
3224
  z__namespace.object({
3225
+ amount_micros: z__namespace.int().gt(0).lte(9007199254740991),
2590
3226
  dry_run: z__namespace.boolean().optional().default(false)
2591
3227
  });
3228
+ z__namespace.object({
3229
+ "Idempotency-Key": z__namespace.string().min(1).max(255).optional()
3230
+ });
2592
3231
  z__namespace.object({
2593
3232
  connection_id: z__namespace.string(),
2594
3233
  id: z__namespace.string().regex(/^\d+$/)
2595
3234
  });
2596
3235
  z__namespace.object({
2597
- id: z__namespace.string(),
2598
- removed: z__namespace.boolean(),
2599
- dry_run: z__namespace.boolean(),
2600
- executed: z__namespace.boolean()
3236
+ dry_run: z__namespace.boolean().optional().default(false)
2601
3237
  });
2602
3238
  z__namespace.object({
2603
- amount_micros: z__namespace.int().gt(0).lte(9007199254740991),
2604
- dry_run: z__namespace.boolean().optional().default(false)
3239
+ "Idempotency-Key": z__namespace.string().min(1).max(255).optional()
2605
3240
  });
2606
3241
  z__namespace.object({
2607
3242
  connection_id: z__namespace.string(),
2608
3243
  id: z__namespace.string().regex(/^\d+$/)
2609
3244
  });
2610
- z__namespace.object({
2611
- id: z__namespace.string(),
2612
- resource_name: z__namespace.string(),
2613
- dry_run: z__namespace.boolean(),
2614
- executed: z__namespace.boolean()
2615
- });
2616
3245
  z__namespace.object({
2617
3246
  connection_id: z__namespace.string()
2618
3247
  });
@@ -2683,29 +3312,14 @@ z__namespace.object({
2683
3312
  "target_spend"
2684
3313
  ]),
2685
3314
  status: z__namespace.enum(["ENABLED", "PAUSED"]).optional().default("PAUSED"),
3315
+ contains_eu_political_advertising: z__namespace.enum(["DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING", "CONTAINS_EU_POLITICAL_ADVERTISING"]).optional().default("DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING"),
2686
3316
  dry_run: z__namespace.boolean().optional().default(false)
2687
3317
  });
2688
3318
  z__namespace.object({
2689
- connection_id: z__namespace.string()
2690
- });
2691
- z__namespace.object({
2692
- id: z__namespace.string().nullable(),
2693
- resource_name: z__namespace.string().nullable(),
2694
- dry_run: z__namespace.boolean(),
2695
- executed: z__namespace.boolean()
2696
- });
2697
- z__namespace.object({
2698
- dry_run: z__namespace.boolean().optional().default(false)
2699
- });
2700
- z__namespace.object({
2701
- connection_id: z__namespace.string(),
2702
- id: z__namespace.string().regex(/^\d+$/)
3319
+ "Idempotency-Key": z__namespace.string().min(1).max(255).optional()
2703
3320
  });
2704
3321
  z__namespace.object({
2705
- id: z__namespace.string(),
2706
- removed: z__namespace.boolean(),
2707
- dry_run: z__namespace.boolean(),
2708
- executed: z__namespace.boolean()
3322
+ connection_id: z__namespace.string()
2709
3323
  });
2710
3324
  z__namespace.object({
2711
3325
  connection_id: z__namespace.string(),
@@ -2769,19 +3383,29 @@ z__namespace.object({
2769
3383
  name: z__namespace.string().min(1).max(255),
2770
3384
  dry_run: z__namespace.boolean().optional().default(false)
2771
3385
  });
3386
+ z__namespace.object({
3387
+ "Idempotency-Key": z__namespace.string().min(1).max(255).optional()
3388
+ });
2772
3389
  z__namespace.object({
2773
3390
  connection_id: z__namespace.string(),
2774
3391
  id: z__namespace.string().regex(/^\d+$/)
2775
3392
  });
2776
3393
  z__namespace.object({
2777
- id: z__namespace.string(),
2778
- resource_name: z__namespace.string(),
2779
- dry_run: z__namespace.boolean(),
2780
- executed: z__namespace.boolean()
3394
+ dry_run: z__namespace.boolean().optional().default(false)
3395
+ });
3396
+ z__namespace.object({
3397
+ "Idempotency-Key": z__namespace.string().min(1).max(255).optional()
3398
+ });
3399
+ z__namespace.object({
3400
+ connection_id: z__namespace.string(),
3401
+ id: z__namespace.string().regex(/^\d+$/)
2781
3402
  });
2782
3403
  z__namespace.object({
2783
3404
  dry_run: z__namespace.boolean().optional().default(false)
2784
3405
  });
3406
+ z__namespace.object({
3407
+ "Idempotency-Key": z__namespace.string().min(1).max(255).optional()
3408
+ });
2785
3409
  z__namespace.object({
2786
3410
  connection_id: z__namespace.string(),
2787
3411
  id: z__namespace.string().regex(/^\d+$/)
@@ -2795,6 +3419,9 @@ z__namespace.object({
2795
3419
  z__namespace.object({
2796
3420
  dry_run: z__namespace.boolean().optional().default(false)
2797
3421
  });
3422
+ z__namespace.object({
3423
+ "Idempotency-Key": z__namespace.string().min(1).max(255).optional()
3424
+ });
2798
3425
  z__namespace.object({
2799
3426
  connection_id: z__namespace.string(),
2800
3427
  id: z__namespace.string().regex(/^\d+$/)
@@ -2814,20 +3441,7 @@ z__namespace.object({
2814
3441
  });
2815
3442
  z__namespace.object({
2816
3443
  object: z__namespace.literal("list"),
2817
- data: z__namespace.array(z__namespace.object({
2818
- id: z__namespace.string(),
2819
- resource_name: z__namespace.string().nullable(),
2820
- name: z__namespace.string().nullable(),
2821
- canonical_name: z__namespace.string().nullable(),
2822
- country_code: z__namespace.string().nullable(),
2823
- target_type: z__namespace.string().nullable(),
2824
- status: z__namespace.enum([
2825
- "UNSPECIFIED",
2826
- "UNKNOWN",
2827
- "ENABLED",
2828
- "REMOVAL_PLANNED"
2829
- ])
2830
- }))
3444
+ data: z__namespace.array(zGoogleAdsGeoTargetConstant)
2831
3445
  });
2832
3446
  z__namespace.object({
2833
3447
  connection_id: z__namespace.string(),
@@ -2835,84 +3449,7 @@ z__namespace.object({
2835
3449
  });
2836
3450
  z__namespace.object({
2837
3451
  object: z__namespace.literal("list"),
2838
- data: z__namespace.array(z__namespace.union([
2839
- z__namespace.object({
2840
- type: z__namespace.literal("LOCATION"),
2841
- criterion_id: z__namespace.string(),
2842
- status: z__namespace.enum([
2843
- "UNSPECIFIED",
2844
- "UNKNOWN",
2845
- "ENABLED",
2846
- "PAUSED",
2847
- "REMOVED"
2848
- ]),
2849
- negative: z__namespace.boolean(),
2850
- geo_target_constant: z__namespace.string().nullable()
2851
- }),
2852
- z__namespace.object({
2853
- type: z__namespace.literal("LANGUAGE"),
2854
- criterion_id: z__namespace.string(),
2855
- status: z__namespace.enum([
2856
- "UNSPECIFIED",
2857
- "UNKNOWN",
2858
- "ENABLED",
2859
- "PAUSED",
2860
- "REMOVED"
2861
- ]),
2862
- negative: z__namespace.boolean(),
2863
- language_constant: z__namespace.string().nullable()
2864
- }),
2865
- z__namespace.object({
2866
- type: z__namespace.enum([
2867
- "UNSPECIFIED",
2868
- "UNKNOWN",
2869
- "KEYWORD",
2870
- "PLACEMENT",
2871
- "MOBILE_APP_CATEGORY",
2872
- "MOBILE_APPLICATION",
2873
- "DEVICE",
2874
- "LISTING_GROUP",
2875
- "AD_SCHEDULE",
2876
- "AGE_RANGE",
2877
- "GENDER",
2878
- "INCOME_RANGE",
2879
- "PARENTAL_STATUS",
2880
- "YOUTUBE_VIDEO",
2881
- "YOUTUBE_CHANNEL",
2882
- "USER_LIST",
2883
- "PROXIMITY",
2884
- "TOPIC",
2885
- "LISTING_SCOPE",
2886
- "IP_BLOCK",
2887
- "CONTENT_LABEL",
2888
- "CARRIER",
2889
- "USER_INTEREST",
2890
- "WEBPAGE",
2891
- "OPERATING_SYSTEM_VERSION",
2892
- "APP_PAYMENT_MODEL",
2893
- "MOBILE_DEVICE",
2894
- "CUSTOM_AFFINITY",
2895
- "CUSTOM_INTENT",
2896
- "LOCATION_GROUP",
2897
- "CUSTOM_AUDIENCE",
2898
- "COMBINED_AUDIENCE",
2899
- "KEYWORD_THEME",
2900
- "AUDIENCE",
2901
- "NEGATIVE_KEYWORD_LIST",
2902
- "LOCAL_SERVICE_ID",
2903
- "SEARCH_THEME",
2904
- "BRAND",
2905
- "BRAND_LIST",
2906
- "LIFE_EVENT",
2907
- "WEBPAGE_LIST",
2908
- "VIDEO_LINEUP",
2909
- "PLACEMENT_LIST",
2910
- "VERTICAL_ADS_ITEM_GROUP_RULE_LIST",
2911
- "VERTICAL_ADS_ITEM_GROUP_RULE"
2912
- ]),
2913
- criterion_id: z__namespace.string()
2914
- })
2915
- ]))
3452
+ data: z__namespace.array(zGoogleAdsCampaignCriterion)
2916
3453
  });
2917
3454
  z__namespace.object({
2918
3455
  dry_run: z__namespace.boolean().optional().default(false),
@@ -2924,83 +3461,45 @@ z__namespace.object({
2924
3461
  negative: z__namespace.boolean().optional().default(false),
2925
3462
  language_constant: z__namespace.string().min(1).optional()
2926
3463
  });
3464
+ z__namespace.object({
3465
+ "Idempotency-Key": z__namespace.string().min(1).max(255).optional()
3466
+ });
2927
3467
  z__namespace.object({
2928
3468
  connection_id: z__namespace.string(),
2929
3469
  campaign_id: z__namespace.string().regex(/^\d+$/)
2930
3470
  });
2931
3471
  z__namespace.object({
2932
- id: z__namespace.string().nullable(),
2933
- resource_name: z__namespace.string().nullable(),
2934
- dry_run: z__namespace.boolean(),
2935
- executed: z__namespace.boolean()
3472
+ dry_run: z__namespace.boolean().optional().default(false)
2936
3473
  });
2937
3474
  z__namespace.object({
2938
- dry_run: z__namespace.boolean().optional().default(false)
3475
+ "Idempotency-Key": z__namespace.string().min(1).max(255).optional()
2939
3476
  });
2940
3477
  z__namespace.object({
2941
3478
  connection_id: z__namespace.string(),
2942
3479
  campaign_id: z__namespace.string().regex(/^\d+$/),
2943
3480
  criterion_id: z__namespace.string().regex(/^\d+$/)
2944
3481
  });
2945
- z__namespace.object({
2946
- id: z__namespace.string(),
2947
- removed: z__namespace.boolean(),
2948
- dry_run: z__namespace.boolean(),
2949
- executed: z__namespace.boolean()
2950
- });
2951
3482
  z__namespace.object({
2952
3483
  dry_run: z__namespace.boolean().optional().default(false),
2953
3484
  positive_geo_target_type: z__namespace.enum(["PRESENCE_OR_INTEREST", "PRESENCE"]).optional(),
2954
3485
  negative_geo_target_type: z__namespace.enum(["PRESENCE_OR_INTEREST", "PRESENCE"]).optional()
2955
3486
  });
3487
+ z__namespace.object({
3488
+ "Idempotency-Key": z__namespace.string().min(1).max(255).optional()
3489
+ });
2956
3490
  z__namespace.object({
2957
3491
  connection_id: z__namespace.string(),
2958
3492
  campaign_id: z__namespace.string().regex(/^\d+$/)
2959
3493
  });
2960
3494
  z__namespace.object({
2961
- id: z__namespace.string(),
2962
- resource_name: z__namespace.string(),
2963
- dry_run: z__namespace.boolean(),
2964
- executed: z__namespace.boolean()
3495
+ connection_id: z__namespace.string()
2965
3496
  });
2966
3497
  z__namespace.object({
2967
- connection_id: z__namespace.string()
3498
+ campaign_id: z__namespace.string().regex(/^\d+$/).optional()
2968
3499
  });
2969
3500
  z__namespace.object({
2970
3501
  object: z__namespace.literal("list"),
2971
- data: z__namespace.array(z__namespace.object({
2972
- id: z__namespace.string(),
2973
- name: z__namespace.string().nullable(),
2974
- status: z__namespace.enum([
2975
- "UNSPECIFIED",
2976
- "UNKNOWN",
2977
- "ENABLED",
2978
- "PAUSED",
2979
- "REMOVED"
2980
- ]),
2981
- type: z__namespace.enum([
2982
- "UNSPECIFIED",
2983
- "UNKNOWN",
2984
- "SEARCH_STANDARD",
2985
- "DISPLAY_STANDARD",
2986
- "SHOPPING_PRODUCT_ADS",
2987
- "HOTEL_ADS",
2988
- "SHOPPING_SMART_ADS",
2989
- "VIDEO_BUMPER",
2990
- "VIDEO_TRUE_VIEW_IN_STREAM",
2991
- "VIDEO_TRUE_VIEW_IN_DISPLAY",
2992
- "VIDEO_NON_SKIPPABLE_IN_STREAM",
2993
- "SEARCH_DYNAMIC_ADS",
2994
- "SHOPPING_COMPARISON_LISTING_ADS",
2995
- "PROMOTED_HOTEL_ADS",
2996
- "VIDEO_RESPONSIVE",
2997
- "VIDEO_EFFICIENT_REACH",
2998
- "SMART_CAMPAIGN_ADS",
2999
- "TRAVEL_ADS",
3000
- "YOUTUBE_AUDIO"
3001
- ]),
3002
- campaign: z__namespace.string().nullable()
3003
- }))
3502
+ data: z__namespace.array(zGoogleAdsAdGroup)
3004
3503
  });
3005
3504
  z__namespace.object({
3006
3505
  name: z__namespace.string().min(1).max(255),
@@ -3010,77 +3509,25 @@ z__namespace.object({
3010
3509
  dry_run: z__namespace.boolean().optional().default(false)
3011
3510
  });
3012
3511
  z__namespace.object({
3013
- connection_id: z__namespace.string()
3014
- });
3015
- z__namespace.object({
3016
- id: z__namespace.string().nullable(),
3017
- resource_name: z__namespace.string().nullable(),
3018
- dry_run: z__namespace.boolean(),
3019
- executed: z__namespace.boolean()
3020
- });
3021
- z__namespace.object({
3022
- dry_run: z__namespace.boolean().optional().default(false)
3023
- });
3024
- z__namespace.object({
3025
- connection_id: z__namespace.string(),
3026
- id: z__namespace.string().regex(/^\d+$/)
3027
- });
3028
- z__namespace.object({
3029
- id: z__namespace.string(),
3030
- removed: z__namespace.boolean(),
3031
- dry_run: z__namespace.boolean(),
3032
- executed: z__namespace.boolean()
3033
- });
3034
- z__namespace.object({
3035
- connection_id: z__namespace.string(),
3036
- id: z__namespace.string().regex(/^\d+$/)
3512
+ "Idempotency-Key": z__namespace.string().min(1).max(255).optional()
3037
3513
  });
3038
- z__namespace.object({
3039
- id: z__namespace.string(),
3040
- name: z__namespace.string().nullable(),
3041
- status: z__namespace.enum([
3042
- "UNSPECIFIED",
3043
- "UNKNOWN",
3044
- "ENABLED",
3045
- "PAUSED",
3046
- "REMOVED"
3047
- ]),
3048
- type: z__namespace.enum([
3049
- "UNSPECIFIED",
3050
- "UNKNOWN",
3051
- "SEARCH_STANDARD",
3052
- "DISPLAY_STANDARD",
3053
- "SHOPPING_PRODUCT_ADS",
3054
- "HOTEL_ADS",
3055
- "SHOPPING_SMART_ADS",
3056
- "VIDEO_BUMPER",
3057
- "VIDEO_TRUE_VIEW_IN_STREAM",
3058
- "VIDEO_TRUE_VIEW_IN_DISPLAY",
3059
- "VIDEO_NON_SKIPPABLE_IN_STREAM",
3060
- "SEARCH_DYNAMIC_ADS",
3061
- "SHOPPING_COMPARISON_LISTING_ADS",
3062
- "PROMOTED_HOTEL_ADS",
3063
- "VIDEO_RESPONSIVE",
3064
- "VIDEO_EFFICIENT_REACH",
3065
- "SMART_CAMPAIGN_ADS",
3066
- "TRAVEL_ADS",
3067
- "YOUTUBE_AUDIO"
3068
- ]),
3069
- campaign: z__namespace.string().nullable()
3514
+ z__namespace.object({
3515
+ connection_id: z__namespace.string()
3516
+ });
3517
+ z__namespace.object({
3518
+ connection_id: z__namespace.string(),
3519
+ id: z__namespace.string().regex(/^\d+$/)
3070
3520
  });
3071
3521
  z__namespace.object({
3072
3522
  name: z__namespace.string().min(1).max(255),
3073
3523
  dry_run: z__namespace.boolean().optional().default(false)
3074
3524
  });
3075
3525
  z__namespace.object({
3076
- connection_id: z__namespace.string(),
3077
- id: z__namespace.string().regex(/^\d+$/)
3526
+ "Idempotency-Key": z__namespace.string().min(1).max(255).optional()
3078
3527
  });
3079
3528
  z__namespace.object({
3080
- id: z__namespace.string(),
3081
- resource_name: z__namespace.string(),
3082
- dry_run: z__namespace.boolean(),
3083
- executed: z__namespace.boolean()
3529
+ connection_id: z__namespace.string(),
3530
+ id: z__namespace.string().regex(/^\d+$/)
3084
3531
  });
3085
3532
  z__namespace.object({
3086
3533
  cpc_bid_micros: z__namespace.int().gt(0).lte(9007199254740991).optional(),
@@ -3089,19 +3536,29 @@ z__namespace.object({
3089
3536
  target_roas: z__namespace.number().gt(0).optional(),
3090
3537
  dry_run: z__namespace.boolean().optional().default(false)
3091
3538
  });
3539
+ z__namespace.object({
3540
+ "Idempotency-Key": z__namespace.string().min(1).max(255).optional()
3541
+ });
3092
3542
  z__namespace.object({
3093
3543
  connection_id: z__namespace.string(),
3094
3544
  id: z__namespace.string().regex(/^\d+$/)
3095
3545
  });
3096
3546
  z__namespace.object({
3097
- id: z__namespace.string(),
3098
- resource_name: z__namespace.string(),
3099
- dry_run: z__namespace.boolean(),
3100
- executed: z__namespace.boolean()
3547
+ dry_run: z__namespace.boolean().optional().default(false)
3548
+ });
3549
+ z__namespace.object({
3550
+ "Idempotency-Key": z__namespace.string().min(1).max(255).optional()
3551
+ });
3552
+ z__namespace.object({
3553
+ connection_id: z__namespace.string(),
3554
+ id: z__namespace.string().regex(/^\d+$/)
3101
3555
  });
3102
3556
  z__namespace.object({
3103
3557
  dry_run: z__namespace.boolean().optional().default(false)
3104
3558
  });
3559
+ z__namespace.object({
3560
+ "Idempotency-Key": z__namespace.string().min(1).max(255).optional()
3561
+ });
3105
3562
  z__namespace.object({
3106
3563
  connection_id: z__namespace.string(),
3107
3564
  id: z__namespace.string().regex(/^\d+$/)
@@ -3115,6 +3572,9 @@ z__namespace.object({
3115
3572
  z__namespace.object({
3116
3573
  dry_run: z__namespace.boolean().optional().default(false)
3117
3574
  });
3575
+ z__namespace.object({
3576
+ "Idempotency-Key": z__namespace.string().min(1).max(255).optional()
3577
+ });
3118
3578
  z__namespace.object({
3119
3579
  connection_id: z__namespace.string(),
3120
3580
  id: z__namespace.string().regex(/^\d+$/)
@@ -3131,176 +3591,7 @@ z__namespace.object({
3131
3591
  });
3132
3592
  z__namespace.object({
3133
3593
  object: z__namespace.literal("list"),
3134
- data: z__namespace.array(z__namespace.union([
3135
- z__namespace.object({
3136
- type: z__namespace.literal("AGE_RANGE"),
3137
- criterion_id: z__namespace.string(),
3138
- status: z__namespace.enum([
3139
- "UNSPECIFIED",
3140
- "UNKNOWN",
3141
- "ENABLED",
3142
- "PAUSED",
3143
- "REMOVED"
3144
- ]),
3145
- negative: z__namespace.boolean(),
3146
- age_range: z__namespace.enum([
3147
- "UNSPECIFIED",
3148
- "UNKNOWN",
3149
- "AGE_RANGE_18_24",
3150
- "AGE_RANGE_25_34",
3151
- "AGE_RANGE_35_44",
3152
- "AGE_RANGE_45_54",
3153
- "AGE_RANGE_55_64",
3154
- "AGE_RANGE_65_UP",
3155
- "AGE_RANGE_UNDETERMINED"
3156
- ])
3157
- }),
3158
- z__namespace.object({
3159
- type: z__namespace.literal("GENDER"),
3160
- criterion_id: z__namespace.string(),
3161
- status: z__namespace.enum([
3162
- "UNSPECIFIED",
3163
- "UNKNOWN",
3164
- "ENABLED",
3165
- "PAUSED",
3166
- "REMOVED"
3167
- ]),
3168
- negative: z__namespace.boolean(),
3169
- gender: z__namespace.enum([
3170
- "UNSPECIFIED",
3171
- "UNKNOWN",
3172
- "MALE",
3173
- "FEMALE",
3174
- "UNDETERMINED"
3175
- ])
3176
- }),
3177
- z__namespace.object({
3178
- type: z__namespace.literal("INCOME_RANGE"),
3179
- criterion_id: z__namespace.string(),
3180
- status: z__namespace.enum([
3181
- "UNSPECIFIED",
3182
- "UNKNOWN",
3183
- "ENABLED",
3184
- "PAUSED",
3185
- "REMOVED"
3186
- ]),
3187
- negative: z__namespace.boolean(),
3188
- income_range: z__namespace.enum([
3189
- "UNSPECIFIED",
3190
- "UNKNOWN",
3191
- "INCOME_RANGE_0_50",
3192
- "INCOME_RANGE_50_60",
3193
- "INCOME_RANGE_60_70",
3194
- "INCOME_RANGE_70_80",
3195
- "INCOME_RANGE_80_90",
3196
- "INCOME_RANGE_90_UP",
3197
- "INCOME_RANGE_UNDETERMINED"
3198
- ])
3199
- }),
3200
- z__namespace.object({
3201
- type: z__namespace.literal("PARENTAL_STATUS"),
3202
- criterion_id: z__namespace.string(),
3203
- status: z__namespace.enum([
3204
- "UNSPECIFIED",
3205
- "UNKNOWN",
3206
- "ENABLED",
3207
- "PAUSED",
3208
- "REMOVED"
3209
- ]),
3210
- negative: z__namespace.boolean(),
3211
- parental_status: z__namespace.enum([
3212
- "UNSPECIFIED",
3213
- "UNKNOWN",
3214
- "PARENT",
3215
- "NOT_A_PARENT",
3216
- "UNDETERMINED"
3217
- ])
3218
- }),
3219
- z__namespace.object({
3220
- type: z__namespace.literal("USER_LIST"),
3221
- criterion_id: z__namespace.string(),
3222
- status: z__namespace.enum([
3223
- "UNSPECIFIED",
3224
- "UNKNOWN",
3225
- "ENABLED",
3226
- "PAUSED",
3227
- "REMOVED"
3228
- ]),
3229
- negative: z__namespace.boolean(),
3230
- user_list: z__namespace.string().nullable()
3231
- }),
3232
- z__namespace.object({
3233
- type: z__namespace.literal("AUDIENCE"),
3234
- criterion_id: z__namespace.string(),
3235
- status: z__namespace.enum([
3236
- "UNSPECIFIED",
3237
- "UNKNOWN",
3238
- "ENABLED",
3239
- "PAUSED",
3240
- "REMOVED"
3241
- ]),
3242
- negative: z__namespace.boolean(),
3243
- audience: z__namespace.string().nullable()
3244
- }),
3245
- z__namespace.object({
3246
- type: z__namespace.literal("CUSTOM_AUDIENCE"),
3247
- criterion_id: z__namespace.string(),
3248
- status: z__namespace.enum([
3249
- "UNSPECIFIED",
3250
- "UNKNOWN",
3251
- "ENABLED",
3252
- "PAUSED",
3253
- "REMOVED"
3254
- ]),
3255
- negative: z__namespace.boolean(),
3256
- custom_audience: z__namespace.string().nullable()
3257
- }),
3258
- z__namespace.object({
3259
- type: z__namespace.enum([
3260
- "UNSPECIFIED",
3261
- "UNKNOWN",
3262
- "KEYWORD",
3263
- "PLACEMENT",
3264
- "MOBILE_APP_CATEGORY",
3265
- "MOBILE_APPLICATION",
3266
- "DEVICE",
3267
- "LOCATION",
3268
- "LISTING_GROUP",
3269
- "AD_SCHEDULE",
3270
- "YOUTUBE_VIDEO",
3271
- "YOUTUBE_CHANNEL",
3272
- "PROXIMITY",
3273
- "TOPIC",
3274
- "LISTING_SCOPE",
3275
- "LANGUAGE",
3276
- "IP_BLOCK",
3277
- "CONTENT_LABEL",
3278
- "CARRIER",
3279
- "USER_INTEREST",
3280
- "WEBPAGE",
3281
- "OPERATING_SYSTEM_VERSION",
3282
- "APP_PAYMENT_MODEL",
3283
- "MOBILE_DEVICE",
3284
- "CUSTOM_AFFINITY",
3285
- "CUSTOM_INTENT",
3286
- "LOCATION_GROUP",
3287
- "COMBINED_AUDIENCE",
3288
- "KEYWORD_THEME",
3289
- "NEGATIVE_KEYWORD_LIST",
3290
- "LOCAL_SERVICE_ID",
3291
- "SEARCH_THEME",
3292
- "BRAND",
3293
- "BRAND_LIST",
3294
- "LIFE_EVENT",
3295
- "WEBPAGE_LIST",
3296
- "VIDEO_LINEUP",
3297
- "PLACEMENT_LIST",
3298
- "VERTICAL_ADS_ITEM_GROUP_RULE_LIST",
3299
- "VERTICAL_ADS_ITEM_GROUP_RULE"
3300
- ]),
3301
- criterion_id: z__namespace.string()
3302
- })
3303
- ]))
3594
+ data: z__namespace.array(zGoogleAdsAdGroupCriterion)
3304
3595
  });
3305
3596
  z__namespace.object({
3306
3597
  dry_run: z__namespace.boolean().optional().default(false),
@@ -3346,30 +3637,24 @@ z__namespace.object({
3346
3637
  audience: z__namespace.string().regex(/^customers\/\d+\/audiences\/\d+$/).optional(),
3347
3638
  custom_audience: z__namespace.string().regex(/^customers\/\d+\/customAudiences\/\d+$/).optional()
3348
3639
  });
3640
+ z__namespace.object({
3641
+ "Idempotency-Key": z__namespace.string().min(1).max(255).optional()
3642
+ });
3349
3643
  z__namespace.object({
3350
3644
  connection_id: z__namespace.string(),
3351
3645
  ad_group_id: z__namespace.string().regex(/^\d+$/)
3352
3646
  });
3353
3647
  z__namespace.object({
3354
- id: z__namespace.string().nullable(),
3355
- resource_name: z__namespace.string().nullable(),
3356
- dry_run: z__namespace.boolean(),
3357
- executed: z__namespace.boolean()
3648
+ dry_run: z__namespace.boolean().optional().default(false)
3358
3649
  });
3359
3650
  z__namespace.object({
3360
- dry_run: z__namespace.boolean().optional().default(false)
3651
+ "Idempotency-Key": z__namespace.string().min(1).max(255).optional()
3361
3652
  });
3362
3653
  z__namespace.object({
3363
3654
  connection_id: z__namespace.string(),
3364
3655
  ad_group_id: z__namespace.string().regex(/^\d+$/),
3365
3656
  criterion_id: z__namespace.string().regex(/^\d+$/)
3366
3657
  });
3367
- z__namespace.object({
3368
- id: z__namespace.string(),
3369
- removed: z__namespace.boolean(),
3370
- dry_run: z__namespace.boolean(),
3371
- executed: z__namespace.boolean()
3372
- });
3373
3658
  z__namespace.object({
3374
3659
  connection_id: z__namespace.string()
3375
3660
  });
@@ -3383,40 +3668,7 @@ z__namespace.object({
3383
3668
  });
3384
3669
  z__namespace.object({
3385
3670
  object: z__namespace.literal("list"),
3386
- data: z__namespace.array(z__namespace.union([z__namespace.object({
3387
- kind: z__namespace.literal("user_list"),
3388
- id: z__namespace.string(),
3389
- resource_name: z__namespace.string(),
3390
- name: z__namespace.string().nullable(),
3391
- type: z__namespace.enum([
3392
- "UNSPECIFIED",
3393
- "UNKNOWN",
3394
- "REMARKETING",
3395
- "LOGICAL",
3396
- "EXTERNAL_REMARKETING",
3397
- "RULE_BASED",
3398
- "SIMILAR",
3399
- "CRM_BASED",
3400
- "LOOKALIKE"
3401
- ]),
3402
- membership_status: z__namespace.enum([
3403
- "UNSPECIFIED",
3404
- "UNKNOWN",
3405
- "OPEN",
3406
- "CLOSED"
3407
- ])
3408
- }), z__namespace.object({
3409
- kind: z__namespace.literal("audience"),
3410
- id: z__namespace.string(),
3411
- resource_name: z__namespace.string(),
3412
- name: z__namespace.string().nullable(),
3413
- status: z__namespace.enum([
3414
- "UNSPECIFIED",
3415
- "UNKNOWN",
3416
- "ENABLED",
3417
- "REMOVED"
3418
- ])
3419
- })]))
3671
+ data: z__namespace.array(zGoogleAdsAudience)
3420
3672
  });
3421
3673
  z__namespace.object({
3422
3674
  dry_run: z__namespace.boolean().optional().default(false),
@@ -3433,161 +3685,50 @@ z__namespace.object({
3433
3685
  bid_only: z__namespace.boolean()
3434
3686
  });
3435
3687
  z__namespace.object({
3436
- connection_id: z__namespace.string(),
3437
- campaign_id: z__namespace.string().regex(/^\d+$/)
3438
- });
3439
- z__namespace.object({
3440
- id: z__namespace.string(),
3441
- resource_name: z__namespace.string(),
3442
- dry_run: z__namespace.boolean(),
3443
- executed: z__namespace.boolean()
3444
- });
3445
- z__namespace.object({
3446
- connection_id: z__namespace.string()
3447
- });
3448
- z__namespace.object({
3449
- object: z__namespace.literal("list"),
3450
- data: z__namespace.array(z__namespace.object({
3451
- id: z__namespace.string(),
3452
- name: z__namespace.string().nullable(),
3453
- type: z__namespace.enum([
3454
- "UNSPECIFIED",
3455
- "UNKNOWN",
3456
- "TEXT_AD",
3457
- "EXPANDED_TEXT_AD",
3458
- "EXPANDED_DYNAMIC_SEARCH_AD",
3459
- "HOTEL_AD",
3460
- "SHOPPING_SMART_AD",
3461
- "SHOPPING_PRODUCT_AD",
3462
- "VIDEO_AD",
3463
- "IMAGE_AD",
3464
- "RESPONSIVE_SEARCH_AD",
3465
- "LEGACY_RESPONSIVE_DISPLAY_AD",
3466
- "APP_AD",
3467
- "LEGACY_APP_INSTALL_AD",
3468
- "RESPONSIVE_DISPLAY_AD",
3469
- "LOCAL_AD",
3470
- "HTML5_UPLOAD_AD",
3471
- "DYNAMIC_HTML5_AD",
3472
- "APP_ENGAGEMENT_AD",
3473
- "SHOPPING_COMPARISON_LISTING_AD",
3474
- "VIDEO_BUMPER_AD",
3475
- "VIDEO_NON_SKIPPABLE_IN_STREAM_AD",
3476
- "VIDEO_TRUEVIEW_IN_STREAM_AD",
3477
- "VIDEO_RESPONSIVE_AD",
3478
- "SMART_CAMPAIGN_AD",
3479
- "CALL_AD",
3480
- "APP_PRE_REGISTRATION_AD",
3481
- "IN_FEED_VIDEO_AD",
3482
- "DEMAND_GEN_MULTI_ASSET_AD",
3483
- "DEMAND_GEN_CAROUSEL_AD",
3484
- "TRAVEL_AD",
3485
- "DEMAND_GEN_VIDEO_RESPONSIVE_AD",
3486
- "DEMAND_GEN_PRODUCT_AD",
3487
- "YOUTUBE_AUDIO_AD"
3488
- ]),
3489
- status: z__namespace.enum([
3490
- "UNSPECIFIED",
3491
- "UNKNOWN",
3492
- "ENABLED",
3493
- "PAUSED",
3494
- "REMOVED"
3495
- ]),
3496
- ad_group: z__namespace.string().nullable()
3497
- }))
3498
- });
3499
- z__namespace.object({
3500
- ad_group: z__namespace.string().min(1),
3501
- final_urls: z__namespace.array(z__namespace.url()).min(1),
3502
- headlines: z__namespace.array(z__namespace.object({
3503
- text: z__namespace.string().min(1).max(30),
3504
- pinned_field: z__namespace.enum([
3505
- "HEADLINE_1",
3506
- "HEADLINE_2",
3507
- "HEADLINE_3"
3508
- ]).optional()
3509
- })).min(3).max(15),
3510
- descriptions: z__namespace.array(z__namespace.object({
3511
- text: z__namespace.string().min(1).max(90)
3512
- })).min(2).max(4),
3513
- path1: z__namespace.string().max(15).optional(),
3514
- path2: z__namespace.string().max(15).optional(),
3515
- status: z__namespace.enum(["ENABLED", "PAUSED"]).optional().default("PAUSED"),
3516
- dry_run: z__namespace.boolean().optional().default(false)
3517
- });
3518
- z__namespace.object({
3519
- connection_id: z__namespace.string()
3520
- });
3521
- z__namespace.object({
3522
- id: z__namespace.string().nullable(),
3523
- resource_name: z__namespace.string().nullable(),
3524
- dry_run: z__namespace.boolean(),
3525
- executed: z__namespace.boolean()
3526
- });
3527
- z__namespace.object({
3528
- dry_run: z__namespace.boolean().optional().default(false)
3529
- });
3530
- z__namespace.object({
3531
- connection_id: z__namespace.string(),
3532
- id: z__namespace.string().regex(/^\d+$/)
3533
- });
3534
- z__namespace.object({
3535
- id: z__namespace.string(),
3536
- removed: z__namespace.boolean(),
3537
- dry_run: z__namespace.boolean(),
3538
- executed: z__namespace.boolean()
3539
- });
3540
- z__namespace.object({
3541
- connection_id: z__namespace.string(),
3542
- id: z__namespace.string().regex(/^\d+$/)
3543
- });
3544
- z__namespace.object({
3545
- id: z__namespace.string(),
3546
- name: z__namespace.string().nullable(),
3547
- type: z__namespace.enum([
3548
- "UNSPECIFIED",
3549
- "UNKNOWN",
3550
- "TEXT_AD",
3551
- "EXPANDED_TEXT_AD",
3552
- "EXPANDED_DYNAMIC_SEARCH_AD",
3553
- "HOTEL_AD",
3554
- "SHOPPING_SMART_AD",
3555
- "SHOPPING_PRODUCT_AD",
3556
- "VIDEO_AD",
3557
- "IMAGE_AD",
3558
- "RESPONSIVE_SEARCH_AD",
3559
- "LEGACY_RESPONSIVE_DISPLAY_AD",
3560
- "APP_AD",
3561
- "LEGACY_APP_INSTALL_AD",
3562
- "RESPONSIVE_DISPLAY_AD",
3563
- "LOCAL_AD",
3564
- "HTML5_UPLOAD_AD",
3565
- "DYNAMIC_HTML5_AD",
3566
- "APP_ENGAGEMENT_AD",
3567
- "SHOPPING_COMPARISON_LISTING_AD",
3568
- "VIDEO_BUMPER_AD",
3569
- "VIDEO_NON_SKIPPABLE_IN_STREAM_AD",
3570
- "VIDEO_TRUEVIEW_IN_STREAM_AD",
3571
- "VIDEO_RESPONSIVE_AD",
3572
- "SMART_CAMPAIGN_AD",
3573
- "CALL_AD",
3574
- "APP_PRE_REGISTRATION_AD",
3575
- "IN_FEED_VIDEO_AD",
3576
- "DEMAND_GEN_MULTI_ASSET_AD",
3577
- "DEMAND_GEN_CAROUSEL_AD",
3578
- "TRAVEL_AD",
3579
- "DEMAND_GEN_VIDEO_RESPONSIVE_AD",
3580
- "DEMAND_GEN_PRODUCT_AD",
3581
- "YOUTUBE_AUDIO_AD"
3582
- ]),
3583
- status: z__namespace.enum([
3584
- "UNSPECIFIED",
3585
- "UNKNOWN",
3586
- "ENABLED",
3587
- "PAUSED",
3588
- "REMOVED"
3589
- ]),
3590
- ad_group: z__namespace.string().nullable()
3688
+ "Idempotency-Key": z__namespace.string().min(1).max(255).optional()
3689
+ });
3690
+ z__namespace.object({
3691
+ connection_id: z__namespace.string(),
3692
+ campaign_id: z__namespace.string().regex(/^\d+$/)
3693
+ });
3694
+ z__namespace.object({
3695
+ connection_id: z__namespace.string()
3696
+ });
3697
+ z__namespace.object({
3698
+ ad_group_id: z__namespace.string().regex(/^\d+$/).optional()
3699
+ });
3700
+ z__namespace.object({
3701
+ object: z__namespace.literal("list"),
3702
+ data: z__namespace.array(zGoogleAdsAd)
3703
+ });
3704
+ z__namespace.object({
3705
+ ad_group: z__namespace.string().min(1),
3706
+ final_urls: z__namespace.array(z__namespace.url()).min(1),
3707
+ headlines: z__namespace.array(z__namespace.object({
3708
+ text: z__namespace.string().min(1).max(30),
3709
+ pinned_field: z__namespace.enum([
3710
+ "HEADLINE_1",
3711
+ "HEADLINE_2",
3712
+ "HEADLINE_3"
3713
+ ]).optional()
3714
+ })).min(3).max(15),
3715
+ descriptions: z__namespace.array(z__namespace.object({
3716
+ text: z__namespace.string().min(1).max(90)
3717
+ })).min(2).max(4),
3718
+ path1: z__namespace.string().max(15).optional(),
3719
+ path2: z__namespace.string().max(15).optional(),
3720
+ status: z__namespace.enum(["ENABLED", "PAUSED"]).optional().default("PAUSED"),
3721
+ dry_run: z__namespace.boolean().optional().default(false)
3722
+ });
3723
+ z__namespace.object({
3724
+ "Idempotency-Key": z__namespace.string().min(1).max(255).optional()
3725
+ });
3726
+ z__namespace.object({
3727
+ connection_id: z__namespace.string()
3728
+ });
3729
+ z__namespace.object({
3730
+ connection_id: z__namespace.string(),
3731
+ id: z__namespace.string().regex(/^\d+~\d+$/)
3591
3732
  });
3592
3733
  z__namespace.object({
3593
3734
  ad_group: z__namespace.string().min(1),
@@ -3620,21 +3761,31 @@ z__namespace.object({
3620
3761
  status: z__namespace.enum(["ENABLED", "PAUSED"]).optional().default("PAUSED"),
3621
3762
  dry_run: z__namespace.boolean().optional().default(false)
3622
3763
  });
3764
+ z__namespace.object({
3765
+ "Idempotency-Key": z__namespace.string().min(1).max(255).optional()
3766
+ });
3623
3767
  z__namespace.object({
3624
3768
  connection_id: z__namespace.string()
3625
3769
  });
3626
3770
  z__namespace.object({
3627
- id: z__namespace.string().nullable(),
3628
- resource_name: z__namespace.string().nullable(),
3629
- dry_run: z__namespace.boolean(),
3630
- executed: z__namespace.boolean()
3771
+ dry_run: z__namespace.boolean().optional().default(false)
3772
+ });
3773
+ z__namespace.object({
3774
+ "Idempotency-Key": z__namespace.string().min(1).max(255).optional()
3775
+ });
3776
+ z__namespace.object({
3777
+ connection_id: z__namespace.string(),
3778
+ id: z__namespace.string().regex(/^\d+~\d+$/)
3631
3779
  });
3632
3780
  z__namespace.object({
3633
3781
  dry_run: z__namespace.boolean().optional().default(false)
3634
3782
  });
3783
+ z__namespace.object({
3784
+ "Idempotency-Key": z__namespace.string().min(1).max(255).optional()
3785
+ });
3635
3786
  z__namespace.object({
3636
3787
  connection_id: z__namespace.string(),
3637
- id: z__namespace.string().regex(/^\d+$/)
3788
+ id: z__namespace.string().regex(/^\d+~\d+$/)
3638
3789
  });
3639
3790
  z__namespace.object({
3640
3791
  id: z__namespace.string(),
@@ -3645,9 +3796,12 @@ z__namespace.object({
3645
3796
  z__namespace.object({
3646
3797
  dry_run: z__namespace.boolean().optional().default(false)
3647
3798
  });
3799
+ z__namespace.object({
3800
+ "Idempotency-Key": z__namespace.string().min(1).max(255).optional()
3801
+ });
3648
3802
  z__namespace.object({
3649
3803
  connection_id: z__namespace.string(),
3650
- id: z__namespace.string().regex(/^\d+$/)
3804
+ id: z__namespace.string().regex(/^\d+~\d+$/)
3651
3805
  });
3652
3806
  z__namespace.object({
3653
3807
  id: z__namespace.string(),
@@ -3658,28 +3812,12 @@ z__namespace.object({
3658
3812
  z__namespace.object({
3659
3813
  connection_id: z__namespace.string()
3660
3814
  });
3815
+ z__namespace.object({
3816
+ ad_group_id: z__namespace.string().regex(/^\d+$/).optional()
3817
+ });
3661
3818
  z__namespace.object({
3662
3819
  object: z__namespace.literal("list"),
3663
- data: z__namespace.array(z__namespace.object({
3664
- id: z__namespace.string(),
3665
- text: z__namespace.string().nullable(),
3666
- match_type: z__namespace.enum([
3667
- "UNSPECIFIED",
3668
- "UNKNOWN",
3669
- "EXACT",
3670
- "PHRASE",
3671
- "BROAD"
3672
- ]),
3673
- status: z__namespace.enum([
3674
- "UNSPECIFIED",
3675
- "UNKNOWN",
3676
- "ENABLED",
3677
- "PAUSED",
3678
- "REMOVED"
3679
- ]),
3680
- negative: z__namespace.boolean(),
3681
- ad_group: z__namespace.string().nullable()
3682
- }))
3820
+ data: z__namespace.array(zGoogleAdsKeyword)
3683
3821
  });
3684
3822
  z__namespace.object({
3685
3823
  ad_group: z__namespace.string().min(1),
@@ -3694,71 +3832,45 @@ z__namespace.object({
3694
3832
  dry_run: z__namespace.boolean().optional().default(false)
3695
3833
  });
3696
3834
  z__namespace.object({
3697
- connection_id: z__namespace.string()
3835
+ "Idempotency-Key": z__namespace.string().min(1).max(255).optional()
3698
3836
  });
3699
3837
  z__namespace.object({
3700
- id: z__namespace.string().nullable(),
3701
- resource_name: z__namespace.string().nullable(),
3702
- dry_run: z__namespace.boolean(),
3703
- executed: z__namespace.boolean()
3838
+ connection_id: z__namespace.string()
3704
3839
  });
3705
3840
  z__namespace.object({
3706
- dry_run: z__namespace.boolean().optional().default(false)
3841
+ connection_id: z__namespace.string(),
3842
+ id: z__namespace.string().regex(/^\d+~\d+$/)
3707
3843
  });
3708
3844
  z__namespace.object({
3709
- connection_id: z__namespace.string(),
3710
- id: z__namespace.string().regex(/^\d+$/)
3845
+ cpc_bid_micros: z__namespace.int().gt(0).lte(9007199254740991),
3846
+ dry_run: z__namespace.boolean().optional().default(false)
3711
3847
  });
3712
3848
  z__namespace.object({
3713
- id: z__namespace.string(),
3714
- removed: z__namespace.boolean(),
3715
- dry_run: z__namespace.boolean(),
3716
- executed: z__namespace.boolean()
3849
+ "Idempotency-Key": z__namespace.string().min(1).max(255).optional()
3717
3850
  });
3718
3851
  z__namespace.object({
3719
3852
  connection_id: z__namespace.string(),
3720
- id: z__namespace.string().regex(/^\d+$/)
3853
+ id: z__namespace.string().regex(/^\d+~\d+$/)
3721
3854
  });
3722
3855
  z__namespace.object({
3723
- id: z__namespace.string(),
3724
- text: z__namespace.string().nullable(),
3725
- match_type: z__namespace.enum([
3726
- "UNSPECIFIED",
3727
- "UNKNOWN",
3728
- "EXACT",
3729
- "PHRASE",
3730
- "BROAD"
3731
- ]),
3732
- status: z__namespace.enum([
3733
- "UNSPECIFIED",
3734
- "UNKNOWN",
3735
- "ENABLED",
3736
- "PAUSED",
3737
- "REMOVED"
3738
- ]),
3739
- negative: z__namespace.boolean(),
3740
- ad_group: z__namespace.string().nullable()
3856
+ dry_run: z__namespace.boolean().optional().default(false)
3741
3857
  });
3742
3858
  z__namespace.object({
3743
- cpc_bid_micros: z__namespace.int().gt(0).lte(9007199254740991),
3744
- dry_run: z__namespace.boolean().optional().default(false)
3859
+ "Idempotency-Key": z__namespace.string().min(1).max(255).optional()
3745
3860
  });
3746
3861
  z__namespace.object({
3747
3862
  connection_id: z__namespace.string(),
3748
- id: z__namespace.string().regex(/^\d+$/)
3863
+ id: z__namespace.string().regex(/^\d+~\d+$/)
3749
3864
  });
3750
3865
  z__namespace.object({
3751
- id: z__namespace.string(),
3752
- resource_name: z__namespace.string(),
3753
- dry_run: z__namespace.boolean(),
3754
- executed: z__namespace.boolean()
3866
+ dry_run: z__namespace.boolean().optional().default(false)
3755
3867
  });
3756
3868
  z__namespace.object({
3757
- dry_run: z__namespace.boolean().optional().default(false)
3869
+ "Idempotency-Key": z__namespace.string().min(1).max(255).optional()
3758
3870
  });
3759
3871
  z__namespace.object({
3760
3872
  connection_id: z__namespace.string(),
3761
- id: z__namespace.string().regex(/^\d+$/)
3873
+ id: z__namespace.string().regex(/^\d+~\d+$/)
3762
3874
  });
3763
3875
  z__namespace.object({
3764
3876
  id: z__namespace.string(),
@@ -3769,9 +3881,12 @@ z__namespace.object({
3769
3881
  z__namespace.object({
3770
3882
  dry_run: z__namespace.boolean().optional().default(false)
3771
3883
  });
3884
+ z__namespace.object({
3885
+ "Idempotency-Key": z__namespace.string().min(1).max(255).optional()
3886
+ });
3772
3887
  z__namespace.object({
3773
3888
  connection_id: z__namespace.string(),
3774
- id: z__namespace.string().regex(/^\d+$/)
3889
+ id: z__namespace.string().regex(/^\d+~\d+$/)
3775
3890
  });
3776
3891
  z__namespace.object({
3777
3892
  id: z__namespace.string(),
@@ -3943,13 +4058,10 @@ z__namespace.object({
3943
4058
  dry_run: z__namespace.boolean().optional().default(false)
3944
4059
  });
3945
4060
  z__namespace.object({
3946
- connection_id: z__namespace.string()
4061
+ "Idempotency-Key": z__namespace.string().min(1).max(255).optional()
3947
4062
  });
3948
4063
  z__namespace.object({
3949
- id: z__namespace.string().nullable(),
3950
- resource_name: z__namespace.string().nullable(),
3951
- dry_run: z__namespace.boolean(),
3952
- executed: z__namespace.boolean()
4064
+ connection_id: z__namespace.string()
3953
4065
  });
3954
4066
  z__namespace.object({
3955
4067
  connection_id: z__namespace.string(),
@@ -4154,6 +4266,9 @@ z__namespace.object({
4154
4266
  biddable: z__namespace.boolean(),
4155
4267
  dry_run: z__namespace.boolean().optional().default(false)
4156
4268
  });
4269
+ z__namespace.object({
4270
+ "Idempotency-Key": z__namespace.string().min(1).max(255).optional()
4271
+ });
4157
4272
  z__namespace.object({
4158
4273
  connection_id: z__namespace.string()
4159
4274
  });
@@ -4219,6 +4334,9 @@ z__namespace.object({
4219
4334
  })).min(1).max(2e3),
4220
4335
  dry_run: z__namespace.boolean().optional().default(false)
4221
4336
  });
4337
+ z__namespace.object({
4338
+ "Idempotency-Key": z__namespace.string().min(1).max(255).optional()
4339
+ });
4222
4340
  z__namespace.object({
4223
4341
  connection_id: z__namespace.string()
4224
4342
  });
@@ -4238,13 +4356,10 @@ z__namespace.object({
4238
4356
  dry_run: z__namespace.boolean().optional().default(false)
4239
4357
  });
4240
4358
  z__namespace.object({
4241
- connection_id: z__namespace.string()
4359
+ "Idempotency-Key": z__namespace.string().min(1).max(255).optional()
4242
4360
  });
4243
4361
  z__namespace.object({
4244
- id: z__namespace.string().nullable(),
4245
- resource_name: z__namespace.string().nullable(),
4246
- dry_run: z__namespace.boolean(),
4247
- executed: z__namespace.boolean()
4362
+ connection_id: z__namespace.string()
4248
4363
  });
4249
4364
  z__namespace.object({
4250
4365
  id: z__namespace.string()
@@ -4471,6 +4586,9 @@ z__namespace.object({
4471
4586
  "post.completed"
4472
4587
  ]))
4473
4588
  });
4589
+ z__namespace.object({
4590
+ "Idempotency-Key": z__namespace.string().min(1).max(255).optional()
4591
+ });
4474
4592
  z__namespace.object({
4475
4593
  id: z__namespace.string(),
4476
4594
  url: z__namespace.string(),
@@ -5166,6 +5284,19 @@ var googleGetInsights = (options) => (options.client ?? client).post({
5166
5284
  ...options.headers
5167
5285
  }
5168
5286
  });
5287
+ var googleGetAdTree = (options) => (options.client ?? client).get({
5288
+ security: [{
5289
+ key: "secretKey",
5290
+ scheme: "bearer",
5291
+ type: "http"
5292
+ }, {
5293
+ key: "frontendToken",
5294
+ scheme: "bearer",
5295
+ type: "http"
5296
+ }],
5297
+ url: "/google/{connection_id}/ads/tree",
5298
+ ...options
5299
+ });
5169
5300
  var googleRunGaql = (options) => (options.client ?? client).post({
5170
5301
  security: [{
5171
5302
  key: "secretKey",
@@ -5196,15 +5327,11 @@ var googleCreateBudget = (options) => (options.client ?? client).post({
5196
5327
  ...options.headers
5197
5328
  }
5198
5329
  });
5199
- var googleDeleteBudget = (options) => (options.client ?? client).delete({
5330
+ var googleEditBudget = (options) => (options.client ?? client).patch({
5200
5331
  security: [{
5201
5332
  key: "secretKey",
5202
5333
  scheme: "bearer",
5203
5334
  type: "http"
5204
- }, {
5205
- key: "frontendToken",
5206
- scheme: "bearer",
5207
- type: "http"
5208
5335
  }],
5209
5336
  url: "/google/{connection_id}/budgets/{id}",
5210
5337
  ...options,
@@ -5213,13 +5340,17 @@ var googleDeleteBudget = (options) => (options.client ?? client).delete({
5213
5340
  ...options.headers
5214
5341
  }
5215
5342
  });
5216
- var googleEditBudget = (options) => (options.client ?? client).patch({
5343
+ var googleRemoveBudget = (options) => (options.client ?? client).post({
5217
5344
  security: [{
5218
5345
  key: "secretKey",
5219
5346
  scheme: "bearer",
5220
5347
  type: "http"
5348
+ }, {
5349
+ key: "frontendToken",
5350
+ scheme: "bearer",
5351
+ type: "http"
5221
5352
  }],
5222
- url: "/google/{connection_id}/budgets/{id}",
5353
+ url: "/google/{connection_id}/budgets/{id}/remove",
5223
5354
  ...options,
5224
5355
  headers: {
5225
5356
  "Content-Type": "application/json",
@@ -5256,7 +5387,7 @@ var googleCreateCampaign = (options) => (options.client ?? client).post({
5256
5387
  ...options.headers
5257
5388
  }
5258
5389
  });
5259
- var googleDeleteCampaign = (options) => (options.client ?? client).delete({
5390
+ var googleGetCampaign = (options) => (options.client ?? client).get({
5260
5391
  security: [{
5261
5392
  key: "secretKey",
5262
5393
  scheme: "bearer",
@@ -5267,13 +5398,9 @@ var googleDeleteCampaign = (options) => (options.client ?? client).delete({
5267
5398
  type: "http"
5268
5399
  }],
5269
5400
  url: "/google/{connection_id}/campaigns/{id}",
5270
- ...options,
5271
- headers: {
5272
- "Content-Type": "application/json",
5273
- ...options.headers
5274
- }
5401
+ ...options
5275
5402
  });
5276
- var googleGetCampaign = (options) => (options.client ?? client).get({
5403
+ var googleEditCampaign = (options) => (options.client ?? client).patch({
5277
5404
  security: [{
5278
5405
  key: "secretKey",
5279
5406
  scheme: "bearer",
@@ -5284,9 +5411,13 @@ var googleGetCampaign = (options) => (options.client ?? client).get({
5284
5411
  type: "http"
5285
5412
  }],
5286
5413
  url: "/google/{connection_id}/campaigns/{id}",
5287
- ...options
5414
+ ...options,
5415
+ headers: {
5416
+ "Content-Type": "application/json",
5417
+ ...options.headers
5418
+ }
5288
5419
  });
5289
- var googleEditCampaign = (options) => (options.client ?? client).patch({
5420
+ var googleRemoveCampaign = (options) => (options.client ?? client).post({
5290
5421
  security: [{
5291
5422
  key: "secretKey",
5292
5423
  scheme: "bearer",
@@ -5296,7 +5427,7 @@ var googleEditCampaign = (options) => (options.client ?? client).patch({
5296
5427
  scheme: "bearer",
5297
5428
  type: "http"
5298
5429
  }],
5299
- url: "/google/{connection_id}/campaigns/{id}",
5430
+ url: "/google/{connection_id}/campaigns/{id}/remove",
5300
5431
  ...options,
5301
5432
  headers: {
5302
5433
  "Content-Type": "application/json",
@@ -5380,7 +5511,7 @@ var googleCreateCampaignCriterion = (options) => (options.client ?? client).post
5380
5511
  ...options.headers
5381
5512
  }
5382
5513
  });
5383
- var googleDeleteCampaignCriterion = (options) => (options.client ?? client).delete({
5514
+ var googleRemoveCampaignCriterion = (options) => (options.client ?? client).post({
5384
5515
  security: [{
5385
5516
  key: "secretKey",
5386
5517
  scheme: "bearer",
@@ -5390,7 +5521,7 @@ var googleDeleteCampaignCriterion = (options) => (options.client ?? client).dele
5390
5521
  scheme: "bearer",
5391
5522
  type: "http"
5392
5523
  }],
5393
- url: "/google/{connection_id}/campaigns/{campaign_id}/criteria/{criterion_id}",
5524
+ url: "/google/{connection_id}/campaigns/{campaign_id}/criteria/{criterion_id}/remove",
5394
5525
  ...options,
5395
5526
  headers: {
5396
5527
  "Content-Type": "application/json",
@@ -5444,7 +5575,7 @@ var googleCreateAdGroup = (options) => (options.client ?? client).post({
5444
5575
  ...options.headers
5445
5576
  }
5446
5577
  });
5447
- var googleDeleteAdGroup = (options) => (options.client ?? client).delete({
5578
+ var googleGetAdGroup = (options) => (options.client ?? client).get({
5448
5579
  security: [{
5449
5580
  key: "secretKey",
5450
5581
  scheme: "bearer",
@@ -5455,13 +5586,9 @@ var googleDeleteAdGroup = (options) => (options.client ?? client).delete({
5455
5586
  type: "http"
5456
5587
  }],
5457
5588
  url: "/google/{connection_id}/ad-groups/{id}",
5458
- ...options,
5459
- headers: {
5460
- "Content-Type": "application/json",
5461
- ...options.headers
5462
- }
5589
+ ...options
5463
5590
  });
5464
- var googleGetAdGroup = (options) => (options.client ?? client).get({
5591
+ var googleEditAdGroup = (options) => (options.client ?? client).patch({
5465
5592
  security: [{
5466
5593
  key: "secretKey",
5467
5594
  scheme: "bearer",
@@ -5472,32 +5599,36 @@ var googleGetAdGroup = (options) => (options.client ?? client).get({
5472
5599
  type: "http"
5473
5600
  }],
5474
5601
  url: "/google/{connection_id}/ad-groups/{id}",
5475
- ...options
5602
+ ...options,
5603
+ headers: {
5604
+ "Content-Type": "application/json",
5605
+ ...options.headers
5606
+ }
5476
5607
  });
5477
- var googleEditAdGroup = (options) => (options.client ?? client).patch({
5608
+ var googleSetAdGroupBids = (options) => (options.client ?? client).patch({
5478
5609
  security: [{
5479
5610
  key: "secretKey",
5480
5611
  scheme: "bearer",
5481
5612
  type: "http"
5482
- }, {
5483
- key: "frontendToken",
5484
- scheme: "bearer",
5485
- type: "http"
5486
5613
  }],
5487
- url: "/google/{connection_id}/ad-groups/{id}",
5614
+ url: "/google/{connection_id}/ad-groups/{id}/bids",
5488
5615
  ...options,
5489
5616
  headers: {
5490
5617
  "Content-Type": "application/json",
5491
5618
  ...options.headers
5492
5619
  }
5493
5620
  });
5494
- var googleSetAdGroupBids = (options) => (options.client ?? client).patch({
5621
+ var googleRemoveAdGroup = (options) => (options.client ?? client).post({
5495
5622
  security: [{
5496
5623
  key: "secretKey",
5497
5624
  scheme: "bearer",
5498
5625
  type: "http"
5626
+ }, {
5627
+ key: "frontendToken",
5628
+ scheme: "bearer",
5629
+ type: "http"
5499
5630
  }],
5500
- url: "/google/{connection_id}/ad-groups/{id}/bids",
5631
+ url: "/google/{connection_id}/ad-groups/{id}/remove",
5501
5632
  ...options,
5502
5633
  headers: {
5503
5634
  "Content-Type": "application/json",
@@ -5568,7 +5699,7 @@ var googleCreateAdGroupCriterion = (options) => (options.client ?? client).post(
5568
5699
  ...options.headers
5569
5700
  }
5570
5701
  });
5571
- var googleDeleteAdGroupCriterion = (options) => (options.client ?? client).delete({
5702
+ var googleRemoveAdGroupCriterion = (options) => (options.client ?? client).post({
5572
5703
  security: [{
5573
5704
  key: "secretKey",
5574
5705
  scheme: "bearer",
@@ -5578,7 +5709,7 @@ var googleDeleteAdGroupCriterion = (options) => (options.client ?? client).delet
5578
5709
  scheme: "bearer",
5579
5710
  type: "http"
5580
5711
  }],
5581
- url: "/google/{connection_id}/ad-groups/{ad_group_id}/criteria/{criterion_id}",
5712
+ url: "/google/{connection_id}/ad-groups/{ad_group_id}/criteria/{criterion_id}/remove",
5582
5713
  ...options,
5583
5714
  headers: {
5584
5715
  "Content-Type": "application/json",
@@ -5645,7 +5776,7 @@ var googleCreateAd = (options) => (options.client ?? client).post({
5645
5776
  ...options.headers
5646
5777
  }
5647
5778
  });
5648
- var googleDeleteAd = (options) => (options.client ?? client).delete({
5779
+ var googleGetAd = (options) => (options.client ?? client).get({
5649
5780
  security: [{
5650
5781
  key: "secretKey",
5651
5782
  scheme: "bearer",
@@ -5656,13 +5787,9 @@ var googleDeleteAd = (options) => (options.client ?? client).delete({
5656
5787
  type: "http"
5657
5788
  }],
5658
5789
  url: "/google/{connection_id}/ads/{id}",
5659
- ...options,
5660
- headers: {
5661
- "Content-Type": "application/json",
5662
- ...options.headers
5663
- }
5790
+ ...options
5664
5791
  });
5665
- var googleGetAd = (options) => (options.client ?? client).get({
5792
+ var googleCreateDisplayAd = (options) => (options.client ?? client).post({
5666
5793
  security: [{
5667
5794
  key: "secretKey",
5668
5795
  scheme: "bearer",
@@ -5672,10 +5799,14 @@ var googleGetAd = (options) => (options.client ?? client).get({
5672
5799
  scheme: "bearer",
5673
5800
  type: "http"
5674
5801
  }],
5675
- url: "/google/{connection_id}/ads/{id}",
5676
- ...options
5802
+ url: "/google/{connection_id}/display-ads",
5803
+ ...options,
5804
+ headers: {
5805
+ "Content-Type": "application/json",
5806
+ ...options.headers
5807
+ }
5677
5808
  });
5678
- var googleCreateDisplayAd = (options) => (options.client ?? client).post({
5809
+ var googleRemoveAd = (options) => (options.client ?? client).post({
5679
5810
  security: [{
5680
5811
  key: "secretKey",
5681
5812
  scheme: "bearer",
@@ -5685,7 +5816,7 @@ var googleCreateDisplayAd = (options) => (options.client ?? client).post({
5685
5816
  scheme: "bearer",
5686
5817
  type: "http"
5687
5818
  }],
5688
- url: "/google/{connection_id}/display-ads",
5819
+ url: "/google/{connection_id}/ads/{id}/remove",
5689
5820
  ...options,
5690
5821
  headers: {
5691
5822
  "Content-Type": "application/json",
@@ -5756,7 +5887,7 @@ var googleCreateKeyword = (options) => (options.client ?? client).post({
5756
5887
  ...options.headers
5757
5888
  }
5758
5889
  });
5759
- var googleDeleteKeyword = (options) => (options.client ?? client).delete({
5890
+ var googleGetKeyword = (options) => (options.client ?? client).get({
5760
5891
  security: [{
5761
5892
  key: "secretKey",
5762
5893
  scheme: "bearer",
@@ -5767,13 +5898,22 @@ var googleDeleteKeyword = (options) => (options.client ?? client).delete({
5767
5898
  type: "http"
5768
5899
  }],
5769
5900
  url: "/google/{connection_id}/keywords/{id}",
5901
+ ...options
5902
+ });
5903
+ var googleSetKeywordBid = (options) => (options.client ?? client).patch({
5904
+ security: [{
5905
+ key: "secretKey",
5906
+ scheme: "bearer",
5907
+ type: "http"
5908
+ }],
5909
+ url: "/google/{connection_id}/keywords/{id}/bid",
5770
5910
  ...options,
5771
5911
  headers: {
5772
5912
  "Content-Type": "application/json",
5773
5913
  ...options.headers
5774
5914
  }
5775
5915
  });
5776
- var googleGetKeyword = (options) => (options.client ?? client).get({
5916
+ var googleRemoveKeyword = (options) => (options.client ?? client).post({
5777
5917
  security: [{
5778
5918
  key: "secretKey",
5779
5919
  scheme: "bearer",
@@ -5783,16 +5923,7 @@ var googleGetKeyword = (options) => (options.client ?? client).get({
5783
5923
  scheme: "bearer",
5784
5924
  type: "http"
5785
5925
  }],
5786
- url: "/google/{connection_id}/keywords/{id}",
5787
- ...options
5788
- });
5789
- var googleSetKeywordBid = (options) => (options.client ?? client).patch({
5790
- security: [{
5791
- key: "secretKey",
5792
- scheme: "bearer",
5793
- type: "http"
5794
- }],
5795
- url: "/google/{connection_id}/keywords/{id}/bid",
5926
+ url: "/google/{connection_id}/keywords/{id}/remove",
5796
5927
  ...options,
5797
5928
  headers: {
5798
5929
  "Content-Type": "application/json",
@@ -6221,6 +6352,28 @@ function xPollDurationLabel(durationMinutes) {
6221
6352
  return plural(durationMinutes, "minute");
6222
6353
  }
6223
6354
 
6355
+ // src/ads-tree.ts
6356
+ function groupAdTree(nodes) {
6357
+ const byId = /* @__PURE__ */ new Map();
6358
+ for (const node of nodes) {
6359
+ byId.set(node.id, { ...node, children: [] });
6360
+ }
6361
+ const roots = [];
6362
+ for (const node of nodes) {
6363
+ const treeNode = byId.get(node.id);
6364
+ if (treeNode === void 0) {
6365
+ continue;
6366
+ }
6367
+ const parent = node.parent_id === null ? void 0 : byId.get(node.parent_id);
6368
+ if (parent === void 0) {
6369
+ roots.push(treeNode);
6370
+ } else {
6371
+ parent.children.push(treeNode);
6372
+ }
6373
+ }
6374
+ return roots;
6375
+ }
6376
+
6224
6377
  // src/tiktok-options.ts
6225
6378
  var TIKTOK_CAPTION_MAX = { video: 2200, photo: 4e3 };
6226
6379
  function captionMaxFor(postType) {
@@ -6566,13 +6719,6 @@ exports.googleCreateCampaignCriterion = googleCreateCampaignCriterion;
6566
6719
  exports.googleCreateConversionAction = googleCreateConversionAction;
6567
6720
  exports.googleCreateDisplayAd = googleCreateDisplayAd;
6568
6721
  exports.googleCreateKeyword = googleCreateKeyword;
6569
- exports.googleDeleteAd = googleDeleteAd;
6570
- exports.googleDeleteAdGroup = googleDeleteAdGroup;
6571
- exports.googleDeleteAdGroupCriterion = googleDeleteAdGroupCriterion;
6572
- exports.googleDeleteBudget = googleDeleteBudget;
6573
- exports.googleDeleteCampaign = googleDeleteCampaign;
6574
- exports.googleDeleteCampaignCriterion = googleDeleteCampaignCriterion;
6575
- exports.googleDeleteKeyword = googleDeleteKeyword;
6576
6722
  exports.googleEditAdGroup = googleEditAdGroup;
6577
6723
  exports.googleEditBudget = googleEditBudget;
6578
6724
  exports.googleEditCampaign = googleEditCampaign;
@@ -6583,6 +6729,7 @@ exports.googleEnableKeyword = googleEnableKeyword;
6583
6729
  exports.googleGetAccount = googleGetAccount;
6584
6730
  exports.googleGetAd = googleGetAd;
6585
6731
  exports.googleGetAdGroup = googleGetAdGroup;
6732
+ exports.googleGetAdTree = googleGetAdTree;
6586
6733
  exports.googleGetCampaign = googleGetCampaign;
6587
6734
  exports.googleGetConversionAction = googleGetConversionAction;
6588
6735
  exports.googleGetInsights = googleGetInsights;
@@ -6600,6 +6747,13 @@ exports.googlePauseAd = googlePauseAd;
6600
6747
  exports.googlePauseAdGroup = googlePauseAdGroup;
6601
6748
  exports.googlePauseCampaign = googlePauseCampaign;
6602
6749
  exports.googlePauseKeyword = googlePauseKeyword;
6750
+ exports.googleRemoveAd = googleRemoveAd;
6751
+ exports.googleRemoveAdGroup = googleRemoveAdGroup;
6752
+ exports.googleRemoveAdGroupCriterion = googleRemoveAdGroupCriterion;
6753
+ exports.googleRemoveBudget = googleRemoveBudget;
6754
+ exports.googleRemoveCampaign = googleRemoveCampaign;
6755
+ exports.googleRemoveCampaignCriterion = googleRemoveCampaignCriterion;
6756
+ exports.googleRemoveKeyword = googleRemoveKeyword;
6603
6757
  exports.googleRunGaql = googleRunGaql;
6604
6758
  exports.googleSearchGeoTargets = googleSearchGeoTargets;
6605
6759
  exports.googleSetAdGroupBids = googleSetAdGroupBids;
@@ -6609,6 +6763,7 @@ exports.googleSetConversionGoal = googleSetConversionGoal;
6609
6763
  exports.googleSetKeywordBid = googleSetKeywordBid;
6610
6764
  exports.googleUploadConversions = googleUploadConversions;
6611
6765
  exports.googleUploadImageAsset = googleUploadImageAsset;
6766
+ exports.groupAdTree = groupAdTree;
6612
6767
  exports.interactionRows = interactionRows;
6613
6768
  exports.interactionValueKey = interactionValueKey;
6614
6769
  exports.isInteractionForbidden = isInteractionForbidden;