facebookbusiness 0.3.0.3 → 0.3.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0eda0b9ae47fb55ce06afb9f3d41cd61596ddca217ac3591169ff39f060027cd
4
- data.tar.gz: af8f25c9b3e56feecaf815a0f6a44f8eb8e157dded76d8d764747ec46359e4c2
3
+ metadata.gz: 0ecf452985f65655cb397e4cd042916bbc5c7277bc1ddda27fb98bef2addecbe
4
+ data.tar.gz: a9d76b2b2e0fc6b5e910cbd4e92f64a750e421aca256d532f94609f3d5756321
5
5
  SHA512:
6
- metadata.gz: 83954a5eac8bb6074a206f66f4144a56317bfc997edead0da66d5181be0dda82a80afa1d38af8174ac61a763c0e6cc5b9f89e960a8f65709149f6d9ea0f32194
7
- data.tar.gz: e10e102eff09d7391c59257e9ed3a2e6234064262ddaa2eafd9ff8a12fbef52d4548a02ec186aacebf998f9e287df791e6fec7fa7484cd7107b8b9979816ac48
6
+ metadata.gz: 62752479afddb788623558eca18677f742931c930373a333d3deaf2afca103a21ad27b4b0f8382dd79ca9947d3dc3df08d70fe107b03154781071fb14bc2b3ea
7
+ data.tar.gz: 88e775b84f67f0726c47def9dca3d6753feb2ef626b834c8aeb7b63f24ab3cf83701471959ef2a9a7e01747bc0d5414360c09d41e77761917a192ec2db9c366f
@@ -307,12 +307,16 @@ module FacebookAds
307
307
  api.has_param :creative_sequence, { list: 'string' }
308
308
  api.has_param :daily_budget, 'int'
309
309
  api.has_param :daily_imps, 'int'
310
+ api.has_param :daily_min_spend_target, 'int'
311
+ api.has_param :daily_spend_cap, 'int'
310
312
  api.has_param :destination_type, { enum: -> { AdSet::DESTINATION_TYPE }}
311
313
  api.has_param :end_time, 'datetime'
312
314
  api.has_param :execution_options, { list: { enum: -> { AdSet::EXECUTION_OPTIONS }} }
313
315
  api.has_param :frequency_control_specs, { list: 'object' }
314
316
  api.has_param :lifetime_budget, 'int'
315
317
  api.has_param :lifetime_imps, 'int'
318
+ api.has_param :lifetime_min_spend_target, 'int'
319
+ api.has_param :lifetime_spend_cap, 'int'
316
320
  api.has_param :name, 'string'
317
321
  api.has_param :optimization_goal, { enum: -> { AdSet::OPTIMIZATION_GOAL }}
318
322
  api.has_param :pacing_type, { list: 'string' }
@@ -378,6 +382,7 @@ module FacebookAds
378
382
  api.has_param :og_suggestion_mechanism, 'string'
379
383
  api.has_param :original_fov, 'int'
380
384
  api.has_param :original_projection_type, { enum: %w{equirectangular cubemap equiangular_cubemap half_equirectangular }}
385
+ api.has_param :react_mode_metadata, 'string'
381
386
  api.has_param :referenced_sticker_id, 'string'
382
387
  api.has_param :slideshow_spec, 'hash'
383
388
  api.has_param :start_offset, 'int'
@@ -463,10 +468,13 @@ module FacebookAds
463
468
  end
464
469
  edge.post 'Campaign' do |api|
465
470
  api.has_param :adlabels, { list: 'object' }
471
+ api.has_param :bid_strategy, { enum: -> { Campaign::BID_STRATEGY }}
466
472
  api.has_param :budget_rebalance_flag, 'bool'
467
473
  api.has_param :buying_type, 'string'
474
+ api.has_param :daily_budget, 'int'
468
475
  api.has_param :execution_options, { list: { enum: -> { Campaign::EXECUTION_OPTIONS }} }
469
476
  api.has_param :iterative_split_test_configs, { list: 'object' }
477
+ api.has_param :lifetime_budget, 'int'
470
478
  api.has_param :name, 'string'
471
479
  api.has_param :objective, { enum: -> { Campaign::OBJECTIVE }}
472
480
  api.has_param :promoted_object, 'object'
@@ -152,6 +152,8 @@ module FacebookAds
152
152
  field :created_time, 'datetime'
153
153
  field :creative_sequence, { list: 'string' }
154
154
  field :daily_budget, 'string'
155
+ field :daily_min_spend_target, 'string'
156
+ field :daily_spend_cap, 'string'
155
157
  field :destination_type, 'string'
156
158
  field :effective_status, { enum: -> { EFFECTIVE_STATUS }}
157
159
  field :end_time, 'datetime'
@@ -160,6 +162,8 @@ module FacebookAds
160
162
  field :instagram_actor_id, 'string'
161
163
  field :lifetime_budget, 'string'
162
164
  field :lifetime_imps, 'int'
165
+ field :lifetime_min_spend_target, 'string'
166
+ field :lifetime_spend_cap, 'string'
163
167
  field :name, 'string'
164
168
  field :optimization_goal, { enum: -> { OPTIMIZATION_GOAL }}
165
169
  field :pacing_type, { list: 'string' }
@@ -26,6 +26,12 @@ module FacebookAds
26
26
  # pull request for this class.
27
27
 
28
28
  class Campaign < AdObject
