facebookbusiness 0.8.0.4 → 0.10.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.
- checksums.yaml +4 -4
 - data/lib/facebook_ads/ad_objects/ad.rb +4 -1
 - data/lib/facebook_ads/ad_objects/ad_account.rb +17 -30
 - data/lib/facebook_ads/ad_objects/ad_account_delivery_estimate.rb +1 -0
 - data/lib/facebook_ads/ad_objects/ad_account_matched_search_applications_edge_data.rb +1 -0
 - data/lib/facebook_ads/ad_objects/ad_account_targeting_unified.rb +1 -0
 - data/lib/facebook_ads/ad_objects/ad_asset_feed_spec.rb +4 -0
 - data/lib/facebook_ads/ad_objects/ad_campaign_activity.rb +8 -2
 - data/lib/facebook_ads/ad_objects/ad_campaign_delivery_estimate.rb +1 -0
 - data/lib/facebook_ads/ad_objects/ad_creative.rb +5 -0
 - data/lib/facebook_ads/ad_objects/ad_creative_link_data_call_to_action.rb +3 -0
 - data/lib/facebook_ads/ad_objects/{offline_terms_of_service.rb → ad_creative_omnichannel_link_spec.rb} +5 -4
 - data/lib/facebook_ads/ad_objects/ad_preview.rb +3 -0
 - data/lib/facebook_ads/ad_objects/ad_report_run.rb +1 -0
 - data/lib/facebook_ads/ad_objects/ad_rule_evaluation_spec.rb +1 -2
 - data/lib/facebook_ads/ad_objects/ad_set.rb +6 -2
 - data/lib/facebook_ads/ad_objects/ad_study.rb +0 -11
 - data/lib/facebook_ads/ad_objects/ad_study_objective.rb +1 -0
 - data/lib/facebook_ads/ad_objects/ad_video.rb +4 -12
 - data/lib/facebook_ads/ad_objects/adgroup_activity.rb +2 -0
 - data/lib/facebook_ads/ad_objects/adgroup_placement_specific_review_feedback.rb +1 -0
 - data/lib/facebook_ads/ad_objects/ads_action_stats.rb +2 -0
 - data/lib/facebook_ads/ad_objects/ads_insights.rb +2 -1
 - data/lib/facebook_ads/ad_objects/ads_pixel.rb +4 -0
 - data/lib/facebook_ads/ad_objects/album.rb +0 -10
 - data/lib/facebook_ads/ad_objects/application.rb +1 -10
 - data/lib/facebook_ads/ad_objects/automotive_model.rb +25 -0
 - data/lib/facebook_ads/ad_objects/business.rb +19 -0
 - data/lib/facebook_ads/ad_objects/business_asset_group.rb +1 -0
 - data/lib/facebook_ads/ad_objects/business_unit.rb +0 -1
 - data/lib/facebook_ads/ad_objects/campaign.rb +10 -2
 - data/lib/facebook_ads/ad_objects/{user_payment_modules_options.rb → catalog_item_channels_to_integrity_status.rb} +3 -5
 - data/lib/facebook_ads/ad_objects/catalog_sub_vertical_list.rb +3 -0
 - data/lib/facebook_ads/ad_objects/comment.rb +1 -0
 - data/lib/facebook_ads/ad_objects/commerce_merchant_settings.rb +1 -0
 - data/lib/facebook_ads/ad_objects/{friend_list.rb → contextual_bundling_spec.rb} +4 -5
 - data/lib/facebook_ads/ad_objects/custom_audience.rb +8 -10
 - data/lib/facebook_ads/ad_objects/extended_credit.rb +0 -1
 - data/lib/facebook_ads/ad_objects/group.rb +22 -22
 - data/lib/facebook_ads/ad_objects/ig_media.rb +0 -1
 - data/lib/facebook_ads/ad_objects/ig_user.rb +6 -1
 - data/lib/facebook_ads/ad_objects/image_copyright.rb +302 -0
 - data/lib/facebook_ads/ad_objects/insights_result.rb +1 -1
 - data/lib/facebook_ads/ad_objects/instagram_user.rb +0 -3
 - data/lib/facebook_ads/ad_objects/link.rb +0 -10
 - data/lib/facebook_ads/ad_objects/live_video.rb +12 -12
 - data/lib/facebook_ads/ad_objects/messenger_profile.rb +1 -0
 - data/lib/facebook_ads/ad_objects/page.rb +33 -6
 - data/lib/facebook_ads/ad_objects/page_call_to_action.rb +3 -0
 - data/lib/facebook_ads/ad_objects/page_commerce_eligibility.rb +38 -0
 - data/lib/facebook_ads/ad_objects/page_post.rb +0 -10
 - data/lib/facebook_ads/ad_objects/{event_tour.rb → payment_engine_payment.rb} +35 -18
 - data/lib/facebook_ads/ad_objects/payment_subscription.rb +3 -3
 - data/lib/facebook_ads/ad_objects/photo.rb +0 -10
 - data/lib/facebook_ads/ad_objects/post.rb +12 -40
 - data/lib/facebook_ads/ad_objects/product_catalog.rb +15 -2
 - data/lib/facebook_ads/ad_objects/product_feed.rb +1 -1
 - data/lib/facebook_ads/ad_objects/product_feed_schedule.rb +2 -0
 - data/lib/facebook_ads/ad_objects/product_item.rb +8 -1
 - data/lib/facebook_ads/ad_objects/{user_payment_methods_info.rb → product_item_ar_data.rb} +23 -8
 - data/lib/facebook_ads/ad_objects/server_side/action_source.rb +48 -0
 - data/lib/facebook_ads/ad_objects/server_side/content.rb +23 -4
 - data/lib/facebook_ads/ad_objects/server_side/event.rb +32 -6
 - data/lib/facebook_ads/ad_objects/server_side/util.rb +14 -1
 - data/lib/facebook_ads/ad_objects/targeting.rb +0 -2
 - data/lib/facebook_ads/ad_objects/unified_thread.rb +0 -1
 - data/lib/facebook_ads/ad_objects/user.rb +14 -13
 - data/lib/facebook_ads/ad_objects/{read_only_analytics_user_property_config.rb → whats_app_business_profile.rb} +2 -3
 - data/lib/facebook_ads/edge.rb +2 -1
 - data/lib/facebook_ads/version.rb +2 -2
 - metadata +19 -18
 - data/lib/facebook_ads/ad_objects/ad_account_creation_request.rb +0 -71
 - data/lib/facebook_ads/ad_objects/ad_account_roas.rb +0 -65
 
