facebookbusiness 0.5.0.4 → 0.5.0.5
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.rb +6 -0
- data/lib/facebook_ads/ad_objects/ad_account.rb +91 -1
- data/lib/facebook_ads/ad_objects/ad_account_ad_volume.rb +1 -4
- data/lib/facebook_ads/ad_objects/ad_account_creation_request.rb +172 -0
- data/lib/facebook_ads/ad_objects/ad_account_targeting_unified.rb +2 -0
- data/lib/facebook_ads/ad_objects/ad_creative.rb +2 -0
- data/lib/facebook_ads/ad_objects/ad_saved_location.rb +42 -0
- data/lib/facebook_ads/ad_objects/ad_video.rb +23 -0
- data/lib/facebook_ads/ad_objects/ads_data_partner.rb +41 -0
- data/lib/facebook_ads/ad_objects/ads_pixel.rb +15 -0
- data/lib/facebook_ads/ad_objects/album.rb +6 -0
- data/lib/facebook_ads/ad_objects/application.rb +66 -0
- data/lib/facebook_ads/ad_objects/atlas_campaign.rb +0 -9
- data/lib/facebook_ads/ad_objects/audience_insights_rule.rb +42 -0
- data/lib/facebook_ads/ad_objects/audio_copyright.rb +6 -1
- data/lib/facebook_ads/ad_objects/business.rb +66 -0
- data/lib/facebook_ads/ad_objects/business_image.rb +1 -1
- data/lib/facebook_ads/ad_objects/business_setting_logs_data.rb +41 -0
- data/lib/facebook_ads/ad_objects/business_user.rb +4 -0
- data/lib/facebook_ads/ad_objects/calibrator_existing_rule.rb +44 -0
- data/lib/facebook_ads/ad_objects/custom_audience.rb +0 -1
- data/lib/facebook_ads/ad_objects/custom_conversion.rb +14 -0
- data/lib/facebook_ads/ad_objects/custom_conversion_activities.rb +46 -0
- data/lib/facebook_ads/ad_objects/custom_user_settings.rb +38 -0
- data/lib/facebook_ads/ad_objects/destination.rb +1 -1
- data/lib/facebook_ads/ad_objects/dog_notification_settings.rb +36 -0
- data/lib/facebook_ads/ad_objects/dynamic_item_display_bundle_folder.rb +2 -0
- data/lib/facebook_ads/ad_objects/education_experience.rb +42 -0
- data/lib/facebook_ads/ad_objects/event.rb +118 -0
- data/lib/facebook_ads/ad_objects/expirable_post.rb +56 -0
- data/lib/facebook_ads/ad_objects/extended_credit.rb +4 -0
- data/lib/facebook_ads/ad_objects/flight_catalog_settings.rb +36 -0
- data/lib/facebook_ads/ad_objects/group.rb +6 -0
- data/lib/facebook_ads/ad_objects/hotel.rb +13 -0
- data/lib/facebook_ads/ad_objects/hotel_room.rb +1 -0
- data/lib/facebook_ads/ad_objects/instagram_user.rb +9 -0
- data/lib/facebook_ads/ad_objects/lead_gen_data_draft.rb +89 -0
- data/lib/facebook_ads/ad_objects/leadgen_form.rb +5 -0
- data/lib/facebook_ads/ad_objects/life_event.rb +15 -2
- data/lib/facebook_ads/ad_objects/link.rb +13 -0
- data/lib/facebook_ads/ad_objects/live_video.rb +4 -0
- data/lib/facebook_ads/ad_objects/offline_conversion_data_set.rb +22 -0
- data/lib/facebook_ads/ad_objects/open_graph_context.rb +4 -0
- data/lib/facebook_ads/ad_objects/open_graph_object.rb +22 -1
- data/lib/facebook_ads/ad_objects/owned_domain.rb +36 -0
- data/lib/facebook_ads/ad_objects/page.rb +211 -0
- data/lib/facebook_ads/ad_objects/page_insights_async_export_run.rb +4 -0
- data/lib/facebook_ads/ad_objects/page_label.rb +4 -0
- data/lib/facebook_ads/ad_objects/page_post.rb +23 -0
- data/lib/facebook_ads/ad_objects/page_saved_filter.rb +117 -1
- data/lib/facebook_ads/ad_objects/page_upcoming_change.rb +1 -0
- data/lib/facebook_ads/ad_objects/page_videos_you_can_use.rb +38 -0
- data/lib/facebook_ads/ad_objects/partner_category.rb +51 -0
- data/lib/facebook_ads/ad_objects/partner_integration_linked.rb +129 -0
- data/lib/facebook_ads/ad_objects/partner_study.rb +4 -0
- data/lib/facebook_ads/ad_objects/photo.rb +100 -1
- data/lib/facebook_ads/ad_objects/place_tag.rb +37 -0
- data/lib/facebook_ads/ad_objects/post.rb +62 -0
- data/lib/facebook_ads/ad_objects/product_catalog.rb +109 -1
- data/lib/facebook_ads/ad_objects/product_da_event_samples_batch.rb +55 -0
- data/lib/facebook_ads/ad_objects/product_group.rb +18 -0
- data/lib/facebook_ads/ad_objects/product_item.rb +18 -0
- data/lib/facebook_ads/ad_objects/product_set.rb +6 -0
- data/lib/facebook_ads/ad_objects/rtb_dynamic_post.rb +0 -1
- data/lib/facebook_ads/ad_objects/saved_message_response.rb +21 -2
- data/lib/facebook_ads/ad_objects/saved_message_response_macro.rb +39 -0
- data/lib/facebook_ads/ad_objects/status.rb +94 -0
- data/lib/facebook_ads/ad_objects/stream_filter.rb +39 -0
- data/lib/facebook_ads/ad_objects/system_user.rb +4 -0
- data/lib/facebook_ads/ad_objects/thread_setting.rb +37 -0
- data/lib/facebook_ads/ad_objects/timezone_offset.rb +41 -0
- data/lib/facebook_ads/ad_objects/user.rb +135 -38
- data/lib/facebook_ads/ad_objects/user_context.rb +39 -0
- data/lib/facebook_ads/ad_objects/video_copyright.rb +0 -1
- data/lib/facebook_ads/ad_objects/video_copyright_rule.rb +0 -1
- data/lib/facebook_ads/ad_objects/video_list.rb +24 -0
- data/lib/facebook_ads/ad_objects/whats_app_business_account.rb +0 -2
- data/lib/facebook_ads/ad_objects/with_asset3_d.rb +35 -0
- data/lib/facebook_ads/ad_objects/work_experience.rb +44 -0
- data/lib/facebook_ads/version.rb +1 -1
- metadata +28 -2
@@ -0,0 +1,37 @@
|
|
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 PlaceTag < AdObject
|
29
|
+
|
30
|
+
field :created_time, 'datetime'
|
31
|
+
field :id, 'string'
|
32
|
+
field :place, 'Page'
|
33
|
+
has_no_post
|
34
|
+
has_no_delete
|
35
|
+
|
36
|
+
end
|
37
|
+
end
|
@@ -170,6 +170,63 @@ module FacebookAds
|
|
170
170
|
end
|
171
171
|
end
|
172
172
|
|
173
|
+
has_edge :photos do |edge|
|
174
|
+
edge.post 'Photo' do |api|
|
175
|
+
api.has_param :aid, 'string'
|
176
|
+
api.has_param :allow_spherical_photo, 'bool'
|
177
|
+
api.has_param :alt_text_custom, 'string'
|
178
|
+
api.has_param :android_key_hash, 'string'
|
179
|
+
api.has_param :application_id, 'string'
|
180
|
+
api.has_param :attempt, 'int'
|
181
|
+
api.has_param :audience_exp, 'bool'
|
182
|
+
api.has_param :backdated_time, 'datetime'
|
183
|
+
api.has_param :backdated_time_granularity, { enum: -> { Photo::BACKDATED_TIME_GRANULARITY }}
|
184
|
+
api.has_param :caption, 'string'
|
185
|
+
api.has_param :composer_session_id, 'string'
|
186
|
+
api.has_param :direct_share_status, 'int'
|
187
|
+
api.has_param :feed_targeting, 'object'
|
188
|
+
api.has_param :filter_type, 'int'
|
189
|
+
api.has_param :full_res_is_coming_later, 'bool'
|
190
|
+
api.has_param :initial_view_heading_override_degrees, 'int'
|
191
|
+
api.has_param :initial_view_pitch_override_degrees, 'int'
|
192
|
+
api.has_param :initial_view_vertical_fov_override_degrees, 'int'
|
193
|
+
api.has_param :ios_bundle_id, 'string'
|
194
|
+
api.has_param :is_explicit_location, 'bool'
|
195
|
+
api.has_param :is_explicit_place, 'bool'
|
196
|
+
api.has_param :is_visual_search, 'bool'
|
197
|
+
api.has_param :manual_privacy, 'bool'
|
198
|
+
api.has_param :message, 'string'
|
199
|
+
api.has_param :name, 'string'
|
200
|
+
api.has_param :no_story, 'bool'
|
201
|
+
api.has_param :offline_id, 'int'
|
202
|
+
api.has_param :og_action_type_id, 'string'
|
203
|
+
api.has_param :og_icon_id, 'string'
|
204
|
+
api.has_param :og_object_id, 'string'
|
205
|
+
api.has_param :og_phrase, 'string'
|
206
|
+
api.has_param :og_set_profile_badge, 'bool'
|
207
|
+
api.has_param :og_suggestion_mechanism, 'string'
|
208
|
+
api.has_param :place, 'object'
|
209
|
+
api.has_param :privacy, 'string'
|
210
|
+
api.has_param :profile_id, 'int'
|
211
|
+
api.has_param :proxied_app_id, 'string'
|
212
|
+
api.has_param :published, 'bool'
|
213
|
+
api.has_param :qn, 'string'
|
214
|
+
api.has_param :scheduled_publish_time, 'int'
|
215
|
+
api.has_param :spherical_metadata, 'hash'
|
216
|
+
api.has_param :sponsor_id, 'string'
|
217
|
+
api.has_param :sponsor_relationship, 'int'
|
218
|
+
api.has_param :tags, { list: 'object' }
|
219
|
+
api.has_param :target_id, 'int'
|
220
|
+
api.has_param :targeting, 'object'
|
221
|
+
api.has_param :time_since_original_post, 'int'
|
222
|
+
api.has_param :uid, 'int'
|
223
|
+
api.has_param :unpublished_content_type, { enum: -> { Photo::UNPUBLISHED_CONTENT_TYPE }}
|
224
|
+
api.has_param :url, 'string'
|
225
|
+
api.has_param :user_selected_tags, 'bool'
|
226
|
+
api.has_param :vault_image_id, 'string'
|
227
|
+
end
|
228
|
+
end
|
229
|
+
|
173
230
|
has_edge :promotions do |edge|
|
174
231
|
edge.post do |api|
|
175
232
|
api.has_param :ad_account_id, 'string'
|
@@ -202,6 +259,11 @@ module FacebookAds
|
|
202
259
|
edge.get 'Page'
|
203
260
|
end
|
204
261
|
|
262
|
+
has_edge :subscribed do |edge|
|
263
|
+
edge.delete
|
264
|
+
edge.post 'Post'
|
265
|
+
end
|
266
|
+
|
205
267
|
has_edge :to do |edge|
|
206
268
|
edge.get 'Profile'
|
207
269
|
end
|
@@ -65,13 +65,13 @@ module FacebookAds
|
|
65
65
|
field :default_image_url, 'string'
|
66
66
|
field :fallback_image_url, { list: 'string' }
|
67
67
|
field :feed_count, 'int'
|
68
|
+
field :flight_catalog_settings, 'FlightCatalogSettings'
|
68
69
|
field :id, 'string'
|
69
70
|
field :name, 'string'
|
70
71
|
field :product_count, 'int'
|
71
72
|
field :store_catalog_settings, 'StoreCatalogSettings'
|
72
73
|
field :vertical, 'string'
|
73
74
|
field :destination_catalog_settings, 'hash'
|
74
|
-
field :flight_catalog_settings, 'hash'
|
75
75
|
|
76
76
|
has_edge :agencies do |edge|
|
77
77
|
edge.delete do |api|
|
@@ -114,12 +114,15 @@ module FacebookAds
|
|
114
114
|
end
|
115
115
|
|
116
116
|
has_edge :bundle_folders do |edge|
|
117
|
+
edge.get 'DynamicItemDisplayBundleFolder'
|
117
118
|
edge.post 'DynamicItemDisplayBundleFolder' do |api|
|
119
|
+
api.has_param :bundles, { list: 'string' }
|
118
120
|
api.has_param :name, 'string'
|
119
121
|
end
|
120
122
|
end
|
121
123
|
|
122
124
|
has_edge :bundles do |edge|
|
125
|
+
edge.get 'DynamicItemDisplayBundle'
|
123
126
|
edge.post 'DynamicItemDisplayBundle' do |api|
|
124
127
|
api.has_param :additional_urls, 'hash'
|
125
128
|
api.has_param :description, 'string'
|
@@ -151,11 +154,31 @@ module FacebookAds
|
|
151
154
|
edge.get 'CollaborativeAdsShareSettings'
|
152
155
|
end
|
153
156
|
|
157
|
+
has_edge :da_event_samples do |edge|
|
158
|
+
edge.get 'ProductDaEventSamplesBatch' do |api|
|
159
|
+
api.has_param :aggregation_type, { enum: -> { ProductDaEventSamplesBatch::AGGREGATION_TYPE }}
|
160
|
+
api.has_param :event, { enum: -> { ProductDaEventSamplesBatch::EVENT }}
|
161
|
+
api.has_param :source_id, 'string'
|
162
|
+
end
|
163
|
+
end
|
164
|
+
|
154
165
|
has_edge :destinations do |edge|
|
155
166
|
edge.get 'Destination' do |api|
|
156
167
|
api.has_param :bulk_pagination, 'bool'
|
157
168
|
api.has_param :filter, 'object'
|
158
169
|
end
|
170
|
+
edge.post 'Destination' do |api|
|
171
|
+
api.has_param :address, 'object'
|
172
|
+
api.has_param :currency, 'string'
|
173
|
+
api.has_param :description, 'string'
|
174
|
+
api.has_param :destination_id, 'string'
|
175
|
+
api.has_param :images, { list: 'object' }
|
176
|
+
api.has_param :name, 'string'
|
177
|
+
api.has_param :price, 'int'
|
178
|
+
api.has_param :target_radius_in_km, 'double'
|
179
|
+
api.has_param :types, 'string'
|
180
|
+
api.has_param :url, 'string'
|
181
|
+
end
|
159
182
|
end
|
160
183
|
|
161
184
|
has_edge :event_stats do |edge|
|
@@ -179,6 +202,15 @@ module FacebookAds
|
|
179
202
|
api.has_param :bulk_pagination, 'bool'
|
180
203
|
api.has_param :filter, 'object'
|
181
204
|
end
|
205
|
+
edge.post 'Flight' do |api|
|
206
|
+
api.has_param :currency, 'string'
|
207
|
+
api.has_param :description, 'string'
|
208
|
+
api.has_param :destination_airport, 'string'
|
209
|
+
api.has_param :images, { list: 'object' }
|
210
|
+
api.has_param :origin_airport, 'string'
|
211
|
+
api.has_param :price, 'int'
|
212
|
+
api.has_param :url, 'string'
|
213
|
+
end
|
182
214
|
end
|
183
215
|
|
184
216
|
has_edge :home_listings do |edge|
|
@@ -442,5 +474,81 @@ module FacebookAds
|
|
442
474
|
end
|
443
475
|
end
|
444
476
|
|
477
|
+
has_edge :videos do |edge|
|
478
|
+
edge.post 'AdVideo' do |api|
|
479
|
+
api.has_param :adaptive_type, 'string'
|
480
|
+
api.has_param :animated_effect_id, 'int'
|
481
|
+
api.has_param :application_id, 'string'
|
482
|
+
api.has_param :asked_fun_fact_prompt_id, 'int'
|
483
|
+
api.has_param :attribution_app_id, 'string'
|
484
|
+
api.has_param :audio_story_wave_animation_handle, 'string'
|
485
|
+
api.has_param :composer_entry_picker, 'string'
|
486
|
+
api.has_param :composer_entry_point, 'string'
|
487
|
+
api.has_param :composer_entry_time, 'int'
|
488
|
+
api.has_param :composer_session_events_log, 'string'
|
489
|
+
api.has_param :composer_session_id, 'string'
|
490
|
+
api.has_param :composer_source_surface, 'string'
|
491
|
+
api.has_param :composer_type, 'string'
|
492
|
+
api.has_param :container_type, { enum: -> { AdVideo::CONTAINER_TYPE }}
|
493
|
+
api.has_param :content_category, { enum: -> { AdVideo::CONTENT_CATEGORY }}
|
494
|
+
api.has_param :description, 'string'
|
495
|
+
api.has_param :embeddable, 'bool'
|
496
|
+
api.has_param :end_offset, 'int'
|
497
|
+
api.has_param :fbuploader_video_file_chunk, 'string'
|
498
|
+
api.has_param :file_size, 'int'
|
499
|
+
api.has_param :file_url, 'string'
|
500
|
+
api.has_param :fisheye_video_cropped, 'bool'
|
501
|
+
api.has_param :formatting, { enum: -> { AdVideo::FORMATTING }}
|
502
|
+
api.has_param :fov, 'int'
|
503
|
+
api.has_param :front_z_rotation, 'double'
|
504
|
+
api.has_param :fun_fact_prompt_id, 'int'
|
505
|
+
api.has_param :fun_fact_toastee_id, 'int'
|
506
|
+
api.has_param :guide, { list: { list: 'int' } }
|
507
|
+
api.has_param :guide_enabled, 'bool'
|
508
|
+
api.has_param :has_nickname, 'bool'
|
509
|
+
api.has_param :holiday_card, 'string'
|
510
|
+
api.has_param :initial_heading, 'int'
|
511
|
+
api.has_param :initial_pitch, 'int'
|
512
|
+
api.has_param :instant_game_entry_point_data, 'string'
|
513
|
+
api.has_param :is_boost_intended, 'bool'
|
514
|
+
api.has_param :is_explicit_share, 'bool'
|
515
|
+
api.has_param :is_group_linking_post, 'bool'
|
516
|
+
api.has_param :is_voice_clip, 'bool'
|
517
|
+
api.has_param :location_source_id, 'string'
|
518
|
+
api.has_param :manual_privacy, 'bool'
|
519
|
+
api.has_param :offer_like_post_id, 'int'
|
520
|
+
api.has_param :og_action_type_id, 'string'
|
521
|
+
api.has_param :og_icon_id, 'string'
|
522
|
+
api.has_param :og_object_id, 'string'
|
523
|
+
api.has_param :og_phrase, 'string'
|
524
|
+
api.has_param :og_suggestion_mechanism, 'string'
|
525
|
+
api.has_param :original_fov, 'int'
|
526
|
+
api.has_param :original_projection_type, { enum: -> { AdVideo::ORIGINAL_PROJECTION_TYPE }}
|
527
|
+
api.has_param :publish_event_id, 'int'
|
528
|
+
api.has_param :react_mode_metadata, 'string'
|
529
|
+
api.has_param :referenced_sticker_id, 'string'
|
530
|
+
api.has_param :replace_video_id, 'string'
|
531
|
+
api.has_param :sales_promo_id, 'int'
|
532
|
+
api.has_param :slideshow_spec, 'hash'
|
533
|
+
api.has_param :source, 'string'
|
534
|
+
api.has_param :spherical, 'bool'
|
535
|
+
api.has_param :start_offset, 'int'
|
536
|
+
api.has_param :swap_mode, { enum: -> { AdVideo::SWAP_MODE }}
|
537
|
+
api.has_param :text_format_metadata, 'string'
|
538
|
+
api.has_param :throwback_camera_roll_media, 'string'
|
539
|
+
api.has_param :thumb, 'file'
|
540
|
+
api.has_param :time_since_original_post, 'int'
|
541
|
+
api.has_param :title, 'string'
|
542
|
+
api.has_param :transcode_setting_properties, 'string'
|
543
|
+
api.has_param :unpublished_content_type, { enum: -> { AdVideo::UNPUBLISHED_CONTENT_TYPE }}
|
544
|
+
api.has_param :upload_phase, { enum: -> { AdVideo::UPLOAD_PHASE }}
|
545
|
+
api.has_param :upload_session_id, 'string'
|
546
|
+
api.has_param :upload_setting_properties, 'string'
|
547
|
+
api.has_param :video_file_chunk, 'string'
|
548
|
+
api.has_param :video_start_time_ms, 'int'
|
549
|
+
api.has_param :waterfall_id, 'string'
|
550
|
+
end
|
551
|
+
end
|
552
|
+
|
445
553
|
end
|
446
554
|
end
|
@@ -0,0 +1,55 @@
|
|
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 ProductDaEventSamplesBatch < AdObject
|
29
|
+
AGGREGATION_TYPE = [
|
30
|
+
"CONTENT_ID",
|
31
|
+
"CONTENT_URL",
|
32
|
+
]
|
33
|
+
|
34
|
+
EVENT = [
|
35
|
+
"AddToCart",
|
36
|
+
"AddToWishlist",
|
37
|
+
"InitiateCheckout",
|
38
|
+
"Lead",
|
39
|
+
"Purchase",
|
40
|
+
"Search",
|
41
|
+
"Subscribe",
|
42
|
+
"ViewContent",
|
43
|
+
]
|
44
|
+
|
45
|
+
|
46
|
+
field :samples, { list: 'object' }
|
47
|
+
field :time_start, 'int'
|
48
|
+
field :time_stop, 'int'
|
49
|
+
has_no_id
|
50
|
+
has_no_get
|
51
|
+
has_no_post
|
52
|
+
has_no_delete
|
53
|
+
|
54
|
+
end
|
55
|
+
end
|
@@ -32,6 +32,24 @@ module FacebookAds
|
|
32
32
|
field :retailer_id, 'string'
|
33
33
|
field :variants, { list: 'ProductVariant' }
|
34
34
|
|
35
|
+
has_edge :comments do |edge|
|
36
|
+
edge.post 'Comment' do |api|
|
37
|
+
api.has_param :attachment_id, 'string'
|
38
|
+
api.has_param :attachment_share_url, 'string'
|
39
|
+
api.has_param :attachment_url, 'string'
|
40
|
+
api.has_param :comment_privacy_value, { enum: -> { Comment::COMMENT_PRIVACY_VALUE }}
|
41
|
+
api.has_param :facepile_mentioned_ids, { list: 'string' }
|
42
|
+
api.has_param :feedback_source, 'string'
|
43
|
+
api.has_param :is_offline, 'bool'
|
44
|
+
api.has_param :message, 'string'
|
45
|
+
api.has_param :nectar_module, 'string'
|
46
|
+
api.has_param :object_id, 'string'
|
47
|
+
api.has_param :parent_comment_id, 'object'
|
48
|
+
api.has_param :text, 'string'
|
49
|
+
api.has_param :tracking, 'string'
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
35
53
|
has_edge :products do |edge|
|
36
54
|
edge.get 'ProductItem'
|
37
55
|
edge.post 'ProductItem' do |api|
|
@@ -365,6 +365,24 @@ module FacebookAds
|
|
365
365
|
field :windows_phone_app_name, 'string'
|
366
366
|
field :windows_phone_url, 'string'
|
367
367
|
|
368
|
+
has_edge :comments do |edge|
|
369
|
+
edge.post 'Comment' do |api|
|
370
|
+
api.has_param :attachment_id, 'string'
|
371
|
+
api.has_param :attachment_share_url, 'string'
|
372
|
+
api.has_param :attachment_url, 'string'
|
373
|
+
api.has_param :comment_privacy_value, { enum: -> { Comment::COMMENT_PRIVACY_VALUE }}
|
374
|
+
api.has_param :facepile_mentioned_ids, { list: 'string' }
|
375
|
+
api.has_param :feedback_source, 'string'
|
376
|
+
api.has_param :is_offline, 'bool'
|
377
|
+
api.has_param :message, 'string'
|
378
|
+
api.has_param :nectar_module, 'string'
|
379
|
+
api.has_param :object_id, 'string'
|
380
|
+
api.has_param :parent_comment_id, 'object'
|
381
|
+
api.has_param :text, 'string'
|
382
|
+
api.has_param :tracking, 'string'
|
383
|
+
end
|
384
|
+
end
|
385
|
+
|
368
386
|
has_edge :product_sets do |edge|
|
369
387
|
edge.get 'ProductSet'
|
370
388
|
end
|
@@ -41,6 +41,12 @@ module FacebookAds
|
|
41
41
|
end
|
42
42
|
end
|
43
43
|
|
44
|
+
has_edge :da_checks do |edge|
|
45
|
+
edge.get 'DaCheck' do |api|
|
46
|
+
api.has_param :checks, { list: 'string' }
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
44
50
|
has_edge :destinations do |edge|
|
45
51
|
edge.get 'Destination' do |api|
|
46
52
|
api.has_param :bulk_pagination, 'bool'
|
@@ -26,6 +26,23 @@ module FacebookAds
|
|
26
26
|
# pull request for this class.
|
27
27
|
|
28
28
|
class SavedMessageResponse < AdObject
|
29
|
+
CATEGORY = [
|
30
|
+
"APPOINTMENT_REMINDER",
|
31
|
+
"AWAY_MESSAGE",
|
32
|
+
"FOLLOW_UP",
|
33
|
+
"INSTANT_REPLY",
|
34
|
+
"JOB_APPLICATION",
|
35
|
+
"MESSENGER_CODE",
|
36
|
+
"REFERRAL",
|
37
|
+
"SMART_REPLY_CONTACT",
|
38
|
+
"SMART_REPLY_HOURS",
|
39
|
+
"SMART_REPLY_LOCATION",
|
40
|
+
"SMART_REPLY_NEGATIVE_FEEDBACK",
|
41
|
+
"SMART_REPLY_POSITIVE_FEEDBACK",
|
42
|
+
"STANDARD",
|
43
|
+
"WELCOME_MESSAGE",
|
44
|
+
]
|
45
|
+
|
29
46
|
|
30
47
|
field :category, 'string'
|
31
48
|
field :id, 'string'
|
@@ -33,8 +50,10 @@ module FacebookAds
|
|
33
50
|
field :is_enabled, 'bool'
|
34
51
|
field :message, 'string'
|
35
52
|
field :title, 'string'
|
36
|
-
|
37
|
-
|
53
|
+
|
54
|
+
has_edge :macros do |edge|
|
55
|
+
edge.get 'SavedMessageResponseMacro'
|
56
|
+
end
|
38
57
|
|
39
58
|
end
|
40
59
|
end
|
@@ -0,0 +1,39 @@
|
|
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 SavedMessageResponseMacro < AdObject
|
29
|
+
|
30
|
+
field :length, 'int'
|
31
|
+
field :macro, 'string'
|
32
|
+
field :offset, 'int'
|
33
|
+
has_no_id
|
34
|
+
has_no_get
|
35
|
+
has_no_post
|
36
|
+
has_no_delete
|
37
|
+
|
38
|
+
end
|
39
|
+
end
|