facebookbusiness 0.3.2.3 → 0.3.2.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. checksums.yaml +4 -4
  2. data/lib/facebook_ads/ad_objects/ad.rb +3 -3
  3. data/lib/facebook_ads/ad_objects/ad_account.rb +13 -20
  4. data/lib/facebook_ads/ad_objects/ad_account_delivery_estimate.rb +1 -1
  5. data/lib/facebook_ads/ad_objects/ad_account_targeting_unified.rb +2 -0
  6. data/lib/facebook_ads/ad_objects/ad_account_user_permissions.rb +0 -1
  7. data/lib/facebook_ads/ad_objects/ad_asset_feed_spec.rb +1 -0
  8. data/lib/facebook_ads/ad_objects/ad_campaign_activity.rb +4 -0
  9. data/lib/facebook_ads/ad_objects/ad_campaign_delivery_estimate.rb +1 -1
  10. data/lib/facebook_ads/ad_objects/ad_creative.rb +4 -1
  11. data/lib/facebook_ads/ad_objects/ad_creative_link_data.rb +1 -0
  12. data/lib/facebook_ads/ad_objects/ad_creative_link_data_call_to_action.rb +1 -0
  13. data/lib/facebook_ads/ad_objects/ad_creative_video_data.rb +0 -1
  14. data/lib/facebook_ads/ad_objects/ad_set.rb +9 -11
  15. data/lib/facebook_ads/ad_objects/ad_video.rb +3 -1
  16. data/lib/facebook_ads/ad_objects/ads_insights.rb +6 -10
  17. data/lib/facebook_ads/ad_objects/automotive_model.rb +2 -0
  18. data/lib/facebook_ads/ad_objects/business.rb +0 -6
  19. data/lib/facebook_ads/ad_objects/campaign.rb +6 -6
  20. data/lib/facebook_ads/ad_objects/{publisher_space.rb → catalog_based_targeting.rb} +3 -3
  21. data/lib/facebook_ads/ad_objects/copyright_reference_container.rb +2 -0
  22. data/lib/facebook_ads/ad_objects/currency.rb +0 -2
  23. data/lib/facebook_ads/ad_objects/destination.rb +1 -2
  24. data/lib/facebook_ads/ad_objects/event.rb +35 -12
  25. data/lib/facebook_ads/ad_objects/lead_gen_legal_content.rb +0 -7
  26. data/lib/facebook_ads/ad_objects/leadgen_form.rb +7 -7
  27. data/lib/facebook_ads/ad_objects/live_video.rb +5 -1
  28. data/lib/facebook_ads/ad_objects/live_video_input_stream.rb +1 -0
  29. data/lib/facebook_ads/ad_objects/live_with_guest_session.rb +54 -0
  30. data/lib/facebook_ads/ad_objects/merchant_compliance.rb +41 -0
  31. data/lib/facebook_ads/ad_objects/offline_conversion_data_set.rb +9 -2
  32. data/lib/facebook_ads/ad_objects/offsite_pixel.rb +0 -1
  33. data/lib/facebook_ads/ad_objects/open_graph_object.rb +0 -1
  34. data/lib/facebook_ads/ad_objects/page.rb +3 -22
  35. data/lib/facebook_ads/ad_objects/{adgroup_metadata.rb → page_locations_health_summary.rb} +4 -3
  36. data/lib/facebook_ads/ad_objects/page_post.rb +2 -2
  37. data/lib/facebook_ads/ad_objects/page_saved_filter.rb +0 -1
  38. data/lib/facebook_ads/ad_objects/post.rb +2 -2
  39. data/lib/facebook_ads/ad_objects/product_catalog.rb +19 -11
  40. data/lib/facebook_ads/ad_objects/product_catalog_user_permissions.rb +0 -1
  41. data/lib/facebook_ads/ad_objects/product_feed.rb +1 -1
  42. data/lib/facebook_ads/ad_objects/product_feed_upload_error.rb +0 -2
  43. data/lib/facebook_ads/ad_objects/profile_picture_source.rb +0 -1
  44. data/lib/facebook_ads/ad_objects/reach_estimate.rb +1 -0
  45. data/lib/facebook_ads/ad_objects/targeting.rb +1 -1
  46. data/lib/facebook_ads/ad_objects/unified_thread.rb +0 -2
  47. data/lib/facebook_ads/ad_objects/url.rb +0 -1
  48. data/lib/facebook_ads/ad_objects/user.rb +2 -6
  49. data/lib/facebook_ads/ad_objects/user_context.rb +0 -12
  50. data/lib/facebook_ads/version.rb +1 -1
  51. metadata +6 -5
  52. data/lib/facebook_ads/ad_objects/ad_asset_feed.rb +0 -217
