facebookbusiness 21.0.2 → 22.0.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.
Files changed (72) hide show
  1. checksums.yaml +4 -4
  2. data/lib/facebook_ads/ad_objects/ad_account.rb +19 -2
  3. data/lib/facebook_ads/ad_objects/ad_account_ad_volume.rb +15 -0
  4. data/lib/facebook_ads/ad_objects/ad_account_targeting_unified.rb +1 -1
  5. data/lib/facebook_ads/ad_objects/ad_account_user_settings.rb +3 -0
  6. data/lib/facebook_ads/ad_objects/ad_asset_feed_spec.rb +4 -0
  7. data/lib/facebook_ads/ad_objects/ad_creative.rb +3 -3
  8. data/lib/facebook_ads/ad_objects/ad_creative_feature_customizations.rb +5 -0
  9. data/lib/facebook_ads/ad_objects/ad_creative_link_data_call_to_action.rb +2 -0
  10. data/lib/facebook_ads/ad_objects/ad_creative_object_story_spec.rb +1 -1
  11. data/lib/facebook_ads/ad_objects/ad_creative_regional_regulation_disclaimer.rb +3 -0
  12. data/lib/facebook_ads/ad_objects/ad_creative_sourcing_spec.rb +1 -0
  13. data/lib/facebook_ads/ad_objects/ad_promoted_object.rb +35 -0
  14. data/lib/facebook_ads/ad_objects/ad_rule_execution_spec.rb +1 -0
  15. data/lib/facebook_ads/ad_objects/ad_set.rb +3 -1
  16. data/lib/facebook_ads/ad_objects/ad_video.rb +13 -17
  17. data/lib/facebook_ads/ad_objects/{parent_catalog_report.rb → ads_eligibility.rb} +2 -3
  18. data/lib/facebook_ads/ad_objects/ads_insights.rb +10 -0
  19. data/lib/facebook_ads/ad_objects/{ads_data_partner.rb → ads_mcme_conversion.rb} +6 -2
  20. data/lib/facebook_ads/ad_objects/ads_quick_views.rb +1 -0
  21. data/lib/facebook_ads/ad_objects/ads_user_settings.rb +3 -0
  22. data/lib/facebook_ads/ad_objects/album.rb +1 -0
  23. data/lib/facebook_ads/ad_objects/application.rb +12 -6
  24. data/lib/facebook_ads/ad_objects/audio_visual_reference_match.rb +1 -0
  25. data/lib/facebook_ads/ad_objects/automotive_model.rb +9 -0
  26. data/lib/facebook_ads/ad_objects/business.rb +0 -2
  27. data/lib/facebook_ads/ad_objects/{domain.rb → catalog_content_version_config.rb} +2 -2
  28. data/lib/facebook_ads/ad_objects/copyright_reference_container.rb +1 -0
  29. data/lib/facebook_ads/ad_objects/custom_audience.rb +1 -1
  30. data/lib/facebook_ads/ad_objects/destination.rb +4 -0
  31. data/lib/facebook_ads/ad_objects/fb_image_copyright_match.rb +1 -0
  32. data/lib/facebook_ads/ad_objects/flight.rb +15 -0
  33. data/lib/facebook_ads/ad_objects/funding_source_details_coupon.rb +1 -0
  34. data/lib/facebook_ads/ad_objects/{instagram_boostable_media_for_access_token.rb → funding_source_details_coupon_tiering.rb} +3 -3
  35. data/lib/facebook_ads/ad_objects/group.rb +1 -0
  36. data/lib/facebook_ads/ad_objects/home_listing.rb +10 -0
  37. data/lib/facebook_ads/ad_objects/hotel.rb +10 -0
  38. data/lib/facebook_ads/ad_objects/ig_media_for_ig_only_api.rb +1 -0
  39. data/lib/facebook_ads/ad_objects/ig_user.rb +18 -0
  40. data/lib/facebook_ads/ad_objects/ig_user_for_ig_only_api.rb +14 -1
  41. data/lib/facebook_ads/ad_objects/insights_result.rb +17 -0
  42. data/lib/facebook_ads/ad_objects/insights_value.rb +1 -0
  43. data/lib/facebook_ads/ad_objects/instagram_carousel.rb +0 -8
  44. data/lib/facebook_ads/ad_objects/instagram_comment.rb +1 -8
  45. data/lib/facebook_ads/ad_objects/instagram_insights_result.rb +1 -0
  46. data/lib/facebook_ads/ad_objects/instagram_media.rb +0 -8
  47. data/lib/facebook_ads/ad_objects/lead_gen_form_preview_details.rb +1 -0
  48. data/lib/facebook_ads/ad_objects/messenger_business_template.rb +2 -0
  49. data/lib/facebook_ads/ad_objects/music_work_copyright.rb +2 -0
  50. data/lib/facebook_ads/ad_objects/open_bridge_configuration.rb +0 -2
  51. data/lib/facebook_ads/ad_objects/page.rb +14 -21
  52. data/lib/facebook_ads/ad_objects/page_change_proposal.rb +0 -2
  53. data/lib/facebook_ads/ad_objects/product_catalog.rb +4 -0
  54. data/lib/facebook_ads/ad_objects/reach_frequency_prediction.rb +3 -3
  55. data/lib/facebook_ads/ad_objects/recommended_ig_media.rb +0 -1
  56. data/lib/facebook_ads/ad_objects/regional_regulation_identities.rb +2 -0
  57. data/lib/facebook_ads/ad_objects/{instagram_video_metadata.rb → targeting_subscriber_universe.rb} +3 -4
  58. data/lib/facebook_ads/ad_objects/third_party_partner_lift_request.rb +3 -0
  59. data/lib/facebook_ads/ad_objects/user.rb +7 -0
  60. data/lib/facebook_ads/ad_objects/vehicle.rb +9 -0
  61. data/lib/facebook_ads/ad_objects/vehicle_offer.rb +10 -0
  62. data/lib/facebook_ads/ad_objects/video_copyright_match.rb +1 -0
  63. data/lib/facebook_ads/ad_objects/whats_app_business_account.rb +40 -7
  64. data/lib/facebook_ads/ad_objects/whats_app_business_partner_client_verification_submission.rb +1 -0
  65. data/lib/facebook_ads/version.rb +2 -2
  66. data/lib/facebook_ads.rb +2 -2
  67. metadata +11 -16
  68. data/lib/facebook_ads/ad_objects/marketing_message_targeting.rb +0 -29
  69. data/lib/facebook_ads/ad_objects/merchant_report.rb +0 -39
  70. data/lib/facebook_ads/ad_objects/private_computation_environment.rb +0 -28
  71. data/lib/facebook_ads/ad_objects/product_catalog_user_permissions.rb +0 -34
  72. data/lib/facebook_ads/ad_objects/video_metrics_report.rb +0 -33
