facebookbusiness 0.12.0.0 → 0.14.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/facebook_ads/ad_objects/ad.rb +1 -0
- data/lib/facebook_ads/ad_objects/ad_account.rb +4 -8
- data/lib/facebook_ads/ad_objects/ad_account_ad_volume.rb +6 -0
- data/lib/facebook_ads/ad_objects/ad_account_delivery_estimate.rb +6 -9
- data/lib/facebook_ads/ad_objects/ad_account_reach_estimate.rb +2 -1
- data/lib/facebook_ads/ad_objects/ad_account_targeting_unified.rb +3 -1
- data/lib/facebook_ads/ad_objects/ad_activity.rb +2 -0
- data/lib/facebook_ads/ad_objects/ad_asset_feed_spec.rb +2 -3
- data/lib/facebook_ads/ad_objects/ad_campaign_activity.rb +8 -16
- data/lib/facebook_ads/ad_objects/ad_campaign_delivery_estimate.rb +6 -9
- data/lib/facebook_ads/ad_objects/ad_creative.rb +5 -0
- data/lib/facebook_ads/ad_objects/ad_creative_link_data.rb +1 -0
- data/lib/facebook_ads/ad_objects/ad_creative_link_data_call_to_action.rb +2 -0
- data/lib/facebook_ads/ad_objects/ad_creative_link_data_image_overlay_spec.rb +1 -0
- data/lib/facebook_ads/ad_objects/ad_image.rb +1 -0
- data/lib/facebook_ads/ad_objects/ad_placement.rb +1 -0
- data/lib/facebook_ads/ad_objects/ad_preview.rb +9 -0
- data/lib/facebook_ads/ad_objects/ad_promoted_object.rb +2 -0
- data/lib/facebook_ads/ad_objects/ad_rule.rb +27 -0
- data/lib/facebook_ads/ad_objects/ad_rule_execution_spec.rb +1 -0
- data/lib/facebook_ads/ad_objects/ad_set.rb +6 -8
- data/lib/facebook_ads/ad_objects/ad_video.rb +28 -5
- 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 +3 -0
- data/lib/facebook_ads/ad_objects/ads_pixel.rb +5 -0
- data/lib/facebook_ads/ad_objects/album.rb +0 -1
- data/lib/facebook_ads/ad_objects/application.rb +37 -27
- data/lib/facebook_ads/ad_objects/automotive_model.rb +0 -25
- data/lib/facebook_ads/ad_objects/broad_targeting_categories.rb +2 -1
- data/lib/facebook_ads/ad_objects/business.rb +46 -34
- data/lib/facebook_ads/ad_objects/business_asset_group.rb +1 -0
- data/lib/facebook_ads/ad_objects/business_asset_sharing_agreement.rb +1 -0
- data/lib/facebook_ads/ad_objects/business_image.rb +44 -0
- data/lib/facebook_ads/ad_objects/business_owned_object_on_behalf_of_request.rb +1 -0
- data/lib/facebook_ads/ad_objects/campaign.rb +4 -0
- data/lib/facebook_ads/ad_objects/canvas.rb +1 -10
- data/lib/facebook_ads/ad_objects/check_batch_request_status.rb +6 -0
- data/lib/facebook_ads/ad_objects/comment.rb +2 -0
- data/lib/facebook_ads/ad_objects/commerce_merchant_settings.rb +6 -0
- data/lib/facebook_ads/ad_objects/commerce_order.rb +15 -0
- data/lib/facebook_ads/ad_objects/content_delivery_report.rb +3 -0
- data/lib/facebook_ads/ad_objects/{business_agreement.rb → copyright_audio_asset.rb} +6 -10
- data/lib/facebook_ads/ad_objects/cpas_business_setup_config.rb +43 -0
- data/lib/facebook_ads/ad_objects/cpas_merchant_config.rb +41 -0
- data/lib/facebook_ads/ad_objects/{oracle_transaction.rb → credit_card.rb} +20 -21
- data/lib/facebook_ads/ad_objects/custom_audience.rb +7 -1
- data/lib/facebook_ads/ad_objects/custom_audience_data_source.rb +1 -0
- data/lib/facebook_ads/ad_objects/event.rb +4 -1
- data/lib/facebook_ads/ad_objects/{adoptable_pet.rb → fundraiser_person_to_charity.rb} +32 -39
- data/lib/facebook_ads/ad_objects/game_item.rb +48 -0
- data/lib/facebook_ads/ad_objects/group.rb +37 -4
- data/lib/facebook_ads/ad_objects/ig_comment.rb +2 -0
- data/lib/facebook_ads/ad_objects/ig_media.rb +13 -1
- data/lib/facebook_ads/ad_objects/ig_user.rb +33 -0
- data/lib/facebook_ads/ad_objects/insights_result.rb +1 -0
- data/lib/facebook_ads/ad_objects/instagram_insights_result.rb +9 -0
- data/lib/facebook_ads/ad_objects/instagram_user.rb +1 -0
- data/lib/facebook_ads/ad_objects/{native_offer_discount.rb → instant_articles_stats.rb} +6 -7
- data/lib/facebook_ads/ad_objects/jobs_job.rb +7 -0
- data/lib/facebook_ads/ad_objects/life_event.rb +0 -9
- data/lib/facebook_ads/ad_objects/live_video.rb +1 -1
- data/lib/facebook_ads/ad_objects/live_video_input_stream.rb +0 -1
- data/lib/facebook_ads/ad_objects/live_video_recommended_encoder_settings.rb +39 -0
- data/lib/facebook_ads/ad_objects/local_service_business.rb +38 -0
- data/lib/facebook_ads/ad_objects/media_fingerprint.rb +1 -0
- data/lib/facebook_ads/ad_objects/{page_admin_note.rb → messaging_feature_status.rb} +4 -6
- data/lib/facebook_ads/ad_objects/offline_conversion_data_set.rb +6 -5
- data/lib/facebook_ads/ad_objects/offline_conversion_data_set_permissions.rb +40 -0
- data/lib/facebook_ads/ad_objects/{native_offer_view.rb → offline_conversion_data_set_upload.rb} +34 -16
- data/lib/facebook_ads/ad_objects/{billed_amount_details.rb → offline_conversion_data_set_usage.rb} +2 -5
- data/lib/facebook_ads/ad_objects/omega_customer_trx.rb +2 -3
- data/lib/facebook_ads/ad_objects/page.rb +38 -76
- data/lib/facebook_ads/ad_objects/{invoice_campaign.rb → page_post_experiment.rb} +13 -11
- data/lib/facebook_ads/ad_objects/partner_study.rb +0 -4
- data/lib/facebook_ads/ad_objects/payment_engine_payment.rb +1 -0
- data/lib/facebook_ads/ad_objects/private_lift_study_instance.rb +3 -0
- data/lib/facebook_ads/ad_objects/product_catalog.rb +56 -20
- data/lib/facebook_ads/ad_objects/product_catalog_data_source.rb +46 -0
- data/lib/facebook_ads/ad_objects/product_catalog_diagnostic_group.rb +16 -0
- data/lib/facebook_ads/ad_objects/product_feed.rb +17 -11
- data/lib/facebook_ads/ad_objects/product_feed_missing_feed_item_replacement.rb +0 -1
- data/lib/facebook_ads/ad_objects/product_feed_upload.rb +3 -1
- data/lib/facebook_ads/ad_objects/product_feed_upload_error.rb +6 -0
- data/lib/facebook_ads/ad_objects/product_group.rb +12 -7
- data/lib/facebook_ads/ad_objects/{domain.rb → product_image.rb} +2 -3
- data/lib/facebook_ads/ad_objects/product_item.rb +346 -0
- data/lib/facebook_ads/ad_objects/{adgroup_relevance_score.rb → product_item_error.rb} +5 -5
- data/lib/facebook_ads/ad_objects/product_item_importer_address.rb +42 -0
- data/lib/facebook_ads/ad_objects/product_set.rb +3 -7
- data/lib/facebook_ads/ad_objects/profile.rb +2 -0
- data/lib/facebook_ads/ad_objects/reach_frequency_estimates_placement_breakdown.rb +1 -0
- data/lib/facebook_ads/ad_objects/reach_frequency_prediction.rb +6 -1
- data/lib/facebook_ads/ad_objects/saved_audience.rb +2 -2
- data/lib/facebook_ads/ad_objects/{audience_insights_study_spec.rb → shadow_ig_media_product_tags.rb} +12 -9
- data/lib/facebook_ads/ad_objects/{dynamic_content_set.rb → shop.rb} +3 -3
- data/lib/facebook_ads/ad_objects/unified_thread.rb +1 -0
- data/lib/facebook_ads/ad_objects/user.rb +31 -20
- data/lib/facebook_ads/ad_objects/vehicle.rb +10 -0
- data/lib/facebook_ads/ad_objects/whats_app_business_account.rb +19 -12
- data/lib/facebook_ads/version.rb +2 -2
- metadata +22 -22
- data/lib/facebook_ads/ad_objects/ad_account_activity.rb +0 -63
- data/lib/facebook_ads/ad_objects/ad_campaign_group_activity.rb +0 -99
- data/lib/facebook_ads/ad_objects/ad_report_spec.rb +0 -51
- data/lib/facebook_ads/ad_objects/adgroup_activity.rb +0 -128
- data/lib/facebook_ads/ad_objects/atlas_campaign.rb +0 -153
- data/lib/facebook_ads/ad_objects/business_unit.rb +0 -132
- data/lib/facebook_ads/ad_objects/live_encoder.rb +0 -100
- data/lib/facebook_ads/ad_objects/native_offer.rb +0 -122
@@ -1,51 +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 AdReportSpec < AdObject
|
29
|
-
|
30
|
-
field :account_id, 'string'
|
31
|
-
field :actions_group_by, { list: 'string' }
|
32
|
-
field :creation_source, 'string'
|
33
|
-
field :data_columns, { list: 'string' }
|
34
|
-
field :date_preset, 'string'
|
35
|
-
field :export_columns, { list: 'string' }
|
36
|
-
field :filters, { list: 'object' }
|
37
|
-
field :format_version, 'int'
|
38
|
-
field :id, 'string'
|
39
|
-
field :insights_section, 'object'
|
40
|
-
field :name, 'string'
|
41
|
-
field :report_schedule_id, 'string'
|
42
|
-
field :sort_by, 'string'
|
43
|
-
field :sort_dir, 'string'
|
44
|
-
field :time_increment, 'string'
|
45
|
-
field :time_interval, 'object'
|
46
|
-
field :time_ranges, { list: 'object' }
|
47
|
-
has_no_post
|
48
|
-
has_no_delete
|
49
|
-
|
50
|
-
end
|
51
|
-
end
|
@@ -1,128 +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 AdgroupActivity < AdObject
|
29
|
-
OBJECTIVE_NEW = [
|
30
|
-
"APP_INSTALLS",
|
31
|
-
"BRAND_AWARENESS",
|
32
|
-
"CANVAS_APP_ENGAGEMENT",
|
33
|
-
"CANVAS_APP_INSTALLS",
|
34
|
-
"EVENT_RESPONSES",
|
35
|
-
"LEAD_GENERATION",
|
36
|
-
"LINK_CLICKS",
|
37
|
-
"LOCAL_AWARENESS",
|
38
|
-
"MESSAGES",
|
39
|
-
"MOBILE_APP_ENGAGEMENT",
|
40
|
-
"MOBILE_APP_INSTALLS",
|
41
|
-
"NONE",
|
42
|
-
"OFFER_CLAIMS",
|
43
|
-
"PAGE_LIKES",
|
44
|
-
"POST_ENGAGEMENT",
|
45
|
-
"PRODUCT_CATALOG_SALES",
|
46
|
-
"VIDEO_VIEWS",
|
47
|
-
"WEBSITE_CONVERSIONS",
|
48
|
-
]
|
49
|
-
|
50
|
-
OBJECTIVE_OLD = [
|
51
|
-
"APP_INSTALLS",
|
52
|
-
"BRAND_AWARENESS",
|
53
|
-
"CANVAS_APP_ENGAGEMENT",
|
54
|
-
"CANVAS_APP_INSTALLS",
|
55
|
-
"EVENT_RESPONSES",
|
56
|
-
"LEAD_GENERATION",
|
57
|
-
"LINK_CLICKS",
|
58
|
-
"LOCAL_AWARENESS",
|
59
|
-
"MESSAGES",
|
60
|
-
"MOBILE_APP_ENGAGEMENT",
|
61
|
-
"MOBILE_APP_INSTALLS",
|
62
|
-
"NONE",
|
63
|
-
"OFFER_CLAIMS",
|
64
|
-
"PAGE_LIKES",
|
65
|
-
"POST_ENGAGEMENT",
|
66
|
-
"PRODUCT_CATALOG_SALES",
|
67
|
-
"VIDEO_VIEWS",
|
68
|
-
"WEBSITE_CONVERSIONS",
|
69
|
-
]
|
70
|
-
|
71
|
-
|
72
|
-
field :ad_creative_id_new, 'AdCreative'
|
73
|
-
field :ad_creative_id_old, 'AdCreative'
|
74
|
-
field :asset_feed_id_new, 'string'
|
75
|
-
field :asset_feed_id_old, 'string'
|
76
|
-
field :bid_amount_new, 'int'
|
77
|
-
field :bid_amount_old, 'int'
|
78
|
-
field :bid_info_new, 'hash'
|
79
|
-
field :bid_info_old, 'hash'
|
80
|
-
field :bid_type_new, 'string'
|
81
|
-
field :bid_type_old, 'string'
|
82
|
-
field :conversion_specs_new, { list: 'object' }
|
83
|
-
field :conversion_specs_old, { list: 'object' }
|
84
|
-
field :created_time, 'datetime'
|
85
|
-
field :display_sequence_new, 'int'
|
86
|
-
field :display_sequence_old, 'int'
|
87
|
-
field :engagement_audience_new, 'bool'
|
88
|
-
field :engagement_audience_old, 'bool'
|
89
|
-
field :event_time, 'datetime'
|
90
|
-
field :event_type, 'string'
|
91
|
-
field :force_run_status_new, 'bool'
|
92
|
-
field :force_run_status_old, 'bool'
|
93
|
-
field :friendly_name_new, 'string'
|
94
|
-
field :friendly_name_old, 'string'
|
95
|
-
field :id, 'string'
|
96
|
-
field :is_reviewer_admin_new, 'bool'
|
97
|
-
field :is_reviewer_admin_old, 'bool'
|
98
|
-
field :objective_new, { enum: -> { OBJECTIVE_NEW }}
|
99
|
-
field :objective_old, { enum: -> { OBJECTIVE_OLD }}
|
100
|
-
field :objective_source_new, 'string'
|
101
|
-
field :objective_source_old, 'string'
|
102
|
-
field :priority_new, 'int'
|
103
|
-
field :priority_old, 'int'
|
104
|
-
field :reason_new, 'string'
|
105
|
-
field :reason_old, 'string'
|
106
|
-
field :run_status_new, 'string'
|
107
|
-
field :run_status_old, 'string'
|
108
|
-
field :source_adgroup_id_new, 'Ad'
|
109
|
-
field :source_adgroup_id_old, 'Ad'
|
110
|
-
field :start_time_new, 'datetime'
|
111
|
-
field :start_time_old, 'datetime'
|
112
|
-
field :stop_time_new, 'datetime'
|
113
|
-
field :stop_time_old, 'datetime'
|
114
|
-
field :target_spec_id_new, 'string'
|
115
|
-
field :target_spec_id_old, 'string'
|
116
|
-
field :targets_spec_new, 'object'
|
117
|
-
field :targets_spec_old, 'object'
|
118
|
-
field :tracking_specs_new, { list: 'object' }
|
119
|
-
field :tracking_specs_old, { list: 'object' }
|
120
|
-
field :update_time_new, 'datetime'
|
121
|
-
field :update_time_old, 'datetime'
|
122
|
-
field :view_tags_new, { list: 'string' }
|
123
|
-
field :view_tags_old, { list: 'string' }
|
124
|
-
has_no_post
|
125
|
-
has_no_delete
|
126
|
-
|
127
|
-
end
|
128
|
-
end
|
@@ -1,153 +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 AtlasCampaign < AdObject
|
29
|
-
|
30
|
-
field :ad_platform, 'object'
|
31
|
-
field :alias, 'string'
|
32
|
-
field :cost_per_1k_impressions, 'double'
|
33
|
-
field :cost_per_click, 'double'
|
34
|
-
field :cost_per_visit, 'double'
|
35
|
-
field :created_by, 'object'
|
36
|
-
field :created_date, 'datetime'
|
37
|
-
field :even_credit_convs, 'double'
|
38
|
-
field :even_credit_convs_per_1k_impress, 'double'
|
39
|
-
field :even_credit_convs_per_click, 'double'
|
40
|
-
field :even_credit_convs_per_visit, 'double'
|
41
|
-
field :even_credit_cpa, 'double'
|
42
|
-
field :even_credit_revenue, 'double'
|
43
|
-
field :even_credit_roas, 'double'
|
44
|
-
field :first_click_convs, 'double'
|
45
|
-
field :first_click_convs_per_1k_impress, 'double'
|
46
|
-
field :first_click_convs_per_click, 'double'
|
47
|
-
field :first_click_convs_per_visit, 'double'
|
48
|
-
field :first_click_cpa, 'double'
|
49
|
-
field :first_click_revenue, 'double'
|
50
|
-
field :first_click_roas, 'double'
|
51
|
-
field :first_touch_convs, 'double'
|
52
|
-
field :first_touch_convs_per_1k_impress, 'double'
|
53
|
-
field :first_touch_convs_per_click, 'double'
|
54
|
-
field :first_touch_convs_per_visit, 'double'
|
55
|
-
field :first_touch_cpa, 'double'
|
56
|
-
field :first_touch_revenue, 'double'
|
57
|
-
field :first_touch_roas, 'double'
|
58
|
-
field :id, 'string'
|
59
|
-
field :is_archived, 'bool'
|
60
|
-
field :last_click_convs, 'double'
|
61
|
-
field :last_click_convs_per_1k_impress, 'double'
|
62
|
-
field :last_click_convs_per_click, 'double'
|
63
|
-
field :last_click_convs_per_visit, 'double'
|
64
|
-
field :last_click_cpa, 'double'
|
65
|
-
field :last_click_revenue, 'double'
|
66
|
-
field :last_click_roas, 'double'
|
67
|
-
field :last_click_with_extrapolation_convs, 'double'
|
68
|
-
field :last_click_with_extrapolation_convs_per_100_clicks, 'double'
|
69
|
-
field :last_click_with_extrapolation_convs_per_1k_impress, 'double'
|
70
|
-
field :last_click_with_extrapolation_convs_per_click, 'double'
|
71
|
-
field :last_click_with_extrapolation_convs_per_visit, 'double'
|
72
|
-
field :last_click_with_extrapolation_cpa, 'double'
|
73
|
-
field :last_click_with_extrapolation_revenue, 'double'
|
74
|
-
field :last_click_with_extrapolation_roas, 'double'
|
75
|
-
field :last_click_with_extrapolation_unattributed, 'double'
|
76
|
-
field :last_modified_by, 'object'
|
77
|
-
field :last_modified_date, 'datetime'
|
78
|
-
field :last_touch_convs, 'double'
|
79
|
-
field :last_touch_convs_per_1k_impress, 'double'
|
80
|
-
field :last_touch_convs_per_click, 'double'
|
81
|
-
field :last_touch_convs_per_visit, 'double'
|
82
|
-
field :last_touch_cpa, 'double'
|
83
|
-
field :last_touch_revenue, 'double'
|
84
|
-
field :last_touch_roas, 'double'
|
85
|
-
field :name, 'string'
|
86
|
-
field :net_media_cost, 'double'
|
87
|
-
field :positional_30fl_convs, 'double'
|
88
|
-
field :positional_30fl_convs_per_1k_impress, 'double'
|
89
|
-
field :positional_30fl_convs_per_click, 'double'
|
90
|
-
field :positional_30fl_convs_per_visit, 'double'
|
91
|
-
field :positional_30fl_cpa, 'double'
|
92
|
-
field :positional_30fl_revenue, 'double'
|
93
|
-
field :positional_30fl_roas, 'double'
|
94
|
-
field :positional_40fl_convs, 'double'
|
95
|
-
field :positional_40fl_convs_per_1k_impress, 'double'
|
96
|
-
field :positional_40fl_convs_per_click, 'double'
|
97
|
-
field :positional_40fl_convs_per_visit, 'double'
|
98
|
-
field :positional_40fl_cpa, 'double'
|
99
|
-
field :positional_40fl_revenue, 'double'
|
100
|
-
field :positional_40fl_roas, 'double'
|
101
|
-
field :report_click_through_rate, 'double'
|
102
|
-
field :report_clicks, 'int'
|
103
|
-
field :report_impressions, 'int'
|
104
|
-
field :report_visits, 'int'
|
105
|
-
field :time_decay_1day_convs, 'double'
|
106
|
-
field :time_decay_1day_convs_per_1k_impress, 'double'
|
107
|
-
field :time_decay_1day_convs_per_click, 'double'
|
108
|
-
field :time_decay_1day_convs_per_visit, 'double'
|
109
|
-
field :time_decay_1day_cpa, 'double'
|
110
|
-
field :time_decay_1day_revenue, 'double'
|
111
|
-
field :time_decay_1day_roas, 'double'
|
112
|
-
field :time_decay_7day_convs, 'double'
|
113
|
-
field :time_decay_7day_convs_per_1k_impress, 'double'
|
114
|
-
field :time_decay_7day_convs_per_click, 'double'
|
115
|
-
field :time_decay_7day_convs_per_visit, 'double'
|
116
|
-
field :time_decay_7day_cpa, 'double'
|
117
|
-
field :time_decay_7day_revenue, 'double'
|
118
|
-
field :time_decay_7day_roas, 'double'
|
119
|
-
field :type, 'string'
|
120
|
-
has_no_post
|
121
|
-
has_no_delete
|
122
|
-
|
123
|
-
has_edge :ad_sets do |edge|
|
124
|
-
edge.get do |api|
|
125
|
-
api.has_param :filter_by, 'string'
|
126
|
-
api.has_param :metric_scope, 'hash'
|
127
|
-
api.has_param :order_by, 'string'
|
128
|
-
end
|
129
|
-
end
|
130
|
-
|
131
|
-
has_edge :business_unit do |edge|
|
132
|
-
edge.get 'BusinessUnit'
|
133
|
-
end
|
134
|
-
|
135
|
-
has_edge :metrics_breakdown do |edge|
|
136
|
-
edge.get do |api|
|
137
|
-
api.has_param :dimensions, { list: { enum: %w{AD_ID AD_SET_ID CAMPAIGN_ID DEVICE_TYPE SOURCE_CHANNEL }} }
|
138
|
-
api.has_param :granularity, { enum: %w{DAY HOUR MONTH WEEK_SUNDAY YEAR }}
|
139
|
-
api.has_param :metric_scope, 'hash'
|
140
|
-
api.has_param :order_by, { list: 'hash' }
|
141
|
-
end
|
142
|
-
end
|
143
|
-
|
144
|
-
has_edge :sources do |edge|
|
145
|
-
edge.get do |api|
|
146
|
-
api.has_param :filter_by, 'string'
|
147
|
-
api.has_param :metric_scope, 'hash'
|
148
|
-
api.has_param :order_by, 'string'
|
149
|
-
end
|
150
|
-
end
|
151
|
-
|
152
|
-
end
|
153
|
-
end
|
@@ -1,132 +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 BusinessUnit < AdObject
|
29
|
-
|
30
|
-
field :business, 'Business'
|
31
|
-
field :creation_time, 'datetime'
|
32
|
-
field :currency, 'string'
|
33
|
-
field :excluded_sources, 'object'
|
34
|
-
field :id, 'string'
|
35
|
-
field :is_enabled_for_measurement, 'bool'
|
36
|
-
field :name, 'string'
|
37
|
-
field :time_zone, 'string'
|
38
|
-
field :visits_available_date, 'int'
|
39
|
-
field :business_units, { list: 'object' }
|
40
|
-
has_no_post
|
41
|
-
has_no_delete
|
42
|
-
|
43
|
-
has_edge :ad_accounts do |edge|
|
44
|
-
edge.get 'AdAccount'
|
45
|
-
end
|
46
|
-
|
47
|
-
has_edge :ad_platforms do |edge|
|
48
|
-
edge.get do |api|
|
49
|
-
api.has_param :filter_by, 'string'
|
50
|
-
api.has_param :metric_scope, 'hash'
|
51
|
-
api.has_param :order_by, 'string'
|
52
|
-
end
|
53
|
-
end
|
54
|
-
|
55
|
-
has_edge :atlas_sales_accesses do |edge|
|
56
|
-
edge.get
|
57
|
-
edge.post do |api|
|
58
|
-
api.has_param :access_request_id, 'string'
|
59
|
-
api.has_param :status, 'string'
|
60
|
-
end
|
61
|
-
end
|
62
|
-
|
63
|
-
has_edge :campaigns do |edge|
|
64
|
-
edge.get 'AtlasCampaign' do |api|
|
65
|
-
api.has_param :filter_by, 'string'
|
66
|
-
api.has_param :metric_scope, 'hash'
|
67
|
-
api.has_param :order_by, 'string'
|
68
|
-
end
|
69
|
-
end
|
70
|
-
|
71
|
-
has_edge :conversion_events do |edge|
|
72
|
-
edge.get do |api|
|
73
|
-
api.has_param :filter_by, 'string'
|
74
|
-
api.has_param :metric_scope, 'hash'
|
75
|
-
api.has_param :order_by, 'string'
|
76
|
-
end
|
77
|
-
end
|
78
|
-
|
79
|
-
has_edge :conversion_paths do |edge|
|
80
|
-
edge.get do |api|
|
81
|
-
api.has_param :click_lookback_window, 'int'
|
82
|
-
api.has_param :date_range, 'hash'
|
83
|
-
api.has_param :fb_conversion_event_id, 'int'
|
84
|
-
api.has_param :limit, 'int'
|
85
|
-
api.has_param :metric_context, 'hash'
|
86
|
-
api.has_param :time_period, { enum: %w{all_available all_dates custom date_range fifteen_days last_fourteen_days last_hundred_fourty_four_hours last_month last_ninety_days last_quarter last_seven_days last_sixty_days last_thirty_days last_twenty_four_hours last_year month_to_date quarter_to_date seven_days thirty_days this_month_whole_days today week_to_date year_to_date yesterday }}
|
87
|
-
api.has_param :view_lookback_window, 'int'
|
88
|
-
end
|
89
|
-
end
|
90
|
-
|
91
|
-
has_edge :custom_breakdowns do |edge|
|
92
|
-
edge.get do |api|
|
93
|
-
api.has_param :filter_by, 'string'
|
94
|
-
api.has_param :order_by, 'string'
|
95
|
-
end
|
96
|
-
end
|
97
|
-
|
98
|
-
has_edge :diagnostics do |edge|
|
99
|
-
edge.get do |api|
|
100
|
-
api.has_param :filter_by, 'string'
|
101
|
-
api.has_param :order_by, 'string'
|
102
|
-
end
|
103
|
-
end
|
104
|
-
|
105
|
-
has_edge :external_import_file do |edge|
|
106
|
-
edge.get do |api|
|
107
|
-
api.has_param :filter_by, 'string'
|
108
|
-
api.has_param :order_by, 'string'
|
109
|
-
end
|
110
|
-
end
|
111
|
-
|
112
|
-
has_edge :reports do |edge|
|
113
|
-
edge.get do |api|
|
114
|
-
api.has_param :filter_by, 'string'
|
115
|
-
api.has_param :order_by, 'string'
|
116
|
-
end
|
117
|
-
end
|
118
|
-
|
119
|
-
has_edge :sources do |edge|
|
120
|
-
edge.get do |api|
|
121
|
-
api.has_param :filter_by, 'string'
|
122
|
-
api.has_param :metric_scope, 'hash'
|
123
|
-
api.has_param :order_by, 'string'
|
124
|
-
end
|
125
|
-
end
|
126
|
-
|
127
|
-
has_edge :users do |edge|
|
128
|
-
edge.get 'BusinessUser'
|
129
|
-
end
|
130
|
-
|
131
|
-
end
|
132
|
-
end
|
@@ -1,100 +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 LiveEncoder < AdObject
|
29
|
-
CAP_AUDIO_CODECS = [
|
30
|
-
"AAC",
|
31
|
-
]
|
32
|
-
|
33
|
-
CAP_STREAMING_PROTOCOLS = [
|
34
|
-
"HTTPS_DASH",
|
35
|
-
"RTMPS",
|
36
|
-
"WEBRTC",
|
37
|
-
]
|
38
|
-
|
39
|
-
CAP_VIDEO_CODECS = [
|
40
|
-
"H264",
|
41
|
-
]
|
42
|
-
|
43
|
-
STATUS = [
|
44
|
-
"CAPTURE",
|
45
|
-
"LIVE",
|
46
|
-
"NONE",
|
47
|
-
"PREVIEW",
|
48
|
-
"READY",
|
49
|
-
"REGISTER",
|
50
|
-
]
|
51
|
-
|
52
|
-
|
53
|
-
field :brand, 'string'
|
54
|
-
field :creation_time, 'datetime'
|
55
|
-
field :current_broadcast, 'LiveVideo'
|
56
|
-
field :current_input_stream, 'LiveVideoInputStream'
|
57
|
-
field :device_id, 'string'
|
58
|
-
field :id, 'string'
|
59
|
-
field :last_heartbeat_time, 'datetime'
|
60
|
-
field :model, 'string'
|
61
|
-
field :name, 'string'
|
62
|
-
field :status, 'string'
|
63
|
-
field :version, 'string'
|
64
|
-
|
65
|
-
has_edge :telemetry do |edge|
|
66
|
-
edge.post 'LiveEncoder' do |api|
|
67
|
-
api.has_param :bitrate, 'int'
|
68
|
-
api.has_param :broadcast_id, 'string'
|
69
|
-
api.has_param :cpu_load_15m, 'double'
|
70
|
-
api.has_param :cpu_load_1m, 'double'
|
71
|
-
api.has_param :cpu_load_5m, 'double'
|
72
|
-
api.has_param :cpu_temperature, 'int'
|
73
|
-
api.has_param :cpu_usage, 'double'
|
74
|
-
api.has_param :framerate, 'double'
|
75
|
-
api.has_param :frames_dropped, 'double'
|
76
|
-
api.has_param :gpu_temperature, 'int'
|
77
|
-
api.has_param :gpu_usage, 'double'
|
78
|
-
api.has_param :last_audio_timecode, 'int'
|
79
|
-
api.has_param :last_video_keyframe_timecode, 'int'
|
80
|
-
api.has_param :last_video_timecode, 'int'
|
81
|
-
api.has_param :memory_usage, 'double'
|
82
|
-
api.has_param :network_latency, 'double'
|
83
|
-
api.has_param :network_rx_bandwidth, 'int'
|
84
|
-
api.has_param :network_rx_packets_dropped, 'double'
|
85
|
-
api.has_param :network_rx_packets_errors, 'double'
|
86
|
-
api.has_param :network_tx_bandwidth, 'int'
|
87
|
-
api.has_param :network_tx_packets_dropped, 'double'
|
88
|
-
api.has_param :network_tx_packets_errors, 'double'
|
89
|
-
api.has_param :process_uptime, 'int'
|
90
|
-
api.has_param :status, { enum: -> { LiveEncoder::STATUS }}
|
91
|
-
api.has_param :timestamp, 'int'
|
92
|
-
api.has_param :total_audio_frames_sent, 'int'
|
93
|
-
api.has_param :total_video_frames_sent, 'int'
|
94
|
-
api.has_param :total_video_keyframes_sent, 'int'
|
95
|
-
api.has_param :uptime, 'int'
|
96
|
-
end
|
97
|
-
end
|
98
|
-
|
99
|
-
end
|
100
|
-
end
|
@@ -1,122 +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 NativeOffer < AdObject
|
29
|
-
UNIQUE_CODES_FILE_CODE_TYPE = [
|
30
|
-
"barcodes",
|
31
|
-
"discount_and_barcodes",
|
32
|
-
"discount_and_discount",
|
33
|
-
"discount_codes",
|
34
|
-
"instore_barcodes",
|
35
|
-
"instore_discount_codes",
|
36
|
-
"online_discount_codes",
|
37
|
-
]
|
38
|
-
|
39
|
-
BARCODE_TYPE = [
|
40
|
-
"CODE128",
|
41
|
-
"CODE128B",
|
42
|
-
"CODE93",
|
43
|
-
"DATABAR",
|
44
|
-
"DATABAR_EXPANDED",
|
45
|
-
"DATABAR_EXPANDED_STACKED",
|
46
|
-
"DATABAR_LIMITED",
|
47
|
-
"DATAMATRIX",
|
48
|
-
"EAN",
|
49
|
-
"PDF417",
|
50
|
-
"QR",
|
51
|
-
"UPC_A",
|
52
|
-
"UPC_E",
|
53
|
-
]
|
54
|
-
|
55
|
-
LOCATION_TYPE = [
|
56
|
-
"both",
|
57
|
-
"offline",
|
58
|
-
"online",
|
59
|
-
]
|
60
|
-
|
61
|
-
|
62
|
-
field :barcode_photo, 'string'
|
63
|
-
field :barcode_photo_uri, 'string'
|
64
|
-
field :barcode_type, 'string'
|
65
|
-
field :barcode_value, 'string'
|
66
|
-
field :block_reshares, 'bool'
|
67
|
-
field :details, 'string'
|
68
|
-
field :disable_location, 'bool'
|
69
|
-
field :discounts, { list: 'NativeOfferDiscount' }
|
70
|
-
field :expiration_time, 'datetime'
|
71
|
-
field :id, 'string'
|
72
|
-
field :instore_code, 'string'
|
73
|
-
field :location_type, 'string'
|
74
|
-
field :max_save_count, 'int'
|
75
|
-
field :online_code, 'string'
|
76
|
-
field :page, 'Page'
|
77
|
-
field :page_set_id, 'string'
|
78
|
-
field :redemption_code, 'string'
|
79
|
-
field :redemption_link, 'string'
|
80
|
-
field :save_count, 'int'
|
81
|
-
field :terms, 'string'
|
82
|
-
field :title, 'string'
|
83
|
-
field :total_unique_codes, 'string'
|
84
|
-
field :unique_codes, 'string'
|
85
|
-
field :unique_codes_file_code_type, 'string'
|
86
|
-
field :unique_codes_file_name, 'string'
|
87
|
-
field :unique_codes_file_upload_status, 'string'
|
88
|
-
has_no_post
|
89
|
-
has_no_delete
|
90
|
-
|
91
|
-
has_edge :codes do |edge|
|
92
|
-
edge.post 'NativeOffer' do |api|
|
93
|
-
api.has_param :file, 'file'
|
94
|
-
api.has_param :unique_codes_file_code_type, { enum: -> { NativeOffer::UNIQUE_CODES_FILE_CODE_TYPE }}
|
95
|
-
end
|
96
|
-
end
|
97
|
-
|
98
|
-
has_edge :nativeofferviews do |edge|
|
99
|
-
edge.post 'NativeOffer' do |api|
|
100
|
-
api.has_param :ad_account, 'string'
|
101
|
-
api.has_param :ad_image_hashes, { list: 'string' }
|
102
|
-
api.has_param :carousel_captions, { list: 'string' }
|
103
|
-
api.has_param :carousel_data, { list: 'object' }
|
104
|
-
api.has_param :carousel_links, { list: 'string' }
|
105
|
-
api.has_param :deeplinks, { list: 'string' }
|
106
|
-
api.has_param :image_crops, { list: 'hash' }
|
107
|
-
api.has_param :message, 'string'
|
108
|
-
api.has_param :photos, { list: 'string' }
|
109
|
-
api.has_param :place_data, 'object'
|
110
|
-
api.has_param :published, 'bool'
|
111
|
-
api.has_param :published_ads, 'bool'
|
112
|
-
api.has_param :urls, { list: 'string' }
|
113
|
-
api.has_param :videos, { list: 'string' }
|
114
|
-
end
|
115
|
-
end
|
116
|
-
|
117
|
-
has_edge :views do |edge|
|
118
|
-
edge.get 'NativeOfferView'
|
119
|
-
end
|
120
|
-
|
121
|
-
end
|
122
|
-
end
|