facebookbusiness 18.0.4 → 19.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (80) hide show
  1. checksums.yaml +4 -4
  2. data/lib/facebook_ads/ad_objects/ad.rb +1 -1
  3. data/lib/facebook_ads/ad_objects/ad_account.rb +22 -0
  4. data/lib/facebook_ads/ad_objects/ad_account_ad_rules_history.rb +3 -0
  5. data/lib/facebook_ads/ad_objects/ad_account_ad_volume.rb +13 -0
  6. data/lib/facebook_ads/ad_objects/ad_account_business_constraints.rb +2 -0
  7. data/lib/facebook_ads/ad_objects/ad_account_delivery_estimate.rb +1 -0
  8. data/lib/facebook_ads/ad_objects/{page_about_story.rb → ad_asset_body.rb} +4 -7
  9. data/lib/facebook_ads/ad_objects/{destination_catalog_settings.rb → ad_asset_call_to_action_type.rb} +3 -2
  10. data/lib/facebook_ads/ad_objects/ad_asset_description.rb +26 -0
  11. data/lib/facebook_ads/ad_objects/ad_asset_feed_spec.rb +1 -0
  12. data/lib/facebook_ads/ad_objects/ad_asset_image.rb +30 -0
  13. data/lib/facebook_ads/ad_objects/ad_asset_link_url.rb +32 -0
  14. data/lib/facebook_ads/ad_objects/ad_asset_title.rb +26 -0
  15. data/lib/facebook_ads/ad_objects/ad_asset_video.rb +34 -0
  16. data/lib/facebook_ads/ad_objects/ad_campaign_delivery_estimate.rb +1 -0
  17. data/lib/facebook_ads/ad_objects/ad_creative.rb +2 -0
  18. data/lib/facebook_ads/ad_objects/ad_creative_branded_content_ads.rb +1 -0
  19. data/lib/facebook_ads/ad_objects/ad_creative_link_data_call_to_action.rb +1 -0
  20. data/lib/facebook_ads/ad_objects/ad_creative_promotion_metadata_spec.rb +30 -0
  21. data/lib/facebook_ads/ad_objects/{instant_articles_stats.rb → ad_creative_site_links_spec.rb} +3 -6
  22. data/lib/facebook_ads/ad_objects/ad_creative_sourcing_spec.rb +2 -0
  23. data/lib/facebook_ads/ad_objects/ad_preview.rb +4 -0
  24. data/lib/facebook_ads/ad_objects/ad_promoted_object.rb +2 -0
  25. data/lib/facebook_ads/ad_objects/ad_rule_execution_spec.rb +1 -0
  26. data/lib/facebook_ads/ad_objects/ad_rule_history.rb +3 -0
  27. data/lib/facebook_ads/ad_objects/ad_set.rb +34 -20
  28. data/lib/facebook_ads/ad_objects/ad_video.rb +4 -2
  29. data/lib/facebook_ads/ad_objects/ads_action_stats.rb +4 -0
  30. data/lib/facebook_ads/ad_objects/ads_histogram_stats.rb +4 -0
  31. data/lib/facebook_ads/ad_objects/ads_insights.rb +7 -1
  32. data/lib/facebook_ads/ad_objects/ads_pixel.rb +1 -4
  33. data/lib/facebook_ads/ad_objects/analytics_segment.rb +39 -0
  34. data/lib/facebook_ads/ad_objects/application.rb +1 -0
  35. data/lib/facebook_ads/ad_objects/branded_content_shadow_ig_media_id.rb +27 -0
  36. data/lib/facebook_ads/ad_objects/branded_content_shadow_ig_user_id.rb +24 -0
  37. data/lib/facebook_ads/ad_objects/business.rb +9 -2
  38. data/lib/facebook_ads/ad_objects/campaign.rb +2 -1
  39. data/lib/facebook_ads/ad_objects/canvas.rb +4 -0
  40. data/lib/facebook_ads/ad_objects/canvas_preview.rb +25 -0
  41. data/lib/facebook_ads/ad_objects/commerce_merchant_settings.rb +0 -7
  42. data/lib/facebook_ads/ad_objects/commerce_order.rb +1 -0
  43. data/lib/facebook_ads/ad_objects/custom_audience.rb +11 -0
  44. data/lib/facebook_ads/ad_objects/custom_audience_data_source.rb +1 -0
  45. data/lib/facebook_ads/ad_objects/custom_audience_salts.rb +26 -0
  46. data/lib/facebook_ads/ad_objects/group.rb +3 -4
  47. data/lib/facebook_ads/ad_objects/ig_media.rb +8 -0
  48. data/lib/facebook_ads/ad_objects/ig_user.rb +28 -0
  49. data/lib/facebook_ads/ad_objects/insights_result.rb +1 -1
  50. data/lib/facebook_ads/ad_objects/instagram_insights_result.rb +2 -5
  51. data/lib/facebook_ads/ad_objects/instagram_user.rb +4 -0
  52. data/lib/facebook_ads/ad_objects/leadgen_form.rb +1 -1
  53. data/lib/facebook_ads/ad_objects/page.rb +2 -12
  54. data/lib/facebook_ads/ad_objects/product_catalog.rb +8 -3
  55. data/lib/facebook_ads/ad_objects/product_feed.rb +1 -0
  56. data/lib/facebook_ads/ad_objects/product_group.rb +0 -3
  57. data/lib/facebook_ads/ad_objects/product_item.rb +23 -3
  58. data/lib/facebook_ads/ad_objects/profile.rb +0 -1
  59. data/lib/facebook_ads/ad_objects/profile_picture_source.rb +0 -4
  60. data/lib/facebook_ads/ad_objects/server_side/action_source.rb +3 -0
  61. data/lib/facebook_ads/ad_objects/server_side/event.rb +22 -2
  62. data/lib/facebook_ads/ad_objects/server_side/messaging_channel.rb +27 -0
  63. data/lib/facebook_ads/ad_objects/server_side/user_data.rb +41 -3
  64. data/lib/facebook_ads/ad_objects/shop.rb +1 -0
  65. data/lib/facebook_ads/ad_objects/targeting.rb +2 -0
  66. data/lib/facebook_ads/ad_objects/targeting_automation.rb +27 -0
  67. data/lib/facebook_ads/ad_objects/user.rb +0 -16
  68. data/lib/facebook_ads/ad_objects/{whitehat_fbdl_run.rb → video_copyright_check_status.rb} +4 -8
  69. data/lib/facebook_ads/ad_objects/video_status.rb +30 -0
  70. data/lib/facebook_ads/ad_objects/video_status_error.rb +26 -0
  71. data/lib/facebook_ads/ad_objects/{game_item.rb → video_status_processing_phase.rb} +4 -14
  72. data/lib/facebook_ads/ad_objects/video_status_publishing_phase.rb +28 -0
  73. data/lib/facebook_ads/ad_objects/video_status_uploading_phase.rb +28 -0
  74. data/lib/facebook_ads/ad_objects/whats_app_business_account.rb +3 -1
  75. data/lib/facebook_ads/ad_objects/whats_app_business_partner_client_verification_submission.rb +30 -0
  76. data/lib/facebook_ads/api_request.rb +2 -2
  77. data/lib/facebook_ads/field_types/upload_file.rb +3 -3
  78. data/lib/facebook_ads/version.rb +2 -2
  79. data/lib/facebook_ads/videos/video_io.rb +1 -1
  80. metadata +27 -9