@@ -227,6 +227,7 @@ module FacebookAds
227
227
  api.has_param :app_user_id, 'string'
228
228
  api.has_param :application_tracking_enabled, 'bool'
229
229
  api.has_param :attribution, 'string'
230
+ api.has_param :attribution_sources, { list: 'hash' }
230
231
  api.has_param :auto_publish, 'bool'
231
232
  api.has_param :bundle_id, 'string'
232
233
  api.has_param :bundle_short_version, 'string'
@@ -248,8 +249,10 @@ module FacebookAds
248
249
  api.has_param :install_referrer, 'string'
249
250
  api.has_param :install_timestamp, 'int'
250
251
  api.has_param :installer_package, 'string'
252
+ api.has_param :is_fb, 'bool'
251
253
  api.has_param :limited_data_use, 'bool'
252
254
  api.has_param :migration_bundle, 'string'
255
+ api.has_param :operational_parameters, { list: 'hash' }
253
256
  api.has_param :page_id, 'int'
254
257
  api.has_param :page_scoped_user_id, 'int'
255
258
  api.has_param :receipt_data, 'string'
@@ -473,18 +476,27 @@ module FacebookAds
473
476
  edge.post do |api|
474
477
  api.has_param :advertiser_id, 'string'
475
478
  api.has_param :attribution, 'string'
479
+ api.has_param :attribution_method, 'string'
476
480
  api.has_param :attribution_model, 'string'
481
+ api.has_param :attribution_referrer, 'string'
477
482
  api.has_param :auditing_token, 'string'
478
483
  api.has_param :click_attr_window, 'int'
479
484
  api.has_param :custom_events, { list: 'object' }
480
485
  api.has_param :decline_reason, 'string'
486
+ api.has_param :device_os, 'string'
481
487
  api.has_param :engagement_type, 'string'
482
488
  api.has_param :event, 'string'
489
+ api.has_param :event_id, 'string'
483
490
  api.has_param :event_reported_time, 'int'
