facebookbusiness 0.4.0.7 → 0.4.0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (33) hide show
  1. checksums.yaml +4 -4
  2. data/lib/facebook_ads/ad_objects/ad_account.rb +63 -48
  3. data/lib/facebook_ads/ad_objects/ad_account_ad_volume.rb +42 -0
  4. data/lib/facebook_ads/ad_objects/{business_advertisable_applications_result.rb → ad_account_content_filter_levels_inheritance.rb} +6 -7
  5. data/lib/facebook_ads/ad_objects/ad_account_creation_request.rb +1 -149
  6. data/lib/facebook_ads/ad_objects/ad_account_matched_search_applications_edge_data.rb +1 -0
  7. data/lib/facebook_ads/ad_objects/ad_asset_feed_spec.rb +1 -0
  8. data/lib/facebook_ads/ad_objects/ad_report_spec.rb +1 -0
  9. data/lib/facebook_ads/ad_objects/ad_set.rb +32 -22
  10. data/lib/facebook_ads/ad_objects/ad_video.rb +1 -0
  11. data/lib/facebook_ads/ad_objects/adgroup_placement_specific_review_feedback.rb +1 -0
  12. data/lib/facebook_ads/ad_objects/ads_action_stats.rb +1 -0
  13. data/lib/facebook_ads/ad_objects/application.rb +0 -4
  14. data/lib/facebook_ads/ad_objects/business.rb +10 -35
  15. data/lib/facebook_ads/ad_objects/business_asset_group.rb +1 -0
  16. data/lib/facebook_ads/ad_objects/business_creative.rb +4 -0
  17. data/lib/facebook_ads/ad_objects/business_image.rb +4 -0
  18. data/lib/facebook_ads/ad_objects/business_unit.rb +8 -0
  19. data/lib/facebook_ads/ad_objects/campaign.rb +10 -0
  20. data/lib/facebook_ads/ad_objects/content_delivery_report.rb +75 -0
  21. data/lib/facebook_ads/ad_objects/flight.rb +0 -1
  22. data/lib/facebook_ads/ad_objects/group.rb +2 -0
  23. data/lib/facebook_ads/ad_objects/{ad_creative_degrees_of_freedom_spec.rb → lead_gen_post_submission_check_result.rb} +4 -2
  24. data/lib/facebook_ads/ad_objects/product_catalog.rb +1 -0
  25. data/lib/facebook_ads/ad_objects/product_feed.rb +1 -0
  26. data/lib/facebook_ads/ad_objects/product_feed_schedule.rb +1 -2
  27. data/lib/facebook_ads/ad_objects/product_item.rb +3 -0
  28. data/lib/facebook_ads/ad_objects/saved_audience.rb +1 -0
  29. data/lib/facebook_ads/ad_objects/unified_thread.rb +1 -1
  30. data/lib/facebook_ads/ad_objects/url.rb +1 -0
  31. data/lib/facebook_ads/ad_objects/user.rb +14 -0
  32. data/lib/facebook_ads/version.rb +1 -1
  33. metadata +6 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6465e652c0a1bf3817067ab855dc9382ca60fd32ca3b5918159db6c00ed28e0d
4
- data.tar.gz: e95496ba225b89abae810e02f7315ed4e7a122c98729fcab715c675dd651f939
3
+ metadata.gz: 67242f225e4db3c58c2569387e46cc51479dc1c601ac8b90085e45d42c1a5c71
4
+ data.tar.gz: a3c0171cc236b349c1364a46fb6f904cd06c0fb5ce836569378a318a30db83c6
5
5
  SHA512:
6
- metadata.gz: 777da5f24c8c7bdab0340f0e8e29ea287bbfba42085743cbaf3b9199cbdc6aef1e757708d6bb3b1466d26af688bd262a30ece7bb25a794a0884c04fe911d158c
7
- data.tar.gz: 9541185da419c826edd937f12d241583cb7626f8de4cfa1f942b71f9f2041a08356707e692e9bbda9577b176cb5df9c1222f07edd10e5397fdc588fbbb776493
6
+ metadata.gz: 65be86a72b77894614d5ca0c5f7ff682cbab3c2aa9a1e34e86c143f4fa9257392393b3c5be1f5e1d6838c4a562100fbdc95fe44ee9bfb73b04fccaf770f964c7
7
+ data.tar.gz: b85451674ed095e4daba6a0742c608d357aad6002e97e3a9c01ac75facdc83a51b3d422b45d89b00d5a8b131bed0a609cf2373d010b38d5d71b95e473c6e34cf
@@ -203,6 +203,7 @@ module FacebookAds
203
203
  field :timezone_offset_hours_utc, 'double'
204
204
  field :tos_accepted, 'hash'
205
205
  field :user_role, 'string'
206
+ field :user_tasks, { list: 'string' }
206
207
  field :user_tos_accepted, 'hash'
207
208
  has_no_delete
208
209
 
@@ -247,53 +248,6 @@ module FacebookAds
247
248
  api.has_param :delete_strategy, { enum: %w{DELETE_ANY DELETE_ARCHIVED_BEFORE DELETE_OLDEST }}
248
249
  api.has_param :object_count, 'int'
249
250
  end
