facebookbusiness 0.4.0.4 → 0.4.0.5

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f7a57d23b229a1e17948bf50558f786b810ce1d6bfbc50014837fd1935335e1a
4
- data.tar.gz: ec2fbcf12a7095e1ef29c4a9307138de15c733bb5a5266e8b672f934d0a777e5
3
+ metadata.gz: b82568e6d37156964d22085d8ca07df0e0aa9353d3b4e87c3b61f802642cb009
4
+ data.tar.gz: 3b684db3962121dfd6dcc6b21ce6a1f6c7bc68bd98319498419dd75903309734
5
5
  SHA512:
6
- metadata.gz: 9248c37fb56e0d0477d8604d7c7fe382bfd648c214c98b12625cee28a1300539aba2727470877ce760336245574f3b1f03beae7389105c9d0e1c3a49d99118af
7
- data.tar.gz: 9198840a29ed88d7c197f8cd251fcf029749f2893c0ffe1408f8890b6fa45e398061cd32a20b78a9cae12539b162b3c7fe488db39160ebd7ccd2d4f0d99f0c16
6
+ metadata.gz: 7d422216a49360673ec8c50a77d291078d3180310ded3ea4109e80febeddcdf0d903edeaf98c252686a716e27651fdf25b48eff9a81174ea9154261756cf748d
7
+ data.tar.gz: 33b3a941b916f780eef1b9b9cbcf2ea019f9e8f3fd49ded7a2d93964a2a6cf82c9fb3a64e629a9691ff4b4ccff5e9215fb3c0315b79a3916cb3e8f9af009cba5
@@ -1111,6 +1111,15 @@ module FacebookAds
1111
1111
  end
1112
1112
  end
1113
1113
 
1114
+ has_edge :subscribed_apps do |edge|
1115
+ edge.delete do |api|
1116
+ api.has_param :app_id, 'string'
1117
+ end
1118
+ edge.post 'Application' do |api|
1119
+ api.has_param :app_id, 'string'
1120
+ end
1121
+ end
1122
+
1114
1123
  has_edge :targetingbrowse do |edge|
1115
1124
  edge.get 'AdAccountTargetingUnified' do |api|
1116
1125
  api.has_param :excluded_category, 'string'
@@ -110,6 +110,7 @@ module FacebookAds
110
110
  "REPLACE_VIDEO",
111
111
  "SALES_CLIENT_INTERACTION",
112
112
  "SAY_THANKS_DEPRECATED",
113
+ "SHOWREEL_NATIVE_DUMMY_VIDEO",
113
114
  "SLIDESHOW_ANIMOTO",
114
115
  "SLIDESHOW_SHAKR",
115
116
  "SOTTO_CONTENT",
@@ -180,33 +181,26 @@ module FacebookAds
180
181
  "transfer",
181
182
  ]
182
183
 