| 
         @@ -30,7 +30,6 @@ module FacebookAds 
     | 
|
| 
       30 
30 
     | 
    
         
             
                  "COST_CAP",
         
     | 
| 
       31 
31 
     | 
    
         
             
                  "LOWEST_COST_WITHOUT_CAP",
         
     | 
| 
       32 
32 
     | 
    
         
             
                  "LOWEST_COST_WITH_BID_CAP",
         
     | 
| 
       33 
     | 
    
         
            -
                  "TARGET_COST",
         
     | 
| 
       34 
33 
     | 
    
         
             
                ]
         
     | 
| 
       35 
34 
     | 
    
         | 
| 
       36 
35 
     | 
    
         
             
                BILLING_EVENT = [
         
     | 
| 
         @@ -38,10 +37,12 @@ module FacebookAds 
     | 
|
| 
       38 
37 
     | 
    
         
             
                  "CLICKS",
         
     | 
| 
       39 
38 
     | 
    
         
             
                  "IMPRESSIONS",
         
     | 
| 
       40 
39 
     | 
    
         
             
                  "LINK_CLICKS",
         
     | 
| 
      
 40 
     | 
    
         
            +
                  "LISTING_INTERACTION",
         
     | 
| 
       41 
41 
     | 
    
         
             
                  "NONE",
         
     | 
| 
       42 
42 
     | 
    
         
             
                  "OFFER_CLAIMS",
         
     | 
| 
       43 
43 
     | 
    
         
             
                  "PAGE_LIKES",
         
     | 
| 
       44 
44 
     | 
    
         
             
                  "POST_ENGAGEMENT",
         
     | 
| 
      
 45 
     | 
    
         
            +
                  "PURCHASE",
         
     | 
| 
       45 
46 
     | 
    
         
             
                  "THRUPLAY",
         
     | 
| 
       46 
47 
     | 
    
         
             
                ]
         
     | 
| 
       47 
48 
     | 
    
         | 
| 
         @@ -81,6 +82,7 @@ module FacebookAds 
     | 
|
| 
       81 
82 
     | 
    
         
             
                  "PAGE_ENGAGEMENT",
         
     | 
| 
       82 
83 
     | 
    
         
             
                  "PAGE_LIKES",
         
     | 
| 
       83 
84 
     | 
    
         
             
                  "POST_ENGAGEMENT",
         
     | 
| 
      
 85 
     | 
    
         
            +
                  "QUALITY_CALL",
         
     | 
| 
       84 
86 
     | 
    
         
             
                  "QUALITY_LEAD",
         
     | 
| 
       85 
87 
     | 
    
         
             
                  "REACH",
         
     | 
| 
       86 
88 
     | 
    
         
             
                  "REPLIES",
         
     | 
| 
         @@ -110,7 +112,7 @@ module FacebookAds 
     | 
|
| 
       110 
112 
     | 
    
         
             
                  "last_week_mon_sun",
         
     | 
| 
       111 
113 
     | 
    
         
             
                  "last_week_sun_sat",
         
     | 
| 
       112 
114 
     | 
    
         
             
                  "last_year",
         
     | 
| 
       113 
     | 
    
         
            -
                  " 
     | 
| 
      
 115 
     | 
    
         
            +
                  "maximum",
         
     | 
| 
       114 
116 
     | 
    
         
             
                  "this_month",
         
     | 
| 
       115 
117 
     | 
    
         
             
                  "this_quarter",
         
     | 
| 
       116 
118 
     | 
    
         
             
                  "this_week_mon_today",
         
     | 
| 
         @@ -355,6 +357,7 @@ module FacebookAds 
     | 
|
| 
       355 
357 
     | 
    
         
             
                    api.has_param :time_range, 'object'
         
     | 
| 
       356 
358 
     | 
    
         
             
                    api.has_param :time_ranges, { list: 'object' }
         
     | 
| 
       357 
359 
     | 
    
         
             
                    api.has_param :use_account_attribution_setting, 'bool'
         
     | 
| 
      
 360 
     | 
    
         
            +
                    api.has_param :use_unified_attribution_setting, 'bool'
         
     | 
| 
       358 
361 
     | 
    
         
             
                  end
         
     | 
| 
       359 
362 
     | 
    
         
             
                  edge.post 'AdReportRun' do |api|
         
     | 