@@ -45,7 +45,11 @@ module FacebookAds
45
45
  field :interactive_component_sticker_id, 'string'
46
46
  field :interactive_component_sticker_response, 'string'
47
47
  field :skan_click, { list: 'int' }
48
+ field :skan_click_second_postback, { list: 'int' }
49
+ field :skan_click_third_postback, { list: 'int' }
48
50
  field :skan_view, { list: 'int' }
51
+ field :skan_view_second_postback, { list: 'int' }
52
+ field :skan_view_third_postback, { list: 'int' }
49
53
  field :value, { list: 'int' }
50
54
  has_no_id
51
55
  has_no_get
@@ -39,6 +39,8 @@ module FacebookAds
39
39
  "action_type",
40
40
  "action_video_sound",
41
41
  "action_video_type",
42
+ "conversion_destination",
43
+ "signal_source_bucket",
42
44
  "standard_event_content_type",
43
45
  ]
44
46
 
@@ -55,6 +57,7 @@ module FacebookAds
55
57
  "body_asset",
56
58
  "call_to_action_asset",
57
59
  "coarse_conversion_value",
60
+ "conversion_destination",
58
61
  "country",
59
62
  "description_asset",
60
63
  "device_platform",
@@ -68,6 +71,7 @@ module FacebookAds
68
71
  "image_asset",
