facebookbusiness 0.9.0.0 → 0.10.0.1
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 +11 -45
- 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 +3 -1
- data/lib/facebook_ads/ad_objects/ad_asset_feed_spec.rb +3 -0
- data/lib/facebook_ads/ad_objects/ad_campaign_activity.rb +6 -2
- data/lib/facebook_ads/ad_objects/ad_campaign_delivery_estimate.rb +1 -0
- data/lib/facebook_ads/ad_objects/ad_creative.rb +9 -7
- data/lib/facebook_ads/ad_objects/ad_creative_link_data_call_to_action.rb +2 -0
- data/lib/facebook_ads/ad_objects/{read_only_analytics_user_property_config.rb → ad_creative_omnichannel_link_spec.rb} +5 -3
- data/lib/facebook_ads/ad_objects/ad_creative_portrait_customizations.rb +1 -0
- data/lib/facebook_ads/ad_objects/ad_preview.rb +4 -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_rule_execution_spec.rb +1 -2
- data/lib/facebook_ads/ad_objects/ad_set.rb +6 -2
- data/lib/facebook_ads/ad_objects/ad_study.rb +8 -11
- data/lib/facebook_ads/ad_objects/ad_study_objective.rb +3 -0
- data/lib/facebook_ads/ad_objects/ad_video.rb +18 -17
- data/lib/facebook_ads/ad_objects/adgroup_activity.rb +0 -2
- data/lib/facebook_ads/ad_objects/adgroup_placement_specific_review_feedback.rb +1 -0
- data/lib/facebook_ads/ad_objects/adoptable_pet.rb +18 -0
- data/lib/facebook_ads/ad_objects/ads_action_stats.rb +2 -0
- data/lib/facebook_ads/ad_objects/ads_insights.rb +3 -1
- data/lib/facebook_ads/ad_objects/ads_pixel.rb +5 -0
- data/lib/facebook_ads/ad_objects/album.rb +0 -10
- data/lib/facebook_ads/ad_objects/application.rb +22 -10
- data/lib/facebook_ads/ad_objects/atlas_campaign.rb +0 -8
- data/lib/facebook_ads/ad_objects/automotive_model.rb +43 -0
- data/lib/facebook_ads/ad_objects/business.rb +40 -3
- data/lib/facebook_ads/ad_objects/business_asset_group.rb +2 -0
- data/lib/facebook_ads/ad_objects/campaign.rb +5 -4
- 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 -1
- data/lib/facebook_ads/ad_objects/comment.rb +3 -1
- data/lib/facebook_ads/ad_objects/commerce_merchant_settings.rb +2 -0
- data/lib/facebook_ads/ad_objects/content_delivery_report.rb +4 -0
- data/lib/facebook_ads/ad_objects/{offline_terms_of_service.rb → contextual_bundling_spec.rb} +4 -4
- data/lib/facebook_ads/ad_objects/cpas_parent_catalog_settings.rb +1 -0
- data/lib/facebook_ads/ad_objects/custom_audience.rb +8 -12
- data/lib/facebook_ads/ad_objects/custom_audience_data_source.rb +1 -0
- data/lib/facebook_ads/ad_objects/delivery_window.rb +287 -0
- data/lib/facebook_ads/ad_objects/destination.rb +18 -0
- data/lib/facebook_ads/ad_objects/flight.rb +18 -0
- data/lib/facebook_ads/ad_objects/group.rb +38 -22
- data/lib/facebook_ads/ad_objects/home_listing.rb +18 -0
- data/lib/facebook_ads/ad_objects/hotel.rb +18 -0
- data/lib/facebook_ads/ad_objects/ig_media.rb +2 -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/{invoice_campaign.rb → invoice_campaign_new.rb} +1 -1
- data/lib/facebook_ads/ad_objects/link.rb +0 -10
- data/lib/facebook_ads/ad_objects/live_video.rb +20 -13
- data/lib/facebook_ads/ad_objects/messenger_profile.rb +1 -0
- data/lib/facebook_ads/ad_objects/{event_tour.rb → omega_customer_trx.rb} +28 -20
- data/lib/facebook_ads/ad_objects/oracle_transaction.rb +1 -6
- data/lib/facebook_ads/ad_objects/page.rb +49 -11
- 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/payment_engine_payment.rb +73 -0
- 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/private_lift_study_instance.rb +46 -0
- data/lib/facebook_ads/ad_objects/product_catalog.rb +29 -2
- data/lib/facebook_ads/ad_objects/product_feed.rb +17 -1
- data/lib/facebook_ads/ad_objects/product_feed_schedule.rb +2 -0
- data/lib/facebook_ads/ad_objects/product_item.rb +17 -1
- data/lib/facebook_ads/ad_objects/{user_payment_methods_info.rb → product_item_ar_data.rb} +24 -8
- data/lib/facebook_ads/ad_objects/product_set.rb +7 -0
- data/lib/facebook_ads/ad_objects/saved_audience.rb +1 -0
- data/lib/facebook_ads/ad_objects/server_side/action_source.rb +48 -0
- data/lib/facebook_ads/ad_objects/server_side/event.rb +32 -6
- data/lib/facebook_ads/ad_objects/server_side/user_data.rb +290 -96
- data/lib/facebook_ads/ad_objects/server_side/util.rb +29 -1
- data/lib/facebook_ads/ad_objects/system_user.rb +20 -0
- 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 +18 -13
- data/lib/facebook_ads/ad_objects/vehicle.rb +18 -0
- data/lib/facebook_ads/ad_objects/vehicle_offer.rb +18 -0
- data/lib/facebook_ads/ad_objects/whats_app_business_account.rb +1 -0
- data/lib/facebook_ads/ad_objects/{friend_list.rb → whats_app_business_profile.rb} +3 -5
- data/lib/facebook_ads/edge.rb +2 -1
- data/lib/facebook_ads/version.rb +2 -2
- metadata +23 -19
- 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
| @@ -0,0 +1,73 @@ | |
| 1 | 
            +
            # Copyright (c) 2017-present, Facebook, Inc. All rights reserved.
         | 
