facebookbusiness 0.3.1.6 → 0.3.1.7

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 93c0accb24029cf6a49a011fb74bebb1af810ea260c42b821340d0edd6051d7a
4
- data.tar.gz: 2a4152b9d688a9f29f0cfe1b7ce4fa5eafbe7b94686d7e06b320c19e5ae24e7f
3
+ metadata.gz: 89c7f4ce91bea9381bd346b2e0660539cb5945fae99e09bfb9b6c6805289cd4d
4
+ data.tar.gz: f43f398919f57de6245de481f1eb9bd87246a19759b08609221a84df76ff3afb
5
5
  SHA512:
6
- metadata.gz: 6d218df3eb051c8ac7df5ef1f5bb1cef36923df853d9e617caa2a4c847834a2b17251d6a4acb4c5c17528f740e2750dd71ad500ee716e83ddb3087e120abd647
7
- data.tar.gz: 3494390ba28a81a799ad85d7eef83fded1f3ac078df7d35c03887ea48def5a16e913bf4753e64f75a9d1e98cb04ee7106ea25b1f5b69aed1ed152791232fe8da
6
+ metadata.gz: 769fb9204656882396a1a7f6acdad5eefd93e768bc7b782a3d47fedabbce0f6a4682eb3aa698d14f65d43e5cae665981b88d597d955230ddb0fda9648a9cf860
7
+ data.tar.gz: cb0b35715059ccb9378770bb24f2e7aa902b85514b4df8b328004d2217da431dd4b87ae7292ed6d69292efd8085baf9b3bd5a23c6e7b8a9ff8390f4f7c184ef7
@@ -153,11 +153,11 @@ module FacebookAds
153
153
  has_edge :adlabels do |edge|
154
154
  edge.delete do |api|
155
155
  api.has_param :adlabels, { list: 'object' }
156
- api.has_param :execution_options, { list: { enum: %w{validate_only }} }
156
+ api.has_param :execution_options, { list: { enum: -> { Ad::EXECUTION_OPTIONS }} }
157
157
  end
158
158
  edge.post 'Ad' do |api|
159
159
  api.has_param :adlabels, { list: 'object' }
160
- api.has_param :execution_options, { list: { enum: %w{validate_only }} }
160
+ api.has_param :execution_options, { list: { enum: -> { Ad::EXECUTION_OPTIONS }} }
161
161
  end
162
162
  end
163
163
 
@@ -128,7 +128,6 @@ module FacebookAds
128
128
  "VIDEO",
129
129
  "LOOKALIKE",
130
130
  "ENGAGEMENT",
131
- "DATA_SET",
132
131
  "BAG_OF_ACCOUNTS",
133
132
  "STUDY_RULE_AUDIENCE",
134
133
  "FOX",
@@ -1041,6 +1040,10 @@ module FacebookAds
1041
1040
  end
1042
1041
  end
1043
1042
 
1043
+ has_edge :max_bid do |edge|
1044
+ edge.get 'AdAccountMaxBid'
1045
+ end
1046
+
1044
1047
  has_edge :minimum_budgets do |edge|
1045
1048
  edge.get 'MinimumBudget' do |api|
1046
1049
  api.has_param :bid_amount, 'int'
@@ -0,0 +1,36 @@
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 AdAccountMaxBid < AdObject
29
+
30
+ field :max_bid, 'int'
31
+ field :id, 'string'
32
+ has_no_post
33
+ has_no_delete
34
+
35
+ end
36
+ end
@@ -57,6 +57,7 @@ module FacebookAds
57
57
  field :format_option, { enum: -> { FORMAT_OPTION }}
58
58
  field :image_crops, 'AdsImageCrops'
59
59
  field :image_hash, 'string'
60
+ field :image_layer_specs, { list: 'AdCreativeLinkDataImageLayerSpec' }
60
61
  field :image_overlay_spec, 'AdCreativeLinkDataImageOverlaySpec'
61
62
  field :link, 'string'
62
63
  field :message, 'string'
@@ -46,6 +46,7 @@ module FacebookAds
46
46
  "PLATFORM",
47
47
  "PROPERTY",
48
48
  "CLICKED_VIEW_TAG",
49
+ "NO_FILL_REASON",
49
50
  ]
50
51
 