183
- VALIDATION_AD_PLACEMENT = [
184
+ VALIDATION_AD_PLACEMENTS = [
184
185
  "AUDIENCE_NETWORK_INSTREAM_VIDEO",
185
186
  "AUDIENCE_NETWORK_INSTREAM_VIDEO_MOBILE",
186
- "AUDIENCE_NETWORK_OUTSTREAM_VIDEO",
187
187
  "AUDIENCE_NETWORK_REWARDED_VIDEO",
188
188
  "DESKTOP_FEED_STANDARD",
189
189
  "FACEBOOK_STORY_MOBILE",
190
190
  "INSTAGRAM_STANDARD",
191
191
  "INSTAGRAM_STORY",
192
- "INSTANT_ARTICLE_RECIRCULATION_AD",
193
192
  "INSTANT_ARTICLE_STANDARD",
194
193
  "INSTREAM_VIDEO_DESKTOP",
195
194
  "INSTREAM_VIDEO_MOBILE",
196
- "MARKETPLACE_MOBILE",
197
195
  "MESSENGER_MOBILE_INBOX_MEDIA",
198
196
  "MESSENGER_MOBILE_STORY_MEDIA",
199
- "MOBILE_BANNER",
200
- "MOBILE_FEED_BASIC",
201
197
  "MOBILE_FEED_STANDARD",
202
198
  "MOBILE_FULLWIDTH",
203
199
  "MOBILE_INTERSTITIAL",
204
200
  "MOBILE_MEDIUM_RECTANGLE",
205
201
  "MOBILE_NATIVE",
206
202
  "RIGHT_COLUMN_STANDARD",
207
- "SUGGESTED_VIDEO_DESKTOP",
208
203
  "SUGGESTED_VIDEO_MOBILE",
209
- "WATCH_FEED_MOBILE",
210
204
  ]
211
205
 
212
206
  TYPE = [
@@ -269,7 +263,6 @@ module FacebookAds
269
263
  field :spherical, 'bool'
270
264
  field :status, 'object'
271
265
  field :title, 'string'
272
- field :tv_banner_ad, 'object'
273
266
  field :universal_video_id, 'string'
274
267
  field :updated_time, 'datetime'
275
268
  field :adaptive_type, 'string'
@@ -337,8 +330,9 @@ module FacebookAds
337
330
  field :video_file_chunk, 'string'
338
331
  field :video_start_time_ms, 'int'
339
332
  field :waterfall_id, 'string'
333
+ field :ad_placements_validation_only, 'bool'
340
334
  field :creative_folder_id, 'string'
341
- field :validation_ad_placement, { enum: -> { VALIDATION_AD_PLACEMENT }}
335
+ field :validation_ad_placements, { list: { enum: -> { VALIDATION_AD_PLACEMENTS }} }
342
336
 
343
337
  has_edge :auto_trims do |edge|
344
338
  edge.post 'AdVideo' do |api|
@@ -42,6 +42,7 @@ module FacebookAds
42
42
  field :marketplace_home_rentals, 'hash'
43
43
  field :marketplace_home_sales, 'hash'
44
44
  field :marketplace_motors, 'hash'
45
+ field :marketplace_shops, 'hash'
45
46
  field :max_review_placements, 'hash'
46
47
  field :page_admin, 'hash'
47
48
  field :product, 'hash'
@@ -183,6 +183,7 @@ module FacebookAds
183
183
  field :conditional_time_spent_ms_over_6s_actions, { list: 'AdsActionStats' }
184
184
  field :contact_actions, { list: 'AdsActionStats' }
185
185
  field :contact_value, { list: 'AdsActionStats' }
186
+ field :conversion_rate_ranking, 'string'
186
187
  field :conversion_values, { list: 'AdsActionStats' }
187
188
  field :conversions, { list: 'AdsActionStats' }
188
189
  field :cost_per_10_sec_video_view, { list: 'AdsActionStats' }
@@ -245,6 +246,7 @@ module FacebookAds
245
246
  field :dwell_7_sec, 'string'
246
247
  field :dwell_rate, 'string'
247
248
  field :earned_impression, 'string'
249
+ field :engagement_rate_ranking, 'string'
248
250
  field :estimated_ad_recall_rate, 'string'
249
251
  field :estimated_ad_recall_rate_lower_bound, 'string'
250
252
  field :estimated_ad_recall_rate_upper_bound, 'string'
@@ -293,6 +295,7 @@ module FacebookAds
293
295
  field :product_id, 'string'
294
296
  field :publisher_platform, 'string'
295
297
  field :purchase_roas, { list: 'AdsActionStats' }
298
+ field :quality_ranking, 'string'
296
299
  field :quality_score_ectr, 'string'
297
300
  field :quality_score_ecvr, 'string'
298
301
  field :quality_score_enfbr, 'string'
@@ -191,6 +191,7 @@ module FacebookAds
191
191
  field :user_support_url, 'string'
192
192
  field :website_url, 'string'
193
193
  field :weekly_active_users, 'string'
194
+ field :app_id, 'string'
194
195
  has_no_delete
195
196
 
196
197
  has_edge :accounts do |edge|
@@ -85,6 +85,7 @@ module FacebookAds
85
85
  "PAGES_MESSAGING",
86
86
  "PAGES_MESSAGING_SUBSCRIPTIONS",
87
87
  "PLATFORM_MANAGE_PAGES",
88
+ "PLATFORM_PAGES_MANAGE_INSTANT_ARTICLES",
88
89
  "PLATFORM_READ_INSIGHTS",
89
90
  "READ_PAGE_MAILBOXES",
90
91
  "VIEW_MONETIZATION_INSIGHTS",
@@ -388,6 +389,7 @@ module FacebookAds
388
389
 
389
390
  has_edge :images do |edge|
390
391
  edge.post 'BusinessImage' do |api|
392
+ api.has_param :ad_placements_validation_only, 'bool'
391
393
  api.has_param :bytes, 'object'
392
394
  api.has_param :creative_folder_id, 'string'
393
395
  api.has_param :name, 'string'
@@ -514,6 +516,7 @@ module FacebookAds
514
516
  api.has_param :destination_catalog_settings, 'hash'
515
517
  api.has_param :flight_catalog_settings, 'hash'
516
518
  api.has_param :name, 'string'
519
+ api.has_param :store_catalog_settings, 'hash'
517
520
  api.has_param :vertical, { enum: -> { ProductCatalog::VERTICAL }}
518
521
  end
519
522
  end
@@ -637,6 +640,7 @@ module FacebookAds
637
640
 
638
641
  has_edge :videos do |edge|
639
642
  edge.post 'AdVideo' do |api|
643
+ api.has_param :ad_placements_validation_only, 'bool'
640
644
  api.has_param :adaptive_type, 'string'
641
645
  api.has_param :animated_effect_id, 'int'
642
646
  api.has_param :application_id, 'string'
@@ -705,7 +709,7 @@ module FacebookAds
705
709
  api.has_param :upload_phase, { enum: -> { AdVideo::UPLOAD_PHASE }}
706
710
  api.has_param :upload_session_id, 'string'
707
711
  api.has_param :upload_setting_properties, 'string'
708
- api.has_param :validation_ad_placement, { enum: -> { AdVideo::VALIDATION_AD_PLACEMENT }}
712
+ api.has_param :validation_ad_placements, { list: { enum: -> { AdVideo::VALIDATION_AD_PLACEMENTS }} }
709
713
  api.has_param :video_file_chunk, 'string'
710
714
  api.has_param :video_start_time_ms, 'int'
711
715
  api.has_param :waterfall_id, 'string'
@@ -53,6 +53,7 @@ module FacebookAds
53
53
  "PAGES_MESSAGING",
54
54
  "PAGES_MESSAGING_SUBSCRIPTIONS",
55
55
  "PLATFORM_MANAGE_PAGES",
56
+ "PLATFORM_PAGES_MANAGE_INSTANT_ARTICLES",
56
57
  "PLATFORM_READ_INSIGHTS",
57
58
  "READ_PAGE_MAILBOXES",
58
59
  "VIEW_MONETIZATION_INSIGHTS",
@@ -66,6 +67,7 @@ module FacebookAds
66
67
 
67
68
  field :id, 'string'
68
69
  field :name, 'string'
70
+ has_no_delete
69
71
 
70
72
  has_edge :assigned_users do |edge|
71
73
  edge.delete do |api|
@@ -58,6 +58,7 @@ module FacebookAds
58
58
  field :url, 'string'
59
59
  field :url_128, 'string'
60
60
  field :width, 'int'
61
+ field :ad_placements_validation_only, 'bool'
61
62
  field :bytes, 'object'
62
63
  field :creative_folder_id, 'string'
63
64
  field :validation_ad_placements, { list: { enum: -> { VALIDATION_AD_PLACEMENTS }} }
@@ -57,10 +57,10 @@ module FacebookAds
57
57
  "HIGH_SCHOOL_FORUM",
58
58
  "JOBS",
59
59
  "LEARNING",
60
- "MEME",
61
60
  "MENTORSHIP",
62
61
  "NEIGHBORS",
63
62
  "NONE",
63
+ "PARENTING",
64
64
  "PARENTS",
65
65
  "PROJECT",
66
66
  "REAL_WORLD",
@@ -105,10 +105,10 @@ module FacebookAds
105
105
  "HIGH_SCHOOL_FORUM",
106
106
  "JOBS",
107
107
  "LEARNING",
108
- "MEME",
109
108
  "MENTORSHIP",
110
109
  "NEIGHBORS",
111
110
  "NONE",
111
+ "PARENTING",
112
112
  "PARENTS",
113
113
  "PROJECT",
114
114
  "REAL_WORLD",
@@ -26,6 +26,16 @@ module FacebookAds
26
26
  # pull request for this class.
27
27
 
28
28
  class NativeOffer < AdObject
29
+ UNIQUE_CODES_FILE_CODE_TYPE = [
30
+ "barcodes",
31
+ "discount_and_barcodes",
32
+ "discount_and_discount",
33
+ "discount_codes",
34
+ "instore_barcodes",
35
+ "instore_discount_codes",
36
+ "online_discount_codes",
37
+ ]
38
+
29
39
  BARCODE_TYPE = [
30
40
  "CODE128",
31
41
  "CODE128B",
@@ -78,6 +88,13 @@ module FacebookAds
78
88
  has_no_post
79
89
  has_no_delete
80
90
 
91
+ has_edge :codes do |edge|
92
+ edge.post 'NativeOffer' do |api|
93
+ api.has_param :file, 'file'
94
+ api.has_param :unique_codes_file_code_type, { enum: -> { NativeOffer::UNIQUE_CODES_FILE_CODE_TYPE }}
95
+ end
96
+ end
97
+
81
98
  has_edge :nativeofferviews do |edge|
82
99
  edge.post 'NativeOffer' do |api|
83
100
  api.has_param :ad_account, 'string'
@@ -104,6 +104,7 @@ module FacebookAds
104
104
  "PAGES_MESSAGING",
105
105
  "PAGES_MESSAGING_SUBSCRIPTIONS",
106
106
  "PLATFORM_MANAGE_PAGES",
107
+ "PLATFORM_PAGES_MANAGE_INSTANT_ARTICLES",
107
108
  "PLATFORM_READ_INSIGHTS",
108
109
  "READ_PAGE_MAILBOXES",
109
110
  "VIEW_MONETIZATION_INSIGHTS",
@@ -121,6 +122,7 @@ module FacebookAds
121
122
  "PAGES_MESSAGING",
122
123
  "PAGES_MESSAGING_SUBSCRIPTIONS",
123
124
  "PLATFORM_MANAGE_PAGES",
125
+ "PLATFORM_PAGES_MANAGE_INSTANT_ARTICLES",
124
126
  "PLATFORM_READ_INSIGHTS",
125
127
  "READ_PAGE_MAILBOXES",
126
128
  "VIEW_MONETIZATION_INSIGHTS",
@@ -471,7 +473,7 @@ module FacebookAds
471
473
 
472
474
  has_edge :blocked do |edge|
473
475
  edge.delete do |api|
474
- api.has_param :asid, 'object'
476
+ api.has_param :asid, 'string'
475
477
  api.has_param :psid, 'object'
476
478
  api.has_param :uid, 'object'
477
479
  api.has_param :user, 'object'
@@ -33,6 +33,7 @@ module FacebookAds
33
33
  "flights",
34
34
  "home_listings",
35
35
  "hotels",
36
+ "offline_commerce",
36
37
  "ticketed_experiences",
37
38
  "transactable_items",
38
39
  "vehicles",
@@ -67,6 +68,7 @@ module FacebookAds
67
68
  field :id, 'string'
68
69
  field :name, 'string'
69
70
  field :product_count, 'int'
71
+ field :store_catalog_settings, 'StoreCatalogSettings'
70
72
  field :vertical, 'string'
71
73
  field :destination_catalog_settings, 'hash'
72
74
  field :flight_catalog_settings, 'hash'
@@ -383,6 +385,13 @@ module FacebookAds
383
385
  end
384
386
  end
385
387
 
388
+ has_edge :store_product_items_batch do |edge|
389
+ edge.post 'ProductCatalog' do |api|
390
+ api.has_param :allow_upsert, 'bool'
391
+ api.has_param :requests, { list: 'hash' }
392
+ end
393
+ end
394
+
386
395
  has_edge :vehicles do |edge|
387
396
  edge.get 'Vehicle' do |api|
388
397
  api.has_param :bulk_pagination, 'bool'
@@ -0,0 +1,35 @@
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 StoreCatalogSettings < AdObject
29
+
30
+ field :id, 'string'
31
+ field :page, 'Page'
32
+ has_no_delete
33
+
34
+ end
35
+ end
@@ -19,6 +19,6 @@
19
19
  # FB:AUTOGEN
20
20
 
21
21
  module FacebookAds
22
- VERSION = '0.4.0.4'
22
+ VERSION = '0.4.0.5'
23
23
  API_VERSION = '4.0'
24
24
  end
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.4.0.4
4
+ version: 0.4.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Facebook
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-28 00:00:00.000000000 Z
11
+ date: 2019-09-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -550,6 +550,7 @@ files:
550
550
  - lib/facebook_ads/ad_objects/security_settings.rb
551
551
  - lib/facebook_ads/ad_objects/split_test_config.rb
552
552
  - lib/facebook_ads/ad_objects/split_test_winner.rb
553
+ - lib/facebook_ads/ad_objects/store_catalog_settings.rb
553
554
  - lib/facebook_ads/ad_objects/streaming_reaction.rb
554
555
  - lib/facebook_ads/ad_objects/system_user.rb
555
556
  - lib/facebook_ads/ad_objects/tab.rb