facebookbusiness 0.4.0.1 → 0.4.0.2

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: c75ea8c8968175262c2b1ec90009ba0cc3f9a29cd3950275246901ca564e64fb
4
- data.tar.gz: 344fb8361a22ddd79a9c3262ff0f55c0166fee5219260a801c5adce5f4837fff
3
+ metadata.gz: 4e723c8810da7cb0edb71876e75a13b752ef05637504ab8fe5669957db5d3a68
4
+ data.tar.gz: 1826620984cf05152967de820dbcda7ace71b11ca9f67529a976449367255383
5
5
  SHA512:
6
- metadata.gz: b33c804fdd9051e64d9ac5c59bbd99f1c1cce46b235ed81ea0bf3d1b40067c899048612fdc8d0939bae5ed4e1776137e844cbda25986535432288c8abb54dfeb
7
- data.tar.gz: 59f54746efe0353f011a75cee81cd402c89525a09c3b36f07104a2916727787404fb3939b26348042f693c2ac999533d1d6a3277a97bd5bfcebb1ecd1e30b02b
6
+ metadata.gz: de1937e4a5cde09cc1f62b58983d7e33b5206f360bfdba84974609d98d4472a6cda93977ca8fa67e3817022ec06bfc629468e40dc1162596aaa425c4bb66cbb3
7
+ data.tar.gz: 167c4f946008d051686d86195c2a024370edd13b1205be7ea4775c0d82a6c7ce3f93c2db0f27e093c855107e7f4ad98abd91ef2d1f81adf4708c8c31379e2dda
@@ -62,6 +62,7 @@ module FacebookAds
62
62
  "FACECAST_DVR",
63
63
  "FUNDRAISER_COVER_VIDEO",
64
64
  "GAME_CLIP",
65
+ "GEMSTONE",
65
66
  "GOODWILL_ANNIVERSARY_DEPRECATED",
66
67
  "GOODWILL_ANNIVERSARY_PROMOTION_DEPRECATED",
67
68
  "GOODWILL_VIDEO_CONTAINED_SHARE",
@@ -102,6 +102,16 @@ module FacebookAds
102
102
  end
103
103
  end
104
104
 
105
+ has_edge :events do |edge|
106
+ edge.post 'AdsPixel' do |api|
107
+ api.has_param :agent, 'string'
108
+ api.has_param :data, { list: 'string' }
109
+ api.has_param :test_event_code, 'string'
110
+ api.has_param :trace, 'int'
111
+ api.has_param :upload_tag, 'string'
112
+ end
113
+ end
114
+
105
115
  has_edge :shared_accounts do |edge|
106
116
  edge.delete do |api|
107
117
  api.has_param :account_id, 'string'
@@ -32,6 +32,7 @@ module FacebookAds
32
32
  field :id, 'string'
33
33
  field :in_conflict, 'bool'
34
34
  field :isrc, 'string'
35
+ field :match_rule, 'VideoCopyrightRule'
35
36
  field :ownership_countries, { list: 'string' }
36
37
  field :reference_file_status, 'string'
37
38
  field :ridge_monitoring_status, 'string'
@@ -256,6 +256,10 @@ module FacebookAds
256
256
  end
257
257
  end
258
258
 
259
+ has_edge :business_asset_groups do |edge|
260
+ edge.get 'BusinessAssetGroup'
261
+ end
262
+
259
263
  has_edge :business_invoices do |edge|
260
264
  edge.get 'OracleTransaction' do |api|
261
265
  api.has_param :end_date, 'string'