| 
       360 
363 
     | 
    
         
             
                    api.has_param :action_attribution_windows, { list: { enum: -> { AdsInsights::ACTION_ATTRIBUTION_WINDOWS }} }
         
     | 
| 
         @@ -377,6 +380,7 @@ module FacebookAds 
     | 
|
| 
       377 
380 
     | 
    
         
             
                    api.has_param :time_range, 'object'
         
     | 
| 
       378 
381 
     | 
    
         
             
                    api.has_param :time_ranges, { list: 'object' }
         
     | 
| 
       379 
382 
     | 
    
         
             
                    api.has_param :use_account_attribution_setting, 'bool'
         
     | 
| 
      
 383 
     | 
    
         
            +
                    api.has_param :use_unified_attribution_setting, 'bool'
         
     | 
| 
       380 
384 
     | 
    
         
             
                  end
         
     | 
| 
       381 
385 
     | 
    
         
             
                end
         
     | 
| 
       382 
386 
     | 
    
         | 
| 
         @@ -62,17 +62,6 @@ module FacebookAds 
     | 
|
| 
       62 
62 
     | 
    
         | 
| 
       63 
63 
     | 
    
         
             
                has_edge :objectives do |edge|
         
     | 
| 
       64 
64 
     | 
    
         
             
                  edge.get 'AdStudyObjective'
         
     | 
| 
       65 
     | 
    
         
            -
                  edge.post 'AdStudyObjective' do |api|
         
     | 
| 
       66 
     | 
    
         
            -
                    api.has_param :adspixels, { list: 'object' }
         
     | 
| 
       67 
     | 
    
         
            -
                    api.has_param :applications, { list: 'object' }
         
     | 
| 
       68 
     | 
    
         
            -
                    api.has_param :customconversions, { list: 'object' }
         
     | 
| 
       69 
     | 
    
         
            -
                    api.has_param :is_primary, 'bool'
         
     | 
| 
       70 
     | 
    
         
            -
                    api.has_param :name, 'string'
         
     | 
| 
       71 
     | 
    
         
            -
                    api.has_param :offline_conversion_data_sets, { list: 'object' }
         
     | 
| 
       72 
     | 
    
         
            -
                    api.has_param :product_catalogs, { list: 'object' }
         
     | 
| 
       73 
     | 
    
         
            -
                    api.has_param :product_sets, { list: 'object' }
         
     | 
| 
       74 
     | 
    
         
            -
                    api.has_param :type, { enum: -> { AdStudyObjective::TYPE }}
         
     | 
| 
       75 
     | 
    
         
            -
                  end
         
     | 
| 
       76 
65 
     | 
    
         
             
                end
         
     | 
| 
       77 
66 
     | 
    
         | 
| 
       78 
67 
     | 
    
         
             
              end
         
     | 
| 
         @@ -27,6 +27,7 @@ module FacebookAds 
     | 
|
| 
       27 
27 
     | 
    
         | 
| 
       28 
28 
     | 
    
         
             
              class AdVideo < AdObject
         
     | 
| 
       29 