69
72
  "impression_device",
70
73
  "is_conversion_id_modeled",
74
+ "landing_destination",
71
75
  "link_url_asset",
72
76
  "marketing_messages_btn_name",
73
77
  "mdsa_landing_destination",
@@ -106,7 +110,7 @@ module FacebookAds
106
110
  "last_week_mon_sun",
107
111
  "last_week_sun_sat",
108
112
  "last_year",
109
- "maximum",
113
+ "lifetime",
110
114
  "this_month",
111
115
  "this_quarter",
112
116
  "this_week_mon_today",
@@ -134,6 +138,8 @@ module FacebookAds
134
138
  "action_type",
135
139
  "action_video_sound",
136
140
  "action_video_type",
141
+ "conversion_destination",
142
+ "signal_source_bucket",
137
143
  "standard_event_content_type",
138
144
  ]
139
145
 
@@ -128,6 +128,7 @@ module FacebookAds
128
128
  api.has_param :namespace_id, 'string'
129
129
  api.has_param :partner_agent, 'string'
130
130
  api.has_param :platforms, { list: 'hash' }
131
+ api.has_param :progress, 'object'
131
132
  api.has_param :test_event_code, 'string'
132
133
  api.has_param :trace, 'int'
133
134
  api.has_param :upload_id, 'string'
@@ -136,10 +137,6 @@ module FacebookAds
136
137
  end
137
138
  end
138
139
 
139
- has_edge :meapitocapiconsolidationhelper do |edge|
140
- edge.post
141
- end
142
-
143
140
  has_edge :offline_event_uploads do |edge|
144
141
  edge.get 'OfflineConversionDataSetUpload' do |api|
145
142
  api.has_param :end_time, 'datetime'
@@ -0,0 +1,39 @@
1
+ # Copyright (c) Meta Platforms, Inc. and affiliates.
2
+ # All rights reserved.
3
+
4
+ # This source code is licensed under the license found in the
5
+ # LICENSE file in the root directory of this source tree.
6
+
7
+ # FB:AUTOGEN
8
+
9
+ module FacebookAds
10
+ # This class is auto-generated.
11
+
12
+ # For any issues or feature requests related to this class, please let us know
13
+ # on github and we'll fix in our codegen framework. We'll not be able to accept
14
+ # pull request for this class.
15
+
16
+ class AnalyticsSegment < AdObject
17
+
18
+ field :custom_audience_ineligiblity_reasons, { list: 'string' }
19
+ field :description, 'string'
20
+ field :estimated_custom_audience_size, 'int'
21
+ field :event_info_rules, { list: 'object' }
22
+ field :event_rules, { list: 'object' }
23
+ field :filter_set, 'string'
24
+ field :has_demographic_rules, 'bool'
25
+ field :id, 'string'
26
+ field :is_all_user, 'bool'
27
+ field :is_eligible_for_push_campaign, 'bool'
28
+ field :is_internal, 'bool'
29
+ field :name, 'string'
30
+ field :percentile_rules, { list: 'object' }
31
+ field :time_last_seen, 'int'
32
+ field :time_last_updated, 'int'
33
+ field :user_property_rules, { list: 'object' }
34
+ field :web_param_rules, { list: 'object' }
35
+ has_no_post
36
+ has_no_delete
37
+
38
+ end
39
+ end
@@ -458,6 +458,7 @@ module FacebookAds
458
458
  api.has_param :click_attr_window, 'int'
459
459
  api.has_param :custom_events, { list: 'object' }
460
460
  api.has_param :decline_reason, 'string'
461
+ api.has_param :engagement_type, 'string'
461
462
  api.has_param :event, 'string'