250
- edge.post 'AdSet' do |api|
251
- api.has_param :adlabels, { list: 'object' }
252
- api.has_param :adset_schedule, { list: 'object' }
253
- api.has_param :attribution_spec, { list: 'hash' }
254
- api.has_param :bid_adjustments, 'object'
255
- api.has_param :bid_amount, 'int'
256
- api.has_param :bid_constraints, 'hash'
257
- api.has_param :bid_strategy, { enum: -> { AdSet::BID_STRATEGY }}
258
- api.has_param :billing_event, { enum: -> { AdSet::BILLING_EVENT }}
259
- api.has_param :campaign_id, 'string'
260
- api.has_param :campaign_spec, 'object'
261
- api.has_param :creative_sequence, { list: 'string' }
262
- api.has_param :daily_budget, 'int'
263
- api.has_param :daily_imps, 'int'
264
- api.has_param :daily_min_spend_target, 'int'
265
- api.has_param :daily_spend_cap, 'int'
266
- api.has_param :date_format, 'string'
267
- api.has_param :destination_type, { enum: -> { AdSet::DESTINATION_TYPE }}
268
- api.has_param :end_time, 'datetime'
269
- api.has_param :execution_options, { list: { enum: -> { AdSet::EXECUTION_OPTIONS }} }
270
- api.has_param :frequency_control_specs, { list: 'object' }
271
- api.has_param :full_funnel_exploration_mode, { enum: -> { AdSet::FULL_FUNNEL_EXPLORATION_MODE }}
272
- api.has_param :is_dynamic_creative, 'bool'
273
- api.has_param :lifetime_budget, 'int'
274
- api.has_param :lifetime_imps, 'int'
275
- api.has_param :lifetime_min_spend_target, 'int'
276
- api.has_param :lifetime_spend_cap, 'int'
277
- api.has_param :line_number, 'int'
278
- api.has_param :name, 'string'
279
- api.has_param :optimization_goal, { enum: -> { AdSet::OPTIMIZATION_GOAL }}
280
- api.has_param :optimization_sub_event, { enum: -> { AdSet::OPTIMIZATION_SUB_EVENT }}
281
- api.has_param :pacing_type, { list: 'string' }
282
- api.has_param :promoted_object, 'object'
283
- api.has_param :rb_prediction_id, 'string'
284
- api.has_param :rf_prediction_id, 'string'
285
- api.has_param :source_adset_id, 'string'
286
- api.has_param :start_time, 'datetime'
287
- api.has_param :status, { enum: -> { AdSet::STATUS }}
288
- api.has_param :targeting, 'Targeting'
289
- api.has_param :time_based_ad_rotation_id_blocks, { list: { list: 'int' } }
290
- api.has_param :time_based_ad_rotation_intervals, { list: 'int' }
291
- api.has_param :time_start, 'datetime'
292
- api.has_param :time_stop, 'datetime'
293
- api.has_param :topline_id, 'string'
294
- api.has_param :tune_for_category, { enum: -> { AdSet::TUNE_FOR_CATEGORY }}
295
- api.has_param :upstream_events, 'hash'
296
- end
297
251
  end
298
252
 
299
253
  has_edge :ad_studies do |edge|
@@ -399,7 +353,7 @@ module FacebookAds
399
353
  has_edge :adreportschedules do |edge|
400
354
  edge.get
401
355
  edge.post do |api|
402
- api.has_param :actions_group_by, { list: { enum: %w{action_brand action_canvas_component_id action_canvas_component_name action_carousel_card_id action_carousel_card_name action_category action_converted_brand_tag_id action_converted_category_tag_id action_converted_product_id action_destination action_device action_event_channel action_target_id action_type action_video_sound action_video_type interactive_component_sticker_id interactive_component_sticker_response }} }
356
+ api.has_param :actions_group_by, { list: { enum: %w{action_brand action_canvas_component_id action_canvas_component_name action_carousel_card_id action_carousel_card_name action_category action_converted_brand_tag_id action_converted_category_tag_id action_converted_product_id action_destination action_device action_event_channel action_target_id action_type action_video_sound action_video_type attribution_model_type interactive_component_sticker_id interactive_component_sticker_response }} }
403
357
  api.has_param :breakdowns, { list: 'string' }
404
358
  api.has_param :builtin_column_set, { enum: %w{ APP_ENGAGEMENT AUDIENCE_DIRECT BIDDING_AND_OPTIMIZATION CAROUSEL_ENGAGEMENT CROSS_DEVICE DELIVERY ENGAGEMENT HOUSEHOLD MESSAGING_ENGAGEMENT MESSENGER OFFLINE_CONVERSIONS PERFORMANCE PERFORMANCE_LEGACY TARGETING_AND_CREATIVE VALIDATION_VIEW VIDEO_ENGAGEMENT }}
405
359
  api.has_param :creation_source, { enum: %w{adsExcelAddin adsManagerReporting newAdsManager }}
@@ -489,6 +443,10 @@ module FacebookAds
489
443
  end
490
444
  end
491
445
 
446
+ has_edge :ads_volume do |edge|
447
+ edge.get 'AdAccountAdVolume'
448
+ end
449
+
492
450
  has_edge :adsbylabels do |edge|
493
451
  edge.get 'Ad' do |api|
494
452
  api.has_param :ad_label_ids, { list: 'string' }
@@ -507,6 +465,53 @@ module FacebookAds
507
465
  api.has_param :time_range, 'object'
508
466
  api.has_param :use_employee_draft, 'bool'
509
467
  end
