facebookbusiness 0.6.0.4 → 0.8.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/facebook_ads/ad_objects/ad.rb +0 -1
- data/lib/facebook_ads/ad_objects/ad_account.rb +9 -21
- data/lib/facebook_ads/ad_objects/ad_account_activity.rb +3 -5
- data/lib/facebook_ads/ad_objects/ad_account_creation_request.rb +0 -1
- 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 -0
- data/lib/facebook_ads/ad_objects/ad_activity.rb +8 -0
- data/lib/facebook_ads/ad_objects/ad_asset_feed_spec.rb +3 -0
- data/lib/facebook_ads/ad_objects/ad_campaign_activity.rb +2 -2
- data/lib/facebook_ads/ad_objects/ad_campaign_delivery_estimate.rb +1 -0
- data/lib/facebook_ads/ad_objects/ad_creative.rb +3 -3
- data/lib/facebook_ads/ad_objects/{user_influence.rb → ad_creative_ad_disclaimer.rb} +4 -4
- data/lib/facebook_ads/ad_objects/ad_creative_link_data_call_to_action.rb +3 -0
- data/lib/facebook_ads/ad_objects/ad_network_analytics_sync_query_result.rb +1 -0
- data/lib/facebook_ads/ad_objects/ad_place_page_set.rb +6 -0
- data/lib/facebook_ads/ad_objects/ad_preview.rb +1 -0
- data/lib/facebook_ads/ad_objects/ad_report_spec.rb +0 -1
- data/lib/facebook_ads/ad_objects/ad_set.rb +2 -0
- data/lib/facebook_ads/ad_objects/ad_study.rb +1 -0
- data/lib/facebook_ads/ad_objects/ad_video.rb +5 -26
- data/lib/facebook_ads/ad_objects/adgroup_activity.rb +4 -4
- data/lib/facebook_ads/ad_objects/adgroup_placement_specific_review_feedback.rb +5 -0
- data/lib/facebook_ads/ad_objects/{ads_interest.rb → adoptable_pet.rb} +18 -5
- data/lib/facebook_ads/ad_objects/ads_insights.rb +10 -0
- data/lib/facebook_ads/ad_objects/album.rb +7 -0
- data/lib/facebook_ads/ad_objects/application.rb +4 -0
- data/lib/facebook_ads/ad_objects/atlas_campaign.rb +2 -2
- data/lib/facebook_ads/ad_objects/automotive_model.rb +1 -0
- data/lib/facebook_ads/ad_objects/business.rb +21 -122
- data/lib/facebook_ads/ad_objects/{business_creative_folder_sharing_agreement.rb → business_agreement.rb} +2 -5
- data/lib/facebook_ads/ad_objects/business_asset_group.rb +0 -3
- data/lib/facebook_ads/ad_objects/business_owned_object_on_behalf_of_request.rb +1 -0
- data/lib/facebook_ads/ad_objects/business_role_request.rb +6 -0
- data/lib/facebook_ads/ad_objects/business_user.rb +6 -0
- data/lib/facebook_ads/ad_objects/campaign.rb +267 -1
- data/lib/facebook_ads/ad_objects/catalog_item_app_links.rb +44 -0
- data/lib/facebook_ads/ad_objects/comment.rb +1 -0
- data/lib/facebook_ads/ad_objects/commerce_merchant_settings.rb +107 -0
- data/lib/facebook_ads/ad_objects/{client_transparency_status.rb → commerce_merchant_settings_setup_status.rb} +6 -5
- data/lib/facebook_ads/ad_objects/commerce_order.rb +147 -0
- data/lib/facebook_ads/ad_objects/{business_creative.rb → commerce_order_transaction_detail.rb} +14 -12
- data/lib/facebook_ads/ad_objects/commerce_payout.rb +41 -0
- data/lib/facebook_ads/ad_objects/cpas_parent_catalog_settings.rb +1 -0
- data/lib/facebook_ads/ad_objects/custom_audience.rb +1 -4
- data/lib/facebook_ads/ad_objects/custom_conversion.rb +1 -0
- data/lib/facebook_ads/ad_objects/destination.rb +1 -0
- data/lib/facebook_ads/ad_objects/event.rb +11 -1
- data/lib/facebook_ads/ad_objects/external_event_source.rb +1 -0
- data/lib/facebook_ads/ad_objects/flight.rb +1 -0
- data/lib/facebook_ads/ad_objects/group.rb +5 -1
- data/lib/facebook_ads/ad_objects/home_listing.rb +1 -0
- data/lib/facebook_ads/ad_objects/hotel.rb +1 -1
- data/lib/facebook_ads/ad_objects/hotel_room.rb +1 -0
- data/lib/facebook_ads/ad_objects/ig_media.rb +1 -0
- data/lib/facebook_ads/ad_objects/ig_user.rb +1 -0
- data/lib/facebook_ads/ad_objects/life_event.rb +0 -8
- data/lib/facebook_ads/ad_objects/link.rb +0 -6
- data/lib/facebook_ads/ad_objects/live_video.rb +0 -4
- data/lib/facebook_ads/ad_objects/media_fingerprint.rb +0 -1
- data/lib/facebook_ads/ad_objects/messenger_profile.rb +0 -1
- data/lib/facebook_ads/ad_objects/native_offer_view.rb +0 -1
- data/lib/facebook_ads/ad_objects/offline_conversion_data_set.rb +0 -6
- data/lib/facebook_ads/ad_objects/open_graph_context.rb +0 -12
- data/lib/facebook_ads/ad_objects/oracle_transaction.rb +0 -7
- data/lib/facebook_ads/ad_objects/page.rb +55 -104
- data/lib/facebook_ads/ad_objects/page_admin_note.rb +1 -0
- data/lib/facebook_ads/ad_objects/page_call_to_action.rb +8 -0
- data/lib/facebook_ads/ad_objects/page_change_proposal.rb +2 -0
- data/lib/facebook_ads/ad_objects/page_post.rb +8 -0
- data/lib/facebook_ads/ad_objects/{brand_audience.rb → payment_subscription.rb} +23 -9
- data/lib/facebook_ads/ad_objects/post.rb +9 -1
- data/lib/facebook_ads/ad_objects/product_catalog.rb +13 -1
- data/lib/facebook_ads/ad_objects/product_feed.rb +1 -0
- data/lib/facebook_ads/ad_objects/{product_feed_upload_diagnostics.rb → product_feed_upload_diagnostics_report.rb} +2 -2
- data/lib/facebook_ads/ad_objects/product_item.rb +1 -0
- data/lib/facebook_ads/ad_objects/product_set.rb +3 -0
- data/lib/facebook_ads/ad_objects/{custom_audience_prefill_state.rb → product_set_metadata.rb} +3 -3
- data/lib/facebook_ads/ad_objects/profile.rb +2 -0
- data/lib/facebook_ads/ad_objects/profile_picture_source.rb +4 -0
- data/lib/facebook_ads/ad_objects/publisher_block_list.rb +0 -6
- data/lib/facebook_ads/ad_objects/saved_audience.rb +1 -0
- data/lib/facebook_ads/ad_objects/server_side/content.rb +75 -13
- data/lib/facebook_ads/ad_objects/server_side/custom_data.rb +45 -6
- data/lib/facebook_ads/ad_objects/{whats_app_business_profile.rb → server_side/delivery_category.rb} +10 -13
- data/lib/facebook_ads/ad_objects/server_side/event.rb +62 -3
- data/lib/facebook_ads/ad_objects/server_side/event_request.rb +80 -6
- data/lib/facebook_ads/ad_objects/server_side/user_data.rb +132 -17
- data/lib/facebook_ads/ad_objects/server_side/util.rb +216 -149
- data/lib/facebook_ads/ad_objects/store_catalog_settings.rb +0 -1
- data/lib/facebook_ads/ad_objects/system_user.rb +6 -4
- data/lib/facebook_ads/ad_objects/targeting.rb +1 -0
- data/lib/facebook_ads/ad_objects/{atlas_url.rb → targeting_relaxation.rb} +2 -2
- data/lib/facebook_ads/ad_objects/third_party_measurement_report_dataset.rb +1 -0
- data/lib/facebook_ads/ad_objects/user.rb +6 -43
- data/lib/facebook_ads/ad_objects/vehicle.rb +1 -1
- data/lib/facebook_ads/ad_objects/vehicle_offer.rb +1 -0
- data/lib/facebook_ads/ad_objects/whats_app_business_account.rb +4 -0
- data/lib/facebook_ads/ad_objects/{creative_asset_tag.rb → work_meeting_link.rb} +3 -4
- data/lib/facebook_ads/version.rb +2 -2
- metadata +46 -26
- data/lib/facebook_ads/ad_objects/business_creative_folder.rb +0 -79
- data/lib/facebook_ads/ad_objects/business_image.rb +0 -94
- data/lib/facebook_ads/ad_objects/iterative_split_test_config.rb +0 -43
- data/lib/facebook_ads/ad_objects/messenger_platform_referral.rb +0 -39
- data/lib/facebook_ads/ad_objects/open_graph_object.rb +0 -70
- data/lib/facebook_ads/ad_objects/page_about_story.rb +0 -39
- data/lib/facebook_ads/ad_objects/request_history.rb +0 -49
- data/lib/facebook_ads/ad_objects/split_test_config.rb +0 -41
- data/lib/facebook_ads/ad_objects/streaming_reaction.rb +0 -50
- data/lib/facebook_ads/ad_objects/user_taggable_friend.rb +0 -49
- data/lib/facebook_ads/ad_objects/video_game_show.rb +0 -39
@@ -31,6 +31,8 @@ module FacebookAds
|
|
31
31
|
"BECOME_A_VOLUNTEER",
|
32
32
|
"EMAIL",
|
33
33
|
"FACEBOOK_APP",
|
34
|
+
"FOLLOW",
|
35
|
+
"MARKETPLACE_INVENTORY_PAGE",
|
34
36
|
"MESSENGER",
|
35
37
|
"MINI_SHOP",
|
36
38
|
"NONE",
|
@@ -44,6 +46,8 @@ module FacebookAds
|
|
44
46
|
"BECOME_A_VOLUNTEER",
|
45
47
|
"EMAIL",
|
46
48
|
"FACEBOOK_APP",
|
49
|
+
"FOLLOW",
|
50
|
+
"MARKETPLACE_INVENTORY_PAGE",
|
47
51
|
"MESSENGER",
|
48
52
|
"MINI_SHOP",
|
49
53
|
"NONE",
|
@@ -62,6 +66,7 @@ module FacebookAds
|
|
62
66
|
"CONTACT_US",
|
63
67
|
"DONATE_NOW",
|
64
68
|
"EMAIL",
|
69
|
+
"FOLLOW_PAGE",
|
65
70
|
"GET_DIRECTIONS",
|
66
71
|
"GET_OFFER",
|
67
72
|
"GET_OFFER_VIEW",
|
@@ -71,6 +76,7 @@ module FacebookAds
|
|
71
76
|
"LOCAL_DEV_PLATFORM",
|
72
77
|
"MESSAGE",
|
73
78
|
"OPEN_APP",
|
79
|
+
"ORDER_FOOD",
|
74
80
|
"PLAY_MUSIC",
|
75
81
|
"PLAY_NOW",
|
76
82
|
"PURCHASE_GIFT_CARDS",
|
@@ -79,6 +85,7 @@ module FacebookAds
|
|
79
85
|
"SHOP_NOW",
|
80
86
|
"SHOP_ON_FACEBOOK",
|
81
87
|
"SIGN_UP",
|
88
|
+
"VIEW_INVENTORY",
|
82
89
|
"VIEW_SHOP",
|
83
90
|
"VISIT_GROUP",
|
84
91
|
"WATCH_NOW",
|
@@ -89,6 +96,7 @@ module FacebookAds
|
|
89
96
|
"BECOME_A_VOLUNTEER",
|
90
97
|
"BECOME_SUPPORTER",
|
91
98
|
"EMAIL",
|
99
|
+
"FOLLOW",
|
92
100
|
"MESSENGER",
|
93
101
|
"NONE",
|
94
102
|
"SHOP_ON_FACEBOOK",
|
@@ -62,15 +62,19 @@ module FacebookAds
|
|
62
62
|
field :comments_mirroring_domain, 'string'
|
63
63
|
field :coordinates, 'object'
|
64
64
|
field :created_time, 'datetime'
|
65
|
+
field :delivery_growth_optimizations, { list: 'string' }
|
66
|
+
field :entities, 'object'
|
65
67
|
field :event, 'Event'
|
66
68
|
field :expanded_height, 'int'
|
67
69
|
field :expanded_width, 'int'
|
68
70
|
field :feed_targeting, 'object'
|
71
|
+
field :formatting, 'string'
|
69
72
|
field :from, 'object'
|
70
73
|
field :full_picture, 'string'
|
71
74
|
field :height, 'int'
|
72
75
|
field :icon, 'string'
|
73
76
|
field :id, 'string'
|
77
|
+
field :implicit_place, 'Place'
|
74
78
|
field :instagram_eligibility, 'string'
|
75
79
|
field :is_app_share, 'bool'
|
76
80
|
field :is_eligible_for_promotion, 'bool'
|
@@ -81,6 +85,7 @@ module FacebookAds
|
|
81
85
|
field :is_popular, 'bool'
|
82
86
|
field :is_published, 'bool'
|
83
87
|
field :is_spherical, 'bool'
|
88
|
+
field :live_video_eligibility, { list: 'string' }
|
84
89
|
field :message, 'string'
|
85
90
|
field :message_tags, { list: 'string' }
|
86
91
|
field :multi_share_end_card, 'bool'
|
@@ -93,6 +98,7 @@ module FacebookAds
|
|
93
98
|
field :promotable_id, 'string'
|
94
99
|
field :promotion_status, 'string'
|
95
100
|
field :properties, { list: 'string' }
|
101
|
+
field :publishing_stats, 'int'
|
96
102
|
field :scheduled_publish_time, 'double'
|
97
103
|
field :shares, 'object'
|
98
104
|
field :status_type, 'string'
|
@@ -102,10 +108,12 @@ module FacebookAds
|
|
102
108
|
field :target, 'Profile'
|
103
109
|
field :targeting, 'object'
|
104
110
|
field :timeline_visibility, 'string'
|
111
|
+
field :translations, 'hash'
|
105
112
|
field :updated_time, 'datetime'
|
106
113
|
field :via, 'object'
|
107
114
|
field :video_buying_eligibility, { list: 'string' }
|
108
115
|
field :width, 'int'
|
116
|
+
field :will_be_autocropped_when_deliver_to_instagram, 'bool'
|
109
117
|
|
110
118
|
has_edge :attachments do |edge|
|
111
119
|
edge.get
|
@@ -25,18 +25,32 @@ 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 PaymentSubscription < AdObject
|
29
29
|
|
30
|
-
field :
|
31
|
-
field :
|
32
|
-
field :
|
30
|
+
field :amount, 'string'
|
31
|
+
field :app_param_data, 'string'
|
32
|
+
field :application, 'Profile'
|
33
|
+
field :billing_period, 'string'
|
34
|
+
field :canceled_reason, 'string'
|
35
|
+
field :created_time, 'datetime'
|
36
|
+
field :currency, 'string'
|
33
37
|
field :id, 'string'
|
34
|
-
field :
|
35
|
-
field :
|
38
|
+
field :last_payment, 'string'
|
39
|
+
field :next_bill_time, 'datetime'
|
40
|
+
field :next_period_amount, 'string'
|
41
|
+
field :next_period_currency, 'string'
|
42
|
+
field :next_period_product, 'string'
|
43
|
+
field :payment_status, 'string'
|
44
|
+
field :pending_cancel, 'bool'
|
45
|
+
field :period_start_time, 'datetime'
|
46
|
+
field :product, 'string'
|
36
47
|
field :status, 'string'
|
37
|
-
field :
|
38
|
-
field :
|
39
|
-
field :
|
48
|
+
field :test, 'int'
|
49
|
+
field :trial_amount, 'string'
|
50
|
+
field :trial_currency, 'string'
|
51
|
+
field :trial_expiry_time, 'datetime'
|
52
|
+
field :updated_time, 'datetime'
|
53
|
+
field :user, 'Profile'
|
40
54
|
has_no_post
|
41
55
|
has_no_delete
|
42
56
|
|
@@ -59,16 +59,20 @@ module FacebookAds
|
|
59
59
|
field :comments_mirroring_domain, 'string'
|
60
60
|
field :coordinates, 'object'
|
61
61
|
field :created_time, 'datetime'
|
62
|
+
field :delivery_growth_optimizations, { list: 'string' }
|
62
63
|
field :description, 'string'
|
64
|
+
field :entities, 'object'
|
63
65
|
field :event, 'Event'
|
64
66
|
field :expanded_height, 'int'
|
65
67
|
field :expanded_width, 'int'
|
66
68
|
field :feed_targeting, 'object'
|
69
|
+
field :formatting, 'string'
|
67
70
|
field :from, 'object'
|
68
71
|
field :full_picture, 'string'
|
69
72
|
field :height, 'int'
|
70
73
|
field :icon, 'string'
|
71
74
|
field :id, 'string'
|
75
|
+
field :implicit_place, 'Place'
|
72
76
|
field :instagram_eligibility, 'string'
|
73
77
|
field :is_app_share, 'bool'
|
74
78
|
field :is_eligible_for_promotion, 'bool'
|
@@ -80,6 +84,7 @@ module FacebookAds
|
|
80
84
|
field :is_published, 'bool'
|
81
85
|
field :is_spherical, 'bool'
|
82
86
|
field :link, 'string'
|
87
|
+
field :live_video_eligibility, { list: 'string' }
|
83
88
|
field :message, 'string'
|
84
89
|
field :message_tags, { list: 'string' }
|
85
90
|
field :multi_share_end_card, 'bool'
|
@@ -94,6 +99,7 @@ module FacebookAds
|
|
94
99
|
field :promotable_id, 'string'
|
95
100
|
field :promotion_status, 'string'
|
96
101
|
field :properties, { list: 'string' }
|
102
|
+
field :publishing_stats, 'int'
|
97
103
|
field :scheduled_publish_time, 'double'
|
98
104
|
field :shares, 'object'
|
99
105
|
field :source, 'string'
|
@@ -104,11 +110,13 @@ module FacebookAds
|
|
104
110
|
field :target, 'Profile'
|
105
111
|
field :targeting, 'object'
|
106
112
|
field :timeline_visibility, 'string'
|
113
|
+
field :translations, 'hash'
|
107
114
|
field :type, 'string'
|
108
115
|
field :updated_time, 'datetime'
|
109
116
|
field :via, 'object'
|
110
117
|
field :video_buying_eligibility, { list: 'string' }
|
111
118
|
field :width, 'int'
|
119
|
+
field :will_be_autocropped_when_deliver_to_instagram, 'bool'
|
112
120
|
|
113
121
|
has_edge :attachments do |edge|
|
114
122
|
edge.get
|
@@ -170,7 +178,7 @@ module FacebookAds
|
|
170
178
|
api.has_param :audience_id, 'string'
|
171
179
|
api.has_param :bid_amount, 'int'
|
172
180
|
api.has_param :budget, 'int'
|
173
|
-
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_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 RECORD_NOW REQUEST_TIME SAY_THANKS SEE_MORE SELL_NOW SHARE SHOP_NOW SIGN_UP SOTTO_SUBSCRIBE SUBSCRIBE UPDATE_APP USE_APP USE_MOBILE_APP VIDEO_ANNOTATION VISIT_PAGES_FEED WATCH_MORE WATCH_VIDEO WHATSAPP_MESSAGE WOODHENGE_SUPPORT }}
|
181
|
+
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 REQUEST_TIME SAY_THANKS SEE_MORE SELL_NOW SEND_A_GIFT SHARE SHOP_NOW SIGN_UP SOTTO_SUBSCRIBE SUBSCRIBE UPDATE_APP USE_APP USE_MOBILE_APP VIDEO_ANNOTATION VISIT_PAGES_FEED WATCH_MORE WATCH_VIDEO WHATSAPP_MESSAGE WOODHENGE_SUPPORT }}
|
174
182
|
api.has_param :currency, 'string'
|
175
183
|
api.has_param :flow_id, 'string'
|
176
184
|
api.has_param :placement, 'string'
|
@@ -27,6 +27,7 @@ module FacebookAds
|
|
27
27
|
|
28
28
|
class ProductCatalog < AdObject
|
29
29
|
VERTICAL = [
|
30
|
+
"adoptable_pets",
|
30
31
|
"bookable",
|
31
32
|
"commerce",
|
32
33
|
"destinations",
|
@@ -34,6 +35,7 @@ module FacebookAds
|
|
34
35
|
"home_listings",
|
35
36
|
"hotels",
|
36
37
|
"jobs",
|
38
|
+
"local_service_businesses",
|
37
39
|
"offer_items",
|
38
40
|
"offline_commerce",
|
39
41
|
"ticketed_experiences",
|
@@ -49,11 +51,13 @@ module FacebookAds
|
|
49
51
|
PERMITTED_TASKS = [
|
50
52
|
"ADVERTISE",
|
51
53
|
"MANAGE",
|
54
|
+
"MANAGE_AR",
|
52
55
|
]
|
53
56
|
|
54
57
|
TASKS = [
|
55
58
|
"ADVERTISE",
|
56
59
|
"MANAGE",
|
60
|
+
"MANAGE_AR",
|
57
61
|
]
|
58
62
|
|
59
63
|
STANDARD = [
|
@@ -62,7 +66,7 @@ module FacebookAds
|
|
62
66
|
|
63
67
|
|
64
68
|
field :business, 'Business'
|
65
|
-
field :
|
69
|
+
field :commerce_merchant_settings, 'CommerceMerchantSettings'
|
66
70
|
field :da_display_settings, 'ProductCatalogImageSettings'
|
67
71
|
field :default_image_url, 'string'
|
68
72
|
field :fallback_image_url, { list: 'string' }
|
@@ -75,6 +79,7 @@ module FacebookAds
|
|
75
79
|
field :vertical, 'string'
|
76
80
|
field :destination_catalog_settings, 'hash'
|
77
81
|
field :flight_catalog_settings, 'hash'
|
82
|
+
field :onsite_commerce_merchant, 'object'
|
78
83
|
|
79
84
|
has_edge :agencies do |edge|
|
80
85
|
edge.delete do |api|
|
@@ -235,6 +240,12 @@ module FacebookAds
|
|
235
240
|
end
|
236
241
|
end
|
237
242
|
|
243
|
+
has_edge :onsite_commerce_merchant do |edge|
|
244
|
+
edge.post 'ProductCatalog' do |api|
|
245
|
+
api.has_param :onsite_commerce_merchant, 'object'
|
246
|
+
end
|
247
|
+
end
|
248
|
+
|
238
249
|
has_edge :pricing_variables_batch do |edge|
|
239
250
|
edge.get 'ProductCatalogPricingVariablesBatch' do |api|
|
240
251
|
api.has_param :handle, 'string'
|
@@ -287,6 +298,7 @@ module FacebookAds
|
|
287
298
|
end
|
288
299
|
edge.post 'ProductSet' do |api|
|
289
300
|
api.has_param :filter, 'object'
|
301
|
+
api.has_param :metadata, 'hash'
|
290
302
|
api.has_param :name, 'string'
|
291
303
|
end
|
292
304
|
end
|
@@ -25,9 +25,9 @@ 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 ProductFeedUploadDiagnosticsReport < AdObject
|
29
29
|
|
30
|
-
field :
|
30
|
+
field :last_updated_time, 'string'
|
31
31
|
field :report_url, 'string'
|
32
32
|
has_no_id
|
33
33
|
has_no_get
|
@@ -292,6 +292,7 @@ module FacebookAds
|
|
292
292
|
field :additional_image_urls, { list: 'string' }
|
293
293
|
field :additional_variant_attributes, 'hash'
|
294
294
|
field :age_group, { enum: -> { AGE_GROUP }}
|
295
|
+
field :applinks, 'CatalogItemAppLinks'
|
295
296
|
field :availability, { enum: -> { AVAILABILITY }}
|
296
297
|
field :brand, 'string'
|
297
298
|
field :capability_to_review_status, 'hash'
|
@@ -30,9 +30,12 @@ module FacebookAds
|
|
30
30
|
field :auto_creation_url, 'string'
|
31
31
|
field :filter, 'string'
|
32
32
|
field :id, 'string'
|
33
|
+
field :latest_metadata, 'ProductSetMetadata'
|
34
|
+
field :live_metadata, 'ProductSetMetadata'
|
33
35
|
field :name, 'string'
|
34
36
|
field :product_catalog, 'ProductCatalog'
|
35
37
|
field :product_count, 'int'
|
38
|
+
field :metadata, 'hash'
|
36
39
|
|
37
40
|
has_edge :automotive_models do |edge|
|
38
41
|
edge.get 'AutomotiveModel' do |api|
|
data/lib/facebook_ads/ad_objects/{custom_audience_prefill_state.rb → product_set_metadata.rb}
RENAMED
@@ -25,11 +25,11 @@ module FacebookAds
|
|
25
25
|
# on github and we'll fix in our codegen framework. We'll not be able to accept
|
26
26
|
# pull request for this class.
|
27
27
|
|
28
|
-
class
|
28
|
+
class ProductSetMetadata < AdObject
|
29
29
|
|
30
|
+
field :cover_image_url, 'string'
|
30
31
|
field :description, 'string'
|
31
|
-
field :
|
32
|
-
field :status, 'string'
|
32
|
+
field :integrity_review_status, 'string'
|
33
33
|
has_no_id
|
34
34
|
has_no_get
|
35
35
|
has_no_post
|
@@ -36,6 +36,7 @@ module FacebookAds
|
|
36
36
|
|
37
37
|
TYPE = [
|
38
38
|
"ANGRY",
|
39
|
+
"CARE",
|
39
40
|
"HAHA",
|
40
41
|
"LIKE",
|
41
42
|
"LOVE",
|
@@ -63,6 +64,7 @@ module FacebookAds
|
|
63
64
|
|
64
65
|
has_edge :picture do |edge|
|
65
66
|
edge.get 'ProfilePictureSource' do |api|
|
67
|
+
api.has_param :breaking_change, { enum: -> { ProfilePictureSource::BREAKING_CHANGE }}
|
66
68
|
api.has_param :height, 'int'
|
67
69
|
api.has_param :redirect, 'bool'
|
68
70
|
api.has_param :type, { enum: -> { ProfilePictureSource::TYPE }}
|
@@ -38,12 +38,6 @@ module FacebookAds
|
|
38
38
|
field :owner_ad_account_id, 'string'
|
39
39
|
field :web_publishers, { list: 'object' }
|
40
40
|
|
41
|
-
has_edge :paged_app_publishers do |edge|
|
42
|
-
edge.get do |api|
|
43
|
-
api.has_param :draft_id, 'string'
|
44
|
-
end
|
45
|
-
end
|
46
|
-
|
47
41
|
has_edge :paged_web_publishers do |edge|
|
48
42
|
edge.get do |api|
|
49
43
|
api.has_param :draft_id, 'string'
|
@@ -22,20 +22,23 @@ module FacebookAds
|
|
22
22
|
# Content object contains information about the products.
|
23
23
|
class Content
|
24
24
|
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
attr_accessor :item_price
|
25
|
+
attr_accessor :product_id,
|
26
|
+
:quantity,
|
27
|
+
:item_price,
|
28
|
+
:title,
|
29
|
+
:description,
|
30
|
+
:brand,
|
31
|
+
:category
|
33
32
|
|
34
33
|
# Initializes the object
|
35
34
|
# @param [String] product_id
|
36
35
|
# @param [Integer] quantity
|
37
36
|
# @param [Float] item_price
|
38
|
-
|
37
|
+
# @param [String] title
|
38
|
+
# @param [String] description
|
39
|
+
# @param [String] brand
|
40
|
+
# @param [String] category
|
41
|
+
def initialize(product_id: nil, quantity: nil, item_price: nil, title: nil, description: nil, brand: nil, category: nil)
|
39
42
|
unless product_id.nil?
|
40
43
|
self.product_id = String(product_id)
|
41
44
|
end
|
@@ -45,6 +48,18 @@ module FacebookAds
|
|
45
48
|
unless item_price.nil?
|
46
49
|
self.item_price = Float(item_price)
|
47
50
|
end
|
51
|
+
unless title.nil?
|
52
|
+
self.title = String(title)
|
53
|
+
end
|
54
|
+
unless description.nil?
|
55
|
+
self.description = String(description)
|
56
|
+
end
|
57
|
+
unless brand.nil?
|
58
|
+
self.brand = String(brand)
|
59
|
+
end
|
60
|
+
unless category.nil?
|
61
|
+
self.category = String(category)
|
62
|
+
end
|
48
63
|
end
|
49
64
|
|
50
65
|
# build the object using the input hash
|
@@ -66,15 +81,34 @@ module FacebookAds
|
|
66
81
|
if attributes.has_key?(:'item_price')
|
67
82
|
self.item_price = attributes[:'item_price']
|
68
83
|
end
|
84
|
+
|
85
|
+
if attributes.has_key?(:'title')
|
86
|
+
self.title = attributes[:'title']
|
87
|
+
end
|
88
|
+
|
89
|
+
if attributes.has_key?(:'description')
|
90
|
+
self.description = attributes[:'description']
|
91
|
+
end
|
92
|
+
|
93
|
+
if attributes.has_key?(:'brand')
|
94
|
+
self.brand = attributes[:'brand']
|
95
|
+
end
|
96
|
+
|
97
|
+
if attributes.has_key?(:'category')
|
98
|
+
self.category = attributes[:'category']
|
99
|
+
end
|
69
100
|
end
|
70
101
|
|
71
102
|
# Checks equality by comparing each attribute.
|
72
103
|
def ==(o)
|
73
|
-
return
|
74
|
-
self.class == o.class &&
|
104
|
+
return self.class == o.class &&
|
75
105
|
product_id == o.product_id &&
|
76
106
|
quantity == o.quantity &&
|
77
|
-
item_price == o.item_price
|
107
|
+
item_price == o.item_price &&
|
108
|
+
title == o.title &&
|
109
|
+
description == o.description &&
|
110
|
+
brand == o.brand &&
|
111
|
+
category == o.category
|
78
112
|
end
|
79
113
|
|
80
114
|
# @see the `==` method
|
@@ -88,7 +122,11 @@ module FacebookAds
|
|
88
122
|
[
|
89
123
|
product_id,
|
90
124
|
quantity,
|
91
|
-
item_price
|
125
|
+
item_price,
|
126
|
+
title,
|
127
|
+
description,
|
128
|
+
brand,
|
129
|
+
category
|
92
130
|
].hash
|
93
131
|
end
|
94
132
|
|
@@ -106,6 +144,18 @@ module FacebookAds
|
|
106
144
|
unless item_price.nil?
|
107
145
|
hash['item_price'] = item_price
|
108
146
|
end
|
147
|
+
unless title.nil?
|
148
|
+
hash['title'] = title
|
149
|
+
end
|
150
|
+
unless description.nil?
|
151
|
+
hash['description'] = description
|
152
|
+
end
|
153
|
+
unless brand.nil?
|
154
|
+
hash['brand'] = brand
|
155
|
+
end
|
156
|
+
unless category.nil?
|
157
|
+
hash['category'] = category
|
158
|
+
end
|
109
159
|
hash.to_s
|
110
160
|
end
|
111
161
|
|
@@ -121,6 +171,18 @@ module FacebookAds
|
|
121
171
|
unless item_price.nil?
|
122
172
|
hash['item_price'] = item_price
|
123
173
|
end
|
174
|
+
unless title.nil?
|
175
|
+
hash['title'] = title
|
176
|
+
end
|
177
|
+
unless description.nil?
|
178
|
+
hash['description'] = description
|
179
|
+
end
|
180
|
+
unless brand.nil?
|
181
|
+
hash['brand'] = brand
|
182
|
+
end
|
183
|
+
unless category.nil?
|
184
|
+
hash['category'] = category
|
185
|
+
end
|
124
186
|
hash
|
125
187
|
end
|
126
188
|
end
|