29 
     | 
    
         
             
                CONTAINER_TYPE = [
         
     | 
| 
      
 30 
     | 
    
         
            +
                  "ACO_AUTOEXTRACTED_VIDEO",
         
     | 
| 
       30 
31 
     | 
    
         
             
                  "ACO_VIDEO_VARIATION",
         
     | 
| 
       31 
32 
     | 
    
         
             
                  "AD_BREAK_PREVIEW",
         
     | 
| 
       32 
33 
     | 
    
         
             
                  "AD_DERIVATIVE",
         
     | 
| 
         @@ -64,9 +65,10 @@ module FacebookAds 
     | 
|
| 
       64 
65 
     | 
    
         
             
                  "EVENT_TOUR",
         
     | 
| 
       65 
66 
     | 
    
         
             
                  "FACECAST_DVR",
         
     | 
| 
       66 
67 
     | 
    
         
             
                  "FB_SHORTS",
         
     | 
| 
      
 68 
     | 
    
         
            +
                  "FB_SHORTS_GROUP_POST",
         
     | 
| 
      
 69 
     | 
    
         
            +
                  "FB_SHORTS_POST",
         
     | 
| 
       67 
70 
     | 
    
         
             
                  "FUNDRAISER_COVER_VIDEO",
         
     | 
| 
       68 
71 
     | 
    
         
             
                  "GAME_CLIP",
         
     | 
| 
       69 
     | 
    
         
            -
                  "GAMING_UPDATE_VIDEO",
         
     | 
| 
       70 
72 
     | 
    
         
             
                  "GEMSTONE",
         
     | 
| 
       71 
73 
     | 
    
         
             
                  "GOODWILL_ANNIVERSARY_DEPRECATED",
         
     | 
| 
       72 
74 
     | 
    
         
             
                  "GOODWILL_ANNIVERSARY_PROMOTION_DEPRECATED",
         
     | 
| 
         @@ -256,7 +258,6 @@ module FacebookAds 
     | 
|
| 
       256 
258 
     | 
    
         
             
                field :animated_effect_id, 'int'
         
     | 
| 
       257 
259 
     | 
    
         
             
                field :application_id, 'string'
         
     | 
| 
       258 
260 
     | 
    
         
             
                field :asked_fun_fact_prompt_id, 'int'
         
     | 
| 
       259 
     | 
    
         
            -
                field :attribution_app_id, 'string'
         
     | 
| 
       260 
261 
     | 
    
         
             
                field :audio_story_wave_animation_handle, 'string'
         
     | 
| 
       261 
262 
     | 
    
         
             
                field :chunk_session_id, 'string'
         
     | 
| 
       262 
263 
     | 
    
         
             
                field :composer_entry_picker, 'string'
         
     | 
| 
         @@ -304,6 +305,7 @@ module FacebookAds 
     | 
|
| 
       304 
305 
     | 
    
         
             
                field :replace_video_id, 'string'
         
     | 
| 
       305 
306 
     | 
    
         
             
                field :sales_promo_id, 'int'
         
     | 
| 
       306 
307 
     | 
    
         
             
                field :slideshow_spec, 'hash'
         
     | 
| 
      
 308 
     | 
    
         
            +
                field :source_instagram_media_id, 'string'
         
     | 
| 
       307 
309 
     | 
    
         
             
                field :start_offset, 'int'
         
     | 
| 
       308 
310 
     | 
    
         
             
                field :swap_mode, { enum: -> { SWAP_MODE }}
         
     | 
| 
       309 
311 
     | 
    
         
             
                field :text_format_metadata, 'string'
         
     | 
| 
         @@ -384,16 +386,6 @@ module FacebookAds 
     | 
|
| 
       384 
386 
     | 
    
         
             
                  end
         
     | 
| 
       385 
387 
     | 
    
         
             
                end
         
     | 
| 
       386 
388 
     | 
    
         | 
| 
       387 
     | 
    
         
            -
                has_edge :reactions do |edge|
         
     | 
| 
       388 
     | 
    
         
            -
                  edge.get 'Profile' do |api|
         
     | 
| 
       389 
     | 
    
         
            -
                    api.has_param :type, { enum: -> { Profile::TYPE }}
         
     | 
| 
       390 
     | 
    
         
            -
                  end
         
     | 
| 
       391 
     | 
    
         
            -
                end
         
     | 
| 
       392 
     | 
    
         
            -
             
     | 
| 
       393 
     | 
    
         
            -
                has_edge :sharedposts do |edge|
         
     | 
| 
       394 
     | 
    
         
            -
                  edge.get 'Post'
         
     | 
| 
       395 
     | 
    
         
            -
                end
         
     | 
| 
       396 
     | 
    
         
            -
             
     | 
| 
       397 
389 
     | 
    
         
             
                has_edge :sponsor_tags do |edge|
         
     | 
| 
       398 
390 
     | 
    
         
             
                  edge.get 'Page'
         
     | 
| 
       399 
391 
     | 
    
         
             
                end
         
     | 
| 
         @@ -113,6 +113,8 @@ module FacebookAds 
     | 
|
| 
       113 
113 
     | 
    
         
             
                field :stop_time_old, 'datetime'
         
     | 
| 
       114 
114 
     | 
    
         
             
                field :target_spec_id_new, 'string'
         
     | 
| 
       115 
115 
     | 
    
         
             
                field :target_spec_id_old, 'string'
         
     | 
| 
      
 116 
     | 
    
         
            +
                field :targets_spec_new, 'object'
         
     | 
| 
      
 117 
     | 
    
         
            +
                field :targets_spec_old, 'object'
         
     | 
| 
       116 
118 
     | 
    
         
             
                field :tracking_pixel_ids_new, { list: 'string' }
         
     | 
| 
       117 
119 
     | 
    
         
             
                field :tracking_pixel_ids_old, { list: 'string' }
         
     | 
| 
       118 
120 
     | 
    
         
             
                field :tracking_specs_new, { list: 'object' }
         
     | 
| 
         @@ -44,6 +44,7 @@ module FacebookAds 
     | 
|
| 
       44 
44 
     | 
    
         
             
                field :facebook_pages_live_shopping, 'hash'
         
     | 
| 
       45 
45 
     | 
    
         
             
                field :instagram, 'hash'
         
     | 
| 
       46 
46 
     | 
    
         
             
                field :instagram_shop, 'hash'
         
     | 
| 
      
 47 
     | 
    
         
            +
                field :job_search, 'hash'
         
     | 
| 
       47 
48 
     | 
    
         
             
                field :lead_gen_honeypot, 'hash'
         
     | 
| 
       48 
49 
     | 
    
         
             
                field :marketplace, 'hash'
         
     | 
| 
       49 
50 
     | 
    
         
             
                field :marketplace_home_rentals, 'hash'
         
     | 
| 
         @@ -33,10 +33,12 @@ module FacebookAds 
     | 
|
| 
       33 
33 
     | 
    
         
             
                field :_28d_view, 'string'
         
     | 
| 
       34 
34 
     | 
    
         
             
                field :_7d_click, 'string'
         
     | 
| 
       35 
35 
     | 
    
         
             
                field :_7d_view, 'string'
         
     | 
| 
      
 36 
     | 
    
         
            +
                field :action_brand, 'string'
         
     | 
| 
       36 
37 
     | 
    
         
             
                field :action_canvas_component_id, 'string'
         
     | 
| 
       37 
38 
     | 
    
         
             
                field :action_canvas_component_name, 'string'
         
     | 
| 
       38 
39 
     | 
    
         
             
                field :action_carousel_card_id, 'string'
         
     | 
| 
       39 
40 
     | 
    
         
             
                field :action_carousel_card_name, 'string'
         
     | 
| 
      
 41 
     | 
    
         
            +
                field :action_category, 'string'
         
     | 
| 
       40 
42 
     | 
    
         
             
                field :action_converted_product_id, 'string'
         
     | 
| 
       41 
43 
     | 
    
         
             
                field :action_destination, 'string'
         
     | 
| 
       42 
44 
     | 
    
         
             
                field :action_device, 'string'
         
     | 
| 
         @@ -93,7 +93,7 @@ module FacebookAds 
     | 
|
| 
       93 
93 
     | 
    
         
             
                  "last_week_mon_sun",
         
     | 
| 
       94 
94 
     | 
    
         
             
                  "last_week_sun_sat",
         
     | 
| 
       95 
95 
     | 
    
         
             
                  "last_year",
         
     | 
| 
       96 
     | 
    
         
            -
                  " 
     | 
| 
      
 96 
     | 
    
         
            +
                  "maximum",
         
     | 
| 
       97 
97 
     | 
    
         
             
                  "this_month",
         
     | 
| 
       98 
98 
     | 
    
         
             
                  "this_quarter",
         
     | 
| 
       99 
99 
     | 
    
         
             
                  "this_week_mon_today",
         
     | 
| 
         @@ -146,6 +146,7 @@ module FacebookAds 
     | 
|
| 
       146 
146 
     | 
    
         
             
                field :adset_name, 'string'
         
     | 
| 
       147 
147 
     | 
    
         
             
                field :adset_start, 'string'
         
     | 
| 
       148 
148 
     | 
    
         
             
                field :age_targeting, 'string'
         
     | 
| 
      
 149 
     | 
    
         
            +
                field :attribution_setting, 'string'
         
     | 
| 
       149 
150 
     | 
    
         
             
                field :auction_bid, 'string'
         
     | 
| 
       150 
151 
     | 
    
         
             
                field :auction_competitiveness, 'string'
         
     | 
| 
       151 
152 
     | 
    
         
             
                field :auction_max_competitor_bid, 'string'
         
     | 
| 
         @@ -152,15 +152,5 @@ module FacebookAds 
     | 
|
| 
       152 
152 
     | 
    
         
             
                  end
         
     | 
| 
       153 
153 
     | 
    
         
             
                end
         
     | 
| 
       154 
154 
     | 
    
         | 
| 
       155 
     | 
    
         
            -
                has_edge :reactions do |edge|
         
     | 
| 
       156 
     | 
    
         
            -
                  edge.get 'Profile' do |api|
         
     | 
| 
       157 
     | 
    
         
            -
                    api.has_param :type, { enum: -> { Profile::TYPE }}
         
     | 
| 
       158 
     | 
    
         
            -
                  end
         
     | 
| 
       159 
     | 
    
         
            -
                end
         
     | 
| 
       160 
     | 
    
         
            -
             
     | 
| 
       161 
     | 
    
         
            -
                has_edge :sharedposts do |edge|
         
     | 
| 
       162 
     | 
    
         
            -
                  edge.get 'Post'
         
     | 
| 
       163 
     | 
    
         
            -
                end
         
     | 
| 
       164 
     | 
    
         
            -
             
     | 
| 
       165 
155 
     | 
    
         
             
              end
         
     | 
| 
       166 
156 
     | 
    
         
             
            end
         
     | 
| 
         @@ -36,6 +36,7 @@ module FacebookAds 
     | 
|
| 
       36 
36 
     | 
    
         
             
                  "IPHONE",
         
     | 
| 
       37 
37 
     | 
    
         
             
                  "MOBILE_WEB",
         
     | 
| 
       38 
38 
     | 
    
         
             
                  "OCULUS",
         
     | 
| 
      
 39 
     | 
    
         
            +
                  "SAMSUNG",
         
     | 
| 
       39 
40 
     | 
    
         
             
                  "SUPPLEMENTARY_IMAGES",
         
     | 
| 
       40 
41 
     | 
    
         
             
                  "WEB",
         
     | 
| 
       41 
42 
     | 
    
         
             
                  "WINDOWS",
         
     | 
| 
         @@ -471,12 +472,6 @@ module FacebookAds 
     | 
|
| 
       471 
472 
     | 
    
         
             
                  end
         
     | 
| 
       472 
473 
     | 
    
         
             
                end
         
     | 
| 
       473 
474 
     | 
    
         | 
| 
       474 
     | 
    
         
            -
                has_edge :live_videos do |edge|
         
     | 
| 
       475 
     | 
    
         
            -
                  edge.get 'LiveVideo' do |api|
         
     | 
| 
       476 
     | 
    
         
            -
                    api.has_param :broadcast_status, { enum: -> { LiveVideo::BROADCAST_STATUS }}
         
     | 
| 
       477 
     | 
    
         
            -
                  end
         
     | 
| 
       478 
     | 
    
         
            -
                end
         
     | 
| 
       479 
     | 
    
         
            -
             
     | 
| 
       480 
475 
     | 
    
         
             
                has_edge :mmp_auditing do |edge|
         
     | 
| 
       481 
476 
     | 
    
         
             
                  edge.post do |api|
         
     | 
| 
       482 
477 
     | 
    
         
             
                    api.has_param :advertiser_id, 'string'
         
     | 
| 
         @@ -513,10 +508,6 @@ module FacebookAds 
     | 
|
| 
       513 
508 
     | 
    
         
             
                  end
         
     | 
| 
       514 
509 
     | 
    
         
             
                end
         
     | 
| 
       515 
510 
     | 
    
         | 
| 
       516 
     | 
    
         
            -
                has_edge :ozone_release do |edge|
         
     | 
| 
       517 
     | 
    
         
            -
                  edge.get
         
     | 
| 
       518 
     | 
    
         
            -
                end
         
     | 
| 
       519 
     | 
    
         
            -
             
     | 
| 
       520 
511 
     | 
    
         
             
                has_edge :page_activities do |edge|
         
     | 
| 
       521 
512 
     | 
    
         
             
                  edge.post 'Application' do |api|
         
     | 
| 
       522 
513 
     | 
    
         
             
                    api.has_param :advertiser_tracking_enabled, 'bool'
         
     | 
| 
         @@ -26,6 +26,31 @@ module FacebookAds 
     | 
|
| 
       26 
26 
     | 
    
         
             
              # pull request for this class.
         
     | 
| 
       27 
27 
     | 
    
         | 
| 
       28 
28 
     | 
    
         
             
              class AutomotiveModel < AdObject
         
     | 
| 
      
 29 
     | 
    
         
            +
                BODY_STYLE = [
         
     | 
| 
      
 30 
     | 
    
         
            +
                  "CONVERTIBLE",
         
     | 
| 
      
 31 
     | 
    
         
            +
                  "COUPE",
         
     | 
| 
      
 32 
     | 
    
         
            +
                  "CROSSOVER",
         
     | 
| 
      
 33 
     | 
    
         
            +
                  "ESTATE",
         
     | 
| 
      
 34 
     | 
    
         
            +
                  "GRANDTOURER",
         
     | 
| 
      
 35 
     | 
    
         
            +
                  "HATCHBACK",
         
     | 
| 
      
 36 
     | 
    
         
            +
                  "MINIBUS",
         
     | 
| 
      
 37 
     | 
    
         
            +
                  "MINIVAN",
         
     | 
| 
      
 38 
     | 
    
         
            +
                  "MPV",
         
     | 
| 
      
 39 
     | 
    
         
            +
                  "NONE",
         
     | 
| 
      
 40 
     | 
    
         
            +
                  "OTHER",
         
     | 
| 
      
 41 
     | 
    
         
            +
                  "PICKUP",
         
     | 
| 
      
 42 
     | 
    
         
            +
                  "ROADSTER",
         
     | 
| 
      
 43 
     | 
    
         
            +
                  "SALOON",
         
     | 
| 
      
 44 
     | 
    
         
            +
                  "SEDAN",
         
     | 
| 
      
 45 
     | 
    
         
            +
                  "SPORTSCAR",
         
     | 
| 
      
 46 
     | 
    
         
            +
                  "SUPERCAR",
         
     | 
| 
      
 47 
     | 
    
         
            +
                  "SUPERMINI",
         
     | 
| 
      
 48 
     | 
    
         
            +
                  "SUV",
         
     | 
| 
      
 49 
     | 
    
         
            +
                  "TRUCK",
         
     | 
| 
      
 50 
     | 
    
         
            +
                  "VAN",
         
     | 
| 
      
 51 
     | 
    
         
            +
                  "WAGON",
         
     | 
| 
      
 52 
     | 
    
         
            +
                ]
         
     | 
| 
      
 53 
     | 
    
         
            +
             
     | 
| 
       29 
54 
     | 
    
         | 
| 
       30 
55 
     | 
    
         
             
                field :applinks, 'CatalogItemAppLinks'
         
     | 
| 
       31 
56 
     | 
    
         
             
                field :automotive_model_id, 'string'
         
     | 
| 
         @@ -60,6 +60,7 @@ module FacebookAds 
     | 
|
| 
       60 
60 
     | 
    
         
             
                PERMITTED_TASKS = [
         
     | 
| 
       61 
61 
     | 
    
         
             
                  "ADVERTISE",
         
     | 
| 
       62 
62 
     | 
    
         
             
                  "ANALYZE",
         
     | 
| 
      
 63 
     | 
    
         
            +
                  "DRAFT",
         
     | 
| 
       63 
64 
     | 
    
         
             
                  "MANAGE",
         
     | 
| 
       64 
65 
     | 
    
         
             
                ]
         
     | 
| 
       65 
66 
     | 
    
         | 
| 
         @@ -381,6 +382,20 @@ module FacebookAds 
     | 
|
| 
       381 
382 
     | 
    
         
             
                  end
         
     | 
| 
       382 
383 
     | 
    
         
             
                end
         
     | 
| 
       383 
384 
     | 
    
         | 
| 
      
 385 
     | 
    
         
            +
                has_edge :franchise_programs do |edge|
         
     | 
| 
      
 386 
     | 
    
         
            +
                  edge.post do |api|
         
     | 
| 
      
 387 
     | 
    
         
            +
                    api.has_param :business_asset_group, 'string'
         
     | 
| 
      
 388 
     | 
    
         
            +
                    api.has_param :creative_folder, 'string'
         
     | 
| 
      
 389 
     | 
    
         
            +
                    api.has_param :creative_spec_template_data, 'hash'
         
     | 
| 
      
 390 
     | 
    
         
            +
                    api.has_param :description, 'string'
         
     | 
| 
      
 391 
     | 
    
         
            +
                    api.has_param :end_date, 'datetime'
         
     | 
| 
      
 392 
     | 
    
         
            +
                    api.has_param :name, 'string'
         
     | 
| 
      
 393 
     | 
    
         
            +
                    api.has_param :program_approval_type, { enum: %w{APPROVAL PUBLIC }}
         
     | 
| 
      
 394 
     | 
    
         
            +
                    api.has_param :shared_custom_audience, 'string'
         
     | 
| 
      
 395 
     | 
    
         
            +
                    api.has_param :start_date, 'datetime'
         
     | 
| 
      
 396 
     | 
    
         
            +
                  end
         
     | 
| 
      
 397 
     | 
    
         
            +
                end
         
     | 
| 
      
 398 
     | 
    
         
            +
             
     | 
| 
       384 
399 
     | 
    
         
             
                has_edge :initiated_audience_sharing_requests do |edge|
         
     | 
| 
       385 
400 
     | 
    
         
             
                  edge.get 'BusinessAssetSharingAgreement' do |api|
         
     | 
| 
       386 
401 
     | 
    
         
             
                    api.has_param :recipient_id, 'string'
         
     | 
| 
         @@ -402,6 +417,10 @@ module FacebookAds 
     | 
|
| 
       402 
417 
     | 
    
         
             
                  edge.get 'InstagramUser'
         
     | 
| 
       403 
418 
     | 
    
         
             
                end
         
     | 
| 
       404 
419 
     | 
    
         | 
| 
      
 420 
     | 
    
         
            +
                has_edge :instagram_business_accounts do |edge|
         
     | 
| 
      
 421 
     | 
    
         
            +
                  edge.get 'IgUser'
         
     | 
| 
      
 422 
     | 
    
         
            +
                end
         
     | 
| 
      
 423 
     | 
    
         
            +
             
     | 
| 
       405 
424 
     | 
    
         
             
                has_edge :managed_businesses do |edge|
         
     | 
| 
       406 
425 
     | 
    
         
             
                  edge.delete do |api|
         
     | 
| 
       407 
426 
     | 
    
         
             
                    api.has_param :existing_client_business_id, 'string'
         
     | 
| 
         @@ -30,7 +30,6 @@ module FacebookAds 
     | 
|
| 
       30 
30 
     | 
    
         
             
                  "COST_CAP",
         
     | 
| 
       31 
31 
     | 
    
         
             
                  "LOWEST_COST_WITHOUT_CAP",
         
     | 
| 
       32 
32 
     | 
    
         
             
                  "LOWEST_COST_WITH_BID_CAP",
         
     | 
| 
       33 
     | 
    
         
            -
                  "TARGET_COST",
         
     | 
| 
       34 
33 
     | 
    
         
             
                ]
         
     | 