| 2 | 
            +
            #
         | 
| 3 | 
            +
            # You are hereby granted a non-exclusive, worldwide, royalty-free license to use,
         | 
| 4 | 
            +
            # copy, modify, and distribute this software in source code or binary form for use
         | 
| 5 | 
            +
            # in connection with the web services and APIs provided by Facebook.
         | 
| 6 | 
            +
            #
         | 
| 7 | 
            +
            # As with any software that integrates with the Facebook platform, your use of
         | 
| 8 | 
            +
            # this software is subject to the Facebook Platform Policy
         | 
| 9 | 
            +
            # [http://developers.facebook.com/policy/]. This copyright notice shall be
         | 
| 10 | 
            +
            # included in all copies or substantial portions of the software.
         | 
| 11 | 
            +
            #
         | 
| 12 | 
            +
            # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
         | 
| 13 | 
            +
            # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
         | 
| 14 | 
            +
            # FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
         | 
| 15 | 
            +
            # COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
         | 
| 16 | 
            +
            # IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
         | 
| 17 | 
            +
            # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
         | 
| 18 | 
            +
             | 
| 19 | 
            +
            # FB:AUTOGEN
         | 
| 20 | 
            +
             | 
| 21 | 
            +
            module FacebookAds
         | 
| 22 | 
            +
              # This class is auto-generated.
         | 
| 23 | 
            +
             | 
| 24 | 
            +
              # For any issues or feature requests related to this class, please let us know
         | 
| 25 | 
            +
              # on github and we'll fix in our codegen framework. We'll not be able to accept
         | 
| 26 | 
            +
              # pull request for this class.
         | 
| 27 | 
            +
             | 
| 28 | 
            +
              class PaymentEnginePayment < AdObject
         | 
| 29 | 
            +
                REASON = [
         | 
| 30 | 
            +
                  "BANNED_USER",
         | 
| 31 | 
            +
                  "DENIED_REFUND",
         | 
| 32 | 
            +
                  "GRANTED_REPLACEMENT_ITEM",
         | 
| 33 | 
            +
                ]
         | 
| 34 | 
            +
             | 
| 35 | 
            +
             | 
| 36 | 
            +
                field :actions, { list: 'object' }
         | 
| 37 | 
            +
                field :application, 'Application'
         | 
| 38 | 
            +
                field :country, 'string'
         | 
| 39 | 
            +
                field :created_time, 'datetime'
         | 
| 40 | 
            +
                field :disputes, { list: 'object' }
         | 
| 41 | 
            +
                field :fraud_status, 'string'
         | 
| 42 | 
            +
                field :fulfillment_status, 'string'
         | 
| 43 | 
            +
                field :id, 'string'
         | 
| 44 | 
            +
                field :is_from_ad, 'bool'
         | 
| 45 | 
            +
                field :is_from_page_post, 'bool'
         | 
| 46 | 
            +
                field :items, { list: 'object' }
         | 
| 47 | 
            +
                field :payout_foreign_exchange_rate, 'double'
         | 
| 48 | 
            +
                field :phone_support_eligible, 'bool'
         | 
| 49 | 
            +
                field :refundable_amount, 'CurrencyAmount'
         | 
| 50 | 
            +
                field :request_id, 'string'
         | 
| 51 | 
            +
                field :tax, 'string'
         | 
| 52 | 
            +
                field :tax_country, 'string'
         | 
| 53 | 
            +
                field :test, 'int'
         | 
| 54 | 
            +
                field :user, 'User'
         | 
| 55 | 
            +
                has_no_post
         | 
| 56 | 
            +
                has_no_delete
         | 