484
491
  api.has_param :fb_ad_id, 'int'
492
+ api.has_param :fb_adgroup_id, 'int'
485
493
  api.has_param :fb_click_time, 'int'
486
494
  api.has_param :fb_view_time, 'int'
495
+ api.has_param :google_install_referrer, 'string'
496
+ api.has_param :inactivity_window_hours, 'int'
497
+ api.has_param :install_id, 'string'
487
498
  api.has_param :is_fb, 'bool'
499
+ api.has_param :meta_install_referrer, 'string'
488
500
  api.has_param :used_install_referrer, 'bool'
489
501
  api.has_param :view_attr_window, 'int'
490
502
  end
@@ -523,12 +535,6 @@ module FacebookAds
523
535
  end
524
536
  end
525
537
 
526
- has_edge :payment_currencies do |edge|
527
- edge.post 'Application' do |api|
528
- api.has_param :currency_url, 'string'
529
- end
530
- end
531
-
532
538
  has_edge :permissions do |edge|
533
539
  edge.get do |api|
534
540
  api.has_param :android_key_hash, 'string'
@@ -18,6 +18,7 @@ module FacebookAds
18
18
  field :audio_conflicting_segments, { list: 'object' }
19
19
  field :audio_current_conflict_resolved_segments, { list: 'object' }
20
20
  field :audio_segment_resolution_history, { list: 'object' }
21
+ field :conflict_status, 'string'
21
22
  field :conflict_type, 'string'
22
23
  field :conflicting_countries, { list: 'string' }
23
24
  field :country_resolution_history, { list: 'map<string, list<Object>>' }
@@ -36,6 +36,15 @@ module FacebookAds
36
36
  field :category_specific_fields, 'CatalogSubVerticalList'
37
37
  field :currency, 'string'
38
38
  field :custom_label_0, 'string'
39
+ field :custom_label_1, 'string'
40
+ field :custom_label_2, 'string'
41
+ field :custom_label_3, 'string'
42
+ field :custom_label_4, 'string'
43
+ field :custom_number_0, 'int'
44
+ field :custom_number_1, 'int'
45
+ field :custom_number_2, 'int'
46
+ field :custom_number_3, 'int'
47
+ field :custom_number_4, 'int'
39
48
  field :description, 'string'
40
49
  field :drivetrain, 'string'
41
50
  field :exterior_color, 'string'
@@ -1290,10 +1290,8 @@ module FacebookAds
1290
1290
  api.has_param :destination_id, 'string'
1291
1291
  api.has_param :endpoint, 'string'
1292
1292
  api.has_param :fallback_domain, 'string'
1293
- api.has_param :fallback_domain_enabled, 'bool'
1294
1293
  api.has_param :first_party_domain, 'string'
1295
1294
  api.has_param :host_business_id, 'int'
1296
- api.has_param :host_external_id, 'string'
1297
1295
  api.has_param :instance_id, 'string'
1298
1296
  api.has_param :instance_version, 'string'
1299
1297
  api.has_param :is_sgw_instance, 'bool'
@@ -13,11 +13,11 @@ module FacebookAds
13
13
  # on github and we'll fix in our codegen framework. We'll not be able to accept
14
14
  # pull request for this class.
15
15
 
16
- class Domain < AdObject
16
+ class CatalogContentVersionConfig < AdObject
17
17
 
18
18
  field :id, 'string'
19
19
  field :name, 'string'
20
- field :url, 'string'
20
+ field :version, 'string'
21
21
  has_no_post
22
22
  has_no_delete
23
23
 
@@ -22,6 +22,7 @@ module FacebookAds
22
22
  field :id, 'string'
23
23
  field :iswc, 'string'
24
24
  field :metadata, 'object'
25
+ field :playable_video_uri, 'string'
25
26
  field :published_time, 'datetime'
26
27
  field :thumbnail_url, 'string'
27
28
  field :title, 'string'
@@ -71,7 +71,6 @@ module FacebookAds
71
71
  "PRIMARY",
72
72
  "REGULATED_CATEGORIES_AUDIENCE",
73
73
  "STUDY_RULE_AUDIENCE",
74
- "SUBSCRIBER_SEGMENT",
75
74
  "VIDEO",
76
75
  "WEBSITE",
77
76
  ]
@@ -102,6 +101,7 @@ module FacebookAds
102
101
  field :household_audience, 'int'
103
102
  field :id, 'string'
104
103
  field :included_custom_audiences, { list: 'CustomAudience' }