468
+ edge.post 'AdSet' do |api|
469
+ api.has_param :adlabels, { list: 'object' }
470
+ api.has_param :adset_schedule, { list: 'object' }
471
+ api.has_param :attribution_spec, { list: 'hash' }
472
+ api.has_param :bid_adjustments, 'object'
473
+ api.has_param :bid_amount, 'int'
474
+ api.has_param :bid_constraints, 'hash'
475
+ api.has_param :bid_strategy, { enum: -> { AdSet::BID_STRATEGY }}
476
+ api.has_param :billing_event, { enum: -> { AdSet::BILLING_EVENT }}
477
+ api.has_param :campaign_id, 'string'
478
+ api.has_param :campaign_spec, 'object'
479
+ api.has_param :creative_sequence, { list: 'string' }
480
+ api.has_param :daily_budget, 'int'
481
+ api.has_param :daily_imps, 'int'
482
+ api.has_param :daily_min_spend_target, 'int'
483
+ api.has_param :daily_spend_cap, 'int'
484
+ api.has_param :date_format, 'string'
485
+ api.has_param :destination_type, { enum: -> { AdSet::DESTINATION_TYPE }}
486
+ api.has_param :end_time, 'datetime'
487
+ api.has_param :execution_options, { list: { enum: -> { AdSet::EXECUTION_OPTIONS }} }
488
+ api.has_param :frequency_control_specs, { list: 'object' }
489
+ api.has_param :full_funnel_exploration_mode, { enum: -> { AdSet::FULL_FUNNEL_EXPLORATION_MODE }}
490
+ api.has_param :is_dynamic_creative, 'bool'
491
+ api.has_param :lifetime_budget, 'int'
492
+ api.has_param :lifetime_imps, 'int'
493
+ api.has_param :lifetime_min_spend_target, 'int'
494
+ api.has_param :lifetime_spend_cap, 'int'
495
+ api.has_param :line_number, 'int'
496
+ api.has_param :name, 'string'
497
+ api.has_param :optimization_goal, { enum: -> { AdSet::OPTIMIZATION_GOAL }}
498
+ api.has_param :optimization_sub_event, { enum: -> { AdSet::OPTIMIZATION_SUB_EVENT }}
499
+ api.has_param :pacing_type, { list: 'string' }
500
+ api.has_param :promoted_object, 'object'
501
+ api.has_param :rb_prediction_id, 'string'
502
+ api.has_param :rf_prediction_id, 'string'
503
+ api.has_param :source_adset_id, 'string'
504
+ api.has_param :start_time, 'datetime'
505
+ api.has_param :status, { enum: -> { AdSet::STATUS }}
506
+ api.has_param :targeting, 'Targeting'
507
+ api.has_param :time_based_ad_rotation_id_blocks, { list: { list: 'int' } }
508
+ api.has_param :time_based_ad_rotation_intervals, { list: 'int' }
509
+ api.has_param :time_start, 'datetime'
510
+ api.has_param :time_stop, 'datetime'
511
+ api.has_param :topline_id, 'string'
512
+ api.has_param :tune_for_category, { enum: -> { AdSet::TUNE_FOR_CATEGORY }}
513
+ api.has_param :upstream_events, 'hash'
514
+ end
510
515
  end
511
516
 
512
517
  has_edge :adsetsbylabels do |edge|
@@ -774,6 +779,16 @@ module FacebookAds
774
779
  end
775
780
  end
776
781
 
782
+ has_edge :content_delivery_report do |edge|
783
+ edge.get 'ContentDeliveryReport' do |api|
784
+ api.has_param :end_date, 'datetime'
785
+ api.has_param :platform, { enum: -> { ContentDeliveryReport::PLATFORM }}
786
+ api.has_param :position, { enum: -> { ContentDeliveryReport::POSITION }}
787
+ api.has_param :start_date, 'datetime'
788
+ api.has_param :summary, 'bool'
789
+ end
790
+ end
791
+
777
792
  has_edge :customaudiences do |edge|
778
793
  edge.get 'CustomAudience' do |api|
779
794
  api.has_param :business_id, 'string'
@@ -0,0 +1,42 @@
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 AdAccountAdVolume < AdObject
29
+
30
+ field :actor_id, 'string'
31
+ field :has_hit_total_live_ads_limit, 'bool'
32
+ field :live_ads_quota_left, 'int'
33
+ field :total_live_ads, 'int'
34
+ field :total_live_ads_in_current_account, 'int'
35
+ field :total_live_ads_limit, 'int'
36
+ has_no_id
37
+ has_no_get
38
+ has_no_post
39
+ has_no_delete
40
+
41
+ end
42
+ end
@@ -25,14 +25,13 @@ 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 BusinessAdvertisableApplicationsResult < AdObject
28
+ class AdAccountContentFilterLevelsInheritance < AdObject
29
29
 
30
- field :are_app_events_unavailable, 'bool'
31
- field :business, 'Business'
32
- field :has_insight_permission, 'bool'
33
- field :id, 'string'
34
- field :name, 'string'
35
- field :photo_url, 'string'
30
+ field :an_business_ids, { list: 'string' }
31
+ field :an_level, 'string'
32
+ field :facebook_business_ids, { list: 'string' }
33
+ field :facebook_level, 'string'
34
+ has_no_id
36
35
  has_no_get
37
36
  has_no_post
38
37
  has_no_delete
@@ -26,152 +26,6 @@ module FacebookAds
26
26
  # pull request for this class.
27
27
 
28
28
  class AdAccountCreationRequest < AdObject