51
52
  METRICS = [
@@ -80,6 +81,7 @@ module FacebookAds
80
81
  "FB_AD_NETWORK_FAST_RETURN_DENOMINATOR",
81
82
  "FB_AD_NETWORK_CLICK_VALUE_SCORE_NUMERATOR",
82
83
  "FB_AD_NETWORK_CLICK_VALUE_SCORE_DENOMINATOR",
84
+ "FB_AD_NETWORK_NO_FILL",
83
85
  ]
84
86
 
85
87
  ORDERING_COLUMN = [
@@ -46,6 +46,7 @@ module FacebookAds
46
46
  "PLATFORM",
47
47
  "PROPERTY",
48
48
  "CLICKED_VIEW_TAG",
49
+ "NO_FILL_REASON",
49
50
  ]
50
51
 
51
52
  METRICS = [
@@ -80,6 +81,7 @@ module FacebookAds
80
81
  "FB_AD_NETWORK_FAST_RETURN_DENOMINATOR",
81
82
  "FB_AD_NETWORK_CLICK_VALUE_SCORE_NUMERATOR",
82
83
  "FB_AD_NETWORK_CLICK_VALUE_SCORE_DENOMINATOR",
84
+ "FB_AD_NETWORK_NO_FILL",
83
85
  ]
84
86
 
85
87
  ORDERING_COLUMN = [
@@ -110,6 +110,8 @@ module FacebookAds
110
110
  "CANDIDATE_VIDEOS",
111
111
  "FUNDRAISER_COVER_VIDEO",
112
112
  "PROTON",
113
+ "BELL_POLL",
114
+ "CIVIC_PROPOSAL_COVER_VIDEO",
113
115
  ]
114
116
 
115
117
  CONTENT_CATEGORY = [
@@ -150,6 +150,7 @@ module FacebookAds
150
150
  field :canvas_component_avg_pct_view, { list: 'AdsActionStats' }
151
151
  field :clicks, 'string'
152
152
  field :cost_per_10_sec_video_view, { list: 'AdsActionStats' }
153
+ field :cost_per_15_sec_video_view, { list: 'AdsActionStats' }
153
154
  field :cost_per_2_sec_continuous_video_view, { list: 'AdsActionStats' }
154
155
  field :cost_per_action_type, { list: 'AdsActionStats' }
155
156
  field :cost_per_ad_click, { list: 'AdsActionStats' }
@@ -159,6 +160,7 @@ module FacebookAds
159
160
  field :cost_per_inline_post_engagement, 'string'
160
161
  field :cost_per_one_thousand_ad_impression, { list: 'AdsActionStats' }
161
162
  field :cost_per_outbound_click, { list: 'AdsActionStats' }
163
+ field :cost_per_thruplay, { list: 'AdsActionStats' }
162
164
  field :cost_per_unique_action_type, { list: 'AdsActionStats' }
163
165
  field :cost_per_unique_click, 'string'
164
166
  field :cost_per_unique_inline_link_click, 'string'
@@ -198,6 +200,7 @@ module FacebookAds
198
200
  field :labels, 'string'
199
201
  field :link_url_asset, 'object'
200
202
  field :location, 'string'
203
+ field :media_asset, 'object'
201
204
  field :mobile_app_purchase_roas, { list: 'AdsActionStats' }
202
205
  field :objective, 'string'
203
206
  field :outbound_clicks, { list: 'AdsActionStats' }
@@ -227,8 +230,10 @@ module FacebookAds
227
230
  field :unique_outbound_clicks_ctr, { list: 'AdsActionStats' }
228
231
  field :unique_video_continuous_2_sec_watched_actions, { list: 'AdsActionStats' }
229
232
  field :unique_video_view_10_sec, { list: 'AdsActionStats' }
233
+ field :unique_video_view_15_sec, { list: 'AdsActionStats' }
230
234
  field :updated_time, 'string'
231
235
  field :video_10_sec_watched_actions, { list: 'AdsActionStats' }
236
+ field :video_15_sec_watched_actions, { list: 'AdsActionStats' }
232
237
  field :video_30_sec_watched_actions, { list: 'AdsActionStats' }
233
238
  field :video_asset, 'object'
234
239
  field :video_avg_percent_watched_actions, { list: 'AdsActionStats' }
@@ -243,6 +248,7 @@ module FacebookAds
243
248
  field :video_play_retention_0_to_15s_actions, { list: 'object' }
244
249
  field :video_play_retention_20_to_60s_actions, { list: 'object' }
245
250
  field :video_play_retention_graph_actions, { list: 'object' }
251
+ field :video_thruplay_watched_actions, { list: 'AdsActionStats' }
246
252
  field :video_time_watched_actions, { list: 'AdsActionStats' }
247
253
  field :website_ctr, { list: 'AdsActionStats' }
248
254
  field :website_purchase_roas, { list: 'AdsActionStats' }
@@ -31,7 +31,8 @@ module FacebookAds
31
31
  field :device_type, 'string'
32
32
  field :event, 'string'
33
33
  field :event_detection_method, 'string'
34
- field :rule_conditions, 'string'
34
+ field :matched_rule_conditions, 'string'
35
+ field :source_rule_condition, 'string'
35
36
  field :timestamp, 'string'
36
37
  field :url, 'string'
37
38
  field :id, 'string'
@@ -69,6 +69,7 @@ module FacebookAds
69
69
  "PLATFORM",
70
70
  "PROPERTY",
71
71
  "CLICKED_VIEW_TAG",
72
+ "NO_FILL_REASON",
72
73
  ]