| 57 | 
            +
             | 
| 58 | 
            +
                has_edge :dispute do |edge|
         | 
| 59 | 
            +
                  edge.post 'PaymentEnginePayment' do |api|
         | 
| 60 | 
            +
                    api.has_param :reason, { enum: -> { PaymentEnginePayment::REASON }}
         | 
| 61 | 
            +
                  end
         | 
| 62 | 
            +
                end
         | 
| 63 | 
            +
             | 
| 64 | 
            +
                has_edge :refunds do |edge|
         | 
| 65 | 
            +
                  edge.post 'PaymentEnginePayment' do |api|
         | 
| 66 | 
            +
                    api.has_param :amount, 'double'
         | 
| 67 | 
            +
                    api.has_param :currency, 'string'
         | 
| 68 | 
            +
                    api.has_param :reason, { enum: -> { PaymentEnginePayment::REASON }}
         | 
| 69 | 
            +
                  end
         | 
| 70 | 
            +
                end
         | 
| 71 | 
            +
             | 
| 72 | 
            +
              end
         | 
| 73 | 
            +
            end
         | 
| @@ -29,13 +29,13 @@ module FacebookAds | |
| 29 29 |  | 
| 30 30 | 
             
                field :amount, 'string'
         | 
| 31 31 | 
             
                field :app_param_data, 'string'
         | 
| 32 | 
            -
                field :application, ' | 
| 32 | 
            +
                field :application, 'Application'
         | 
| 33 33 | 
             
                field :billing_period, 'string'
         | 
| 34 34 | 
             
                field :canceled_reason, 'string'
         | 
| 35 35 | 
             
                field :created_time, 'datetime'
         | 
| 36 36 | 
             
                field :currency, 'string'
         | 
| 37 37 | 
             
                field :id, 'string'
         | 
| 38 | 
            -
                field :last_payment, ' | 
| 38 | 
            +
                field :last_payment, 'PaymentEnginePayment'
         | 
| 39 39 | 
             
                field :next_bill_time, 'datetime'
         | 
| 40 40 | 
             
                field :next_period_amount, 'string'
         | 
| 41 41 | 
             
                field :next_period_currency, 'string'
         | 
| @@ -50,7 +50,7 @@ module FacebookAds | |
| 50 50 | 
             
                field :trial_currency, 'string'
         | 
| 51 51 | 
             
                field :trial_expiry_time, 'datetime'
         | 
| 52 52 | 
             
                field :updated_time, 'datetime'
         | 
| 53 | 
            -
                field :user, ' | 
| 53 | 
            +
                field :user, 'User'
         | 
| 54 54 | 
             
                has_no_post
         | 
| 55 55 | 
             
                has_no_delete
         | 
| 56 56 |  | 
| @@ -125,16 +125,6 @@ module FacebookAds | |
| 125 125 | 
             
                  end
         | 
| 126 126 | 
             
                end
         | 
| 127 127 |  | 
| 128 | 
            -
                has_edge :reactions do |edge|
         | 
| 129 | 
            -
                  edge.get 'Profile' do |api|
         | 
| 130 | 
            -
                    api.has_param :type, { enum: -> { Profile::TYPE }}
         | 
| 131 | 
            -
                  end
         | 
| 132 | 
            -
                end
         | 
| 133 | 
            -
             | 
| 134 | 
            -
                has_edge :sharedposts do |edge|
         | 
| 135 | 
            -
                  edge.get 'Post'
         | 
| 136 | 
            -
                end
         | 
| 137 | 
            -
             | 
| 138 128 | 
             
                has_edge :sponsor_tags do |edge|
         | 
| 139 129 | 
             
                  edge.get 'Page'
         | 
| 140 130 | 
             
                end
         | 
| @@ -35,17 +35,6 @@ module FacebookAds | |
| 35 35 | 
             
                  "year",
         | 
| 36 36 | 
             
                ]
         | 
| 37 37 |  | 
| 38 | 
            -
                FEED_STORY_VISIBILITY = [
         | 
| 39 | 
            -
                  "hidden",
         | 
| 40 | 
            -
                  "visible",
         | 
| 41 | 
            -
                ]
         | 
| 42 | 
            -
             | 
| 43 | 
            -
                TIMELINE_VISIBILITY = [
         | 
| 44 | 
            -
                  "forced_allow",
         | 
| 45 | 
            -
                  "hidden",
         | 
| 46 | 
            -
                  "normal",
         | 
| 47 | 
            -
                ]
         | 
| 48 | 
            -
             | 
| 49 38 | 
             
                CHECKIN_ENTRY_POINT = [
         | 
| 50 39 | 
             
                  "BRANDING_CHECKIN",
         | 
| 51 40 | 
             
                  "BRANDING_OTHER",
         | 
| @@ -91,6 +80,17 @@ module FacebookAds | |
| 91 80 | 
             
                  "SCHEDULED_RECURRING",
         | 
| 92 81 | 
             
                ]
         | 
| 93 82 |  | 
| 83 | 
            +
                FEED_STORY_VISIBILITY = [
         | 
| 84 | 
            +
                  "hidden",
         | 
| 85 | 
            +
                  "visible",
         | 
| 86 | 
            +
                ]
         | 
| 87 | 
            +
             | 
| 88 | 
            +
                TIMELINE_VISIBILITY = [
         | 
| 89 | 
            +
                  "forced_allow",
         | 
| 90 | 
            +
                  "hidden",
         | 
| 91 | 
            +
                  "normal",
         | 
| 92 | 
            +
                ]
         | 
| 93 | 
            +
             | 
| 94 94 |  | 
| 95 95 | 
             
                field :actions, { list: 'string' }
         | 
| 96 96 | 
             
                field :admin_creator, 'object'
         | 
| @@ -104,22 +104,17 @@ module FacebookAds | |
| 104 104 | 
             
                field :comments_mirroring_domain, 'string'
         | 
| 105 105 | 
             
                field :coordinates, 'object'
         | 
| 106 106 | 
             
                field :created_time, 'datetime'
         | 
| 107 | 
            -
                field :delivery_growth_optimizations, { list: 'string' }
         | 
| 108 107 | 
             
                field :description, 'string'
         | 
| 109 | 
            -
                field :entities, 'object'
         | 
| 110 108 | 
             
                field :event, 'Event'
         | 
| 111 109 | 
             
                field :expanded_height, 'int'
         | 
| 112 110 | 
             
                field :expanded_width, 'int'
         | 
| 113 111 | 
             
                field :feed_targeting, 'object'
         | 
| 114 | 
            -
                field :formatting, 'string'
         | 
| 115 112 | 
             
                field :from, 'object'
         | 
| 116 113 | 
             
                field :full_picture, 'string'
         | 
| 117 114 | 
             
                field :height, 'int'
         | 
| 118 115 | 
             
                field :icon, 'string'
         | 
| 119 116 | 
             
                field :id, 'string'
         | 
| 120 | 
            -
                field :implicit_place, 'Place'
         | 
| 121 117 | 
             
                field :instagram_eligibility, 'string'
         | 
| 122 | 
            -
                field :instream_eligibility, 'string'
         | 
| 123 118 | 
             
                field :is_app_share, 'bool'
         | 
| 124 119 | 
             
                field :is_eligible_for_promotion, 'bool'
         | 
| 125 120 | 
             
                field :is_expired, 'bool'
         | 
| @@ -129,8 +124,7 @@ module FacebookAds | |
| 129 124 | 
             
                field :is_popular, 'bool'
         | 
| 130 125 | 
             
                field :is_published, 'bool'
         | 
| 131 126 | 
             
                field :is_spherical, 'bool'
         | 
| 132 | 
            -
                field :link, ' | 
| 133 | 
            -
                field :live_video_eligibility, { list: 'string' }
         | 
| 127 | 
            +
                field :link, 'object'
         | 
| 134 128 | 
             
                field :message, 'string'
         | 
| 135 129 | 
             
                field :message_tags, { list: 'string' }
         | 
| 136 130 | 
             
                field :multi_share_end_card, 'bool'
         | 
| @@ -141,12 +135,10 @@ module FacebookAds | |
| 141 135 | 
             
                field :permalink_url, 'object'
         | 
| 142 136 | 
             
                field :picture, 'string'
         | 
| 143 137 | 
             
                field :place, 'Place'
         | 
| 144 | 
            -
                field :poll, 'object'
         | 
| 145 138 | 
             
                field :privacy, 'Privacy'
         | 
| 146 139 | 
             
                field :promotable_id, 'string'
         | 
| 147 140 | 
             
                field :promotion_status, 'string'
         | 
| 148 141 | 
             
                field :properties, { list: 'string' }
         | 
| 149 | 
            -
                field :publishing_stats, 'int'
         | 
| 150 142 | 
             
                field :scheduled_publish_time, 'double'
         | 
| 151 143 | 
             
                field :shares, 'object'
         | 
| 152 144 | 
             
                field :source, 'string'
         | 
| @@ -157,13 +149,11 @@ module FacebookAds | |
| 157 149 | 
             
                field :target, 'Profile'
         | 
| 158 150 | 
             
                field :targeting, 'object'
         | 
| 159 151 | 
             
                field :timeline_visibility, 'string'
         | 
| 160 | 
            -
                field :translations, 'hash'
         | 
| 161 152 | 
             
                field :type, 'string'
         | 
| 162 153 | 
             
                field :updated_time, 'datetime'
         | 
| 163 154 | 
             
                field :via, 'object'
         | 
| 164 155 | 
             
                field :video_buying_eligibility, { list: 'string' }
         | 
| 165 156 | 
             
                field :width, 'int'
         | 
| 166 | 
            -
                field :will_be_autocropped_when_deliver_to_instagram, 'bool'
         | 
| 167 157 |  | 
| 168 158 | 
             
                has_edge :attachments do |edge|
         | 
| 169 159 | 
             
                  edge.get
         | 
| @@ -217,24 +207,6 @@ module FacebookAds | |
| 217 207 | 
             
                  end
         | 
| 218 208 | 
             
                end
         | 
| 219 209 |  | 
| 220 | 
            -
                has_edge :promotions do |edge|
         | 
| 221 | 
            -
                  edge.post do |api|
         | 
| 222 | 
            -
                    api.has_param :ad_account_id, 'string'
         | 
| 223 | 
            -
                    api.has_param :ad_conversion_pixel_id, 'int'
         | 
| 224 | 
            -
                    api.has_param :audience, { enum: %w{AUTO_LOOKALIKE AUTO_PAGE_LOOKALIKE AUTO_TARGETING COUNTRY_AND_INTEREST CREATE_NEW CUSTOM_AUDIENCE DISTRICT EVENT_CUSTOM_AUDIENCES EVENT_ENGAGEMENT FANS GROUPER HEC_AUDIENCE IG_PROMOTED_POST_AUTO LOCAL LOOKALIKE MARKETPLACE_DEFAULT MARKETPLACE_NATIONWIDE_AUDIENCE MARKETPLACE_SAVED_AUDIENCE MULT_CUSTOM_AUDIENCES NCPP SAVED_AUDIENCE SMART_AUDIENCE }}
         | 
| 225 | 
            -
                    api.has_param :audience_id, 'string'
         | 
| 226 | 
            -
                    api.has_param :bid_amount, 'int'
         | 
| 227 | 
            -
                    api.has_param :budget, 'int'
         | 
| 228 | 
            -
                    api.has_param :cta_type, { enum: %w{ADD_TO_CART APPLY_NOW BOOK_TRAVEL BUY BUY_NOW BUY_TICKETS CALL CALL_ME CONTACT CONTACT_US DONATE DONATE_NOW DOWNLOAD EVENT_RSVP FIND_A_GROUP FIND_YOUR_GROUPS FOLLOW_NEWS_STORYLINE FOLLOW_PAGE FOLLOW_USER GET_DIRECTIONS GET_OFFER GET_OFFER_VIEW GET_QUOTE GET_SHOWTIMES INSTALL_APP INSTALL_MOBILE_APP LEARN_MORE LIKE_PAGE LISTEN_MUSIC LISTEN_NOW MESSAGE_PAGE MOBILE_DOWNLOAD MOMENTS NO_BUTTON OPEN_LINK ORDER_NOW PAY_TO_ACCESS PLAY_GAME PURCHASE_GIFT_CARDS RECORD_NOW REFER_FRIENDS REQUEST_TIME SAY_THANKS SEE_MORE SELL_NOW SEND_A_GIFT SHARE SHOP_NOW SIGN_UP SOTTO_SUBSCRIBE START_ORDER SUBSCRIBE SWIPE_UP_PRODUCT SWIPE_UP_SHOP UPDATE_APP USE_APP USE_MOBILE_APP VIDEO_ANNOTATION VISIT_PAGES_FEED WATCH_MORE WATCH_VIDEO WHATSAPP_MESSAGE WOODHENGE_SUPPORT }}
         | 
| 229 | 
            -
                    api.has_param :currency, 'string'
         | 
| 230 | 
            -
                    api.has_param :flow_id, 'string'
         | 
| 231 | 
            -
                    api.has_param :placement, 'string'
         | 
| 232 | 
            -
                    api.has_param :start_time, 'int'
         | 
| 233 | 
            -
                    api.has_param :stop_time, 'int'
         | 
| 234 | 
            -
                    api.has_param :targeting, 'Targeting'
         | 
| 235 | 
            -
                  end
         | 
| 236 | 
            -
                end
         | 
| 237 | 
            -
             | 
| 238 210 | 
             
                has_edge :reactions do |edge|
         | 
| 239 211 | 
             
                  edge.get 'Profile' do |api|
         | 
| 240 212 | 
             
                    api.has_param :type, { enum: -> { Profile::TYPE }}
         | 
| @@ -0,0 +1,46 @@ | |
| 1 | 
            +
            # Copyright (c) 2017-present, Facebook, Inc. All rights reserved.
         | 
| 2 | 
            +
            #
         | 
| 3 | 
            +
            # You are hereby granted a non-exclusive, worldwide, royalty-free license to use,
         | 
| 4 | 
            +
            # copy, modify, and distribute this software in source code or binary form for use
         | 
| 5 | 
            +
            # in connection with the web services and APIs provided by Facebook.
         | 
| 6 | 
            +
            #
         | 