104
+ field :is_eligible_for_sac_campaigns, 'bool'
105
105
  field :is_household, 'bool'
106
106
  field :is_snapshot, 'bool'
107
107
  field :is_value_based, 'bool'
@@ -36,9 +36,13 @@ module FacebookAds
36
36
  field :custom_label_0, 'string'
37
37
  field :custom_label_1, 'string'
38
38
  field :custom_label_2, 'string'
39
+ field :custom_label_3, 'string'
40
+ field :custom_label_4, 'string'
39
41
  field :custom_number_0, 'int'
40
42
  field :custom_number_1, 'int'
41
43
  field :custom_number_2, 'int'
44
+ field :custom_number_3, 'int'
45
+ field :custom_number_4, 'int'
42
46
  field :description, 'string'
43
47
  field :destination_id, 'string'
44
48
  field :id, 'string'
@@ -20,6 +20,7 @@ module FacebookAds
20
20
  field :audit_log, { list: 'object' }
21
21
  field :available_ui_actions, { list: 'string' }
22
22
  field :expiration_days, 'int'
23
+ field :generic_match_data, { list: 'object' }
23
24
  field :id, 'string'
24
25
  field :is_business_page_match, 'bool'
25
26
  field :last_modified_time, 'datetime'
@@ -32,6 +32,16 @@ module FacebookAds
32
32
  field :applinks, 'CatalogItemAppLinks'
33
33
  field :category_specific_fields, 'CatalogSubVerticalList'
34
34
  field :currency, 'string'
35
+ field :custom_label_0, 'string'
36
+ field :custom_label_1, 'string'
37
+ field :custom_label_2, 'string'
38
+ field :custom_label_3, 'string'
39
+ field :custom_label_4, 'string'
40
+ field :custom_number_0, 'int'
41
+ field :custom_number_1, 'int'
42
+ field :custom_number_2, 'int'
43
+ field :custom_number_3, 'int'
44
+ field :custom_number_4, 'int'
35
45
  field :description, 'string'
36
46
  field :destination_airport, 'string'
37
47
  field :destination_city, 'string'
@@ -44,6 +54,11 @@ module FacebookAds
44
54
  field :origin_airport, 'string'
45
55
  field :origin_city, 'string'
46
56
  field :price, 'string'
57
+ field :product_priority_0, 'double'
58
+ field :product_priority_1, 'double'
59
+ field :product_priority_2, 'double'
60
+ field :product_priority_3, 'double'
61
+ field :product_priority_4, 'double'
47
62
  field :sanitized_images, { list: 'string' }
48
63
  field :tags, { list: 'string' }
49
64
  field :unit_price, 'object'
@@ -18,6 +18,7 @@ module FacebookAds
18
18
  field :amount, 'int'
19
19
  field :campaign_ids, { list: 'int' }
20
20
  field :coupon_id, 'string'
21
+ field :coupon_tiering, 'FundingSourceDetailsCouponTiering'
21
22
  field :currency, 'string'
22
23
  field :display_amount, 'string'
23
24
  field :expiration, 'datetime'
@@ -13,10 +13,10 @@ module FacebookAds
13
13
  # on github and we'll fix in our codegen framework. We'll not be able to accept
14
14
  # pull request for this class.
15
15
 
16
- class InstagramBoostableMediaForAccessToken < AdObject
16
+ class FundingSourceDetailsCouponTiering < AdObject
17
17
 
18
- field :has_product_tags, 'bool'
19
- field :media, 'IgMedia'
18
+ field :coupon_tiering_new, 'object'
19
+ field :coupon_tiering_reactivation, 'object'
20
20
  has_no_id
21
21
  has_no_get
22
22
  has_no_post
@@ -354,6 +354,7 @@ module FacebookAds
354
354
  api.has_param :place, 'object'
355
355
  api.has_param :privacy, 'string'
356
356
  api.has_param :profile_id, 'int'
357
+ api.has_param :provenance_info, 'hash'
357
358
  api.has_param :proxied_app_id, 'string'
358
359
  api.has_param :published, 'bool'
359
360
  api.has_param :qn, 'string'
@@ -44,6 +44,16 @@ module FacebookAds
44
44
  field :category_specific_fields, 'CatalogSubVerticalList'
45
45
  field :co_2_emission_rating_eu, 'object'
46
46
  field :currency, 'string'
