@withone/platform-meta 0.0.0-stage → 0.1.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.js ADDED
@@ -0,0 +1,699 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/index.ts
21
+ var src_exports = {};
22
+ __export(src_exports, {
23
+ createAdAccountAdCreative: () => createAdAccountAdCreative,
24
+ createAdAccountAdImage: () => createAdAccountAdImage,
25
+ createAdAccountAsyncAdRequestSet: () => createAdAccountAsyncAdRequestSet,
26
+ createAdAccountAsyncBatchRequest: () => createAdAccountAsyncBatchRequest,
27
+ createAdAccountBusiness: () => createAdAccountBusiness,
28
+ createAdAccountCampaign: () => createAdAccountCampaign,
29
+ createAdAccountInsightsReportRun: () => createAdAccountInsightsReportRun,
30
+ createAdAccountVideo: () => createAdAccountVideo,
31
+ createAdAccountsAdSet: () => createAdAccountsAdSet,
32
+ createAdAccountsAdsPixel: () => createAdAccountsAdsPixel,
33
+ createAdAccountsAdsPixel2: () => createAdAccountsAdsPixel2,
34
+ createAdAdAccount: () => createAdAdAccount,
35
+ createAdAdAccount2: () => createAdAdAccount2,
36
+ createAdCampaignAdAccount: () => createAdCampaignAdAccount,
37
+ createAdCampaignInsightsReportRun: () => createAdCampaignInsightsReportRun,
38
+ createAdInsightsReportRunAd: () => createAdInsightsReportRunAd,
39
+ createAdSetAdAccount: () => createAdSetAdAccount,
40
+ createAdSetInsightsReportRun: () => createAdSetInsightsReportRun,
41
+ createCustomConversionAdAccount: () => createCustomConversionAdAccount,
42
+ createCustomConversionAdAccount2: () => createCustomConversionAdAccount2,
43
+ deleteAd: () => deleteAd,
44
+ deleteAdAccountAdImage: () => deleteAdAccountAdImage,
45
+ deleteAdAccountAssociationFromAdsPixelOrCustomAudience: () => deleteAdAccountAssociationFromAdsPixelOrCustomAudience,
46
+ deleteAdAccountCampaigns: () => deleteAdAccountCampaigns,
47
+ deleteAdAccountsAdVideos: () => deleteAdAccountsAdVideos,
48
+ deleteAdCampaign: () => deleteAdCampaign,
49
+ deleteAdCreative: () => deleteAdCreative,
50
+ deleteAdSet: () => deleteAdSet,
51
+ deleteCustomConversion: () => deleteCustomConversion,
52
+ getAdAccount: () => getAdAccount,
53
+ getAdAccountUser: () => getAdAccountUser,
54
+ getAdAccountsCampaigns: () => getAdAccountsCampaigns,
55
+ getAdCampaign: () => getAdCampaign,
56
+ getAdCreative: () => getAdCreative,
57
+ getAdCreativesPreviews: () => getAdCreativesPreviews,
58
+ getAdId: () => getAdId,
59
+ getAdPreviewsAd: () => getAdPreviewsAd,
60
+ getAdSet: () => getAdSet,
61
+ getAdSetInsights: () => getAdSetInsights,
62
+ getAdSetsActivities: () => getAdSetsActivities,
63
+ getAdSetsAdCreatives: () => getAdSetsAdCreatives,
64
+ getAdSetsCampaignInsights: () => getAdSetsCampaignInsights,
65
+ getAdSetsInsights: () => getAdSetsInsights,
66
+ getAdSetsInsights2: () => getAdSetsInsights2,
67
+ getAdsPixel: () => getAdsPixel,
68
+ getAdsPixel2: () => getAdsPixel2,
69
+ listAdAccountsAdCreatives: () => listAdAccountsAdCreatives,
70
+ listAdAccountsAdImages: () => listAdAccountsAdImages,
71
+ listAdAccountsAdSets: () => listAdAccountsAdSets,
72
+ listAdAccountsAds: () => listAdAccountsAds,
73
+ listAdAccountsCustomAudiences: () => listAdAccountsCustomAudiences,
74
+ listAdAccountsCustomConversions: () => listAdAccountsCustomConversions,
75
+ listAdAccountsCustomConversions2: () => listAdAccountsCustomConversions2,
76
+ listAdCampaignsAds: () => listAdCampaignsAds,
77
+ listAdSetsAds: () => listAdSetsAds,
78
+ listAdsAdCreatives: () => listAdsAdCreatives,
79
+ updateAdAccount: () => updateAdAccount,
80
+ updateAdCampaign: () => updateAdCampaign,
81
+ updateAdCreative: () => updateAdCreative,
82
+ updateAdsPixel: () => updateAdsPixel,
83
+ updateCustomConversion: () => updateCustomConversion
84
+ });
85
+ module.exports = __toCommonJS(src_exports);
86
+ var import_codegen = require("@withone/sdk/codegen");
87
+ var __deleteAdSetRouting = { "routes": [["adSetId", "path"]], "requiredParts": ["path"] };
88
+ function deleteAdSet(input) {
89
+ return new import_codegen.Action({
90
+ systemId: "conn_mod_def::GKRjuoPTo1w::PH8kokxhSMGN683LMwMBoQ",
91
+ method: "DELETE",
92
+ path: "/{{adSetId}}/",
93
+ ...(0, import_codegen.routeInput)(input, __deleteAdSetRouting, { "headers": { "Accept": "application/json" } })
94
+ });
95
+ }
96
+ var __listAdAccountsCustomConversionsRouting = { "routes": [["adAccountId", "path"], ["fields", "query"]], "requiredParts": ["path"] };
97
+ function listAdAccountsCustomConversions(input) {
98
+ return new import_codegen.Action({
99
+ systemId: "conn_mod_def::GKRjvQuVNyw::EoRQzGYHTDONAw3HGyzjag",
100
+ method: "GET",
101
+ path: "/act_{{adAccountId}}/customconversions",
102
+ ...(0, import_codegen.routeInput)(input, __listAdAccountsCustomConversionsRouting, { "headers": { "Accept": "application/json" } })
103
+ });
104
+ }
105
+ var __getAdAccountRouting = { "routes": [["adAccountId", "path"], ["fields", "query"]], "requiredParts": ["path"] };
106
+ function getAdAccount(input) {
107
+ return new import_codegen.Action({
108
+ systemId: "conn_mod_def::GKRjslOV51Q::-7D8kAo3TNGrj1rrZ6GhKg",
109
+ method: "GET",
110
+ path: "/act_{{adAccountId}}",
111
+ ...(0, import_codegen.routeInput)(input, __getAdAccountRouting, { "headers": { "Accept": "application/json" } })
112
+ });
113
+ }
114
+ var __getAdSetsInsightsRouting = { "routes": [["adSetId", "path"], ["action_attribution_windows", "query"], ["action_breakdowns", "query"], ["action_report_time", "query"], ["breakdowns", "query"], ["date_preset", "query"], ["default_summary", "query"], ["export_columns", "query"], ["export_format", "query"], ["export_name", "query"], ["fields", "query"], ["filtering", "query"], ["level", "query"], ["limit", "query"], ["product_id_limit", "query"], ["sort", "query"], ["summary", "query"], ["summary_action_breakdowns", "query"], ["time_increment", "query"], ["time_range", "query"], ["time_ranges", "query"], ["use_account_attribution_setting", "query"], ["use_unified_attribution_setting", "query"]], "requiredParts": ["path"] };
115
+ function getAdSetsInsights(input) {
116
+ return new import_codegen.Action({
117
+ systemId: "conn_mod_def::GKRjstPUYO8::hYOUhUt8QyOTIpenLf4zaQ",
118
+ method: "GET",
119
+ path: "/v25.0/{{adSetId}}/insights",
120
+ ...(0, import_codegen.routeInput)(input, __getAdSetsInsightsRouting, { "headers": { "Accept": "application/json" } })
121
+ });
122
+ }
123
+ var __createAdAccountAdCreativeRouting = { "routes": [["actor_id", "body"], ["ad_disclaimer_spec", "body"], ["adlabels", "body"], ["applink_treatment", "body"], ["asset_feed_spec", "body"], ["authorization_category", "body"], ["body", "body"], ["branded_content", "body"], ["branded_content_sponsor_page_id", "body"], ["bundle_folder_id", "body"], ["call_to_action", "body"], ["categorization_criteria", "body"], ["category_media_source", "body"], ["contextual_multi_ads", "body"], ["degrees_of_freedom_spec", "body"], ["destination_set_id", "body"], ["dynamic_ad_voice", "body"], ["enable_direct_install", "body"], ["enable_launch_instant_app", "body"], ["execution_options", "body"], ["existing_post_title", "body"], ["facebook_branded_content", "body"], ["format_transformation_spec", "body"], ["image_crops", "body"], ["image_file", "body"], ["image_hash", "body"], ["image_url", "body"], ["instagram_branded_content", "body"], ["instagram_permalink_url", "body"], ["instagram_user_id", "body"], ["interactive_components_spec", "body"], ["link_og_id", "body"], ["link_url", "body"], ["marketing_message_structured_spec", "body"], ["media_sourcing_spec", "body"], ["name", "body"], ["object_id", "body"], ["object_story_id", "body"], ["object_story_spec", "body"], ["object_type", "body"], ["object_url", "body"], ["page_welcome_message", "body"], ["place_page_set_id", "body"], ["platform_customizations", "body"], ["playable_asset_id", "body"], ["portrait_customizations", "body"], ["product_set_id", "body"], ["recommender_settings", "body"], ["referral_id", "body"], ["regional_regulation_disclaimer_spec", "body"], ["source_instagram_media_id", "body"], ["template_url", "body"], ["template_url_spec", "body"], ["threads_user_id", "body"], ["thumbnail_url", "body"], ["title", "body"], ["url_tags", "body"], ["use_page_actor_override", "body"], ["adAccountId", "path"]], "requiredParts": ["body", "path"] };
124
+ function createAdAccountAdCreative(input) {
125
+ return new import_codegen.Action({
126
+ systemId: "conn_mod_def::GKRjs2B1X1c::CpfvED1SQQyLNqtRzjJQUA",
127
+ method: "POST",
128
+ path: "/act_{{adAccountId}}/adcreatives",
129
+ ...(0, import_codegen.routeInput)(input, __createAdAccountAdCreativeRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
130
+ });
131
+ }
132
+ var __createAdAdAccountRouting = { "routes": [["ad_schedule_end_time", "body"], ["ad_schedule_start_time", "body"], ["adlabels", "body"], ["adset_id", "body"], ["adset_spec", "body"], ["audience_id", "body"], ["bid_amount", "body"], ["conversion_domain", "body"], ["creative", "body"], ["creative_asset_groups_spec", "body"], ["date_format", "body"], ["display_sequence", "body"], ["engagement_audience", "body"], ["execution_options", "body"], ["include_demolink_hashes", "body"], ["name", "body"], ["priority", "body"], ["source_ad_id", "body"], ["status", "body"], ["tracking_specs", "body"], ["adAccountId", "path"]], "requiredParts": ["body", "path"] };
133
+ function createAdAdAccount(input) {
134
+ return new import_codegen.Action({
135
+ systemId: "conn_mod_def::GKRjs-q-OtE::QyASq5pbQvWoPls3FG7D5w",
136
+ method: "POST",
137
+ path: "/v25.0/act_{{adAccountId}}/ads",
138
+ ...(0, import_codegen.routeInput)(input, __createAdAdAccountRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
139
+ });
140
+ }
141
+ var __listAdAccountsAdSetsRouting = { "routes": [["adAccountId", "path"], ["date_preset", "query"], ["effective_status", "query"], ["fields", "query"], ["is_completed", "query"], ["summary", "query"], ["time_range", "query"], ["updated_since", "query"]], "requiredParts": ["path"] };
142
+ function listAdAccountsAdSets(input) {
143
+ return new import_codegen.Action({
144
+ systemId: "conn_mod_def::GKRjtA75d28::X1WyjBOGRS-WJObKSRAgVQ",
145
+ method: "GET",
146
+ path: "/v25.0/act_{{adAccountId}}/adsets",
147
+ ...(0, import_codegen.routeInput)(input, __listAdAccountsAdSetsRouting, { "headers": { "Accept": "application/json" } })
148
+ });
149
+ }
150
+ var __createAdAccountsAdSetRouting = { "routes": [["adlabels", "body"], ["adset_schedule", "body"], ["attribution_spec", "body"], ["automatic_manual_state", "body"], ["bid_amount", "body"], ["bid_strategy", "body"], ["billing_event", "body"], ["budget_schedule_specs", "body"], ["budget_source", "body"], ["budget_split_set_id", "body"], ["campaign_attribution", "body"], ["campaign_id", "body"], ["campaign_spec", "body"], ["contextual_bundling_spec", "body"], ["cost_bidding_mode", "body"], ["creative_sequence", "body"], ["daily_budget", "body"], ["daily_imps", "body"], ["daily_min_spend_target", "body"], ["daily_spend_cap", "body"], ["destination_type", "body"], ["dsa_beneficiary", "body"], ["dsa_payor", "body"], ["end_time", "body"], ["execution_options", "body"], ["existing_customer_budget_percentage", "body"], ["frequency_control_specs", "body"], ["is_dynamic_creative", "body"], ["is_sac_cfca_terms_certified", "body"], ["lifetime_budget", "body"], ["lifetime_imps", "body"], ["lifetime_min_spend_target", "body"], ["lifetime_spend_cap", "body"], ["max_budget_spend_percentage", "body"], ["min_budget_spend_percentage", "body"], ["multi_event_conversion_attribution_window_seconds", "body"], ["multi_optimization_goal_weight", "body"], ["name", "body"], ["optimization_goal", "body"], ["optimization_sub_event", "body"], ["pacing_type", "body"], ["promoted_object", "body"], ["rf_prediction_id", "body"], ["source_adset_id", "body"], ["start_time", "body"], ["status", "body"], ["targeting", "body"], ["time_based_ad_rotation_id_blocks", "body"], ["time_based_ad_rotation_intervals", "body"], ["time_start", "body"], ["time_stop", "body"], ["tune_for_category", "body"], ["value_rule_set_id", "body"], ["value_rules_applied", "body"], ["adAccountId", "path"]], "requiredParts": ["body", "path"] };
151
+ function createAdAccountsAdSet(input) {
152
+ return new import_codegen.Action({
153
+ systemId: "conn_mod_def::GKRjtItg_Vg::1fC_0mNKRdW3CEGLZ6Y_uQ",
154
+ method: "POST",
155
+ path: "/v25.0/act_{{adAccountId}}/adsets",
156
+ ...(0, import_codegen.routeInput)(input, __createAdAccountsAdSetRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
157
+ });
158
+ }
159
+ var __createAdAccountVideoRouting = { "routes": [["audio_story_wave_animation_handle", "body"], ["composer_session_id", "body"], ["description", "body"], ["edit_description_spec", "body"], ["end_offset", "body"], ["file_size", "body"], ["file_url", "body"], ["fisheye_video_cropped", "body"], ["front_z_rotation", "body"], ["name", "body"], ["og_action_type_id", "body"], ["og_icon_id", "body"], ["og_object_id", "body"], ["og_phrase", "body"], ["og_suggestion_mechanism", "body"], ["original_fov", "body"], ["original_projection_type", "body"], ["prompt_id", "body"], ["prompt_tracking_string", "body"], ["referenced_sticker_id", "body"], ["source", "body"], ["source_instagram_media_id", "body"], ["start_offset", "body"], ["time_since_original_post", "body"], ["title", "body"], ["transcode_setting_properties", "body"], ["unpublished_content_type", "body"], ["upload_phase", "body"], ["upload_session_id", "body"], ["video_file_chunk", "body"], ["adAccountId", "path"]], "requiredParts": ["path"] };
160
+ function createAdAccountVideo(input) {
161
+ return new import_codegen.Action({
162
+ systemId: "conn_mod_def::GKRjtRsW_dY::-DzRZc5aRdCUjqK0XPw4fQ",
163
+ method: "POST",
164
+ path: "/act_{{adAccountId}}/advideos",
165
+ ...(0, import_codegen.routeInput)(input, __createAdAccountVideoRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
166
+ });
167
+ }
168
+ var __createAdAccountCampaignRouting = { "routes": [["adlabels", "body"], ["bid_strategy", "body"], ["budget_schedule_specs", "body"], ["buying_type", "body"], ["campaign_optimization_type", "body"], ["daily_budget", "body"], ["execution_options", "body"], ["is_skadnetwork_attribution", "body"], ["is_using_l3_schedule", "body"], ["iterative_split_test_configs", "body"], ["lifetime_budget", "body"], ["name", "body"], ["objective", "body"], ["promoted_object", "body"], ["source_campaign_id", "body"], ["special_ad_categories", "body"], ["special_ad_category_country", "body"], ["spend_cap", "body"], ["start_time", "body"], ["status", "body"], ["stop_time", "body"], ["topline_id", "body"], ["adAccountId", "path"]], "requiredParts": ["body", "path"] };
169
+ function createAdAccountCampaign(input) {
170
+ return new import_codegen.Action({
171
+ systemId: "conn_mod_def::GKRjtSKC8xo::Ksa89qY2RD2uKR7C1RsQ_w",
172
+ method: "POST",
173
+ path: "/v25.0/act_{{adAccountId}}/campaigns",
174
+ ...(0, import_codegen.routeInput)(input, __createAdAccountCampaignRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
175
+ });
176
+ }
177
+ var __getAdCampaignRouting = { "routes": [["campaignId", "path"], ["date_preset", "query"], ["fields", "query"], ["time_range", "query"]], "requiredParts": ["path"] };
178
+ function getAdCampaign(input) {
179
+ return new import_codegen.Action({
180
+ systemId: "conn_mod_def::GKRjtv0Sd4I::goSRTv4IRBO7WEJKHcvXZA",
181
+ method: "GET",
182
+ path: "/{{campaignId}}",
183
+ ...(0, import_codegen.routeInput)(input, __getAdCampaignRouting, { "headers": { "Accept": "application/json" } })
184
+ });
185
+ }
186
+ var __createAdCampaignInsightsReportRunRouting = { "routes": [["campaignId", "path"], ["action_attribution_windows", "query"], ["action_breakdowns", "query"], ["action_report_time", "query"], ["breakdowns", "query"], ["date_preset", "query"], ["default_summary", "query"], ["export_columns", "query"], ["export_format", "query"], ["export_name", "query"], ["fields", "query"], ["filtering", "query"], ["level", "query"], ["limit", "query"], ["product_id_limit", "query"], ["sort", "query"], ["summary", "query"], ["summary_action_breakdowns", "query"], ["time_increment", "query"], ["time_range", "query"], ["time_ranges", "query"], ["use_account_attribution_setting", "query"], ["use_unified_attribution_setting", "query"]], "requiredParts": ["path"] };
187
+ function createAdCampaignInsightsReportRun(input) {
188
+ return new import_codegen.Action({
189
+ systemId: "conn_mod_def::GKRjuJuTIlM::xk1yq9W8Ta2bhFBW6u9vWQ",
190
+ method: "POST",
191
+ path: "/{{campaignId}}/insights",
192
+ ...(0, import_codegen.routeInput)(input, __createAdCampaignInsightsReportRunRouting, { "headers": { "Accept": "application/json" } })
193
+ });
194
+ }
195
+ var __getAdCreativesPreviewsRouting = { "routes": [["creativeId", "path"], ["ad_format", "query"], ["creative_feature", "query"], ["dynamic_asset_label", "query"], ["dynamic_creative_spec", "query"], ["dynamic_customization", "query"], ["end_date", "query"], ["height", "query"], ["place_page_id", "query"], ["post", "query"], ["product_item_ids", "query"], ["start_date", "query"], ["width", "query"]], "requiredParts": ["path", "query"] };
196
+ function getAdCreativesPreviews(input) {
197
+ return new import_codegen.Action({
198
+ systemId: "conn_mod_def::GKRjutIWCc0::f9ASPZuXSWqsg5ZKdickYA",
199
+ method: "GET",
200
+ path: "/v25.0/{{creativeId}}/previews",
201
+ ...(0, import_codegen.routeInput)(input, __getAdCreativesPreviewsRouting, { "headers": { "Accept": "application/json" } })
202
+ });
203
+ }
204
+ var __listAdSetsAdsRouting = { "routes": [["adSetId", "path"], ["date_preset", "query"], ["effective_status", "query"], ["fields", "query"], ["summary", "query"], ["time_range", "query"], ["updated_since", "query"]], "requiredParts": ["path"] };
205
+ function listAdSetsAds(input) {
206
+ return new import_codegen.Action({
207
+ systemId: "conn_mod_def::GKRju3p-mcw::kwrNYPGGSeOqYbp1yDs80g",
208
+ method: "GET",
209
+ path: "/v25.0/{{adSetId}}/ads",
210
+ ...(0, import_codegen.routeInput)(input, __listAdSetsAdsRouting, { "headers": { "Accept": "application/json" } })
211
+ });
212
+ }
213
+ var __getAdSetsInsights2Routing = { "routes": [["adSetId", "path"], ["action_attribution_windows", "query"], ["action_breakdowns", "query"], ["action_report_time", "query"], ["breakdowns", "query"], ["date_preset", "query"], ["default_summary", "query"], ["export_columns", "query"], ["export_format", "query"], ["export_name", "query"], ["fields", "query"], ["filtering", "query"], ["level", "query"], ["limit", "query"], ["product_id_limit", "query"], ["sort", "query"], ["summary", "query"], ["summary_action_breakdowns", "query"], ["time_increment", "query"], ["time_range", "query"], ["time_ranges", "query"], ["use_account_attribution_setting", "query"], ["use_unified_attribution_setting", "query"]], "requiredParts": ["path"] };
214
+ function getAdSetsInsights2(input) {
215
+ return new import_codegen.Action({
216
+ systemId: "conn_mod_def::GKRju8WDVxI::GkVWvsgxTUqgP89JMDQRjw",
217
+ method: "GET",
218
+ path: "/v25.0/{{adSetId}}/insights",
219
+ ...(0, import_codegen.routeInput)(input, __getAdSetsInsights2Routing, { "headers": { "Accept": "application/json" } })
220
+ });
221
+ }
222
+ var __createCustomConversionAdAccountRouting = { "routes": [["action_source_type", "body"], ["advanced_rule", "body"], ["custom_event_type", "body"], ["default_conversion_value", "body"], ["description", "body"], ["event_source_id", "body"], ["name", "body"], ["rule", "body"], ["adAccountId", "path"]], "requiredParts": ["body", "path"] };
223
+ function createCustomConversionAdAccount(input) {
224
+ return new import_codegen.Action({
225
+ systemId: "conn_mod_def::GKRjvQqGTww::_ejg1UcmTcqogx8h8Zp2Ug",
226
+ method: "POST",
227
+ path: "/act_{{adAccountId}}/customconversions",
228
+ ...(0, import_codegen.routeInput)(input, __createCustomConversionAdAccountRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
229
+ });
230
+ }
231
+ var __createAdAccountAsyncAdRequestSetRouting = { "routes": [["ad_specs", "body"], ["name", "body"], ["notification_mode", "body"], ["notification_uri", "body"], ["adAccountId", "path"]], "requiredParts": ["body", "path"] };
232
+ function createAdAccountAsyncAdRequestSet(input) {
233
+ return new import_codegen.Action({
234
+ systemId: "conn_mod_def::GKRjtRsz-rg::0f-GsL5QRla4GKdRdUHePA",
235
+ method: "POST",
236
+ path: "/act_{{adAccountId}}/asyncadrequestsets",
237
+ ...(0, import_codegen.routeInput)(input, __createAdAccountAsyncAdRequestSetRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
238
+ });
239
+ }
240
+ var __listAdAccountsCustomAudiencesRouting = { "routes": [["adAccountId", "path"], ["business_id", "query"], ["fetch_primary_audience", "query"], ["fields", "query"], ["filtering", "query"], ["pixel_id", "query"]], "requiredParts": ["path"] };
241
+ function listAdAccountsCustomAudiences(input) {
242
+ return new import_codegen.Action({
243
+ systemId: "conn_mod_def::GKRjtd2eu5o::P2jlSHeVTN-fFa7ph8NLpg",
244
+ method: "GET",
245
+ path: "/v25.0/act_{{adAccountId}}/customaudiences",
246
+ ...(0, import_codegen.routeInput)(input, __listAdAccountsCustomAudiencesRouting, { "headers": { "Accept": "application/json" } })
247
+ });
248
+ }
249
+ var __getAdPreviewsAdRouting = { "routes": [["adId", "path"], ["ad_format", "query"], ["dynamic_asset_label", "query"], ["dynamic_creative_spec", "query"], ["dynamic_customization", "query"], ["end_date", "query"], ["height", "query"], ["place_page_id", "query"], ["post", "query"], ["product_item_ids", "query"], ["start_date", "query"], ["width", "query"]], "requiredParts": ["path", "query"] };
250
+ function getAdPreviewsAd(input) {
251
+ return new import_codegen.Action({
252
+ systemId: "conn_mod_def::GKRjspcpp_w::Bs5S_EvBTEW5V2SpkgmVzw",
253
+ method: "GET",
254
+ path: "/v25.0/{{adId}}/previews",
255
+ ...(0, import_codegen.routeInput)(input, __getAdPreviewsAdRouting, { "headers": { "Accept": "application/json" } })
256
+ });
257
+ }
258
+ var __createCustomConversionAdAccount2Routing = { "routes": [["action_source_type", "body"], ["advanced_rule", "body"], ["custom_event_type", "body"], ["default_conversion_value", "body"], ["description", "body"], ["event_source_id", "body"], ["name", "body"], ["rule", "body"], ["rule.Data", "body"], ["rule.Operators", "body"], ["adAccountId", "path"]], "requiredParts": ["body", "path"] };
259
+ function createCustomConversionAdAccount2(input) {
260
+ return new import_codegen.Action({
261
+ systemId: "conn_mod_def::GKRjvQgiVCo::VI6x_cDtRgyxR9o2-OToVA",
262
+ method: "POST",
263
+ path: "/act_{{adAccountId}}/customconversions",
264
+ ...(0, import_codegen.routeInput)(input, __createCustomConversionAdAccount2Routing, { "headers": { "Accept": "application/json", "Content-Type": "multipart/form-data" } })
265
+ });
266
+ }
267
+ var __createAdAdAccount2Routing = { "routes": [["adAccountId", "path"], ["body", "body", null]], "requiredParts": ["path"] };
268
+ function createAdAdAccount2(input) {
269
+ return new import_codegen.Action({
270
+ systemId: "conn_mod_def::GKRjsHq1qOU::sXbCtK7eS_SU7Y3pWkr0mQ",
271
+ method: "POST",
272
+ path: "/act_{{adAccountId}}/ads",
273
+ ...(0, import_codegen.routeInput)(input, __createAdAdAccount2Routing, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
274
+ });
275
+ }
276
+ var __getAdsPixelRouting = { "routes": [["adsPixelId", "path"]], "requiredParts": ["path"] };
277
+ function getAdsPixel(input) {
278
+ return new import_codegen.Action({
279
+ systemId: "conn_mod_def::GKRjvIAkZY4::rFdGI0q2RyWD7RLuat8T7Q",
280
+ method: "GET",
281
+ path: "/v25.0/{{adsPixelId}}",
282
+ ...(0, import_codegen.routeInput)(input, __getAdsPixelRouting, { "headers": { "Accept": "application/json" } })
283
+ });
284
+ }
285
+ var __createAdCampaignAdAccountRouting = { "routes": [["adlabels", "body"], ["bid_strategy", "body"], ["budget_schedule_specs", "body"], ["buying_type", "body"], ["campaign_optimization_type", "body"], ["daily_budget", "body"], ["execution_options", "body"], ["is_adset_budget_sharing_enabled", "body"], ["is_skadnetwork_attribution", "body"], ["is_using_l3_schedule", "body"], ["iterative_split_test_configs", "body"], ["lifetime_budget", "body"], ["name", "body"], ["objective", "body"], ["promoted_object", "body"], ["source_campaign_id", "body"], ["special_ad_categories", "body"], ["special_ad_category_country", "body"], ["spend_cap", "body"], ["start_time", "body"], ["status", "body"], ["stop_time", "body"], ["topline_id", "body"], ["adAccountId", "path"]], "requiredParts": ["body", "path"] };
286
+ function createAdCampaignAdAccount(input) {
287
+ return new import_codegen.Action({
288
+ systemId: "conn_mod_def::GKRjtu7AsjY::2x_M5XeVSpOvswvbLq67YA",
289
+ method: "POST",
290
+ path: "/act_{{adAccountId}}/campaigns",
291
+ ...(0, import_codegen.routeInput)(input, __createAdCampaignAdAccountRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
292
+ });
293
+ }
294
+ var __createAdAccountInsightsReportRunRouting = { "routes": [["adAccountId", "path"], ["action_attribution_windows", "query"], ["action_breakdowns", "query"], ["action_report_time", "query"], ["breakdowns", "query"], ["date_preset", "query"], ["default_summary", "query"], ["export_columns", "query"], ["export_format", "query"], ["export_name", "query"], ["fields", "query"], ["filtering", "query"], ["graph_cache", "query"], ["level", "query"], ["limit", "query"], ["product_id_limit", "query"], ["sort", "query"], ["summary", "query"], ["summary_action_breakdowns", "query"], ["time_increment", "query"], ["time_range", "query"], ["time_ranges", "query"], ["use_account_attribution_setting", "query"], ["use_unified_attribution_setting", "query"]], "requiredParts": ["path"] };
295
+ function createAdAccountInsightsReportRun(input) {
296
+ return new import_codegen.Action({
297
+ systemId: "conn_mod_def::GKRjtj77d1E::y-KLC2foSmmccNlEpuDwHA",
298
+ method: "POST",
299
+ path: "/act_{{adAccountId}}/insights",
300
+ ...(0, import_codegen.routeInput)(input, __createAdAccountInsightsReportRunRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
301
+ });
302
+ }
303
+ var __createAdInsightsReportRunAdRouting = { "routes": [["adId", "path"], ["action_attribution_windows", "query"], ["action_breakdowns", "query"], ["action_report_time", "query"], ["breakdowns", "query"], ["date_preset", "query"], ["default_summary", "query"], ["export_columns", "query"], ["export_format", "query"], ["export_name", "query"], ["fields", "query"], ["filtering", "query"], ["level", "query"], ["limit", "query"], ["product_id_limit", "query"], ["sort", "query"], ["summary", "query"], ["summary_action_breakdowns", "query"], ["time_increment", "query"], ["time_range", "query"], ["time_ranges", "query"], ["use_account_attribution_setting", "query"], ["use_unified_attribution_setting", "query"]], "requiredParts": ["path"] };
304
+ function createAdInsightsReportRunAd(input) {
305
+ return new import_codegen.Action({
306
+ systemId: "conn_mod_def::GKRjsRejG3o::D8ohE6Z1QgmMUbk3eqigFg",
307
+ method: "POST",
308
+ path: "/{{adId}}/insights",
309
+ ...(0, import_codegen.routeInput)(input, __createAdInsightsReportRunAdRouting, { "headers": { "Accept": "application/json" } })
310
+ });
311
+ }
312
+ var __updateAdCampaignRouting = { "routes": [["adlabels", "body"], ["adset_bid_amounts", "body"], ["adset_budgets", "body"], ["bid_strategy", "body"], ["budget_rebalance_flag", "body"], ["campaign_optimization_type", "body"], ["daily_budget", "body"], ["execution_options", "body"], ["is_adset_budget_sharing_enabled", "body"], ["is_skadnetwork_attribution", "body"], ["is_using_l3_schedule", "body"], ["iterative_split_test_configs", "body"], ["lifetime_budget", "body"], ["name", "body"], ["objective", "body"], ["promoted_object", "body"], ["smart_promotion_type", "body"], ["special_ad_category", "body"], ["special_ad_category_country", "body"], ["spend_cap", "body"], ["start_time", "body"], ["status", "body"], ["stop_time", "body"], ["campaignId", "path"]], "requiredParts": ["body", "path"] };
313
+ function updateAdCampaign(input) {
314
+ return new import_codegen.Action({
315
+ systemId: "conn_mod_def::GKRjtvMjGD0::emHzvzuWRJSeGqJel4Qt2w",
316
+ method: "POST",
317
+ path: "/{{campaignId}}",
318
+ ...(0, import_codegen.routeInput)(input, __updateAdCampaignRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
319
+ });
320
+ }
321
+ var __createAdSetInsightsReportRunRouting = { "routes": [["adSetId", "path"], ["action_attribution_windows", "query"], ["action_breakdowns", "query"], ["action_report_time", "query"], ["breakdowns", "query"], ["date_preset", "query"], ["default_summary", "query"], ["export_columns", "query"], ["export_format", "query"], ["export_name", "query"], ["fields", "query"], ["filtering", "query"], ["graph_cache", "query"], ["level", "query"], ["limit", "query"], ["product_id_limit", "query"], ["sort", "query"], ["summary", "query"], ["summary_action_breakdowns", "query"], ["time_increment", "query"], ["time_range", "query"], ["time_ranges", "query"], ["use_account_attribution_setting", "query"], ["use_unified_attribution_setting", "query"]], "requiredParts": ["path"] };
322
+ function createAdSetInsightsReportRun(input) {
323
+ return new import_codegen.Action({
324
+ systemId: "conn_mod_def::GKRju_4lHKw::Bo4u94RxTJ2-9RF6xCLS1g",
325
+ method: "POST",
326
+ path: "/{{adSetId}}/insights",
327
+ ...(0, import_codegen.routeInput)(input, __createAdSetInsightsReportRunRouting, { "headers": { "Accept": "application/json" } })
328
+ });
329
+ }
330
+ var __createAdSetAdAccountRouting = { "routes": [["adlabels", "body"], ["adset_schedule", "body"], ["attribution_spec", "body"], ["automatic_manual_state", "body"], ["bid_amount", "body"], ["bid_strategy", "body"], ["billing_event", "body"], ["budget_schedule_specs", "body"], ["budget_source", "body"], ["budget_split_set_id", "body"], ["campaign_attribution", "body"], ["campaign_id", "body"], ["campaign_spec", "body"], ["contextual_bundling_spec", "body"], ["cost_bidding_mode", "body"], ["creative_sequence", "body"], ["daily_budget", "body"], ["daily_imps", "body"], ["daily_min_spend_target", "body"], ["daily_spend_cap", "body"], ["destination_type", "body"], ["dsa_beneficiary", "body"], ["dsa_payor", "body"], ["end_time", "body"], ["execution_options", "body"], ["existing_customer_budget_percentage", "body"], ["frequency_control_specs", "body"], ["is_dynamic_creative", "body"], ["is_sac_cfca_terms_certified", "body"], ["lifetime_budget", "body"], ["lifetime_imps", "body"], ["lifetime_min_spend_target", "body"], ["lifetime_spend_cap", "body"], ["max_budget_spend_percentage", "body"], ["min_budget_spend_percentage", "body"], ["multi_event_conversion_attribution_window_seconds", "body"], ["multi_optimization_goal_weight", "body"], ["name", "body"], ["optimization_goal", "body"], ["optimization_sub_event", "body"], ["pacing_type", "body"], ["promoted_object", "body"], ["rf_prediction_id", "body"], ["source_adset_id", "body"], ["start_time", "body"], ["status", "body"], ["targeting", "body"], ["time_based_ad_rotation_id_blocks", "body"], ["time_based_ad_rotation_intervals", "body"], ["time_start", "body"], ["time_stop", "body"], ["tune_for_category", "body"], ["value_rule_set_id", "body"], ["value_rules_applied", "body"], ["adAccountId", "path"]], "requiredParts": ["body", "path"] };
331
+ function createAdSetAdAccount(input) {
332
+ return new import_codegen.Action({
333
+ systemId: "conn_mod_def::GKRjupKqPAc::rBMPuxbbSkqYMveJO8uIlg",
334
+ method: "POST",
335
+ path: "/act_{{adAccountId}}/adsets",
336
+ ...(0, import_codegen.routeInput)(input, __createAdSetAdAccountRouting, { "headers": { "Accept": "application/json", "Content-Type": "multipart/form-data" } })
337
+ });
338
+ }
339
+ var __getAdSetsCampaignInsightsRouting = { "routes": [["adSetId", "path"], ["action_attribution_windows", "query"], ["action_breakdowns", "query"], ["action_report_time", "query"], ["breakdowns", "query"], ["date_preset", "query"], ["default_summary", "query"], ["export_columns", "query"], ["export_format", "query"], ["export_name", "query"], ["fields", "query"], ["filtering", "query"], ["level", "query"], ["limit", "query"], ["product_id_limit", "query"], ["sort", "query"], ["summary", "query"], ["summary_action_breakdowns", "query"], ["time_increment", "query"], ["time_range", "query"], ["time_ranges", "query"], ["use_account_attribution_setting", "query"], ["use_unified_attribution_setting", "query"]], "requiredParts": ["path"] };
340
+ function getAdSetsCampaignInsights(input) {
341
+ return new import_codegen.Action({
342
+ systemId: "conn_mod_def::GKRjufY5WX4::u1yZrxTiQjOW9sErp3ESaA",
343
+ method: "GET",
344
+ path: "/v25.0/{{adSetId}}/insights",
345
+ ...(0, import_codegen.routeInput)(input, __getAdSetsCampaignInsightsRouting, { "headers": { "Accept": "application/json" } })
346
+ });
347
+ }
348
+ var __deleteAdAccountAdImageRouting = { "routes": [["adAccountId", "path"], ["query", "query", null]], "requiredParts": ["path"] };
349
+ function deleteAdAccountAdImage(input) {
350
+ return new import_codegen.Action({
351
+ systemId: "conn_mod_def::GKRjs2bpTNU::itP27CpzTQau4wa0w07hvw",
352
+ method: "DELETE",
353
+ path: "/act_{{adAccountId}}/adimages",
354
+ ...(0, import_codegen.routeInput)(input, __deleteAdAccountAdImageRouting, { "headers": { "Accept": "application/json" } })
355
+ });
356
+ }
357
+ var __updateAdAccountRouting = { "routes": [["agency_client_declaration", "body"], ["attribution_spec", "body"], ["business_info", "body"], ["custom_audience_info", "body"], ["default_dsa_beneficiary", "body"], ["default_dsa_payor", "body"], ["end_advertiser", "body"], ["is_notifications_enabled", "body"], ["media_agency", "body"], ["name", "body"], ["partner", "body"], ["spend_cap", "body"], ["spend_cap_action", "body"], ["adAccountId", "path"]], "requiredParts": ["body", "path"] };
358
+ function updateAdAccount(input) {
359
+ return new import_codegen.Action({
360
+ systemId: "conn_mod_def::GKRjs1tp3Dg::8qTbyc0fT4-Fz4eqoL5E8Q",
361
+ method: "POST",
362
+ path: "/act_{{adAccountId}}",
363
+ ...(0, import_codegen.routeInput)(input, __updateAdAccountRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
364
+ });
365
+ }
366
+ var __updateAdCreativeRouting = { "routes": [["account_id", "body"], ["adlabels", "body"], ["name", "body"], ["status", "body"], ["adCreativeId", "path"]], "requiredParts": ["path"] };
367
+ function updateAdCreative(input) {
368
+ return new import_codegen.Action({
369
+ systemId: "conn_mod_def::GKRjunroeyA::ENVBk-w5RZmKS6aycfZOng",
370
+ method: "POST",
371
+ path: "/{{adCreativeId}}",
372
+ ...(0, import_codegen.routeInput)(input, __updateAdCreativeRouting, { "headers": { "Accept": "application/json", "Content-Type": "multipart/form-data" } })
373
+ });
374
+ }
375
+ var __deleteAdAccountCampaignsRouting = { "routes": [["adAccountId", "path"], ["before_date", "query"], ["delete_strategy", "query"], ["object_count", "query"]], "requiredParts": ["path", "query"] };
376
+ function deleteAdAccountCampaigns(input) {
377
+ return new import_codegen.Action({
378
+ systemId: "conn_mod_def::GKRjtbi-fGc::Oh02yHYpQmyIrdrQ_bv6ng",
379
+ method: "DELETE",
380
+ path: "/act_{{adAccountId}}/campaigns",
381
+ ...(0, import_codegen.routeInput)(input, __deleteAdAccountCampaignsRouting, { "headers": { "Accept": "application/json" } })
382
+ });
383
+ }
384
+ var __createAdAccountAsyncBatchRequestRouting = { "routes": [["adbatch", "body"], ["name", "body"], ["adAccountId", "path"]], "requiredParts": ["body", "path"] };
385
+ function createAdAccountAsyncBatchRequest(input) {
386
+ return new import_codegen.Action({
387
+ systemId: "conn_mod_def::GKRjtRmTucg::iJk4umV3SCuAf0gcMQQ_Ag",
388
+ method: "POST",
389
+ path: "/act_{{adAccountId}}/async_batch_requests",
390
+ ...(0, import_codegen.routeInput)(input, __createAdAccountAsyncBatchRequestRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
391
+ });
392
+ }
393
+ var __deleteAdAccountAssociationFromAdsPixelOrCustomAudienceRouting = { "routes": [["adsPixelId", "path"], ["account_id", "query"], ["business", "query"]], "requiredParts": ["path", "query"] };
394
+ function deleteAdAccountAssociationFromAdsPixelOrCustomAudience(input) {
395
+ return new import_codegen.Action({
396
+ systemId: "conn_mod_def::GKRjsntoIC8::aypDqcQ-QZGy7rEoykrF4Q",
397
+ method: "DELETE",
398
+ path: "/{{adsPixelId}}/shared_accounts",
399
+ ...(0, import_codegen.routeInput)(input, __deleteAdAccountAssociationFromAdsPixelOrCustomAudienceRouting, { "headers": { "Accept": "application/json" } })
400
+ });
401
+ }
402
+ var __listAdAccountsAdImagesRouting = { "routes": [["adAccountId", "path"], ["biz_tag_id", "query"], ["business_id", "query"], ["hashes", "query"], ["minheight", "query"], ["minwidth", "query"], ["name", "query"], ["summary", "query"]], "requiredParts": ["path"] };
403
+ function listAdAccountsAdImages(input) {
404
+ return new import_codegen.Action({
405
+ systemId: "conn_mod_def::GKRjtBkFq7c::Z8-kZCSWS_OteX-lCJEP3w",
406
+ method: "GET",
407
+ path: "/v25.0/{{adAccountId}}/adimages",
408
+ ...(0, import_codegen.routeInput)(input, __listAdAccountsAdImagesRouting, { "headers": { "Accept": "application/json" } })
409
+ });
410
+ }
411
+ var __listAdAccountsAdsRouting = { "routes": [["adAccountId", "path"], ["date_preset", "query"], ["effective_status", "query"], ["summary", "query"], ["time_range", "query"], ["updated_since", "query"]], "requiredParts": ["path"] };
412
+ function listAdAccountsAds(input) {
413
+ return new import_codegen.Action({
414
+ systemId: "conn_mod_def::GKRjtAx7Qu0::hM4yPa5RQ6-A3Y_WvPq5mQ",
415
+ method: "GET",
416
+ path: "/v25.0/act_{{adAccountId}}/ads",
417
+ ...(0, import_codegen.routeInput)(input, __listAdAccountsAdsRouting, { "headers": { "Accept": "application/json" } })
418
+ });
419
+ }
420
+ var __getAdSetsActivitiesRouting = { "routes": [["adSetId", "path"], ["after", "query"], ["business_id", "query"], ["category", "query"], ["limit", "query"], ["since", "query"], ["uid", "query"], ["until", "query"]], "requiredParts": ["path"] };
421
+ function getAdSetsActivities(input) {
422
+ return new import_codegen.Action({
423
+ systemId: "conn_mod_def::GKRju4Se78k::WZiUH735SMiBpUQlCzxjsw",
424
+ method: "GET",
425
+ path: "/{{adSetId}}/activities",
426
+ ...(0, import_codegen.routeInput)(input, __getAdSetsActivitiesRouting, { "headers": { "Accept": "application/json" } })
427
+ });
428
+ }
429
+ var __getAdAccountsCampaignsRouting = { "routes": [["adAccountId", "path"], ["date_preset", "query"], ["effective_status", "query"], ["fields", "query"], ["is_completed", "query"], ["summary", "query"], ["time_range", "query"]], "requiredParts": ["path"] };
430
+ function getAdAccountsCampaigns(input) {
431
+ return new import_codegen.Action({
432
+ systemId: "conn_mod_def::GKRjtkpaKrA::AfnwDGdzTOK2XVw71lDpMw",
433
+ method: "GET",
434
+ path: "/v25.0/act_{{adAccountId}}/campaigns",
435
+ ...(0, import_codegen.routeInput)(input, __getAdAccountsCampaignsRouting, { "headers": { "Accept": "application/json" } })
436
+ });
437
+ }
438
+ var __getAdSetRouting = { "routes": [["adSetId", "path"], ["date_format", "query"], ["date_preset", "query"], ["fields", "query"], ["time_range", "query"]], "requiredParts": ["path"] };
439
+ function getAdSet(input) {
440
+ return new import_codegen.Action({
441
+ systemId: "conn_mod_def::GKRjuq3L49g::rgoSrAOjRQmqi6dBQo4F-Q",
442
+ method: "GET",
443
+ path: "/v25.0/{{adSetId}}",
444
+ ...(0, import_codegen.routeInput)(input, __getAdSetRouting, { "headers": { "Accept": "application/json" } })
445
+ });
446
+ }
447
+ var __getAdCreativeRouting = { "routes": [["creativeId", "path"], ["fields", "query"], ["thumbnail_height", "query"], ["thumbnail_width", "query"]], "requiredParts": ["path"] };
448
+ function getAdCreative(input) {
449
+ return new import_codegen.Action({
450
+ systemId: "conn_mod_def::GKRjuDxrabk::srCvdRNPS72UWTkJPgSFiQ",
451
+ method: "GET",
452
+ path: "/v25.0/{{creativeId}}",
453
+ ...(0, import_codegen.routeInput)(input, __getAdCreativeRouting, { "headers": { "Accept": "application/json" } })
454
+ });
455
+ }
456
+ var __deleteCustomConversionRouting = { "routes": [["customConversionId", "path"]], "requiredParts": ["path"] };
457
+ function deleteCustomConversion(input) {
458
+ return new import_codegen.Action({
459
+ systemId: "conn_mod_def::GKRjvQG5lsA::YxLOvTr9RmWthje4bF49pw",
460
+ method: "DELETE",
461
+ path: "/{{customConversionId}}",
462
+ ...(0, import_codegen.routeInput)(input, __deleteCustomConversionRouting, { "headers": { "Accept": "application/json" } })
463
+ });
464
+ }
465
+ var __listAdCampaignsAdsRouting = { "routes": [["adCampaignId", "path"], ["date_preset", "query"], ["effective_status", "query"], ["fields", "query"], ["summary", "query"], ["time_range", "query"], ["updated_since", "query"]], "requiredParts": ["path"] };
466
+ function listAdCampaignsAds(input) {
467
+ return new import_codegen.Action({
468
+ systemId: "conn_mod_def::GKRjuDp3WdU::tXTjMvlgTRymYyXUZnMZiQ",
469
+ method: "GET",
470
+ path: "/{{adCampaignId}}/ads",
471
+ ...(0, import_codegen.routeInput)(input, __listAdCampaignsAdsRouting, { "headers": { "Accept": "application/json" } })
472
+ });
473
+ }
474
+ var __getAdsPixel2Routing = { "routes": [["pixelId", "path"], ["fields", "query"], ["summary", "query"]], "requiredParts": ["path"] };
475
+ function getAdsPixel2(input) {
476
+ return new import_codegen.Action({
477
+ systemId: "conn_mod_def::GKRjvIEbLLc::SssOjuZASUeY8wQrHHnceA",
478
+ method: "GET",
479
+ path: "/v25.0/{{pixelId}}",
480
+ ...(0, import_codegen.routeInput)(input, __getAdsPixel2Routing, { "headers": { "Accept": "application/json" } })
481
+ });
482
+ }
483
+ var __listAdAccountsCustomConversions2Routing = { "routes": [["adAccountId", "path"]], "requiredParts": ["path"] };
484
+ function listAdAccountsCustomConversions2(input) {
485
+ return new import_codegen.Action({
486
+ systemId: "conn_mod_def::GKRjvaL-8-o::ybuu5eeXS1qqV6JQUBgReQ",
487
+ method: "GET",
488
+ path: "/v25.0/{{adAccountId}}/customconversions",
489
+ ...(0, import_codegen.routeInput)(input, __listAdAccountsCustomConversions2Routing, { "headers": { "Accept": "application/json" } })
490
+ });
491
+ }
492
+ var __createAdAccountBusinessRouting = { "routes": [["adaccount_id", "body"], ["businessId", "path"]], "requiredParts": ["body", "path"] };
493
+ function createAdAccountBusiness(input) {
494
+ return new import_codegen.Action({
495
+ systemId: "conn_mod_def::GKRjslcQ770::Nl161vuAT76pzA6Sa0c0rg",
496
+ method: "POST",
497
+ path: "/{{businessId}}/adaccount",
498
+ ...(0, import_codegen.routeInput)(input, __createAdAccountBusinessRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/x-www-form-urlencoded" } })
499
+ });
500
+ }
501
+ var __createAdAccountsAdsPixelRouting = { "routes": [["name", "body"], ["adAccountId", "path"]], "requiredParts": ["body", "path"] };
502
+ function createAdAccountsAdsPixel(input) {
503
+ return new import_codegen.Action({
504
+ systemId: "conn_mod_def::GKRjvInn3Dg::EKsyDdiRR9CcQBeT1gkzUA",
505
+ method: "POST",
506
+ path: "/act_{{adAccountId}}/adspixels",
507
+ ...(0, import_codegen.routeInput)(input, __createAdAccountsAdsPixelRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
508
+ });
509
+ }
510
+ var __updateCustomConversionRouting = { "routes": [["default_conversion_value", "body"], ["description", "body"], ["name", "body"], ["customConversionId", "path"]], "requiredParts": ["body", "path"] };
511
+ function updateCustomConversion(input) {
512
+ return new import_codegen.Action({
513
+ systemId: "conn_mod_def::GKRjvSXenFk::ZEpHg55QQa2ooVwfPxc0Pw",
514
+ method: "POST",
515
+ path: "/{{customConversionId}}",
516
+ ...(0, import_codegen.routeInput)(input, __updateCustomConversionRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
517
+ });
518
+ }
519
+ var __updateAdsPixelRouting = { "routes": [["automatic_matching_fields", "body"], ["data_use_setting", "body"], ["enable_automatic_matching", "body"], ["first_party_cookie_status", "body"], ["name", "body"], ["server_events_business_ids", "body"], ["adsPixelId", "path"]], "requiredParts": ["body", "path"] };
520
+ function updateAdsPixel(input) {
521
+ return new import_codegen.Action({
522
+ systemId: "conn_mod_def::GKRjvIXIzi8::g0cgyEjmT-ucKBm1N4pVaQ",
523
+ method: "POST",
524
+ path: "/{{adsPixelId}}",
525
+ ...(0, import_codegen.routeInput)(input, __updateAdsPixelRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
526
+ });
527
+ }
528
+ var __createAdAccountAdImageRouting = { "routes": [["bytes", "body"], ["copy_from", "body"], ["adAccountId", "path"]], "requiredParts": ["body", "path"] };
529
+ function createAdAccountAdImage(input) {
530
+ return new import_codegen.Action({
531
+ systemId: "conn_mod_def::GKRjs2LTpnw::BTpA7mzJSSiZ1R0ETSZFLg",
532
+ method: "POST",
533
+ path: "/act_{{adAccountId}}/adimages",
534
+ ...(0, import_codegen.routeInput)(input, __createAdAccountAdImageRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
535
+ });
536
+ }
537
+ var __getAdSetInsightsRouting = { "routes": [["adSetId", "path"], ["action_attribution_windows", "query"], ["action_breakdowns", "query"], ["action_report_time", "query"], ["breakdowns", "query"], ["date_preset", "query"], ["default_summary", "query"], ["export_columns", "query"], ["export_format", "query"], ["export_name", "query"], ["fields", "query"], ["filtering", "query"], ["level", "query"], ["limit", "query"], ["product_id_limit", "query"], ["sort", "query"], ["summary", "query"], ["summary_action_breakdowns", "query"], ["time_increment", "query"], ["time_range", "query"], ["time_ranges", "query"], ["use_account_attribution_setting", "query"], ["use_unified_attribution_setting", "query"]], "requiredParts": ["path"] };
538
+ function getAdSetInsights(input) {
539
+ return new import_codegen.Action({
540
+ systemId: "conn_mod_def::GKRjtmKNZ94::lw4-ZiXBROyCwJH0TM_uFg",
541
+ method: "GET",
542
+ path: "/v25.0/{{adSetId}}/insights",
543
+ ...(0, import_codegen.routeInput)(input, __getAdSetInsightsRouting, { "headers": { "Accept": "application/json" } })
544
+ });
545
+ }
546
+ var __createAdAccountsAdsPixel2Routing = { "routes": [["name", "body"], ["adAccountId", "path"]], "requiredParts": ["body", "path"] };
547
+ function createAdAccountsAdsPixel2(input) {
548
+ return new import_codegen.Action({
549
+ systemId: "conn_mod_def::GKRjvH6akaY::iGDeWH4UR62NLHCPo-fneA",
550
+ method: "POST",
551
+ path: "/act_{{adAccountId}}/adspixels",
552
+ ...(0, import_codegen.routeInput)(input, __createAdAccountsAdsPixel2Routing, { "headers": { "Accept": "application/json", "Content-Type": "application/x-www-form-urlencoded" } })
553
+ });
554
+ }
555
+ var __getAdIdRouting = { "routes": [["adId", "path"], ["date_preset", "query"], ["fields", "query"], ["review_feedback_breakdown", "query"], ["time_range", "query"]], "requiredParts": ["path"] };
556
+ function getAdId(input) {
557
+ return new import_codegen.Action({
558
+ systemId: "conn_mod_def::GKRjsbyRDLw::X8_Xh1baRueYUh1TK5Lh_w",
559
+ method: "GET",
560
+ path: "/v25.0/{{adId}}",
561
+ ...(0, import_codegen.routeInput)(input, __getAdIdRouting, { "headers": { "Accept": "application/json" } })
562
+ });
563
+ }
564
+ var __deleteAdCreativeRouting = { "routes": [["adCreativeId", "path"]], "requiredParts": ["path"] };
565
+ function deleteAdCreative(input) {
566
+ return new import_codegen.Action({
567
+ systemId: "conn_mod_def::GKRjuBDd4pE::CeiA0j6CRKKfYjROMcfv2A",
568
+ method: "DELETE",
569
+ path: "/{{adCreativeId}}",
570
+ ...(0, import_codegen.routeInput)(input, __deleteAdCreativeRouting, { "headers": { "Accept": "application/json" } })
571
+ });
572
+ }
573
+ var __listAdsAdCreativesRouting = { "routes": [["adId", "path"]], "requiredParts": ["path"] };
574
+ function listAdsAdCreatives(input) {
575
+ return new import_codegen.Action({
576
+ systemId: "conn_mod_def::GKRjsHT_cd0::Rwed1Lp0SgClVcba7XB7vw",
577
+ method: "GET",
578
+ path: "/v25.0/{{adId}}/adcreatives",
579
+ ...(0, import_codegen.routeInput)(input, __listAdsAdCreativesRouting, { "headers": { "Accept": "application/json" } })
580
+ });
581
+ }
582
+ var __deleteAdCampaignRouting = { "routes": [["campaignId", "path"]], "requiredParts": ["path"] };
583
+ function deleteAdCampaign(input) {
584
+ return new import_codegen.Action({
585
+ systemId: "conn_mod_def::GKRjtwNcMdY::MMQ-eTX2TGml8PKW11VF9w",
586
+ method: "DELETE",
587
+ path: "/{{campaignId}}",
588
+ ...(0, import_codegen.routeInput)(input, __deleteAdCampaignRouting, { "headers": { "Accept": "application/json" } })
589
+ });
590
+ }
591
+ var __deleteAdRouting = { "routes": [["adId", "path"]], "requiredParts": ["path"] };
592
+ function deleteAd(input) {
593
+ return new import_codegen.Action({
594
+ systemId: "conn_mod_def::GKRjsGOAQxI::xK2s6ytBQnybqjvoU0oY0Q",
595
+ method: "DELETE",
596
+ path: "/{{adId}}",
597
+ ...(0, import_codegen.routeInput)(input, __deleteAdRouting, { "headers": { "Accept": "application/json" } })
598
+ });
599
+ }
600
+ var __listAdAccountsAdCreativesRouting = { "routes": [["adAccountId", "path"], ["fields", "query"], ["summary", "query"]], "requiredParts": ["path"] };
601
+ function listAdAccountsAdCreatives(input) {
602
+ return new import_codegen.Action({
603
+ systemId: "conn_mod_def::GKRjs2dGZiU::gbNWM1y4T-OxgK3Xz2pV_A",
604
+ method: "GET",
605
+ path: "/v25.0/act_{{adAccountId}}/adcreatives",
606
+ ...(0, import_codegen.routeInput)(input, __listAdAccountsAdCreativesRouting, { "headers": { "Accept": "application/json" } })
607
+ });
608
+ }
609
+ var __getAdAccountUserRouting = { "routes": [["adAccountId", "path"], ["fields", "query"]], "requiredParts": ["path"] };
610
+ function getAdAccountUser(input) {
611
+ return new import_codegen.Action({
612
+ systemId: "conn_mod_def::GKRjt5JPobs::HYKScLRbSb6lDhnaXRnbKg",
613
+ method: "GET",
614
+ path: "/v25.0/act_{{adAccountId}}",
615
+ ...(0, import_codegen.routeInput)(input, __getAdAccountUserRouting, { "headers": { "Accept": "application/json" } })
616
+ });
617
+ }
618
+ var __deleteAdAccountsAdVideosRouting = { "routes": [["adAccountId", "path"], ["video_id", "query"]], "requiredParts": ["path", "query"] };
619
+ function deleteAdAccountsAdVideos(input) {
620
+ return new import_codegen.Action({
621
+ systemId: "conn_mod_def::GKRjtR4GH6g::pKCdYT-RRby6p28vf3haGw",
622
+ method: "DELETE",
623
+ path: "/act_{{adAccountId}}/advideos",
624
+ ...(0, import_codegen.routeInput)(input, __deleteAdAccountsAdVideosRouting, { "headers": { "Accept": "application/json" } })
625
+ });
626
+ }
627
+ var __getAdSetsAdCreativesRouting = { "routes": [["adSetId", "path"]], "requiredParts": ["path"] };
628
+ function getAdSetsAdCreatives(input) {
629
+ return new import_codegen.Action({
630
+ systemId: "conn_mod_def::GKRju2FS8Yo::IRDpKUCiTTaIU9qfKoKsXw",
631
+ method: "GET",
632
+ path: "/v25.0/{{adSetId}}/adcreatives",
633
+ ...(0, import_codegen.routeInput)(input, __getAdSetsAdCreativesRouting, { "headers": { "Accept": "application/json" } })
634
+ });
635
+ }
636
+ // Annotate the CommonJS export names for ESM import in node:
637
+ 0 && (module.exports = {
638
+ createAdAccountAdCreative,
639
+ createAdAccountAdImage,
640
+ createAdAccountAsyncAdRequestSet,
641
+ createAdAccountAsyncBatchRequest,
642
+ createAdAccountBusiness,
643
+ createAdAccountCampaign,
644
+ createAdAccountInsightsReportRun,
645
+ createAdAccountVideo,
646
+ createAdAccountsAdSet,
647
+ createAdAccountsAdsPixel,
648
+ createAdAccountsAdsPixel2,
649
+ createAdAdAccount,
650
+ createAdAdAccount2,
651
+ createAdCampaignAdAccount,
652
+ createAdCampaignInsightsReportRun,
653
+ createAdInsightsReportRunAd,
654
+ createAdSetAdAccount,
655
+ createAdSetInsightsReportRun,
656
+ createCustomConversionAdAccount,
657
+ createCustomConversionAdAccount2,
658
+ deleteAd,
659
+ deleteAdAccountAdImage,
660
+ deleteAdAccountAssociationFromAdsPixelOrCustomAudience,
661
+ deleteAdAccountCampaigns,
662
+ deleteAdAccountsAdVideos,
663
+ deleteAdCampaign,
664
+ deleteAdCreative,
665
+ deleteAdSet,
666
+ deleteCustomConversion,
667
+ getAdAccount,
668
+ getAdAccountUser,
669
+ getAdAccountsCampaigns,
670
+ getAdCampaign,
671
+ getAdCreative,
672
+ getAdCreativesPreviews,
673
+ getAdId,
674
+ getAdPreviewsAd,
675
+ getAdSet,
676
+ getAdSetInsights,
677
+ getAdSetsActivities,
678
+ getAdSetsAdCreatives,
679
+ getAdSetsCampaignInsights,
680
+ getAdSetsInsights,
681
+ getAdSetsInsights2,
682
+ getAdsPixel,
683
+ getAdsPixel2,
684
+ listAdAccountsAdCreatives,
685
+ listAdAccountsAdImages,
686
+ listAdAccountsAdSets,
687
+ listAdAccountsAds,
688
+ listAdAccountsCustomAudiences,
689
+ listAdAccountsCustomConversions,
690
+ listAdAccountsCustomConversions2,
691
+ listAdCampaignsAds,
692
+ listAdSetsAds,
693
+ listAdsAdCreatives,
694
+ updateAdAccount,
695
+ updateAdCampaign,
696
+ updateAdCreative,
697
+ updateAdsPixel,
698
+ updateCustomConversion
699
+ });