@postrun/js 2.17.0 → 2.19.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
@@ -907,7 +907,18 @@ var zErrorCode = z__namespace.enum([
907
907
  "tiktok_url_ownership_unverified",
908
908
  "tiktok_unaudited_private_only",
909
909
  "tiktok_spam_risk",
910
+ "tiktok_file_format_invalid",
911
+ "tiktok_duration_invalid",
912
+ "tiktok_frame_rate_invalid",
913
+ "tiktok_resolution_invalid",
914
+ "tiktok_media_pull_failed",
915
+ "tiktok_server_error",
910
916
  "tiktok_publish_failed",
917
+ "google_rate_limited",
918
+ "google_server_error",
919
+ "google_auth_expired",
920
+ "google_permission_denied",
921
+ "google_request_failed",
911
922
  "post_publish_failed",
912
923
  "post_partially_published",
913
924
  "connection_platform_mismatch",
@@ -1684,6 +1695,564 @@ z__namespace.object({
1684
1695
  dry_run: z__namespace.boolean().optional().default(false),
1685
1696
  variants: z__namespace.array(zPostVariantInput).min(1)
1686
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(),
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(),
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
+ });
1687
2256
  z__namespace.object({
1688
2257
  limit: z__namespace.int().gte(1).lte(100).optional().default(20),
1689
2258
  offset: z__namespace.int().gte(0).lte(9007199254740991).optional().default(0),
@@ -2270,7 +2839,18 @@ z__namespace.object({
2270
2839
  "tiktok_url_ownership_unverified",
2271
2840
  "tiktok_unaudited_private_only",
2272
2841
  "tiktok_spam_risk",
2842
+ "tiktok_file_format_invalid",
2843
+ "tiktok_duration_invalid",
2844
+ "tiktok_frame_rate_invalid",
2845
+ "tiktok_resolution_invalid",
2846
+ "tiktok_media_pull_failed",
2847
+ "tiktok_server_error",
2273
2848
  "tiktok_publish_failed",
2849
+ "google_rate_limited",
2850
+ "google_server_error",
2851
+ "google_auth_expired",
2852
+ "google_permission_denied",
2853
+ "google_request_failed",
2274
2854
  "post_publish_failed",
2275
2855
  "post_partially_published",
2276
2856
  "connection_platform_mismatch",
@@ -2499,47 +3079,22 @@ z__namespace.object({
2499
3079
  test_account: z__namespace.boolean()
2500
3080
  });
2501
3081
  z__namespace.object({
2502
- level: z__namespace.enum([
2503
- "account",
2504
- "campaign",
2505
- "ad_group"
2506
- ]).optional().default("campaign"),
2507
- metrics: z__namespace.array(z__namespace.enum([
2508
- "impressions",
2509
- "clicks",
2510
- "ctr",
2511
- "average_cpc",
2512
- "cost_micros",
2513
- "conversions",
2514
- "conversions_value",
2515
- "cost_per_conversion"
2516
- ])).min(1).optional().default([
3082
+ level: zGoogleAdsInsightLevel.optional().default("campaign"),
3083
+ metrics: z__namespace.array(zGoogleAdsInsightMetric).min(1).optional().default([
2517
3084
  "impressions",
2518
3085
  "clicks",
2519
3086
  "cost_micros",
2520
3087
  "conversions"
2521
3088
  ]),
2522
- segments: z__namespace.array(z__namespace.enum(["date", "device"])).optional(),
2523
- since: z__namespace.string().regex(/^\d{4}-\d{2}-\d{2}$/),
2524
- until: z__namespace.string().regex(/^\d{4}-\d{2}-\d{2}$/)
3089
+ segments: z__namespace.array(zGoogleAdsInsightSegment).optional(),
3090
+ campaign_id: z__namespace.string().regex(/^\d+$/).optional(),
3091
+ ad_group_id: z__namespace.string().regex(/^\d+$/).optional(),
3092
+ since: z__namespace.iso.date(),
3093
+ until: z__namespace.iso.date()
2525
3094
  });
2526
3095
  z__namespace.object({
2527
3096
  connection_id: z__namespace.string()
2528
3097
  });
2529
- z__namespace.object({
2530
- object: z__namespace.literal("list"),
2531
- data: z__namespace.array(z__namespace.object({
2532
- level: z__namespace.enum([
2533
- "account",
2534
- "campaign",
2535
- "ad_group"
2536
- ]),
2537
- id: z__namespace.string(),
2538
- name: z__namespace.string().nullable(),
2539
- metrics: z__namespace.record(z__namespace.string(), z__namespace.number().nullable()),
2540
- segments: z__namespace.record(z__namespace.string(), z__namespace.string()).optional()
2541
- }))
2542
- });
2543
3098
  z__namespace.object({
2544
3099
  query: z__namespace.string().min(1).max(1e4)
2545
3100
  });
@@ -2558,12 +3113,6 @@ z__namespace.object({
2558
3113
  z__namespace.object({
2559
3114
  connection_id: z__namespace.string()
2560
3115
  });
2561
- z__namespace.object({
2562
- id: z__namespace.string().nullable(),
2563
- resource_name: z__namespace.string().nullable(),
2564
- dry_run: z__namespace.boolean(),
2565
- executed: z__namespace.boolean()
2566
- });
2567
3116
  z__namespace.object({
2568
3117
  dry_run: z__namespace.boolean().optional().default(false)
2569
3118
  });
@@ -2571,12 +3120,6 @@ z__namespace.object({
2571
3120
  connection_id: z__namespace.string(),
2572
3121
  id: z__namespace.string().regex(/^\d+$/)
2573
3122
  });
2574
- z__namespace.object({
2575
- id: z__namespace.string(),
2576
- removed: z__namespace.boolean(),
2577
- dry_run: z__namespace.boolean(),
2578
- executed: z__namespace.boolean()
2579
- });
2580
3123
  z__namespace.object({
2581
3124
  amount_micros: z__namespace.int().gt(0).lte(9007199254740991),
2582
3125
  dry_run: z__namespace.boolean().optional().default(false)
@@ -2585,12 +3128,6 @@ z__namespace.object({
2585
3128
  connection_id: z__namespace.string(),
2586
3129
  id: z__namespace.string().regex(/^\d+$/)
2587
3130
  });
2588
- z__namespace.object({
2589
- id: z__namespace.string(),
2590
- resource_name: z__namespace.string(),
2591
- dry_run: z__namespace.boolean(),
2592
- executed: z__namespace.boolean()
2593
- });
2594
3131
  z__namespace.object({
2595
3132
  connection_id: z__namespace.string()
2596
3133
  });
@@ -2646,7 +3183,9 @@ z__namespace.object({
2646
3183
  "TARGET_OUTRANK_SHARE",
2647
3184
  "TARGET_ROAS",
2648
3185
  "TARGET_SPEND"
2649
- ])
3186
+ ]),
3187
+ start_date_time: z__namespace.string().nullable(),
3188
+ end_date_time: z__namespace.string().nullable()
2650
3189
  }))
2651
3190
  });
2652
3191
  z__namespace.object({
@@ -2664,12 +3203,6 @@ z__namespace.object({
2664
3203
  z__namespace.object({
2665
3204
  connection_id: z__namespace.string()
2666
3205
  });
2667
- z__namespace.object({
2668
- id: z__namespace.string().nullable(),
2669
- resource_name: z__namespace.string().nullable(),
2670
- dry_run: z__namespace.boolean(),
2671
- executed: z__namespace.boolean()
2672
- });
2673
3206
  z__namespace.object({
2674
3207
  dry_run: z__namespace.boolean().optional().default(false)
2675
3208
  });
@@ -2677,12 +3210,6 @@ z__namespace.object({
2677
3210
  connection_id: z__namespace.string(),
2678
3211
  id: z__namespace.string().regex(/^\d+$/)
2679
3212
  });
2680
- z__namespace.object({
2681
- id: z__namespace.string(),
2682
- removed: z__namespace.boolean(),
2683
- dry_run: z__namespace.boolean(),
2684
- executed: z__namespace.boolean()
2685
- });
2686
3213
  z__namespace.object({
2687
3214
  connection_id: z__namespace.string(),
2688
3215
  id: z__namespace.string().regex(/^\d+$/)
@@ -2737,7 +3264,9 @@ z__namespace.object({
2737
3264
  "TARGET_OUTRANK_SHARE",
2738
3265
  "TARGET_ROAS",
2739
3266
  "TARGET_SPEND"
2740
- ])
3267
+ ]),
3268
+ start_date_time: z__namespace.string().nullable(),
3269
+ end_date_time: z__namespace.string().nullable()
2741
3270
  });
2742
3271
  z__namespace.object({
2743
3272
  name: z__namespace.string().min(1).max(255),
@@ -2747,12 +3276,6 @@ z__namespace.object({
2747
3276
  connection_id: z__namespace.string(),
2748
3277
  id: z__namespace.string().regex(/^\d+$/)
2749
3278
  });
2750
- z__namespace.object({
2751
- id: z__namespace.string(),
2752
- resource_name: z__namespace.string(),
2753
- dry_run: z__namespace.boolean(),
2754
- executed: z__namespace.boolean()
2755
- });
2756
3279
  z__namespace.object({
2757
3280
  dry_run: z__namespace.boolean().optional().default(false)
2758
3281
  });
@@ -2782,110 +3305,74 @@ z__namespace.object({
2782
3305
  z__namespace.object({
2783
3306
  connection_id: z__namespace.string()
2784
3307
  });
3308
+ z__namespace.object({
3309
+ q: z__namespace.string().min(1),
3310
+ country_code: z__namespace.string().length(2).optional()
3311
+ });
2785
3312
  z__namespace.object({
2786
3313
  object: z__namespace.literal("list"),
2787
- data: z__namespace.array(z__namespace.object({
2788
- id: z__namespace.string(),
2789
- name: z__namespace.string().nullable(),
2790
- status: z__namespace.enum([
2791
- "UNSPECIFIED",
2792
- "UNKNOWN",
2793
- "ENABLED",
2794
- "PAUSED",
2795
- "REMOVED"
2796
- ]),
2797
- type: z__namespace.enum([
2798
- "UNSPECIFIED",
2799
- "UNKNOWN",
2800
- "SEARCH_STANDARD",
2801
- "DISPLAY_STANDARD",
2802
- "SHOPPING_PRODUCT_ADS",
2803
- "HOTEL_ADS",
2804
- "SHOPPING_SMART_ADS",
2805
- "VIDEO_BUMPER",
2806
- "VIDEO_TRUE_VIEW_IN_STREAM",
2807
- "VIDEO_TRUE_VIEW_IN_DISPLAY",
2808
- "VIDEO_NON_SKIPPABLE_IN_STREAM",
2809
- "SEARCH_DYNAMIC_ADS",
2810
- "SHOPPING_COMPARISON_LISTING_ADS",
2811
- "PROMOTED_HOTEL_ADS",
2812
- "VIDEO_RESPONSIVE",
2813
- "VIDEO_EFFICIENT_REACH",
2814
- "SMART_CAMPAIGN_ADS",
2815
- "TRAVEL_ADS",
2816
- "YOUTUBE_AUDIO"
2817
- ]),
2818
- campaign: z__namespace.string().nullable()
2819
- }))
3314
+ data: z__namespace.array(zGoogleAdsGeoTargetConstant)
2820
3315
  });
2821
3316
  z__namespace.object({
2822
- name: z__namespace.string().min(1).max(255),
2823
- campaign: z__namespace.string().min(1),
2824
- type: z__namespace.enum(["SEARCH_STANDARD", "DISPLAY_STANDARD"]),
2825
- status: z__namespace.enum(["ENABLED", "PAUSED"]).optional().default("ENABLED"),
2826
- dry_run: z__namespace.boolean().optional().default(false)
3317
+ connection_id: z__namespace.string(),
3318
+ campaign_id: z__namespace.string().regex(/^\d+$/)
2827
3319
  });
2828
3320
  z__namespace.object({
2829
- connection_id: z__namespace.string()
3321
+ object: z__namespace.literal("list"),
3322
+ data: z__namespace.array(zGoogleAdsCampaignCriterion)
2830
3323
  });
2831
3324
  z__namespace.object({
2832
- id: z__namespace.string().nullable(),
2833
- resource_name: z__namespace.string().nullable(),
2834
- dry_run: z__namespace.boolean(),
2835
- executed: z__namespace.boolean()
3325
+ dry_run: z__namespace.boolean().optional().default(false),
3326
+ type: z__namespace.union([
3327
+ z__namespace.literal("location"),
3328
+ z__namespace.literal("language")
3329
+ ]),
3330
+ geo_target_constant: z__namespace.string().regex(/^geoTargetConstants\/\d+$/).optional(),
3331
+ negative: z__namespace.boolean().optional().default(false),
3332
+ language_constant: z__namespace.string().min(1).optional()
3333
+ });
3334
+ z__namespace.object({
3335
+ connection_id: z__namespace.string(),
3336
+ campaign_id: z__namespace.string().regex(/^\d+$/)
2836
3337
  });
2837
3338
  z__namespace.object({
2838
3339
  dry_run: z__namespace.boolean().optional().default(false)
2839
3340
  });
2840
3341
  z__namespace.object({
2841
3342
  connection_id: z__namespace.string(),
2842
- id: z__namespace.string().regex(/^\d+$/)
3343
+ campaign_id: z__namespace.string().regex(/^\d+$/),
3344
+ criterion_id: z__namespace.string().regex(/^\d+$/)
2843
3345
  });
2844
3346
  z__namespace.object({
2845
- id: z__namespace.string(),
2846
- removed: z__namespace.boolean(),
2847
- dry_run: z__namespace.boolean(),
2848
- executed: z__namespace.boolean()
3347
+ dry_run: z__namespace.boolean().optional().default(false),
3348
+ positive_geo_target_type: z__namespace.enum(["PRESENCE_OR_INTEREST", "PRESENCE"]).optional(),
3349
+ negative_geo_target_type: z__namespace.enum(["PRESENCE_OR_INTEREST", "PRESENCE"]).optional()
2849
3350
  });
2850
3351
  z__namespace.object({
2851
3352
  connection_id: z__namespace.string(),
2852
- id: z__namespace.string().regex(/^\d+$/)
3353
+ campaign_id: z__namespace.string().regex(/^\d+$/)
2853
3354
  });
2854
3355
  z__namespace.object({
2855
- id: z__namespace.string(),
2856
- name: z__namespace.string().nullable(),
2857
- status: z__namespace.enum([
2858
- "UNSPECIFIED",
2859
- "UNKNOWN",
2860
- "ENABLED",
2861
- "PAUSED",
2862
- "REMOVED"
2863
- ]),
2864
- type: z__namespace.enum([
2865
- "UNSPECIFIED",
2866
- "UNKNOWN",
2867
- "SEARCH_STANDARD",
2868
- "DISPLAY_STANDARD",
2869
- "SHOPPING_PRODUCT_ADS",
2870
- "HOTEL_ADS",
2871
- "SHOPPING_SMART_ADS",
2872
- "VIDEO_BUMPER",
2873
- "VIDEO_TRUE_VIEW_IN_STREAM",
2874
- "VIDEO_TRUE_VIEW_IN_DISPLAY",
2875
- "VIDEO_NON_SKIPPABLE_IN_STREAM",
2876
- "SEARCH_DYNAMIC_ADS",
2877
- "SHOPPING_COMPARISON_LISTING_ADS",
2878
- "PROMOTED_HOTEL_ADS",
2879
- "VIDEO_RESPONSIVE",
2880
- "VIDEO_EFFICIENT_REACH",
2881
- "SMART_CAMPAIGN_ADS",
2882
- "TRAVEL_ADS",
2883
- "YOUTUBE_AUDIO"
2884
- ]),
2885
- campaign: z__namespace.string().nullable()
3356
+ connection_id: z__namespace.string()
3357
+ });
3358
+ z__namespace.object({
3359
+ campaign_id: z__namespace.string().regex(/^\d+$/).optional()
3360
+ });
3361
+ z__namespace.object({
3362
+ object: z__namespace.literal("list"),
3363
+ data: z__namespace.array(zGoogleAdsAdGroup)
2886
3364
  });
2887
3365
  z__namespace.object({
2888
3366
  name: z__namespace.string().min(1).max(255),
3367
+ campaign: z__namespace.string().min(1),
3368
+ type: z__namespace.enum(["SEARCH_STANDARD", "DISPLAY_STANDARD"]),
3369
+ status: z__namespace.enum(["ENABLED", "PAUSED"]).optional().default("ENABLED"),
3370
+ dry_run: z__namespace.boolean().optional().default(false)
3371
+ });
3372
+ z__namespace.object({
3373
+ connection_id: z__namespace.string()
3374
+ });
3375
+ z__namespace.object({
2889
3376
  dry_run: z__namespace.boolean().optional().default(false)
2890
3377
  });
2891
3378
  z__namespace.object({
@@ -2893,10 +3380,16 @@ z__namespace.object({
2893
3380
  id: z__namespace.string().regex(/^\d+$/)
2894
3381
  });
2895
3382
  z__namespace.object({
2896
- id: z__namespace.string(),
2897
- resource_name: z__namespace.string(),
2898
- dry_run: z__namespace.boolean(),
2899
- executed: z__namespace.boolean()
3383
+ connection_id: z__namespace.string(),
3384
+ id: z__namespace.string().regex(/^\d+$/)
3385
+ });
3386
+ z__namespace.object({
3387
+ name: z__namespace.string().min(1).max(255),
3388
+ dry_run: z__namespace.boolean().optional().default(false)
3389
+ });
3390
+ z__namespace.object({
3391
+ connection_id: z__namespace.string(),
3392
+ id: z__namespace.string().regex(/^\d+$/)
2900
3393
  });
2901
3394
  z__namespace.object({
2902
3395
  cpc_bid_micros: z__namespace.int().gt(0).lte(9007199254740991).optional(),
@@ -2909,12 +3402,6 @@ z__namespace.object({
2909
3402
  connection_id: z__namespace.string(),
2910
3403
  id: z__namespace.string().regex(/^\d+$/)
2911
3404
  });
2912
- z__namespace.object({
2913
- id: z__namespace.string(),
2914
- resource_name: z__namespace.string(),
2915
- dry_run: z__namespace.boolean(),
2916
- executed: z__namespace.boolean()
2917
- });
2918
3405
  z__namespace.object({
2919
3406
  dry_run: z__namespace.boolean().optional().default(false)
2920
3407
  });
@@ -2941,59 +3428,112 @@ z__namespace.object({
2941
3428
  dry_run: z__namespace.boolean(),
2942
3429
  executed: z__namespace.boolean()
2943
3430
  });
3431
+ z__namespace.object({
3432
+ connection_id: z__namespace.string(),
3433
+ ad_group_id: z__namespace.string().regex(/^\d+$/)
3434
+ });
3435
+ z__namespace.object({
3436
+ object: z__namespace.literal("list"),
3437
+ data: z__namespace.array(zGoogleAdsAdGroupCriterion)
3438
+ });
3439
+ z__namespace.object({
3440
+ dry_run: z__namespace.boolean().optional().default(false),
3441
+ type: z__namespace.union([
3442
+ z__namespace.literal("age_range"),
3443
+ z__namespace.literal("gender"),
3444
+ z__namespace.literal("income_range"),
3445
+ z__namespace.literal("parental_status"),
3446
+ z__namespace.literal("user_list"),
3447
+ z__namespace.literal("audience"),
3448
+ z__namespace.literal("custom_audience")
3449
+ ]),
3450
+ age_range: z__namespace.enum([
3451
+ "AGE_RANGE_18_24",
3452
+ "AGE_RANGE_25_34",
3453
+ "AGE_RANGE_35_44",
3454
+ "AGE_RANGE_45_54",
3455
+ "AGE_RANGE_55_64",
3456
+ "AGE_RANGE_65_UP",
3457
+ "AGE_RANGE_UNDETERMINED"
3458
+ ]).optional(),
3459
+ negative: z__namespace.boolean().optional().default(false),
3460
+ gender: z__namespace.enum([
3461
+ "MALE",
3462
+ "FEMALE",
3463
+ "UNDETERMINED"
3464
+ ]).optional(),
3465
+ income_range: z__namespace.enum([
3466
+ "INCOME_RANGE_0_50",
3467
+ "INCOME_RANGE_50_60",
3468
+ "INCOME_RANGE_60_70",
3469
+ "INCOME_RANGE_70_80",
3470
+ "INCOME_RANGE_80_90",
3471
+ "INCOME_RANGE_90_UP",
3472
+ "INCOME_RANGE_UNDETERMINED"
3473
+ ]).optional(),
3474
+ parental_status: z__namespace.enum([
3475
+ "PARENT",
3476
+ "NOT_A_PARENT",
3477
+ "UNDETERMINED"
3478
+ ]).optional(),
3479
+ user_list: z__namespace.string().regex(/^customers\/\d+\/userLists\/\d+$/).optional(),
3480
+ audience: z__namespace.string().regex(/^customers\/\d+\/audiences\/\d+$/).optional(),
3481
+ custom_audience: z__namespace.string().regex(/^customers\/\d+\/customAudiences\/\d+$/).optional()
3482
+ });
3483
+ z__namespace.object({
3484
+ connection_id: z__namespace.string(),
3485
+ ad_group_id: z__namespace.string().regex(/^\d+$/)
3486
+ });
3487
+ z__namespace.object({
3488
+ dry_run: z__namespace.boolean().optional().default(false)
3489
+ });
3490
+ z__namespace.object({
3491
+ connection_id: z__namespace.string(),
3492
+ ad_group_id: z__namespace.string().regex(/^\d+$/),
3493
+ criterion_id: z__namespace.string().regex(/^\d+$/)
3494
+ });
2944
3495
  z__namespace.object({
2945
3496
  connection_id: z__namespace.string()
2946
3497
  });
3498
+ z__namespace.object({
3499
+ q: z__namespace.string().min(1).optional(),
3500
+ kind: z__namespace.enum([
3501
+ "user_list",
3502
+ "audience",
3503
+ "custom_audience"
3504
+ ]).optional()
3505
+ });
2947
3506
  z__namespace.object({
2948
3507
  object: z__namespace.literal("list"),
2949
- data: z__namespace.array(z__namespace.object({
2950
- id: z__namespace.string(),
2951
- name: z__namespace.string().nullable(),
2952
- type: z__namespace.enum([
2953
- "UNSPECIFIED",
2954
- "UNKNOWN",
2955
- "TEXT_AD",
2956
- "EXPANDED_TEXT_AD",
2957
- "EXPANDED_DYNAMIC_SEARCH_AD",
2958
- "HOTEL_AD",
2959
- "SHOPPING_SMART_AD",
2960
- "SHOPPING_PRODUCT_AD",
2961
- "VIDEO_AD",
2962
- "IMAGE_AD",
2963
- "RESPONSIVE_SEARCH_AD",
2964
- "LEGACY_RESPONSIVE_DISPLAY_AD",
2965
- "APP_AD",
2966
- "LEGACY_APP_INSTALL_AD",
2967
- "RESPONSIVE_DISPLAY_AD",
2968
- "LOCAL_AD",
2969
- "HTML5_UPLOAD_AD",
2970
- "DYNAMIC_HTML5_AD",
2971
- "APP_ENGAGEMENT_AD",
2972
- "SHOPPING_COMPARISON_LISTING_AD",
2973
- "VIDEO_BUMPER_AD",
2974
- "VIDEO_NON_SKIPPABLE_IN_STREAM_AD",
2975
- "VIDEO_TRUEVIEW_IN_STREAM_AD",
2976
- "VIDEO_RESPONSIVE_AD",
2977
- "SMART_CAMPAIGN_AD",
2978
- "CALL_AD",
2979
- "APP_PRE_REGISTRATION_AD",
2980
- "IN_FEED_VIDEO_AD",
2981
- "DEMAND_GEN_MULTI_ASSET_AD",
2982
- "DEMAND_GEN_CAROUSEL_AD",
2983
- "TRAVEL_AD",
2984
- "DEMAND_GEN_VIDEO_RESPONSIVE_AD",
2985
- "DEMAND_GEN_PRODUCT_AD",
2986
- "YOUTUBE_AUDIO_AD"
2987
- ]),
2988
- status: z__namespace.enum([
2989
- "UNSPECIFIED",
2990
- "UNKNOWN",
2991
- "ENABLED",
2992
- "PAUSED",
2993
- "REMOVED"
2994
- ]),
2995
- ad_group: z__namespace.string().nullable()
2996
- }))
3508
+ data: z__namespace.array(zGoogleAdsAudience)
3509
+ });
3510
+ z__namespace.object({
3511
+ dry_run: z__namespace.boolean().optional().default(false),
3512
+ targeting_dimension: z__namespace.enum([
3513
+ "KEYWORD",
3514
+ "AUDIENCE",
3515
+ "TOPIC",
3516
+ "GENDER",
3517
+ "AGE_RANGE",
3518
+ "PLACEMENT",
3519
+ "PARENTAL_STATUS",
3520
+ "INCOME_RANGE"
3521
+ ]),
3522
+ bid_only: z__namespace.boolean()
3523
+ });
3524
+ z__namespace.object({
3525
+ connection_id: z__namespace.string(),
3526
+ campaign_id: z__namespace.string().regex(/^\d+$/)
3527
+ });
3528
+ z__namespace.object({
3529
+ connection_id: z__namespace.string()
3530
+ });
3531
+ z__namespace.object({
3532
+ ad_group_id: z__namespace.string().regex(/^\d+$/).optional()
3533
+ });
3534
+ z__namespace.object({
3535
+ object: z__namespace.literal("list"),
3536
+ data: z__namespace.array(zGoogleAdsAd)
2997
3537
  });
2998
3538
  z__namespace.object({
2999
3539
  ad_group: z__namespace.string().min(1),
@@ -3017,76 +3557,16 @@ z__namespace.object({
3017
3557
  z__namespace.object({
3018
3558
  connection_id: z__namespace.string()
3019
3559
  });
3020
- z__namespace.object({
3021
- id: z__namespace.string().nullable(),
3022
- resource_name: z__namespace.string().nullable(),
3023
- dry_run: z__namespace.boolean(),
3024
- executed: z__namespace.boolean()
3025
- });
3026
- z__namespace.object({
3027
- dry_run: z__namespace.boolean().optional().default(false)
3028
- });
3029
- z__namespace.object({
3030
- connection_id: z__namespace.string(),
3031
- id: z__namespace.string().regex(/^\d+$/)
3032
- });
3033
- z__namespace.object({
3034
- id: z__namespace.string(),
3035
- removed: z__namespace.boolean(),
3036
- dry_run: z__namespace.boolean(),
3037
- executed: z__namespace.boolean()
3560
+ z__namespace.object({
3561
+ dry_run: z__namespace.boolean().optional().default(false)
3038
3562
  });
3039
3563
  z__namespace.object({
3040
3564
  connection_id: z__namespace.string(),
3041
3565
  id: z__namespace.string().regex(/^\d+$/)
3042
3566
  });
3043
3567
  z__namespace.object({
3044
- id: z__namespace.string(),
3045
- name: z__namespace.string().nullable(),
3046
- type: z__namespace.enum([
3047
- "UNSPECIFIED",
3048
- "UNKNOWN",
3049
- "TEXT_AD",
3050
- "EXPANDED_TEXT_AD",
3051
- "EXPANDED_DYNAMIC_SEARCH_AD",
3052
- "HOTEL_AD",
3053
- "SHOPPING_SMART_AD",
3054
- "SHOPPING_PRODUCT_AD",
3055
- "VIDEO_AD",
3056
- "IMAGE_AD",
3057
- "RESPONSIVE_SEARCH_AD",
3058
- "LEGACY_RESPONSIVE_DISPLAY_AD",
3059
- "APP_AD",
3060
- "LEGACY_APP_INSTALL_AD",
3061
- "RESPONSIVE_DISPLAY_AD",
3062
- "LOCAL_AD",
3063
- "HTML5_UPLOAD_AD",
3064
- "DYNAMIC_HTML5_AD",
3065
- "APP_ENGAGEMENT_AD",
3066
- "SHOPPING_COMPARISON_LISTING_AD",
3067
- "VIDEO_BUMPER_AD",
3068
- "VIDEO_NON_SKIPPABLE_IN_STREAM_AD",
3069
- "VIDEO_TRUEVIEW_IN_STREAM_AD",
3070
- "VIDEO_RESPONSIVE_AD",
3071
- "SMART_CAMPAIGN_AD",
3072
- "CALL_AD",
3073
- "APP_PRE_REGISTRATION_AD",
3074
- "IN_FEED_VIDEO_AD",
3075
- "DEMAND_GEN_MULTI_ASSET_AD",
3076
- "DEMAND_GEN_CAROUSEL_AD",
3077
- "TRAVEL_AD",
3078
- "DEMAND_GEN_VIDEO_RESPONSIVE_AD",
3079
- "DEMAND_GEN_PRODUCT_AD",
3080
- "YOUTUBE_AUDIO_AD"
3081
- ]),
3082
- status: z__namespace.enum([
3083
- "UNSPECIFIED",
3084
- "UNKNOWN",
3085
- "ENABLED",
3086
- "PAUSED",
3087
- "REMOVED"
3088
- ]),
3089
- ad_group: z__namespace.string().nullable()
3568
+ connection_id: z__namespace.string(),
3569
+ id: z__namespace.string().regex(/^\d+$/)
3090
3570
  });
3091
3571
  z__namespace.object({
3092
3572
  ad_group: z__namespace.string().min(1),
@@ -3122,12 +3602,6 @@ z__namespace.object({
3122
3602
  z__namespace.object({
3123
3603
  connection_id: z__namespace.string()
3124
3604
  });
3125
- z__namespace.object({
3126
- id: z__namespace.string().nullable(),
3127
- resource_name: z__namespace.string().nullable(),
3128
- dry_run: z__namespace.boolean(),
3129
- executed: z__namespace.boolean()
3130
- });
3131
3605
  z__namespace.object({
3132
3606
  dry_run: z__namespace.boolean().optional().default(false)
3133
3607
  });
@@ -3157,28 +3631,12 @@ z__namespace.object({
3157
3631
  z__namespace.object({
3158
3632
  connection_id: z__namespace.string()
3159
3633
  });
3634
+ z__namespace.object({
3635
+ ad_group_id: z__namespace.string().regex(/^\d+$/).optional()
3636
+ });
3160
3637
  z__namespace.object({
3161
3638
  object: z__namespace.literal("list"),
3162
- data: z__namespace.array(z__namespace.object({
3163
- id: z__namespace.string(),
3164
- text: z__namespace.string().nullable(),
3165
- match_type: z__namespace.enum([
3166
- "UNSPECIFIED",
3167
- "UNKNOWN",
3168
- "EXACT",
3169
- "PHRASE",
3170
- "BROAD"
3171
- ]),
3172
- status: z__namespace.enum([
3173
- "UNSPECIFIED",
3174
- "UNKNOWN",
3175
- "ENABLED",
3176
- "PAUSED",
3177
- "REMOVED"
3178
- ]),
3179
- negative: z__namespace.boolean(),
3180
- ad_group: z__namespace.string().nullable()
3181
- }))
3639
+ data: z__namespace.array(zGoogleAdsKeyword)
3182
3640
  });
3183
3641
  z__namespace.object({
3184
3642
  ad_group: z__namespace.string().min(1),
@@ -3195,12 +3653,6 @@ z__namespace.object({
3195
3653
  z__namespace.object({
3196
3654
  connection_id: z__namespace.string()
3197
3655
  });
3198
- z__namespace.object({
3199
- id: z__namespace.string().nullable(),
3200
- resource_name: z__namespace.string().nullable(),
3201
- dry_run: z__namespace.boolean(),
3202
- executed: z__namespace.boolean()
3203
- });
3204
3656
  z__namespace.object({
3205
3657
  dry_run: z__namespace.boolean().optional().default(false)
3206
3658
  });
@@ -3208,36 +3660,10 @@ z__namespace.object({
3208
3660
  connection_id: z__namespace.string(),
3209
3661
  id: z__namespace.string().regex(/^\d+$/)
3210
3662
  });
3211
- z__namespace.object({
3212
- id: z__namespace.string(),
3213
- removed: z__namespace.boolean(),
3214
- dry_run: z__namespace.boolean(),
3215
- executed: z__namespace.boolean()
3216
- });
3217
3663
  z__namespace.object({
3218
3664
  connection_id: z__namespace.string(),
3219
3665
  id: z__namespace.string().regex(/^\d+$/)
3220
3666
  });
3221
- z__namespace.object({
3222
- id: z__namespace.string(),
3223
- text: z__namespace.string().nullable(),
3224
- match_type: z__namespace.enum([
3225
- "UNSPECIFIED",
3226
- "UNKNOWN",
3227
- "EXACT",
3228
- "PHRASE",
3229
- "BROAD"
3230
- ]),
3231
- status: z__namespace.enum([
3232
- "UNSPECIFIED",
3233
- "UNKNOWN",
3234
- "ENABLED",
3235
- "PAUSED",
3236
- "REMOVED"
3237
- ]),
3238
- negative: z__namespace.boolean(),
3239
- ad_group: z__namespace.string().nullable()
3240
- });
3241
3667
  z__namespace.object({
3242
3668
  cpc_bid_micros: z__namespace.int().gt(0).lte(9007199254740991),
3243
3669
  dry_run: z__namespace.boolean().optional().default(false)
@@ -3246,12 +3672,6 @@ z__namespace.object({
3246
3672
  connection_id: z__namespace.string(),
3247
3673
  id: z__namespace.string().regex(/^\d+$/)
3248
3674
  });
3249
- z__namespace.object({
3250
- id: z__namespace.string(),
3251
- resource_name: z__namespace.string(),
3252
- dry_run: z__namespace.boolean(),
3253
- executed: z__namespace.boolean()
3254
- });
3255
3675
  z__namespace.object({
3256
3676
  dry_run: z__namespace.boolean().optional().default(false)
3257
3677
  });
@@ -3444,12 +3864,6 @@ z__namespace.object({
3444
3864
  z__namespace.object({
3445
3865
  connection_id: z__namespace.string()
3446
3866
  });
3447
- z__namespace.object({
3448
- id: z__namespace.string().nullable(),
3449
- resource_name: z__namespace.string().nullable(),
3450
- dry_run: z__namespace.boolean(),
3451
- executed: z__namespace.boolean()
3452
- });
3453
3867
  z__namespace.object({
3454
3868
  connection_id: z__namespace.string(),
3455
3869
  id: z__namespace.string().regex(/^\d+$/)
@@ -3739,12 +4153,6 @@ z__namespace.object({
3739
4153
  z__namespace.object({
3740
4154
  connection_id: z__namespace.string()
3741
4155
  });
3742
- z__namespace.object({
3743
- id: z__namespace.string().nullable(),
3744
- resource_name: z__namespace.string().nullable(),
3745
- dry_run: z__namespace.boolean(),
3746
- executed: z__namespace.boolean()
3747
- });
3748
4156
  z__namespace.object({
3749
4157
  id: z__namespace.string()
3750
4158
  });
@@ -4836,6 +5244,83 @@ var googleEnableCampaign = (options) => (options.client ?? client).post({
4836
5244
  ...options.headers
4837
5245
  }
4838
5246
  });
5247
+ var googleSearchGeoTargets = (options) => (options.client ?? client).get({
5248
+ security: [{
5249
+ key: "secretKey",
5250
+ scheme: "bearer",
5251
+ type: "http"
5252
+ }, {
5253
+ key: "frontendToken",
5254
+ scheme: "bearer",
5255
+ type: "http"
5256
+ }],
5257
+ url: "/google/{connection_id}/geo-targets/search",
5258
+ ...options
5259
+ });
5260
+ var googleListCampaignCriteria = (options) => (options.client ?? client).get({
5261
+ security: [{
5262
+ key: "secretKey",
5263
+ scheme: "bearer",
5264
+ type: "http"
5265
+ }, {
5266
+ key: "frontendToken",
5267
+ scheme: "bearer",
5268
+ type: "http"
5269
+ }],
5270
+ url: "/google/{connection_id}/campaigns/{campaign_id}/criteria",
5271
+ ...options
5272
+ });
5273
+ var googleCreateCampaignCriterion = (options) => (options.client ?? client).post({
5274
+ security: [{
5275
+ key: "secretKey",
5276
+ scheme: "bearer",
5277
+ type: "http"
5278
+ }, {
5279
+ key: "frontendToken",
5280
+ scheme: "bearer",
5281
+ type: "http"
5282
+ }],
5283
+ url: "/google/{connection_id}/campaigns/{campaign_id}/criteria",
5284
+ ...options,
5285
+ headers: {
5286
+ "Content-Type": "application/json",
5287
+ ...options.headers
5288
+ }
5289
+ });
5290
+ var googleDeleteCampaignCriterion = (options) => (options.client ?? client).delete({
5291
+ security: [{
5292
+ key: "secretKey",
5293
+ scheme: "bearer",
5294
+ type: "http"
5295
+ }, {
5296
+ key: "frontendToken",
5297
+ scheme: "bearer",
5298
+ type: "http"
5299
+ }],
5300
+ url: "/google/{connection_id}/campaigns/{campaign_id}/criteria/{criterion_id}",
5301
+ ...options,
5302
+ headers: {
5303
+ "Content-Type": "application/json",
5304
+ ...options.headers
5305
+ }
5306
+ });
5307
+ var googleSetCampaignGeoSettings = (options) => (options.client ?? client).patch({
5308
+ security: [{
5309
+ key: "secretKey",
5310
+ scheme: "bearer",
5311
+ type: "http"
5312
+ }, {
5313
+ key: "frontendToken",
5314
+ scheme: "bearer",
5315
+ type: "http"
5316
+ }],
5317
+ url: "/google/{connection_id}/campaigns/{campaign_id}/geo-settings",
5318
+ ...options,
5319
+ headers: {
5320
+ "Content-Type": "application/json",
5321
+ ...options.headers
5322
+ }
5323
+ });
4839
5324
  var googleListAdGroups = (options) => (options.client ?? client).get({
4840
5325
  security: [{
4841
5326
  key: "secretKey",
@@ -4960,6 +5445,83 @@ var googleEnableAdGroup = (options) => (options.client ?? client).post({
4960
5445
  ...options.headers
4961
5446
  }
4962
5447
  });
5448
+ var googleListAdGroupCriteria = (options) => (options.client ?? client).get({
5449
+ security: [{
5450
+ key: "secretKey",
5451
+ scheme: "bearer",
5452
+ type: "http"
5453
+ }, {
5454
+ key: "frontendToken",
5455
+ scheme: "bearer",
5456
+ type: "http"
5457
+ }],
5458
+ url: "/google/{connection_id}/ad-groups/{ad_group_id}/criteria",
5459
+ ...options
5460
+ });
5461
+ var googleCreateAdGroupCriterion = (options) => (options.client ?? client).post({
5462
+ security: [{
5463
+ key: "secretKey",
5464
+ scheme: "bearer",
5465
+ type: "http"
5466
+ }, {
5467
+ key: "frontendToken",
5468
+ scheme: "bearer",
5469
+ type: "http"
5470
+ }],
5471
+ url: "/google/{connection_id}/ad-groups/{ad_group_id}/criteria",
5472
+ ...options,
5473
+ headers: {
5474
+ "Content-Type": "application/json",
5475
+ ...options.headers
5476
+ }
5477
+ });
5478
+ var googleDeleteAdGroupCriterion = (options) => (options.client ?? client).delete({
5479
+ security: [{
5480
+ key: "secretKey",
5481
+ scheme: "bearer",
5482
+ type: "http"
5483
+ }, {
5484
+ key: "frontendToken",
5485
+ scheme: "bearer",
5486
+ type: "http"
5487
+ }],
5488
+ url: "/google/{connection_id}/ad-groups/{ad_group_id}/criteria/{criterion_id}",
5489
+ ...options,
5490
+ headers: {
5491
+ "Content-Type": "application/json",
5492
+ ...options.headers
5493
+ }
5494
+ });
5495
+ var googleListAudiences = (options) => (options.client ?? client).get({
5496
+ security: [{
5497
+ key: "secretKey",
5498
+ scheme: "bearer",
5499
+ type: "http"
5500
+ }, {
5501
+ key: "frontendToken",
5502
+ scheme: "bearer",
5503
+ type: "http"
5504
+ }],
5505
+ url: "/google/{connection_id}/audiences",
5506
+ ...options
5507
+ });
5508
+ var googleSetCampaignTargetingSetting = (options) => (options.client ?? client).patch({
5509
+ security: [{
5510
+ key: "secretKey",
5511
+ scheme: "bearer",
5512
+ type: "http"
5513
+ }, {
5514
+ key: "frontendToken",
5515
+ scheme: "bearer",
5516
+ type: "http"
5517
+ }],
5518
+ url: "/google/{connection_id}/campaigns/{campaign_id}/targeting-setting",
5519
+ ...options,
5520
+ headers: {
5521
+ "Content-Type": "application/json",
5522
+ ...options.headers
5523
+ }
5524
+ });
4963
5525
  var googleListAds = (options) => (options.client ?? client).get({
4964
5526
  security: [{
4965
5527
  key: "secretKey",
@@ -5904,15 +6466,19 @@ exports.defaultTikTokOptions = defaultTikTokOptions;
5904
6466
  exports.failedVariants = failedVariants;
5905
6467
  exports.googleCreateAd = googleCreateAd;
5906
6468
  exports.googleCreateAdGroup = googleCreateAdGroup;
6469
+ exports.googleCreateAdGroupCriterion = googleCreateAdGroupCriterion;
5907
6470
  exports.googleCreateBudget = googleCreateBudget;
5908
6471
  exports.googleCreateCampaign = googleCreateCampaign;
6472
+ exports.googleCreateCampaignCriterion = googleCreateCampaignCriterion;
5909
6473
  exports.googleCreateConversionAction = googleCreateConversionAction;
5910
6474
  exports.googleCreateDisplayAd = googleCreateDisplayAd;
5911
6475
  exports.googleCreateKeyword = googleCreateKeyword;
5912
6476
  exports.googleDeleteAd = googleDeleteAd;
5913
6477
  exports.googleDeleteAdGroup = googleDeleteAdGroup;
6478
+ exports.googleDeleteAdGroupCriterion = googleDeleteAdGroupCriterion;
5914
6479
  exports.googleDeleteBudget = googleDeleteBudget;
5915
6480
  exports.googleDeleteCampaign = googleDeleteCampaign;
6481
+ exports.googleDeleteCampaignCriterion = googleDeleteCampaignCriterion;
5916
6482
  exports.googleDeleteKeyword = googleDeleteKeyword;
5917
6483
  exports.googleEditAdGroup = googleEditAdGroup;
5918
6484
  exports.googleEditBudget = googleEditBudget;
@@ -5928,8 +6494,11 @@ exports.googleGetCampaign = googleGetCampaign;
5928
6494
  exports.googleGetConversionAction = googleGetConversionAction;
5929
6495
  exports.googleGetInsights = googleGetInsights;
5930
6496
  exports.googleGetKeyword = googleGetKeyword;
6497
+ exports.googleListAdGroupCriteria = googleListAdGroupCriteria;
5931
6498
  exports.googleListAdGroups = googleListAdGroups;
5932
6499
  exports.googleListAds = googleListAds;
6500
+ exports.googleListAudiences = googleListAudiences;
6501
+ exports.googleListCampaignCriteria = googleListCampaignCriteria;
5933
6502
  exports.googleListCampaigns = googleListCampaigns;
5934
6503
  exports.googleListConversionActions = googleListConversionActions;
5935
6504
  exports.googleListConversionGoals = googleListConversionGoals;
@@ -5939,7 +6508,10 @@ exports.googlePauseAdGroup = googlePauseAdGroup;
5939
6508
  exports.googlePauseCampaign = googlePauseCampaign;
5940
6509
  exports.googlePauseKeyword = googlePauseKeyword;
5941
6510
  exports.googleRunGaql = googleRunGaql;
6511
+ exports.googleSearchGeoTargets = googleSearchGeoTargets;
5942
6512
  exports.googleSetAdGroupBids = googleSetAdGroupBids;
6513
+ exports.googleSetCampaignGeoSettings = googleSetCampaignGeoSettings;
6514
+ exports.googleSetCampaignTargetingSetting = googleSetCampaignTargetingSetting;
5943
6515
  exports.googleSetConversionGoal = googleSetConversionGoal;
5944
6516
  exports.googleSetKeywordBid = googleSetKeywordBid;
5945
6517
  exports.googleUploadConversions = googleUploadConversions;