| 
       35 
34 
     | 
    
         | 
| 
       36 
35 
     | 
    
         
             
                CONFIGURED_STATUS = [
         
     | 
| 
         @@ -68,7 +67,7 @@ module FacebookAds 
     | 
|
| 
       68 
67 
     | 
    
         
             
                  "last_week_mon_sun",
         
     | 
| 
       69 
68 
     | 
    
         
             
                  "last_week_sun_sat",
         
     | 
| 
       70 
69 
     | 
    
         
             
                  "last_year",
         
     | 
| 
       71 
     | 
    
         
            -
                  " 
     | 
| 
      
 70 
     | 
    
         
            +
                  "maximum",
         
     | 
| 
       72 
71 
     | 
    
         
             
                  "this_month",
         
     | 
| 
       73 
72 
     | 
    
         
             
                  "this_quarter",
         
     | 
| 
       74 
73 
     | 
    
         
             
                  "this_week_mon_today",
         
     | 
| 
         @@ -101,6 +100,11 @@ module FacebookAds 
     | 
|
| 
       101 
100 
     | 
    
         
             
                  "VIDEO_VIEWS",
         
     | 
| 
       102 
101 
     | 
    
         
             
                ]
         
     | 
| 
       103 
102 
     | 
    
         | 
| 
      
 103 
     | 
    
         
            +
                SMART_PROMOTION_TYPE = [
         
     | 
| 
      
 104 
     | 
    
         
            +
                  "GUIDED_CREATION",
         
     | 
| 
      
 105 
     | 
    
         
            +
                  "SMART_APP_PROMOTION",
         
     | 
| 
      
 106 
     | 
    
         
            +
                ]
         
     | 