29
+ BID_STRATEGY = [
30
+ "LOWEST_COST_WITHOUT_CAP",
31
+ "LOWEST_COST_WITH_BID_CAP",
32
+ "TARGET_COST",
33
+ ]
34
+
29
35
  CONFIGURED_STATUS = [
30
36
  "ACTIVE",
31
37
  "PAUSED",
@@ -111,16 +117,20 @@ module FacebookAds
111
117
 
112
118
  field :account_id, 'string'
113
119
  field :adlabels, { list: 'AdLabel' }
120
+ field :bid_strategy, { enum: -> { BID_STRATEGY }}
114
121
  field :boosted_object_id, 'string'
115
122
  field :brand_lift_studies, { list: 'AdStudy' }
116
123
  field :budget_rebalance_flag, 'bool'
124
+ field :budget_remaining, 'string'
117
125
  field :buying_type, 'string'
118
126
  field :can_create_brand_lift_study, 'bool'
119
127
  field :can_use_spend_cap, 'bool'
120
128
  field :configured_status, { enum: -> { CONFIGURED_STATUS }}
121
129
  field :created_time, 'datetime'
130
+ field :daily_budget, 'string'
122
131
  field :effective_status, { enum: -> { EFFECTIVE_STATUS }}
123
132
  field :id, 'string'
133
+ field :lifetime_budget, 'string'
124
134
  field :name, 'string'
125
135
  field :objective, 'string'
126
136
  field :recommendations, { list: 'AdRecommendation' }
@@ -173,6 +173,7 @@ module FacebookAds
173
173
  api.has_param :initial_pitch, 'int'
174
174
  api.has_param :original_fov, 'int'
175
175
  api.has_param :original_projection_type, { enum: %w{equirectangular cubemap equiangular_cubemap half_equirectangular }}
176
+ api.has_param :react_mode_metadata, 'string'
176
177
  api.has_param :referenced_sticker_id, 'string'
177
178
  api.has_param :replace_video_id, 'string'
178
179
  api.has_param :slideshow_spec, 'hash'
@@ -49,7 +49,7 @@ module FacebookAds
49
49
  has_edge :extended_credit_invoice_groups do |edge|
50
50
  edge.get 'ExtendedCreditInvoiceGroup'
51
51
  edge.post 'ExtendedCredit' do |api|
52
- api.has_param :email, 'string'
52
+ api.has_param :emails, { list: 'string' }
53
53
  api.has_param :name, 'string'
54
54
  end
55
55
  end
@@ -527,6 +527,7 @@ module FacebookAds
527
527
  api.has_param :publish_event_id, 'int'
528
528
  api.has_param :published, 'bool'
529
529
  api.has_param :quote, 'string'
530
+ api.has_param :react_mode_metadata, 'string'
530
531
  api.has_param :ref, { list: 'string' }
531
532
  api.has_param :referenceable_image_ids, { list: 'string' }
532
533
  api.has_param :sales_promo_id, 'int'
@@ -1190,6 +1191,7 @@ module FacebookAds
1190
1191
  api.has_param :original_fov, 'int'
1191
1192
  api.has_param :original_projection_type, { enum: %w{equirectangular cubemap equiangular_cubemap half_equirectangular }}
1192
1193
  api.has_param :published, 'bool'
1194
+ api.has_param :react_mode_metadata, 'string'
1193
1195
  api.has_param :reference_only, 'bool'
1194
1196
  api.has_param :referenced_sticker_id, 'string'
1195
1197
  api.has_param :replace_video_id, 'string'
@@ -28,6 +28,7 @@ module FacebookAds
28
28
  class PartnerIntegrationLinked < AdObject
29
29
 
30
30
  field :ads_pixel, 'AdsPixel'
31
+ field :application, 'object'
31
32
  field :external_id, 'string'
32
33
  field :has_oauth_token, 'bool'
33
34
  field :id, 'string'
@@ -316,6 +316,7 @@ module FacebookAds
316
316
  api.has_param :initial_pitch, 'int'
317
317
  api.has_param :original_fov, 'int'
318
318
  api.has_param :original_projection_type, { enum: %w{equirectangular cubemap equiangular_cubemap half_equirectangular }}
319
+ api.has_param :react_mode_metadata, 'string'
319
320
  api.has_param :referenced_sticker_id, 'string'
320
321
  api.has_param :replace_video_id, 'string'
321
322
  api.has_param :slideshow_spec, 'hash'
@@ -33,6 +33,7 @@ module FacebookAds
33
33
  field :custom_locations, { list: 'TargetingGeoLocationCustomLocation' }
34
34
  field :electoral_districts, { list: 'TargetingGeoLocationElectoralDistrict' }
35
35
  field :geo_markets, { list: 'TargetingGeoLocationMarket' }
36
+ field :location_set_ids, { list: 'string' }
36
37
  field :location_types, { list: 'string' }
37
38
  field :places, { list: 'TargetingGeoLocationPlace' }
38
39
  field :political_districts, { list: 'TargetingGeoLocationPoliticalDistrict' }
@@ -19,6 +19,6 @@
19
19
  # FB:AUTOGEN
20
20
 
21
21
  module FacebookAds
22
- VERSION = '0.3.0.3'
22
+ VERSION = '0.3.0.4'
23
23
  API_VERSION = '3.0'
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.0.3
4
+ version: 0.3.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Facebook
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-06-18 00:00:00.000000000 Z
11
+ date: 2018-06-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday