facebookbusiness 0.4.0.3 → 0.4.0.4

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: a5748cc422d52836c83041d83a4a7228523102b11a8ecf3e137e0834885e75d1
4
- data.tar.gz: 74117a3c77ef1eacc01588c82510322496ea76c84bf8933faf04024cfb442e30
3
+ metadata.gz: f7a57d23b229a1e17948bf50558f786b810ce1d6bfbc50014837fd1935335e1a
4
+ data.tar.gz: ec2fbcf12a7095e1ef29c4a9307138de15c733bb5a5266e8b672f934d0a777e5
5
5
  SHA512:
6
- metadata.gz: 2bf265f416c40cf9e1e97c53474c751fe149e2020aec1f2058306ae82f8769e00c72384abbef4d1a3ee90f4fca060d98cfdee4d3570a047ccf839c4c123c2605
7
- data.tar.gz: fb5bf35775044bf7829e1c8f13a0e3ccc079621ff0b5ebff4281f793a53793abc4d98955205db7186708a8f61883d034ac77ddbceb734ae4ecfc5953bfb0815e
6
+ metadata.gz: 9248c37fb56e0d0477d8604d7c7fe382bfd648c214c98b12625cee28a1300539aba2727470877ce760336245574f3b1f03beae7389105c9d0e1c3a49d99118af
7
+ data.tar.gz: 9198840a29ed88d7c197f8cd251fcf029749f2893c0ffe1408f8890b6fa45e398061cd32a20b78a9cae12539b162b3c7fe488db39160ebd7ccd2d4f0d99f0c16
@@ -41,6 +41,7 @@ module FacebookAds
41
41
  "INSTREAM_VIDEO_MOBILE",
42
42
  "MARKETPLACE_MOBILE",
43
43
  "MESSENGER_MOBILE_INBOX_MEDIA",
44
+ "MESSENGER_MOBILE_STORY_MEDIA",
44
45
  "MOBILE_BANNER",
45
46
  "MOBILE_FEED_BASIC",
46
47
  "MOBILE_FEED_STANDARD",
@@ -60,6 +60,7 @@ module FacebookAds
60
60
 
61
61
  field :application_id, 'string'
62
62
  field :custom_conversion_id, 'string'
63
+ field :custom_event_str, 'string'
63
64
  field :custom_event_type, { enum: -> { CUSTOM_EVENT_TYPE }}
64
65
  field :event_id, 'string'
65
66
  field :fundraiser_campaign_id, 'string'
@@ -62,6 +62,7 @@ module FacebookAds
62
62
  "FACECAST_DVR",
63
63
  "FUNDRAISER_COVER_VIDEO",
64
64
  "GAME_CLIP",
65
+ "GAMING_UPDATE_VIDEO",
65
66
  "GEMSTONE",
66
67
  "GOODWILL_ANNIVERSARY_DEPRECATED",
67
68
  "GOODWILL_ANNIVERSARY_PROMOTION_DEPRECATED",
@@ -179,6 +180,35 @@ module FacebookAds
179
180
  "transfer",
180
181
  ]
181
182
 