29
- SUBVERTICAL = [
30
- "ACCOUNTING_AND_TAXES_AND_LEGAL",
31
- "AGRICULTURE_AND_FARMING",
32
- "AIR",
33
- "AIR_FREIGHT_OR_PACKAGE",
34
- "APPAREL_AND_ACCESSORIES",
35
- "ARTS",
36
- "AUCTIONS",
37
- "AUTOMOTIVE_MANUFACTURER",
38
- "AUTO_AGENCY",
39
- "AUTO_RENTAL",
40
- "B2B",
41
- "B2B_MANUFACTURING",
42
- "BEAUTY_AND_PERSONAL_CARE",
43
- "BEER_AND_WINE_AND_LIQUOR",
44
- "BOOKSTORES",
45
- "BUSINESS_SUPPORT_SERVICES",
46
- "BUS_AND_TAXI_AND_AUTO_RETAL",
47
- "CABLE_AND_SATELLITE",
48
- "CAREER",
49
- "COMPUTING_AND_PERIPHERALS",
50
- "CONSOLE_DEVELOPER",
51
- "CONSOLE_DEVICE",
52
- "CONSTRUCTION_AND_MINING",
53
- "CONSULTING",
54
- "CONSUMER_ELECTRONICS",
55
- "CONSUMER_TECH",
56
- "CREDIT_AND_FINANCING_AND_MORTAGES",
57
- "CRUISES_AND_MARINE",
58
- "CVB_CONVENTION_AND_VISITORS_BUREAU",
59
- "DAILYDEALS",
60
- "DATING",
61
- "DEALERSHIP",
62
- "DEPARTMENT_STORE",
63
- "DESKTOP_SOFTWARE",
64
- "DIGITAL_ADVERTISING_AND_MARKETING_OR_UNTAGGED_AGENCIES",
65
- "ECATALOG",
66
- "ECOMMERCE_AGRICULTURE_AND_FARMING",
67
- "EDUCATION_RESOURCES",
68
- "ED_TECH",
69
- "ELEARNING_AND_MASSIVE_ONLINE_OPEN_COURSES",
70
- "ENGINEERING_AND_DESIGN",
71
- "EVENTS",
72
- "FAMILY_AND_HEALTH",
73
- "FITNESS",
74
- "FOOD",
75
- "FOOTWEAR",
76
- "FOR_PROFIT_COLLEGES_AND_UNIVERSITIES",
77
- "GAMBLING",
78
- "GOVERNMENT",
79
- "GROCERY_AND_DRUG_AND_CONVENIENCE",
80
- "HIGHWAYS",
81
- "HOME_AND_OFFICE",
82
- "HOME_IMPROVEMENT",
83
- "HOME_SERVICE",
84
- "HOTEL_AND_ACCOMODATION",
85
- "HOUSEHOLD_GOODS",
86
- "INDUSTRIAL_AND_FARM_VEHICLE",
87
- "INSURANCE",
88
- "INVESTMENT_BANK_AND_BROKERAGE",
89
- "MEDIA",
90
- "MOBILE_AND_SOCIAL",
91
- "MOBILE_APPS",
92
- "MOTORCYCLES",
93
- "MOVIES",
94
- "MUSEUMS_AND_PARKS_AND_LIBRARIES",
95
- "MUSIC_AND_RADIO",
96
- "NON_PROFIT",
97
- "NOT_FOR_PROFIT_COLLEGES_AND_UNIVERSITIES",
98
- "OFFICE",
99
- "OIL_AND_GAS_AND_CONSUMABLE_FUEL",
100
- "ONLINE_OR_SOFTWARE",
101
- "OTHER_WIRELINE_SERVICES",
102
- "PARTS_AND_SERVICE",
103
- "PET",
104
- "PET_RETAIL",
105
- "PHARMACEUTICAL_OR_HEALTH",
106
- "PHOTOGRAPHY_AND_FILMING_SERVICES",
107
- "POLITICAL",
108
- "PR",
109
- "PUBLISHING_INTERNET",
110
- "RAILROADS",
111
- "REAL_ESTATE",
112
- "REAL_MONEY_OR_SKILLED_GAMING",
113
- "RECREATIONAL",
114
- "RELIGIOUS",
115
- "RESTAURANT",
116
- "RETAIL_AND_CREDIT_UNION_AND_COMMERCIAL_BANK",
117
- "SCHOOL_AND_EARLY_CHILDREN_EDCATION",
118
- "SEASONAL_POLITICAL_SPENDERS",
119
- "SMB_AGENTS_AND_PROMOTERS",
120
- "SMB_ARTISTS_AND_PERFORMERS",
121
- "SMB_CANVAS",
122
- "SMB_CATALOG",
123
- "SMB_CONSUMER_MOBILE_DEVICE",
124
- "SMB_CROSS_PLATFORM",
125
- "SMB_ELECTRONICS_AND_APPLIANCES",
126
- "SMB_ENERGY",
127
- "SMB_GAME_AND_TOY",
128
- "SMB_INFORMATION",
129
- "SMB_NAVIGATION_AND_MEASUREMENT",
130
- "SMB_OPERATIONS_AND_OTHER",
131
- "SMB_OTHER",
132
- "SMB_PERSONAL_CARE",
133
- "SMB_RELIGIOUS",
134
- "SMB_RENTALS",
135
- "SMB_REPAIR_AND_MAINTENANCE",
136
- "SOFTWARE",
137
- "SPORTING",
138
- "SPORTS",
139
- "STREAMING",
140
- "TELEVISION",
141
- "TOBACCO",
142
- "TOY_AND_HOBBY",
143
- "TRADE_SCHOOL",
144
- "TRANSPORTATION_EQUIPMENT",
145
- "TRAVAL_AGENCY",
146
- "TRUCK_AND_MOVING",
147
- "UTILITIES_AND_ENERGY_EQUIPMENT_AND_SERVICES",
148
- "WATER_AND_SOFT_DRINK_AND_BAVERAGE",
149
- "WIRELESS_SERVICES",
150
- ]
151
-
152
- VERTICAL = [
153
- "ADVERTISING_AND_MARKETING",
154
- "AUTOMOTIVE",
155
- "AUTO_AGENCY",
156
- "CONSUMER_PACKAGED_GOODS",
157
- "CPG_AND_BEVERAGE",
158
- "ECOMMERCE",
159
- "EDUCATION",
160
- "ENERGY_AND_UTILITIES",
161
- "ENTERTAINMENT_AND_MEDIA",
162
- "FINANCIAL_SERVICES",
163
- "GAMING",
164
- "GOVERMENT_AND_POLITICS",
165
- "MOTORCYCLES",
166
- "ORGANIZATIONS_AND_ASSOCIATIONS",
167
- "OTHER",
168
- "PROFESSIONAL_SERVICES",
169
- "RETAIL",
170
- "TECHNOLOGY",
171
- "TELECOM",
172
- "TRAVEL",
173
- ]
174
-
175
29
 
