facebookbusiness 0.7.0.0 → 0.7.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 +0 -1
- data/lib/facebook_ads/ad_objects/ad_account.rb +1 -0
- data/lib/facebook_ads/ad_objects/ad_account_creation_request.rb +0 -1
- data/lib/facebook_ads/ad_objects/ad_account_targeting_unified.rb +2 -0
- data/lib/facebook_ads/ad_objects/ad_activity.rb +1 -0
- data/lib/facebook_ads/ad_objects/ad_asset_feed_spec.rb +1 -0
- data/lib/facebook_ads/ad_objects/ad_creative.rb +1 -3
- data/lib/facebook_ads/ad_objects/ad_creative_link_data_call_to_action.rb +1 -0
- data/lib/facebook_ads/ad_objects/ad_network_analytics_sync_query_result.rb +1 -0
- data/lib/facebook_ads/ad_objects/ad_preview.rb +2 -0
- data/lib/facebook_ads/ad_objects/ad_video.rb +1 -0
- data/lib/facebook_ads/ad_objects/adgroup_activity.rb +4 -4
- data/lib/facebook_ads/ad_objects/ads_insights.rb +5 -0
- data/lib/facebook_ads/ad_objects/album.rb +7 -0
- data/lib/facebook_ads/ad_objects/business.rb +20 -1
- data/lib/facebook_ads/ad_objects/{video_game_show.rb → business_agreement.rb} +10 -6
- data/lib/facebook_ads/ad_objects/business_image.rb +1 -0
- 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 +1 -0
- data/lib/facebook_ads/ad_objects/business_user.rb +1 -0
- data/lib/facebook_ads/ad_objects/campaign.rb +1 -0
- data/lib/facebook_ads/ad_objects/comment.rb +1 -0
- data/lib/facebook_ads/ad_objects/commerce_merchant_settings.rb +99 -0
- data/lib/facebook_ads/ad_objects/{request_history.rb → commerce_merchant_settings_setup_status.rb} +6 -14
- data/lib/facebook_ads/ad_objects/commerce_order.rb +147 -0
- data/lib/facebook_ads/ad_objects/commerce_order_transaction_detail.rb +48 -0
- data/lib/facebook_ads/ad_objects/{custom_audience_prefill_state.rb → commerce_payout.rb} +5 -3
- 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/ig_user.rb +1 -0
- data/lib/facebook_ads/ad_objects/life_event.rb +0 -4
- data/lib/facebook_ads/ad_objects/offline_conversion_data_set.rb +0 -6
- data/lib/facebook_ads/ad_objects/page.rb +41 -16
- data/lib/facebook_ads/ad_objects/page_call_to_action.rb +5 -0
- data/lib/facebook_ads/ad_objects/page_post.rb +8 -0
- data/lib/facebook_ads/ad_objects/post.rb +9 -1
- data/lib/facebook_ads/ad_objects/product_catalog.rb +8 -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/profile.rb +1 -0
- data/lib/facebook_ads/ad_objects/server_side/user_data.rb +6 -0
- data/lib/facebook_ads/ad_objects/streaming_reaction.rb +1 -0
- data/lib/facebook_ads/ad_objects/system_user.rb +1 -0
- data/lib/facebook_ads/ad_objects/user.rb +0 -12
- data/lib/facebook_ads/ad_objects/whats_app_business_account.rb +4 -0
- data/lib/facebook_ads/version.rb +1 -1
- metadata +9 -7
- data/lib/facebook_ads/ad_objects/open_graph_object.rb +0 -70
@@ -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 PURCHASE_GIFT_CARDS 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 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'
|
@@ -63,6 +63,7 @@ module FacebookAds
|
|
63
63
|
|
64
64
|
|
65
65
|
field :business, 'Business'
|
66
|
+
field :commerce_merchant_settings, 'CommerceMerchantSettings'
|
66
67
|
field :da_display_settings, 'ProductCatalogImageSettings'
|
67
68
|
field :default_image_url, 'string'
|
68
69
|
field :fallback_image_url, { list: 'string' }
|
@@ -75,6 +76,7 @@ module FacebookAds
|
|
75
76
|
field :vertical, 'string'
|
76
77
|
field :destination_catalog_settings, 'hash'
|
77
78
|
field :flight_catalog_settings, 'hash'
|
79
|
+
field :onsite_commerce_merchant, 'object'
|
78
80
|
|
79
81
|
has_edge :agencies do |edge|
|
80
82
|
edge.delete do |api|
|
@@ -235,6 +237,12 @@ module FacebookAds
|
|
235
237
|
end
|
236
238
|
end
|
237
239
|
|
240
|
+
has_edge :onsite_commerce_merchant do |edge|
|
241
|
+
edge.post 'ProductCatalog' do |api|
|
242
|
+
api.has_param :onsite_commerce_merchant, 'object'
|
243
|
+
end
|
244
|
+
end
|
245
|
+
|
238
246
|
has_edge :pricing_variables_batch do |edge|
|
239
247
|
edge.get 'ProductCatalogPricingVariablesBatch' do |api|
|
240
248
|
api.has_param :handle, 'string'
|
@@ -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
|
@@ -328,6 +328,9 @@ module FacebookAds
|
|
328
328
|
unless client_ip_address.nil?
|
329
329
|
hash['client_ip_address'] = client_ip_address
|
330
330
|
end
|
331
|
+
unless client_user_agent.nil?
|
332
|
+
hash['client_user_agent'] = client_user_agent
|
333
|
+
end
|
331
334
|
unless fbc.nil?
|
332
335
|
hash['fbc'] = fbc
|
333
336
|
end
|
@@ -380,6 +383,9 @@ module FacebookAds
|
|
380
383
|
unless client_ip_address.nil?
|
381
384
|
hash['client_ip_address'] = client_ip_address
|
382
385
|
end
|
386
|
+
unless client_user_agent.nil?
|
387
|
+
hash['client_user_agent'] = client_user_agent
|
388
|
+
end
|
383
389
|
unless fbc.nil?
|
384
390
|
hash['fbc'] = fbc
|
385
391
|
end
|
@@ -422,14 +422,6 @@ module FacebookAds
|
|
422
422
|
end
|
423
423
|
end
|
424
424
|
|
425
|
-
has_edge :games_stats do |edge|
|
426
|
-
edge.post do |api|
|
427
|
-
api.has_param :inc, 'int'
|
428
|
-
api.has_param :set, 'int'
|
429
|
-
api.has_param :stat_name, 'string'
|
430
|
-
end
|
431
|
-
end
|
432
|
-
|
433
425
|
has_edge :groups do |edge|
|
434
426
|
edge.get 'Group' do |api|
|
435
427
|
api.has_param :admin_only, 'bool'
|
@@ -604,10 +596,6 @@ module FacebookAds
|
|
604
596
|
end
|
605
597
|
end
|
606
598
|
|
607
|
-
has_edge :request_history do |edge|
|
608
|
-
edge.get 'RequestHistory'
|
609
|
-
end
|
610
|
-
|
611
599
|
has_edge :rich_media_documents do |edge|
|
612
600
|
edge.get 'Canvas' do |api|
|
613
601
|
api.has_param :query, 'string'
|
data/lib/facebook_ads/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: facebookbusiness
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.0.
|
4
|
+
version: 0.7.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Facebook
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-06-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -360,6 +360,7 @@ files:
|
|
360
360
|
- lib/facebook_ads/ad_objects/broad_targeting_categories.rb
|
361
361
|
- lib/facebook_ads/ad_objects/business.rb
|
362
362
|
- lib/facebook_ads/ad_objects/business_ad_account_request.rb
|
363
|
+
- lib/facebook_ads/ad_objects/business_agreement.rb
|
363
364
|
- lib/facebook_ads/ad_objects/business_application_request.rb
|
364
365
|
- lib/facebook_ads/ad_objects/business_asset_group.rb
|
365
366
|
- lib/facebook_ads/ad_objects/business_asset_sharing_agreement.rb
|
@@ -388,6 +389,11 @@ files:
|
|
388
389
|
- lib/facebook_ads/ad_objects/collaborative_ads_partner_info_list_item.rb
|
389
390
|
- lib/facebook_ads/ad_objects/collaborative_ads_share_settings.rb
|
390
391
|
- lib/facebook_ads/ad_objects/comment.rb
|
392
|
+
- lib/facebook_ads/ad_objects/commerce_merchant_settings.rb
|
393
|
+
- lib/facebook_ads/ad_objects/commerce_merchant_settings_setup_status.rb
|
394
|
+
- lib/facebook_ads/ad_objects/commerce_order.rb
|
395
|
+
- lib/facebook_ads/ad_objects/commerce_order_transaction_detail.rb
|
396
|
+
- lib/facebook_ads/ad_objects/commerce_payout.rb
|
391
397
|
- lib/facebook_ads/ad_objects/commerce_settings.rb
|
392
398
|
- lib/facebook_ads/ad_objects/content_delivery_report.rb
|
393
399
|
- lib/facebook_ads/ad_objects/conversion_action_query.rb
|
@@ -402,7 +408,6 @@ files:
|
|
402
408
|
- lib/facebook_ads/ad_objects/custom_audience.rb
|
403
409
|
- lib/facebook_ads/ad_objects/custom_audience_ad_account.rb
|
404
410
|
- lib/facebook_ads/ad_objects/custom_audience_data_source.rb
|
405
|
-
- lib/facebook_ads/ad_objects/custom_audience_prefill_state.rb
|
406
411
|
- lib/facebook_ads/ad_objects/custom_audience_session.rb
|
407
412
|
- lib/facebook_ads/ad_objects/custom_audience_sharing_status.rb
|
408
413
|
- lib/facebook_ads/ad_objects/custom_audience_status.rb
|
@@ -492,7 +497,6 @@ files:
|
|
492
497
|
- lib/facebook_ads/ad_objects/offline_terms_of_service.rb
|
493
498
|
- lib/facebook_ads/ad_objects/offsite_pixel.rb
|
494
499
|
- lib/facebook_ads/ad_objects/open_graph_context.rb
|
495
|
-
- lib/facebook_ads/ad_objects/open_graph_object.rb
|
496
500
|
- lib/facebook_ads/ad_objects/oracle_transaction.rb
|
497
501
|
- lib/facebook_ads/ad_objects/outcome_prediction_point.rb
|
498
502
|
- lib/facebook_ads/ad_objects/page.rb
|
@@ -537,7 +541,7 @@ files:
|
|
537
541
|
- lib/facebook_ads/ad_objects/product_feed_rule_suggestion.rb
|
538
542
|
- lib/facebook_ads/ad_objects/product_feed_schedule.rb
|
539
543
|
- lib/facebook_ads/ad_objects/product_feed_upload.rb
|
540
|
-
- lib/facebook_ads/ad_objects/
|
544
|
+
- lib/facebook_ads/ad_objects/product_feed_upload_diagnostics_report.rb
|
541
545
|
- lib/facebook_ads/ad_objects/product_feed_upload_error.rb
|
542
546
|
- lib/facebook_ads/ad_objects/product_feed_upload_error_report.rb
|
543
547
|
- lib/facebook_ads/ad_objects/product_feed_upload_error_sample.rb
|
@@ -562,7 +566,6 @@ files:
|
|
562
566
|
- lib/facebook_ads/ad_objects/read_only_analytics_user_property_config.rb
|
563
567
|
- lib/facebook_ads/ad_objects/recommendation.rb
|
564
568
|
- lib/facebook_ads/ad_objects/referral.rb
|
565
|
-
- lib/facebook_ads/ad_objects/request_history.rb
|
566
569
|
- lib/facebook_ads/ad_objects/rev_share_policy.rb
|
567
570
|
- lib/facebook_ads/ad_objects/rich_media_element.rb
|
568
571
|
- lib/facebook_ads/ad_objects/rtb_dynamic_post.rb
|
@@ -624,7 +627,6 @@ files:
|
|
624
627
|
- lib/facebook_ads/ad_objects/video_copyright_geo_gate.rb
|
625
628
|
- lib/facebook_ads/ad_objects/video_copyright_rule.rb
|
626
629
|
- lib/facebook_ads/ad_objects/video_copyright_segment.rb
|
627
|
-
- lib/facebook_ads/ad_objects/video_game_show.rb
|
628
630
|
- lib/facebook_ads/ad_objects/video_list.rb
|
629
631
|
- lib/facebook_ads/ad_objects/video_poll.rb
|
630
632
|
- lib/facebook_ads/ad_objects/video_thumbnail.rb
|
@@ -1,70 +0,0 @@
|
|
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 OpenGraphObject < AdObject
|
29
|
-
|
30
|
-
field :admins, { list: 'object' }
|
31
|
-
field :application, 'object'
|
32
|
-
field :audio, { list: 'object' }
|
33
|
-
field :created_time, 'datetime'
|
34
|
-
field :description, 'string'
|
35
|
-
field :determiner, 'string'
|
36
|
-
field :engagement, 'Engagement'
|
37
|
-
field :id, 'string'
|
38
|
-
field :image, { list: 'object' }
|
39
|
-
field :is_scraped, 'bool'
|
40
|
-
field :locale, 'object'
|
41
|
-
field :location, 'Location'
|
42
|
-
field :post_action_id, 'string'
|
43
|
-
field :profile_id, 'object'
|
44
|
-
field :restrictions, 'object'
|
45
|
-
field :see_also, { list: 'string' }
|
46
|
-
field :site_name, 'string'
|
47
|
-
field :title, 'string'
|
48
|
-
field :type, 'string'
|
49
|
-
field :updated_time, 'datetime'
|
50
|
-
field :video, { list: 'object' }
|
51
|
-
has_no_post
|
52
|
-
has_no_delete
|
53
|
-
|
54
|
-
has_edge :comments do |edge|
|
55
|
-
edge.get 'Comment' do |api|
|
56
|
-
api.has_param :filter, { enum: -> { Comment::FILTER }}
|
57
|
-
api.has_param :live_filter, { enum: -> { Comment::LIVE_FILTER }}
|
58
|
-
api.has_param :order, { enum: -> { Comment::ORDER }}
|
59
|
-
api.has_param :since, 'datetime'
|
60
|
-
end
|
61
|
-
end
|
62
|
-
|
63
|
-
has_edge :reactions do |edge|
|
64
|
-
edge.get 'Profile' do |api|
|
65
|
-
api.has_param :type, { enum: -> { Profile::TYPE }}
|
66
|
-
end
|
67
|
-
end
|
68
|
-
|
69
|
-
end
|
70
|
-
end
|