| 7 | 
            +
            # As with any software that integrates with the Facebook platform, your use of
         | 
| 8 | 
            +
            # this software is subject to the Facebook Platform Policy
         | 
| 9 | 
            +
            # [http://developers.facebook.com/policy/]. This copyright notice shall be
         | 
| 10 | 
            +
            # included in all copies or substantial portions of the software.
         | 
| 11 | 
            +
            #
         | 
| 12 | 
            +
            # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
         | 
| 13 | 
            +
            # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
         | 
| 14 | 
            +
            # FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
         | 
| 15 | 
            +
            # COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
         | 
| 16 | 
            +
            # IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
         | 
| 17 | 
            +
            # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
         | 
| 18 | 
            +
             | 
| 19 | 
            +
            # FB:AUTOGEN
         | 
| 20 | 
            +
             | 
| 21 | 
            +
            module FacebookAds
         | 
| 22 | 
            +
              # This class is auto-generated.
         | 
| 23 | 
            +
             | 
| 24 | 
            +
              # For any issues or feature requests related to this class, please let us know
         | 
| 25 | 
            +
              # on github and we'll fix in our codegen framework. We'll not be able to accept
         | 
| 26 | 
            +
              # pull request for this class.
         | 
| 27 | 
            +
             | 
| 28 | 
            +
              class PrivateLiftStudyInstance < AdObject
         | 
| 29 | 
            +
                OPERATION = [
         | 
| 30 | 
            +
                  "AGGREGATE",
         | 
| 31 | 
            +
                  "COMPUTE",
         | 
| 32 | 
            +
                  "ID_MATCH",
         | 
| 33 | 
            +
                  "NONE",
         | 
| 34 | 
            +
                ]
         | 
| 35 | 
            +
             | 
| 36 | 
            +
             | 
| 37 | 
            +
                field :breakdown_key, 'string'
         | 
| 38 | 
            +
                field :created_time, 'datetime'
         | 
| 39 | 
            +
                field :id, 'string'
         | 
| 40 | 
            +
                field :latest_status_update_time, 'datetime'
         | 
| 41 | 
            +
                field :server_ips, { list: 'string' }
         | 
| 42 | 
            +
                field :status, 'string'
         | 
| 43 | 
            +
                has_no_delete
         | 
| 44 | 
            +
             | 
| 45 | 
            +
              end
         | 
| 46 | 
            +
            end
         | 
| @@ -139,11 +139,32 @@ module FacebookAds | |
| 139 139 | 
             
                  end
         | 
| 140 140 | 
             
                end
         | 
| 141 141 |  | 
| 142 | 
            +
                has_edge :auto_markets do |edge|
         | 
| 143 | 
            +
                  edge.get
         | 
| 144 | 
            +
                end
         | 
| 145 | 
            +
             | 
| 142 146 | 
             
                has_edge :automotive_models do |edge|
         | 
| 143 147 | 
             
                  edge.get 'AutomotiveModel' do |api|
         | 
| 144 148 | 
             
                    api.has_param :bulk_pagination, 'bool'
         | 
| 145 149 | 
             
                    api.has_param :filter, 'object'
         | 
| 146 150 | 
             
                  end
         | 
| 151 | 
            +
                  edge.post 'AutomotiveModel' do |api|
         | 
| 152 | 
            +
                    api.has_param :automotive_model_id, 'string'
         | 
| 153 | 
            +
                    api.has_param :body_style, { enum: -> { AutomotiveModel::BODY_STYLE }}
         | 
| 154 | 
            +
                    api.has_param :currency, 'string'
         | 
| 155 | 
            +
                    api.has_param :description, 'string'
         | 
| 156 | 
            +
                    api.has_param :images, { list: 'object' }
         | 
| 157 | 
            +
                    api.has_param :make, 'string'
         | 
| 158 | 
            +
                    api.has_param :model, 'string'
         | 
| 159 | 
            +
                    api.has_param :price, 'int'
         | 
| 160 | 
            +
                    api.has_param :title, 'string'
         | 
| 161 | 
            +
                    api.has_param :url, 'string'
         | 
| 162 | 
            +
                    api.has_param :year, 'int'
         | 
| 163 | 
            +
                  end
         | 
| 164 | 
            +
                end
         | 
| 165 | 
            +
             | 
| 166 | 
            +
                has_edge :autos do |edge|
         | 
| 167 | 
            +
                  edge.get
         | 
| 147 168 | 
             
                end
         | 
| 148 169 |  | 
| 149 170 | 
             
                has_edge :batch do |edge|
         | 
| @@ -274,6 +295,13 @@ module FacebookAds | |
| 274 295 | 
             
                  end
         | 
| 275 296 | 
             
                end
         | 
| 276 297 |  | 
| 298 | 
            +
                has_edge :media_titles do |edge|
         | 
| 299 | 
            +
                  edge.get do |api|
         | 