176
30
  field :ad_accounts_currency, 'string'
177
31
  field :ad_accounts_info, { list: 'object' }
@@ -207,9 +61,7 @@ module FacebookAds
207
61
  field :subvertical, 'string'
208
62
  field :time_created, 'datetime'
209
63
  field :vertical, 'string'
210
- field :advertiser_business_id, 'string'
211
- field :business_registration, 'file'
212
- field :promotable_page_urls, { list: 'string' }
64
+ has_no_post
213
65
  has_no_delete
214
66
 
215
67
  has_edge :adaccounts do |edge|
@@ -43,6 +43,7 @@ module FacebookAds
43
43
 
44
44
 
45
45
  field :app_id, 'string'
46
+ field :are_app_events_unavailable, 'bool'
46
47
  field :icon_url, 'string'
47
48
  field :name, 'string'
48
49
  field :search_source_store, 'string'
@@ -86,6 +86,7 @@ module FacebookAds
86
86
  field :ad_formats, { list: 'string' }
87
87
  field :additional_data, 'object'
88
88
  field :asset_customization_rules, { list: 'object' }
89
+ field :autotranslate, { list: 'string' }
89
90
  field :bodies, { list: 'AdAssetFeedSpecBody' }
90
91
  field :call_to_action_types, { list: { enum: -> { CALL_TO_ACTION_TYPES }} }
91
92
  field :captions, { list: 'AdAssetFeedSpecCaption' }
@@ -43,6 +43,7 @@ module FacebookAds
43
43
  "action_type",
44
44
  "action_video_sound",
45
45
  "action_video_type",
46
+ "attribution_model_type",
46
47
  "interactive_component_sticker_id",
47
48
  "interactive_component_sticker_response",
48
49
  ]
@@ -97,6 +97,28 @@ module FacebookAds
97
97
  "PAUSED",
98
98
  ]
99
99
 
100
+ DATE_PRESET = [
101
+ "LAST_14D",
102
+ "LAST_28D",
103
+ "LAST_30D",
104
+ "LAST_3D",
105
+ "LAST_7D",
106
+ "LAST_90D",
107
+ "LAST_MONTH",
108
+ "LAST_QUARTER",
109
+ "LAST_WEEK_MON_SUN",
110
+ "LAST_WEEK_SUN_SAT",
111
+ "LAST_YEAR",
112
+ "LIFETIME",
113
+ "THIS_MONTH",
114
+ "THIS_QUARTER",
115
+ "THIS_WEEK_MON_TODAY",
116
+ "THIS_WEEK_SUN_TODAY",
117
+ "THIS_YEAR",
118
+ "TODAY",
119
+ "YESTERDAY",
120
+ ]
121
+
100
122
  DESTINATION_TYPE = [
101
123
  "APP",
102
124
  "APPLINKS_AUTOMATIC",
@@ -137,28 +159,6 @@ module FacebookAds
137
159
  "NONE",
138
160
  ]
139
161
 