462
463
  api.has_param :event_reported_time, 'int'
463
464
  api.has_param :fb_ad_id, 'int'
@@ -0,0 +1,27 @@
1
+ # Copyright (c) Meta Platforms, Inc. and affiliates.
2
+ # All rights reserved.
3
+
4
+ # This source code is licensed under the license found in the
5
+ # LICENSE file in the root directory of this source tree.
6
+
7
+ # FB:AUTOGEN
8
+
9
+ module FacebookAds
10
+ # This class is auto-generated.
11
+
12
+ # For any issues or feature requests related to this class, please let us know
13
+ # on github and we'll fix in our codegen framework. We'll not be able to accept
14
+ # pull request for this class.
15
+
16
+ class BrandedContentShadowIgMediaId < AdObject
17
+
18
+ field :eligibility_errors, { list: 'string' }
19
+ field :id, 'string'
20
+ field :owner_id, 'string'
21
+ field :permalink, 'string'
22
+ has_no_get
23
+ has_no_post
24
+ has_no_delete
25
+
26
+ end
27
+ end
@@ -0,0 +1,24 @@
1
+ # Copyright (c) Meta Platforms, Inc. and affiliates.
2
+ # All rights reserved.
3
+
4
+ # This source code is licensed under the license found in the
5
+ # LICENSE file in the root directory of this source tree.
6
+
7
+ # FB:AUTOGEN
8
+
9
+ module FacebookAds
10
+ # This class is auto-generated.
11
+
12
+ # For any issues or feature requests related to this class, please let us know
13
+ # on github and we'll fix in our codegen framework. We'll not be able to accept
14
+ # pull request for this class.
15
+
16
+ class BrandedContentShadowIgUserId < AdObject
17
+
18
+ field :id, 'string'
19
+ has_no_get
20
+ has_no_post
21
+ has_no_delete
22
+
23
+ end
24
+ end
@@ -35,6 +35,7 @@ module FacebookAds
35
35
  "LUXURY",
36
36
  "MARKETING",
37
37
  "NON_PROFIT",
38
+ "NOT_SET",
38
39
  "ORGANIZATIONS_AND_ASSOCIATIONS",
39
40
  "OTHER",
40
41
  "PROFESSIONAL_SERVICES",
@@ -720,7 +721,7 @@ module FacebookAds
720
721
  api.has_param :survey_num_assets, 'int'
721
722
  api.has_param :survey_num_people, 'int'
722
723
  api.has_param :timezone_id, 'int'
723
- api.has_param :vertical, { enum: %w{ADVERTISING AUTOMOTIVE CONSUMER_PACKAGED_GOODS ECOMMERCE EDUCATION ENERGY_AND_UTILITIES ENTERTAINMENT_AND_MEDIA FINANCIAL_SERVICES GAMING GOVERNMENT_AND_POLITICS HEALTH LUXURY MARKETING NON_PROFIT ORGANIZATIONS_AND_ASSOCIATIONS OTHER PROFESSIONAL_SERVICES RESTAURANT RETAIL TECHNOLOGY TELECOM TRAVEL }}
724
+ api.has_param :vertical, { enum: %w{ADVERTISING AUTOMOTIVE CONSUMER_PACKAGED_GOODS ECOMMERCE EDUCATION ENERGY_AND_UTILITIES ENTERTAINMENT_AND_MEDIA FINANCIAL_SERVICES GAMING GOVERNMENT_AND_POLITICS HEALTH LUXURY MARKETING NON_PROFIT NOT_SET ORGANIZATIONS_AND_ASSOCIATIONS OTHER PROFESSIONAL_SERVICES RESTAURANT RETAIL TECHNOLOGY TELECOM TRAVEL }}
724
725
  end
725
726
  end
726
727
 
@@ -815,6 +816,7 @@ module FacebookAds
815
816
  has_edge :owned_product_catalogs do |edge|
816
817
  edge.get 'ProductCatalog'
817
818
  edge.post 'ProductCatalog' do |api|
819
+ api.has_param :additional_vertical_option, { enum: -> { ProductCatalog::ADDITIONAL_VERTICAL_OPTION }}
818
820
  api.has_param :catalog_segment_filter, 'object'