@@ -36,6 +36,8 @@ module FacebookAds
36
36
  field :description, 'string'
37
37
  field :drivetrain, 'string'
38
38
  field :exterior_color, 'string'
39
+ field :finance_description, 'string'
40
+ field :finance_type, 'string'
39
41
  field :fuel_type, 'string'
40
42
  field :generation, 'string'
41
43
  field :id, 'string'
@@ -350,12 +350,6 @@ module FacebookAds
350
350
  end
351
351
  end
352
352
 
353
- has_edge :business_activities do |edge|
354
- edge.get 'BusinessActivityLogEvent' do |api|
355
- api.has_param :business, 'string'
356
- end
357
- end
358
-
359
353
  has_edge :business_invoices do |edge|
360
354
  edge.get 'OracleTransaction' do |api|
361
355
  api.has_param :start_date, 'string'
@@ -130,10 +130,6 @@ module FacebookAds
130
130
  field :daily_budget, 'string'
131
131
  field :effective_status, { enum: -> { EFFECTIVE_STATUS }}
132
132
  field :id, 'string'
133
- field :is_autobid, 'bool'
134
- field :is_average_price_pacing, 'bool'
135
- field :kpi_custom_conversion_id, 'string'
136
- field :kpi_type, 'string'
137
133
  field :last_budget_toggling_time, 'datetime'
138
134
  field :lifetime_budget, 'string'
139
135
  field :metrics_metadata, 'AdCampaignGroupMetricsMetadata'
@@ -154,6 +150,10 @@ module FacebookAds
154
150
  field :execution_options, { list: { enum: -> { EXECUTION_OPTIONS }} }
155
151
  field :upstream_events, 'hash'
156
152
  field :iterative_split_test_configs, { list: 'object' }
153
+ field :kpi_custom_conversion_id, 'string'
154
+ field :kpi_type, 'object'
155
+ field :is_autobid, 'bool'
156
+ field :is_average_price_pacing, 'bool'
157
157
 
158
158
  has_edge :ad_studies do |edge|
159
159
  edge.get 'AdStudy'
@@ -162,11 +162,11 @@ module FacebookAds
162
162
  has_edge :adlabels do |edge|
163
163
  edge.delete do |api|
164
164
  api.has_param :adlabels, { list: 'object' }
165
- api.has_param :execution_options, { list: { enum: -> { Campaign::EXECUTION_OPTIONS }} }
165
+ api.has_param :execution_options, { list: { enum: %w{validate_only }} }
166
166
  end
167
167
  edge.post 'Campaign' do |api|
168
168
  api.has_param :adlabels, { list: 'object' }
169
- api.has_param :execution_options, { list: { enum: -> { Campaign::EXECUTION_OPTIONS }} }
169
+ api.has_param :execution_options, { list: { enum: %w{validate_only }} }
170
170
  end
171
171
  end
172
172
 
@@ -25,11 +25,11 @@ module FacebookAds
25
25
  # on github and we'll fix in our codegen framework. We'll not be able to accept
26
26
  # pull request for this class.
27
27
 
28
- class PublisherSpace < AdObject
28
+ class CatalogBasedTargeting < AdObject
29
29
 
30
+ field :geo_targeting_type, 'string'
30
31
  field :id, 'string'