@@ -0,0 +1,166 @@
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 BusinessAssetGroup < AdObject
29
+ ADACCOUNT_TASKS = [
30
+ "ADVERTISE",
31
+ "ANALYZE",
32
+ "CREATIVE",
33
+ "DRAFT",
34
+ "FB_EMPLOYEE_DSO_ADVERTISE",
35
+ "MANAGE",
36
+ ]
37
+
38
+ OFFLINE_CONVERSION_DATA_SET_TASKS = [
39
+ "ADVERTISE",
40
+ "MANAGE",
41
+ "UPLOAD",
42
+ ]
43
+
44
+ PAGE_TASKS = [
45
+ "ADVERTISE",
46
+ "ANALYZE",
47
+ "CREATE_CONTENT",
48
+ "MANAGE",
49
+ "MANAGE_JOBS",
50
+ "MANAGE_LEADS",
51
+ "MODERATE",
52
+ "MODERATE_COMMUNITY",
53
+ "PAGES_MESSAGING",
54
+ "PAGES_MESSAGING_SUBSCRIPTIONS",
55
+ "PLATFORM_MANAGE_PAGES",
56
+ "READ_PAGE_MAILBOXES",
57
+ "VIEW_MONETIZATION_INSIGHTS",
58
+ ]
59
+
60
+ PIXEL_TASKS = [
61
+ "ANALYZE",
62
+ "EDIT",
63
+ ]
64
+
65
+
66
+ field :id, 'string'
67
+ field :name, 'string'
68
+
69
+ has_edge :assigned_users do |edge|
70
+ edge.delete do |api|
71
+ api.has_param :user, 'int'
72
+ end
73
+ edge.get 'AssignedUser' do |api|
74
+ api.has_param :business, 'string'
75
+ end
76
+ edge.post 'BusinessAssetGroup' do |api|
77
+ api.has_param :adaccount_tasks, { list: { enum: -> { BusinessAssetGroup::ADACCOUNT_TASKS }} }
78
+ api.has_param :offline_conversion_data_set_tasks, { list: { enum: -> { BusinessAssetGroup::OFFLINE_CONVERSION_DATA_SET_TASKS }} }
79
+ api.has_param :page_tasks, { list: { enum: -> { BusinessAssetGroup::PAGE_TASKS }} }
80
+ api.has_param :pixel_tasks, { list: { enum: -> { BusinessAssetGroup::PIXEL_TASKS }} }
81
+ api.has_param :user, 'int'
82
+ end
83
+ end
84
+
85
+ has_edge :contained_adaccounts do |edge|
86
+ edge.delete do |api|
87
+ api.has_param :asset_id, 'string'
88
+ end
89
+ edge.get 'AdAccount'
90
+ edge.post 'BusinessAssetGroup' do |api|
91
+ api.has_param :asset_id, 'string'
92
+ end
93
+ end
94
+
95
+ has_edge :contained_applications do |edge|
96
+ edge.delete do |api|
97
+ api.has_param :asset_id, 'string'
98
+ end
99
+ edge.get 'Application'
100
+ edge.post 'BusinessAssetGroup' do |api|
101
+ api.has_param :asset_id, 'string'
102
+ end
103
+ end
104
+
105
+ has_edge :contained_custom_conversions do |edge|
106
+ edge.delete do |api|
107
+ api.has_param :asset_id, 'string'
108
+ end
109
+ edge.get 'CustomConversion'
110
+ edge.post 'BusinessAssetGroup' do |api|
111
+ api.has_param :asset_id, 'string'
112
+ end
113
+ end
114
+
115
+ has_edge :contained_instagram_accounts do |edge|
116
+ edge.delete do |api|
117
+ api.has_param :asset_id, 'string'
118
+ end
119
+ edge.get 'InstagramUser'
120
+ edge.post 'BusinessAssetGroup' do |api|
121
+ api.has_param :asset_id, 'string'
122
+ end
123
+ end
124
+
125
+ has_edge :contained_offline_conversion_data_sets do |edge|
126
+ edge.delete do |api|
127
+ api.has_param :asset_id, 'string'
128
+ end
129
+ edge.get 'OfflineConversionDataSet'
130
+ edge.post 'BusinessAssetGroup' do |api|
131
+ api.has_param :asset_id, 'string'
132
+ end
133
+ end
134
+
135
+ has_edge :contained_pages do |edge|
136
+ edge.delete do |api|
137
+ api.has_param :asset_id, 'string'
138
+ end
139
+ edge.get 'Page'
140
+ edge.post 'BusinessAssetGroup' do |api|
141
+ api.has_param :asset_id, 'string'
142
+ end
143
+ end
144
+
145
+ has_edge :contained_pixels do |edge|
146
+ edge.delete do |api|
147
+ api.has_param :asset_id, 'string'
148
+ end
149
+ edge.get 'AdsPixel'
150
+ edge.post 'BusinessAssetGroup' do |api|
151
+ api.has_param :asset_id, 'string'
152
+ end
153
+ end
154
+
155
+ has_edge :contained_product_catalogs do |edge|
156
+ edge.delete do |api|
157
+ api.has_param :asset_id, 'string'
158
+ end
159
+ edge.get 'ProductCatalog'
160
+ edge.post 'BusinessAssetGroup' do |api|
161
+ api.has_param :asset_id, 'string'
162
+ end
163
+ end
164
+
165
+ end
166
+ end
@@ -45,9 +45,9 @@ module FacebookAds
45
45
 
