facebookbusiness 0.7.0.2 → 0.7.0.3
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 +5 -6
- data/lib/facebook_ads/ad_objects/ad_account_delivery_estimate.rb +1 -0
- data/lib/facebook_ads/ad_objects/ad_account_matched_search_applications_edge_data.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 +7 -0
- data/lib/facebook_ads/ad_objects/ad_asset_feed_spec.rb +1 -0
- data/lib/facebook_ads/ad_objects/ad_campaign_activity.rb +2 -2
- data/lib/facebook_ads/ad_objects/ad_campaign_delivery_estimate.rb +1 -0
- data/lib/facebook_ads/ad_objects/ad_creative.rb +1 -0
- data/lib/facebook_ads/ad_objects/ad_creative_link_data_call_to_action.rb +1 -0
- data/lib/facebook_ads/ad_objects/ad_preview.rb +0 -1
- data/lib/facebook_ads/ad_objects/ad_set.rb +2 -0
- data/lib/facebook_ads/ad_objects/ad_study.rb +1 -0
- data/lib/facebook_ads/ad_objects/ad_video.rb +5 -27
- data/lib/facebook_ads/ad_objects/adgroup_placement_specific_review_feedback.rb +4 -0
- data/lib/facebook_ads/ad_objects/{ads_interest.rb → adoptable_pet.rb} +18 -5
- data/lib/facebook_ads/ad_objects/ads_insights.rb +4 -0
- data/lib/facebook_ads/ad_objects/application.rb +4 -0
- data/lib/facebook_ads/ad_objects/atlas_campaign.rb +2 -2
- data/lib/facebook_ads/ad_objects/business.rb +1 -121
- data/lib/facebook_ads/ad_objects/business_asset_group.rb +0 -3
- data/lib/facebook_ads/ad_objects/business_role_request.rb +5 -0
- data/lib/facebook_ads/ad_objects/business_user.rb +5 -0
- data/lib/facebook_ads/ad_objects/campaign.rb +257 -0
- data/lib/facebook_ads/ad_objects/commerce_merchant_settings.rb +8 -0
- data/lib/facebook_ads/ad_objects/event.rb +11 -0
- data/lib/facebook_ads/ad_objects/external_event_source.rb +1 -0
- data/lib/facebook_ads/ad_objects/group.rb +5 -0
- data/lib/facebook_ads/ad_objects/ig_media.rb +1 -0
- data/lib/facebook_ads/ad_objects/media_fingerprint.rb +0 -1
- data/lib/facebook_ads/ad_objects/page.rb +5 -2
- data/lib/facebook_ads/ad_objects/page_admin_note.rb +1 -0
- data/lib/facebook_ads/ad_objects/page_call_to_action.rb +3 -0
- data/lib/facebook_ads/ad_objects/page_change_proposal.rb +2 -0
- data/lib/facebook_ads/ad_objects/{brand_audience.rb → payment_subscription.rb} +23 -9
- data/lib/facebook_ads/ad_objects/post.rb +1 -1
- data/lib/facebook_ads/ad_objects/product_catalog.rb +2 -0
- data/lib/facebook_ads/ad_objects/product_feed.rb +1 -0
- data/lib/facebook_ads/ad_objects/product_set.rb +3 -0
- data/lib/facebook_ads/ad_objects/{user_influence.rb → product_set_metadata.rb} +4 -4
- data/lib/facebook_ads/ad_objects/profile.rb +1 -0
- data/lib/facebook_ads/ad_objects/profile_picture_source.rb +4 -0
- data/lib/facebook_ads/ad_objects/saved_audience.rb +1 -0
- data/lib/facebook_ads/ad_objects/server_side/content.rb +75 -13
- data/lib/facebook_ads/ad_objects/server_side/custom_data.rb +24 -6
- data/lib/facebook_ads/ad_objects/server_side/event_request.rb +80 -6
- data/lib/facebook_ads/ad_objects/server_side/user_data.rb +126 -17
- data/lib/facebook_ads/ad_objects/server_side/util.rb +204 -150
- data/lib/facebook_ads/ad_objects/system_user.rb +5 -0
- data/lib/facebook_ads/ad_objects/targeting.rb +1 -0
- data/lib/facebook_ads/ad_objects/{creative_asset_tag.rb → targeting_relaxation.rb} +2 -2
- data/lib/facebook_ads/ad_objects/third_party_measurement_report_dataset.rb +1 -0
- data/lib/facebook_ads/ad_objects/user.rb +8 -4
- data/lib/facebook_ads/ad_objects/user_taggable_friend.rb +1 -0
- data/lib/facebook_ads/ad_objects/{whats_app_business_profile.rb → work_meeting_link.rb} +3 -3
- data/lib/facebook_ads/version.rb +1 -1
- metadata +36 -16
- data/lib/facebook_ads/ad_objects/business_creative.rb +0 -50
- data/lib/facebook_ads/ad_objects/business_creative_folder.rb +0 -79
- data/lib/facebook_ads/ad_objects/business_creative_folder_sharing_agreement.rb +0 -46
- data/lib/facebook_ads/ad_objects/business_image.rb +0 -95
- data/lib/facebook_ads/ad_objects/client_transparency_status.rb +0 -40
- data/lib/facebook_ads/ad_objects/messenger_platform_referral.rb +0 -39
- data/lib/facebook_ads/ad_objects/streaming_reaction.rb +0 -51
@@ -98,6 +98,7 @@ module FacebookAds
|
|
98
98
|
field :income, { list: 'IdName' }
|
99
99
|
field :industries, { list: 'IdName' }
|
100
100
|
field :instagram_positions, { list: 'string' }
|
101
|
+
field :instream_video_skippable_excluded, 'bool'
|
101
102
|
field :interested_in, { list: 'int' }
|
102
103
|
field :interests, { list: 'IdName' }
|
103
104
|
field :is_whatsapp_destination_ad, 'bool'
|
@@ -25,9 +25,9 @@ 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 TargetingRelaxation < AdObject
|
29
29
|
|
30
|
-
field :
|
30
|
+
field :lookalike, 'int'
|
31
31
|
has_no_id
|
32
32
|
has_no_get
|
33
33
|
has_no_post
|
@@ -359,10 +359,6 @@ module FacebookAds
|
|
359
359
|
end
|
360
360
|
end
|
361
361
|
|
362
|
-
has_edge :friendlists do |edge|
|
363
|
-
edge.get 'FriendList'
|
364
|
-
end
|
365
|
-
|
366
362
|
has_edge :friends do |edge|
|
367
363
|
edge.get 'User' do |api|
|
368
364
|
api.has_param :uid, 'int'
|
@@ -494,6 +490,11 @@ module FacebookAds
|
|
494
490
|
end
|
495
491
|
end
|
496
492
|
|
493
|
+
has_edge :meeting_link do |edge|
|
494
|
+
edge.get 'WorkMeetingLink'
|
495
|
+
edge.post 'WorkMeetingLink'
|
496
|
+
end
|
497
|
+
|
497
498
|
has_edge :music do |edge|
|
498
499
|
edge.get 'Page' do |api|
|
499
500
|
api.has_param :target_id, 'string'
|
@@ -589,6 +590,7 @@ module FacebookAds
|
|
589
590
|
|
590
591
|
has_edge :picture do |edge|
|
591
592
|
edge.get 'ProfilePictureSource' do |api|
|
593
|
+
api.has_param :breaking_change, { enum: -> { ProfilePictureSource::BREAKING_CHANGE }}
|
592
594
|
api.has_param :height, 'int'
|
593
595
|
api.has_param :redirect, 'bool'
|
594
596
|
api.has_param :type, { enum: -> { ProfilePictureSource::TYPE }}
|
@@ -632,6 +634,7 @@ module FacebookAds
|
|
632
634
|
api.has_param :composer_type, 'string'
|
633
635
|
api.has_param :container_type, { enum: -> { AdVideo::CONTAINER_TYPE }}
|
634
636
|
api.has_param :content_category, { enum: -> { AdVideo::CONTENT_CATEGORY }}
|
637
|
+
api.has_param :creative_tools, 'string'
|
635
638
|
api.has_param :description, 'string'
|
636
639
|
api.has_param :direct_share_status, 'int'
|
637
640
|
api.has_param :embeddable, 'bool'
|
@@ -690,6 +693,7 @@ module FacebookAds
|
|
690
693
|
api.has_param :upload_session_id, 'string'
|
691
694
|
api.has_param :upload_setting_properties, 'string'
|
692
695
|
api.has_param :video_file_chunk, 'string'
|
696
|
+
api.has_param :video_id_original, 'string'
|
693
697
|
api.has_param :video_start_time_ms, 'int'
|
694
698
|
api.has_param :waterfall_id, 'string'
|
695
699
|
end
|
@@ -38,6 +38,7 @@ module FacebookAds
|
|
38
38
|
|
39
39
|
has_edge :picture do |edge|
|
40
40
|
edge.get 'ProfilePictureSource' do |api|
|
41
|
+
api.has_param :breaking_change, { enum: -> { ProfilePictureSource::BREAKING_CHANGE }}
|
41
42
|
api.has_param :height, 'int'
|
42
43
|
api.has_param :redirect, 'bool'
|
43
44
|
api.has_param :type, { enum: -> { ProfilePictureSource::TYPE }}
|
@@ -25,11 +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 WorkMeetingLink < AdObject
|
29
29
|
|
30
30
|
field :id, 'string'
|
31
|
-
field :
|
32
|
-
|
31
|
+
field :owner, 'User'
|
32
|
+
has_no_post
|
33
33
|
has_no_delete
|
34
34
|
|
35
35
|
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.7.0.
|
4
|
+
version: 0.7.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: 2020-
|
11
|
+
date: 2020-08-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -38,6 +38,34 @@ dependencies:
|
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '2.2'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: countries
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '3.0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '3.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: money
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '6.13'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '6.13'
|
41
69
|
- !ruby/object:Gem::Dependency
|
42
70
|
name: awesome_print
|
43
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -329,10 +357,10 @@ files:
|
|
329
357
|
- lib/facebook_ads/ad_objects/adgroup_placement_specific_review_feedback.rb
|
330
358
|
- lib/facebook_ads/ad_objects/adgroup_relevance_score.rb
|
331
359
|
- lib/facebook_ads/ad_objects/adgroup_review_feedback.rb
|
360
|
+
- lib/facebook_ads/ad_objects/adoptable_pet.rb
|
332
361
|
- lib/facebook_ads/ad_objects/ads_action_stats.rb
|
333
362
|
- lib/facebook_ads/ad_objects/ads_image_crops.rb
|
334
363
|
- lib/facebook_ads/ad_objects/ads_insights.rb
|
335
|
-
- lib/facebook_ads/ad_objects/ads_interest.rb
|
336
364
|
- lib/facebook_ads/ad_objects/ads_optimal_delivery_growth_opportunity.rb
|
337
365
|
- lib/facebook_ads/ad_objects/ads_pixel.rb
|
338
366
|
- lib/facebook_ads/ad_objects/ads_pixel_stats.rb
|
@@ -355,7 +383,6 @@ files:
|
|
355
383
|
- lib/facebook_ads/ad_objects/audio_copyright.rb
|
356
384
|
- lib/facebook_ads/ad_objects/automotive_model.rb
|
357
385
|
- lib/facebook_ads/ad_objects/billed_amount_details.rb
|
358
|
-
- lib/facebook_ads/ad_objects/brand_audience.rb
|
359
386
|
- lib/facebook_ads/ad_objects/brand_safety_block_list_usage.rb
|
360
387
|
- lib/facebook_ads/ad_objects/broad_targeting_categories.rb
|
361
388
|
- lib/facebook_ads/ad_objects/business.rb
|
@@ -364,10 +391,6 @@ files:
|
|
364
391
|
- lib/facebook_ads/ad_objects/business_application_request.rb
|
365
392
|
- lib/facebook_ads/ad_objects/business_asset_group.rb
|
366
393
|
- lib/facebook_ads/ad_objects/business_asset_sharing_agreement.rb
|
367
|
-
- lib/facebook_ads/ad_objects/business_creative.rb
|
368
|
-
- lib/facebook_ads/ad_objects/business_creative_folder.rb
|
369
|
-
- lib/facebook_ads/ad_objects/business_creative_folder_sharing_agreement.rb
|
370
|
-
- lib/facebook_ads/ad_objects/business_image.rb
|
371
394
|
- lib/facebook_ads/ad_objects/business_owned_object_on_behalf_of_request.rb
|
372
395
|
- lib/facebook_ads/ad_objects/business_page_request.rb
|
373
396
|
- lib/facebook_ads/ad_objects/business_role_request.rb
|
@@ -385,7 +408,6 @@ files:
|
|
385
408
|
- lib/facebook_ads/ad_objects/catalog_item_appeal_status.rb
|
386
409
|
- lib/facebook_ads/ad_objects/check_batch_request_status.rb
|
387
410
|
- lib/facebook_ads/ad_objects/child_event.rb
|
388
|
-
- lib/facebook_ads/ad_objects/client_transparency_status.rb
|
389
411
|
- lib/facebook_ads/ad_objects/collaborative_ads_partner_info_list_item.rb
|
390
412
|
- lib/facebook_ads/ad_objects/collaborative_ads_share_settings.rb
|
391
413
|
- lib/facebook_ads/ad_objects/comment.rb
|
@@ -400,7 +422,6 @@ files:
|
|
400
422
|
- lib/facebook_ads/ad_objects/copyright_reference_container.rb
|
401
423
|
- lib/facebook_ads/ad_objects/cover_photo.rb
|
402
424
|
- lib/facebook_ads/ad_objects/cpas_parent_catalog_settings.rb
|
403
|
-
- lib/facebook_ads/ad_objects/creative_asset_tag.rb
|
404
425
|
- lib/facebook_ads/ad_objects/creative_history.rb
|
405
426
|
- lib/facebook_ads/ad_objects/credit_partition_action_options.rb
|
406
427
|
- lib/facebook_ads/ad_objects/currency.rb
|
@@ -485,7 +506,6 @@ files:
|
|
485
506
|
- lib/facebook_ads/ad_objects/media_fingerprint.rb
|
486
507
|
- lib/facebook_ads/ad_objects/messaging_feature_review.rb
|
487
508
|
- lib/facebook_ads/ad_objects/messenger_destination_page_welcome_message.rb
|
488
|
-
- lib/facebook_ads/ad_objects/messenger_platform_referral.rb
|
489
509
|
- lib/facebook_ads/ad_objects/messenger_profile.rb
|
490
510
|
- lib/facebook_ads/ad_objects/minimum_budget.rb
|
491
511
|
- lib/facebook_ads/ad_objects/music_video_copyright.rb
|
@@ -518,6 +538,7 @@ files:
|
|
518
538
|
- lib/facebook_ads/ad_objects/page_user_message_thread_label.rb
|
519
539
|
- lib/facebook_ads/ad_objects/partner_study.rb
|
520
540
|
- lib/facebook_ads/ad_objects/payment_pricepoints.rb
|
541
|
+
- lib/facebook_ads/ad_objects/payment_subscription.rb
|
521
542
|
- lib/facebook_ads/ad_objects/permission.rb
|
522
543
|
- lib/facebook_ads/ad_objects/persona.rb
|
523
544
|
- lib/facebook_ads/ad_objects/photo.rb
|
@@ -549,6 +570,7 @@ files:
|
|
549
570
|
- lib/facebook_ads/ad_objects/product_item.rb
|
550
571
|
- lib/facebook_ads/ad_objects/product_item_commerce_insights.rb
|
551
572
|
- lib/facebook_ads/ad_objects/product_set.rb
|
573
|
+
- lib/facebook_ads/ad_objects/product_set_metadata.rb
|
552
574
|
- lib/facebook_ads/ad_objects/product_variant.rb
|
553
575
|
- lib/facebook_ads/ad_objects/profile.rb
|
554
576
|
- lib/facebook_ads/ad_objects/profile_picture_source.rb
|
@@ -582,7 +604,6 @@ files:
|
|
582
604
|
- lib/facebook_ads/ad_objects/split_test_config.rb
|
583
605
|
- lib/facebook_ads/ad_objects/split_test_winner.rb
|
584
606
|
- lib/facebook_ads/ad_objects/store_catalog_settings.rb
|
585
|
-
- lib/facebook_ads/ad_objects/streaming_reaction.rb
|
586
607
|
- lib/facebook_ads/ad_objects/system_user.rb
|
587
608
|
- lib/facebook_ads/ad_objects/tab.rb
|
588
609
|
- lib/facebook_ads/ad_objects/targeting.rb
|
@@ -602,6 +623,7 @@ files:
|
|
602
623
|
- lib/facebook_ads/ad_objects/targeting_product_audience_spec.rb
|
603
624
|
- lib/facebook_ads/ad_objects/targeting_product_audience_sub_spec.rb
|
604
625
|
- lib/facebook_ads/ad_objects/targeting_prospecting_audience.rb
|
626
|
+
- lib/facebook_ads/ad_objects/targeting_relaxation.rb
|
605
627
|
- lib/facebook_ads/ad_objects/targeting_sentence_line.rb
|
606
628
|
- lib/facebook_ads/ad_objects/third_party_measurement_report_dataset.rb
|
607
629
|
- lib/facebook_ads/ad_objects/tracking_and_conversion_with_defaults.rb
|
@@ -612,7 +634,6 @@ files:
|
|
612
634
|
- lib/facebook_ads/ad_objects/user_device.rb
|
613
635
|
- lib/facebook_ads/ad_objects/user_id_for_app.rb
|
614
636
|
- lib/facebook_ads/ad_objects/user_id_for_page.rb
|
615
|
-
- lib/facebook_ads/ad_objects/user_influence.rb
|
616
637
|
- lib/facebook_ads/ad_objects/user_lead_gen_disclaimer_response.rb
|
617
638
|
- lib/facebook_ads/ad_objects/user_lead_gen_field_data.rb
|
618
639
|
- lib/facebook_ads/ad_objects/user_payment_methods_info.rb
|
@@ -634,9 +655,9 @@ files:
|
|
634
655
|
- lib/facebook_ads/ad_objects/voip_info.rb
|
635
656
|
- lib/facebook_ads/ad_objects/web_app_link.rb
|
636
657
|
- lib/facebook_ads/ad_objects/whats_app_business_account.rb
|
637
|
-
- lib/facebook_ads/ad_objects/whats_app_business_profile.rb
|
638
658
|
- lib/facebook_ads/ad_objects/windows_app_link.rb
|
639
659
|
- lib/facebook_ads/ad_objects/windows_phone_app_link.rb
|
660
|
+
- lib/facebook_ads/ad_objects/work_meeting_link.rb
|
640
661
|
- lib/facebook_ads/ad_objects/work_user_frontline.rb
|
641
662
|
- lib/facebook_ads/api_request.rb
|
642
663
|
- lib/facebook_ads/api_response.rb
|
@@ -696,8 +717,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
696
717
|
- !ruby/object:Gem::Version
|
697
718
|
version: '0'
|
698
719
|
requirements: []
|
699
|
-
|
700
|
-
rubygems_version: 2.7.7
|
720
|
+
rubygems_version: 3.0.8
|
701
721
|
signing_key:
|
702
722
|
specification_version: 4
|
703
723
|
summary: Facebook Business API SDK for Ruby (Official)
|
@@ -1,50 +0,0 @@
|
|
1
|
-
# Copyright (c) 2017-present, Facebook, Inc. All rights reserved.
|
2
|
-
#
|
3
|
-
# You are hereby granted a non-exclusive, worldwide, royalty-free license to use,
|
4
|
-
# copy, modify, and distribute this software in source code or binary form for use
|
5
|
-
# in connection with the web services and APIs provided by Facebook.
|
6
|
-
#
|
7
|
-
# As with any software that integrates with the Facebook platform, your use of
|
8
|
-
# this software is subject to the Facebook Platform Policy
|
9
|
-
# [http://developers.facebook.com/policy/]. This copyright notice shall be
|
10
|
-
# included in all copies or substantial portions of the software.
|
11
|
-
#
|
12
|
-
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
13
|
-
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
14
|
-
# FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
15
|
-
# COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
16
|
-
# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
17
|
-
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
18
|
-
|
19
|
-
# FB:AUTOGEN
|
20
|
-
|
21
|
-
module FacebookAds
|
22
|
-
# This class is auto-generated.
|
23
|
-
|
24
|
-
# For any issues or feature requests related to this class, please let us know
|
25
|
-
# on github and we'll fix in our codegen framework. We'll not be able to accept
|
26
|
-
# pull request for this class.
|
27
|
-
|
28
|
-
class BusinessCreative < AdObject
|
29
|
-
|
30
|
-
field :creation_time, 'datetime'
|
31
|
-
field :duration, 'int'
|
32
|
-
field :hash, 'string'
|
33
|
-
field :height, 'int'
|
34
|
-
field :id, 'string'
|
35
|
-
field :name, 'string'
|
36
|
-
field :thumbnail, 'string'
|
37
|
-
field :type, 'string'
|
38
|
-
field :url, 'string'
|
39
|
-
field :video_id, 'string'
|
40
|
-
field :width, 'int'
|
41
|
-
has_no_get
|
42
|
-
has_no_post
|
43
|
-
has_no_delete
|
44
|
-
|
45
|
-
has_edge :ad_placement_validation_results do |edge|
|
46
|
-
edge.get
|
47
|
-
end
|
48
|
-
|
49
|
-
end
|
50
|
-
end
|
@@ -1,79 +0,0 @@
|
|
1
|
-
# Copyright (c) 2017-present, Facebook, Inc. All rights reserved.
|
2
|
-
#
|
3
|
-
# You are hereby granted a non-exclusive, worldwide, royalty-free license to use,
|
4
|
-
# copy, modify, and distribute this software in source code or binary form for use
|
5
|
-
# in connection with the web services and APIs provided by Facebook.
|
6
|
-
#
|
7
|
-
# As with any software that integrates with the Facebook platform, your use of
|
8
|
-
# this software is subject to the Facebook Platform Policy
|
9
|
-
# [http://developers.facebook.com/policy/]. This copyright notice shall be
|
10
|
-
# included in all copies or substantial portions of the software.
|
11
|
-
#
|
12
|
-
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
13
|
-
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
14
|
-
# FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
15
|
-
# COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
16
|
-
# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
17
|
-
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
18
|
-
|
19
|
-
# FB:AUTOGEN
|
20
|
-
|
21
|
-
module FacebookAds
|
22
|
-
# This class is auto-generated.
|
23
|
-
|
24
|
-
# For any issues or feature requests related to this class, please let us know
|
25
|
-
# on github and we'll fix in our codegen framework. We'll not be able to accept
|
26
|
-
# pull request for this class.
|
27
|
-
|
28
|
-
class BusinessCreativeFolder < AdObject
|
29
|
-
PERMITTED_TASKS = [
|
30
|
-
"CREATE_CONTENT",
|
31
|
-
"MANAGE_CONTENT",
|
32
|
-
"MANAGE_PERMISSIONS",
|
33
|
-
"VIEW_CONTENT",
|
34
|
-
"VIEW_INSIGHTS",
|
35
|
-
]
|
36
|
-
|
37
|
-
TASKS = [
|
38
|
-
"CREATE_CONTENT",
|
39
|
-
"MANAGE_CONTENT",
|
40
|
-
"MANAGE_PERMISSIONS",
|
41
|
-
"VIEW_CONTENT",
|
42
|
-
"VIEW_INSIGHTS",
|
43
|
-
]
|
44
|
-
|
45
|
-
|
46
|
-
field :business, 'Business'
|
47
|
-
field :creation_time, 'datetime'
|
48
|
-
field :creative_insight_permissions, 'hash'
|
49
|
-
field :description, 'string'
|
50
|
-
field :id, 'string'
|
51
|
-
field :media_library_url, 'string'
|
52
|
-
field :name, 'string'
|
53
|
-
field :parent_folder, 'BusinessCreativeFolder'
|
54
|
-
field :parent_folder_id, 'string'
|
55
|
-
|
56
|
-
has_edge :agencies do |edge|
|
57
|
-
edge.get 'Business'
|
58
|
-
edge.post 'BusinessCreativeFolder' do |api|
|
59
|
-
api.has_param :business, 'string'
|
60
|
-
api.has_param :permitted_tasks, { list: { enum: -> { BusinessCreativeFolder::PERMITTED_TASKS }} }
|
61
|
-
end
|
62
|
-
end
|
63
|
-
|
64
|
-
has_edge :assigned_users do |edge|
|
65
|
-
edge.get 'AssignedUser' do |api|
|
66
|
-
api.has_param :business, 'string'
|
67
|
-
end
|
68
|
-
edge.post 'BusinessCreativeFolder' do |api|
|
69
|
-
api.has_param :tasks, { list: { enum: -> { BusinessCreativeFolder::TASKS }} }
|
70
|
-
api.has_param :user, 'int'
|
71
|
-
end
|
72
|
-
end
|
73
|
-
|
74
|
-
has_edge :subfolders do |edge|
|
75
|
-
edge.get 'BusinessCreativeFolder'
|
76
|
-
end
|
77
|
-
|
78
|
-
end
|
79
|
-
end
|
@@ -1,46 +0,0 @@
|
|
1
|
-
# Copyright (c) 2017-present, Facebook, Inc. All rights reserved.
|
2
|
-
#
|
3
|
-
# You are hereby granted a non-exclusive, worldwide, royalty-free license to use,
|
4
|
-
# copy, modify, and distribute this software in source code or binary form for use
|
5
|
-
# in connection with the web services and APIs provided by Facebook.
|
6
|
-
#
|
7
|
-
# As with any software that integrates with the Facebook platform, your use of
|
8
|
-
# this software is subject to the Facebook Platform Policy
|
9
|
-
# [http://developers.facebook.com/policy/]. This copyright notice shall be
|
10
|
-
# included in all copies or substantial portions of the software.
|
11
|
-
#
|
12
|
-
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
13
|
-
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
14
|
-
# FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
15
|
-
# COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
16
|
-
# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
17
|
-
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
18
|
-
|
19
|
-
# FB:AUTOGEN
|
20
|
-
|
21
|
-
module FacebookAds
|
22
|
-
# This class is auto-generated.
|
23
|
-
|
24
|
-
# For any issues or feature requests related to this class, please let us know
|
25
|
-
# on github and we'll fix in our codegen framework. We'll not be able to accept
|
26
|
-
# pull request for this class.
|
27
|
-
|
28
|
-
class 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
|