819
821
  api.has_param :catalog_segment_product_set_id, 'string'
820
822
  api.has_param :da_display_settings, 'object'
@@ -885,7 +887,6 @@ module FacebookAds
885
887
 
886
888
  has_edge :picture do |edge|
887
889
  edge.get 'ProfilePictureSource' do |api|
888
- api.has_param :breaking_change, { enum: -> { ProfilePictureSource::BREAKING_CHANGE }}
889
890
  api.has_param :height, 'int'
890
891
  api.has_param :redirect, 'bool'
891
892
  api.has_param :type, { enum: -> { ProfilePictureSource::TYPE }}
@@ -911,6 +912,12 @@ module FacebookAds
911
912
  end
912
913
  end
913
914
 
915
+ has_edge :self_certified_whatsapp_business_submissions do |edge|
916
+ edge.get 'WhatsAppBusinessPartnerClientVerificationSubmission' do |api|
917
+ api.has_param :end_business_id, 'string'
918
+ end
919
+ end
920
+
914
921
  has_edge :setup_managed_partner_adaccounts do |edge|
915
922
  edge.post 'Business' do |api|
916
923
  api.has_param :credit_line_id, 'string'
@@ -18,6 +18,7 @@ module FacebookAds
18
18
  "COST_CAP",
19
19
  "LOWEST_COST_WITHOUT_CAP",
20
20
  "LOWEST_COST_WITH_BID_CAP",
21
+ "LOWEST_COST_WITH_MIN_ROAS",
21
22
  ]
22
23
 
23
24
  CONFIGURED_STATUS = [
@@ -56,7 +57,7 @@ module FacebookAds
56
57
  "last_week_mon_sun",
57
58
  "last_week_sun_sat",
58
59
  "last_year",
59
- "maximum",
60
+ "lifetime",
60
61
  "this_month",
61
62
  "this_quarter",
62
63
  "this_week_mon_today",
@@ -44,6 +44,10 @@ module FacebookAds
44
44
  field :use_retailer_item_ids, 'bool'
45
45
  has_no_delete
46
46
 
47
+ has_edge :preview do |edge|
48
+ edge.get 'CanvasPreview'
49
+ end
50
+
47
51
  has_edge :previews do |edge|
48
52
  edge.get 'TextWithEntities' do |api|
49
53
  api.has_param :user_ids, { list: 'int' }
@@ -0,0 +1,25 @@
1
+ # Copyright (c) Meta Platforms, Inc. and affiliates.
2
+ # All rights reserved.
3
+
4
+ # This source code is licensed under the license found in the
5
+ # LICENSE file in the root directory of this source tree.
6
+
7
+ # FB:AUTOGEN
8
+
9
+ module FacebookAds
10
+ # This class is auto-generated.
11
+
12
+ # For any issues or feature requests related to this class, please let us know
13
+ # on github and we'll fix in our codegen framework. We'll not be able to accept
14
+ # pull request for this class.
15
+
16
+ class CanvasPreview < AdObject
17
+
18
+ field :body, 'string'
19
+ has_no_id
20
+ has_no_get
21
+ has_no_post
22
+ has_no_delete
23
+
24
+ end
25
+ end
@@ -74,13 +74,6 @@ module FacebookAds
74
74
  end
75
75
  end
76
76
 
77
- has_edge :onsite_conversion_events do |edge|
78
- edge.get do |api|
79
- api.has_param :created_after, 'datetime'
80
- api.has_param :created_before, 'datetime'
81
- end
82
- end
83
-
84
77
  has_edge :order_management_apps do |edge|
85
78
  edge.get 'Application'
86
79
  edge.post 'CommerceMerchantSettings'
@@ -105,6 +105,7 @@ module FacebookAds
105
105
  has_edge :refunds do |edge|
106
106
  edge.get
107
107
  edge.post 'CommerceOrder' do |api|
108
+ api.has_param :adjustment_amount, 'hash'
108
109
  api.has_param :deductions, { list: 'hash' }
109
110
  api.has_param :idempotency_key, 'string'
110
111
  api.has_param :items, { list: 'hash' }
@@ -158,6 +158,17 @@ module FacebookAds
158
158
  end
159
159
  end
160
160
 
161
+ has_edge :salts do |edge|
162
+ edge.get 'CustomAudienceSalts' do |api|
163
+ api.has_param :params, { list: 'string' }
164
+ end
165
+ edge.post 'CustomAudience' do |api|
166
+ api.has_param :salt, 'string'
167
+ api.has_param :valid_from, 'datetime'
168
+ api.has_param :valid_to, 'datetime'
169
+ end
170
+ end
171
+
161
172
  has_edge :sessions do |edge|
162
173
  edge.get 'CustomAudienceSession' do |api|
163
174
  api.has_param :session_id, 'int'
@@ -74,6 +74,7 @@ module FacebookAds
74
74
  "WEB_PIXEL_COMBINATION_EVENTS",
75
75
  "WEB_PIXEL_HITS",
76
76
  "WEB_PIXEL_HITS_CUSTOM_AUDIENCE_USERS",
77
+ "WHATSAPP_SUBSCRIBER_POOL",
77
78
  ]