47
+ field :custom_label_0, 'string'
48
+ field :custom_label_1, 'string'
49
+ field :custom_label_2, 'string'
50
+ field :custom_label_3, 'string'
51
+ field :custom_label_4, 'string'
52
+ field :custom_number_0, 'int'
53
+ field :custom_number_1, 'int'
54
+ field :custom_number_2, 'int'
55
+ field :custom_number_3, 'int'
56
+ field :custom_number_4, 'int'
47
57
  field :days_on_market, 'int'
48
58
  field :description, 'string'
49
59
  field :energy_rating_eu, 'object'
@@ -35,6 +35,16 @@ module FacebookAds
35
35
  field :category, 'string'
36
36
  field :category_specific_fields, 'CatalogSubVerticalList'
37
37
  field :currency, 'string'
38
+ field :custom_label_0, 'string'
39
+ field :custom_label_1, 'string'
40
+ field :custom_label_2, 'string'
41
+ field :custom_label_3, 'string'
42
+ field :custom_label_4, 'string'
43
+ field :custom_number_0, 'int'
44
+ field :custom_number_1, 'int'
45
+ field :custom_number_2, 'int'
46
+ field :custom_number_3, 'int'
47
+ field :custom_number_4, 'int'
38
48
  field :description, 'string'
39
49
  field :guest_ratings, 'string'
40
50
  field :hotel_id, 'string'
@@ -15,6 +15,7 @@ module FacebookAds
15
15
 
16
16
  class IgMediaForIgOnlyApi < AdObject
17
17
 
18
+ field :alt_text, 'string'
18
19
  field :caption, 'string'
19
20
  field :comments_count, 'int'
20
21
  field :id, 'string'
@@ -19,8 +19,10 @@ module FacebookAds
19
19
  field :business_discovery, 'IgUser'
20
20
  field :followers_count, 'int'
21
21
  field :follows_count, 'int'
22
+ field :has_profile_pic, 'bool'
22
23
  field :id, 'string'
23
24
  field :ig_id, 'int'
25
+ field :is_published, 'bool'
24
26
  field :legacy_instagram_user_id, 'string'
25
27
  field :media_count, 'int'
26
28
  field :mentioned_comment, 'IgComment'
@@ -35,6 +37,20 @@ module FacebookAds
35
37
  has_no_post
36
38
  has_no_delete
37
39
 
40
+ has_edge :agencies do |edge|
41
+ edge.get 'Business'
42
+ end
43
+
44
+ has_edge :authorized_adaccounts do |edge|
45
+ edge.get 'AdAccount' do |api|
46
+ api.has_param :business, 'string'
47
+ end
48
+ edge.post 'IgUser' do |api|
49
+ api.has_param :account_id, 'string'
50
+ api.has_param :business, 'string'
51
+ end
52
+ end
53
+
38
54
  has_edge :available_catalogs do |edge|
39
55
  edge.get 'UserAvailableCatalogs'
40
56
  end
@@ -114,6 +130,7 @@ module FacebookAds
114
130
  api.has_param :until, 'datetime'
115
131
  end
116
132
  edge.post 'IgMedia' do |api|
133
+ api.has_param :alt_text, 'string'
117
134
  api.has_param :audio_name, 'string'
118
135
  api.has_param :caption, 'string'
119
136
  api.has_param :children, { list: 'string' }
@@ -173,6 +190,7 @@ module FacebookAds
173
190
  end
174
191
 
175
192
  has_edge :upcoming_events do |edge|
193
+ edge.get 'IgUpcomingEvent'
176
194
  edge.post do |api|
177
195
  api.has_param :end_time, 'datetime'
178
196
  api.has_param :notification_subtypes, { list: { enum: %w{AFTER_EVENT_1DAY AFTER_EVENT_2DAY AFTER_EVENT_3DAY AFTER_EVENT_4DAY AFTER_EVENT_5DAY AFTER_EVENT_6DAY AFTER_EVENT_7DAY BEFORE_EVENT_15MIN BEFORE_EVENT_1DAY BEFORE_EVENT_1HOUR BEFORE_EVENT_2DAY EVENT_START RESCHEDULED }} }
@@ -44,6 +44,18 @@ module FacebookAds
44
44
  end
45
45
  end
46
46
 
