facebookbusiness 0.9.0.2 → 0.9.0.3
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_account.rb +1 -10
- data/lib/facebook_ads/ad_objects/ad_account_targeting_unified.rb +0 -1
- data/lib/facebook_ads/ad_objects/ad_asset_feed_spec.rb +1 -0
- data/lib/facebook_ads/ad_objects/ad_campaign_activity.rb +4 -0
- data/lib/facebook_ads/ad_objects/ad_preview.rb +3 -0
- data/lib/facebook_ads/ad_objects/ad_set.rb +2 -0
- data/lib/facebook_ads/ad_objects/ad_study.rb +0 -11
- data/lib/facebook_ads/ad_objects/ad_study_objective.rb +1 -0
- data/lib/facebook_ads/ad_objects/ad_video.rb +2 -1
- data/lib/facebook_ads/ad_objects/adgroup_placement_specific_review_feedback.rb +1 -0
- data/lib/facebook_ads/ad_objects/ads_action_stats.rb +2 -0
- data/lib/facebook_ads/ad_objects/ads_insights.rb +1 -0
- data/lib/facebook_ads/ad_objects/ads_pixel.rb +4 -0
- data/lib/facebook_ads/ad_objects/automotive_model.rb +25 -0
- data/lib/facebook_ads/ad_objects/business.rb +23 -0
- data/lib/facebook_ads/ad_objects/campaign.rb +0 -1
- data/lib/facebook_ads/ad_objects/catalog_sub_vertical_list.rb +3 -0
- data/lib/facebook_ads/ad_objects/comment.rb +1 -0
- data/lib/facebook_ads/ad_objects/commerce_merchant_settings.rb +1 -0
- data/lib/facebook_ads/ad_objects/{read_only_analytics_user_property_config.rb → contextual_bundling_spec.rb} +4 -3
- data/lib/facebook_ads/ad_objects/group.rb +0 -12
- data/lib/facebook_ads/ad_objects/ig_user.rb +6 -0
- data/lib/facebook_ads/ad_objects/image_copyright.rb +302 -0
- data/lib/facebook_ads/ad_objects/page.rb +21 -1
- data/lib/facebook_ads/ad_objects/page_call_to_action.rb +3 -0
- data/lib/facebook_ads/ad_objects/{ad_account_roas.rb → page_commerce_eligibility.rb} +3 -30
- data/lib/facebook_ads/ad_objects/product_catalog.rb +15 -2
- data/lib/facebook_ads/ad_objects/product_feed.rb +2 -1
- data/lib/facebook_ads/ad_objects/product_group.rb +0 -8
- data/lib/facebook_ads/ad_objects/product_item.rb +1 -9
- data/lib/facebook_ads/ad_objects/product_item_ar_data.rb +58 -0
- data/lib/facebook_ads/ad_objects/server_side/util.rb +1 -1
- data/lib/facebook_ads/ad_objects/system_user.rb +20 -0
- data/lib/facebook_ads/ad_objects/user.rb +9 -1
- data/lib/facebook_ads/edge.rb +2 -1
- data/lib/facebook_ads/version.rb +1 -1
- metadata +7 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9c36f6e242fd4cec146381dac5e228ef01fd737b460928f7e69cccbd82910796
|
4
|
+
data.tar.gz: 65295aa5a6e1fca467c42f8b98f01849c694bac3beee5f4cbcac1afbeef967e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2db7210fc2d9a10f1820442275ff59ffd1660ac7725e23c2b69257d2770a789acdf182315af7ff984ca7e18dfebe5a3eb956465c674eeac420dc7536bceda6ce
|
7
|
+
data.tar.gz: 97defd9e92df6e08dfd6187f8c38a1b36695037512c86476a061dbc22304017ce15f4bc03061ff71b02c65613347e72ecd40ea03c006e24fc9de13ad3b411187
|
@@ -282,6 +282,7 @@ module FacebookAds
|
|
282
282
|
api.has_param :object_story_spec, 'AdCreativeObjectStorySpec'
|
283
283
|
api.has_param :object_type, 'string'
|
284
284
|
api.has_param :object_url, 'string'
|
285
|
+
api.has_param :place_page_set_id, 'string'
|
285
286
|
api.has_param :platform_customizations, 'object'
|
286
287
|
api.has_param :playable_asset_id, 'string'
|
287
288
|
api.has_param :portrait_customizations, 'hash'
|
@@ -508,7 +509,6 @@ module FacebookAds
|
|
508
509
|
api.has_param :animated_effect_id, 'int'
|
509
510
|
api.has_param :application_id, 'string'
|
510
511
|
api.has_param :asked_fun_fact_prompt_id, 'int'
|
511
|
-
api.has_param :attribution_app_id, 'string'
|
512
512
|
api.has_param :audio_story_wave_animation_handle, 'string'
|
513
513
|
api.has_param :chunk_session_id, 'string'
|
514
514
|
api.has_param :composer_entry_picker, 'string'
|
@@ -1022,15 +1022,6 @@ module FacebookAds
|
|
1022
1022
|
end
|
1023
1023
|
end
|
1024
1024
|
|
1025
|
-
has_edge :roas do |edge|
|
1026
|
-
edge.get 'AdAccountRoas' do |api|
|
1027
|
-
api.has_param :fields, { list: 'string' }
|
1028
|
-
api.has_param :filtering, { list: 'object' }
|
1029
|
-
api.has_param :time_increment, 'string'
|
1030
|
-
api.has_param :time_range, 'object'
|
1031
|
-
end
|
1032
|
-
end
|
1033
|
-
|
1034
1025
|
has_edge :saved_audiences do |edge|
|
1035
1026
|
edge.get 'SavedAudience' do |api|
|
1036
1027
|
api.has_param :business_id, 'string'
|
@@ -107,6 +107,7 @@ module FacebookAds
|
|
107
107
|
field :groups, { list: 'AdAssetFeedSpecGroupRule' }
|
108
108
|
field :images, { list: 'AdAssetFeedSpecImage' }
|
109
109
|
field :link_urls, { list: 'AdAssetFeedSpecLinkUrl' }
|
110
|
+
field :onsite_destinations, { list: 'object' }
|
110
111
|
field :optimization_type, 'string'
|
111
112
|
field :posts, { list: 'object' }
|
112
113
|
field :titles, { list: 'AdAssetFeedSpecTitle' }
|
@@ -43,10 +43,12 @@ module FacebookAds
|
|
43
43
|
"CLICKS",
|
44
44
|
"IMPRESSIONS",
|
45
45
|
"LINK_CLICKS",
|
46
|
+
"LISTING_INTERACTION",
|
46
47
|
"NONE",
|
47
48
|
"OFFER_CLAIMS",
|
48
49
|
"PAGE_LIKES",
|
49
50
|
"POST_ENGAGEMENT",
|
51
|
+
"PURCHASE",
|
50
52
|
"THRUPLAY",
|
51
53
|
]
|
52
54
|
|
@@ -55,10 +57,12 @@ module FacebookAds
|
|
55
57
|
"CLICKS",
|
56
58
|
"IMPRESSIONS",
|
57
59
|
"LINK_CLICKS",
|
60
|
+
"LISTING_INTERACTION",
|
58
61
|
"NONE",
|
59
62
|
"OFFER_CLAIMS",
|
60
63
|
"PAGE_LIKES",
|
61
64
|
"POST_ENGAGEMENT",
|
65
|
+
"PURCHASE",
|
62
66
|
"THRUPLAY",
|
63
67
|
]
|
64
68
|
|
@@ -35,10 +35,13 @@ module FacebookAds
|
|
35
35
|
"FACEBOOK_STORY_MOBILE",
|
36
36
|
"INSTAGRAM_EXPLORE_CONTEXTUAL",
|
37
37
|
"INSTAGRAM_EXPLORE_IMMERSIVE",
|
38
|
+
"INSTAGRAM_REELS",
|
38
39
|
"INSTAGRAM_STANDARD",
|
39
40
|
"INSTAGRAM_STORY",
|
40
41
|
"INSTANT_ARTICLE_RECIRCULATION_AD",
|
41
42
|
"INSTANT_ARTICLE_STANDARD",
|
43
|
+
"INSTREAM_BANNER_DESKTOP",
|
44
|
+
"INSTREAM_BANNER_MOBILE",
|
42
45
|
"INSTREAM_VIDEO_DESKTOP",
|
43
46
|
"INSTREAM_VIDEO_IMAGE",
|
44
47
|
"INSTREAM_VIDEO_MOBILE",
|
@@ -62,17 +62,6 @@ module FacebookAds
|
|
62
62
|
|
63
63
|
has_edge :objectives do |edge|
|
64
64
|
edge.get 'AdStudyObjective'
|
65
|
-
edge.post 'AdStudyObjective' do |api|
|
66
|
-
api.has_param :adspixels, { list: 'object' }
|
67
|
-
api.has_param :applications, { list: 'object' }
|
68
|
-
api.has_param :customconversions, { list: 'object' }
|
69
|
-
api.has_param :is_primary, 'bool'
|
70
|
-
api.has_param :name, 'string'
|
71
|
-
api.has_param :offline_conversion_data_sets, { list: 'object' }
|
72
|
-
api.has_param :product_catalogs, { list: 'object' }
|
73
|
-
api.has_param :product_sets, { list: 'object' }
|
74
|
-
api.has_param :type, { enum: -> { AdStudyObjective::TYPE }}
|
75
|
-
end
|
76
65
|
end
|
77
66
|
|
78
67
|
end
|
@@ -27,6 +27,7 @@ module FacebookAds
|
|
27
27
|
|
28
28
|
class AdVideo < AdObject
|
29
29
|
CONTAINER_TYPE = [
|
30
|
+
"ACO_AUTOEXTRACTED_VIDEO",
|
30
31
|
"ACO_VIDEO_VARIATION",
|
31
32
|
"AD_BREAK_PREVIEW",
|
32
33
|
"AD_DERIVATIVE",
|
@@ -64,6 +65,7 @@ module FacebookAds
|
|
64
65
|
"EVENT_TOUR",
|
65
66
|
"FACECAST_DVR",
|
66
67
|
"FB_SHORTS",
|
68
|
+
"FB_SHORTS_GROUP_POST",
|
67
69
|
"FB_SHORTS_POST",
|
68
70
|
"FUNDRAISER_COVER_VIDEO",
|
69
71
|
"GAME_CLIP",
|
@@ -257,7 +259,6 @@ module FacebookAds
|
|
257
259
|
field :animated_effect_id, 'int'
|
258
260
|
field :application_id, 'string'
|
259
261
|
field :asked_fun_fact_prompt_id, 'int'
|
260
|
-
field :attribution_app_id, 'string'
|
261
262
|
field :audio_story_wave_animation_handle, 'string'
|
262
263
|
field :chunk_session_id, 'string'
|
263
264
|
field :composer_entry_picker, 'string'
|
@@ -44,6 +44,7 @@ module FacebookAds
|
|
44
44
|
field :facebook_pages_live_shopping, 'hash'
|
45
45
|
field :instagram, 'hash'
|
46
46
|
field :instagram_shop, 'hash'
|
47
|
+
field :job_search, 'hash'
|
47
48
|
field :lead_gen_honeypot, 'hash'
|
48
49
|
field :marketplace, 'hash'
|
49
50
|
field :marketplace_home_rentals, 'hash'
|
@@ -33,10 +33,12 @@ module FacebookAds
|
|
33
33
|
field :_28d_view, 'string'
|
34
34
|
field :_7d_click, 'string'
|
35
35
|
field :_7d_view, 'string'
|
36
|
+
field :action_brand, 'string'
|
36
37
|
field :action_canvas_component_id, 'string'
|
37
38
|
field :action_canvas_component_name, 'string'
|
38
39
|
field :action_carousel_card_id, 'string'
|
39
40
|
field :action_carousel_card_name, 'string'
|
41
|
+
field :action_category, 'string'
|
40
42
|
field :action_converted_product_id, 'string'
|
41
43
|
field :action_destination, 'string'
|
42
44
|
field :action_device, 'string'
|
@@ -146,6 +146,7 @@ module FacebookAds
|
|
146
146
|
field :adset_name, 'string'
|
147
147
|
field :adset_start, 'string'
|
148
148
|
field :age_targeting, 'string'
|
149
|
+
field :attribution_setting, 'string'
|
149
150
|
field :auction_bid, 'string'
|
150
151
|
field :auction_competitiveness, 'string'
|
151
152
|
field :auction_max_competitor_bid, 'string'
|
@@ -26,6 +26,31 @@ module FacebookAds
|
|
26
26
|
# pull request for this class.
|
27
27
|
|
28
28
|
class AutomotiveModel < AdObject
|
29
|
+
BODY_STYLE = [
|
30
|
+
"CONVERTIBLE",
|
31
|
+
"COUPE",
|
32
|
+
"CROSSOVER",
|
33
|
+
"ESTATE",
|
34
|
+
"GRANDTOURER",
|
35
|
+
"HATCHBACK",
|
36
|
+
"MINIBUS",
|
37
|
+
"MINIVAN",
|
38
|
+
"MPV",
|
39
|
+
"NONE",
|
40
|
+
"OTHER",
|
41
|
+
"PICKUP",
|
42
|
+
"ROADSTER",
|
43
|
+
"SALOON",
|
44
|
+
"SEDAN",
|
45
|
+
"SPORTSCAR",
|
46
|
+
"SUPERCAR",
|
47
|
+
"SUPERMINI",
|
48
|
+
"SUV",
|
49
|
+
"TRUCK",
|
50
|
+
"VAN",
|
51
|
+
"WAGON",
|
52
|
+
]
|
53
|
+
|
29
54
|
|
30
55
|
field :applinks, 'CatalogItemAppLinks'
|
31
56
|
field :automotive_model_id, 'string'
|
@@ -259,6 +259,10 @@ module FacebookAds
|
|
259
259
|
|
260
260
|
has_edge :business_users do |edge|
|
261
261
|
edge.get 'BusinessUser'
|
262
|
+
edge.post 'BusinessUser' do |api|
|
263
|
+
api.has_param :email, 'string'
|
264
|
+
api.has_param :role, { enum: -> { BusinessUser::ROLE }}
|
265
|
+
end
|
262
266
|
end
|
263
267
|
|
264
268
|
has_edge :claim_custom_conversions do |edge|
|
@@ -378,6 +382,20 @@ module FacebookAds
|
|
378
382
|
end
|
379
383
|
end
|
380
384
|
|
385
|
+
has_edge :franchise_programs do |edge|
|
386
|
+
edge.post do |api|
|
387
|
+
api.has_param :business_asset_group, 'string'
|
388
|
+
api.has_param :creative_folder, 'string'
|
389
|
+
api.has_param :creative_spec_template_data, 'hash'
|
390
|
+
api.has_param :description, 'string'
|
391
|
+
api.has_param :end_date, 'datetime'
|
392
|
+
api.has_param :name, 'string'
|
393
|
+
api.has_param :program_approval_type, { enum: %w{APPROVAL PUBLIC }}
|
394
|
+
api.has_param :shared_custom_audience, 'string'
|
395
|
+
api.has_param :start_date, 'datetime'
|
396
|
+
end
|
397
|
+
end
|
398
|
+
|
381
399
|
has_edge :initiated_audience_sharing_requests do |edge|
|
382
400
|
edge.get 'BusinessAssetSharingAgreement' do |api|
|
383
401
|
api.has_param :recipient_id, 'string'
|
@@ -571,6 +589,11 @@ module FacebookAds
|
|
571
589
|
|
572
590
|
has_edge :system_users do |edge|
|
573
591
|
edge.get 'SystemUser'
|
592
|
+
edge.post 'SystemUser' do |api|
|
593
|
+
api.has_param :name, 'string'
|
594
|
+
api.has_param :role, { enum: -> { SystemUser::ROLE }}
|
595
|
+
api.has_param :system_user_id, 'int'
|
596
|
+
end
|
574
597
|
end
|
575
598
|
|
576
599
|
has_edge :third_party_measurement_report_dataset do |edge|
|
@@ -44,6 +44,7 @@ module FacebookAds
|
|
44
44
|
field :computers_and_tablets, 'object'
|
45
45
|
field :computers_laptops_and_tablets, 'object'
|
46
46
|
field :diapering_and_potty_training, 'object'
|
47
|
+
field :digital_product_offer, 'object'
|
47
48
|
field :electronic_accessories_and_cables, 'object'
|
48
49
|
field :electronics_accessories, 'object'
|
49
50
|
field :furniture, 'object'
|
@@ -53,6 +54,8 @@ module FacebookAds
|
|
53
54
|
field :household_and_cleaning_supplies, 'object'
|
54
55
|
field :jewelry, 'object'
|
55
56
|
field :large_appliances, 'object'
|
57
|
+
field :local_service_business_item, 'object'
|
58
|
+
field :local_service_business_restaurant, 'object'
|
56
59
|
field :loyalty_offer, 'object'
|
57
60
|
field :meetup_space, 'object'
|
58
61
|
field :nursery, 'object'
|
@@ -36,6 +36,7 @@ module FacebookAds
|
|
36
36
|
field :external_merchant_id, 'string'
|
37
37
|
field :facebook_channel, 'object'
|
38
38
|
field :has_discount_code, 'bool'
|
39
|
+
field :has_onsite_intent, 'bool'
|
39
40
|
field :id, 'string'
|
40
41
|
field :instagram_channel, 'object'
|
41
42
|
field :merchant_alert_email, 'string'
|
@@ -25,10 +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
|
28
|
+
class ContextualBundlingSpec < AdObject
|
29
29
|
|
30
|
-
field :
|
31
|
-
|
30
|
+
field :status, 'string'
|
31
|
+
has_no_id
|
32
|
+
has_no_get
|
32
33
|
has_no_post
|
33
34
|
has_no_delete
|
34
35
|
|
@@ -152,15 +152,6 @@ module FacebookAds
|
|
152
152
|
"WORK_VC_CALL",
|
153
153
|
]
|
154
154
|
|
155
|
-
SUGGESTION_CATEGORY = [
|
156
|
-
"EVENT",
|
157
|
-
"MESSENGER",
|
158
|
-
"WORK",
|
159
|
-
"WORKPLACE",
|
160
|
-
"WORKPLACE_1_1",
|
161
|
-
"WORKPLACE_MANAGER",
|
162
|
-
]
|
163
|
-
|
164
155
|
|
165
156
|
field :archived, 'bool'
|
166
157
|
field :cover, 'CoverPhoto'
|
@@ -359,8 +350,6 @@ module FacebookAds
|
|
359
350
|
api.has_param :post_requires_admin_approval, 'bool'
|
360
351
|
api.has_param :privacy, 'string'
|
361
352
|
api.has_param :ref, 'string'
|
362
|
-
api.has_param :suggestion_category, { enum: -> { Group::SUGGESTION_CATEGORY }}
|
363
|
-
api.has_param :suggestion_identifier, 'string'
|
364
353
|
end
|
365
354
|
end
|
366
355
|
|
@@ -488,7 +477,6 @@ module FacebookAds
|
|
488
477
|
api.has_param :animated_effect_id, 'int'
|
489
478
|
api.has_param :application_id, 'string'
|
490
479
|
api.has_param :asked_fun_fact_prompt_id, 'int'
|
491
|
-
api.has_param :attribution_app_id, 'string'
|
492
480
|
api.has_param :audio_story_wave_animation_handle, 'string'
|
493
481
|
api.has_param :composer_entry_picker, 'string'
|
494
482
|
api.has_param :composer_entry_point, 'string'
|
@@ -44,6 +44,12 @@ module FacebookAds
|
|
44
44
|
has_no_post
|
45
45
|
has_no_delete
|
46
46
|
|
47
|
+
has_edge :content_publishing_limit do |edge|
|
48
|
+
edge.get do |api|
|
49
|
+
api.has_param :since, 'datetime'
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
47
53
|
has_edge :insights do |edge|
|
48
54
|
edge.get 'InstagramInsightsResult' do |api|
|
49
55
|
api.has_param :metric, { list: { enum: -> { InstagramInsightsResult::METRIC }} }
|
@@ -0,0 +1,302 @@
|
|
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 ImageCopyright < AdObject
|
29
|
+
GEO_OWNERSHIP = [
|
30
|
+
"AD",
|
31
|
+
"AE",
|
32
|
+
"AF",
|
33
|
+
"AG",
|
34
|
+
"AI",
|
35
|
+
"AL",
|
36
|
+
"AM",
|
37
|
+
"AN",
|
38
|
+
"AO",
|
39
|
+
"AQ",
|
40
|
+
"AR",
|
41
|
+
"AS",
|
42
|
+
"AT",
|
43
|
+
"AU",
|
44
|
+
"AW",
|
45
|
+
"AX",
|
46
|
+
"AZ",
|
47
|
+
"BA",
|
48
|
+
"BB",
|
49
|
+
"BD",
|
50
|
+
"BE",
|
51
|
+
"BF",
|
52
|
+
"BG",
|
53
|
+
"BH",
|
54
|
+
"BI",
|
55
|
+
"BJ",
|
56
|
+
"BL",
|
57
|
+
"BM",
|
58
|
+
"BN",
|
59
|
+
"BO",
|
60
|
+
"BQ",
|
61
|
+
"BR",
|
62
|
+
"BS",
|
63
|
+
"BT",
|
64
|
+
"BV",
|
65
|
+
"BW",
|
66
|
+
"BY",
|
67
|
+
"BZ",
|
68
|
+
"CA",
|
69
|
+
"CC",
|
70
|
+
"CD",
|
71
|
+
"CF",
|
72
|
+
"CG",
|
73
|
+
"CH",
|
74
|
+
"CI",
|
75
|
+
"CK",
|
76
|
+
"CL",
|
77
|
+
"CM",
|
78
|
+
"CN",
|
79
|
+
"CO",
|
80
|
+
"CR",
|
81
|
+
"CU",
|
82
|
+
"CV",
|
83
|
+
"CW",
|
84
|
+
"CX",
|
85
|
+
"CY",
|
86
|
+
"CZ",
|
87
|
+
"DE",
|
88
|
+
"DJ",
|
89
|
+
"DK",
|
90
|
+
"DM",
|
91
|
+
"DO",
|
92
|
+
"DZ",
|
93
|
+
"EC",
|
94
|
+
"EE",
|
95
|
+
"EG",
|
96
|
+
"EH",
|
97
|
+
"ER",
|
98
|
+
"ES",
|
99
|
+
"ET",
|
100
|
+
"FI",
|
101
|
+
"FJ",
|
102
|
+
"FK",
|
103
|
+
"FM",
|
104
|
+
"FO",
|
105
|
+
"FR",
|
106
|
+
"GA",
|
107
|
+
"GB",
|
108
|
+
"GD",
|
109
|
+
"GE",
|
110
|
+
"GF",
|
111
|
+
"GG",
|
112
|
+
"GH",
|
113
|
+
"GI",
|
114
|
+
"GL",
|
115
|
+
"GM",
|
116
|
+
"GN",
|
117
|
+
"GP",
|
118
|
+
"GQ",
|
119
|
+
"GR",
|
120
|
+
"GS",
|
121
|
+
"GT",
|
122
|
+
"GU",
|
123
|
+
"GW",
|
124
|
+
"GY",
|
125
|
+
"HK",
|
126
|
+
"HM",
|
127
|
+
"HN",
|
128
|
+
"HR",
|
129
|
+
"HT",
|
130
|
+
"HU",
|
131
|
+
"ID",
|
132
|
+
"IE",
|
133
|
+
"IL",
|
134
|
+
"IM",
|
135
|
+
"IN",
|
136
|
+
"IO",
|
137
|
+
"IQ",
|
138
|
+
"IR",
|
139
|
+
"IS",
|
140
|
+
"IT",
|
141
|
+
"JE",
|
142
|
+
"JM",
|
143
|
+
"JO",
|
144
|
+
"JP",
|
145
|
+
"KE",
|
146
|
+
"KG",
|
147
|
+
"KH",
|
148
|
+
"KI",
|
149
|
+
"KM",
|
150
|
+
"KN",
|
151
|
+
"KP",
|
152
|
+
"KR",
|
153
|
+
"KW",
|
154
|
+
"KY",
|
155
|
+
"KZ",
|
156
|
+
"LA",
|
157
|
+
"LB",
|
158
|
+
"LC",
|
159
|
+
"LI",
|
160
|
+
"LK",
|
161
|
+
"LR",
|
162
|
+
"LS",
|
163
|
+
"LT",
|
164
|
+
"LU",
|
165
|
+
"LV",
|
166
|
+
"LY",
|
167
|
+
"MA",
|
168
|
+
"MC",
|
169
|
+
"MD",
|
170
|
+
"ME",
|
171
|
+
"MF",
|
172
|
+
"MG",
|
173
|
+
"MH",
|
174
|
+
"MK",
|
175
|
+
"ML",
|
176
|
+
"MM",
|
177
|
+
"MN",
|
178
|
+
"MO",
|
179
|
+
"MP",
|
180
|
+
"MQ",
|
181
|
+
"MR",
|
182
|
+
"MS",
|
183
|
+
"MT",
|
184
|
+
"MU",
|
185
|
+
"MV",
|
186
|
+
"MW",
|
187
|
+
"MX",
|
188
|
+
"MY",
|
189
|
+
"MZ",
|
190
|
+
"NA",
|
191
|
+
"NC",
|
192
|
+
"NE",
|
193
|
+
"NF",
|
194
|
+
"NG",
|
195
|
+
"NI",
|
196
|
+
"NL",
|
197
|
+
"NO",
|
198
|
+
"NP",
|
199
|
+
"NR",
|
200
|
+
"NU",
|
201
|
+
"NZ",
|
202
|
+
"OM",
|
203
|
+
"PA",
|
204
|
+
"PE",
|
205
|
+
"PF",
|
206
|
+
"PG",
|
207
|
+
"PH",
|
208
|
+
"PK",
|
209
|
+
"PL",
|
210
|
+
"PM",
|
211
|
+
"PN",
|
212
|
+
"PR",
|
213
|
+
"PS",
|
214
|
+
"PT",
|
215
|
+
"PW",
|
216
|
+
"PY",
|
217
|
+
"QA",
|
218
|
+
"RE",
|
219
|
+
"RO",
|
220
|
+
"RS",
|
221
|
+
"RU",
|
222
|
+
"RW",
|
223
|
+
"SA",
|
224
|
+
"SB",
|
225
|
+
"SC",
|
226
|
+
"SD",
|
227
|
+
"SE",
|
228
|
+
"SG",
|
229
|
+
"SH",
|
230
|
+
"SI",
|
231
|
+
"SJ",
|
232
|
+
"SK",
|
233
|
+
"SL",
|
234
|
+
"SM",
|
235
|
+
"SN",
|
236
|
+
"SO",
|
237
|
+
"SR",
|
238
|
+
"SS",
|
239
|
+
"ST",
|
240
|
+
"SV",
|
241
|
+
"SX",
|
242
|
+
"SY",
|
243
|
+
"SZ",
|
244
|
+
"TC",
|
245
|
+
"TD",
|
246
|
+
"TF",
|
247
|
+
"TG",
|
248
|
+
"TH",
|
249
|
+
"TJ",
|
250
|
+
"TK",
|
251
|
+
"TL",
|
252
|
+
"TM",
|
253
|
+
"TN",
|
254
|
+
"TO",
|
255
|
+
"TP",
|
256
|
+
"TR",
|
257
|
+
"TT",
|
258
|
+
"TV",
|
259
|
+
"TW",
|
260
|
+
"TZ",
|
261
|
+
"UA",
|
262
|
+
"UG",
|
263
|
+
"UM",
|
264
|
+
"US",
|
265
|
+
"UY",
|
266
|
+
"UZ",
|
267
|
+
"VA",
|
268
|
+
"VC",
|
269
|
+
"VE",
|
270
|
+
"VG",
|
271
|
+
"VI",
|
272
|
+
"VN",
|
273
|
+
"VU",
|
274
|
+
"WF",
|
275
|
+
"WS",
|
276
|
+
"XK",
|
277
|
+
"YE",
|
278
|
+
"YT",
|
279
|
+
"ZA",
|
280
|
+
"ZM",
|
281
|
+
"ZW",
|
282
|
+
]
|
283
|
+
|
284
|
+
|
285
|
+
field :artist, 'string'
|
286
|
+
field :copyright_monitoring_status, 'string'
|
287
|
+
field :creation_time, 'datetime'
|
288
|
+
field :creator, 'string'
|
289
|
+
field :custom_id, 'string'
|
290
|
+
field :description, 'string'
|
291
|
+
field :filename, 'string'
|
292
|
+
field :id, 'string'
|
293
|
+
field :image, 'Photo'
|
294
|
+
field :matches_count, 'int'
|
295
|
+
field :original_content_creation_date, 'datetime'
|
296
|
+
field :ownership_countries, 'VideoCopyrightGeoGate'
|
297
|
+
field :tags, { list: 'string' }
|
298
|
+
field :title, 'string'
|
299
|
+
field :update_time, 'datetime'
|
300
|
+
|
301
|
+
end
|
302
|
+
end
|
@@ -380,6 +380,7 @@ module FacebookAds
|
|
380
380
|
field :fan_count, 'int'
|
381
381
|
field :featured_video, 'AdVideo'
|
382
382
|
field :features, 'string'
|
383
|
+
field :followers_count, 'int'
|
383
384
|
field :food_styles, { list: 'string' }
|
384
385
|
field :founded, 'string'
|
385
386
|
field :general_info, 'string'
|
@@ -592,6 +593,10 @@ module FacebookAds
|
|
592
593
|
edge.get 'Url'
|
593
594
|
end
|
594
595
|
|
596
|
+
has_edge :commerce_eligibility do |edge|
|
597
|
+
edge.get 'PageCommerceEligibility'
|
598
|
+
end
|
599
|
+
|
595
600
|
has_edge :commerce_merchant_settings do |edge|
|
596
601
|
edge.get 'CommerceMerchantSettings'
|
597
602
|
end
|
@@ -812,6 +817,21 @@ module FacebookAds
|
|
812
817
|
edge.get 'Page'
|
813
818
|
end
|
814
819
|
|
820
|
+
has_edge :image_copyrights do |edge|
|
821
|
+
edge.get 'ImageCopyright'
|
822
|
+
edge.post 'ImageCopyright' do |api|
|
823
|
+
api.has_param :artist, 'string'
|
824
|
+
api.has_param :creator, 'string'
|
825
|
+
api.has_param :custom_id, 'string'
|
826
|
+
api.has_param :description, 'string'
|
827
|
+
api.has_param :filename, 'string'
|
828
|
+
api.has_param :geo_ownership, { list: { enum: -> { ImageCopyright::GEO_OWNERSHIP }} }
|
829
|
+
api.has_param :original_content_creation_date, 'int'
|
830
|
+
api.has_param :reference_photo, 'string'
|
831
|
+
api.has_param :title, 'string'
|
832
|
+
end
|
833
|
+
end
|
834
|
+
|
815
835
|
has_edge :indexed_videos do |edge|
|
816
836
|
edge.get 'AdVideo'
|
817
837
|
end
|
@@ -947,6 +967,7 @@ module FacebookAds
|
|
947
967
|
api.has_param :location, 'object'
|
948
968
|
api.has_param :location_page_id, 'string'
|
949
969
|
api.has_param :old_store_number, 'int'
|
970
|
+
api.has_param :page_username, 'string'
|
950
971
|
api.has_param :permanently_closed, 'bool'
|
951
972
|
api.has_param :phone, 'string'
|
952
973
|
api.has_param :pickup_options, { list: { enum: -> { Page::PICKUP_OPTIONS }} }
|
@@ -1359,7 +1380,6 @@ module FacebookAds
|
|
1359
1380
|
api.has_param :animated_effect_id, 'int'
|
1360
1381
|
api.has_param :application_id, 'string'
|
1361
1382
|
api.has_param :asked_fun_fact_prompt_id, 'int'
|
1362
|
-
api.has_param :attribution_app_id, 'string'
|
1363
1383
|
api.has_param :audio_story_wave_animation_handle, 'string'
|
1364
1384
|
api.has_param :backdated_post, { list: 'string' }
|
1365
1385
|
api.has_param :call_to_action, 'object'
|
@@ -35,6 +35,7 @@ module FacebookAds
|
|
35
35
|
"MARKETPLACE_INVENTORY_PAGE",
|
36
36
|
"MESSENGER",
|
37
37
|
"MINI_SHOP",
|
38
|
+
"MOBILE_CENTER",
|
38
39
|
"NONE",
|
39
40
|
"PHONE_CALL",
|
40
41
|
"SHOP_ON_FACEBOOK",
|
@@ -75,6 +76,7 @@ module FacebookAds
|
|
75
76
|
"LISTEN",
|
76
77
|
"LOCAL_DEV_PLATFORM",
|
77
78
|
"MESSAGE",
|
79
|
+
"MOBILE_CENTER",
|
78
80
|
"OPEN_APP",
|
79
81
|
"ORDER_FOOD",
|
80
82
|
"PLAY_MUSIC",
|
@@ -98,6 +100,7 @@ module FacebookAds
|
|
98
100
|
"EMAIL",
|
99
101
|
"FOLLOW",
|
100
102
|
"MESSENGER",
|
103
|
+
"MOBILE_CENTER",
|
101
104
|
"NONE",
|
102
105
|
"SHOP_ON_FACEBOOK",
|
103
106
|
"WEBSITE",
|
@@ -25,37 +25,10 @@ module FacebookAds
|
|
25
25
|
# on github and we'll fix in our codegen framework. We'll not be able to accept
|
26
26
|
# pull request for this class.
|
27
27
|
|
28
|
-
class
|
28
|
+
class PageCommerceEligibility < AdObject
|
29
29
|
|
30
|
-
field :
|
31
|
-
field :
|
32
|
-
field :arpu_1d, 'double'
|
33
|
-
field :arpu_30d, 'double'
|
34
|
-
field :arpu_365d, 'double'
|
35
|
-
field :arpu_3d, 'double'
|
36
|
-
field :arpu_7d, 'double'
|
37
|
-
field :arpu_90d, 'double'
|
38
|
-
field :campaign_group_id, 'string'
|
39
|
-
field :campaign_id, 'string'
|
40
|
-
field :date_start, 'string'
|
41
|
-
field :date_stop, 'string'
|
42
|
-
field :installs, 'int'
|
43
|
-
field :revenue, 'double'
|
44
|
-
field :revenue_180d, 'double'
|
45
|
-
field :revenue_1d, 'double'
|
46
|
-
field :revenue_30d, 'double'
|
47
|
-
field :revenue_365d, 'double'
|
48
|
-
field :revenue_3d, 'double'
|
49
|
-
field :revenue_7d, 'double'
|
50
|
-
field :revenue_90d, 'double'
|
51
|
-
field :spend, 'double'
|
52
|
-
field :yield_180d, 'double'
|
53
|
-
field :yield_1d, 'double'
|
54
|
-
field :yield_30d, 'double'
|
55
|
-
field :yield_365d, 'double'
|
56
|
-
field :yield_3d, 'double'
|
57
|
-
field :yield_7d, 'double'
|
58
|
-
field :yield_90d, 'double'
|
30
|
+
field :offsite, 'object'
|
31
|
+
field :onsite, 'object'
|
59
32
|
has_no_id
|
60
33
|
has_no_get
|
61
34
|
has_no_post
|
@@ -78,6 +78,7 @@ module FacebookAds
|
|
78
78
|
"CLOTHING_ACCESSORIES",
|
79
79
|
"COMPUTERS_AND_TABLETS",
|
80
80
|
"DIAPERING_AND_POTTY_TRAINING",
|
81
|
+
"DIGITAL_PRODUCT_OFFER",
|
81
82
|
"ELECTRONICS_ACCESSORIES",
|
82
83
|
"FURNITURE",
|
83
84
|
"HEALTH",
|
@@ -144,6 +145,19 @@ module FacebookAds
|
|
144
145
|
api.has_param :bulk_pagination, 'bool'
|
145
146
|
api.has_param :filter, 'object'
|
146
147
|
end
|
148
|
+
edge.post 'AutomotiveModel' do |api|
|
149
|
+
api.has_param :automotive_model_id, 'string'
|
150
|
+
api.has_param :body_style, { enum: -> { AutomotiveModel::BODY_STYLE }}
|
151
|
+
api.has_param :currency, 'string'
|
152
|
+
api.has_param :description, 'string'
|
153
|
+
api.has_param :images, { list: 'object' }
|
154
|
+
api.has_param :make, 'string'
|
155
|
+
api.has_param :model, 'string'
|
156
|
+
api.has_param :price, 'int'
|
157
|
+
api.has_param :title, 'string'
|
158
|
+
api.has_param :url, 'string'
|
159
|
+
api.has_param :year, 'int'
|
160
|
+
end
|
147
161
|
end
|
148
162
|
|
149
163
|
has_edge :batch do |edge|
|
@@ -306,8 +320,8 @@ module FacebookAds
|
|
306
320
|
api.has_param :quoted_fields_mode, { enum: -> { ProductFeed::QUOTED_FIELDS_MODE }}
|
307
321
|
api.has_param :rules, { list: 'string' }
|
308
322
|
api.has_param :schedule, 'string'
|
323
|
+
api.has_param :selected_override_fields, { list: 'string' }
|
309
324
|
api.has_param :update_schedule, 'string'
|
310
|
-
api.has_param :whitelisted_properties, { list: 'string' }
|
311
325
|
end
|
312
326
|
end
|
313
327
|
|
@@ -347,7 +361,6 @@ module FacebookAds
|
|
347
361
|
api.has_param :return_only_approved_products, 'bool'
|
348
362
|
end
|
349
363
|
edge.post 'ProductItem' do |api|
|
350
|
-
api.has_param :additional_image_files, { list: 'file' }
|
351
364
|
api.has_param :additional_image_urls, { list: 'string' }
|
352
365
|
api.has_param :additional_uploaded_image_ids, { list: 'string' }
|
353
366
|
api.has_param :additional_variant_attributes, 'hash'
|
@@ -81,6 +81,7 @@ module FacebookAds
|
|
81
81
|
"CLOTHING_ACCESSORIES",
|
82
82
|
"COMPUTERS_AND_TABLETS",
|
83
83
|
"DIAPERING_AND_POTTY_TRAINING",
|
84
|
+
"DIGITAL_PRODUCT_OFFER",
|
84
85
|
"ELECTRONICS_ACCESSORIES",
|
85
86
|
"FURNITURE",
|
86
87
|
"HEALTH",
|
@@ -126,7 +127,7 @@ module FacebookAds
|
|
126
127
|
field :feed_type, { enum: -> { FEED_TYPE }}
|
127
128
|
field :override_value, 'string'
|
128
129
|
field :rules, { list: 'string' }
|
129
|
-
field :
|
130
|
+
field :selected_override_fields, { list: 'string' }
|
130
131
|
|
131
132
|
has_edge :automotive_models do |edge|
|
132
133
|
edge.get 'AutomotiveModel' do |api|
|
@@ -32,14 +32,6 @@ module FacebookAds
|
|
32
32
|
field :retailer_id, 'string'
|
33
33
|
field :variants, { list: 'ProductVariant' }
|
34
34
|
|
35
|
-
has_edge :ar_data do |edge|
|
36
|
-
edge.post do |api|
|
37
|
-
api.has_param :effect_icon, 'file'
|
38
|
-
api.has_param :state, { enum: %w{DISABLED ENABLED TEST }}
|
39
|
-
api.has_param :surfaces, { list: { enum: %w{SHOPS TEST_CAPABILITY UNIVERSAL_CHECKOUT US_MARKETPLACE }} }
|
40
|
-
end
|
41
|
-
end
|
42
|
-
|
43
35
|
has_edge :products do |edge|
|
44
36
|
edge.get 'ProductItem'
|
45
37
|
edge.post 'ProductItem' do |api|
|
@@ -293,6 +293,7 @@ module FacebookAds
|
|
293
293
|
field :additional_variant_attributes, 'hash'
|
294
294
|
field :age_group, { enum: -> { AGE_GROUP }}
|
295
295
|
field :applinks, 'CatalogItemAppLinks'
|
296
|
+
field :ar_data, 'ProductItemArData'
|
296
297
|
field :availability, { enum: -> { AVAILABILITY }}
|
297
298
|
field :brand, 'string'
|
298
299
|
field :capability_to_review_status, 'hash'
|
@@ -344,7 +345,6 @@ module FacebookAds
|
|
344
345
|
field :start_date, 'string'
|
345
346
|
field :url, 'string'
|
346
347
|
field :visibility, { enum: -> { VISIBILITY }}
|
347
|
-
field :additional_image_files, { list: 'file' }
|
348
348
|
field :additional_uploaded_image_ids, { list: 'string' }
|
349
349
|
field :android_app_name, 'string'
|
350
350
|
field :android_class, 'string'
|
@@ -370,14 +370,6 @@ module FacebookAds
|
|
370
370
|
field :windows_phone_app_name, 'string'
|
371
371
|
field :windows_phone_url, 'string'
|
372
372
|
|
373
|
-
has_edge :ar_data do |edge|
|
374
|
-
edge.post do |api|
|
375
|
-
api.has_param :container_effect, { enum: %w{MAKEUP }}
|
376
|
-
api.has_param :effect_parameters, 'hash'
|
377
|
-
api.has_param :picker_icon, 'file'
|
378
|
-
end
|
379
|
-
end
|
380
|
-
|
381
373
|
has_edge :channels_to_integrity_status do |edge|
|
382
374
|
edge.get 'CatalogItemChannelsToIntegrityStatus'
|
383
375
|
end
|
@@ -0,0 +1,58 @@
|
|
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 ProductItemArData < AdObject
|
29
|
+
SURFACES = [
|
30
|
+
"B2C_MARKETPLACE",
|
31
|
+
"C2C_MARKETPLACE",
|
32
|
+
"DA",
|
33
|
+
"DAILY_DEALS",
|
34
|
+
"DAILY_DEALS_LEGACY",
|
35
|
+
"IG_PRODUCT_TAGGING",
|
36
|
+
"MARKETPLACE",
|
37
|
+
"MARKETPLACE_ADS_DEPRECATED",
|
38
|
+
"MARKETPLACE_SHOPS",
|
39
|
+
"OFFLINE_CONVERSIONS",
|
40
|
+
"SHOPS",
|
41
|
+
"UNIVERSAL_CHECKOUT",
|
42
|
+
]
|
43
|
+
|
44
|
+
|
45
|
+
field :container_effect, 'string'
|
46
|
+
field :effect_icon, 'string'
|
47
|
+
field :effect_parameters, 'object'
|
48
|
+
field :picker_icon, 'string'
|
49
|
+
field :product_ar_link, 'object'
|
50
|
+
field :state, 'string'
|
51
|
+
field :surfaces, { list: { enum: -> { SURFACES }} }
|
52
|
+
has_no_id
|
53
|
+
has_no_get
|
54
|
+
has_no_post
|
55
|
+
has_no_delete
|
56
|
+
|
57
|
+
end
|
58
|
+
end
|
@@ -154,7 +154,7 @@ module FacebookAds
|
|
154
154
|
def self.normalize_email(email)
|
155
155
|
|
156
156
|
if EMAIL_REGEX.match(email) == nil
|
157
|
-
|
157
|
+
raise ArgumentError, "Invalid email format for the passed email: '#{email}'. Please check the passed email format."
|
158
158
|
end
|
159
159
|
|
160
160
|
return email
|
@@ -26,6 +26,24 @@ module FacebookAds
|
|
26
26
|
# pull request for this class.
|
27
27
|
|
28
28
|
class SystemUser < AdObject
|
29
|
+
ROLE = [
|
30
|
+
"ADMIN",
|
31
|
+
"ADS_RIGHTS_REVIEWER",
|
32
|
+
"DEFAULT",
|
33
|
+
"DEVELOPER",
|
34
|
+
"EMPLOYEE",
|
35
|
+
"FINANCE_ANALYST",
|
36
|
+
"FINANCE_EDIT",
|
37
|
+
"FINANCE_EDITOR",
|
38
|
+
"FINANCE_VIEW",
|
39
|
+
"MANAGE",
|
40
|
+
"PARTNER_CENTER_ADMIN",
|
41
|
+
"PARTNER_CENTER_ANALYST",
|
42
|
+
"PARTNER_CENTER_EDUCATION",
|
43
|
+
"PARTNER_CENTER_MARKETING",
|
44
|
+
"PARTNER_CENTER_OPERATIONS",
|
45
|
+
]
|
46
|
+
|
29
47
|
|
30
48
|
field :created_by, 'User'
|
31
49
|
field :created_time, 'datetime'
|
@@ -33,6 +51,8 @@ module FacebookAds
|
|
33
51
|
field :id, 'string'
|
34
52
|
field :ip_permission, 'string'
|
35
53
|
field :name, 'string'
|
54
|
+
field :role, { enum: -> { ROLE }}
|
55
|
+
field :system_user_id, 'int'
|
36
56
|
has_no_post
|
37
57
|
has_no_delete
|
38
58
|
|
@@ -99,6 +99,11 @@ module FacebookAds
|
|
99
99
|
|
100
100
|
has_edge :access_tokens do |edge|
|
101
101
|
edge.delete
|
102
|
+
edge.post 'User' do |api|
|
103
|
+
api.has_param :business_app, 'int'
|
104
|
+
api.has_param :page_id, 'string'
|
105
|
+
api.has_param :scope, { list: 'Permission' }
|
106
|
+
end
|
102
107
|
end
|
103
108
|
|
104
109
|
has_edge :accounts do |edge|
|
@@ -215,6 +220,10 @@ module FacebookAds
|
|
215
220
|
end
|
216
221
|
end
|
217
222
|
|
223
|
+
has_edge :custom_labels do |edge|
|
224
|
+
edge.get 'PageUserMessageThreadLabel'
|
225
|
+
end
|
226
|
+
|
218
227
|
has_edge :events do |edge|
|
219
228
|
edge.get 'Event' do |api|
|
220
229
|
api.has_param :include_canceled, 'bool'
|
@@ -617,7 +626,6 @@ module FacebookAds
|
|
617
626
|
api.has_param :animated_effect_id, 'int'
|
618
627
|
api.has_param :application_id, 'string'
|
619
628
|
api.has_param :asked_fun_fact_prompt_id, 'int'
|
620
|
-
api.has_param :attribution_app_id, 'string'
|
621
629
|
api.has_param :audio_story_wave_animation_handle, 'string'
|
622
630
|
api.has_param :composer_entry_picker, 'string'
|
623
631
|
api.has_param :composer_entry_point, 'string'
|
data/lib/facebook_ads/edge.rb
CHANGED
@@ -53,6 +53,7 @@ module FacebookAds
|
|
53
53
|
def reload!
|
54
54
|
@collection = Array.new
|
55
55
|
self.has_next_page = true
|
56
|
+
self.next_page_cursor = nil
|
56
57
|
end
|
57
58
|
|
58
59
|
private
|
@@ -95,7 +96,7 @@ module FacebookAds
|
|
95
96
|
node.post_edge(name, graph_params.merge(params)) do |response|
|
96
97
|
# TODO params check
|
97
98
|
# TODO Add new object to collection?
|
98
|
-
|
99
|
+
|
99
100
|
field_type = self.class.return_types[:post]
|
100
101
|
|
101
102
|
obj = field_type.deserialize(response, node.session)
|
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.9.0.
|
4
|
+
version: 0.9.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Facebook
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-02-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: concurrent-ruby
|
@@ -274,7 +274,6 @@ files:
|
|
274
274
|
- lib/facebook_ads/ad_objects/ad_account_promotable_objects.rb
|
275
275
|
- lib/facebook_ads/ad_objects/ad_account_reach_estimate.rb
|
276
276
|
- lib/facebook_ads/ad_objects/ad_account_recommended_camapaign_budget.rb
|
277
|
-
- lib/facebook_ads/ad_objects/ad_account_roas.rb
|
278
277
|
- lib/facebook_ads/ad_objects/ad_account_subscribed_apps.rb
|
279
278
|
- lib/facebook_ads/ad_objects/ad_account_targeting_unified.rb
|
280
279
|
- lib/facebook_ads/ad_objects/ad_account_tracking_data.rb
|
@@ -434,6 +433,7 @@ files:
|
|
434
433
|
- lib/facebook_ads/ad_objects/commerce_settings.rb
|
435
434
|
- lib/facebook_ads/ad_objects/connections_targeting.rb
|
436
435
|
- lib/facebook_ads/ad_objects/content_delivery_report.rb
|
436
|
+
- lib/facebook_ads/ad_objects/contextual_bundling_spec.rb
|
437
437
|
- lib/facebook_ads/ad_objects/conversion_action_query.rb
|
438
438
|
- lib/facebook_ads/ad_objects/copyright_reference_container.rb
|
439
439
|
- lib/facebook_ads/ad_objects/cover_photo.rb
|
@@ -488,6 +488,7 @@ files:
|
|
488
488
|
- lib/facebook_ads/ad_objects/ig_comment.rb
|
489
489
|
- lib/facebook_ads/ad_objects/ig_media.rb
|
490
490
|
- lib/facebook_ads/ad_objects/ig_user.rb
|
491
|
+
- lib/facebook_ads/ad_objects/image_copyright.rb
|
491
492
|
- lib/facebook_ads/ad_objects/insights_result.rb
|
492
493
|
- lib/facebook_ads/ad_objects/instagram_insights_result.rb
|
493
494
|
- lib/facebook_ads/ad_objects/instagram_insights_value.rb
|
@@ -538,6 +539,7 @@ files:
|
|
538
539
|
- lib/facebook_ads/ad_objects/page_call_to_action.rb
|
539
540
|
- lib/facebook_ads/ad_objects/page_category.rb
|
540
541
|
- lib/facebook_ads/ad_objects/page_change_proposal.rb
|
542
|
+
- lib/facebook_ads/ad_objects/page_commerce_eligibility.rb
|
541
543
|
- lib/facebook_ads/ad_objects/page_parking.rb
|
542
544
|
- lib/facebook_ads/ad_objects/page_payment_options.rb
|
543
545
|
- lib/facebook_ads/ad_objects/page_post.rb
|
@@ -582,6 +584,7 @@ files:
|
|
582
584
|
- lib/facebook_ads/ad_objects/product_feed_upload_error_sample.rb
|
583
585
|
- lib/facebook_ads/ad_objects/product_group.rb
|
584
586
|
- lib/facebook_ads/ad_objects/product_item.rb
|
587
|
+
- lib/facebook_ads/ad_objects/product_item_ar_data.rb
|
585
588
|
- lib/facebook_ads/ad_objects/product_item_commerce_insights.rb
|
586
589
|
- lib/facebook_ads/ad_objects/product_set.rb
|
587
590
|
- lib/facebook_ads/ad_objects/product_set_metadata.rb
|
@@ -599,7 +602,6 @@ files:
|
|
599
602
|
- lib/facebook_ads/ad_objects/reach_frequency_estimates_placement_breakdown.rb
|
600
603
|
- lib/facebook_ads/ad_objects/reach_frequency_prediction.rb
|
601
604
|
- lib/facebook_ads/ad_objects/reach_frequency_spec.rb
|
602
|
-
- lib/facebook_ads/ad_objects/read_only_analytics_user_property_config.rb
|
603
605
|
- lib/facebook_ads/ad_objects/recommendation.rb
|
604
606
|
- lib/facebook_ads/ad_objects/referral.rb
|
605
607
|
- lib/facebook_ads/ad_objects/rev_share_policy.rb
|
@@ -734,8 +736,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
734
736
|
- !ruby/object:Gem::Version
|
735
737
|
version: '0'
|
736
738
|
requirements: []
|
737
|
-
|
738
|
-
rubygems_version: 2.7.6
|
739
|
+
rubygems_version: 3.1.2
|
739
740
|
signing_key:
|
740
741
|
specification_version: 4
|
741
742
|
summary: Facebook Business API SDK for Ruby (Official)
|