140
- DATE_PRESET = [
141
- "LAST_14D",
142
- "LAST_28D",
143
- "LAST_30D",
144
- "LAST_3D",
145
- "LAST_7D",
146
- "LAST_90D",
147
- "LAST_MONTH",
148
- "LAST_QUARTER",
149
- "LAST_WEEK_MON_SUN",
150
- "LAST_WEEK_SUN_SAT",
151
- "LAST_YEAR",
152
- "LIFETIME",
153
- "THIS_MONTH",
154
- "THIS_QUARTER",
155
- "THIS_WEEK_MON_TODAY",
156
- "THIS_WEEK_SUN_TODAY",
157
- "THIS_YEAR",
158
- "TODAY",
159
- "YESTERDAY",
160
- ]
161
-
162
162
  OPERATOR = [
163
163
  "ALL",
164
164
  "ANY",
@@ -278,6 +278,16 @@ module FacebookAds
278
278
  end
279
279
  end
280
280
 
281
+ has_edge :content_delivery_report do |edge|
282
+ edge.get 'ContentDeliveryReport' do |api|
283
+ api.has_param :end_date, 'datetime'
284
+ api.has_param :platform, { enum: -> { ContentDeliveryReport::PLATFORM }}
285
+ api.has_param :position, { enum: -> { ContentDeliveryReport::POSITION }}
286
+ api.has_param :start_date, 'datetime'
287
+ api.has_param :summary, 'bool'
288
+ end
289
+ end
290
+
281
291
  has_edge :copies do |edge|
282
292
  edge.get 'AdSet' do |api|
283
293
  api.has_param :date_preset, { enum: -> { AdSet::DATE_PRESET }}
@@ -51,6 +51,7 @@ module FacebookAds
51
51
  "DCO_AD_ASSET_FEED",
52
52
  "DCO_AUTOGEN_VIDEO",
53
53
  "DCO_TRIMMED_VIDEO",
54
+ "DIM_SUM",
54
55
  "DIRECTED_POST_ATTACHMENT",
55
56
  "DIRECT_INBOX",
56
57
  "DIRECT_INBOX_REACTION",
@@ -38,6 +38,7 @@ module FacebookAds
38
38
  field :facebook, 'hash'
39
39
  field :instagram, 'hash'
40
40
  field :instagram_shop, 'hash'
41
+ field :lead_gen_honeypot, 'hash'
41
42
  field :marketplace, 'hash'
42
43
  field :marketplace_home_rentals, 'hash'
43
44
  field :marketplace_home_sales, 'hash'
@@ -49,6 +49,7 @@ module FacebookAds
49
49
  field :action_video_asset_id, 'string'
50
50
  field :action_video_sound, 'string'
51
51
  field :action_video_type, 'string'
52
+ field :dda, 'string'
52
53
  field :inline, 'string'
53
54
  field :interactive_component_sticker_id, 'string'
54
55
  field :interactive_component_sticker_response, 'string'
@@ -505,10 +505,6 @@ module FacebookAds
505
505
  end
506
506
  end
507
507
 
508
- has_edge :moods_for_application do |edge|
509
- edge.get
510
- end
511
-
512
508
  has_edge :objects do |edge|
513
509
  edge.get 'OpenGraphObject' do |api|
514
510
  api.has_param :type, 'object'
@@ -161,34 +161,6 @@ module FacebookAds
161
161
  end
162
162
  end
163
163
 
164
- has_edge :adaccountcreationrequests do |edge|
165
- edge.post 'AdAccountCreationRequest' do |api|
166
- api.has_param :ad_accounts_info, { list: 'hash' }
167
- api.has_param :additional_comment, 'string'
168
- api.has_param :address_in_chinese, 'string'
169
- api.has_param :address_in_english, 'hash'
170
- api.has_param :address_in_local_language, 'string'
171
- api.has_param :advertiser_business_id, 'string'
172
- api.has_param :business_registration, 'file'
173
- api.has_param :business_registration_id, 'string'
174
- api.has_param :chinese_legal_entity_name, 'string'
175
- api.has_param :contact, 'hash'
176
- api.has_param :english_legal_entity_name, 'string'
177
- api.has_param :extended_credit_id, 'string'
178
- api.has_param :is_smb, 'bool'
179
- api.has_param :is_test, 'bool'
180
- api.has_param :legal_entity_name_in_local_language, 'string'
181
- api.has_param :official_website_url, 'string'
182
- api.has_param :planning_agency_business_id, 'string'
183
- api.has_param :promotable_app_ids, { list: 'string' }
184
- api.has_param :promotable_page_ids, { list: 'int' }
185
- api.has_param :promotable_page_urls, { list: 'string' }
186
- api.has_param :promotable_urls, { list: 'string' }
187
- api.has_param :subvertical, { enum: -> { AdAccountCreationRequest::SUBVERTICAL }}
188
- api.has_param :vertical, { enum: -> { AdAccountCreationRequest::VERTICAL }}
189
- end
190
- end
191
-
192
164
  has_edge :adnetworkanalytics do |edge|
193
165
  edge.get 'AdNetworkAnalyticsSyncQueryResult' do |api|
194
166
  api.has_param :aggregation_period, { enum: -> { AdNetworkAnalyticsSyncQueryResult::AGGREGATION_PERIOD }}
@@ -231,13 +203,6 @@ module FacebookAds
231
203
  end
232
204
  end
233
205
 
234
- has_edge :advertisable_applications do |edge|
235
- edge.get 'BusinessAdvertisableApplicationsResult' do |api|
236
- api.has_param :adaccount_id, 'int'
237
- api.has_param :offset, 'int'
238
- end
239
- end
240
-
241
206
  has_edge :agencies do |edge|
242
207
  edge.delete do |api|
243
208
  api.has_param :business, 'string'
@@ -336,6 +301,16 @@ module FacebookAds
336
301
  edge.get 'Business'
337
302
  end
338
303
 
304
+ has_edge :content_delivery_report do |edge|
305
+ edge.get 'ContentDeliveryReport' do |api|
306
+ api.has_param :end_date, 'datetime'
307
+ api.has_param :platform, { enum: -> { ContentDeliveryReport::PLATFORM }}
308
+ api.has_param :position, { enum: -> { ContentDeliveryReport::POSITION }}
309
+ api.has_param :start_date, 'datetime'
310
+ api.has_param :summary, 'bool'
311
+ end
312
+ end
313
+
339
314
  has_edge :creative_folders do |edge|
340
315
  edge.get 'BusinessCreativeFolder'
341
316
  edge.post 'BusinessCreativeFolder' do |api|
@@ -39,6 +39,7 @@ module FacebookAds
39
39
  "ADVERTISE",
40
40
  "MANAGE",
41
41
  "UPLOAD",
42
+ "VIEW",
42
43
  ]
43
44
 