| 300 | 
            +
                    api.has_param :bulk_pagination, 'bool'
         | 
| 301 | 
            +
                    api.has_param :filter, 'object'
         | 
| 302 | 
            +
                  end
         | 
| 303 | 
            +
                end
         | 
| 304 | 
            +
             | 
| 277 305 | 
             
                has_edge :pricing_variables_batch do |edge|
         | 
| 278 306 | 
             
                  edge.get 'ProductCatalogPricingVariablesBatch' do |api|
         | 
| 279 307 | 
             
                    api.has_param :handle, 'string'
         | 
| @@ -306,8 +334,8 @@ module FacebookAds | |
| 306 334 | 
             
                    api.has_param :quoted_fields_mode, { enum: -> { ProductFeed::QUOTED_FIELDS_MODE }}
         | 
| 307 335 | 
             
                    api.has_param :rules, { list: 'string' }
         | 
| 308 336 | 
             
                    api.has_param :schedule, 'string'
         | 
| 337 | 
            +
                    api.has_param :selected_override_fields, { list: 'string' }
         | 
| 309 338 | 
             
                    api.has_param :update_schedule, 'string'
         | 
| 310 | 
            -
                    api.has_param :whitelisted_properties, { list: 'string' }
         | 
| 311 339 | 
             
                  end
         | 
| 312 340 | 
             
                end
         | 
| 313 341 |  | 
| @@ -347,7 +375,6 @@ module FacebookAds | |
| 347 375 | 
             
                    api.has_param :return_only_approved_products, 'bool'
         | 
| 348 376 | 
             
                  end
         | 
| 349 377 | 
             
                  edge.post 'ProductItem' do |api|
         | 
| 350 | 
            -
                    api.has_param :additional_image_files, { list: 'file' }
         | 
| 351 378 | 
             
                    api.has_param :additional_image_urls, { list: 'string' }
         | 
| 352 379 | 
             
                    api.has_param :additional_uploaded_image_ids, { list: 'string' }
         | 
| 353 380 | 
             
                    api.has_param :additional_variant_attributes, 'hash'
         | 
| @@ -53,6 +53,7 @@ module FacebookAds | |
| 53 53 |  | 
| 54 54 | 
             
                FEED_TYPE = [
         | 
| 55 55 | 
             
                  "AUTO",
         | 
| 56 | 
            +
                  "AUTOMOTIVE_MODEL",
         | 
| 56 57 | 
             
                  "DESTINATION",
         | 
| 57 58 | 
             
                  "FLIGHT",
         | 
| 58 59 | 
             
                  "HOME_LISTING",
         | 
| @@ -126,7 +127,11 @@ module FacebookAds | |
| 126 127 | 
             
                field :feed_type, { enum: -> { FEED_TYPE }}
         | 
| 127 128 | 
             
                field :override_value, 'string'
         | 
| 128 129 | 
             
                field :rules, { list: 'string' }
         | 
| 129 | 
            -
                field : | 
| 130 | 
            +
                field :selected_override_fields, { list: 'string' }
         | 
| 131 | 
            +
             | 
| 132 | 
            +
                has_edge :auto_markets do |edge|
         | 
| 133 | 
            +
                  edge.get
         | 
| 134 | 
            +
                end
         | 
| 130 135 |  | 
| 131 136 | 
             
                has_edge :automotive_models do |edge|
         | 
| 132 137 | 
             
                  edge.get 'AutomotiveModel' do |api|
         | 
| @@ -135,6 +140,10 @@ module FacebookAds | |
| 135 140 | 
             
                  end
         | 
| 136 141 | 
             
                end
         | 
| 137 142 |  | 
| 143 | 
            +
                has_edge :autos do |edge|
         | 
| 144 | 
            +
                  edge.get
         | 
| 145 | 
            +
                end
         | 
| 146 | 
            +
             | 
| 138 147 | 
             
                has_edge :destinations do |edge|
         | 
| 139 148 | 
             
                  edge.get 'Destination' do |api|
         | 
| 140 149 | 
             
                    api.has_param :bulk_pagination, 'bool'
         | 
| @@ -163,6 +172,13 @@ module FacebookAds | |
| 163 172 | 
             
                  end
         | 
| 164 173 | 
             
                end
         | 
| 165 174 |  | 
| 175 | 
            +
                has_edge :media_titles do |edge|
         | 
| 176 | 
            +
                  edge.get do |api|
         | 
| 177 | 
            +
                    api.has_param :bulk_pagination, 'bool'
         | 
| 178 | 
            +
                    api.has_param :filter, 'object'
         | 
| 179 | 
            +
                  end
         | 
| 180 | 
            +
                end
         | 
| 181 | 
            +
             | 
| 166 182 | 
             
                has_edge :products do |edge|
         | 
| 167 183 | 
             
                  edge.get 'ProductItem' do |api|
         | 
| 168 184 | 
             
                    api.has_param :bulk_pagination, 'bool'
         | 
| @@ -62,6 +62,15 @@ module FacebookAds | |
| 62 62 | 
             
                  "unisex",
         | 
| 63 63 | 
             
                ]
         | 