| 
      
 107 
     | 
    
         
            +
             
     | 
| 
       104 
108 
     | 
    
         
             
                SPECIAL_AD_CATEGORIES = [
         
     | 
| 
       105 
109 
     | 
    
         
             
                  "CREDIT",
         
     | 
| 
       106 
110 
     | 
    
         
             
                  "EMPLOYMENT",
         
     | 
| 
         @@ -399,6 +403,7 @@ module FacebookAds 
     | 
|
| 
       399 
403 
     | 
    
         
             
                field :daily_budget, 'string'
         
     | 
| 
       400 
404 
     | 
    
         
             
                field :effective_status, { enum: -> { EFFECTIVE_STATUS }}
         
     | 
| 
       401 
405 
     | 
    
         
             
                field :id, 'string'
         
     | 
| 
      
 406 
     | 
    
         
            +
                field :is_skadnetwork_attribution, 'bool'
         
     | 
| 
       402 
407 
     | 
    
         
             
                field :issues_info, { list: 'AdCampaignIssuesInfo' }
         
     | 
| 
       403 
408 
     | 
    
         
             
                field :last_budget_toggling_time, 'datetime'
         
     | 
| 
       404 
409 
     | 
    
         
             
                field :lifetime_budget, 'string'
         
     | 
| 
         @@ -407,6 +412,7 @@ module FacebookAds 
     | 
|
| 
       407 
412 
     | 
    
         
             
                field :pacing_type, { list: 'string' }
         
     | 
| 
       408 
413 
     | 
    
         
             
                field :promoted_object, 'AdPromotedObject'
         
     | 
| 
       409 
414 
     | 
    
         
             
                field :recommendations, { list: 'AdRecommendation' }
         
     | 
| 
      
 415 
     | 
    
         
            +
                field :smart_promotion_type, 'string'
         
     | 
| 
       410 
416 
     | 
    
         
             
                field :source_campaign, 'Campaign'
         
     | 
| 
       411 
417 
     | 
    
         
             
                field :source_campaign_id, 'string'
         
     | 
| 
       412 
418 
     | 
    
         
             
                field :special_ad_categories, { list: 'string' }
         
     | 
| 
         @@ -507,6 +513,7 @@ module FacebookAds 
     | 
|
| 
       507 
513 
     | 
    
         
             
                    api.has_param :time_range, 'object'
         
     | 
| 
       508 
514 
     | 
    
         
             
                    api.has_param :time_ranges, { list: 'object' }
         
     | 
| 
       509 
515 
     | 
    
         
             
                    api.has_param :use_account_attribution_setting, 'bool'
         
     | 
| 
      
 516 
     | 
    
         
            +
                    api.has_param :use_unified_attribution_setting, 'bool'
         
     | 
| 
       510 
517 
     | 
    
         
             
                  end
         
     | 
| 
       511 
518 
     | 
    
         
             
                  edge.post 'AdReportRun' do |api|
         
     | 
| 
       512 
519 
     | 
    
         
             
                    api.has_param :action_attribution_windows, { list: { enum: -> { AdsInsights::ACTION_ATTRIBUTION_WINDOWS }} }
         
     | 
| 
         @@ -529,6 +536,7 @@ module FacebookAds 
     | 
|
| 
       529 
536 
     | 
    
         
             
                    api.has_param :time_range, 'object'
         
     | 
| 
       530 
537 
     | 
    
         
             
                    api.has_param :time_ranges, { list: 'object' }
         
     | 
| 
       531 
538 
     | 
    
         
             
                    api.has_param :use_account_attribution_setting, 'bool'
         
     | 
| 
      
 539 
     | 
    
         
            +
                    api.has_param :use_unified_attribution_setting, 'bool'
         
     | 
| 
       532 
540 
     | 
    
         
             
                  end
         
     | 
| 
       533 
541 
     | 
    
         
             
                end
         
     | 
| 
       534 
542 
     | 
    
         | 
| 
         @@ -25,12 +25,10 @@ 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  
     | 
| 
      
 28 
     | 
    
         
            +
              class CatalogItemChannelsToIntegrityStatus < AdObject
         
     | 
| 
       29 
29 
     | 
    
         | 
| 
       30 
     | 
    
         
            -
                field : 
     | 
| 
       31 
     | 
    
         
            -
                field : 
     | 
| 
       32 
     | 
    
         
            -
                field :country, 'string'
         
     | 
| 
       33 
     | 
    
         
            -
                field :currency, 'string'
         
     | 
| 
      
 30 
     | 
    
         
            +
                field :channels, { list: 'string' }
         
     | 
| 
      
 31 
     | 
    
         
            +
                field :rejection_information, 'object'
         
     | 
| 
       34 
32 
     | 
    
         
             
                has_no_id
         
     | 
| 
       35 
33 
     | 
    
         
             
                has_no_get
         
     | 
| 
       36 
34 
     | 
    
         
             
                has_no_post
         
     | 
| 
         @@ -44,6 +44,7 @@ module FacebookAds 
     | 
|
| 
       44 
44 
     | 
    
         
             
                field :computers_and_tablets, 'object'
         
     | 
| 
       45 
45 
     | 
    
         
             
                field :computers_laptops_and_tablets, 'object'
         
     | 
| 
       46 
46 
     | 
    
         
             
                field :diapering_and_potty_training, 'object'
         
     | 
| 
      
 47 
     | 
    
         
            +
                field :digital_product_offer, 'object'
         
     | 
| 
       47 
48 
     | 
    
         
             
                field :electronic_accessories_and_cables, 'object'
         
     | 
| 
       48 
49 
     | 
    
         
             
                field :electronics_accessories, 'object'
         
     | 
| 
       49 
50 
     | 
    
         
             
                field :furniture, 'object'
         
     | 
| 
         @@ -53,6 +54,8 @@ module FacebookAds 
     | 
|
| 
       53 
54 
     | 
    
         
             
                field :household_and_cleaning_supplies, 'object'
         
     | 
| 
       54 
55 
     | 
    
         
             
                field :jewelry, 'object'
         
     | 
| 
       55 
56 
     | 
    
         
             
                field :large_appliances, 'object'
         
     | 
| 
      
 57 
     | 
    
         
            +
                field :local_service_business_item, 'object'
         
     | 
| 
      
 58 
     | 
    
         
            +
                field :local_service_business_restaurant, 'object'
         
     | 
| 
       56 
59 
     | 
    
         
             
                field :loyalty_offer, 'object'
         
     | 
| 
       57 
60 
     | 
    
         
             
                field :meetup_space, 'object'
         
     | 
| 
       58 
61 
     | 
    
         
             
                field :nursery, 'object'
         
     |