facebookbusiness 0.16.0.2 → 17.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -1
- data/lib/facebook_ads/ad_objects/ad.rb +7 -0
- data/lib/facebook_ads/ad_objects/ad_account.rb +35 -4
- data/lib/facebook_ads/ad_objects/ad_account_ad_volume.rb +22 -0
- data/lib/facebook_ads/ad_objects/{instant_article_insights_query_result.rb → ad_account_business_constraints.rb} +2 -26
- data/lib/facebook_ads/ad_objects/ad_account_delivery_estimate.rb +2 -1
- data/lib/facebook_ads/ad_objects/ad_account_matched_search_applications_edge_data.rb +2 -0
- data/lib/facebook_ads/ad_objects/ad_account_targeting_unified.rb +259 -0
- data/lib/facebook_ads/ad_objects/ad_asset_feed_spec.rb +3 -0
- data/lib/facebook_ads/ad_objects/ad_campaign_delivery_estimate.rb +2 -1
- data/lib/facebook_ads/ad_objects/ad_campaign_delivery_stats_unsupported_reasons.rb +1 -1
- data/lib/facebook_ads/ad_objects/ad_creative.rb +6 -0
- data/lib/facebook_ads/ad_objects/ad_creative_branded_content_ads.rb +41 -0
- data/lib/facebook_ads/ad_objects/ad_creative_facebook_branded_content.rb +39 -0
- data/lib/facebook_ads/ad_objects/ad_creative_insights.rb +1 -1
- data/lib/facebook_ads/ad_objects/{commerce_merchant_tos_acceptance.rb → ad_creative_instagram_branded_content.rb} +4 -3
- data/lib/facebook_ads/ad_objects/ad_creative_link_data_call_to_action.rb +2 -0
- data/lib/facebook_ads/ad_objects/ad_creative_link_data_template_video_spec.rb +1 -1
- data/lib/facebook_ads/ad_objects/ad_preview.rb +6 -1
- data/lib/facebook_ads/ad_objects/ad_promoted_object.rb +2 -0
- data/lib/facebook_ads/ad_objects/ad_rule.rb +4 -0
- data/lib/facebook_ads/ad_objects/ad_set.rb +4 -2
- data/lib/facebook_ads/ad_objects/ad_study_objective.rb +8 -0
- data/lib/facebook_ads/ad_objects/ad_video.rb +8 -0
- data/lib/facebook_ads/ad_objects/ads_insights.rb +8 -2
- data/lib/facebook_ads/ad_objects/ads_optimal_delivery_growth_opportunity.rb +1 -1
- data/lib/facebook_ads/ad_objects/ads_pixel.rb +4 -0
- data/lib/facebook_ads/ad_objects/application.rb +7 -1
- data/lib/facebook_ads/ad_objects/brand_request.rb +55 -0
- data/lib/facebook_ads/ad_objects/business.rb +25 -0
- data/lib/facebook_ads/ad_objects/campaign.rb +0 -3
- data/lib/facebook_ads/ad_objects/catalog_item_appeal_status.rb +9 -1
- data/lib/facebook_ads/ad_objects/commerce_merchant_settings.rb +2 -2
- data/lib/facebook_ads/ad_objects/cpas_business_setup_config.rb +2 -2
- data/lib/facebook_ads/ad_objects/cpas_merchant_config.rb +2 -2
- data/lib/facebook_ads/ad_objects/custom_audience.rb +3 -0
- data/lib/facebook_ads/ad_objects/custom_audience_data_source.rb +2 -0
- data/lib/facebook_ads/ad_objects/{ad_account_custom_audience.rb → custom_audience_group.rb} +1 -1
- data/lib/facebook_ads/ad_objects/extended_credit_invoice_group.rb +0 -1
- data/lib/facebook_ads/ad_objects/group.rb +0 -7
- data/lib/facebook_ads/ad_objects/ig_user.rb +1 -0
- data/lib/facebook_ads/ad_objects/instant_articles_stats.rb +3 -3
- data/lib/facebook_ads/ad_objects/job_opening.rb +91 -0
- data/lib/facebook_ads/ad_objects/lead.rb +1 -0
- data/lib/facebook_ads/ad_objects/leadgen_form.rb +1 -1
- data/lib/facebook_ads/ad_objects/offline_conversion_data_set.rb +0 -11
- data/lib/facebook_ads/ad_objects/open_bridge_configuration.rb +39 -0
- data/lib/facebook_ads/ad_objects/page.rb +24 -42
- data/lib/facebook_ads/ad_objects/page_post_experiment.rb +1 -1
- data/lib/facebook_ads/ad_objects/product_catalog.rb +3 -22
- data/lib/facebook_ads/ad_objects/product_catalog_category.rb +1 -1
- data/lib/facebook_ads/ad_objects/product_feed_rule.rb +1 -1
- data/lib/facebook_ads/ad_objects/product_feed_rule_suggestion.rb +1 -1
- data/lib/facebook_ads/ad_objects/product_feed_schedule.rb +1 -11
- data/lib/facebook_ads/ad_objects/product_item.rb +10 -5
- data/lib/facebook_ads/ad_objects/reach_frequency_estimates_placement_breakdown.rb +3 -0
- data/lib/facebook_ads/ad_objects/reach_frequency_prediction.rb +4 -4
- data/lib/facebook_ads/ad_objects/saved_audience.rb +0 -1
- data/lib/facebook_ads/ad_objects/server_side/event.rb +23 -3
- data/lib/facebook_ads/ad_objects/split_test_winner.rb +1 -1
- data/lib/facebook_ads/ad_objects/targeting_geo_location_electoral_district.rb +1 -0
- data/lib/facebook_ads/ad_objects/unified_thread.rb +1 -0
- data/lib/facebook_ads/ad_objects/url.rb +0 -2
- data/lib/facebook_ads/ad_objects/user.rb +3 -2
- data/lib/facebook_ads/ad_objects/vehicle_offer.rb +8 -0
- data/lib/facebook_ads/ad_objects/whats_app_business_account.rb +18 -0
- data/lib/facebook_ads/ad_objects/{instant_article.rb → whats_app_business_pre_verified_phone_number.rb} +21 -16
- data/lib/facebook_ads/field_types/datetime.rb +1 -1
- data/lib/facebook_ads/helpers/shortcuts.rb +1 -1
- data/lib/facebook_ads/version.rb +2 -2
- metadata +11 -7
- data/lib/facebook_ads/ad_objects/jobs_job.rb +0 -85
@@ -71,6 +71,10 @@ module FacebookAds
|
|
71
71
|
# Where the conversion occurred.
|
72
72
|
attr_accessor :action_source
|
73
73
|
|
74
|
+
# Name of Advanced Measurement table.
|
75
|
+
# Only used for the Advanced Measurement API in the Advanced Analytics product
|
76
|
+
attr_accessor :advanced_measurement_table
|
77
|
+
|
74
78
|
# @param [String] event_name
|
75
79
|
# @param [int] event_time
|
76
80
|
# @param [String] event_source_url
|
@@ -83,6 +87,7 @@ module FacebookAds
|
|
83
87
|
# @param [int] data_processing_options_country
|
84
88
|
# @param [int] data_processing_options_state
|
85
89
|
# @param String action_source
|
90
|
+
# @param [String] advanced_measurement_table
|
86
91
|
def initialize(event_name: nil,
|
87
92
|
event_time: nil,
|
88
93
|
event_source_url: nil,
|
@@ -94,7 +99,8 @@ module FacebookAds
|
|
94
99
|
data_processing_options: nil,
|
95
100
|
data_processing_options_country: nil,
|
96
101
|
data_processing_options_state: nil,
|
97
|
-
action_source: nil
|
102
|
+
action_source: nil,
|
103
|
+
advanced_measurement_table: nil)
|
98
104
|
|
99
105
|
unless event_name.nil?
|
100
106
|
self.event_name = event_name
|
@@ -132,6 +138,9 @@ module FacebookAds
|
|
132
138
|
unless action_source.nil?
|
133
139
|
self.action_source = action_source
|
134
140
|
end
|
141
|
+
unless advanced_measurement_table.nil?
|
142
|
+
self.advanced_measurement_table = advanced_measurement_table
|
143
|
+
end
|
135
144
|
end
|
136
145
|
|
137
146
|
# build the object using the input hash
|
@@ -189,6 +198,10 @@ module FacebookAds
|
|
189
198
|
if attributes.has_key?(:'action_source')
|
190
199
|
self.action_source = attributes[:'action_source']
|
191
200
|
end
|
201
|
+
|
202
|
+
if attributes.has_key?(:'advanced_measurement_table')
|
203
|
+
self.advanced_measurement_table = attributes[:'advanced_measurement_table']
|
204
|
+
end
|
192
205
|
end
|
193
206
|
|
194
207
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -234,7 +247,8 @@ module FacebookAds
|
|
234
247
|
data_processing_options == o.data_processing_options &&
|
235
248
|
data_processing_options_country == o.data_processing_options_country &&
|
236
249
|
data_processing_options_state == o.data_processing_options_state &&
|
237
|
-
action_source == o.action_source
|
250
|
+
action_source == o.action_source &&
|
251
|
+
advanced_measurement_table == o.advanced_measurement_table
|
238
252
|
end
|
239
253
|
|
240
254
|
# @see the `==` method
|
@@ -248,7 +262,7 @@ module FacebookAds
|
|
248
262
|
[
|
249
263
|
event_name, event_time, event_source_url, opt_out, event_id, user_data, custom_data, app_data,
|
250
264
|
data_processing_options, data_processing_options_country, data_processing_options_state,
|
251
|
-
action_source,
|
265
|
+
action_source, advanced_measurement_table,
|
252
266
|
].hash
|
253
267
|
end
|
254
268
|
|
@@ -290,6 +304,9 @@ module FacebookAds
|
|
290
304
|
unless action_source.nil?
|
291
305
|
hash['action_source'] = action_source
|
292
306
|
end
|
307
|
+
unless advanced_measurement_table.nil?
|
308
|
+
hash['advanced_measurement_table'] = advanced_measurement_table
|
309
|
+
end
|
293
310
|
hash.to_s
|
294
311
|
end
|
295
312
|
|
@@ -336,6 +353,9 @@ module FacebookAds
|
|
336
353
|
'action_source'
|
337
354
|
)
|
338
355
|
end
|
356
|
+
unless advanced_measurement_table.nil?
|
357
|
+
hash['advanced_measurement_table'] = advanced_measurement_table
|
358
|
+
end
|
339
359
|
hash
|
340
360
|
end
|
341
361
|
|
@@ -32,10 +32,8 @@ module FacebookAds
|
|
32
32
|
]
|
33
33
|
|
34
34
|
|
35
|
-
field :development_instant_article, 'InstantArticle'
|
36
35
|
field :engagement, 'object'
|
37
36
|
field :id, 'string'
|
38
|
-
field :instant_article, 'InstantArticle'
|
39
37
|
field :og_object, 'object'
|
40
38
|
field :ownership_permissions, 'object'
|
41
39
|
field :scopes, 'object'
|
@@ -51,6 +51,7 @@ module FacebookAds
|
|
51
51
|
field :about, 'string'
|
52
52
|
field :age_range, 'AgeRange'
|
53
53
|
field :birthday, 'string'
|
54
|
+
field :community, 'Group'
|
54
55
|
field :cover, 'UserCoverPhoto'
|
55
56
|
field :currency, 'Currency'
|
56
57
|
field :education, { list: 'object' }
|
@@ -99,9 +100,9 @@ module FacebookAds
|
|
99
100
|
edge.delete
|
100
101
|
edge.post 'User' do |api|
|
101
102
|
api.has_param :business_app, 'int'
|
102
|
-
api.has_param :is_permanent_token, 'bool'
|
103
103
|
api.has_param :page_id, 'string'
|
104
104
|
api.has_param :scope, { list: 'Permission' }
|
105
|
+
api.has_param :set_token_expires_in_60_days, 'bool'
|
105
106
|
end
|
106
107
|
end
|
107
108
|
|
@@ -110,7 +111,7 @@ module FacebookAds
|
|
110
111
|
api.has_param :is_place, 'bool'
|
111
112
|
api.has_param :is_promotable, 'bool'
|
112
113
|
end
|
113
|
-
edge.post
|
114
|
+
edge.post do |api|
|
114
115
|
api.has_param :about, 'string'
|
115
116
|
api.has_param :address, 'string'
|
116
117
|
api.has_param :category, 'int'
|
@@ -46,6 +46,7 @@ module FacebookAds
|
|
46
46
|
field :amount_price, 'string'
|
47
47
|
field :amount_qualifier, 'string'
|
48
48
|
field :applinks, 'CatalogItemAppLinks'
|
49
|
+
field :availability, 'string'
|
49
50
|
field :body_style, 'string'
|
50
51
|
field :cashback_currency, 'string'
|
51
52
|
field :cashback_price, 'string'
|
@@ -55,11 +56,17 @@ module FacebookAds
|
|
55
56
|
field :downpayment_currency, 'string'
|
56
57
|
field :downpayment_price, 'string'
|
57
58
|
field :downpayment_qualifier, 'string'
|
59
|
+
field :drivetrain, 'string'
|
58
60
|
field :end_date, 'string'
|
59
61
|
field :end_time, 'int'
|
62
|
+
field :exterior_color, 'string'
|
63
|
+
field :fuel_type, 'string'
|
64
|
+
field :generation, 'string'
|
60
65
|
field :id, 'string'
|
61
66
|
field :image_fetch_status, { enum: -> { IMAGE_FETCH_STATUS }}
|
62
67
|
field :images, { list: 'string' }
|
68
|
+
field :interior_color, 'string'
|
69
|
+
field :interior_upholstery, 'string'
|
63
70
|
field :make, 'string'
|
64
71
|
field :model, 'string'
|
65
72
|
field :offer_description, 'string'
|
@@ -72,6 +79,7 @@ module FacebookAds
|
|
72
79
|
field :term_length, 'int'
|
73
80
|
field :term_qualifier, 'string'
|
74
81
|
field :title, 'string'
|
82
|
+
field :transmission, 'string'
|
75
83
|
field :trim, 'string'
|
76
84
|
field :unit_price, 'object'
|
77
85
|
field :url, 'string'
|
@@ -32,9 +32,12 @@ module FacebookAds
|
|
32
32
|
"MANAGE",
|
33
33
|
"MANAGE_EXTENSIONS",
|
34
34
|
"MANAGE_PHONE",
|
35
|
+
"MANAGE_PHONE_ASSETS",
|
35
36
|
"MANAGE_TEMPLATES",
|
36
37
|
"MESSAGING",
|
37
38
|
"VIEW_COST",
|
39
|
+
"VIEW_PHONE_ASSETS",
|
40
|
+
"VIEW_TEMPLATES",
|
38
41
|
]
|
39
42
|
|
40
43
|
CATEGORY = [
|
@@ -100,8 +103,13 @@ module FacebookAds
|
|
100
103
|
edge.get
|
101
104
|
end
|
102
105
|
|
106
|
+
has_edge :message_campaigns do |edge|
|
107
|
+
edge.get
|
108
|
+
end
|
109
|
+
|
103
110
|
has_edge :message_templates do |edge|
|
104
111
|
edge.delete do |api|
|
112
|
+
api.has_param :hsm_id, 'string'
|
105
113
|
api.has_param :name, 'string'
|
106
114
|
end
|
107
115
|
edge.get do |api|
|
@@ -114,8 +122,10 @@ module FacebookAds
|
|
114
122
|
api.has_param :status, { list: { enum: %w{APPROVED DELETED DISABLED IN_APPEAL LIMIT_EXCEEDED PAUSED PENDING PENDING_DELETION REJECTED }} }
|
115
123
|
end
|
116
124
|
edge.post 'WhatsAppBusinessAccount' do |api|
|
125
|
+
api.has_param :allow_category_change, 'bool'
|
117
126
|
api.has_param :category, { enum: -> { WhatsAppBusinessAccount::CATEGORY }}
|
118
127
|
api.has_param :components, { list: 'hash' }
|
128
|
+
api.has_param :cta_url_link_tracking_opted_out, 'bool'
|
119
129
|
api.has_param :language, 'string'
|
120
130
|
api.has_param :name, 'string'
|
121
131
|
end
|
@@ -127,6 +137,7 @@ module FacebookAds
|
|
127
137
|
api.has_param :cc, 'string'
|
128
138
|
api.has_param :migrate_phone_number, 'bool'
|
129
139
|
api.has_param :phone_number, 'string'
|
140
|
+
api.has_param :verified_name, 'string'
|
130
141
|
end
|
131
142
|
end
|
132
143
|
|
@@ -153,5 +164,12 @@ module FacebookAds
|
|
153
164
|
end
|
154
165
|
end
|
155
166
|
|
167
|
+
has_edge :template_performance_metrics do |edge|
|
168
|
+
edge.get do |api|
|
169
|
+
api.has_param :name, 'string'
|
170
|
+
api.has_param :template_id, 'string'
|
171
|
+
end
|
172
|
+
end
|
173
|
+
|
156
174
|
end
|
157
175
|
end
|
@@ -25,26 +25,31 @@ 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 WhatsAppBusinessPreVerifiedPhoneNumber < AdObject
|
29
|
+
CODE_VERIFICATION_STATUS = [
|
30
|
+
"EXPIRED",
|
31
|
+
"NOT_VERIFIED",
|
32
|
+
"VERIFIED",
|
33
|
+
]
|
29
34
|
|
30
|
-
|
31
|
-
field :
|
32
|
-
field :
|
35
|
+
|
36
|
+
field :code_verification_status, 'string'
|
37
|
+
field :code_verification_time, 'datetime'
|
33
38
|
field :id, 'string'
|
34
|
-
field :
|
35
|
-
field :
|
36
|
-
field :publish_status, 'string'
|
37
|
-
field :published, 'bool'
|
38
|
-
field :videos, { list: 'object' }
|
39
|
+
field :phone_number, 'string'
|
40
|
+
field :verification_expiry_time, 'datetime'
|
39
41
|
has_no_post
|
40
42
|
|
41
|
-
has_edge :
|
42
|
-
edge.
|
43
|
-
api.has_param :
|
44
|
-
api.has_param :
|
45
|
-
|
46
|
-
|
47
|
-
|
43
|
+
has_edge :request_code do |edge|
|
44
|
+
edge.post do |api|
|
45
|
+
api.has_param :code_method, { enum: %w{SMS VOICE }}
|
46
|
+
api.has_param :language, 'object'
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
has_edge :verify_code do |edge|
|
51
|
+
edge.post do |api|
|
52
|
+
api.has_param :code, 'string'
|
48
53
|
end
|
49
54
|
end
|
50
55
|
|
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
|
+
version: 17.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Facebook
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-06-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: concurrent-ruby
|
@@ -256,7 +256,7 @@ files:
|
|
256
256
|
- lib/facebook_ads/ad_objects/ad_account.rb
|
257
257
|
- lib/facebook_ads/ad_objects/ad_account_ad_rules_history.rb
|
258
258
|
- lib/facebook_ads/ad_objects/ad_account_ad_volume.rb
|
259
|
-
- lib/facebook_ads/ad_objects/
|
259
|
+
- lib/facebook_ads/ad_objects/ad_account_business_constraints.rb
|
260
260
|
- lib/facebook_ads/ad_objects/ad_account_default_destination.rb
|
261
261
|
- lib/facebook_ads/ad_objects/ad_account_default_objective.rb
|
262
262
|
- lib/facebook_ads/ad_objects/ad_account_delivery_estimate.rb
|
@@ -295,9 +295,12 @@ files:
|
|
295
295
|
- lib/facebook_ads/ad_objects/ad_campaign_paced_bid_info.rb
|
296
296
|
- lib/facebook_ads/ad_objects/ad_creative.rb
|
297
297
|
- lib/facebook_ads/ad_objects/ad_creative_ad_disclaimer.rb
|
298
|
+
- lib/facebook_ads/ad_objects/ad_creative_branded_content_ads.rb
|
298
299
|
- lib/facebook_ads/ad_objects/ad_creative_collection_thumbnail_info.rb
|
299
300
|
- lib/facebook_ads/ad_objects/ad_creative_degrees_of_freedom_spec.rb
|
301
|
+
- lib/facebook_ads/ad_objects/ad_creative_facebook_branded_content.rb
|
300
302
|
- lib/facebook_ads/ad_objects/ad_creative_insights.rb
|
303
|
+
- lib/facebook_ads/ad_objects/ad_creative_instagram_branded_content.rb
|
301
304
|
- lib/facebook_ads/ad_objects/ad_creative_interactive_components_spec.rb
|
302
305
|
- lib/facebook_ads/ad_objects/ad_creative_link_data.rb
|
303
306
|
- lib/facebook_ads/ad_objects/ad_creative_link_data_app_link_spec.rb
|
@@ -382,6 +385,7 @@ files:
|
|
382
385
|
- lib/facebook_ads/ad_objects/audience_permission_for_actions.rb
|
383
386
|
- lib/facebook_ads/ad_objects/audio_copyright.rb
|
384
387
|
- lib/facebook_ads/ad_objects/automotive_model.rb
|
388
|
+
- lib/facebook_ads/ad_objects/brand_request.rb
|
385
389
|
- lib/facebook_ads/ad_objects/brand_safety_block_list_usage.rb
|
386
390
|
- lib/facebook_ads/ad_objects/broad_targeting_categories.rb
|
387
391
|
- lib/facebook_ads/ad_objects/business.rb
|
@@ -419,7 +423,6 @@ files:
|
|
419
423
|
- lib/facebook_ads/ad_objects/comment.rb
|
420
424
|
- lib/facebook_ads/ad_objects/commerce_merchant_settings.rb
|
421
425
|
- lib/facebook_ads/ad_objects/commerce_merchant_settings_setup_status.rb
|
422
|
-
- lib/facebook_ads/ad_objects/commerce_merchant_tos_acceptance.rb
|
423
426
|
- lib/facebook_ads/ad_objects/commerce_order.rb
|
424
427
|
- lib/facebook_ads/ad_objects/commerce_order_transaction_detail.rb
|
425
428
|
- lib/facebook_ads/ad_objects/commerce_payout.rb
|
@@ -442,6 +445,7 @@ files:
|
|
442
445
|
- lib/facebook_ads/ad_objects/custom_audience.rb
|
443
446
|
- lib/facebook_ads/ad_objects/custom_audience_ad_account.rb
|
444
447
|
- lib/facebook_ads/ad_objects/custom_audience_data_source.rb
|
448
|
+
- lib/facebook_ads/ad_objects/custom_audience_group.rb
|
445
449
|
- lib/facebook_ads/ad_objects/custom_audience_session.rb
|
446
450
|
- lib/facebook_ads/ad_objects/custom_audience_sharing_status.rb
|
447
451
|
- lib/facebook_ads/ad_objects/custom_audience_status.rb
|
@@ -490,11 +494,9 @@ files:
|
|
490
494
|
- lib/facebook_ads/ad_objects/instagram_insights_result.rb
|
491
495
|
- lib/facebook_ads/ad_objects/instagram_insights_value.rb
|
492
496
|
- lib/facebook_ads/ad_objects/instagram_user.rb
|
493
|
-
- lib/facebook_ads/ad_objects/instant_article.rb
|
494
|
-
- lib/facebook_ads/ad_objects/instant_article_insights_query_result.rb
|
495
497
|
- lib/facebook_ads/ad_objects/instant_articles_stats.rb
|
496
498
|
- lib/facebook_ads/ad_objects/ios_app_link.rb
|
497
|
-
- lib/facebook_ads/ad_objects/
|
499
|
+
- lib/facebook_ads/ad_objects/job_opening.rb
|
498
500
|
- lib/facebook_ads/ad_objects/key_value.rb
|
499
501
|
- lib/facebook_ads/ad_objects/lead.rb
|
500
502
|
- lib/facebook_ads/ad_objects/lead_gen_appointment_booking_info.rb
|
@@ -533,6 +535,7 @@ files:
|
|
533
535
|
- lib/facebook_ads/ad_objects/offline_conversion_data_set_usage.rb
|
534
536
|
- lib/facebook_ads/ad_objects/offsite_pixel.rb
|
535
537
|
- lib/facebook_ads/ad_objects/omega_customer_trx.rb
|
538
|
+
- lib/facebook_ads/ad_objects/open_bridge_configuration.rb
|
536
539
|
- lib/facebook_ads/ad_objects/open_graph_context.rb
|
537
540
|
- lib/facebook_ads/ad_objects/outcome_prediction_point.rb
|
538
541
|
- lib/facebook_ads/ad_objects/page.rb
|
@@ -685,6 +688,7 @@ files:
|
|
685
688
|
- lib/facebook_ads/ad_objects/voip_info.rb
|
686
689
|
- lib/facebook_ads/ad_objects/web_app_link.rb
|
687
690
|
- lib/facebook_ads/ad_objects/whats_app_business_account.rb
|
691
|
+
- lib/facebook_ads/ad_objects/whats_app_business_pre_verified_phone_number.rb
|
688
692
|
- lib/facebook_ads/ad_objects/whats_app_business_profile.rb
|
689
693
|
- lib/facebook_ads/ad_objects/windows_app_link.rb
|
690
694
|
- lib/facebook_ads/ad_objects/windows_phone_app_link.rb
|
@@ -1,85 +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 JobsJob < AdObject
|
29
|
-
IMAGE_FETCH_STATUS = [
|
30
|
-
"DIRECT_UPLOAD",
|
31
|
-
"FETCHED",
|
32
|
-
"FETCH_FAILED",
|
33
|
-
"NO_STATUS",
|
34
|
-
"OUTDATED",
|
35
|
-
"PARTIAL_FETCH",
|
36
|
-
]
|
37
|
-
|
38
|
-
VISIBILITY = [
|
39
|
-
"PUBLISHED",
|
40
|
-
"STAGING",
|
41
|
-
]
|
42
|
-
|
43
|
-
|
44
|
-
field :address, 'object'
|
45
|
-
field :applinks, 'CatalogItemAppLinks'
|
46
|
-
field :category_specific_fields, 'CatalogSubVerticalList'
|
47
|
-
field :custom_label_0, 'string'
|
48
|
-
field :custom_label_1, 'string'
|
49
|
-
field :custom_label_2, 'string'
|
50
|
-
field :custom_label_3, 'string'
|
51
|
-
field :custom_label_4, 'string'
|
52
|
-
field :custom_label_5, 'string'
|
53
|
-
field :custom_label_6, 'string'
|
54
|
-
field :custom_number_0, 'int'
|
55
|
-
field :custom_number_1, 'int'
|
56
|
-
field :custom_number_2, 'int'
|
57
|
-
field :custom_number_3, 'int'
|
58
|
-
field :custom_number_4, 'int'
|
59
|
-
field :custom_number_5, 'int'
|
60
|
-
field :custom_number_6, 'int'
|
61
|
-
field :id, 'string'
|
62
|
-
field :image_fetch_status, { enum: -> { IMAGE_FETCH_STATUS }}
|
63
|
-
field :images, { list: 'string' }
|
64
|
-
field :jobs_job_id, 'string'
|
65
|
-
field :sanitized_images, { list: 'string' }
|
66
|
-
field :unit_price, 'object'
|
67
|
-
field :url, 'string'
|
68
|
-
field :visibility, { enum: -> { VISIBILITY }}
|
69
|
-
has_no_post
|
70
|
-
has_no_delete
|
71
|
-
|
72
|
-
has_edge :augmented_realities_metadata do |edge|
|
73
|
-
edge.get
|
74
|
-
end
|
75
|
-
|
76
|
-
has_edge :channels_to_integrity_status do |edge|
|
77
|
-
edge.get 'CatalogItemChannelsToIntegrityStatus'
|
78
|
-
end
|
79
|
-
|
80
|
-
has_edge :videos_metadata do |edge|
|
81
|
-
edge.get
|
82
|
-
end
|
83
|
-
|
84
|
-
end
|
85
|
-
end
|