183
+ VALIDATION_AD_PLACEMENT = [
184
+ "AUDIENCE_NETWORK_INSTREAM_VIDEO",
185
+ "AUDIENCE_NETWORK_INSTREAM_VIDEO_MOBILE",
186
+ "AUDIENCE_NETWORK_OUTSTREAM_VIDEO",
187
+ "AUDIENCE_NETWORK_REWARDED_VIDEO",
188
+ "DESKTOP_FEED_STANDARD",
189
+ "FACEBOOK_STORY_MOBILE",
190
+ "INSTAGRAM_STANDARD",
191
+ "INSTAGRAM_STORY",
192
+ "INSTANT_ARTICLE_RECIRCULATION_AD",
193
+ "INSTANT_ARTICLE_STANDARD",
194
+ "INSTREAM_VIDEO_DESKTOP",
195
+ "INSTREAM_VIDEO_MOBILE",
196
+ "MARKETPLACE_MOBILE",
197
+ "MESSENGER_MOBILE_INBOX_MEDIA",
198
+ "MESSENGER_MOBILE_STORY_MEDIA",
199
+ "MOBILE_BANNER",
200
+ "MOBILE_FEED_BASIC",
201
+ "MOBILE_FEED_STANDARD",
202
+ "MOBILE_FULLWIDTH",
203
+ "MOBILE_INTERSTITIAL",
204
+ "MOBILE_MEDIUM_RECTANGLE",
205
+ "MOBILE_NATIVE",
206
+ "RIGHT_COLUMN_STANDARD",
207
+ "SUGGESTED_VIDEO_DESKTOP",
208
+ "SUGGESTED_VIDEO_MOBILE",
209
+ "WATCH_FEED_MOBILE",
210
+ ]
211
+
182
212
  TYPE = [
183
213
  "tagged",
184
214
  "uploaded",
@@ -308,6 +338,7 @@ module FacebookAds
308
338
  field :video_start_time_ms, 'int'
309
339
  field :waterfall_id, 'string'
310
340
  field :creative_folder_id, 'string'
341
+ field :validation_ad_placement, { enum: -> { VALIDATION_AD_PLACEMENT }}
311
342
 
312
343
  has_edge :auto_trims do |edge|
313
344
  edge.post 'AdVideo' do |api|
@@ -529,16 +529,6 @@ module FacebookAds
529
529
  end
530
530
  end
531
531
 
532
- has_edge :ozone_release do |edge|
533
- edge.post do |api|
534
- api.has_param :auto_push_to_prod, 'bool'
535
- api.has_param :changelog, 'string'
536
- api.has_param :channel_id, 'int'
537
- api.has_param :release_name, 'string'
538
- api.has_param :rollout_percentage, 'double'
539
- end
540
- end
541
-
542
532
  has_edge :page_activities do |edge|
543
533
  edge.post 'Application' do |api|
544
534
  api.has_param :advertiser_tracking_enabled, 'bool'
@@ -622,16 +612,6 @@ module FacebookAds
622
612
  end
623
613
  end
624
614
 
625
- has_edge :subscriptions_sample do |edge|
626
- edge.post 'Application' do |api|
627
- api.has_param :custom_fields, 'string'
628
- api.has_param :field, 'string'
629
- api.has_param :object, 'string'
630
- api.has_param :object_id, 'string'
631
- api.has_param :stress_run, 'int'
632
- end
633
- end
634
-
635
615
  has_edge :uploads do |edge|
636
616
  edge.post do |api|
637
617
  api.has_param :file_length, 'int'
@@ -85,6 +85,7 @@ module FacebookAds
85
85
  "PAGES_MESSAGING",
86
86
  "PAGES_MESSAGING_SUBSCRIPTIONS",
87
87
  "PLATFORM_MANAGE_PAGES",
88
+ "PLATFORM_READ_INSIGHTS",
88
89
  "READ_PAGE_MAILBOXES",
89
90
  "VIEW_MONETIZATION_INSIGHTS",
90
91
  ]
@@ -386,10 +387,11 @@ module FacebookAds
386
387
  end
387
388
 
388
389
  has_edge :images do |edge|
389
- edge.post do |api|
390
+ edge.post 'BusinessImage' do |api|
390
391
  api.has_param :bytes, 'object'
391
392
  api.has_param :creative_folder_id, 'string'
392
393
  api.has_param :name, 'string'
394
+ api.has_param :validation_ad_placements, { list: { enum: -> { BusinessImage::VALIDATION_AD_PLACEMENTS }} }
393
395
  end
394
396
  end
395
397
 
@@ -427,6 +429,13 @@ module FacebookAds
427
429
  end
428
430
  end
429
431
 