31
- field :page, 'Page'
32
- field :sections, { list: 'object' }
32
+ has_no_get
33
33
  has_no_post
34
34
  has_no_delete
35
35
 
@@ -33,11 +33,13 @@ module FacebookAds
33
33
  field :duration_in_sec, 'double'
34
34
  field :fingerprint_validity, 'string'
35
35
  field :id, 'string'
36
+ field :iswc, 'string'
36
37
  field :metadata, 'object'
37
38
  field :published_time, 'datetime'
38
39
  field :thumbnail_url, 'string'
39
40
  field :title, 'string'
40
41
  field :universal_content_id, 'string'
42
+ field :writer_names, { list: 'string' }
41
43
  has_no_get
42
44
  has_no_post
43
45
  has_no_delete
@@ -27,8 +27,6 @@ module FacebookAds
27
27
 
28
28
  class Currency < AdObject
29
29
 
30
- field :currency_exchange, 'double'
31
- field :currency_exchange_inverse, 'double'
32
30
  field :currency_offset, 'int'
33
31
  field :usd_exchange, 'double'
34
32
  field :usd_exchange_inverse, 'double'
@@ -27,7 +27,7 @@ module FacebookAds
27
27
 
28
28
  class Destination < AdObject
29
29
 
30
- field :address, 'object'
30
+ field :address, 'string'
31
31
  field :applinks, 'AppLinks'
32
32
  field :currency, 'string'
33
33
  field :description, 'string'
@@ -40,7 +40,6 @@ module FacebookAds
40
40
  field :sanitized_images, { list: 'string' }
41
41
  field :types, { list: 'string' }
42
42
  field :url, 'string'
43
- has_no_post
44
43
  has_no_delete
45
44
 
46
45
  end
@@ -33,6 +33,35 @@ module FacebookAds
33
33
  "community",
34
34
  ]
35
35
 