44
45
  PAGE_TASKS = [
@@ -42,5 +42,9 @@ module FacebookAds
42
42
  has_no_post
43
43
  has_no_delete
44
44
 
45
+ has_edge :ad_placement_validation_results do |edge|
46
+ edge.get
47
+ end
48
+
45
49
  end
46
50
  end
@@ -64,6 +64,10 @@ module FacebookAds
64
64
  field :validation_ad_placements, { list: { enum: -> { VALIDATION_AD_PLACEMENTS }} }
65
65
  has_no_post
66
66
 
67
+ has_edge :ad_placement_validation_results do |edge|
68
+ edge.get
69
+ end
70
+
67
71
  has_edge :insights do |edge|
68
72
  edge.get do |api|
69
73
  api.has_param :breakdowns, { list: { enum: %w{age country gender }} }
@@ -34,5 +34,13 @@ module FacebookAds
34
34
  has_no_post
35
35
  has_no_delete
36
36
 
37
+ has_edge :atlas_sales_accesses do |edge|
38
+ edge.get
39
+ edge.post do |api|
40
+ api.has_param :access_request_id, 'string'
41
+ api.has_param :status, 'string'
42
+ end
43
+ end
44
+
37
45
  end
38
46
  end
@@ -199,6 +199,16 @@ module FacebookAds
199
199
  end
200
200
  end
201
201
 
202
+ has_edge :content_delivery_report do |edge|
203
+ edge.get 'ContentDeliveryReport' do |api|
204
+ api.has_param :end_date, 'datetime'
205
+ api.has_param :platform, { enum: -> { ContentDeliveryReport::PLATFORM }}
206
+ api.has_param :position, { enum: -> { ContentDeliveryReport::POSITION }}
207
+ api.has_param :start_date, 'datetime'
208
+ api.has_param :summary, 'bool'
209
+ end
210
+ end
211
+
202
212
  has_edge :copies do |edge|
203
213
  edge.get 'Campaign' do |api|
204
214
  api.has_param :date_preset, { enum: -> { Campaign::DATE_PRESET }}
@@ -0,0 +1,75 @@
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 ContentDeliveryReport < AdObject
29
+ PLATFORM = [
30
+ "AUDIENCE_NETWORK",
31
+ "FACEBOOK",
32
+ "INSTAGRAM",
33
+ "MESSENGER",
34
+ "UNKNOWN",
35
+ "WHATSAPP",
36
+ ]
37
+
38
+ POSITION = [
39
+ "ALL_PLACEMENTS",
40
+ "AN_CLASSIC",
41
+ "FACEBOOK_GROUPS",
42
+ "FACEBOOK_STORIES",
43
+ "FEED",
44
+ "GROUPS",
45
+ "INSTAGRAM_EXPLORE",
46
+ "INSTAGRAM_STORIES",
47
+ "INSTANT_ARTICLE",
48
+ "INSTREAM_VIDEO",
49
+ "MARKETPLACE",
50
+ "MESSENGER_INBOX",
51
+ "MESSENGER_STORIES",
52
+ "OTHERS",
53
+ "REWARDED_VIDEO",
54
+ "RIGHT_HAND_COLUMN",
55
+ "SEARCH",
56
+ "SEARCH_SERP",
57
+ "STATUS",
58
+ "SUGGESTED_VIDEO",
59
+ "UNKNOWN",
60
+ "VIDEO_FEEDS",
61
+ ]
62
+
63
+
64
+ field :content_name, 'string'
65
+ field :content_url, 'string'
66
+ field :creator_name, 'string'
67
+ field :creator_url, 'string'
68
+ field :estimated_impressions, 'int'
69
+ has_no_id
70
+ has_no_get
71
+ has_no_post
72
+ has_no_delete
73
+
74
+ end
75
+ end
@@ -42,7 +42,6 @@ module FacebookAds
42
42
  field :price, 'string'
43
43
  field :sanitized_images, { list: 'string' }
44
44
  field :url, 'string'
45
- has_no_post
46
45
  has_no_delete
47
46
 
48
47
  end
@@ -60,6 +60,7 @@ module FacebookAds
60
60
  "MENTORSHIP",
61
61
  "NEIGHBORS",
62
62
  "NONE",
63
+ "OCULUS",
63
64
  "PARENTING",
64
65
  "PARENTS",
65
66
  "PROJECT",
@@ -109,6 +110,7 @@ module FacebookAds
109
110
  "MENTORSHIP",
110
111
  "NEIGHBORS",
111
112
  "NONE",
113
+ "OCULUS",
112
114
  "PARENTING",
113
115
  "PARENTS",
114
116
  "PROJECT",
@@ -25,9 +25,11 @@ 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 AdCreativeDegreesOfFreedomSpec < AdObject
28
+ class LeadGenPostSubmissionCheckResult < AdObject
29
29
 
30
- field :degrees_of_freedom_type, 'string'
30
+ field :api_call_result, 'string'
31
+ field :api_error_message, 'string'
32
+ field :shown_thank_you_page, 'string'
31
33
  has_no_id
32
34
  has_no_get
33
35
  has_no_post
@@ -278,6 +278,7 @@ module FacebookAds
278
278
  api.has_param :rules, { list: 'string' }
279
279
  api.has_param :schedule, 'string'
280
280
  api.has_param :update_schedule, 'string'
281
+ api.has_param :upload_schedule, 'string'
281
282
  end
282
283
  end
283
284
 
@@ -90,6 +90,7 @@ module FacebookAds
90
90
  field :update_schedule, 'ProductFeedSchedule'
91
91
  field :feed_type, { enum: -> { FEED_TYPE }}
92
92
  field :rules, { list: 'string' }
93
+ field :upload_schedule, 'string'
93
94
 
94
95
  has_edge :automotive_models do |edge|
95
96
  edge.get 'AutomotiveModel' do |api|
@@ -53,8 +53,7 @@ module FacebookAds
53
53
  field :timezone, 'string'
54
54
  field :url, 'string'
55
55
  field :username, 'string'
56
- has_no_id
57
- has_no_get
56
+ field :id, 'string'
58
57
  has_no_post
59
58
  has_no_delete
60
59
 
@@ -51,6 +51,9 @@ module FacebookAds
51
51
  "open_box_new",
52
52
  "refurbished",
53
53
  "used",
54
+ "used_fair",
55
+ "used_good",
56
+ "used_like_new",
54
57
  ]
55
58
 