432
+ has_edge :move_asset do |edge|
433
+ edge.post 'Business' do |api|
434
+ api.has_param :asset_id, 'string'
435
+ api.has_param :client_id, 'string'
436
+ end
437
+ end
438
+
430
439
  has_edge :offline_conversion_data_sets do |edge|
431
440
  edge.get 'OfflineConversionDataSet'
432
441
  edge.post 'OfflineConversionDataSet' do |api|
@@ -696,6 +705,7 @@ module FacebookAds
696
705
  api.has_param :upload_phase, { enum: -> { AdVideo::UPLOAD_PHASE }}
697
706
  api.has_param :upload_session_id, 'string'
698
707
  api.has_param :upload_setting_properties, 'string'
708
+ api.has_param :validation_ad_placement, { enum: -> { AdVideo::VALIDATION_AD_PLACEMENT }}
699
709
  api.has_param :video_file_chunk, 'string'
700
710
  api.has_param :video_start_time_ms, 'int'
701
711
  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_READ_INSIGHTS",
56
57
  "READ_PAGE_MAILBOXES",
57
58
  "VIEW_MONETIZATION_INSIGHTS",
58
59
  ]
@@ -26,6 +26,28 @@ module FacebookAds
26
26
  # pull request for this class.
27
27
 
28
28
  class BusinessImage < AdObject
29
+ VALIDATION_AD_PLACEMENTS = [
30
+ "AUDIENCE_NETWORK_INSTREAM_VIDEO",
31
+ "AUDIENCE_NETWORK_INSTREAM_VIDEO_MOBILE",
32
+ "AUDIENCE_NETWORK_REWARDED_VIDEO",
33
+ "DESKTOP_FEED_STANDARD",
34
+ "FACEBOOK_STORY_MOBILE",
35
+ "INSTAGRAM_STANDARD",
36
+ "INSTAGRAM_STORY",
37
+ "INSTANT_ARTICLE_STANDARD",
38
+ "INSTREAM_VIDEO_DESKTOP",
39
+ "INSTREAM_VIDEO_MOBILE",
40
+ "MESSENGER_MOBILE_INBOX_MEDIA",
41
+ "MESSENGER_MOBILE_STORY_MEDIA",
42
+ "MOBILE_FEED_STANDARD",
43
+ "MOBILE_FULLWIDTH",
44
+ "MOBILE_INTERSTITIAL",
45
+ "MOBILE_MEDIUM_RECTANGLE",
46
+ "MOBILE_NATIVE",
47
+ "RIGHT_COLUMN_STANDARD",
48
+ "SUGGESTED_VIDEO_MOBILE",
49
+ ]
50
+
29
51
 
30
52
  field :business, 'Business'
31
53
  field :creation_time, 'datetime'
@@ -36,6 +58,9 @@ module FacebookAds
36
58
  field :url, 'string'
37
59
  field :url_128, 'string'
38
60
  field :width, 'int'
61
+ field :bytes, 'object'
62
+ field :creative_folder_id, 'string'
63
+ field :validation_ad_placements, { list: { enum: -> { VALIDATION_AD_PLACEMENTS }} }
39
64
  has_no_post
40
65
 
41
66
  has_edge :insights do |edge|
@@ -48,7 +48,6 @@ module FacebookAds
48
48
  field :metadata, 'object'
49
49
  field :title, 'string'
50
50
  field :universal_content_id, 'string'
51
- has_no_delete
52
51
 
53
52
  end
54
53
  end
@@ -104,6 +104,7 @@ module FacebookAds
104
104
  "PAGES_MESSAGING",
105
105
  "PAGES_MESSAGING_SUBSCRIPTIONS",
106
106
  "PLATFORM_MANAGE_PAGES",
107
+ "PLATFORM_READ_INSIGHTS",
107
108
  "READ_PAGE_MAILBOXES",
108
109
  "VIEW_MONETIZATION_INSIGHTS",
109
110
  ]
@@ -120,6 +121,7 @@ module FacebookAds
120
121
  "PAGES_MESSAGING",