36
+ PROJECTION = [
37
+ "EQUIRECTANGULAR",
38
+ "CUBEMAP",
39
+ "HALF_EQUIRECTANGULAR",
40
+ ]
41
+
42
+ SPATIAL_AUDIO_FORMAT = [
43
+ "ambiX_4",
44
+ ]
45
+
46
+ STATUS = [
47
+ "UNPUBLISHED",
48
+ "LIVE_NOW",
49
+ "SCHEDULED_UNPUBLISHED",
50
+ "SCHEDULED_LIVE",
51
+ "SCHEDULED_CANCELED",
52
+ ]
53
+
54
+ STEREOSCOPIC_MODE = [
55
+ "MONO",
56
+ "LEFT_RIGHT",
57
+ "TOP_BOTTOM",
58
+ ]
59
+
60
+ STREAM_TYPE = [
61
+ "REGULAR",
62
+ "AMBIENT",
63
+ ]
64
+
36
65
  EVENT_STATE_FILTER = [
37
66
  "canceled",
38
67
  "draft",
@@ -54,7 +83,6 @@ module FacebookAds
54
83
 
55
84
  field :attending_count, 'int'
56
85
  field :can_guests_invite, 'bool'
57
- field :can_viewer_post, 'bool'
58
86
  field :category, 'string'
59
87
  field :cover, 'CoverPhoto'
60
88
  field :declined_count, 'int'
@@ -65,19 +93,15 @@ module FacebookAds
65
93
  field :guest_list_enabled, 'bool'
66
94
  field :id, 'string'
67
95
  field :interested_count, 'int'
68
- field :invited_count, 'int'
69
96
  field :is_canceled, 'bool'
70
- field :is_date_only, 'bool'
71
97
  field :is_draft, 'bool'
72
98
  field :is_page_owned, 'bool'
73
- field :location, 'string'
74
99
  field :maybe_count, 'int'
75
100
  field :name, 'string'
76
101
  field :noreply_count, 'int'
77
102
  field :owner, 'object'
78
103
  field :parent_group, 'Group'
79
104
  field :place, 'Place'
80
- field :privacy, 'string'
81
105
  field :scheduled_publish_time, 'string'
82
106
  field :start_time, 'string'
83
107
  field :ticket_uri, 'string'
@@ -87,7 +111,6 @@ module FacebookAds
87
111
  field :timezone, 'string'
88
112
  field :type, { enum: -> { TYPE }}
89
113
  field :updated_time, 'datetime'
90
- field :venue, 'Location'
91
114
 
92
115
  has_edge :admins do |edge|
93
116
  edge.get 'Profile'
@@ -264,29 +287,29 @@ module FacebookAds
264
287
 
265
288
  has_edge :live_videos do |edge|
266
289
  edge.get 'NullNode'
267
- edge.post do |api|
290
+ edge.post 'Event' do |api|
268
291
  api.has_param :title, 'string'
269
292
  api.has_param :description, 'string'
270
293
  api.has_param :save_vod, 'bool'
271
294
  api.has_param :published, 'bool'
272
- api.has_param :status, { enum: %w{UNPUBLISHED LIVE_NOW SCHEDULED_UNPUBLISHED SCHEDULED_LIVE SCHEDULED_CANCELED }}
295
+ api.has_param :status, { enum: -> { Event::STATUS }}
273
296
  api.has_param :privacy, 'object'
274
297
  api.has_param :stop_on_delete_stream, 'bool'
275
- api.has_param :stream_type, { enum: %w{REGULAR AMBIENT }}
298
+ api.has_param :stream_type, { enum: -> { Event::STREAM_TYPE }}
276
299
  api.has_param :content_tags, { list: 'string' }
277
300
  api.has_param :is_spherical, 'bool'
278
301
  api.has_param :is_audio_only, 'bool'
279
302
  api.has_param :planned_start_time, 'int'
280
303
  api.has_param :schedule_custom_profile_image, 'file'
281
- api.has_param :projection, { enum: %w{EQUIRECTANGULAR CUBEMAP HALF_EQUIRECTANGULAR }}
282
- api.has_param :spatial_audio_format, { enum: %w{ambiX_4 }}
304
+ api.has_param :projection, { enum: -> { Event::PROJECTION }}
305
+ api.has_param :spatial_audio_format, { enum: -> { Event::SPATIAL_AUDIO_FORMAT }}
283
306
  api.has_param :encoding_settings, 'string'
284
307
  api.has_param :live_encoders, { list: 'string' }
285
308
  api.has_param :original_fov, 'int'
286
309
  api.has_param :fisheye_video_cropped, 'bool'
287
310
  api.has_param :front_z_rotation, 'double'
288
311
  api.has_param :attribution_app_id, 'string'
289
- api.has_param :stereoscopic_mode, { enum: %w{MONO LEFT_RIGHT TOP_BOTTOM }}
312
+ api.has_param :stereoscopic_mode, { enum: -> { Event::STEREOSCOPIC_MODE }}
290
313
  end
291
314
  end
292
315
 
@@ -26,13 +26,6 @@ module FacebookAds
26
26
  # pull request for this class.
27
27
 
28
28
  class LeadGenLegalContent < AdObject
29
- STATUS = [
30
- "ACTIVE",
31
- "ARCHIVED",
32
- "DELETED",
33
- "DRAFT",
34
- ]
35
-
36
29
 
37
30
  field :custom_disclaimer, 'object'
38
31
  field :id, 'string'
@@ -26,6 +26,13 @@ module FacebookAds
26
26
  # pull request for this class.
27
27
 
28
28
  class LeadgenForm < AdObject
29
+ STATUS = [
30
+ "ACTIVE",
31
+ "ARCHIVED",
32
+ "DELETED",
33
+ "DRAFT",
34
+ ]
35
+
29
36
  LOCALE = [
30
37
  "EN_US",
31
38
  "IT_IT",
@@ -60,13 +67,6 @@ module FacebookAds
60
67
  "ZH_CN",
61
68
  ]
62
69
 
63
- STATUS = [
64
- "ACTIVE",
65
- "ARCHIVED",
66
- "DELETED",
67
- "DRAFT",
68
- ]
69
-
70
70
 
71
71
  field :allow_organic_lead, 'bool'
72
72
  field :block_display_for_non_targeted_viewer, 'bool'
@@ -103,7 +103,6 @@ module FacebookAds
103
103
  field :live_views, 'int'
104
104
  field :permalink_url, 'string'
105
105
  field :planned_start_time, 'datetime'
106
- field :preview_url, 'string'
107
106
  field :seconds_left, 'int'
108
107
  field :secure_stream_url, 'string'
109
108
  field :status, 'string'
@@ -144,6 +143,11 @@ module FacebookAds
144
143
  edge.get 'VideoGameShow'
145
144
  end
146
145
 
146
+ has_edge :guest_sessions do |edge|
147
+ edge.get 'LiveWithGuestSession'
148
+ edge.post 'LiveWithGuestSession'
149
+ end
150
+
147
151
  has_edge :input_streams do |edge|
148
152
  edge.post 'LiveVideo'
149
153
  end
@@ -33,6 +33,7 @@ module FacebookAds
33
33
  field :is_master, 'bool'
34
34
  field :live_encoder, 'LiveEncoder'
35
35
  field :secure_stream_url, 'string'
36
+ field :stream_health, 'object'
36
37
  field :stream_id, 'string'
37
38
  field :stream_url, 'string'
38
39
  has_no_post
@@ -0,0 +1,54 @@
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 LiveWithGuestSession < AdObject
29
+
30
+ field :conference_name, 'string'
31
+ field :id, 'string'
32
+ field :participant_call_states, { list: 'object' }
33
+ field :server_sdp, 'string'
34
+ has_no_post
35
+ has_no_delete
36
+
37
+ has_edge :hangup do |edge|
38
+ edge.post 'LiveWithGuestSession'
39
+ end
40
+
41
+ has_edge :join do |edge|
42
+ edge.post 'LiveWithGuestSession' do |api|
43
+ api.has_param :offer_sdp, 'string'
44
+ end
45
+ end
46
+
47
+ has_edge :ring_users do |edge|
48
+ edge.post 'LiveWithGuestSession' do |api|
49
+ api.has_param :user_ids, { list: 'int' }
50
+ end
51
+ end
52
+
53
+ end
54
+ end
@@ -0,0 +1,41 @@
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 MerchantCompliance < AdObject
29
+
30
+ field :a2c_p_disc, 'double'
31
+ field :base_compliance_status, 'bool'
32
+ field :non_null_id, 'double'
33
+ field :non_null_quantity, 'double'
34
+ field :vc_a2c_disc, 'double'
35
+ field :id, 'string'
36
+ has_no_get
37
+ has_no_post
38
+ has_no_delete
39
+
40
+ end
41
+ end
@@ -53,7 +53,6 @@ module FacebookAds
53
53
  ]