47
+ has_edge :insights do |edge|
48
+ edge.get 'InsightsResult' do |api|
49
+ api.has_param :breakdown, { list: { enum: -> { InsightsResult::BREAKDOWN }} }
50
+ api.has_param :metric, { list: { enum: -> { InsightsResult::METRIC }} }
51
+ api.has_param :metric_type, { enum: -> { InsightsResult::METRIC_TYPE }}
52
+ api.has_param :period, { list: { enum: -> { InsightsResult::PERIOD }} }
53
+ api.has_param :since, 'datetime'
54
+ api.has_param :timeframe, { enum: -> { InsightsResult::TIMEFRAME }}
55
+ api.has_param :until, 'datetime'
56
+ end
57
+ end
58
+
47
59
  has_edge :live_media do |edge|
48
60
  edge.get
49
61
  end
@@ -54,6 +66,7 @@ module FacebookAds
54
66
  api.has_param :until, 'datetime'
55
67
  end
56
68
  edge.post do |api|
69
+ api.has_param :alt_text, 'string'
57
70
  api.has_param :audio_name, 'string'
58
71
  api.has_param :caption, 'string'
59
72
  api.has_param :children, { list: 'string' }
@@ -123,7 +136,7 @@ module FacebookAds
123
136
  edge.delete
124
137
  edge.get
125
138
  edge.post do |api|
126
- api.has_param :subscribed_fields, { list: { enum: %w{comments creator_marketplace_invited_creator_onboarding creator_marketplace_projects delta live_comments mentions message_reactions messages messaging_handover messaging_optins messaging_postbacks messaging_referral messaging_seen standby story_insights }} }
139
+ api.has_param :subscribed_fields, { list: { enum: %w{comments creator_marketplace_invited_creator_onboarding creator_marketplace_projects delta live_comments mentions message_reactions messages messaging_handover messaging_optins messaging_postbacks messaging_referral messaging_seen standby story_insights story_reactions }} }
127
140
  end
128
141
  end
129
142
 
@@ -24,6 +24,7 @@ module FacebookAds
24
24
  METRIC = [
25
25
  "clips_replays_count",
26
26
  "comments",
27
+ "content_views",
27
28
  "follows",
28
29
  "ig_reels_aggregated_all_plays_count",
29
30
  "ig_reels_avg_watch_time",
@@ -43,6 +44,7 @@ module FacebookAds
43
44
  "shares",
44
45
  "thread_replies",
45
46
  "thread_shares",
47
+ "threads_views",
46
48
  "total_interactions",
47
49
  "video_views",
48
50
  "views",
@@ -80,6 +82,21 @@ module FacebookAds
80
82
  "yesterday",
81
83
  ]
82
84
 
85
+ METRIC_TYPE = [
86
+ "default",
87
+ "time_series",
88
+ "total_value",
89
+ ]
90
+
91
+ TIMEFRAME = [
92
+ "last_14_days",
93
+ "last_30_days",
94
+ "last_90_days",
95
+ "prev_month",
96
+ "this_month",
97
+ "this_week",
98
+ ]
99
+
83
100
 
84
101
  field :description, 'string'
85
102
  field :description_from_api_doc, 'string'
@@ -16,6 +16,7 @@ module FacebookAds
16
16
  class InsightsValue < AdObject
17
17
 
18
18
  field :campaign_id, 'string'
19
+ field :earning_source, 'string'
19
20
  field :end_time, 'datetime'
20
21
  field :engagement_source, 'string'
21
22
  field :message_type, 'string'
@@ -29,13 +29,5 @@ module FacebookAds
29
29
  has_no_post
30
30
  has_no_delete
31
31
 
32
- has_edge :comments do |edge|
33
- edge.get 'InstagramComment'
34
- edge.post 'InstagramComment' do |api|
35
- api.has_param :ad_id, 'string'
36
- api.has_param :message, 'string'
37
- end
38
- end
39
-
40
32
  end
41
33
  end
@@ -24,14 +24,7 @@ module FacebookAds
24
24
  field :mentioned_instagram_users, { list: 'InstagramUser' }
25
25
  field :message, 'string'
26
26
  field :username, 'string'
27
-
28
- has_edge :replies do |edge|
29
- edge.get 'InstagramComment'
30
- edge.post 'InstagramComment' do |api|
31
- api.has_param :ad_id, 'string'
32
- api.has_param :message, 'string'
33
- end
34
- end
27
+ has_no_delete
35
28
 
36
29
  end
37
30
  end
@@ -40,6 +40,7 @@ module FacebookAds
40
40
  "shares",
41
41
  "total_interactions",
42
42
  "video_views",
43
+ "views",
43
44
  ]
44
45
 