121
122
  "PAGES_MESSAGING_SUBSCRIPTIONS",
122
123
  "PLATFORM_MANAGE_PAGES",
124
+ "PLATFORM_READ_INSIGHTS",
123
125
  "READ_PAGE_MAILBOXES",
124
126
  "VIEW_MONETIZATION_INSIGHTS",
125
127
  ]
@@ -1014,6 +1016,10 @@ module FacebookAds
1014
1016
  edge.post 'InstagramUser'
1015
1017
  end
1016
1018
 
1019
+ has_edge :partner_coupon_offer do |edge|
1020
+ edge.get 'PartnerCouponOffer'
1021
+ end
1022
+
1017
1023
  has_edge :pass_thread_control do |edge|
1018
1024
  edge.post 'Page' do |api|
1019
1025
  api.has_param :metadata, 'string'
@@ -0,0 +1,40 @@
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 PartnerCouponOffer < AdObject
29
+
30
+ field :claim_by, 'datetime'
31
+ field :currency, 'string'
32
+ field :expiration_days, 'int'
33
+ field :id, 'string'
34
+ field :minimum_spend, 'int'
35
+ field :offer_amount, 'int'
36
+ has_no_post
37
+ has_no_delete
38
+
39
+ end
40
+ end
@@ -355,6 +355,7 @@ module FacebookAds
355
355
  api.has_param :iphone_app_name, 'string'
356
356
  api.has_param :iphone_app_store_id, 'int'
357
357
  api.has_param :iphone_url, 'string'
358
+ api.has_param :launch_date, 'string'
358
359
  api.has_param :manufacturer_part_number, 'string'
359
360
  api.has_param :material, 'string'
360
361
  api.has_param :mobile_link, 'string'
@@ -69,6 +69,7 @@ module FacebookAds
69
69
  api.has_param :iphone_app_name, 'string'
70
70
  api.has_param :iphone_app_store_id, 'int'
71
71
  api.has_param :iphone_url, 'string'
72
+ api.has_param :launch_date, 'string'
72
73
  api.has_param :manufacturer_part_number, 'string'
73
74
  api.has_param :material, 'string'
74
75
  api.has_param :mobile_link, 'string'
@@ -146,6 +146,7 @@ module FacebookAds
146
146
  field :iphone_app_name, 'string'
147
147
  field :iphone_app_store_id, 'int'
148
148
  field :iphone_url, 'string'
149
+ field :launch_date, 'string'
149
150
  field :offer_price_amount, 'int'
150
151
  field :offer_price_end_date, 'datetime'
151
152
  field :offer_price_start_date, 'datetime'
@@ -673,6 +673,10 @@ module FacebookAds
673
673
  end
674
674
  end
675
675
 
676
+ has_edge :partner_coupon_offer do |edge|
677
+ edge.get 'PartnerCouponOffer'
678
+ end
679
+
676
680
  has_edge :permissions do |edge|
677
681
  edge.delete do |api|
678
682
  api.has_param :permission, 'string'
@@ -19,6 +19,6 @@
19
19
  # FB:AUTOGEN
20
20
 
21
21
  module FacebookAds
22
- VERSION = '0.4.0.3'
22
+ VERSION = '0.4.0.4'
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.3
4
+ version: 0.4.0.4
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-21 00:00:00.000000000 Z
11
+ date: 2019-08-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -488,6 +488,7 @@ files:
488
488
  - lib/facebook_ads/ad_objects/page_thread_owner.rb
489
489
  - lib/facebook_ads/ad_objects/page_upcoming_change.rb
490
490
  - lib/facebook_ads/ad_objects/page_user_message_thread_label.rb
491
+ - lib/facebook_ads/ad_objects/partner_coupon_offer.rb
491
492
  - lib/facebook_ads/ad_objects/partner_study.rb
492
493
  - lib/facebook_ads/ad_objects/payment_pricepoints.rb
493
494
  - lib/facebook_ads/ad_objects/permission.rb