73
74
 
74
75
  METRICS = [
@@ -103,6 +104,7 @@ module FacebookAds
103
104
  "FB_AD_NETWORK_FAST_RETURN_DENOMINATOR",
104
105
  "FB_AD_NETWORK_CLICK_VALUE_SCORE_NUMERATOR",
105
106
  "FB_AD_NETWORK_CLICK_VALUE_SCORE_DENOMINATOR",
107
+ "FB_AD_NETWORK_NO_FILL",
106
108
  ]
107
109
 
108
110
  ORDERING_COLUMN = [
@@ -65,7 +65,6 @@ module FacebookAds
65
65
  "VIDEO",
66
66
  "LOOKALIKE",
67
67
  "ENGAGEMENT",
68
- "DATA_SET",
69
68
  "BAG_OF_ACCOUNTS",
70
69
  "STUDY_RULE_AUDIENCE",
71
70
  "FOX",
@@ -59,6 +59,7 @@ module FacebookAds
59
59
  field :start_time, 'int'
60
60
  field :status, 'string'
61
61
  field :targeting, 'Targeting'
62
+ field :third_party_integrated_deal, 'bool'
62
63
  has_no_post
63
64
  has_no_delete
64
65
 
@@ -376,17 +376,17 @@ module FacebookAds
376
376
  api.has_param :user_selected_place, 'bool'
377
377
  api.has_param :added, 'string'
378
378
  api.has_param :alias, 'string'
379
- api.has_param :fb:channel, 'string'
379
+ api.has_param :fb_channel, 'string'
380
380
  api.has_param :created_time, 'datetime'
381
381
  api.has_param :end_time, 'datetime'
382
382
  api.has_param :expires_in, 'int'
383
- api.has_param :fb:explicitly_shared, 'bool'
384
- api.has_param :image:height, 'int'
385
- api.has_param :image:secure_url, 'string'
386
- api.has_param :image:type, 'string'
387
- api.has_param :image:url, 'string'
388
- api.has_param :image:user_generated, 'bool'
389
- api.has_param :image:width, 'int'
383
+ api.has_param :fb_explicitly_shared, 'bool'
384
+ api.has_param :image_height, 'int'
385
+ api.has_param :image_secure_url, 'string'
386
+ api.has_param :image_type, 'string'
387
+ api.has_param :image_url, 'string'
388
+ api.has_param :image_user_generated, 'bool'
389
+ api.has_param :image_width, 'int'
390
390
  api.has_param :no_feed_story, 'bool'
391
391
  api.has_param :no_action_link, 'bool'
392
392
  api.has_param :notify, 'bool'
@@ -28,8 +28,10 @@ module FacebookAds
28
28
  class MerchantReport < AdObject
29
29
 
30
30
  field :add_to_cart, 'int'
31
+ field :brand, 'string'
31
32
  field :catalog_segment_id, 'string'
32
33
  field :catalog_segment_purchase_value, 'double'
34
+ field :category, 'string'
33
35
  field :date, 'string'
34
36
  field :link_clicks, 'int'
35
37
  field :page_id, 'string'
@@ -110,6 +110,9 @@ module FacebookAds
110
110
  "NEWS_SUBSCRIPTIONS_PUBLISHER_TOOLS",
111
111
  "NEWS_SUBSCRIPTIONS_PUBLISHER_ASSET_MANAGEMENT",
112
112
  "NEWS_SUBSCRIPTIONS_PUBLISHER_OFFER_MANAGEMENT",
113
+ "NEWS_SUBSCRIPTIONS_PUBLISHER_CONFIG",
114
+ "NEWS_SUBSCRIPTIONS_PUBLISHER_INSIGHTS",
115
+ "NEWS_SUBSCRIPTIONS_PUBLISHER_TEST_USERS",
113
116
  "QR_CODE",
114
117
  "ORGANIC_PIXEL",
115
118
  "CREDIBILITY_INDICATORS",
@@ -137,6 +137,11 @@ module FacebookAds
137
137
  api.has_param :bulk_pagination, 'bool'
138
138
  api.has_param :filter, 'object'
139
139
  end
140
+ edge.post 'Flight' do |api|
141
+ api.has_param :images, { list: 'object' }
142
+ api.has_param :origin_airport, 'string'
143
+ api.has_param :destination_airport, 'string'
144
+ end
140
145
  end
141
146
 
142
147
  has_edge :home_listings do |edge|
@@ -53,7 +53,6 @@ module FacebookAds
53
53
 
54
54
  FEED_TYPE = [
55
55
  "AUTO",
56
- "AUTO_OFFER",
57
56
  "DESTINATION",
58
57
  "FLIGHT",
59
58
  "HOME_LISTING",
@@ -236,17 +236,17 @@ module FacebookAds
236
236
  api.has_param :user_selected_place, 'bool'
237
237
  api.has_param :added, 'string'
238
238
  api.has_param :alias, 'string'
239
- api.has_param :fb:channel, 'string'
239
+ api.has_param :fb_channel, 'string'
240
240
  api.has_param :created_time, 'datetime'
241
241
  api.has_param :end_time, 'datetime'
242
242
  api.has_param :expires_in, 'int'
243
- api.has_param :fb:explicitly_shared, 'bool'
244
- api.has_param :image:height, 'int'
245
- api.has_param :image:secure_url, 'string'
246
- api.has_param :image:type, 'string'
247
- api.has_param :image:url, 'string'
248
- api.has_param :image:user_generated, 'bool'
249
- api.has_param :image:width, 'int'
243
+ api.has_param :fb_explicitly_shared, 'bool'
244
+ api.has_param :image_height, 'int'
245
+ api.has_param :image_secure_url, 'string'
246
+ api.has_param :image_type, 'string'
247
+ api.has_param :image_url, 'string'
248
+ api.has_param :image_user_generated, 'bool'
249
+ api.has_param :image_width, 'int'
250
250
  api.has_param :no_feed_story, 'bool'
251
251
  api.has_param :no_action_link, 'bool'
252
252
  api.has_param :notify, 'bool'
@@ -614,17 +614,17 @@ module FacebookAds
614
614
  api.has_param :user_selected_place, 'bool'
615
615
  api.has_param :added, 'string'
616
616
  api.has_param :alias, 'string'
617
- api.has_param :fb:channel, 'string'
617
+ api.has_param :fb_channel, 'string'
618
618
  api.has_param :created_time, 'datetime'
619
619
  api.has_param :end_time, 'datetime'
620
620
  api.has_param :expires_in, 'int'
621
- api.has_param :fb:explicitly_shared, 'bool'
622
- api.has_param :image:height, 'int'
623
- api.has_param :image:secure_url, 'string'
624
- api.has_param :image:type, 'string'
625
- api.has_param :image:url, 'string'
626
- api.has_param :image:user_generated, 'bool'
627
- api.has_param :image:width, 'int'
621
+ api.has_param :fb_explicitly_shared, 'bool'
622
+ api.has_param :image_height, 'int'
623
+ api.has_param :image_secure_url, 'string'
624
+ api.has_param :image_type, 'string'
625
+ api.has_param :image_url, 'string'
626
+ api.has_param :image_user_generated, 'bool'
627
+ api.has_param :image_width, 'int'
628
628
  api.has_param :no_feed_story, 'bool'
629
629
  api.has_param :no_action_link, 'bool'
630
630
  api.has_param :notify, 'bool'
@@ -650,17 +650,17 @@ module FacebookAds
650
650
  api.has_param :user_selected_place, 'bool'
651
651
  api.has_param :added, 'string'
652
652
  api.has_param :alias, 'string'
653
- api.has_param :fb:channel, 'string'
653
+ api.has_param :fb_channel, 'string'
654
654
  api.has_param :created_time, 'datetime'
655
655
  api.has_param :end_time, 'datetime'
656
656
  api.has_param :expires_in, 'int'
657
- api.has_param :fb:explicitly_shared, 'bool'
658
- api.has_param :image:height, 'int'
659
- api.has_param :image:secure_url, 'string'
660
- api.has_param :image:type, 'string'
661
- api.has_param :image:url, 'string'
662
- api.has_param :image:user_generated, 'bool'
663
- api.has_param :image:width, 'int'
657
+ api.has_param :fb_explicitly_shared, 'bool'
658
+ api.has_param :image_height, 'int'
659
+ api.has_param :image_secure_url, 'string'
660
+ api.has_param :image_type, 'string'
661
+ api.has_param :image_url, 'string'
662
+ api.has_param :image_user_generated, 'bool'
663
+ api.has_param :image_width, 'int'
664
664
  api.has_param :no_feed_story, 'bool'
665
665
  api.has_param :no_action_link, 'bool'
666
666
  api.has_param :notify, 'bool'
@@ -705,13 +705,6 @@ module FacebookAds
705
705
  end
706
706
  end
707
707
 
708
- has_edge :leadgen_forms do |edge|
709
- edge.get 'LeadgenForm' do |api|
710
- api.has_param :query, 'string'
711
- api.has_param :page_id, 'string'
712
- end
713
- end
714
-
715
708
  has_edge :likes do |edge|
716
709
  edge.delete do |api|
717
710
  api.has_param :uid, 'int'
@@ -895,17 +888,17 @@ module FacebookAds
895
888
  api.has_param :user_selected_place, 'bool'
896
889
  api.has_param :added, 'string'
897
890
  api.has_param :alias, 'string'
898
- api.has_param :fb:channel, 'string'
891
+ api.has_param :fb_channel, 'string'
899
892
  api.has_param :created_time, 'datetime'
900
893
  api.has_param :end_time, 'datetime'
901
894
  api.has_param :expires_in, 'int'
902
- api.has_param :fb:explicitly_shared, 'bool'
903
- api.has_param :image:height, 'int'
904
- api.has_param :image:secure_url, 'string'
905
- api.has_param :image:type, 'string'
906
- api.has_param :image:url, 'string'
907
- api.has_param :image:user_generated, 'bool'
908
- api.has_param :image:width, 'int'
895
+ api.has_param :fb_explicitly_shared, 'bool'
896
+ api.has_param :image_height, 'int'
897
+ api.has_param :image_secure_url, 'string'
898
+ api.has_param :image_type, 'string'
899
+ api.has_param :image_url, 'string'
900
+ api.has_param :image_user_generated, 'bool'
901
+ api.has_param :image_width, 'int'
909
902
  api.has_param :no_feed_story, 'bool'
910
903
  api.has_param :no_action_link, 'bool'
911
904
  api.has_param :notify, 'bool'
@@ -49,6 +49,7 @@ module FacebookAds
49
49
  field :id, 'string'
50
50
  field :images, { list: 'string' }
51
51
  field :interior_color, 'string'
52
+ field :legal_disclosure_impressum_url, 'string'
52
53
  field :make, 'string'
53
54
  field :mileage, 'object'
54
55
  field :model, 'string'
@@ -19,6 +19,6 @@
19
19
  # FB:AUTOGEN
20
20
 
21
21
  module FacebookAds
22
- VERSION = '0.3.1.6'
22
+ VERSION = '0.3.1.7'
23
23
  API_VERSION = '3.1'
24
24
  end
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.3.1.6
4
+ version: 0.3.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Facebook
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-10-10 00:00:00.000000000 Z
11
+ date: 2018-10-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -201,6 +201,7 @@ files:
201
201
  - lib/facebook_ads/ad_objects/ad_account_default_objective.rb
202
202
  - lib/facebook_ads/ad_objects/ad_account_delivery_estimate.rb
203
203
  - lib/facebook_ads/ad_objects/ad_account_matched_search_applications_edge_data.rb
204
+ - lib/facebook_ads/ad_objects/ad_account_max_bid.rb
204
205
  - lib/facebook_ads/ad_objects/ad_account_placement_usage.rb
205
206
  - lib/facebook_ads/ad_objects/ad_account_promotable_objects.rb
206
207
  - lib/facebook_ads/ad_objects/ad_account_recommended_camapaign_budget.rb