54
54
 
55
55
 
56
- field :attribute_stats, 'string'
57
56
  field :business, 'Business'
58
57
  field :config, 'string'
59
58
  field :creation_time, 'datetime'
@@ -71,7 +70,6 @@ module FacebookAds
71
70
  field :last_upload_app_changed_time, 'int'
72
71
  field :match_rate_approx, 'int'
73
72
  field :matched_entries, 'int'
74
- field :matched_unique_users, 'int'
75
73
  field :name, 'string'
76
74
  field :usage, 'object'
77
75
  field :valid_entries, 'int'
@@ -183,6 +181,15 @@ module FacebookAds
183
181
  end
184
182
  end
185
183
 
184
+ has_edge :users do |edge|
185
+ edge.delete do |api|
186
+ api.has_param :data, { list: 'object' }
187
+ end
188
+ edge.post 'OfflineConversionDataSet' do |api|
189
+ api.has_param :data, { list: 'object' }
190
+ end
191
+ end
192
+
186
193
  has_edge :validate do |edge|
187
194
  edge.post 'OfflineConversionDataSet' do |api|
188
195
  api.has_param :data, { list: 'string' }
@@ -32,7 +32,6 @@ module FacebookAds
32
32
  field :js_pixel, 'string'
33
33
  field :last_firing_time, 'datetime'
