facebookbusiness 0.4.0.3 → 0.4.0.4
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_preview.rb +1 -0
- data/lib/facebook_ads/ad_objects/ad_promoted_object.rb +1 -0
- data/lib/facebook_ads/ad_objects/ad_video.rb +31 -0
- data/lib/facebook_ads/ad_objects/application.rb +0 -20
- data/lib/facebook_ads/ad_objects/business.rb +11 -1
- data/lib/facebook_ads/ad_objects/business_asset_group.rb +1 -0
- data/lib/facebook_ads/ad_objects/business_image.rb +25 -0
- data/lib/facebook_ads/ad_objects/media_fingerprint.rb +0 -1
- data/lib/facebook_ads/ad_objects/page.rb +6 -0
- data/lib/facebook_ads/ad_objects/partner_coupon_offer.rb +40 -0
- data/lib/facebook_ads/ad_objects/product_catalog.rb +1 -0
- data/lib/facebook_ads/ad_objects/product_group.rb +1 -0
- data/lib/facebook_ads/ad_objects/product_item.rb +1 -0
- data/lib/facebook_ads/ad_objects/user.rb +4 -0
- data/lib/facebook_ads/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f7a57d23b229a1e17948bf50558f786b810ce1d6bfbc50014837fd1935335e1a
|
4
|
+
data.tar.gz: ec2fbcf12a7095e1ef29c4a9307138de15c733bb5a5266e8b672f934d0a777e5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9248c37fb56e0d0477d8604d7c7fe382bfd648c214c98b12625cee28a1300539aba2727470877ce760336245574f3b1f03beae7389105c9d0e1c3a49d99118af
|
7
|
+
data.tar.gz: 9198840a29ed88d7c197f8cd251fcf029749f2893c0ffe1408f8890b6fa45e398061cd32a20b78a9cae12539b162b3c7fe488db39160ebd7ccd2d4f0d99f0c16
|
@@ -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'
|
@@ -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|
|
@@ -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'
|
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.4.0.
|
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-
|
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
|