| 64 64 |  | 
| 65 | 
            +
                IMAGE_FETCH_STATUS = [
         | 
| 66 | 
            +
                  "DIRECT_UPLOAD",
         | 
| 67 | 
            +
                  "FETCHED",
         | 
| 68 | 
            +
                  "FETCH_FAILED",
         | 
| 69 | 
            +
                  "NO_STATUS",
         | 
| 70 | 
            +
                  "OUTDATED",
         | 
| 71 | 
            +
                  "PARTIAL_FETCH",
         | 
| 72 | 
            +
                ]
         | 
| 73 | 
            +
             | 
| 65 74 | 
             
                REVIEW_STATUS = [
         | 
| 66 75 | 
             
                  "",
         | 
| 67 76 | 
             
                  "approved",
         | 
| @@ -92,6 +101,7 @@ module FacebookAds | |
| 92 101 | 
             
                  "FB_APRL_CLOTHING",
         | 
| 93 102 | 
             
                  "FB_APRL_COSTUME",
         | 
| 94 103 | 
             
                  "FB_APRL_CSTM",
         | 
| 104 | 
            +
                  "FB_APRL_FORMAL",
         | 
| 95 105 | 
             
                  "FB_APRL_HANDBAG",
         | 
| 96 106 | 
             
                  "FB_APRL_JEWELRY",
         | 
| 97 107 | 
             
                  "FB_APRL_SHOE",
         | 
| @@ -293,6 +303,7 @@ module FacebookAds | |
| 293 303 | 
             
                field :additional_variant_attributes, 'hash'
         | 
| 294 304 | 
             
                field :age_group, { enum: -> { AGE_GROUP }}
         | 
| 295 305 | 
             
                field :applinks, 'CatalogItemAppLinks'
         | 
| 306 | 
            +
                field :ar_data, 'ProductItemArData'
         | 
| 296 307 | 
             
                field :availability, { enum: -> { AVAILABILITY }}
         | 
| 297 308 | 
             
                field :brand, 'string'
         | 
| 298 309 | 
             
                field :capability_to_review_status, 'hash'
         | 
| @@ -315,6 +326,7 @@ module FacebookAds | |
| 315 326 | 
             
                field :gtin, 'string'
         | 
| 316 327 | 
             
                field :id, 'string'
         | 
| 317 328 | 
             
                field :image_cdn_urls, 'hash'
         | 
| 329 | 
            +
                field :image_fetch_status, { enum: -> { IMAGE_FETCH_STATUS }}
         | 
| 318 330 | 
             
                field :image_url, 'string'
         | 
| 319 331 | 
             
                field :images, { list: 'string' }
         | 
| 320 332 | 
             
                field :inventory, 'int'
         | 
| @@ -323,6 +335,7 @@ module FacebookAds | |
| 323 335 | 
             
                field :mobile_link, 'string'
         | 
| 324 336 | 
             
                field :name, 'string'
         | 
| 325 337 | 
             
                field :ordering_index, 'int'
         | 
| 338 | 
            +
                field :parent_product_id, 'string'
         | 
| 326 339 | 
             
                field :pattern, 'string'
         | 
| 327 340 | 
             
                field :price, 'string'
         | 
| 328 341 | 
             
                field :product_catalog, 'ProductCatalog'
         | 
| @@ -343,7 +356,6 @@ module FacebookAds | |
| 343 356 | 
             
                field :start_date, 'string'
         | 
| 344 357 | 
             
                field :url, 'string'
         | 
| 345 358 | 
             
                field :visibility, { enum: -> { VISIBILITY }}
         | 
| 346 | 
            -
                field :additional_image_files, { list: 'file' }
         | 
| 347 359 | 
             
                field :additional_uploaded_image_ids, { list: 'string' }
         | 
| 348 360 | 
             
                field :android_app_name, 'string'
         | 
| 349 361 | 
             
                field :android_class, 'string'
         | 
| @@ -369,6 +381,10 @@ module FacebookAds | |
| 369 381 | 
             
                field :windows_phone_app_name, 'string'
         | 
| 370 382 | 
             
                field :windows_phone_url, 'string'
         | 
| 371 383 |  | 
| 384 | 
            +
                has_edge :channels_to_integrity_status do |edge|
         | 
| 385 | 
            +
                  edge.get 'CatalogItemChannelsToIntegrityStatus'
         | 
| 386 | 
            +
                end
         | 
| 387 | 
            +
             | 
| 372 388 | 
             
                has_edge :product_sets do |edge|
         | 
| 373 389 | 
             
                  edge.get 'ProductSet'
         | 
| 374 390 | 
             
                end
         |