78
79
 
79
80
  TYPE = [
@@ -0,0 +1,26 @@
1
+ # Copyright (c) Meta Platforms, Inc. and affiliates.
2
+ # All rights reserved.
3
+
4
+ # This source code is licensed under the license found in the
5
+ # LICENSE file in the root directory of this source tree.
6
+
7
+ # FB:AUTOGEN
8
+
9
+ module FacebookAds
10
+ # This class is auto-generated.
11
+
12
+ # For any issues or feature requests related to this class, please let us know
13
+ # on github and we'll fix in our codegen framework. We'll not be able to accept
14
+ # pull request for this class.
15
+
16
+ class CustomAudienceSalts < AdObject
17
+
18
+ field :app_id, 'int'
19
+ field :public_key, 'string'
20
+ has_no_id
21
+ has_no_get
22
+ has_no_post
23
+ has_no_delete
24
+
25
+ end
26
+ end
@@ -21,9 +21,9 @@ module FacebookAds
21
21
  ]
22
22
 
23
23
  POST_PERMISSIONS = [
24
- "0",
25
- "1",
26
- "2",
24
+ "ADMIN_ONLY",
25
+ "ANYONE",
26
+ "NONE",
27
27
  ]
28
28
 
29
29
  PURPOSE = [
@@ -394,7 +394,6 @@ module FacebookAds
394
394
 
395
395
  has_edge :picture do |edge|
396
396
  edge.get 'ProfilePictureSource' do |api|
397
- api.has_param :breaking_change, { enum: -> { ProfilePictureSource::BREAKING_CHANGE }}
398
397
  api.has_param :height, 'int'
399
398
  api.has_param :redirect, 'bool'
400
399
  api.has_param :type, { enum: -> { ProfilePictureSource::TYPE }}
@@ -34,6 +34,14 @@ module FacebookAds
34
34
  field :username, 'string'
35
35
  has_no_delete
36
36
 
37
+ has_edge :branded_content_partner_promote do |edge|
38
+ edge.get 'BrandedContentShadowIgUserId'
39
+ edge.post 'BrandedContentShadowIgUserId' do |api|
40
+ api.has_param :permission, 'bool'
41
+ api.has_param :sponsor_id, 'int'
42
+ end
43
+ end
44
+
37
45
  has_edge :children do |edge|
38
46
  edge.get 'IgMedia'
39
47
  end
@@ -38,6 +38,34 @@ module FacebookAds
38
38
  edge.get 'UserAvailableCatalogs'
39
39
  end
40
40
 
41
+ has_edge :branded_content_ad_permissions do |edge|
42
+ edge.get 'IgbcAdsPermission'
43
+ edge.post 'IgbcAdsPermission' do |api|
44
+ api.has_param :creator_instagram_account, 'string'
45
+ api.has_param :revoke, 'bool'
46
+ end
47
+ end
48
+
49
+ has_edge :branded_content_advertisable_medias do |edge|
50
+ edge.get 'BrandedContentShadowIgMediaId' do |api|
51
+ api.has_param :creator_username, 'string'
52
+ api.has_param :only_fetch_allowlisted, 'bool'
53
+ api.has_param :permalinks, { list: 'string' }
54
+ end
55
+ end
56
+
57
+ has_edge :branded_content_tag_approval do |edge|
58
+ edge.delete do |api|
59
+ api.has_param :user_ids, { list: 'int' }
60
+ end
61
+ edge.get 'BrandedContentShadowIgUserId' do |api|
62
+ api.has_param :user_ids, { list: 'int' }
63
+ end
64
+ edge.post 'BrandedContentShadowIgUserId' do |api|
65
+ api.has_param :user_ids, { list: 'int' }
66
+ end
67
+ end
68
+
41
69
  has_edge :catalog_product_search do |edge|
42
70
  edge.get 'ShadowIgUserCatalogProductSearch' do |api|
43
71
  api.has_param :catalog_id, 'string'
@@ -27,7 +27,7 @@ module FacebookAds
27
27
  "last_week_mon_sun",
28
28
  "last_week_sun_sat",
29
29
  "last_year",
30
- "maximum",
30
+ "lifetime",
31
31
  "this_month",
32
32
  "this_quarter",
33
33
  "this_week_mon_today",
@@ -22,15 +22,12 @@ module FacebookAds
22
22
  ]
