facebookbusiness 0.10.0.0 → 0.12.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/facebook_ads/ad_objects/ad_account.rb +49 -32
- data/lib/facebook_ads/ad_objects/ad_account_ad_volume.rb +2 -0
- data/lib/facebook_ads/ad_objects/ad_account_delivery_estimate.rb +5 -8
- data/lib/facebook_ads/ad_objects/{ad_account_content_filter_levels_inheritance.rb → ad_account_ios_fourteen_campaign_limits.rb} +4 -5
- data/lib/facebook_ads/ad_objects/ad_account_matched_search_applications_edge_data.rb +9 -0
- data/lib/facebook_ads/ad_objects/ad_account_reach_estimate.rb +2 -0
- data/lib/facebook_ads/ad_objects/ad_account_targeting_unified.rb +14 -0
- data/lib/facebook_ads/ad_objects/ad_activity.rb +1 -0
- data/lib/facebook_ads/ad_objects/ad_asset_feed_spec.rb +4 -0
- data/lib/facebook_ads/ad_objects/ad_async_request_set.rb +1 -7
- data/lib/facebook_ads/ad_objects/ad_campaign_activity.rb +4 -16
- data/lib/facebook_ads/ad_objects/ad_campaign_delivery_estimate.rb +5 -8
- data/lib/facebook_ads/ad_objects/ad_creative.rb +9 -7
- data/lib/facebook_ads/ad_objects/ad_creative_link_data.rb +1 -0
- data/lib/facebook_ads/ad_objects/ad_creative_link_data_call_to_action.rb +1 -0
- data/lib/facebook_ads/ad_objects/ad_creative_link_data_image_overlay_spec.rb +1 -0
- data/lib/facebook_ads/ad_objects/ad_creative_portrait_customizations.rb +1 -0
- data/lib/facebook_ads/ad_objects/ad_network_analytics_sync_query_result.rb +1 -0
- data/lib/facebook_ads/ad_objects/ad_place_page_set.rb +0 -6
- data/lib/facebook_ads/ad_objects/ad_preview.rb +6 -0
- data/lib/facebook_ads/ad_objects/ad_rule.rb +28 -0
- data/lib/facebook_ads/ad_objects/ad_rule_execution_spec.rb +4 -2
- data/lib/facebook_ads/ad_objects/ad_set.rb +5 -8
- data/lib/facebook_ads/ad_objects/ad_study.rb +7 -1
- data/lib/facebook_ads/ad_objects/ad_study_objective.rb +2 -4
- data/lib/facebook_ads/ad_objects/{playable_content.rb → ad_study_objective_offsite_datasets.rb} +3 -8
- data/lib/facebook_ads/ad_objects/ad_video.rb +42 -6
- data/lib/facebook_ads/ad_objects/adgroup_activity.rb +0 -2
- data/lib/facebook_ads/ad_objects/adgroup_placement_specific_review_feedback.rb +2 -0
- data/lib/facebook_ads/ad_objects/adoptable_pet.rb +23 -0
- data/lib/facebook_ads/ad_objects/ads_action_stats.rb +2 -0
- data/lib/facebook_ads/ad_objects/ads_insights.rb +6 -9
- data/lib/facebook_ads/ad_objects/ads_pixel.rb +8 -0
- data/lib/facebook_ads/ad_objects/application.rb +37 -39
- data/lib/facebook_ads/ad_objects/ar_effects_batch_status.rb +39 -0
- data/lib/facebook_ads/ad_objects/atlas_campaign.rb +0 -8
- data/lib/facebook_ads/ad_objects/audio_copyright.rb +4 -0
- data/lib/facebook_ads/ad_objects/automotive_model.rb +23 -0
- data/lib/facebook_ads/ad_objects/broad_targeting_categories.rb +2 -0
- data/lib/facebook_ads/ad_objects/business.rb +98 -44
- data/lib/facebook_ads/ad_objects/business_asset_group.rb +8 -0
- data/lib/facebook_ads/ad_objects/{cpas_parent_catalog_settings.rb → business_image.rb} +11 -14
- data/lib/facebook_ads/ad_objects/business_managed_partner_eligibility.rb +39 -0
- data/lib/facebook_ads/ad_objects/campaign.rb +2 -0
- data/lib/facebook_ads/ad_objects/canvas.rb +22 -0
- data/lib/facebook_ads/ad_objects/canvas_template.rb +48 -0
- data/lib/facebook_ads/ad_objects/catalog_sub_vertical_list.rb +0 -1
- data/lib/facebook_ads/ad_objects/chat_plugin.rb +48 -0
- data/lib/facebook_ads/ad_objects/cloud_game.rb +43 -0
- data/lib/facebook_ads/ad_objects/comment.rb +2 -1
- data/lib/facebook_ads/ad_objects/commerce_merchant_settings.rb +37 -1
- data/lib/facebook_ads/ad_objects/commerce_order.rb +15 -13
- data/lib/facebook_ads/ad_objects/content_delivery_report.rb +13 -0
- data/lib/facebook_ads/ad_objects/custom_audience.rb +5 -2
- data/lib/facebook_ads/ad_objects/custom_audience_data_source.rb +1 -0
- data/lib/facebook_ads/ad_objects/delivery_window.rb +287 -0
- data/lib/facebook_ads/ad_objects/destination.rb +23 -0
- data/lib/facebook_ads/ad_objects/event.rb +16 -7
- data/lib/facebook_ads/ad_objects/flight.rb +23 -0
- data/lib/facebook_ads/ad_objects/group.rb +10 -1
- data/lib/facebook_ads/ad_objects/home_listing.rb +23 -0
- data/lib/facebook_ads/ad_objects/hotel.rb +23 -0
- data/lib/facebook_ads/ad_objects/ig_comment.rb +2 -0
- data/lib/facebook_ads/ad_objects/ig_media.rb +2 -0
- data/lib/facebook_ads/ad_objects/ig_user.rb +4 -1
- data/lib/facebook_ads/ad_objects/invoice_campaign.rb +1 -0
- data/lib/facebook_ads/ad_objects/jobs_job.rb +72 -0
- data/lib/facebook_ads/ad_objects/live_video.rb +30 -19
- data/lib/facebook_ads/ad_objects/live_video_recommended_encoder_settings.rb +39 -0
- data/lib/facebook_ads/ad_objects/local_service_business.rb +67 -0
- data/lib/facebook_ads/ad_objects/managed_partner_business.rb +43 -0
- data/lib/facebook_ads/ad_objects/{product_feed_upload_diagnostics_report.rb → messaging_feature_status.rb} +2 -3
- data/lib/facebook_ads/ad_objects/messenger_destination_page_welcome_message.rb +1 -0
- data/lib/facebook_ads/ad_objects/omega_customer_trx.rb +65 -0
- data/lib/facebook_ads/ad_objects/oracle_transaction.rb +0 -5
- data/lib/facebook_ads/ad_objects/page.rb +125 -18
- data/lib/facebook_ads/ad_objects/page_call_to_action.rb +3 -0
- data/lib/facebook_ads/ad_objects/page_user_message_thread_label.rb +1 -1
- data/lib/facebook_ads/ad_objects/partner_study.rb +4 -0
- data/lib/facebook_ads/ad_objects/private_lift_study_instance.rb +46 -0
- data/lib/facebook_ads/ad_objects/product_catalog.rb +53 -2
- data/lib/facebook_ads/ad_objects/product_catalog_diagnostic_group.rb +90 -0
- data/lib/facebook_ads/ad_objects/product_feed.rb +27 -0
- data/lib/facebook_ads/ad_objects/product_group.rb +8 -6
- data/lib/facebook_ads/ad_objects/product_item.rb +277 -0
- data/lib/facebook_ads/ad_objects/product_item_ar_data.rb +1 -0
- data/lib/facebook_ads/ad_objects/product_item_importer_address.rb +42 -0
- data/lib/facebook_ads/ad_objects/product_set.rb +9 -0
- data/lib/facebook_ads/ad_objects/profile.rb +2 -0
- data/lib/facebook_ads/ad_objects/reach_frequency_prediction.rb +2 -0
- data/lib/facebook_ads/ad_objects/saved_audience.rb +6 -0
- data/lib/facebook_ads/ad_objects/server_side/user_data.rb +290 -96
- data/lib/facebook_ads/ad_objects/server_side/util.rb +15 -0
- data/lib/facebook_ads/ad_objects/shop.rb +37 -0
- data/lib/facebook_ads/ad_objects/text_with_entities.rb +37 -0
- data/lib/facebook_ads/ad_objects/unified_thread.rb +5 -0
- data/lib/facebook_ads/ad_objects/user.rb +0 -37
- data/lib/facebook_ads/ad_objects/vehicle.rb +23 -0
- data/lib/facebook_ads/ad_objects/vehicle_offer.rb +23 -0
- data/lib/facebook_ads/ad_objects/video_copyright.rb +4 -0
- data/lib/facebook_ads/ad_objects/whats_app_business_account.rb +18 -0
- data/lib/facebook_ads/ad_objects/whats_app_business_profile.rb +1 -0
- data/lib/facebook_ads/ad_objects/woodhenge_purchased_payg_receipt.rb +38 -0
- data/lib/facebook_ads/version.rb +2 -2
- metadata +26 -11
- data/lib/facebook_ads/ad_objects/measurement_upload_event.rb +0 -220
- data/lib/facebook_ads/ad_objects/referral.rb +0 -45
@@ -0,0 +1,287 @@
|
|
1
|
+
# Copyright (c) 2017-present, Facebook, Inc. All rights reserved.
|
2
|
+
#
|
3
|
+
# You are hereby granted a non-exclusive, worldwide, royalty-free license to use,
|
4
|
+
# copy, modify, and distribute this software in source code or binary form for use
|
5
|
+
# in connection with the web services and APIs provided by Facebook.
|
6
|
+
#
|
7
|
+
# As with any software that integrates with the Facebook platform, your use of
|
8
|
+
# this software is subject to the Facebook Platform Policy
|
9
|
+
# [http://developers.facebook.com/policy/]. This copyright notice shall be
|
10
|
+
# included in all copies or substantial portions of the software.
|
11
|
+
#
|
12
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
13
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
14
|
+
# FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
15
|
+
# COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
16
|
+
# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
17
|
+
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
18
|
+
|
19
|
+
# FB:AUTOGEN
|
20
|
+
|
21
|
+
module FacebookAds
|
22
|
+
# This class is auto-generated.
|
23
|
+
|
24
|
+
# For any issues or feature requests related to this class, please let us know
|
25
|
+
# on github and we'll fix in our codegen framework. We'll not be able to accept
|
26
|
+
# pull request for this class.
|
27
|
+
|
28
|
+
class DeliveryWindow < AdObject
|
29
|
+
|
30
|
+
field :ad, 'int'
|
31
|
+
field :ae, 'int'
|
32
|
+
field :af, 'int'
|
33
|
+
field :ag, 'int'
|
34
|
+
field :ai, 'int'
|
35
|
+
field :al, 'int'
|
36
|
+
field :all, 'int'
|
37
|
+
field :am, 'int'
|
38
|
+
field :an, 'int'
|
39
|
+
field :ao, 'int'
|
40
|
+
field :aq, 'int'
|
41
|
+
field :ar, 'int'
|
42
|
+
field :as, 'int'
|
43
|
+
field :at, 'int'
|
44
|
+
field :au, 'int'
|
45
|
+
field :aw, 'int'
|
46
|
+
field :ax, 'int'
|
47
|
+
field :az, 'int'
|
48
|
+
field :ba, 'int'
|
49
|
+
field :bb, 'int'
|
50
|
+
field :bd, 'int'
|
51
|
+
field :be, 'int'
|
52
|
+
field :bf, 'int'
|
53
|
+
field :bg, 'int'
|
54
|
+
field :bh, 'int'
|
55
|
+
field :bi, 'int'
|
56
|
+
field :bj, 'int'
|
57
|
+
field :bl, 'int'
|
58
|
+
field :bm, 'int'
|
59
|
+
field :bn, 'int'
|
60
|
+
field :bo, 'int'
|
61
|
+
field :bq, 'int'
|
62
|
+
field :br, 'int'
|
63
|
+
field :bs, 'int'
|
64
|
+
field :bt, 'int'
|
65
|
+
field :bv, 'int'
|
66
|
+
field :bw, 'int'
|
67
|
+
field :by, 'int'
|
68
|
+
field :bz, 'int'
|
69
|
+
field :ca, 'int'
|
70
|
+
field :cc, 'int'
|
71
|
+
field :cd, 'int'
|
72
|
+
field :cf, 'int'
|
73
|
+
field :cg, 'int'
|
74
|
+
field :ch, 'int'
|
75
|
+
field :ci, 'int'
|
76
|
+
field :ck, 'int'
|
77
|
+
field :cl, 'int'
|
78
|
+
field :cm, 'int'
|
79
|
+
field :cn, 'int'
|
80
|
+
field :co, 'int'
|
81
|
+
field :cr, 'int'
|
82
|
+
field :cu, 'int'
|
83
|
+
field :cv, 'int'
|
84
|
+
field :cw, 'int'
|
85
|
+
field :cx, 'int'
|
86
|
+
field :cy, 'int'
|
87
|
+
field :cz, 'int'
|
88
|
+
field :de, 'int'
|
89
|
+
field :dj, 'int'
|
90
|
+
field :dk, 'int'
|
91
|
+
field :dm, 'int'
|
92
|
+
field :_do, 'int'
|
93
|
+
field :dz, 'int'
|
94
|
+
field :ec, 'int'
|
95
|
+
field :ee, 'int'
|
96
|
+
field :eg, 'int'
|
97
|
+
field :eh, 'int'
|
98
|
+
field :er, 'int'
|
99
|
+
field :es, 'int'
|
100
|
+
field :et, 'int'
|
101
|
+
field :fi, 'int'
|
102
|
+
field :fj, 'int'
|
103
|
+
field :fk, 'int'
|
104
|
+
field :fm, 'int'
|
105
|
+
field :fo, 'int'
|
106
|
+
field :fr, 'int'
|
107
|
+
field :ga, 'int'
|
108
|
+
field :gb, 'int'
|
109
|
+
field :gd, 'int'
|
110
|
+
field :ge, 'int'
|
111
|
+
field :gf, 'int'
|
112
|
+
field :gg, 'int'
|
113
|
+
field :gh, 'int'
|
114
|
+
field :gi, 'int'
|
115
|
+
field :gl, 'int'
|
116
|
+
field :gm, 'int'
|
117
|
+
field :gn, 'int'
|
118
|
+
field :gp, 'int'
|
119
|
+
field :gq, 'int'
|
120
|
+
field :gr, 'int'
|
121
|
+
field :gs, 'int'
|
122
|
+
field :gt, 'int'
|
123
|
+
field :gu, 'int'
|
124
|
+
field :gw, 'int'
|
125
|
+
field :gy, 'int'
|
126
|
+
field :hk, 'int'
|
127
|
+
field :hm, 'int'
|
128
|
+
field :hn, 'int'
|
129
|
+
field :hr, 'int'
|
130
|
+
field :ht, 'int'
|
131
|
+
field :hu, 'int'
|
132
|
+
field :id, 'int'
|
133
|
+
field :ie, 'int'
|
134
|
+
field :il, 'int'
|
135
|
+
field :im, 'int'
|
136
|
+
field :in, 'int'
|
137
|
+
field :io, 'int'
|
138
|
+
field :iq, 'int'
|
139
|
+
field :ir, 'int'
|
140
|
+
field :is, 'int'
|
141
|
+
field :it, 'int'
|
142
|
+
field :je, 'int'
|
143
|
+
field :jm, 'int'
|
144
|
+
field :jo, 'int'
|
145
|
+
field :jp, 'int'
|
146
|
+
field :ke, 'int'
|
147
|
+
field :kg, 'int'
|
148
|
+
field :kh, 'int'
|
149
|
+
field :ki, 'int'
|
150
|
+
field :km, 'int'
|
151
|
+
field :kn, 'int'
|
152
|
+
field :kp, 'int'
|
153
|
+
field :kr, 'int'
|
154
|
+
field :kw, 'int'
|
155
|
+
field :ky, 'int'
|
156
|
+
field :kz, 'int'
|
157
|
+
field :la, 'int'
|
158
|
+
field :lb, 'int'
|
159
|
+
field :lc, 'int'
|
160
|
+
field :li, 'int'
|
161
|
+
field :lk, 'int'
|
162
|
+
field :lr, 'int'
|
163
|
+
field :ls, 'int'
|
164
|
+
field :lt, 'int'
|
165
|
+
field :lu, 'int'
|
166
|
+
field :lv, 'int'
|
167
|
+
field :ly, 'int'
|
168
|
+
field :ma, 'int'
|
169
|
+
field :mc, 'int'
|
170
|
+
field :md, 'int'
|
171
|
+
field :me, 'int'
|
172
|
+
field :mf, 'int'
|
173
|
+
field :mg, 'int'
|
174
|
+
field :mh, 'int'
|
175
|
+
field :mk, 'int'
|
176
|
+
field :ml, 'int'
|
177
|
+
field :mm, 'int'
|
178
|
+
field :mn, 'int'
|
179
|
+
field :mo, 'int'
|
180
|
+
field :mp, 'int'
|
181
|
+
field :mq, 'int'
|
182
|
+
field :mr, 'int'
|
183
|
+
field :ms, 'int'
|
184
|
+
field :mt, 'int'
|
185
|
+
field :mu, 'int'
|
186
|
+
field :mv, 'int'
|
187
|
+
field :mw, 'int'
|
188
|
+
field :mx, 'int'
|
189
|
+
field :my, 'int'
|
190
|
+
field :mz, 'int'
|
191
|
+
field :na, 'int'
|
192
|
+
field :nc, 'int'
|
193
|
+
field :ne, 'int'
|
194
|
+
field :nf, 'int'
|
195
|
+
field :ng, 'int'
|
196
|
+
field :ni, 'int'
|
197
|
+
field :nl, 'int'
|
198
|
+
field :no, 'int'
|
199
|
+
field :np, 'int'
|
200
|
+
field :nr, 'int'
|
201
|
+
field :nu, 'int'
|
202
|
+
field :nz, 'int'
|
203
|
+
field :om, 'int'
|
204
|
+
field :pa, 'int'
|
205
|
+
field :pe, 'int'
|
206
|
+
field :pf, 'int'
|
207
|
+
field :pg, 'int'
|
208
|
+
field :ph, 'int'
|
209
|
+
field :pk, 'int'
|
210
|
+
field :pl, 'int'
|
211
|
+
field :pm, 'int'
|
212
|
+
field :pn, 'int'
|
213
|
+
field :pr, 'int'
|
214
|
+
field :ps, 'int'
|
215
|
+
field :pt, 'int'
|
216
|
+
field :pw, 'int'
|
217
|
+
field :py, 'int'
|
218
|
+
field :qa, 'int'
|
219
|
+
field :re, 'int'
|
220
|
+
field :ro, 'int'
|
221
|
+
field :rs, 'int'
|
222
|
+
field :ru, 'int'
|
223
|
+
field :rw, 'int'
|
224
|
+
field :sa, 'int'
|
225
|
+
field :sb, 'int'
|
226
|
+
field :sc, 'int'
|
227
|
+
field :sd, 'int'
|
228
|
+
field :se, 'int'
|
229
|
+
field :sg, 'int'
|
230
|
+
field :sh, 'int'
|
231
|
+
field :si, 'int'
|
232
|
+
field :sj, 'int'
|
233
|
+
field :sk, 'int'
|
234
|
+
field :sl, 'int'
|
235
|
+
field :sm, 'int'
|
236
|
+
field :sn, 'int'
|
237
|
+
field :so, 'int'
|
238
|
+
field :sr, 'int'
|
239
|
+
field :ss, 'int'
|
240
|
+
field :st, 'int'
|
241
|
+
field :sv, 'int'
|
242
|
+
field :sx, 'int'
|
243
|
+
field :sy, 'int'
|
244
|
+
field :sz, 'int'
|
245
|
+
field :tc, 'int'
|
246
|
+
field :td, 'int'
|
247
|
+
field :tf, 'int'
|
248
|
+
field :tg, 'int'
|
249
|
+
field :th, 'int'
|
250
|
+
field :tj, 'int'
|
251
|
+
field :tk, 'int'
|
252
|
+
field :tl, 'int'
|
253
|
+
field :tm, 'int'
|
254
|
+
field :tn, 'int'
|
255
|
+
field :to, 'int'
|
256
|
+
field :tr, 'int'
|
257
|
+
field :tt, 'int'
|
258
|
+
field :tv, 'int'
|
259
|
+
field :tw, 'int'
|
260
|
+
field :tz, 'int'
|
261
|
+
field :ua, 'int'
|
262
|
+
field :ug, 'int'
|
263
|
+
field :um, 'int'
|
264
|
+
field :us, 'int'
|
265
|
+
field :uy, 'int'
|
266
|
+
field :uz, 'int'
|
267
|
+
field :va, 'int'
|
268
|
+
field :vc, 'int'
|
269
|
+
field :ve, 'int'
|
270
|
+
field :vg, 'int'
|
271
|
+
field :vi, 'int'
|
272
|
+
field :vn, 'int'
|
273
|
+
field :vu, 'int'
|
274
|
+
field :wf, 'int'
|
275
|
+
field :ws, 'int'
|
276
|
+
field :xk, 'int'
|
277
|
+
field :ye, 'int'
|
278
|
+
field :yt, 'int'
|
279
|
+
field :za, 'int'
|
280
|
+
field :zm, 'int'
|
281
|
+
field :zw, 'int'
|
282
|
+
has_no_get
|
283
|
+
has_no_post
|
284
|
+
has_no_delete
|
285
|
+
|
286
|
+
end
|
287
|
+
end
|
@@ -26,6 +26,15 @@ module FacebookAds
|
|
26
26
|
# pull request for this class.
|
27
27
|
|
28
28
|
class Destination < AdObject
|
29
|
+
IMAGE_FETCH_STATUS = [
|
30
|
+
"DIRECT_UPLOAD",
|
31
|
+
"FETCHED",
|
32
|
+
"FETCH_FAILED",
|
33
|
+
"NO_STATUS",
|
34
|
+
"OUTDATED",
|
35
|
+
"PARTIAL_FETCH",
|
36
|
+
]
|
37
|
+
|
29
38
|
|
30
39
|
field :address, 'string'
|
31
40
|
field :applinks, 'CatalogItemAppLinks'
|
@@ -34,15 +43,29 @@ module FacebookAds
|
|
34
43
|
field :description, 'string'
|
35
44
|
field :destination_id, 'string'
|
36
45
|
field :id, 'string'
|
46
|
+
field :image_fetch_status, { enum: -> { IMAGE_FETCH_STATUS }}
|
37
47
|
field :images, { list: 'string' }
|
38
48
|
field :name, 'string'
|
39
49
|
field :price, 'string'
|
40
50
|
field :price_change, 'string'
|
41
51
|
field :sanitized_images, { list: 'string' }
|
42
52
|
field :types, { list: 'string' }
|
53
|
+
field :unit_price, 'object'
|
43
54
|
field :url, 'string'
|
44
55
|
has_no_post
|
45
56
|
has_no_delete
|
46
57
|
|
58
|
+
has_edge :augmented_realities_metadata do |edge|
|
59
|
+
edge.get
|
60
|
+
end
|
61
|
+
|
62
|
+
has_edge :channels_to_integrity_status do |edge|
|
63
|
+
edge.get 'CatalogItemChannelsToIntegrityStatus'
|
64
|
+
end
|
65
|
+
|
66
|
+
has_edge :videos_metadata do |edge|
|
67
|
+
edge.get
|
68
|
+
end
|
69
|
+
|
47
70
|
end
|
48
71
|
end
|
@@ -68,6 +68,7 @@ module FacebookAds
|
|
68
68
|
"group",
|
69
69
|
"private",
|
70
70
|
"public",
|
71
|
+
"work_company",
|
71
72
|
]
|
72
73
|
|
73
74
|
EVENT_STATE_FILTER = [
|
@@ -87,6 +88,7 @@ module FacebookAds
|
|
87
88
|
field :can_guests_invite, 'bool'
|
88
89
|
field :category, { enum: -> { CATEGORY }}
|
89
90
|
field :cover, 'CoverPhoto'
|
91
|
+
field :created_time, 'datetime'
|
90
92
|
field :declined_count, 'int'
|
91
93
|
field :description, 'string'
|
92
94
|
field :discount_code_enabled, 'bool'
|
@@ -109,6 +111,7 @@ module FacebookAds
|
|
109
111
|
field :place, 'Place'
|
110
112
|
field :scheduled_publish_time, 'string'
|
111
113
|
field :start_time, 'string'
|
114
|
+
field :ticket_setting, 'object'
|
112
115
|
field :ticket_uri, 'string'
|
113
116
|
field :ticket_uri_start_sales_time, 'string'
|
114
117
|
field :ticketing_privacy_uri, 'string'
|
@@ -129,7 +132,10 @@ module FacebookAds
|
|
129
132
|
|
130
133
|
has_edge :live_videos do |edge|
|
131
134
|
edge.get 'NullNode'
|
132
|
-
|
135
|
+
end
|
136
|
+
|
137
|
+
has_edge :livevideos do |edge|
|
138
|
+
edge.post do |api|
|
133
139
|
api.has_param :content_tags, { list: 'string' }
|
134
140
|
api.has_param :description, 'string'
|
135
141
|
api.has_param :enable_backup_ingest, 'bool'
|
@@ -140,16 +146,15 @@ module FacebookAds
|
|
140
146
|
api.has_param :is_spherical, 'bool'
|
141
147
|
api.has_param :live_encoders, { list: 'string' }
|
142
148
|
api.has_param :original_fov, 'int'
|
143
|
-
api.has_param :planned_start_time, 'int'
|
144
149
|
api.has_param :privacy, 'string'
|
145
|
-
api.has_param :projection, { enum:
|
150
|
+
api.has_param :projection, { enum: %w{CUBEMAP EQUIRECTANGULAR HALF_EQUIRECTANGULAR }}
|
146
151
|
api.has_param :published, 'bool'
|
147
152
|
api.has_param :schedule_custom_profile_image, 'file'
|
148
|
-
api.has_param :spatial_audio_format, { enum:
|
149
|
-
api.has_param :status, { enum:
|
150
|
-
api.has_param :stereoscopic_mode, { enum:
|
153
|
+
api.has_param :spatial_audio_format, { enum: %w{ambiX_4 }}
|
154
|
+
api.has_param :status, { enum: %w{LIVE_NOW SCHEDULED_CANCELED SCHEDULED_LIVE SCHEDULED_UNPUBLISHED UNPUBLISHED }}
|
155
|
+
api.has_param :stereoscopic_mode, { enum: %w{LEFT_RIGHT MONO TOP_BOTTOM }}
|
151
156
|
api.has_param :stop_on_delete_stream, 'bool'
|
152
|
-
api.has_param :stream_type, { enum:
|
157
|
+
api.has_param :stream_type, { enum: %w{AMBIENT REGULAR }}
|
153
158
|
api.has_param :title, 'string'
|
154
159
|
end
|
155
160
|
end
|
@@ -170,6 +175,10 @@ module FacebookAds
|
|
170
175
|
edge.get 'Profile'
|
171
176
|
end
|
172
177
|
|
178
|
+
has_edge :ticket_tiers do |edge|
|
179
|
+
edge.get
|
180
|
+
end
|
181
|
+
|
173
182
|
has_edge :videos do |edge|
|
174
183
|
edge.get 'NullNode'
|
175
184
|
end
|
@@ -26,6 +26,15 @@ module FacebookAds
|
|
26
26
|
# pull request for this class.
|
27
27
|
|
28
28
|
class Flight < AdObject
|
29
|
+
IMAGE_FETCH_STATUS = [
|
30
|
+
"DIRECT_UPLOAD",
|
31
|
+
"FETCHED",
|
32
|
+
"FETCH_FAILED",
|
33
|
+
"NO_STATUS",
|
34
|
+
"OUTDATED",
|
35
|
+
"PARTIAL_FETCH",
|
36
|
+
]
|
37
|
+
|
29
38
|
|
30
39
|
field :applinks, 'CatalogItemAppLinks'
|
31
40
|
field :category_specific_fields, 'CatalogSubVerticalList'
|
@@ -35,6 +44,7 @@ module FacebookAds
|
|
35
44
|
field :destination_city, 'string'
|
36
45
|
field :flight_id, 'string'
|
37
46
|
field :id, 'string'
|
47
|
+
field :image_fetch_status, { enum: -> { IMAGE_FETCH_STATUS }}
|
38
48
|
field :images, { list: 'string' }
|
39
49
|
field :oneway_currency, 'string'
|
40
50
|
field :oneway_price, 'string'
|
@@ -42,8 +52,21 @@ module FacebookAds
|
|
42
52
|
field :origin_city, 'string'
|
43
53
|
field :price, 'string'
|
44
54
|
field :sanitized_images, { list: 'string' }
|
55
|
+
field :unit_price, 'object'
|
45
56
|
field :url, 'string'
|
46
57
|
has_no_delete
|
47
58
|
|
59
|
+
has_edge :augmented_realities_metadata do |edge|
|
60
|
+
edge.get
|
61
|
+
end
|
62
|
+
|
63
|
+
has_edge :channels_to_integrity_status do |edge|
|
64
|
+
edge.get 'CatalogItemChannelsToIntegrityStatus'
|
65
|
+
end
|
66
|
+
|
67
|
+
has_edge :videos_metadata do |edge|
|
68
|
+
edge.get
|
69
|
+
end
|
70
|
+
|
48
71
|
end
|
49
72
|
end
|
@@ -49,6 +49,7 @@ module FacebookAds
|
|
49
49
|
"EPHEMERAL",
|
50
50
|
"EVENT_PLANNING",
|
51
51
|
"FAMILY",
|
52
|
+
"FANTASY_LEAGUE",
|
52
53
|
"FITNESS",
|
53
54
|
"FOR_SALE",
|
54
55
|
"FOR_WORK",
|
@@ -105,6 +106,7 @@ module FacebookAds
|
|
105
106
|
"EPHEMERAL",
|
106
107
|
"EVENT_PLANNING",
|
107
108
|
"FAMILY",
|
109
|
+
"FANTASY_LEAGUE",
|
108
110
|
"FITNESS",
|
109
111
|
"FOR_SALE",
|
110
112
|
"FOR_WORK",
|
@@ -367,7 +369,6 @@ module FacebookAds
|
|
367
369
|
api.has_param :is_spherical, 'bool'
|
368
370
|
api.has_param :live_encoders, { list: 'string' }
|
369
371
|
api.has_param :original_fov, 'int'
|
370
|
-
api.has_param :planned_start_time, 'int'
|
371
372
|
api.has_param :privacy, 'string'
|
372
373
|
api.has_param :projection, { enum: -> { LiveVideo::PROJECTION }}
|
373
374
|
api.has_param :published, 'bool'
|
@@ -466,6 +467,13 @@ module FacebookAds
|
|
466
467
|
end
|
467
468
|
end
|
468
469
|
|
470
|
+
has_edge :shift_settings do |edge|
|
471
|
+
edge.post do |api|
|
472
|
+
api.has_param :external_id, 'string'
|
473
|
+
api.has_param :shift_feature_setting, { enum: %w{ALL_FEATURES_OFF ALL_FEATURES_ON SHIFT_COVER_ONLY_ON SHIFT_VIEWER_ONLY_ON }}
|
474
|
+
end
|
475
|
+
end
|
476
|
+
|
469
477
|
has_edge :videos do |edge|
|
470
478
|
edge.get 'AdVideo' do |api|
|
471
479
|
api.has_param :type, { enum: -> { AdVideo::TYPE }}
|
@@ -520,6 +528,7 @@ module FacebookAds
|
|
520
528
|
api.has_param :original_fov, 'int'
|
521
529
|
api.has_param :original_projection_type, { enum: -> { AdVideo::ORIGINAL_PROJECTION_TYPE }}
|
522
530
|
api.has_param :publish_event_id, 'int'
|
531
|
+
api.has_param :published, 'bool'
|
523
532
|
api.has_param :react_mode_metadata, 'string'
|
524
533
|
api.has_param :referenced_sticker_id, 'string'
|
525
534
|
api.has_param :replace_video_id, 'string'
|
@@ -26,6 +26,15 @@ module FacebookAds
|
|
26
26
|
# pull request for this class.
|
27
27
|
|
28
28
|
class HomeListing < AdObject
|
29
|
+
IMAGE_FETCH_STATUS = [
|
30
|
+
"DIRECT_UPLOAD",
|
31
|
+
"FETCHED",
|
32
|
+
"FETCH_FAILED",
|
33
|
+
"NO_STATUS",
|
34
|
+
"OUTDATED",
|
35
|
+
"PARTIAL_FETCH",
|
36
|
+
]
|
37
|
+
|
29
38
|
|
30
39
|
field :ac_type, 'string'
|
31
40
|
field :additional_fees_description, 'string'
|
@@ -50,6 +59,7 @@ module FacebookAds
|
|
50
59
|
field :heating_type, 'string'
|
51
60
|
field :home_listing_id, 'string'
|
52
61
|
field :id, 'string'
|
62
|
+
field :image_fetch_status, { enum: -> { IMAGE_FETCH_STATUS }}
|
53
63
|
field :images, { list: 'string' }
|
54
64
|
field :laundry_type, 'string'
|
55
65
|
field :listing_type, 'string'
|
@@ -68,8 +78,21 @@ module FacebookAds
|
|
68
78
|
field :price, 'string'
|
69
79
|
field :property_type, 'string'
|
70
80
|
field :sanitized_images, { list: 'string' }
|
81
|
+
field :unit_price, 'object'
|
71
82
|
field :url, 'string'
|
72
83
|
field :year_built, 'int'
|
73
84
|
|
85
|
+
has_edge :augmented_realities_metadata do |edge|
|
86
|
+
edge.get
|
87
|
+
end
|
88
|
+
|
89
|
+
has_edge :channels_to_integrity_status do |edge|
|
90
|
+
edge.get 'CatalogItemChannelsToIntegrityStatus'
|
91
|
+
end
|
92
|
+
|
93
|
+
has_edge :videos_metadata do |edge|
|
94
|
+
edge.get
|
95
|
+
end
|
96
|
+
|
74
97
|
end
|
75
98
|
end
|
@@ -26,6 +26,15 @@ module FacebookAds
|
|
26
26
|
# pull request for this class.
|
27
27
|
|
28
28
|
class Hotel < AdObject
|
29
|
+
IMAGE_FETCH_STATUS = [
|
30
|
+
"DIRECT_UPLOAD",
|
31
|
+
"FETCHED",
|
32
|
+
"FETCH_FAILED",
|
33
|
+
"NO_STATUS",
|
34
|
+
"OUTDATED",
|
35
|
+
"PARTIAL_FETCH",
|
36
|
+
]
|
37
|
+
|
29
38
|
|
30
39
|
field :address, 'string'
|
31
40
|
field :applinks, 'CatalogItemAppLinks'
|
@@ -37,6 +46,7 @@ module FacebookAds
|
|
37
46
|
field :guest_ratings, 'string'
|
38
47
|
field :hotel_id, 'string'
|
39
48
|
field :id, 'string'
|
49
|
+
field :image_fetch_status, { enum: -> { IMAGE_FETCH_STATUS }}
|
40
50
|
field :images, { list: 'string' }
|
41
51
|
field :lowest_base_price, 'string'
|
42
52
|
field :loyalty_program, 'string'
|
@@ -46,12 +56,25 @@ module FacebookAds
|
|
46
56
|
field :sale_price, 'string'
|
47
57
|
field :sanitized_images, { list: 'string' }
|
48
58
|
field :star_rating, 'double'
|
59
|
+
field :unit_price, 'object'
|
49
60
|
field :url, 'string'
|
50
61
|
field :base_price, 'int'
|
51
62
|
|
63
|
+
has_edge :augmented_realities_metadata do |edge|
|
64
|
+
edge.get
|
65
|
+
end
|
66
|
+
|
67
|
+
has_edge :channels_to_integrity_status do |edge|
|
68
|
+
edge.get 'CatalogItemChannelsToIntegrityStatus'
|
69
|
+
end
|
70
|
+
|
52
71
|
has_edge :hotel_rooms do |edge|
|
53
72
|
edge.get 'HotelRoom'
|
54
73
|
end
|
55
74
|
|
75
|
+
has_edge :videos_metadata do |edge|
|
76
|
+
edge.get
|
77
|
+
end
|
78
|
+
|
56
79
|
end
|
57
80
|
end
|
@@ -27,10 +27,12 @@ module FacebookAds
|
|
27
27
|
|
28
28
|
class IgComment < AdObject
|
29
29
|
|
30
|
+
field :from, 'object'
|
30
31
|
field :hidden, 'bool'
|
31
32
|
field :id, 'string'
|
32
33
|
field :like_count, 'int'
|
33
34
|
field :media, 'IgMedia'
|
35
|
+
field :parent_id, 'string'
|
34
36
|
field :text, 'string'
|
35
37
|
field :timestamp, 'datetime'
|
36
38
|
field :user, 'IgUser'
|
@@ -33,6 +33,7 @@ module FacebookAds
|
|
33
33
|
field :ig_id, 'string'
|
34
34
|
field :is_comment_enabled, 'bool'
|
35
35
|
field :like_count, 'int'
|
36
|
+
field :media_product_type, 'string'
|
36
37
|
field :media_type, 'string'
|
37
38
|
field :media_url, 'string'
|
38
39
|
field :owner, 'IgUser'
|
@@ -41,6 +42,7 @@ module FacebookAds
|
|
41
42
|
field :thumbnail_url, 'string'
|
42
43
|
field :timestamp, 'datetime'
|
43
44
|
field :username, 'string'
|
45
|
+
field :video_title, 'string'
|
44
46
|
has_no_delete
|
45
47
|
|
46
48
|
has_edge :children do |edge|
|
@@ -60,7 +60,10 @@ module FacebookAds
|
|
60
60
|
end
|
61
61
|
|
62
62
|
has_edge :media do |edge|
|
63
|
-
edge.get 'IgMedia'
|
63
|
+
edge.get 'IgMedia' do |api|
|
64
|
+
api.has_param :since, 'datetime'
|
65
|
+
api.has_param :until, 'datetime'
|
66
|
+
end
|
64
67
|
edge.post 'IgMedia' do |api|
|
65
68
|
api.has_param :caption, 'string'
|
66
69
|
api.has_param :image_url, 'string'
|