@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/README.md +64 -2
- package/banner.svg +11 -0
- package/dist/index.d.mts +12560 -0
- package/dist/index.d.ts +12560 -0
- package/dist/index.js +699 -0
- package/dist/index.mjs +614 -0
- package/fingerprint.json +1 -0
- package/package.json +33 -4
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,614 @@
|
|
|
1
|
+
// src/index.ts
|
|
2
|
+
import { Action as __Action, routeInput as __routeInput } from "@withone/sdk/codegen";
|
|
3
|
+
var __deleteAdSetRouting = { "routes": [["adSetId", "path"]], "requiredParts": ["path"] };
|
|
4
|
+
function deleteAdSet(input) {
|
|
5
|
+
return new __Action({
|
|
6
|
+
systemId: "conn_mod_def::GKRjuoPTo1w::PH8kokxhSMGN683LMwMBoQ",
|
|
7
|
+
method: "DELETE",
|
|
8
|
+
path: "/{{adSetId}}/",
|
|
9
|
+
...__routeInput(input, __deleteAdSetRouting, { "headers": { "Accept": "application/json" } })
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
var __listAdAccountsCustomConversionsRouting = { "routes": [["adAccountId", "path"], ["fields", "query"]], "requiredParts": ["path"] };
|
|
13
|
+
function listAdAccountsCustomConversions(input) {
|
|
14
|
+
return new __Action({
|
|
15
|
+
systemId: "conn_mod_def::GKRjvQuVNyw::EoRQzGYHTDONAw3HGyzjag",
|
|
16
|
+
method: "GET",
|
|
17
|
+
path: "/act_{{adAccountId}}/customconversions",
|
|
18
|
+
...__routeInput(input, __listAdAccountsCustomConversionsRouting, { "headers": { "Accept": "application/json" } })
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
var __getAdAccountRouting = { "routes": [["adAccountId", "path"], ["fields", "query"]], "requiredParts": ["path"] };
|
|
22
|
+
function getAdAccount(input) {
|
|
23
|
+
return new __Action({
|
|
24
|
+
systemId: "conn_mod_def::GKRjslOV51Q::-7D8kAo3TNGrj1rrZ6GhKg",
|
|
25
|
+
method: "GET",
|
|
26
|
+
path: "/act_{{adAccountId}}",
|
|
27
|
+
...__routeInput(input, __getAdAccountRouting, { "headers": { "Accept": "application/json" } })
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
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"] };
|
|
31
|
+
function getAdSetsInsights(input) {
|
|
32
|
+
return new __Action({
|
|
33
|
+
systemId: "conn_mod_def::GKRjstPUYO8::hYOUhUt8QyOTIpenLf4zaQ",
|
|
34
|
+
method: "GET",
|
|
35
|
+
path: "/v25.0/{{adSetId}}/insights",
|
|
36
|
+
...__routeInput(input, __getAdSetsInsightsRouting, { "headers": { "Accept": "application/json" } })
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
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"] };
|
|
40
|
+
function createAdAccountAdCreative(input) {
|
|
41
|
+
return new __Action({
|
|
42
|
+
systemId: "conn_mod_def::GKRjs2B1X1c::CpfvED1SQQyLNqtRzjJQUA",
|
|
43
|
+
method: "POST",
|
|
44
|
+
path: "/act_{{adAccountId}}/adcreatives",
|
|
45
|
+
...__routeInput(input, __createAdAccountAdCreativeRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
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"] };
|
|
49
|
+
function createAdAdAccount(input) {
|
|
50
|
+
return new __Action({
|
|
51
|
+
systemId: "conn_mod_def::GKRjs-q-OtE::QyASq5pbQvWoPls3FG7D5w",
|
|
52
|
+
method: "POST",
|
|
53
|
+
path: "/v25.0/act_{{adAccountId}}/ads",
|
|
54
|
+
...__routeInput(input, __createAdAdAccountRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
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"] };
|
|
58
|
+
function listAdAccountsAdSets(input) {
|
|
59
|
+
return new __Action({
|
|
60
|
+
systemId: "conn_mod_def::GKRjtA75d28::X1WyjBOGRS-WJObKSRAgVQ",
|
|
61
|
+
method: "GET",
|
|
62
|
+
path: "/v25.0/act_{{adAccountId}}/adsets",
|
|
63
|
+
...__routeInput(input, __listAdAccountsAdSetsRouting, { "headers": { "Accept": "application/json" } })
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
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"] };
|
|
67
|
+
function createAdAccountsAdSet(input) {
|
|
68
|
+
return new __Action({
|
|
69
|
+
systemId: "conn_mod_def::GKRjtItg_Vg::1fC_0mNKRdW3CEGLZ6Y_uQ",
|
|
70
|
+
method: "POST",
|
|
71
|
+
path: "/v25.0/act_{{adAccountId}}/adsets",
|
|
72
|
+
...__routeInput(input, __createAdAccountsAdSetRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
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"] };
|
|
76
|
+
function createAdAccountVideo(input) {
|
|
77
|
+
return new __Action({
|
|
78
|
+
systemId: "conn_mod_def::GKRjtRsW_dY::-DzRZc5aRdCUjqK0XPw4fQ",
|
|
79
|
+
method: "POST",
|
|
80
|
+
path: "/act_{{adAccountId}}/advideos",
|
|
81
|
+
...__routeInput(input, __createAdAccountVideoRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
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"] };
|
|
85
|
+
function createAdAccountCampaign(input) {
|
|
86
|
+
return new __Action({
|
|
87
|
+
systemId: "conn_mod_def::GKRjtSKC8xo::Ksa89qY2RD2uKR7C1RsQ_w",
|
|
88
|
+
method: "POST",
|
|
89
|
+
path: "/v25.0/act_{{adAccountId}}/campaigns",
|
|
90
|
+
...__routeInput(input, __createAdAccountCampaignRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
var __getAdCampaignRouting = { "routes": [["campaignId", "path"], ["date_preset", "query"], ["fields", "query"], ["time_range", "query"]], "requiredParts": ["path"] };
|
|
94
|
+
function getAdCampaign(input) {
|
|
95
|
+
return new __Action({
|
|
96
|
+
systemId: "conn_mod_def::GKRjtv0Sd4I::goSRTv4IRBO7WEJKHcvXZA",
|
|
97
|
+
method: "GET",
|
|
98
|
+
path: "/{{campaignId}}",
|
|
99
|
+
...__routeInput(input, __getAdCampaignRouting, { "headers": { "Accept": "application/json" } })
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
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"] };
|
|
103
|
+
function createAdCampaignInsightsReportRun(input) {
|
|
104
|
+
return new __Action({
|
|
105
|
+
systemId: "conn_mod_def::GKRjuJuTIlM::xk1yq9W8Ta2bhFBW6u9vWQ",
|
|
106
|
+
method: "POST",
|
|
107
|
+
path: "/{{campaignId}}/insights",
|
|
108
|
+
...__routeInput(input, __createAdCampaignInsightsReportRunRouting, { "headers": { "Accept": "application/json" } })
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
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"] };
|
|
112
|
+
function getAdCreativesPreviews(input) {
|
|
113
|
+
return new __Action({
|
|
114
|
+
systemId: "conn_mod_def::GKRjutIWCc0::f9ASPZuXSWqsg5ZKdickYA",
|
|
115
|
+
method: "GET",
|
|
116
|
+
path: "/v25.0/{{creativeId}}/previews",
|
|
117
|
+
...__routeInput(input, __getAdCreativesPreviewsRouting, { "headers": { "Accept": "application/json" } })
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
var __listAdSetsAdsRouting = { "routes": [["adSetId", "path"], ["date_preset", "query"], ["effective_status", "query"], ["fields", "query"], ["summary", "query"], ["time_range", "query"], ["updated_since", "query"]], "requiredParts": ["path"] };
|
|
121
|
+
function listAdSetsAds(input) {
|
|
122
|
+
return new __Action({
|
|
123
|
+
systemId: "conn_mod_def::GKRju3p-mcw::kwrNYPGGSeOqYbp1yDs80g",
|
|
124
|
+
method: "GET",
|
|
125
|
+
path: "/v25.0/{{adSetId}}/ads",
|
|
126
|
+
...__routeInput(input, __listAdSetsAdsRouting, { "headers": { "Accept": "application/json" } })
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
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"] };
|
|
130
|
+
function getAdSetsInsights2(input) {
|
|
131
|
+
return new __Action({
|
|
132
|
+
systemId: "conn_mod_def::GKRju8WDVxI::GkVWvsgxTUqgP89JMDQRjw",
|
|
133
|
+
method: "GET",
|
|
134
|
+
path: "/v25.0/{{adSetId}}/insights",
|
|
135
|
+
...__routeInput(input, __getAdSetsInsights2Routing, { "headers": { "Accept": "application/json" } })
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
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"] };
|
|
139
|
+
function createCustomConversionAdAccount(input) {
|
|
140
|
+
return new __Action({
|
|
141
|
+
systemId: "conn_mod_def::GKRjvQqGTww::_ejg1UcmTcqogx8h8Zp2Ug",
|
|
142
|
+
method: "POST",
|
|
143
|
+
path: "/act_{{adAccountId}}/customconversions",
|
|
144
|
+
...__routeInput(input, __createCustomConversionAdAccountRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
var __createAdAccountAsyncAdRequestSetRouting = { "routes": [["ad_specs", "body"], ["name", "body"], ["notification_mode", "body"], ["notification_uri", "body"], ["adAccountId", "path"]], "requiredParts": ["body", "path"] };
|
|
148
|
+
function createAdAccountAsyncAdRequestSet(input) {
|
|
149
|
+
return new __Action({
|
|
150
|
+
systemId: "conn_mod_def::GKRjtRsz-rg::0f-GsL5QRla4GKdRdUHePA",
|
|
151
|
+
method: "POST",
|
|
152
|
+
path: "/act_{{adAccountId}}/asyncadrequestsets",
|
|
153
|
+
...__routeInput(input, __createAdAccountAsyncAdRequestSetRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
|
|
154
|
+
});
|
|
155
|
+
}
|
|
156
|
+
var __listAdAccountsCustomAudiencesRouting = { "routes": [["adAccountId", "path"], ["business_id", "query"], ["fetch_primary_audience", "query"], ["fields", "query"], ["filtering", "query"], ["pixel_id", "query"]], "requiredParts": ["path"] };
|
|
157
|
+
function listAdAccountsCustomAudiences(input) {
|
|
158
|
+
return new __Action({
|
|
159
|
+
systemId: "conn_mod_def::GKRjtd2eu5o::P2jlSHeVTN-fFa7ph8NLpg",
|
|
160
|
+
method: "GET",
|
|
161
|
+
path: "/v25.0/act_{{adAccountId}}/customaudiences",
|
|
162
|
+
...__routeInput(input, __listAdAccountsCustomAudiencesRouting, { "headers": { "Accept": "application/json" } })
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
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"] };
|
|
166
|
+
function getAdPreviewsAd(input) {
|
|
167
|
+
return new __Action({
|
|
168
|
+
systemId: "conn_mod_def::GKRjspcpp_w::Bs5S_EvBTEW5V2SpkgmVzw",
|
|
169
|
+
method: "GET",
|
|
170
|
+
path: "/v25.0/{{adId}}/previews",
|
|
171
|
+
...__routeInput(input, __getAdPreviewsAdRouting, { "headers": { "Accept": "application/json" } })
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
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"] };
|
|
175
|
+
function createCustomConversionAdAccount2(input) {
|
|
176
|
+
return new __Action({
|
|
177
|
+
systemId: "conn_mod_def::GKRjvQgiVCo::VI6x_cDtRgyxR9o2-OToVA",
|
|
178
|
+
method: "POST",
|
|
179
|
+
path: "/act_{{adAccountId}}/customconversions",
|
|
180
|
+
...__routeInput(input, __createCustomConversionAdAccount2Routing, { "headers": { "Accept": "application/json", "Content-Type": "multipart/form-data" } })
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
var __createAdAdAccount2Routing = { "routes": [["adAccountId", "path"], ["body", "body", null]], "requiredParts": ["path"] };
|
|
184
|
+
function createAdAdAccount2(input) {
|
|
185
|
+
return new __Action({
|
|
186
|
+
systemId: "conn_mod_def::GKRjsHq1qOU::sXbCtK7eS_SU7Y3pWkr0mQ",
|
|
187
|
+
method: "POST",
|
|
188
|
+
path: "/act_{{adAccountId}}/ads",
|
|
189
|
+
...__routeInput(input, __createAdAdAccount2Routing, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
|
|
190
|
+
});
|
|
191
|
+
}
|
|
192
|
+
var __getAdsPixelRouting = { "routes": [["adsPixelId", "path"]], "requiredParts": ["path"] };
|
|
193
|
+
function getAdsPixel(input) {
|
|
194
|
+
return new __Action({
|
|
195
|
+
systemId: "conn_mod_def::GKRjvIAkZY4::rFdGI0q2RyWD7RLuat8T7Q",
|
|
196
|
+
method: "GET",
|
|
197
|
+
path: "/v25.0/{{adsPixelId}}",
|
|
198
|
+
...__routeInput(input, __getAdsPixelRouting, { "headers": { "Accept": "application/json" } })
|
|
199
|
+
});
|
|
200
|
+
}
|
|
201
|
+
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"] };
|
|
202
|
+
function createAdCampaignAdAccount(input) {
|
|
203
|
+
return new __Action({
|
|
204
|
+
systemId: "conn_mod_def::GKRjtu7AsjY::2x_M5XeVSpOvswvbLq67YA",
|
|
205
|
+
method: "POST",
|
|
206
|
+
path: "/act_{{adAccountId}}/campaigns",
|
|
207
|
+
...__routeInput(input, __createAdCampaignAdAccountRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
|
|
208
|
+
});
|
|
209
|
+
}
|
|
210
|
+
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"] };
|
|
211
|
+
function createAdAccountInsightsReportRun(input) {
|
|
212
|
+
return new __Action({
|
|
213
|
+
systemId: "conn_mod_def::GKRjtj77d1E::y-KLC2foSmmccNlEpuDwHA",
|
|
214
|
+
method: "POST",
|
|
215
|
+
path: "/act_{{adAccountId}}/insights",
|
|
216
|
+
...__routeInput(input, __createAdAccountInsightsReportRunRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
|
|
217
|
+
});
|
|
218
|
+
}
|
|
219
|
+
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"] };
|
|
220
|
+
function createAdInsightsReportRunAd(input) {
|
|
221
|
+
return new __Action({
|
|
222
|
+
systemId: "conn_mod_def::GKRjsRejG3o::D8ohE6Z1QgmMUbk3eqigFg",
|
|
223
|
+
method: "POST",
|
|
224
|
+
path: "/{{adId}}/insights",
|
|
225
|
+
...__routeInput(input, __createAdInsightsReportRunAdRouting, { "headers": { "Accept": "application/json" } })
|
|
226
|
+
});
|
|
227
|
+
}
|
|
228
|
+
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"] };
|
|
229
|
+
function updateAdCampaign(input) {
|
|
230
|
+
return new __Action({
|
|
231
|
+
systemId: "conn_mod_def::GKRjtvMjGD0::emHzvzuWRJSeGqJel4Qt2w",
|
|
232
|
+
method: "POST",
|
|
233
|
+
path: "/{{campaignId}}",
|
|
234
|
+
...__routeInput(input, __updateAdCampaignRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
|
|
235
|
+
});
|
|
236
|
+
}
|
|
237
|
+
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"] };
|
|
238
|
+
function createAdSetInsightsReportRun(input) {
|
|
239
|
+
return new __Action({
|
|
240
|
+
systemId: "conn_mod_def::GKRju_4lHKw::Bo4u94RxTJ2-9RF6xCLS1g",
|
|
241
|
+
method: "POST",
|
|
242
|
+
path: "/{{adSetId}}/insights",
|
|
243
|
+
...__routeInput(input, __createAdSetInsightsReportRunRouting, { "headers": { "Accept": "application/json" } })
|
|
244
|
+
});
|
|
245
|
+
}
|
|
246
|
+
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"] };
|
|
247
|
+
function createAdSetAdAccount(input) {
|
|
248
|
+
return new __Action({
|
|
249
|
+
systemId: "conn_mod_def::GKRjupKqPAc::rBMPuxbbSkqYMveJO8uIlg",
|
|
250
|
+
method: "POST",
|
|
251
|
+
path: "/act_{{adAccountId}}/adsets",
|
|
252
|
+
...__routeInput(input, __createAdSetAdAccountRouting, { "headers": { "Accept": "application/json", "Content-Type": "multipart/form-data" } })
|
|
253
|
+
});
|
|
254
|
+
}
|
|
255
|
+
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"] };
|
|
256
|
+
function getAdSetsCampaignInsights(input) {
|
|
257
|
+
return new __Action({
|
|
258
|
+
systemId: "conn_mod_def::GKRjufY5WX4::u1yZrxTiQjOW9sErp3ESaA",
|
|
259
|
+
method: "GET",
|
|
260
|
+
path: "/v25.0/{{adSetId}}/insights",
|
|
261
|
+
...__routeInput(input, __getAdSetsCampaignInsightsRouting, { "headers": { "Accept": "application/json" } })
|
|
262
|
+
});
|
|
263
|
+
}
|
|
264
|
+
var __deleteAdAccountAdImageRouting = { "routes": [["adAccountId", "path"], ["query", "query", null]], "requiredParts": ["path"] };
|
|
265
|
+
function deleteAdAccountAdImage(input) {
|
|
266
|
+
return new __Action({
|
|
267
|
+
systemId: "conn_mod_def::GKRjs2bpTNU::itP27CpzTQau4wa0w07hvw",
|
|
268
|
+
method: "DELETE",
|
|
269
|
+
path: "/act_{{adAccountId}}/adimages",
|
|
270
|
+
...__routeInput(input, __deleteAdAccountAdImageRouting, { "headers": { "Accept": "application/json" } })
|
|
271
|
+
});
|
|
272
|
+
}
|
|
273
|
+
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"] };
|
|
274
|
+
function updateAdAccount(input) {
|
|
275
|
+
return new __Action({
|
|
276
|
+
systemId: "conn_mod_def::GKRjs1tp3Dg::8qTbyc0fT4-Fz4eqoL5E8Q",
|
|
277
|
+
method: "POST",
|
|
278
|
+
path: "/act_{{adAccountId}}",
|
|
279
|
+
...__routeInput(input, __updateAdAccountRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
|
|
280
|
+
});
|
|
281
|
+
}
|
|
282
|
+
var __updateAdCreativeRouting = { "routes": [["account_id", "body"], ["adlabels", "body"], ["name", "body"], ["status", "body"], ["adCreativeId", "path"]], "requiredParts": ["path"] };
|
|
283
|
+
function updateAdCreative(input) {
|
|
284
|
+
return new __Action({
|
|
285
|
+
systemId: "conn_mod_def::GKRjunroeyA::ENVBk-w5RZmKS6aycfZOng",
|
|
286
|
+
method: "POST",
|
|
287
|
+
path: "/{{adCreativeId}}",
|
|
288
|
+
...__routeInput(input, __updateAdCreativeRouting, { "headers": { "Accept": "application/json", "Content-Type": "multipart/form-data" } })
|
|
289
|
+
});
|
|
290
|
+
}
|
|
291
|
+
var __deleteAdAccountCampaignsRouting = { "routes": [["adAccountId", "path"], ["before_date", "query"], ["delete_strategy", "query"], ["object_count", "query"]], "requiredParts": ["path", "query"] };
|
|
292
|
+
function deleteAdAccountCampaigns(input) {
|
|
293
|
+
return new __Action({
|
|
294
|
+
systemId: "conn_mod_def::GKRjtbi-fGc::Oh02yHYpQmyIrdrQ_bv6ng",
|
|
295
|
+
method: "DELETE",
|
|
296
|
+
path: "/act_{{adAccountId}}/campaigns",
|
|
297
|
+
...__routeInput(input, __deleteAdAccountCampaignsRouting, { "headers": { "Accept": "application/json" } })
|
|
298
|
+
});
|
|
299
|
+
}
|
|
300
|
+
var __createAdAccountAsyncBatchRequestRouting = { "routes": [["adbatch", "body"], ["name", "body"], ["adAccountId", "path"]], "requiredParts": ["body", "path"] };
|
|
301
|
+
function createAdAccountAsyncBatchRequest(input) {
|
|
302
|
+
return new __Action({
|
|
303
|
+
systemId: "conn_mod_def::GKRjtRmTucg::iJk4umV3SCuAf0gcMQQ_Ag",
|
|
304
|
+
method: "POST",
|
|
305
|
+
path: "/act_{{adAccountId}}/async_batch_requests",
|
|
306
|
+
...__routeInput(input, __createAdAccountAsyncBatchRequestRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
|
|
307
|
+
});
|
|
308
|
+
}
|
|
309
|
+
var __deleteAdAccountAssociationFromAdsPixelOrCustomAudienceRouting = { "routes": [["adsPixelId", "path"], ["account_id", "query"], ["business", "query"]], "requiredParts": ["path", "query"] };
|
|
310
|
+
function deleteAdAccountAssociationFromAdsPixelOrCustomAudience(input) {
|
|
311
|
+
return new __Action({
|
|
312
|
+
systemId: "conn_mod_def::GKRjsntoIC8::aypDqcQ-QZGy7rEoykrF4Q",
|
|
313
|
+
method: "DELETE",
|
|
314
|
+
path: "/{{adsPixelId}}/shared_accounts",
|
|
315
|
+
...__routeInput(input, __deleteAdAccountAssociationFromAdsPixelOrCustomAudienceRouting, { "headers": { "Accept": "application/json" } })
|
|
316
|
+
});
|
|
317
|
+
}
|
|
318
|
+
var __listAdAccountsAdImagesRouting = { "routes": [["adAccountId", "path"], ["biz_tag_id", "query"], ["business_id", "query"], ["hashes", "query"], ["minheight", "query"], ["minwidth", "query"], ["name", "query"], ["summary", "query"]], "requiredParts": ["path"] };
|
|
319
|
+
function listAdAccountsAdImages(input) {
|
|
320
|
+
return new __Action({
|
|
321
|
+
systemId: "conn_mod_def::GKRjtBkFq7c::Z8-kZCSWS_OteX-lCJEP3w",
|
|
322
|
+
method: "GET",
|
|
323
|
+
path: "/v25.0/{{adAccountId}}/adimages",
|
|
324
|
+
...__routeInput(input, __listAdAccountsAdImagesRouting, { "headers": { "Accept": "application/json" } })
|
|
325
|
+
});
|
|
326
|
+
}
|
|
327
|
+
var __listAdAccountsAdsRouting = { "routes": [["adAccountId", "path"], ["date_preset", "query"], ["effective_status", "query"], ["summary", "query"], ["time_range", "query"], ["updated_since", "query"]], "requiredParts": ["path"] };
|
|
328
|
+
function listAdAccountsAds(input) {
|
|
329
|
+
return new __Action({
|
|
330
|
+
systemId: "conn_mod_def::GKRjtAx7Qu0::hM4yPa5RQ6-A3Y_WvPq5mQ",
|
|
331
|
+
method: "GET",
|
|
332
|
+
path: "/v25.0/act_{{adAccountId}}/ads",
|
|
333
|
+
...__routeInput(input, __listAdAccountsAdsRouting, { "headers": { "Accept": "application/json" } })
|
|
334
|
+
});
|
|
335
|
+
}
|
|
336
|
+
var __getAdSetsActivitiesRouting = { "routes": [["adSetId", "path"], ["after", "query"], ["business_id", "query"], ["category", "query"], ["limit", "query"], ["since", "query"], ["uid", "query"], ["until", "query"]], "requiredParts": ["path"] };
|
|
337
|
+
function getAdSetsActivities(input) {
|
|
338
|
+
return new __Action({
|
|
339
|
+
systemId: "conn_mod_def::GKRju4Se78k::WZiUH735SMiBpUQlCzxjsw",
|
|
340
|
+
method: "GET",
|
|
341
|
+
path: "/{{adSetId}}/activities",
|
|
342
|
+
...__routeInput(input, __getAdSetsActivitiesRouting, { "headers": { "Accept": "application/json" } })
|
|
343
|
+
});
|
|
344
|
+
}
|
|
345
|
+
var __getAdAccountsCampaignsRouting = { "routes": [["adAccountId", "path"], ["date_preset", "query"], ["effective_status", "query"], ["fields", "query"], ["is_completed", "query"], ["summary", "query"], ["time_range", "query"]], "requiredParts": ["path"] };
|
|
346
|
+
function getAdAccountsCampaigns(input) {
|
|
347
|
+
return new __Action({
|
|
348
|
+
systemId: "conn_mod_def::GKRjtkpaKrA::AfnwDGdzTOK2XVw71lDpMw",
|
|
349
|
+
method: "GET",
|
|
350
|
+
path: "/v25.0/act_{{adAccountId}}/campaigns",
|
|
351
|
+
...__routeInput(input, __getAdAccountsCampaignsRouting, { "headers": { "Accept": "application/json" } })
|
|
352
|
+
});
|
|
353
|
+
}
|
|
354
|
+
var __getAdSetRouting = { "routes": [["adSetId", "path"], ["date_format", "query"], ["date_preset", "query"], ["fields", "query"], ["time_range", "query"]], "requiredParts": ["path"] };
|
|
355
|
+
function getAdSet(input) {
|
|
356
|
+
return new __Action({
|
|
357
|
+
systemId: "conn_mod_def::GKRjuq3L49g::rgoSrAOjRQmqi6dBQo4F-Q",
|
|
358
|
+
method: "GET",
|
|
359
|
+
path: "/v25.0/{{adSetId}}",
|
|
360
|
+
...__routeInput(input, __getAdSetRouting, { "headers": { "Accept": "application/json" } })
|
|
361
|
+
});
|
|
362
|
+
}
|
|
363
|
+
var __getAdCreativeRouting = { "routes": [["creativeId", "path"], ["fields", "query"], ["thumbnail_height", "query"], ["thumbnail_width", "query"]], "requiredParts": ["path"] };
|
|
364
|
+
function getAdCreative(input) {
|
|
365
|
+
return new __Action({
|
|
366
|
+
systemId: "conn_mod_def::GKRjuDxrabk::srCvdRNPS72UWTkJPgSFiQ",
|
|
367
|
+
method: "GET",
|
|
368
|
+
path: "/v25.0/{{creativeId}}",
|
|
369
|
+
...__routeInput(input, __getAdCreativeRouting, { "headers": { "Accept": "application/json" } })
|
|
370
|
+
});
|
|
371
|
+
}
|
|
372
|
+
var __deleteCustomConversionRouting = { "routes": [["customConversionId", "path"]], "requiredParts": ["path"] };
|
|
373
|
+
function deleteCustomConversion(input) {
|
|
374
|
+
return new __Action({
|
|
375
|
+
systemId: "conn_mod_def::GKRjvQG5lsA::YxLOvTr9RmWthje4bF49pw",
|
|
376
|
+
method: "DELETE",
|
|
377
|
+
path: "/{{customConversionId}}",
|
|
378
|
+
...__routeInput(input, __deleteCustomConversionRouting, { "headers": { "Accept": "application/json" } })
|
|
379
|
+
});
|
|
380
|
+
}
|
|
381
|
+
var __listAdCampaignsAdsRouting = { "routes": [["adCampaignId", "path"], ["date_preset", "query"], ["effective_status", "query"], ["fields", "query"], ["summary", "query"], ["time_range", "query"], ["updated_since", "query"]], "requiredParts": ["path"] };
|
|
382
|
+
function listAdCampaignsAds(input) {
|
|
383
|
+
return new __Action({
|
|
384
|
+
systemId: "conn_mod_def::GKRjuDp3WdU::tXTjMvlgTRymYyXUZnMZiQ",
|
|
385
|
+
method: "GET",
|
|
386
|
+
path: "/{{adCampaignId}}/ads",
|
|
387
|
+
...__routeInput(input, __listAdCampaignsAdsRouting, { "headers": { "Accept": "application/json" } })
|
|
388
|
+
});
|
|
389
|
+
}
|
|
390
|
+
var __getAdsPixel2Routing = { "routes": [["pixelId", "path"], ["fields", "query"], ["summary", "query"]], "requiredParts": ["path"] };
|
|
391
|
+
function getAdsPixel2(input) {
|
|
392
|
+
return new __Action({
|
|
393
|
+
systemId: "conn_mod_def::GKRjvIEbLLc::SssOjuZASUeY8wQrHHnceA",
|
|
394
|
+
method: "GET",
|
|
395
|
+
path: "/v25.0/{{pixelId}}",
|
|
396
|
+
...__routeInput(input, __getAdsPixel2Routing, { "headers": { "Accept": "application/json" } })
|
|
397
|
+
});
|
|
398
|
+
}
|
|
399
|
+
var __listAdAccountsCustomConversions2Routing = { "routes": [["adAccountId", "path"]], "requiredParts": ["path"] };
|
|
400
|
+
function listAdAccountsCustomConversions2(input) {
|
|
401
|
+
return new __Action({
|
|
402
|
+
systemId: "conn_mod_def::GKRjvaL-8-o::ybuu5eeXS1qqV6JQUBgReQ",
|
|
403
|
+
method: "GET",
|
|
404
|
+
path: "/v25.0/{{adAccountId}}/customconversions",
|
|
405
|
+
...__routeInput(input, __listAdAccountsCustomConversions2Routing, { "headers": { "Accept": "application/json" } })
|
|
406
|
+
});
|
|
407
|
+
}
|
|
408
|
+
var __createAdAccountBusinessRouting = { "routes": [["adaccount_id", "body"], ["businessId", "path"]], "requiredParts": ["body", "path"] };
|
|
409
|
+
function createAdAccountBusiness(input) {
|
|
410
|
+
return new __Action({
|
|
411
|
+
systemId: "conn_mod_def::GKRjslcQ770::Nl161vuAT76pzA6Sa0c0rg",
|
|
412
|
+
method: "POST",
|
|
413
|
+
path: "/{{businessId}}/adaccount",
|
|
414
|
+
...__routeInput(input, __createAdAccountBusinessRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/x-www-form-urlencoded" } })
|
|
415
|
+
});
|
|
416
|
+
}
|
|
417
|
+
var __createAdAccountsAdsPixelRouting = { "routes": [["name", "body"], ["adAccountId", "path"]], "requiredParts": ["body", "path"] };
|
|
418
|
+
function createAdAccountsAdsPixel(input) {
|
|
419
|
+
return new __Action({
|
|
420
|
+
systemId: "conn_mod_def::GKRjvInn3Dg::EKsyDdiRR9CcQBeT1gkzUA",
|
|
421
|
+
method: "POST",
|
|
422
|
+
path: "/act_{{adAccountId}}/adspixels",
|
|
423
|
+
...__routeInput(input, __createAdAccountsAdsPixelRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
|
|
424
|
+
});
|
|
425
|
+
}
|
|
426
|
+
var __updateCustomConversionRouting = { "routes": [["default_conversion_value", "body"], ["description", "body"], ["name", "body"], ["customConversionId", "path"]], "requiredParts": ["body", "path"] };
|
|
427
|
+
function updateCustomConversion(input) {
|
|
428
|
+
return new __Action({
|
|
429
|
+
systemId: "conn_mod_def::GKRjvSXenFk::ZEpHg55QQa2ooVwfPxc0Pw",
|
|
430
|
+
method: "POST",
|
|
431
|
+
path: "/{{customConversionId}}",
|
|
432
|
+
...__routeInput(input, __updateCustomConversionRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
|
|
433
|
+
});
|
|
434
|
+
}
|
|
435
|
+
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"] };
|
|
436
|
+
function updateAdsPixel(input) {
|
|
437
|
+
return new __Action({
|
|
438
|
+
systemId: "conn_mod_def::GKRjvIXIzi8::g0cgyEjmT-ucKBm1N4pVaQ",
|
|
439
|
+
method: "POST",
|
|
440
|
+
path: "/{{adsPixelId}}",
|
|
441
|
+
...__routeInput(input, __updateAdsPixelRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
|
|
442
|
+
});
|
|
443
|
+
}
|
|
444
|
+
var __createAdAccountAdImageRouting = { "routes": [["bytes", "body"], ["copy_from", "body"], ["adAccountId", "path"]], "requiredParts": ["body", "path"] };
|
|
445
|
+
function createAdAccountAdImage(input) {
|
|
446
|
+
return new __Action({
|
|
447
|
+
systemId: "conn_mod_def::GKRjs2LTpnw::BTpA7mzJSSiZ1R0ETSZFLg",
|
|
448
|
+
method: "POST",
|
|
449
|
+
path: "/act_{{adAccountId}}/adimages",
|
|
450
|
+
...__routeInput(input, __createAdAccountAdImageRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
|
|
451
|
+
});
|
|
452
|
+
}
|
|
453
|
+
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"] };
|
|
454
|
+
function getAdSetInsights(input) {
|
|
455
|
+
return new __Action({
|
|
456
|
+
systemId: "conn_mod_def::GKRjtmKNZ94::lw4-ZiXBROyCwJH0TM_uFg",
|
|
457
|
+
method: "GET",
|
|
458
|
+
path: "/v25.0/{{adSetId}}/insights",
|
|
459
|
+
...__routeInput(input, __getAdSetInsightsRouting, { "headers": { "Accept": "application/json" } })
|
|
460
|
+
});
|
|
461
|
+
}
|
|
462
|
+
var __createAdAccountsAdsPixel2Routing = { "routes": [["name", "body"], ["adAccountId", "path"]], "requiredParts": ["body", "path"] };
|
|
463
|
+
function createAdAccountsAdsPixel2(input) {
|
|
464
|
+
return new __Action({
|
|
465
|
+
systemId: "conn_mod_def::GKRjvH6akaY::iGDeWH4UR62NLHCPo-fneA",
|
|
466
|
+
method: "POST",
|
|
467
|
+
path: "/act_{{adAccountId}}/adspixels",
|
|
468
|
+
...__routeInput(input, __createAdAccountsAdsPixel2Routing, { "headers": { "Accept": "application/json", "Content-Type": "application/x-www-form-urlencoded" } })
|
|
469
|
+
});
|
|
470
|
+
}
|
|
471
|
+
var __getAdIdRouting = { "routes": [["adId", "path"], ["date_preset", "query"], ["fields", "query"], ["review_feedback_breakdown", "query"], ["time_range", "query"]], "requiredParts": ["path"] };
|
|
472
|
+
function getAdId(input) {
|
|
473
|
+
return new __Action({
|
|
474
|
+
systemId: "conn_mod_def::GKRjsbyRDLw::X8_Xh1baRueYUh1TK5Lh_w",
|
|
475
|
+
method: "GET",
|
|
476
|
+
path: "/v25.0/{{adId}}",
|
|
477
|
+
...__routeInput(input, __getAdIdRouting, { "headers": { "Accept": "application/json" } })
|
|
478
|
+
});
|
|
479
|
+
}
|
|
480
|
+
var __deleteAdCreativeRouting = { "routes": [["adCreativeId", "path"]], "requiredParts": ["path"] };
|
|
481
|
+
function deleteAdCreative(input) {
|
|
482
|
+
return new __Action({
|
|
483
|
+
systemId: "conn_mod_def::GKRjuBDd4pE::CeiA0j6CRKKfYjROMcfv2A",
|
|
484
|
+
method: "DELETE",
|
|
485
|
+
path: "/{{adCreativeId}}",
|
|
486
|
+
...__routeInput(input, __deleteAdCreativeRouting, { "headers": { "Accept": "application/json" } })
|
|
487
|
+
});
|
|
488
|
+
}
|
|
489
|
+
var __listAdsAdCreativesRouting = { "routes": [["adId", "path"]], "requiredParts": ["path"] };
|
|
490
|
+
function listAdsAdCreatives(input) {
|
|
491
|
+
return new __Action({
|
|
492
|
+
systemId: "conn_mod_def::GKRjsHT_cd0::Rwed1Lp0SgClVcba7XB7vw",
|
|
493
|
+
method: "GET",
|
|
494
|
+
path: "/v25.0/{{adId}}/adcreatives",
|
|
495
|
+
...__routeInput(input, __listAdsAdCreativesRouting, { "headers": { "Accept": "application/json" } })
|
|
496
|
+
});
|
|
497
|
+
}
|
|
498
|
+
var __deleteAdCampaignRouting = { "routes": [["campaignId", "path"]], "requiredParts": ["path"] };
|
|
499
|
+
function deleteAdCampaign(input) {
|
|
500
|
+
return new __Action({
|
|
501
|
+
systemId: "conn_mod_def::GKRjtwNcMdY::MMQ-eTX2TGml8PKW11VF9w",
|
|
502
|
+
method: "DELETE",
|
|
503
|
+
path: "/{{campaignId}}",
|
|
504
|
+
...__routeInput(input, __deleteAdCampaignRouting, { "headers": { "Accept": "application/json" } })
|
|
505
|
+
});
|
|
506
|
+
}
|
|
507
|
+
var __deleteAdRouting = { "routes": [["adId", "path"]], "requiredParts": ["path"] };
|
|
508
|
+
function deleteAd(input) {
|
|
509
|
+
return new __Action({
|
|
510
|
+
systemId: "conn_mod_def::GKRjsGOAQxI::xK2s6ytBQnybqjvoU0oY0Q",
|
|
511
|
+
method: "DELETE",
|
|
512
|
+
path: "/{{adId}}",
|
|
513
|
+
...__routeInput(input, __deleteAdRouting, { "headers": { "Accept": "application/json" } })
|
|
514
|
+
});
|
|
515
|
+
}
|
|
516
|
+
var __listAdAccountsAdCreativesRouting = { "routes": [["adAccountId", "path"], ["fields", "query"], ["summary", "query"]], "requiredParts": ["path"] };
|
|
517
|
+
function listAdAccountsAdCreatives(input) {
|
|
518
|
+
return new __Action({
|
|
519
|
+
systemId: "conn_mod_def::GKRjs2dGZiU::gbNWM1y4T-OxgK3Xz2pV_A",
|
|
520
|
+
method: "GET",
|
|
521
|
+
path: "/v25.0/act_{{adAccountId}}/adcreatives",
|
|
522
|
+
...__routeInput(input, __listAdAccountsAdCreativesRouting, { "headers": { "Accept": "application/json" } })
|
|
523
|
+
});
|
|
524
|
+
}
|
|
525
|
+
var __getAdAccountUserRouting = { "routes": [["adAccountId", "path"], ["fields", "query"]], "requiredParts": ["path"] };
|
|
526
|
+
function getAdAccountUser(input) {
|
|
527
|
+
return new __Action({
|
|
528
|
+
systemId: "conn_mod_def::GKRjt5JPobs::HYKScLRbSb6lDhnaXRnbKg",
|
|
529
|
+
method: "GET",
|
|
530
|
+
path: "/v25.0/act_{{adAccountId}}",
|
|
531
|
+
...__routeInput(input, __getAdAccountUserRouting, { "headers": { "Accept": "application/json" } })
|
|
532
|
+
});
|
|
533
|
+
}
|
|
534
|
+
var __deleteAdAccountsAdVideosRouting = { "routes": [["adAccountId", "path"], ["video_id", "query"]], "requiredParts": ["path", "query"] };
|
|
535
|
+
function deleteAdAccountsAdVideos(input) {
|
|
536
|
+
return new __Action({
|
|
537
|
+
systemId: "conn_mod_def::GKRjtR4GH6g::pKCdYT-RRby6p28vf3haGw",
|
|
538
|
+
method: "DELETE",
|
|
539
|
+
path: "/act_{{adAccountId}}/advideos",
|
|
540
|
+
...__routeInput(input, __deleteAdAccountsAdVideosRouting, { "headers": { "Accept": "application/json" } })
|
|
541
|
+
});
|
|
542
|
+
}
|
|
543
|
+
var __getAdSetsAdCreativesRouting = { "routes": [["adSetId", "path"]], "requiredParts": ["path"] };
|
|
544
|
+
function getAdSetsAdCreatives(input) {
|
|
545
|
+
return new __Action({
|
|
546
|
+
systemId: "conn_mod_def::GKRju2FS8Yo::IRDpKUCiTTaIU9qfKoKsXw",
|
|
547
|
+
method: "GET",
|
|
548
|
+
path: "/v25.0/{{adSetId}}/adcreatives",
|
|
549
|
+
...__routeInput(input, __getAdSetsAdCreativesRouting, { "headers": { "Accept": "application/json" } })
|
|
550
|
+
});
|
|
551
|
+
}
|
|
552
|
+
export {
|
|
553
|
+
createAdAccountAdCreative,
|
|
554
|
+
createAdAccountAdImage,
|
|
555
|
+
createAdAccountAsyncAdRequestSet,
|
|
556
|
+
createAdAccountAsyncBatchRequest,
|
|
557
|
+
createAdAccountBusiness,
|
|
558
|
+
createAdAccountCampaign,
|
|
559
|
+
createAdAccountInsightsReportRun,
|
|
560
|
+
createAdAccountVideo,
|
|
561
|
+
createAdAccountsAdSet,
|
|
562
|
+
createAdAccountsAdsPixel,
|
|
563
|
+
createAdAccountsAdsPixel2,
|
|
564
|
+
createAdAdAccount,
|
|
565
|
+
createAdAdAccount2,
|
|
566
|
+
createAdCampaignAdAccount,
|
|
567
|
+
createAdCampaignInsightsReportRun,
|
|
568
|
+
createAdInsightsReportRunAd,
|
|
569
|
+
createAdSetAdAccount,
|
|
570
|
+
createAdSetInsightsReportRun,
|
|
571
|
+
createCustomConversionAdAccount,
|
|
572
|
+
createCustomConversionAdAccount2,
|
|
573
|
+
deleteAd,
|
|
574
|
+
deleteAdAccountAdImage,
|
|
575
|
+
deleteAdAccountAssociationFromAdsPixelOrCustomAudience,
|
|
576
|
+
deleteAdAccountCampaigns,
|
|
577
|
+
deleteAdAccountsAdVideos,
|
|
578
|
+
deleteAdCampaign,
|
|
579
|
+
deleteAdCreative,
|
|
580
|
+
deleteAdSet,
|
|
581
|
+
deleteCustomConversion,
|
|
582
|
+
getAdAccount,
|
|
583
|
+
getAdAccountUser,
|
|
584
|
+
getAdAccountsCampaigns,
|
|
585
|
+
getAdCampaign,
|
|
586
|
+
getAdCreative,
|
|
587
|
+
getAdCreativesPreviews,
|
|
588
|
+
getAdId,
|
|
589
|
+
getAdPreviewsAd,
|
|
590
|
+
getAdSet,
|
|
591
|
+
getAdSetInsights,
|
|
592
|
+
getAdSetsActivities,
|
|
593
|
+
getAdSetsAdCreatives,
|
|
594
|
+
getAdSetsCampaignInsights,
|
|
595
|
+
getAdSetsInsights,
|
|
596
|
+
getAdSetsInsights2,
|
|
597
|
+
getAdsPixel,
|
|
598
|
+
getAdsPixel2,
|
|
599
|
+
listAdAccountsAdCreatives,
|
|
600
|
+
listAdAccountsAdImages,
|
|
601
|
+
listAdAccountsAdSets,
|
|
602
|
+
listAdAccountsAds,
|
|
603
|
+
listAdAccountsCustomAudiences,
|
|
604
|
+
listAdAccountsCustomConversions,
|
|
605
|
+
listAdAccountsCustomConversions2,
|
|
606
|
+
listAdCampaignsAds,
|
|
607
|
+
listAdSetsAds,
|
|
608
|
+
listAdsAdCreatives,
|
|
609
|
+
updateAdAccount,
|
|
610
|
+
updateAdCampaign,
|
|
611
|
+
updateAdCreative,
|
|
612
|
+
updateAdsPixel,
|
|
613
|
+
updateCustomConversion
|
|
614
|
+
};
|