45
46
  PERIOD = [
@@ -34,13 +34,5 @@ module FacebookAds
34
34
  has_no_post
35
35
  has_no_delete
36
36
 
37
- has_edge :comments do |edge|
38
- edge.get 'InstagramComment'
39
- edge.post 'InstagramComment' do |api|
40
- api.has_param :ad_id, 'string'
41
- api.has_param :message, 'string'
42
- end
43
- end
44
-
45
37
  end
46
38
  end
@@ -48,6 +48,7 @@ module FacebookAds
48
48
  field :products_section_headers, { list: 'hash' }
49
49
  field :qualified_thank_you_card_transparency_info_text, 'string'
50
50
  field :redeem_promo_code_text, 'string'
51
+ field :return_to_facebook_text, 'string'
51
52
  field :review_your_info_text, 'string'
52
53
  field :secure_sharing_text, 'string'
53
54
  field :slide_to_submit_text, 'string'
@@ -38,6 +38,8 @@ module FacebookAds
38
38
  field :library_template_name, 'string'
39
39
  field :name, 'string'
40
40
  field :rejected_reason, 'string'
41
+ field :rejection_reasons, 'object'
42
+ field :specific_rejection_reasons, 'object'
41
43
  field :status, 'string'
42
44
  has_no_delete
43
45
 
@@ -21,7 +21,9 @@ module FacebookAds
21
21
  field :displayed_fb_matches_count, 'int'
22
22
  field :displayed_ig_matches_count, 'int'
23
23
  field :displayed_matches_count, 'int'
24
+ field :has_rev_share_eligible_isrcs, 'bool'
24
25
  field :id, 'string'
26
+ field :is_linking_required_to_monetize_for_manual_claim, 'bool'
25
27
  field :match_rule, 'VideoCopyrightRule'
26
28
  field :status, 'string'
27
29
  field :tags, { list: 'string' }
@@ -21,10 +21,8 @@ module FacebookAds
21
21
  field :destination_id, 'string'
22
22
  field :endpoint, 'string'
23
23
  field :fallback_domain, 'string'
24
- field :fallback_domain_enabled, 'bool'
25
24
  field :first_party_domain, 'string'
26
25
  field :host_business_id, 'string'
27
- field :host_external_id, 'string'
28
26
  field :id, 'string'
29
27
  field :instance_id, 'string'
30
28
  field :instance_version, 'string'
@@ -80,6 +80,17 @@ module FacebookAds
80
80
  "Vietnamese",
81
81
  ]
82
82
 
83
+ GEN_AI_PROVENANCE_TYPE = [
84
+ "C2PA",
85
+ "C2PA_METADATA_EDITED",
86
+ "EXPLICIT",
87
+ "EXPLICIT_IMAGINE",
88
+ "EXPLICIT_IMAGINE_ME",
89
+ "INVISIBLE_WATERMARK",
90
+ "IPTC",
91
+ "IPTC_METADATA_EDITED",
92
+ ]
93
+
83
94
  PICKUP_OPTIONS = [
84
95
  "CURBSIDE",
85
96
  "IN_STORE",
@@ -297,6 +308,7 @@ module FacebookAds
297
308
  "live_videos",
298
309
  "local_delivery",
299
310
  "location",
311
+ "marketing_message_delivery_failed",
300
312
  "mcom_invoice_change",
301
313
  "members",
302
314
  "mention",
@@ -308,6 +320,7 @@ module FacebookAds
308
320
  "message_mention",
309
321
  "message_reactions",
310
322
  "message_reads",
323
+ "message_template_status_update",
311
324
  "messages",
312
325
  "messaging_account_linking",
313
326
  "messaging_appointments",
@@ -355,14 +368,6 @@ module FacebookAds
355
368
  "website",
356
369
  ]
357
370
 
358
- ACTION = [
359
- "SPAM",
360
- ]
361
-
362
- ACTION_TYPE = [
363
- "REPORT_THREAD",
364
- ]
365
-
366
371
 
367
372
  field :about, 'string'
368
373
  field :access_token, 'string'
@@ -1053,7 +1058,6 @@ module FacebookAds
1053
1058
  edge.post 'Page' do |api|
1054
1059
  api.has_param :category, { enum: -> { Page::CATEGORY }}
1055
1060
  api.has_param :components, { list: 'hash' }
1056
- api.has_param :example, 'hash'
1057
1061
  api.has_param :language, 'string'
1058
1062
  api.has_param :library_template_button_inputs, { list: 'hash' }
