/
SDKCodegen.json
183 lines (183 loc) · 5.96 KB
/
SDKCodegen.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
{
"spec_overriding": {
"Business": {
"$.apis[?(@.method=='POST' && @.endpoint=='adaccount')]": {
"return": "AdAccount"
},
"$.fields[?(@.name=='payment_account_id')]": {
"not_visible": true
}
},
"LeadgenForm": {
"$.fields[?(@.name=='tracking_parameters')]": {
"keyvalue": true
}
},
"AdAccount": {
"$.apis[?(@.method=='POST' && @.endpoint=='insights')]": {
"return": "AdReportRun"
},
"$.apis[?(@.method=='POST' && @.endpoint=='asyncadrequestsets')]": {
"return": "AdAsyncRequestSet"
},
"$.apis[?(@.method=='POST' && @.endpoint=='advideos')].params[?(@.name=='video_file_chunk')]": {
"is_file_param": true
},
"$.apis[?(@.method=='POST' && @.endpoint=='customconversions')]": {
"return": "CustomConversion"
},
"$.apis[?(@.method=='POST' && @.endpoint=='product_audiences')]": {
"return": "CustomAudience"
},
"$.apis[?(@.method=='POST' && @.endpoint=='customaudiences')]": {
"preferred_creation_endpoint": true
},
"$.apis[?(@.method=='POST' && @.endpoint=='adspixels')]": {
"preferred_creation_endpoint": true
},
"$.apis[?(@.method=='POST' && @.endpoint=='campaigns')]": {
"preferred_creation_endpoint": true
},
"$": {
"exclude_creation_endpoint": true
},
"$.apis[?(@.method=='POST' && @.endpoint=='ads')]": {
"allow_file_upload": true
},
"$.fields[?(@.name=='account_id')]": {
"context": "true_ad_account_id"
},
"$.fields[?(@.name=='can_create_brand_lift_study')]": {
"not_visible": true
},
"$.apis[?(@.method=='POST' && @.endpoint=='adimages')]": {
"return": "AdImage",
"allow_file_upload": true,
"allow_file_param": true
},
"$.apis[?(@.method=='POST' && @.endpoint=='advideos')]": {
"allow_file_upload": true,
"use_graph_video_endpoint": true
},
"$.apis[?(@.method=='POST' && @.endpoint=='advideos')]['params'][?(@.name=='source')]": {
"is_file_param": true
}
},
"AdAccountDeliveryEstimate": {
"$.fields[?(@.name=='targeting_optimization_types')]": {
"targeting_optimization_types": true
}
},
"AdSet": {
"$.apis[?(@.method=='POST' && @.endpoint=='insights')]": {
"return": "AdReportRun"
},
"$.fields[?(@.name=='targeting_optimization_types')]": {
"targeting_optimization_types": true
}
},
"Campaign": {
"$.apis[?(@.method=='POST' && @.endpoint=='insights')]": {
"return": "AdReportRun"
}
},
"AdCampaignDeliveryEstimate": {
"$.fields[?(@.name=='targeting_optimization_types')]": {
"targeting_optimization_types": true
}
},
"Ad": {
"$.apis[?(@.method=='POST' && @.endpoint=='insights')]": {
"return": "AdReportRun"
}
},
"AdCreative": {
"$.apis[?(@.method=='GET' && @.endpoint=='previews')].params[?(@.name=='product_item_ids')]": {
"type": "list<string>"
}
},
"ProductFeed": {
"$.apis[?(@.method=='POST' && @.endpoint=='uploads')]": {
"return": "ProductFeedUpload"
}
},
"AdImage": {
"$.fields[?(@.name=='id')]": {
"type": "string"
}
},
"CustomAudience": {
"$.apis[?(@.method=='GET' && @.endpoint=='adaccounts')]": {
"return": "AdAccount"
}
},
"ProductCatalog": {
"$.apis[?(@.method=='POST' && @.endpoint=='products')]": {
"preferred_creation_endpoint": true
}
},
"Targeting": {
"$.fields[?(@.name=='alternate_auto_targeting_option')]": {
"not_visible": true
}
}
},
"flags": {
"AdAccount": ["python_use_mixin", "has_ad_label"],
"AdImage": ["python_use_mixin"],
"CustomAudience": ["python_use_mixin", "ruby_have_helpers"],
"ReachFrequencyPrediction": ["python_use_mixin"],
"ProductCatalog": ["python_use_mixin"],
"AdsInsights": ["python_use_mixin"],
"Campaign": ["has_ad_label", "has_ad_label:php", "archivable", "validate_only"],
"AdSet": ["has_ad_label", "has_ad_label:php", "archivable", "can_redownload", "validate_only"],
"Ad": ["has_ad_label", "has_ad_label:php", "archivable", "can_redownload"],
"AdCreative": ["has_ad_label", "has_ad_label:php"],
"Business": ["python_use_mixin"],
"AdAccountUser": ["python_use_mixin"],
"AdReportRun": ["python_use_mixin"],
"AdPreview": ["python_use_mixin"]
},
"read_endpoints": {
"Ad": "ads",
"AdAccount": "adaccounts",
"OffsitePixel": "offsitepixels",
"AdCreative": "adcreatives",
"AdImage": "adimages",
"AdLabel": "adlabels",
"AdPlacePageSet": "ad_place_page_sets",
"AdPreview": "previews",
"AdSet": "adsets",
"AdsPixelStatsResult": "stats",
"BroadTargetingCategories": "broadtargetingcategories",
"Campaign": "campaigns",
"ClickTrackingTag": "trackingtag",
"ConnectionObject": "connectionobjects",
"CustomAudience": "customaudiences",
"CustomConversion": "customconversions",
"AdsInsights": "insights",
"AdKeywordStats": "keywordstats",
"LeadgenForm": "leadgen_forms",
"Lead": "leads",
"LookalikeAudience": "customaudiences",
"MinimumBudget": "minimum_budgets",
"Page": "accounts",
"PartnerCategory": "partnercategories",
"ProductItem": "products",
"ProductAudience": "product_audiences",
"ProductCatalog": "product_catalogs",
"ExternalEventSource": "external_event_sources",
"ProductFeed": "product_feeds",
"ProductFeedUpload": "uploads",
"ProductFeedUploadError": "errors",
"ProductGroup": "product_groups",
"ProductSet": "product_sets",
"RateCard": "ratecard",
"ReachEstimate": "reachestimate",
"ReachFrequencyPrediction": "reachfrequencypredictions",
"TargetingSentenceLine": "targetingsentencelines",
"Transaction": "transactions",
"VideoThumbnail": "thumbnails",
"AdAccountUser": "users"
}
}