46
46
  field :business, 'Business'
47
47
  field :creation_time, 'datetime'
48
+ field :description, 'string'
48
49
  field :id, 'string'
49
50
  field :name, 'string'
50
- field :description, 'string'
51
51
 
52
52
  has_edge :agencies do |edge|
53
53
  edge.delete do |api|
@@ -53,6 +53,12 @@ module FacebookAds
53
53
  edge.get 'AdAccount'
54
54
  end
55
55
 
56
+ has_edge :assigned_business_asset_groups do |edge|
57
+ edge.get 'BusinessAssetGroup' do |api|
58
+ api.has_param :contained_asset_id, 'string'
59
+ end
60
+ end
61
+
56
62
  has_edge :assigned_pages do |edge|
57
63
  edge.get 'Page'
58
64
  end
@@ -34,6 +34,12 @@ module FacebookAds
34
34
  "SONGTRACK",
35
35
  ]
36
36
 
37
+ FINGERPRINT_VALIDITY = [
38
+ "EXPIRED",
39
+ "EXPIRING",
40
+ "VALID",
41
+ ]
42
+
37
43
 
38
44
  field :duration_in_sec, 'double'
39
45
  field :fingerprint_content_type, 'string'
@@ -32,6 +32,7 @@ module FacebookAds
32
32
  field :id, 'string'
33
33
  field :in_conflict, 'bool'
34
34
  field :isrc, 'string'
35
+ field :match_rule, 'VideoCopyrightRule'
35
36
  field :ownership_countries, { list: 'string' }
36
37
  field :reference_file_status, 'string'
37
38
  field :ridge_monitoring_status, 'string'
@@ -891,6 +891,10 @@ module FacebookAds
891
891
  end
892
892
 
893
893
  has_edge :media_fingerprints do |edge|
894
+ edge.get 'MediaFingerprint' do |api|
895
+ api.has_param :fingerprint_validity, { enum: -> { MediaFingerprint::FINGERPRINT_VALIDITY }}
896
+ api.has_param :universal_content_id, 'string'
897
+ end
894
898
  edge.post 'MediaFingerprint' do |api|
895
899
  api.has_param :fingerprint_content_type, { enum: -> { MediaFingerprint::FINGERPRINT_CONTENT_TYPE }}
896
900
  api.has_param :metadata, { list: 'string' }
@@ -1221,6 +1225,14 @@ module FacebookAds
1221
1225
  edge.get 'Tab' do |api|
1222
1226
  api.has_param :tab, { list: 'string' }
1223
1227
  end
1228
+ edge.post 'Page' do |api|
1229
+ api.has_param :app_id, 'int'
1230
+ api.has_param :custom_image_url, 'string'
1231
+ api.has_param :custom_name, 'string'
1232
+ api.has_param :is_non_connection_landing_tab, 'bool'
1233
+ api.has_param :position, 'int'
1234
+ api.has_param :tab, 'string'
1235
+ end
1224
1236
  end