34
34
  field :name, 'string'
35
- field :status, 'string'
36
35
  field :tag, 'string'
37
36
  has_no_post
38
37
  has_no_delete
@@ -48,7 +48,6 @@ module FacebookAds
48
48
  field :title, 'string'
49
49
  field :type, 'string'
50
50
  field :updated_time, 'datetime'
51
- field :url, 'string'
52
51
  field :video, { list: 'object' }
53
52
  has_no_delete
54
53
 
@@ -114,6 +114,7 @@ module FacebookAds
114
114
  "AUTO_LOOKALIKE",
115
115
  "MULT_CUSTOM_AUDIENCES",
116
116
  "EVENT_CUSTOM_AUDIENCES",
117
+ "AUTO_PAGE_LOOKALIKE",
117
118
  ]
118
119
 
119
120
  PERMITTED_TASKS = [
@@ -334,7 +335,6 @@ module FacebookAds
334
335
  field :general_manager, 'string'
335
336
  field :genre, 'string'
336
337
  field :global_brand_page_name, 'string'
337
- field :global_brand_parent_page, 'Page'
338
338
  field :global_brand_root_id, 'string'
339
339
  field :has_added_app, 'bool'
340
340
  field :has_whatsapp_business_number, 'bool'
@@ -401,7 +401,6 @@ module FacebookAds
401
401
  field :promotion_eligible, 'bool'
402
402
  field :promotion_ineligible_reason, 'string'
403
403
  field :public_transit, 'string'
404
- field :publisher_space, 'PublisherSpace'
405
404
  field :rating_count, 'int'
406
405
  field :recipient, 'string'
407
406
  field :record_label, 'string'
@@ -658,7 +657,7 @@ module FacebookAds
658
657
  edge.get 'UnifiedThread' do |api|
659
658
  api.has_param :tags, { list: 'string' }
660
659
  api.has_param :folder, 'string'
661
- api.has_param :psid, 'object'
660
+ api.has_param :user_id, 'string'
662
661
  end
663
662
  end
664
663
 
@@ -996,30 +995,12 @@ module FacebookAds
996
995
 
997
996
  has_edge :leadgen_legal_content do |edge|
998
997
  edge.get 'LeadGenLegalContent'
999
- edge.post 'LeadGenLegalContent' do |api|
1000
- api.has_param :privacy_policy, 'object'
1001
- api.has_param :custom_disclaimer, 'object'
1002
- api.has_param :status, { enum: -> { LeadGenLegalContent::STATUS }}
1003
- end
1004
998
  end
1005
999
 
1006
1000
  has_edge :leadgen_qualifiers do |edge|
1007
1001
  edge.get 'LeadGenQualifier'
1008
1002
  end
1009
1003
 
1010
- has_edge :leadgen_thank_you_page do |edge|
1011
- edge.post do |api|
1012
- api.has_param :body, 'string'
1013
- api.has_param :business_phone_number, 'string'
1014
- api.has_param :button_text, 'string'
1015
- api.has_param :button_type, { enum: %w{VIEW_WEBSITE CALL_BUSINESS MESSAGE_BUSINESS DOWNLOAD }}
1016
- api.has_param :country_code, 'string'
1017
- api.has_param :enable_messenger, 'bool'
1018
- api.has_param :title, 'string'
1019
- api.has_param :website_url, 'string'
1020
- end
1021
- end
1022
-
1023
1004
  has_edge :leadgen_whitelisted_users do |edge|
1024
1005
  edge.delete do |api|
1025
1006
  api.has_param :user_id, 'string'
@@ -1605,7 +1586,7 @@ module FacebookAds
1605
1586
  edge.get 'UnifiedThread' do |api|
1606
1587
  api.has_param :tags, { list: 'string' }
1607
1588
  api.has_param :folder, 'string'
1608
- api.has_param :psid, 'object'
1589
+ api.has_param :user_id, 'string'
1609
1590
  end
1610
1591
  end
1611
1592