23
23
 
24
24
  METRIC = [
25
- "carousel_album_engagement",
26
- "carousel_album_impressions",
27
- "carousel_album_reach",
28
- "carousel_album_saved",
29
- "carousel_album_video_views",
25
+ "clips_replays_count",
30
26
  "comments",
31
27
  "engagement",
32
28
  "exits",
33
29
  "follows",
30
+ "ig_reels_aggregated_all_plays_count",
34
31
  "ig_reels_avg_watch_time",
35
32
  "ig_reels_video_view_total_time",
36
33
  "impressions",
@@ -47,5 +47,9 @@ module FacebookAds
47
47
  end
48
48
  end
49
49
 
50
+ has_edge :upcoming_events do |edge|
51
+ edge.get
52
+ end
53
+
50
54
  end
51
55
  end
@@ -79,7 +79,7 @@ module FacebookAds
79
79
  field :questions, { list: 'LeadGenQuestion' }
80
80
  field :status, 'string'
81
81
  field :thank_you_page, 'LeadGenThankYouPage'
82
- field :tracking_parameters, { list: 'hash' }
82
+ field :tracking_parameters, { list: 'KeyValue' }
83
83
  has_no_delete
84
84
 
85
85
  has_edge :leads do |edge|
@@ -332,6 +332,7 @@ module FacebookAds
332
332
  "message_context",
333
333
  "message_deliveries",
334
334
  "message_echoes",
335
+ "message_edits",
335
336
  "message_mention",
336
337
  "message_reactions",
337
338
  "message_reads",
@@ -388,6 +389,7 @@ module FacebookAds
388
389
  field :app_id, 'string'
389
390
  field :artists_we_like, 'string'
390
391
  field :attire, 'string'
392
+ field :available_promo_offer_ids, { list: 'map<string, list<map<string, string>>>' }
391
393
  field :awards, 'string'
392
394
  field :band_interests, 'string'
393
395
  field :band_members, 'string'
@@ -436,7 +438,6 @@ module FacebookAds
436
438
  field :has_lead_access, 'HasLeadAccess'
437
439
  field :has_transitioned_to_new_page_experience, 'bool'
438
440
  field :has_whatsapp_business_number, 'bool'
439
- field :has_whatsapp_enterprise_number_using_cloud_api, 'bool'
440
441
  field :has_whatsapp_number, 'bool'
441
442
  field :hometown, 'string'
442
443
  field :hours, 'hash'
@@ -480,7 +481,6 @@ module FacebookAds
480
481
  field :offer_eligible, 'bool'
481
482
  field :overall_star_rating, 'double'
482
483
  field :owner_business, 'Business'
483
- field :page_about_story, 'PageAboutStory'
484
484
  field :page_token, 'string'
485
485
  field :parent_page, 'Page'
486
486
  field :parking, 'PageParking'
@@ -955,15 +955,6 @@ module FacebookAds
955
955
  edge.get 'InstagramUser'
956
956
  end
957
957
 
958
- has_edge :instant_articles_stats do |edge|
959
- edge.get 'InstantArticlesStats' do |api|
960
- api.has_param :metrics_list, { list: 'hash' }
961
- api.has_param :page_list, { list: 'string' }
962
- api.has_param :since, 'datetime'
963
- api.has_param :until, 'datetime'
964
- end
965
- end
966
-
967
958
  has_edge :leadgen_forms do |edge|
968
959
  edge.get 'LeadgenForm'
969
960
  edge.post 'LeadgenForm' do |api|
@@ -1266,7 +1257,6 @@ module FacebookAds
1266
1257
 
1267
1258
  has_edge :picture do |edge|
1268
1259
  edge.get 'ProfilePictureSource' do |api|
1269
- api.has_param :breaking_change, { enum: -> { ProfilePictureSource::BREAKING_CHANGE }}
1270
1260
  api.has_param :height, 'int'
1271
1261
  api.has_param :redirect, 'bool'
1272
1262
  api.has_param :type, { enum: -> { ProfilePictureSource::TYPE }}
@@ -14,12 +14,18 @@ module FacebookAds
14
14
  # pull request for this class.
15
15
 
16
16
  class ProductCatalog < AdObject
17
+ ADDITIONAL_VERTICAL_OPTION = [
18
+ "LOCAL_DA_CATALOG",
19
+ "LOCAL_PRODUCTS",
20
+ ]
21
+
17
22
  VERTICAL = [
18
23
  "adoptable_pets",
19
24
  "bookable",
20
25
  "commerce",
21
26
  "destinations",
22
27
  "flights",
28
+ "generic",
23
29
  "home_listings",
24
30
  "hotels",
25
31
  "jobs",
@@ -97,12 +103,14 @@ module FacebookAds
97
103
  field :feed_count, 'int'
98
104
  field :id, 'string'
99
105
  field :is_catalog_segment, 'bool'
106
+ field :is_local_catalog, 'bool'
100
107
  field :name, 'string'
101
108
  field :owner_business, 'Business'
102
109
  field :product_count, 'int'
103
110
  field :store_catalog_settings, 'StoreCatalogSettings'
104
111
  field :user_access_expire_time, 'datetime'
105
112
  field :vertical, 'string'
113
+ field :additional_vertical_option, { enum: -> { ADDITIONAL_VERTICAL_OPTION }}
106
114
  field :catalog_segment_filter, 'object'
107
115
  field :catalog_segment_product_set_id, 'string'
108
116
  field :destination_catalog_settings, 'hash'
@@ -452,9 +460,6 @@ module FacebookAds
452
460
  api.has_param :material, 'string'
453
461
  api.has_param :mobile_link, 'string'
454
462
  api.has_param :name, 'string'
455
- api.has_param :offer_price_amount, 'int'
456
- api.has_param :offer_price_end_date, 'datetime'
457
- api.has_param :offer_price_start_date, 'datetime'
458
463
  api.has_param :ordering_index, 'int'
459
464
  api.has_param :origin_country, { enum: -> { ProductItem::ORIGIN_COUNTRY }}
460
465
  api.has_param :pattern, 'string'
@@ -97,6 +97,7 @@ module FacebookAds
97
97
  "LANGUAGE_AND_COUNTRY",
98
98
  "LOCAL",
99
99
  "SMART_PIXEL_LANGUAGE_OR_COUNTRY",
100
+ "VERSION",
100
101
  ]
101
102
 
102
103
 
@@ -70,9 +70,6 @@ module FacebookAds
70
70
  api.has_param :material, 'string'
71
71
  api.has_param :mobile_link, 'string'
72
72
  api.has_param :name, 'string'
73
- api.has_param :offer_price_amount, 'int'
74
- api.has_param :offer_price_end_date, 'datetime'
75
- api.has_param :offer_price_start_date, 'datetime'
76
73
  api.has_param :ordering_index, 'int'
77
74
  api.has_param :pattern, 'string'
78
75
  api.has_param :price, 'int'