1225
1237
 
1226
1238
  has_edge :tagged do |edge|
@@ -1284,6 +1296,13 @@ module FacebookAds
1284
1296
  end
1285
1297
  end
1286
1298
 
1299
+ has_edge :video_copyright_rules do |edge|
1300
+ edge.get 'VideoCopyrightRule' do |api|
1301
+ api.has_param :selected_rule_id, 'string'
1302
+ api.has_param :source, { enum: -> { VideoCopyrightRule::SOURCE }}
1303
+ end
1304
+ end
1305
+
1287
1306
  has_edge :video_copyrights do |edge|
1288
1307
  edge.post 'VideoCopyright' do |api|
1289
1308
  api.has_param :attribution_id, 'string'
@@ -50,6 +50,12 @@ module FacebookAds
50
50
  edge.get 'AdAccount'
51
51
  end
52
52
 
53
+ has_edge :assigned_business_asset_groups do |edge|
54
+ edge.get 'BusinessAssetGroup' do |api|
55
+ api.has_param :contained_asset_id, 'string'
56
+ end
57
+ end
58
+
53
59
  has_edge :assigned_pages do |edge|
54
60
  edge.get 'Page'
55
61
  end
@@ -73,7 +73,7 @@ module FacebookAds
73
73
  field :exclude_reached_since, { list: 'string' }
74
74
  field :excluded_brand_safety_content_types, { list: 'string' }
75
75
  field :excluded_connections, { list: 'IdName' }
76
- field :excluded_custom_audiences, { list: 'IdName' }
76
+ field :excluded_custom_audiences, { list: 'RawCustomAudience' }
77
77
  field :excluded_dynamic_audience_ids, { list: 'string' }
78
78
  field :excluded_engagement_specs, { list: 'TargetingDynamicRule' }
79
79
  field :excluded_geo_locations, 'TargetingGeoLocation'
@@ -263,6 +263,12 @@ module FacebookAds
263
263
  edge.get 'AdAccount'
264
264
  end
265
265
 
266
+ has_edge :assigned_business_asset_groups do |edge|
267
+ edge.get 'BusinessAssetGroup' do |api|
268
+ api.has_param :contained_asset_id, 'string'
269
+ end
270
+ end
271
+
266
272
  has_edge :assigned_pages do |edge|
267
273
  edge.get 'Page'
268
274
  end
@@ -26,6 +26,12 @@ module FacebookAds
26
26
  # pull request for this class.
27
27
 
28
28
  class VideoCopyrightRule < AdObject
29
+ SOURCE = [
30
+ "MATCH_SETTINGS_DIALOG",
31
+ "RULES_SELECTOR",
32
+ "RULES_TAB",
33
+ ]
34
+
29
35
 
30
36
  field :condition_groups, { list: 'VideoCopyrightConditionGroup' }
31
37
  field :copyrights, { list: 'string' }
@@ -19,6 +19,6 @@
19
19
  # FB:AUTOGEN
20
20
 
21
21
  module FacebookAds
22
- VERSION = '0.4.0.1'
22
+ VERSION = '0.4.0.2'
23
23
  API_VERSION = '4.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.4.0.1
4
+ version: 0.4.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Facebook
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-09 00:00:00.000000000 Z
11
+ date: 2019-08-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -337,6 +337,7 @@ files:
337
337
  - lib/facebook_ads/ad_objects/business_advertisable_applications_result.rb
338
338
  - lib/facebook_ads/ad_objects/business_agreement.rb
339
339
  - lib/facebook_ads/ad_objects/business_application_request.rb
340
+ - lib/facebook_ads/ad_objects/business_asset_group.rb
340
341
  - lib/facebook_ads/ad_objects/business_asset_sharing_agreement.rb
341
342
  - lib/facebook_ads/ad_objects/business_creative.rb
342
343
  - lib/facebook_ads/ad_objects/business_creative_folder.rb