1059
1063
  api.has_param :library_template_name, 'string'
@@ -1239,6 +1243,7 @@ module FacebookAds
1239
1243
  api.has_param :place, 'object'
1240
1244
  api.has_param :privacy, 'string'
1241
1245
  api.has_param :profile_id, 'int'
1246
+ api.has_param :provenance_info, 'hash'
1242
1247
  api.has_param :proxied_app_id, 'string'
1243
1248
  api.has_param :published, 'bool'
1244
1249
  api.has_param :qn, 'string'
@@ -1319,10 +1324,6 @@ module FacebookAds
1319
1324
  end
1320
1325
  end
1321
1326
 
1322
- has_edge :ratings do |edge|
1323
- edge.get 'Recommendation'
1324
- end
1325
-
1326
1327
  has_edge :release_thread_control do |edge|
1327
1328
  edge.post 'Page' do |api|
1328
1329
  api.has_param :recipient, 'object'
@@ -1401,14 +1402,6 @@ module FacebookAds
1401
1402
  end
1402
1403
  end
1403
1404
 
1404
- has_edge :thread_action do |edge|
1405
- edge.post 'Page' do |api|
1406
- api.has_param :action, { enum: -> { Page::ACTION }}
1407
- api.has_param :action_type, { enum: -> { Page::ACTION_TYPE }}
1408
- api.has_param :user_id, 'hash'
1409
- end
1410
- end
1411
-
1412
1405
  has_edge :thread_owner do |edge|
1413
1406
  edge.get 'PageThreadOwner' do |api|
1414
1407
  api.has_param :recipient, 'string'
@@ -17,9 +17,7 @@ module FacebookAds
17
17
 
18
18
  field :acceptance_status, 'string'
19
19
  field :category, 'string'
20
- field :current_value, 'string'
21
20
  field :id, 'string'
22
- field :proposed_value, 'string'
23
21
  field :upcoming_change_info, 'PageUpcomingChange'
24
22
  has_no_get
25
23
  has_no_post
@@ -540,6 +540,10 @@ module FacebookAds
540
540
  end
541
541
  end
542
542
 
543
+ has_edge :version_configs do |edge|
544
+ edge.get 'CatalogContentVersionConfig'
545
+ end
546
+
543
547
  has_edge :version_items_batch do |edge|
544
548
  edge.post 'ProductCatalog' do |api|
545
549
  api.has_param :allow_upsert, 'bool'
@@ -100,6 +100,7 @@ module FacebookAds
100
100
  field :instream_packages, { list: 'string' }
101
101
  field :interval_frequency_cap, 'int'
102
102
  field :interval_frequency_cap_reset_period, 'int'
103
+ field :is_balanced_frequency, 'bool'
103
104
  field :is_bonus_media, 'int'
104
105
  field :is_conversion_goal, 'int'
105
106
  field :is_higher_average_frequency, 'bool'
@@ -127,6 +128,8 @@ module FacebookAds
127
128
  field :status, 'int'
128
129
  field :story_event_type, 'int'
129
130
  field :target_cpm, 'int'
131
+ field :target_frequency, 'int'
132
+ field :target_frequency_reset_period, 'int'
130
133
  field :target_spec, 'Targeting'
131
134
  field :time_created, 'datetime'
132
135
  field :time_updated, 'datetime'
@@ -143,7 +146,6 @@ module FacebookAds
143
146
  field :existing_campaign_id, 'string'
144
147
  field :grp_buying, 'bool'
145
148
  field :impression, 'int'
146
- field :is_balanced_frequency, 'bool'
147
149
  field :is_full_view, 'bool'
148
150
  field :is_reach_and_frequency_io_buying, 'bool'
149
151
  field :num_curve_points, 'int'
@@ -152,8 +154,6 @@ module FacebookAds
152
154
  field :rf_prediction_id_to_release, 'string'
153
155
  field :rf_prediction_id_to_share, 'string'
154
156
  field :stop_time, 'int'
155
- field :target_frequency, 'int'
156
- field :target_frequency_reset_period, 'int'
157
157
  has_no_post
158
158
  has_no_delete
159
159
 
@@ -16,7 +16,6 @@ module FacebookAds
16
16
  class RecommendedIgMedia < AdObject
17
17
 
18
18
  field :intent_score, 'double'
19
- field :media, 'InstagramMedia'
20
19
  has_no_id
21
20
  has_no_get
22
21
  has_no_post