facebookbusiness 0.6.0.1 → 0.6.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/facebook_ads/ad_objects/ad_account.rb +2 -29
- data/lib/facebook_ads/ad_objects/ad_account_delivery_estimate.rb +1 -0
- data/lib/facebook_ads/ad_objects/ad_account_targeting_unified.rb +1 -0
- data/lib/facebook_ads/ad_objects/ad_activity.rb +2 -0
- data/lib/facebook_ads/ad_objects/ad_campaign_activity.rb +2 -0
- data/lib/facebook_ads/ad_objects/ad_campaign_delivery_estimate.rb +1 -0
- data/lib/facebook_ads/ad_objects/ad_creative_photo_data_media_elements.rb +40 -0
- data/lib/facebook_ads/ad_objects/ad_set.rb +1 -0
- data/lib/facebook_ads/ad_objects/ad_video.rb +0 -11
- data/lib/facebook_ads/ad_objects/ads_insights.rb +0 -107
- data/lib/facebook_ads/ad_objects/ads_interest.rb +41 -0
- data/lib/facebook_ads/ad_objects/ads_pixel.rb +0 -3
- data/lib/facebook_ads/ad_objects/app_request.rb +2 -2
- data/lib/facebook_ads/ad_objects/application.rb +2 -10
- data/lib/facebook_ads/ad_objects/business.rb +13 -0
- data/lib/facebook_ads/ad_objects/business_asset_group.rb +1 -0
- data/lib/facebook_ads/ad_objects/business_creative_folder.rb +1 -0
- data/lib/facebook_ads/ad_objects/business_creative_folder_sharing_agreement.rb +46 -0
- data/lib/facebook_ads/ad_objects/business_image.rb +15 -0
- data/lib/facebook_ads/ad_objects/campaign.rb +1 -0
- data/lib/facebook_ads/ad_objects/catalog_item_appeal_status.rb +40 -0
- data/lib/facebook_ads/ad_objects/creative_asset_tag.rb +37 -0
- data/lib/facebook_ads/ad_objects/custom_audience.rb +1 -0
- data/lib/facebook_ads/ad_objects/group.rb +0 -4
- data/lib/facebook_ads/ad_objects/page.rb +9 -0
- data/lib/facebook_ads/ad_objects/page_call_to_action.rb +3 -0
- data/lib/facebook_ads/ad_objects/product_catalog.rb +1 -15
- data/lib/facebook_ads/ad_objects/product_feed_upload.rb +1 -0
- data/lib/facebook_ads/ad_objects/user.rb +0 -36
- data/lib/facebook_ads/ad_objects/video_game_show.rb +0 -9
- data/lib/facebook_ads/version.rb +1 -1
- metadata +9 -6
- data/bin/facebookbusiness +0 -14
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f4beaad13451621b737cf2b5112bfe01857975932742d8d2e40a2e5d7ddfea18
|
|
4
|
+
data.tar.gz: aa56af54eba0256adbf505e8dd076d512412e90be281332ebd1b11290422a19e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d12ed6487d3d055da95e8801502d34b3f3d9886ba31d66cecd4e91817b3ec271aef6b51a140d40ce06e8b173e53e058e415f4021a471d3bd2e7e99af43511544
|
|
7
|
+
data.tar.gz: 629e1bbbef3b338b5e84f8ca0a00b2d28a865b1556b220c4db1966c7464d0a511a46616b0d9a5fa8e791f60c102ba95d7cabb94dd86532e36040b171466c7e8d
|
|
@@ -118,6 +118,7 @@ module FacebookAds
|
|
|
118
118
|
"FLIGHT",
|
|
119
119
|
"HOME_LISTING",
|
|
120
120
|
"HOTEL",
|
|
121
|
+
"LOCATION_BASED_ITEM",
|
|
121
122
|
"MEDIA_TITLE",
|
|
122
123
|
"OFFLINE_PRODUCT",
|
|
123
124
|
"PRODUCT",
|
|
@@ -348,35 +349,6 @@ module FacebookAds
|
|
|
348
349
|
|
|
349
350
|
has_edge :adreportschedules do |edge|
|
|
350
351
|
edge.get
|
|
351
|
-
edge.post do |api|
|
|
352
|
-
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 }} }
|
|
353
|
-
api.has_param :breakdowns, { list: 'string' }
|
|
354
|
-
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 }}
|
|
355
|
-
api.has_param :creation_source, { enum: %w{adsExcelAddin adsManagerReporting newAdsManager }}
|
|
356
|
-
api.has_param :custom_column_set_id, 'string'
|
|
357
|
-
api.has_param :data_columns, { list: 'string' }
|
|
358
|
-
api.has_param :date_interval, 'object'
|
|
359
|
-
api.has_param :date_preset, { enum: %w{last_14d last_28d last_30d last_3d last_7d last_90d last_month last_quarter last_week_mon_sun last_week_sun_sat last_year lifetime this_month this_quarter this_week_mon_today this_week_sun_today this_year today yesterday }}
|
|
360
|
-
api.has_param :emails, { list: 'string' }
|
|
361
|
-
api.has_param :export_columns, 'object'
|
|
362
|
-
api.has_param :filters, { list: 'object' }
|
|
363
|
-
api.has_param :format_version, 'int'
|
|
364
|
-
api.has_param :insights_section, 'object'
|
|
365
|
-
api.has_param :level, { enum: %w{account ad adgroup campaign campaign_group politicalad }}
|
|
366
|
-
api.has_param :name, 'string'
|
|
367
|
-
api.has_param :normalized_filter, { list: 'object' }
|
|
368
|
-
api.has_param :schedule_frequency, { enum: %w{daily monthly weekly }}
|
|
369
|
-
api.has_param :sort, { list: 'object' }
|
|
370
|
-
api.has_param :sort_by, 'string'
|
|
371
|
-
api.has_param :sort_dir, 'string'
|
|
372
|
-
api.has_param :start_date, 'object'
|
|
373
|
-
api.has_param :status, { enum: %w{Active Deleted Paused }}
|
|
374
|
-
api.has_param :subscribers, { list: 'int' }
|
|
375
|
-
api.has_param :time_increment, 'string'
|
|
376
|
-
api.has_param :user_attribution_windows, { list: 'string' }
|
|
377
|
-
api.has_param :user_columns, { list: 'string' }
|
|
378
|
-
api.has_param :user_filter, { list: 'object' }
|
|
379
|
-
end
|
|
380
352
|
end
|
|
381
353
|
|
|
382
354
|
has_edge :adrules_history do |edge|
|
|
@@ -755,6 +727,7 @@ module FacebookAds
|
|
|
755
727
|
has_edge :content_delivery_report do |edge|
|
|
756
728
|
edge.get 'ContentDeliveryReport' do |api|
|
|
757
729
|
api.has_param :end_date, 'datetime'
|
|
730
|
+
api.has_param :page_id, 'int'
|
|
758
731
|
api.has_param :platform, { enum: -> { ContentDeliveryReport::PLATFORM }}
|
|
759
732
|
api.has_param :position, { enum: -> { ContentDeliveryReport::POSITION }}
|
|
760
733
|
api.has_param :start_date, 'datetime'
|
|
@@ -82,9 +82,11 @@ module FacebookAds
|
|
|
82
82
|
"update_ad_set_bidding",
|
|
83
83
|
"update_ad_set_budget",
|
|
84
84
|
"update_ad_set_duration",
|
|
85
|
+
"update_ad_set_min_spend_target",
|
|
85
86
|
"update_ad_set_name",
|
|
86
87
|
"update_ad_set_optimization_goal",
|
|
87
88
|
"update_ad_set_run_status",
|
|
89
|
+
"update_ad_set_spend_cap",
|
|
88
90
|
"update_ad_set_target_spec",
|
|
89
91
|
"update_ad_targets_spec",
|
|
90
92
|
"update_adgroup_stop_delivery",
|
|
@@ -87,6 +87,7 @@ module FacebookAds
|
|
|
87
87
|
"THRUPLAY",
|
|
88
88
|
"TWO_SECOND_CONTINUOUS_VIDEO_VIEWS",
|
|
89
89
|
"VALUE",
|
|
90
|
+
"VISIT_INSTAGRAM_PROFILE",
|
|
90
91
|
]
|
|
91
92
|
|
|
92
93
|
OPTIMIZATION_GOAL_OLD = [
|
|
@@ -114,6 +115,7 @@ module FacebookAds
|
|
|
114
115
|
"THRUPLAY",
|
|
115
116
|
"TWO_SECOND_CONTINUOUS_VIDEO_VIEWS",
|
|
116
117
|
"VALUE",
|
|
118
|
+
"VISIT_INSTAGRAM_PROFILE",
|
|
117
119
|
]
|
|
118
120
|
|
|
119
121
|
|
|
@@ -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 AdCreativePhotoDataMediaElements < AdObject
|
|
29
|
+
|
|
30
|
+
field :element_id, 'string'
|
|
31
|
+
field :element_type, 'string'
|
|
32
|
+
field :x, 'double'
|
|
33
|
+
field :y, 'double'
|
|
34
|
+
has_no_id
|
|
35
|
+
has_no_get
|
|
36
|
+
has_no_post
|
|
37
|
+
has_no_delete
|
|
38
|
+
|
|
39
|
+
end
|
|
40
|
+
end
|
|
@@ -225,13 +225,6 @@ module FacebookAds
|
|
|
225
225
|
"year",
|
|
226
226
|
]
|
|
227
227
|
|
|
228
|
-
VIDEO_POLL_WWW_PLACEMENT = [
|
|
229
|
-
"BOTTOM_LEFT",
|
|
230
|
-
"BOTTOM_RIGHT",
|
|
231
|
-
"TOP_LEFT",
|
|
232
|
-
"TOP_RIGHT",
|
|
233
|
-
]
|
|
234
|
-
|
|
235
228
|
|
|
236
229
|
field :ad_breaks, { list: 'int' }
|
|
237
230
|
field :backdated_time, 'datetime'
|
|
@@ -391,10 +384,6 @@ module FacebookAds
|
|
|
391
384
|
|
|
392
385
|
has_edge :poll_settings do |edge|
|
|
393
386
|
edge.get
|
|
394
|
-
edge.post 'AdVideo' do |api|
|
|
395
|
-
api.has_param :enable_was_live_voting, 'bool'
|
|
396
|
-
api.has_param :video_poll_www_placement, { enum: -> { AdVideo::VIDEO_POLL_WWW_PLACEMENT }}
|
|
397
|
-
end
|
|
398
387
|
end
|
|
399
388
|
|
|
400
389
|
has_edge :polls do |edge|
|
|
@@ -127,14 +127,10 @@ module FacebookAds
|
|
|
127
127
|
field :account_name, 'string'
|
|
128
128
|
field :action_values, { list: 'AdsActionStats' }
|
|
129
129
|
field :actions, { list: 'AdsActionStats' }
|
|
130
|
-
field :actions_per_impression, 'string'
|
|
131
|
-
field :actions_results, 'AdsActionStats'
|
|
132
|
-
field :activity_recency, 'string'
|
|
133
130
|
field :ad_bid_type, 'string'
|
|
134
131
|
field :ad_bid_value, 'string'
|
|
135
132
|
field :ad_click_actions, { list: 'AdsActionStats' }
|
|
136
133
|
field :ad_delivery, 'string'
|
|
137
|
-
field :ad_format_asset, 'string'
|
|
138
134
|
field :ad_id, 'string'
|
|
139
135
|
field :ad_impression_actions, { list: 'AdsActionStats' }
|
|
140
136
|
field :ad_name, 'string'
|
|
@@ -147,103 +143,45 @@ module FacebookAds
|
|
|
147
143
|
field :adset_id, 'string'
|
|
148
144
|
field :adset_name, 'string'
|
|
149
145
|
field :adset_start, 'string'
|
|
150
|
-
field :age, 'string'
|
|
151
146
|
field :age_targeting, 'string'
|
|
152
|
-
field :amount_in_catalog_currency, { list: 'AdsActionStats' }
|
|
153
|
-
field :app_store_clicks, 'string'
|
|
154
|
-
field :attention_events_per_impression, 'string'
|
|
155
|
-
field :attention_events_unq_per_reach, 'string'
|
|
156
147
|
field :auction_bid, 'string'
|
|
157
148
|
field :auction_competitiveness, 'string'
|
|
158
149
|
field :auction_max_competitor_bid, 'string'
|
|
159
|
-
field :body_asset, 'object'
|
|
160
150
|
field :buying_type, 'string'
|
|
161
|
-
field :call_to_action_asset, 'object'
|
|
162
|
-
field :call_to_action_clicks, 'string'
|
|
163
|
-
field :campaign_delivery, 'string'
|
|
164
|
-
field :campaign_end, 'string'
|
|
165
151
|
field :campaign_id, 'string'
|
|
166
152
|
field :campaign_name, 'string'
|
|
167
|
-
field :campaign_start, 'string'
|
|
168
|
-
field :cancel_subscription_actions, { list: 'AdsActionStats' }
|
|
169
153
|
field :canvas_avg_view_percent, 'string'
|
|
170
154
|
field :canvas_avg_view_time, 'string'
|
|
171
|
-
field :card_views, 'string'
|
|
172
|
-
field :catalog_segment_actions, { list: 'AdsActionStats' }
|
|
173
|
-
field :catalog_segment_value_in_catalog_currency, { list: 'AdsActionStats' }
|
|
174
|
-
field :catalog_segment_value_mobile_purchase_roas, { list: 'AdsActionStats' }
|
|
175
|
-
field :catalog_segment_value_website_purchase_roas, { list: 'AdsActionStats' }
|
|
176
155
|
field :clicks, 'string'
|
|
177
|
-
field :conditional_time_spent_ms_over_10s_actions, { list: 'AdsActionStats' }
|
|
178
|
-
field :conditional_time_spent_ms_over_15s_actions, { list: 'AdsActionStats' }
|
|
179
|
-
field :conditional_time_spent_ms_over_2s_actions, { list: 'AdsActionStats' }
|
|
180
|
-
field :conditional_time_spent_ms_over_3s_actions, { list: 'AdsActionStats' }
|
|
181
|
-
field :conditional_time_spent_ms_over_6s_actions, { list: 'AdsActionStats' }
|
|
182
|
-
field :contact_actions, { list: 'AdsActionStats' }
|
|
183
|
-
field :contact_value, { list: 'AdsActionStats' }
|
|
184
156
|
field :conversion_rate_ranking, 'string'
|
|
185
157
|
field :conversion_values, { list: 'AdsActionStats' }
|
|
186
158
|
field :conversions, { list: 'AdsActionStats' }
|
|
187
159
|
field :cost_per_15_sec_video_view, { list: 'AdsActionStats' }
|
|
188
160
|
field :cost_per_2_sec_continuous_video_view, { list: 'AdsActionStats' }
|
|
189
|
-
field :cost_per_action_result, 'AdsActionStats'
|
|
190
161
|
field :cost_per_action_type, { list: 'AdsActionStats' }
|
|
191
162
|
field :cost_per_ad_click, { list: 'AdsActionStats' }
|
|
192
|
-
field :cost_per_completed_video_view, { list: 'AdsActionStats' }
|
|
193
|
-
field :cost_per_contact, { list: 'AdsActionStats' }
|
|
194
163
|
field :cost_per_conversion, { list: 'AdsActionStats' }
|
|
195
|
-
field :cost_per_customize_product, { list: 'AdsActionStats' }
|
|
196
164
|
field :cost_per_dda_countby_convs, 'string'
|
|
197
|
-
field :cost_per_donate, { list: 'AdsActionStats' }
|
|
198
|
-
field :cost_per_dwell, 'string'
|
|
199
|
-
field :cost_per_dwell_3_sec, 'string'
|
|
200
|
-
field :cost_per_dwell_5_sec, 'string'
|
|
201
|
-
field :cost_per_dwell_7_sec, 'string'
|
|
202
165
|
field :cost_per_estimated_ad_recallers, 'string'
|
|
203
|
-
field :cost_per_find_location, { list: 'AdsActionStats' }
|
|
204
166
|
field :cost_per_inline_link_click, 'string'
|
|
205
167
|
field :cost_per_inline_post_engagement, 'string'
|
|
206
168
|
field :cost_per_one_thousand_ad_impression, { list: 'AdsActionStats' }
|
|
207
169
|
field :cost_per_outbound_click, { list: 'AdsActionStats' }
|
|
208
|
-
field :cost_per_schedule, { list: 'AdsActionStats' }
|
|
209
|
-
field :cost_per_start_trial, { list: 'AdsActionStats' }
|
|
210
170
|
field :cost_per_store_visit_action, { list: 'AdsActionStats' }
|
|
211
|
-
field :cost_per_submit_application, { list: 'AdsActionStats' }
|
|
212
|
-
field :cost_per_subscribe, { list: 'AdsActionStats' }
|
|
213
171
|
field :cost_per_thruplay, { list: 'AdsActionStats' }
|
|
214
|
-
field :cost_per_total_action, 'string'
|
|
215
172
|
field :cost_per_unique_action_type, { list: 'AdsActionStats' }
|
|
216
173
|
field :cost_per_unique_click, 'string'
|
|
217
174
|
field :cost_per_unique_conversion, { list: 'AdsActionStats' }
|
|
218
175
|
field :cost_per_unique_inline_link_click, 'string'
|
|
219
176
|
field :cost_per_unique_outbound_click, { list: 'AdsActionStats' }
|
|
220
|
-
field :country, 'string'
|
|
221
177
|
field :cpc, 'string'
|
|
222
178
|
field :cpm, 'string'
|
|
223
179
|
field :cpp, 'string'
|
|
224
180
|
field :created_time, 'string'
|
|
225
|
-
field :creative_fingerprint, 'string'
|
|
226
181
|
field :ctr, 'string'
|
|
227
|
-
field :customize_product_actions, { list: 'AdsActionStats' }
|
|
228
|
-
field :customize_product_value, { list: 'AdsActionStats' }
|
|
229
182
|
field :date_start, 'string'
|
|
230
183
|
field :date_stop, 'string'
|
|
231
184
|
field :dda_countby_convs, 'string'
|
|
232
|
-
field :deduping_1st_source_ratio, 'string'
|
|
233
|
-
field :deduping_2nd_source_ratio, 'string'
|
|
234
|
-
field :deduping_3rd_source_ratio, 'string'
|
|
235
|
-
field :deduping_ratio, 'string'
|
|
236
|
-
field :deeplink_clicks, 'string'
|
|
237
|
-
field :description_asset, 'object'
|
|
238
|
-
field :device_platform, 'string'
|
|
239
|
-
field :dma, 'string'
|
|
240
|
-
field :donate_actions, { list: 'AdsActionStats' }
|
|
241
|
-
field :donate_value, { list: 'AdsActionStats' }
|
|
242
|
-
field :dwell_3_sec, 'string'
|
|
243
|
-
field :dwell_5_sec, 'string'
|
|
244
|
-
field :dwell_7_sec, 'string'
|
|
245
|
-
field :dwell_rate, 'string'
|
|
246
|
-
field :earned_impression, 'string'
|
|
247
185
|
field :engagement_rate_ranking, 'string'
|
|
248
186
|
field :estimated_ad_recall_rate, 'string'
|
|
249
187
|
field :estimated_ad_recall_rate_lower_bound, 'string'
|
|
@@ -251,78 +189,37 @@ module FacebookAds
|
|
|
251
189
|
field :estimated_ad_recallers, 'string'
|
|
252
190
|
field :estimated_ad_recallers_lower_bound, 'string'
|
|
253
191
|
field :estimated_ad_recallers_upper_bound, 'string'
|
|
254
|
-
field :find_location_actions, { list: 'AdsActionStats' }
|
|
255
|
-
field :find_location_value, { list: 'AdsActionStats' }
|
|
256
192
|
field :frequency, 'string'
|
|
257
|
-
field :frequency_value, 'string'
|
|
258
193
|
field :full_view_impressions, 'string'
|
|
259
194
|
field :full_view_reach, 'string'
|
|
260
|
-
field :gender, 'string'
|
|
261
195
|
field :gender_targeting, 'string'
|
|
262
|
-
field :hourly_stats_aggregated_by_advertiser_time_zone, 'string'
|
|
263
|
-
field :hourly_stats_aggregated_by_audience_time_zone, 'string'
|
|
264
|
-
field :image_asset, 'object'
|
|
265
|
-
field :impression_device, 'string'
|
|
266
196
|
field :impressions, 'string'
|
|
267
|
-
field :impressions_auto_refresh, 'string'
|
|
268
|
-
field :impressions_gross, 'string'
|
|
269
197
|
field :inline_link_click_ctr, 'string'
|
|
270
198
|
field :inline_link_clicks, 'string'
|
|
271
199
|
field :inline_post_engagement, 'string'
|
|
272
200
|
field :instant_experience_clicks_to_open, 'string'
|
|
273
201
|
field :instant_experience_clicks_to_start, 'string'
|
|
274
202
|
field :instant_experience_outbound_clicks, 'string'
|
|
275
|
-
field :interactive_component_tap, { list: 'AdsActionStats' }
|
|
276
203
|
field :labels, 'string'
|
|
277
|
-
field :link_url_asset, 'object'
|
|
278
204
|
field :location, 'string'
|
|
279
|
-
field :media_asset, 'object'
|
|
280
205
|
field :mobile_app_purchase_roas, { list: 'AdsActionStats' }
|
|
281
|
-
field :newsfeed_avg_position, 'string'
|
|
282
|
-
field :newsfeed_clicks, 'string'
|
|
283
|
-
field :newsfeed_impressions, 'string'
|
|
284
206
|
field :objective, 'string'
|
|
285
|
-
field :optimization_goal, 'string'
|
|
286
207
|
field :outbound_clicks, { list: 'AdsActionStats' }
|
|
287
208
|
field :outbound_clicks_ctr, { list: 'AdsActionStats' }
|
|
288
|
-
field :performance_indicator, 'string'
|
|
289
|
-
field :place_page_id, 'string'
|
|
290
209
|
field :place_page_name, 'string'
|
|
291
|
-
field :placement, 'string'
|
|
292
|
-
field :platform_position, 'string'
|
|
293
|
-
field :product_id, 'string'
|
|
294
|
-
field :publisher_platform, 'string'
|
|
295
210
|
field :purchase_roas, { list: 'AdsActionStats' }
|
|
296
211
|
field :quality_ranking, 'string'
|
|
297
212
|
field :quality_score_ectr, 'string'
|
|
298
213
|
field :quality_score_ecvr, 'string'
|
|
299
214
|
field :quality_score_organic, 'string'
|
|
300
215
|
field :reach, 'string'
|
|
301
|
-
field :recurring_subscription_payment_actions, { list: 'AdsActionStats' }
|
|
302
|
-
field :region, 'string'
|
|
303
|
-
field :rule_asset, 'object'
|
|
304
|
-
field :schedule_actions, { list: 'AdsActionStats' }
|
|
305
|
-
field :schedule_value, { list: 'AdsActionStats' }
|
|
306
216
|
field :social_spend, 'string'
|
|
307
217
|
field :spend, 'string'
|
|
308
|
-
field :start_trial_actions, { list: 'AdsActionStats' }
|
|
309
|
-
field :start_trial_value, { list: 'AdsActionStats' }
|
|
310
218
|
field :store_visit_actions, { list: 'AdsActionStats' }
|
|
311
|
-
field :submit_application_actions, { list: 'AdsActionStats' }
|
|
312
|
-
field :submit_application_value, { list: 'AdsActionStats' }
|
|
313
|
-
field :subscribe_actions, { list: 'AdsActionStats' }
|
|
314
|
-
field :subscribe_value, { list: 'AdsActionStats' }
|
|
315
|
-
field :thumb_stops, 'string'
|
|
316
|
-
field :title_asset, 'object'
|
|
317
|
-
field :today_spend, 'string'
|
|
318
|
-
field :total_action_value, 'string'
|
|
319
|
-
field :total_actions, 'string'
|
|
320
|
-
field :total_unique_actions, 'string'
|
|
321
219
|
field :unique_actions, { list: 'AdsActionStats' }
|
|
322
220
|
field :unique_clicks, 'string'
|
|
323
221
|
field :unique_conversions, { list: 'AdsActionStats' }
|
|
324
222
|
field :unique_ctr, 'string'
|
|
325
|
-
field :unique_impressions, 'string'
|
|
326
223
|
field :unique_inline_link_click_ctr, 'string'
|
|
327
224
|
field :unique_inline_link_clicks, 'string'
|
|
328
225
|
field :unique_link_clicks_ctr, 'string'
|
|
@@ -333,10 +230,7 @@ module FacebookAds
|
|
|
333
230
|
field :updated_time, 'string'
|
|
334
231
|
field :video_15_sec_watched_actions, { list: 'AdsActionStats' }
|
|
335
232
|
field :video_30_sec_watched_actions, { list: 'AdsActionStats' }
|
|
336
|
-
field :video_asset, 'object'
|
|
337
233
|
field :video_avg_time_watched_actions, { list: 'AdsActionStats' }
|
|
338
|
-
field :video_complete_watched_actions, { list: 'AdsActionStats' }
|
|
339
|
-
field :video_completed_view_or_15s_passed_actions, { list: 'AdsActionStats' }
|
|
340
234
|
field :video_continuous_2_sec_watched_actions, { list: 'AdsActionStats' }
|
|
341
235
|
field :video_p100_watched_actions, { list: 'AdsActionStats' }
|
|
342
236
|
field :video_p25_watched_actions, { list: 'AdsActionStats' }
|
|
@@ -350,7 +244,6 @@ module FacebookAds
|
|
|
350
244
|
field :video_play_retention_graph_actions, { list: 'object' }
|
|
351
245
|
field :video_thruplay_watched_actions, { list: 'AdsActionStats' }
|
|
352
246
|
field :video_time_watched_actions, { list: 'AdsActionStats' }
|
|
353
|
-
field :website_clicks, 'string'
|
|
354
247
|
field :website_ctr, { list: 'AdsActionStats' }
|
|
355
248
|
field :website_purchase_roas, { list: 'AdsActionStats' }
|
|
356
249
|
field :wish_bid, 'string'
|
|
@@ -0,0 +1,41 @@
|
|
|
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 AdsInterest < AdObject
|
|
29
|
+
|
|
30
|
+
field :audience_size, 'int'
|
|
31
|
+
field :description, 'string'
|
|
32
|
+
field :disambiguation_category, 'string'
|
|
33
|
+
field :id, 'string'
|
|
34
|
+
field :name, 'string'
|
|
35
|
+
field :path, { list: 'string' }
|
|
36
|
+
field :topic, 'string'
|
|
37
|
+
has_no_post
|
|
38
|
+
has_no_delete
|
|
39
|
+
|
|
40
|
+
end
|
|
41
|
+
end
|
|
@@ -31,11 +31,11 @@ module FacebookAds
|
|
|
31
31
|
field :application, 'Application'
|
|
32
32
|
field :created_time, 'datetime'
|
|
33
33
|
field :data, 'string'
|
|
34
|
-
field :from, '
|
|
34
|
+
field :from, 'object'
|
|
35
35
|
field :id, 'string'
|
|
36
36
|
field :message, 'string'
|
|
37
37
|
field :object, 'object'
|
|
38
|
-
field :to, '
|
|
38
|
+
field :to, 'object'
|
|
39
39
|
has_no_post
|
|
40
40
|
|
|
41
41
|
end
|
|
@@ -236,6 +236,7 @@ module FacebookAds
|
|
|
236
236
|
api.has_param :include_video_data, 'bool'
|
|
237
237
|
api.has_param :install_referrer, 'string'
|
|
238
238
|
api.has_param :installer_package, 'string'
|
|
239
|
+
api.has_param :limited_data_use, 'bool'
|
|
239
240
|
api.has_param :migration_bundle, 'string'
|
|
240
241
|
api.has_param :page_id, 'int'
|
|
241
242
|
api.has_param :page_scoped_user_id, 'int'
|
|
@@ -394,16 +395,6 @@ module FacebookAds
|
|
|
394
395
|
end
|
|
395
396
|
end
|
|
396
397
|
|
|
397
|
-
has_edge :full_app_indexing_infos do |edge|
|
|
398
|
-
edge.get do |api|
|
|
399
|
-
api.has_param :app_version, 'string'
|
|
400
|
-
end
|
|
401
|
-
edge.post do |api|
|
|
402
|
-
api.has_param :app_version, 'string'
|
|
403
|
-
api.has_param :full_app_indexing_info_classes, { list: 'hash' }
|
|
404
|
-
end
|
|
405
|
-
end
|
|
406
|
-
|
|
407
398
|
has_edge :insights_push_schedule do |edge|
|
|
408
399
|
edge.get
|
|
409
400
|
edge.post do |api|
|
|
@@ -600,6 +591,7 @@ module FacebookAds
|
|
|
600
591
|
has_edge :user_properties do |edge|
|
|
601
592
|
edge.post do |api|
|
|
602
593
|
api.has_param :data, { list: 'object' }
|
|
594
|
+
api.has_param :limited_data_use, 'bool'
|
|
603
595
|
end
|
|
604
596
|
end
|
|
605
597
|
|
|
@@ -76,6 +76,7 @@ module FacebookAds
|
|
|
76
76
|
PAGE_PERMITTED_TASKS = [
|
|
77
77
|
"ADVERTISE",
|
|
78
78
|
"ANALYZE",
|
|
79
|
+
"CASHIER_ROLE",
|
|
79
80
|
"CREATE_CONTENT",
|
|
80
81
|
"MANAGE",
|
|
81
82
|
"MANAGE_JOBS",
|
|
@@ -216,6 +217,13 @@ module FacebookAds
|
|
|
216
217
|
edge.get 'AdPlacement'
|
|
217
218
|
end
|
|
218
219
|
|
|
220
|
+
has_edge :attempted_sharing_agreements do |edge|
|
|
221
|
+
edge.get 'BusinessCreativeFolderSharingAgreement' do |api|
|
|
222
|
+
api.has_param :request_status, { enum: -> { BusinessCreativeFolderSharingAgreement::REQUEST_STATUS }}
|
|
223
|
+
api.has_param :requesting_business_id, 'string'
|
|
224
|
+
end
|
|
225
|
+
end
|
|
226
|
+
|
|
219
227
|
has_edge :block_list_drafts do |edge|
|
|
220
228
|
edge.post 'Business' do |api|
|
|
221
229
|
api.has_param :publisher_urls_file, 'file'
|
|
@@ -300,6 +308,7 @@ module FacebookAds
|
|
|
300
308
|
has_edge :content_delivery_report do |edge|
|
|
301
309
|
edge.get 'ContentDeliveryReport' do |api|
|
|
302
310
|
api.has_param :end_date, 'datetime'
|
|
311
|
+
api.has_param :page_id, 'int'
|
|
303
312
|
api.has_param :platform, { enum: -> { ContentDeliveryReport::PLATFORM }}
|
|
304
313
|
api.has_param :position, { enum: -> { ContentDeliveryReport::POSITION }}
|
|
305
314
|
api.has_param :start_date, 'datetime'
|
|
@@ -307,6 +316,10 @@ module FacebookAds
|
|
|
307
316
|
end
|
|
308
317
|
end
|
|
309
318
|
|
|
319
|
+
has_edge :creative_asset_tags do |edge|
|
|
320
|
+
edge.get 'CreativeAssetTag'
|
|
321
|
+
end
|
|
322
|
+
|
|
310
323
|
has_edge :creative_folders do |edge|
|
|
311
324
|
edge.get 'BusinessCreativeFolder'
|
|
312
325
|
edge.post 'BusinessCreativeFolder' do |api|
|
|
@@ -48,6 +48,7 @@ module FacebookAds
|
|
|
48
48
|
field :creative_insight_permissions, 'hash'
|
|
49
49
|
field :description, 'string'
|
|
50
50
|
field :id, 'string'
|
|
51
|
+
field :media_library_url, 'string'
|
|
51
52
|
field :name, 'string'
|
|
52
53
|
field :parent_folder, 'BusinessCreativeFolder'
|
|
53
54
|
field :parent_folder_id, 'string'
|
|
@@ -0,0 +1,46 @@
|
|
|
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 BusinessCreativeFolderSharingAgreement < AdObject
|
|
29
|
+
REQUEST_STATUS = [
|
|
30
|
+
"APPROVE",
|
|
31
|
+
"DECLINE",
|
|
32
|
+
"EXPIRED",
|
|
33
|
+
"IN_PROGRESS",
|
|
34
|
+
"PENDING",
|
|
35
|
+
]
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
field :folder_id, 'string'
|
|
39
|
+
field :id, 'string'
|
|
40
|
+
field :requesting_business, 'Business'
|
|
41
|
+
field :status, 'string'
|
|
42
|
+
has_no_post
|
|
43
|
+
has_no_delete
|
|
44
|
+
|
|
45
|
+
end
|
|
46
|
+
end
|
|
@@ -54,6 +54,7 @@ module FacebookAds
|
|
|
54
54
|
field :hash, 'string'
|
|
55
55
|
field :height, 'int'
|
|
56
56
|
field :id, 'string'
|
|
57
|
+
field :media_library_url, 'string'
|
|
57
58
|
field :name, 'string'
|
|
58
59
|
field :url, 'string'
|
|
59
60
|
field :url_128, 'string'
|
|
@@ -68,6 +69,20 @@ module FacebookAds
|
|
|
68
69
|
edge.get
|
|
69
70
|
end
|
|
70
71
|
|
|
72
|
+
has_edge :creative_asset_tags do |edge|
|
|
73
|
+
edge.delete do |api|
|
|
74
|
+
api.has_param :business_id, 'string'
|
|
75
|
+
api.has_param :tag_name, 'string'
|
|
76
|
+
end
|
|
77
|
+
edge.get 'CreativeAssetTag' do |api|
|
|
78
|
+
api.has_param :business_id, 'string'
|
|
79
|
+
end
|
|
80
|
+
edge.post 'BusinessImage' do |api|
|
|
81
|
+
api.has_param :business_id, 'string'
|
|
82
|
+
api.has_param :tag_name, 'string'
|
|
83
|
+
end
|
|
84
|
+
end
|
|
85
|
+
|
|
71
86
|
has_edge :insights do |edge|
|
|
72
87
|
edge.get do |api|
|
|
73
88
|
api.has_param :breakdowns, { list: { enum: %w{ad_id age country device_platform gender objective optimization_goal platform_position publisher_platform }} }
|
|
@@ -197,6 +197,7 @@ module FacebookAds
|
|
|
197
197
|
has_edge :content_delivery_report do |edge|
|
|
198
198
|
edge.get 'ContentDeliveryReport' do |api|
|
|
199
199
|
api.has_param :end_date, 'datetime'
|
|
200
|
+
api.has_param :page_id, 'int'
|
|
200
201
|
api.has_param :platform, { enum: -> { ContentDeliveryReport::PLATFORM }}
|
|
201
202
|
api.has_param :position, { enum: -> { ContentDeliveryReport::POSITION }}
|
|
202
203
|
api.has_param :start_date, 'datetime'
|
|
@@ -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 CatalogItemAppealStatus < AdObject
|
|
29
|
+
|
|
30
|
+
field :handle, 'string'
|
|
31
|
+
field :item_id, 'int'
|
|
32
|
+
field :status, 'string'
|
|
33
|
+
field :use_cases, 'hash'
|
|
34
|
+
has_no_id
|
|
35
|
+
has_no_get
|
|
36
|
+
has_no_post
|
|
37
|
+
has_no_delete
|
|
38
|
+
|
|
39
|
+
end
|
|
40
|
+
end
|
|
@@ -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 CreativeAssetTag < AdObject
|
|
29
|
+
|
|
30
|
+
field :name, 'string'
|
|
31
|
+
has_no_id
|
|
32
|
+
has_no_get
|
|
33
|
+
has_no_post
|
|
34
|
+
has_no_delete
|
|
35
|
+
|
|
36
|
+
end
|
|
37
|
+
end
|
|
@@ -141,16 +141,12 @@ module FacebookAds
|
|
|
141
141
|
]
|
|
142
142
|
|
|
143
143
|
SUGGESTION_CATEGORY = [
|
|
144
|
-
"CLOSE_FRIENDS_GENERIC",
|
|
145
144
|
"EVENT",
|
|
146
|
-
"FAMILY",
|
|
147
|
-
"LIFE_EVENT",
|
|
148
145
|
"MESSENGER",
|
|
149
146
|
"WORK",
|
|
150
147
|
"WORKPLACE",
|
|
151
148
|
"WORKPLACE_1_1",
|
|
152
149
|
"WORKPLACE_MANAGER",
|
|
153
|
-
"WORK_GENERIC",
|
|
154
150
|
]
|
|
155
151
|
|
|
156
152
|
|
|
@@ -92,9 +92,16 @@ module FacebookAds
|
|
|
92
92
|
"Vietnamese",
|
|
93
93
|
]
|
|
94
94
|
|
|
95
|
+
TEMPORARY_STATUS = [
|
|
96
|
+
"DIFFERENTLY_OPEN",
|
|
97
|
+
"OPERATING_AS_USUAL",
|
|
98
|
+
"TEMPORARILY_CLOSED",
|
|
99
|
+
]
|
|
100
|
+
|
|
95
101
|
PERMITTED_TASKS = [
|
|
96
102
|
"ADVERTISE",
|
|
97
103
|
"ANALYZE",
|
|
104
|
+
"CASHIER_ROLE",
|
|
98
105
|
"CREATE_CONTENT",
|
|
99
106
|
"MANAGE",
|
|
100
107
|
"MANAGE_JOBS",
|
|
@@ -119,6 +126,7 @@ module FacebookAds
|
|
|
119
126
|
TASKS = [
|
|
120
127
|
"ADVERTISE",
|
|
121
128
|
"ANALYZE",
|
|
129
|
+
"CASHIER_ROLE",
|
|
122
130
|
"CREATE_CONTENT",
|
|
123
131
|
"MANAGE",
|
|
124
132
|
"MANAGE_JOBS",
|
|
@@ -419,6 +427,7 @@ module FacebookAds
|
|
|
419
427
|
field :supports_donate_button_in_live_video, 'bool'
|
|
420
428
|
field :supports_instant_articles, 'bool'
|
|
421
429
|
field :talking_about_count, 'int'
|
|
430
|
+
field :temporary_status, 'string'
|
|
422
431
|
field :unread_message_count, 'int'
|
|
423
432
|
field :unread_notif_count, 'int'
|
|
424
433
|
field :unseen_message_count, 'int'
|
|
@@ -28,6 +28,7 @@ module FacebookAds
|
|
|
28
28
|
class PageCallToAction < AdObject
|
|
29
29
|
ANDROID_DESTINATION_TYPE = [
|
|
30
30
|
"APP_DEEPLINK",
|
|
31
|
+
"BECOME_A_VOLUNTEER",
|
|
31
32
|
"EMAIL",
|
|
32
33
|
"FACEBOOK_APP",
|
|
33
34
|
"MESSENGER",
|
|
@@ -49,6 +50,7 @@ module FacebookAds
|
|
|
49
50
|
]
|
|
50
51
|
|
|
51
52
|
TYPE = [
|
|
53
|
+
"BECOME_A_VOLUNTEER",
|
|
52
54
|
"BOOK_APPOINTMENT",
|
|
53
55
|
"BOOK_NOW",
|
|
54
56
|
"BUY_TICKETS",
|
|
@@ -79,6 +81,7 @@ module FacebookAds
|
|
|
79
81
|
]
|
|
80
82
|
|
|
81
83
|
WEB_DESTINATION_TYPE = [
|
|
84
|
+
"BECOME_A_VOLUNTEER",
|
|
82
85
|
"BECOME_SUPPORTER",
|
|
83
86
|
"EMAIL",
|
|
84
87
|
"MESSENGER",
|
|
@@ -67,6 +67,7 @@ module FacebookAds
|
|
|
67
67
|
field :fallback_image_url, { list: 'string' }
|
|
68
68
|
field :feed_count, 'int'
|
|
69
69
|
field :id, 'string'
|
|
70
|
+
field :is_catalog_segment, 'bool'
|
|
70
71
|
field :name, 'string'
|
|
71
72
|
field :product_count, 'int'
|
|
72
73
|
field :store_catalog_settings, 'StoreCatalogSettings'
|
|
@@ -310,14 +311,6 @@ module FacebookAds
|
|
|
310
311
|
edge.get 'ProductCatalogProductSetsBatch' do |api|
|
|
311
312
|
api.has_param :handle, 'string'
|
|
312
313
|
end
|
|
313
|
-
edge.post 'ProductCatalog' do |api|
|
|
314
|
-
api.has_param :file, 'file'
|
|
315
|
-
api.has_param :password, 'string'
|
|
316
|
-
api.has_param :standard, { enum: -> { ProductCatalog::STANDARD }}
|
|
317
|
-
api.has_param :update_only, 'bool'
|
|
318
|
-
api.has_param :url, 'string'
|
|
319
|
-
api.has_param :username, 'string'
|
|
320
|
-
end
|
|
321
314
|
end
|
|
322
315
|
|
|
323
316
|
has_edge :products do |edge|
|
|
@@ -392,13 +385,6 @@ module FacebookAds
|
|
|
392
385
|
end
|
|
393
386
|
end
|
|
394
387
|
|
|
395
|
-
has_edge :store_product_items_batch do |edge|
|
|
396
|
-
edge.post 'ProductCatalog' do |api|
|
|
397
|
-
api.has_param :allow_upsert, 'bool'
|
|
398
|
-
api.has_param :requests, { list: 'hash' }
|
|
399
|
-
end
|
|
400
|
-
end
|
|
401
|
-
|
|
402
388
|
has_edge :vehicle_offers do |edge|
|
|
403
389
|
edge.get 'VehicleOffer' do |api|
|
|
404
390
|
api.has_param :bulk_pagination, 'bool'
|
|
@@ -143,42 +143,6 @@ module FacebookAds
|
|
|
143
143
|
end
|
|
144
144
|
end
|
|
145
145
|
|
|
146
|
-
has_edge :achievements do |edge|
|
|
147
|
-
edge.post do |api|
|
|
148
|
-
api.has_param :added, 'string'
|
|
149
|
-
api.has_param :alias, 'string'
|
|
150
|
-
api.has_param :android_key_hash, 'string'
|
|
151
|
-
api.has_param :client_secret, 'string'
|
|
152
|
-
api.has_param :created_time, 'datetime'
|
|
153
|
-
api.has_param :end_time, 'datetime'
|
|
154
|
-
api.has_param :expires_in, 'int'
|
|
155
|
-
api.has_param :fb_channel, 'string'
|
|
156
|
-
api.has_param :fb_explicitly_shared, 'bool'
|
|
157
|
-
api.has_param :image_height, 'int'
|
|
158
|
-
api.has_param :image_secure_url, 'string'
|
|
159
|
-
api.has_param :image_type, 'string'
|
|
160
|
-
api.has_param :image_url, 'string'
|
|
161
|
-
api.has_param :image_user_generated, 'bool'
|
|
162
|
-
api.has_param :image_width, 'int'
|
|
163
|
-
api.has_param :ios_bundle_id, 'string'
|
|
164
|
-
api.has_param :message, 'string'
|
|
165
|
-
api.has_param :no_action_link, 'bool'
|
|
166
|
-
api.has_param :no_feed_story, 'bool'
|
|
167
|
-
api.has_param :notify, 'bool'
|
|
168
|
-
api.has_param :place, 'string'
|
|
169
|
-
api.has_param :preview, 'bool'
|
|
170
|
-
api.has_param :privacy, 'string'
|
|
171
|
-
api.has_param :proxied_app_id, 'string'
|
|
172
|
-
api.has_param :ref, 'string'
|
|
173
|
-
api.has_param :scrape, 'bool'
|
|
174
|
-
api.has_param :start_time, 'datetime'
|
|
175
|
-
api.has_param :tags, { list: 'int' }
|
|
176
|
-
api.has_param :to, 'string'
|
|
177
|
-
api.has_param :user_selected_place, 'bool'
|
|
178
|
-
api.has_param :user_selected_tags, 'bool'
|
|
179
|
-
end
|
|
180
|
-
end
|
|
181
|
-
|
|
182
146
|
has_edge :ad_studies do |edge|
|
|
183
147
|
edge.get 'AdStudy'
|
|
184
148
|
edge.post 'AdStudy' do |api|
|
|
@@ -39,14 +39,5 @@ module FacebookAds
|
|
|
39
39
|
field :start_time, 'datetime'
|
|
40
40
|
has_no_delete
|
|
41
41
|
|
|
42
|
-
has_edge :questions do |edge|
|
|
43
|
-
edge.get
|
|
44
|
-
edge.post do |api|
|
|
45
|
-
api.has_param :correct_option, 'int'
|
|
46
|
-
api.has_param :options, { list: 'string' }
|
|
47
|
-
api.has_param :question, 'string'
|
|
48
|
-
end
|
|
49
|
-
end
|
|
50
|
-
|
|
51
42
|
end
|
|
52
43
|
end
|
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.6.0.
|
|
4
|
+
version: 0.6.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Facebook
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-03-
|
|
11
|
+
date: 2020-03-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|
|
@@ -210,14 +210,12 @@ description: |2
|
|
|
210
210
|
The official Facebook Business API SDK for Ruby.
|
|
211
211
|
https://developers.facebook.com/docs/marketing-api/sdks'
|
|
212
212
|
email: ''
|
|
213
|
-
executables:
|
|
214
|
-
- facebookbusiness
|
|
213
|
+
executables: []
|
|
215
214
|
extensions: []
|
|
216
215
|
extra_rdoc_files: []
|
|
217
216
|
files:
|
|
218
217
|
- LICENSE.txt
|
|
219
218
|
- README.md
|
|
220
|
-
- bin/facebookbusiness
|
|
221
219
|
- lib/facebook_ads.rb
|
|
222
220
|
- lib/facebook_ads/ad_object.rb
|
|
223
221
|
- lib/facebook_ads/ad_objects/ad.rb
|
|
@@ -280,6 +278,7 @@ files:
|
|
|
280
278
|
- lib/facebook_ads/ad_objects/ad_creative_link_data_template_video_spec.rb
|
|
281
279
|
- lib/facebook_ads/ad_objects/ad_creative_object_story_spec.rb
|
|
282
280
|
- lib/facebook_ads/ad_objects/ad_creative_photo_data.rb
|
|
281
|
+
- lib/facebook_ads/ad_objects/ad_creative_photo_data_media_elements.rb
|
|
283
282
|
- lib/facebook_ads/ad_objects/ad_creative_place_data.rb
|
|
284
283
|
- lib/facebook_ads/ad_objects/ad_creative_platform_customization.rb
|
|
285
284
|
- lib/facebook_ads/ad_objects/ad_creative_portrait_customizations.rb
|
|
@@ -332,6 +331,7 @@ files:
|
|
|
332
331
|
- lib/facebook_ads/ad_objects/ads_action_stats.rb
|
|
333
332
|
- lib/facebook_ads/ad_objects/ads_image_crops.rb
|
|
334
333
|
- lib/facebook_ads/ad_objects/ads_insights.rb
|
|
334
|
+
- lib/facebook_ads/ad_objects/ads_interest.rb
|
|
335
335
|
- lib/facebook_ads/ad_objects/ads_optimal_delivery_growth_opportunity.rb
|
|
336
336
|
- lib/facebook_ads/ad_objects/ads_pixel.rb
|
|
337
337
|
- lib/facebook_ads/ad_objects/ads_pixel_stats.rb
|
|
@@ -364,6 +364,7 @@ files:
|
|
|
364
364
|
- lib/facebook_ads/ad_objects/business_asset_sharing_agreement.rb
|
|
365
365
|
- lib/facebook_ads/ad_objects/business_creative.rb
|
|
366
366
|
- lib/facebook_ads/ad_objects/business_creative_folder.rb
|
|
367
|
+
- lib/facebook_ads/ad_objects/business_creative_folder_sharing_agreement.rb
|
|
367
368
|
- lib/facebook_ads/ad_objects/business_image.rb
|
|
368
369
|
- lib/facebook_ads/ad_objects/business_owned_object_on_behalf_of_request.rb
|
|
369
370
|
- lib/facebook_ads/ad_objects/business_page_request.rb
|
|
@@ -379,6 +380,7 @@ files:
|
|
|
379
380
|
- lib/facebook_ads/ad_objects/canvas_body_element.rb
|
|
380
381
|
- lib/facebook_ads/ad_objects/canvas_collection_thumbnail.rb
|
|
381
382
|
- lib/facebook_ads/ad_objects/catalog_based_targeting.rb
|
|
383
|
+
- lib/facebook_ads/ad_objects/catalog_item_appeal_status.rb
|
|
382
384
|
- lib/facebook_ads/ad_objects/check_batch_request_status.rb
|
|
383
385
|
- lib/facebook_ads/ad_objects/child_event.rb
|
|
384
386
|
- lib/facebook_ads/ad_objects/client_transparency_status.rb
|
|
@@ -391,6 +393,7 @@ files:
|
|
|
391
393
|
- lib/facebook_ads/ad_objects/copyright_reference_container.rb
|
|
392
394
|
- lib/facebook_ads/ad_objects/cover_photo.rb
|
|
393
395
|
- lib/facebook_ads/ad_objects/cpas_parent_catalog_settings.rb
|
|
396
|
+
- lib/facebook_ads/ad_objects/creative_asset_tag.rb
|
|
394
397
|
- lib/facebook_ads/ad_objects/creative_history.rb
|
|
395
398
|
- lib/facebook_ads/ad_objects/credit_partition_action_options.rb
|
|
396
399
|
- lib/facebook_ads/ad_objects/currency.rb
|
|
@@ -693,7 +696,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
693
696
|
version: '0'
|
|
694
697
|
requirements: []
|
|
695
698
|
rubyforge_project:
|
|
696
|
-
rubygems_version: 2.7.
|
|
699
|
+
rubygems_version: 2.7.7
|
|
697
700
|
signing_key:
|
|
698
701
|
specification_version: 4
|
|
699
702
|
summary: Facebook Business API SDK for Ruby (Official)
|
data/bin/facebookbusiness
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env ruby
|
|
2
|
-
|
|
3
|
-
require "bundler/setup"
|
|
4
|
-
require "facebookbusiness"
|
|
5
|
-
|
|
6
|
-
# You can add fixtures and/or initialization code here to make experimenting
|
|
7
|
-
# with your gem easier. You can also use a different console, if you like.
|
|
8
|
-
|
|
9
|
-
# (If you use this, don't forget to add pry to your Gemfile!)
|
|
10
|
-
# require "pry"
|
|
11
|
-
# Pry.start
|
|
12
|
-
|
|
13
|
-
require "irb"
|
|
14
|
-
IRB.start(__FILE__)
|