56
59
  GENDER = [
@@ -30,6 +30,7 @@ module FacebookAds
30
30
  field :account, 'AdAccount'
31
31
  field :approximate_count, 'int'
32
32
  field :description, 'string'
33
+ field :extra_info, 'string'
33
34
  field :id, 'string'
34
35
  field :name, 'string'
35
36
  field :permission_for_actions, 'AudiencePermissionForActions'
@@ -87,7 +87,7 @@ module FacebookAds
87
87
  api.has_param :montage_mentions, 'hash'
88
88
  api.has_param :montage_overlays, { list: 'hash' }
89
89
  api.has_param :montage_reply_data, 'object'
90
- api.has_param :montage_supported_features, { list: { enum: %w{LIGHTWEIGHT_REPLY SHOW_STORY_IN_MESSENGER_THREAD }} }
90
+ api.has_param :montage_supported_features, { list: { enum: %w{AUTHOR_IN_PRODUCER_QE_FOR_SMART_REPLIES LIGHTWEIGHT_REPLY SHOW_STORY_IN_MESSENGER_THREAD }} }
91
91
  api.has_param :montage_targets, { list: 'string' }
92
92
  api.has_param :object_attachment, 'string'
93
93
  api.has_param :offline_threading_id, 'string'
@@ -28,6 +28,7 @@ module FacebookAds
28
28
  class Url < AdObject
29
29
  SCOPES = [
30
30
  "NEWS_TAB",
31
+ "NEWS_TAB_DEV_ENV",
31
32
  ]
32
33
 
33
34
 
@@ -235,6 +235,20 @@ module FacebookAds
235
235
 
236
236
  has_edge :ad_studies do |edge|
237
237
  edge.get 'AdStudy'
238
+ edge.post 'AdStudy' do |api|
239
+ api.has_param :cells, { list: 'object' }
240
+ api.has_param :client_business, 'string'
241
+ api.has_param :confidence_level, 'double'
242
+ api.has_param :cooldown_start_time, 'int'
243
+ api.has_param :description, 'string'
244
+ api.has_param :end_time, 'int'
245
+ api.has_param :name, 'string'
246
+ api.has_param :objectives, { list: 'object' }
247
+ api.has_param :observation_end_time, 'int'
248
+ api.has_param :start_time, 'int'
249
+ api.has_param :type, { enum: -> { AdStudy::TYPE }}
250
+ api.has_param :viewers, { list: 'int' }
251
+ end
238
252
  end
239
253
 
240
254
  has_edge :adaccounts do |edge|
@@ -19,6 +19,6 @@
19
19
  # FB:AUTOGEN
20
20
 
21
21
  module FacebookAds
22
- VERSION = '0.4.0.7'
22
+ VERSION = '0.4.0.8'
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.7
4
+ version: 0.4.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Facebook
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-09-25 00:00:00.000000000 Z
11
+ date: 2019-10-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -196,6 +196,8 @@ files:
196
196
  - lib/facebook_ads/ad_objects/ad_account.rb
197
197
  - lib/facebook_ads/ad_objects/ad_account_activity.rb
198
198
  - lib/facebook_ads/ad_objects/ad_account_ad_rules_history.rb
199
+ - lib/facebook_ads/ad_objects/ad_account_ad_volume.rb
200
+ - lib/facebook_ads/ad_objects/ad_account_content_filter_levels_inheritance.rb
199
201
  - lib/facebook_ads/ad_objects/ad_account_creation_request.rb
200
202
  - lib/facebook_ads/ad_objects/ad_account_default_destination.rb
201
203
  - lib/facebook_ads/ad_objects/ad_account_default_objective.rb
@@ -237,7 +239,6 @@ files:
237
239
  - lib/facebook_ads/ad_objects/ad_contract.rb
238
240
  - lib/facebook_ads/ad_objects/ad_creative.rb
239
241
  - lib/facebook_ads/ad_objects/ad_creative_collection_thumbnail_info.rb
240
- - lib/facebook_ads/ad_objects/ad_creative_degrees_of_freedom_spec.rb
241
242
  - lib/facebook_ads/ad_objects/ad_creative_interactive_components_spec.rb
242
243
  - lib/facebook_ads/ad_objects/ad_creative_link_data.rb
243
244
  - lib/facebook_ads/ad_objects/ad_creative_link_data_app_link_spec.rb
@@ -334,7 +335,6 @@ files:
334
335
  - lib/facebook_ads/ad_objects/broad_targeting_categories.rb
335
336
  - lib/facebook_ads/ad_objects/business.rb
336
337
  - lib/facebook_ads/ad_objects/business_ad_account_request.rb
337
- - lib/facebook_ads/ad_objects/business_advertisable_applications_result.rb
338
338
  - lib/facebook_ads/ad_objects/business_agreement.rb
339
339
  - lib/facebook_ads/ad_objects/business_application_request.rb
340
340
  - lib/facebook_ads/ad_objects/business_asset_group.rb
@@ -361,6 +361,7 @@ files:
361
361
  - lib/facebook_ads/ad_objects/collaborative_ads_share_settings.rb
362
362
  - lib/facebook_ads/ad_objects/comment.rb
363
363
  - lib/facebook_ads/ad_objects/commerce_settings.rb
364
+ - lib/facebook_ads/ad_objects/content_delivery_report.rb
364
365
  - lib/facebook_ads/ad_objects/conversion_action_query.rb
365
366
  - lib/facebook_ads/ad_objects/copyright_reference_container.rb
366
367
  - lib/facebook_ads/ad_objects/cover_photo.rb
@@ -435,6 +436,7 @@ files:
435
436
  - lib/facebook_ads/ad_objects/lead_gen_conditional_questions_group_questions.rb
436
437
  - lib/facebook_ads/ad_objects/lead_gen_draft_question.rb
437
438
  - lib/facebook_ads/ad_objects/lead_gen_form_preview_details.rb
439
+ - lib/facebook_ads/ad_objects/lead_gen_post_submission_check_result.rb
438
440
  - lib/facebook_ads/ad_objects/lead_gen_question.rb
439
441
  - lib/facebook_ads/ad_objects/lead_gen_question_option.rb
440
442
  - lib/facebook_ads/ad_objects/leadgen_form.rb