facebook_ads 0.1.11 → 0.1.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (95) hide show
  1. checksums.yaml +4 -4
  2. data/.approvals +0 -0
  3. data/.coveralls.yml +1 -0
  4. data/.rspec +2 -0
  5. data/.rubocop.yml +13 -1
  6. data/.rubocop_todo.yml +16 -0
  7. data/.travis.yml +3 -1
  8. data/CHANGELOG.md +5 -0
  9. data/Gemfile +10 -7
  10. data/Gemfile.lock +56 -19
  11. data/LICENSE.md +22 -0
  12. data/README.md +8 -0
  13. data/facebook_ads.gemspec +2 -2
  14. data/lib/facebook_ads/ad.rb +2 -2
  15. data/lib/facebook_ads/ad_account.rb +52 -19
  16. data/lib/facebook_ads/ad_audience.rb +1 -1
  17. data/lib/facebook_ads/ad_campaign.rb +47 -5
  18. data/lib/facebook_ads/ad_creative.rb +4 -4
  19. data/lib/facebook_ads/ad_exception.rb +7 -1
  20. data/lib/facebook_ads/ad_image.rb +6 -2
  21. data/lib/facebook_ads/ad_insight.rb +1 -1
  22. data/lib/facebook_ads/ad_product.rb +1 -1
  23. data/lib/facebook_ads/ad_product_catalog.rb +1 -1
  24. data/lib/facebook_ads/ad_product_feed.rb +1 -1
  25. data/lib/facebook_ads/ad_product_set.rb +1 -1
  26. data/lib/facebook_ads/ad_set.rb +5 -5
  27. data/lib/facebook_ads/ad_targeting.rb +3 -3
  28. data/lib/facebook_ads/base.rb +10 -9
  29. data/spec/facebook_ads/ad_account_spec.rb +93 -0
  30. data/spec/facebook_ads/ad_campaign_spec.rb +19 -0
  31. data/spec/facebook_ads/ad_creative_spec.rb +4 -0
  32. data/spec/facebook_ads/ad_image_spec.rb +4 -0
  33. data/spec/facebook_ads/ad_insight_spec.rb +4 -0
  34. data/spec/facebook_ads/ad_product_catalog_spec.rb +27 -0
  35. data/spec/facebook_ads/ad_product_feed_spec.rb +4 -0
  36. data/spec/facebook_ads/ad_product_set_spec.rb +4 -0
  37. data/spec/facebook_ads/ad_product_spec.rb +21 -0
  38. data/spec/facebook_ads/ad_set_spec.rb +47 -0
  39. data/spec/facebook_ads/ad_spec.rb +4 -0
  40. data/spec/facebook_ads/ad_targeting_spec.rb +4 -0
  41. data/spec/facebook_ads/facebook_ads_spec.rb +15 -0
  42. data/spec/fixtures/approvals/facebookads_adaccount/ad_campaigns/lists_campaigns.approved.json +15 -0
  43. data/spec/fixtures/approvals/facebookads_adaccount/ad_creatives/lists_creatives.approved.json +1047 -0
  44. data/spec/fixtures/approvals/facebookads_adaccount/ad_images/lists_images.approved.json +11 -0
  45. data/spec/fixtures/approvals/facebookads_adaccount/ad_sets/lists_ad_sets.approved.json +3 -0
  46. data/spec/fixtures/approvals/facebookads_adaccount/ads/lists_ads.approved.json +3 -0
  47. data/spec/fixtures/approvals/facebookads_adaccount/all/lists_all_accounts.approved.json +92 -0
  48. data/spec/fixtures/approvals/facebookads_adaccount/create_ad_campaign/creates_a_new_ad_campaign.approved.json +13 -0
  49. data/spec/fixtures/approvals/facebookads_adaccount/create_ad_images/creates_an_image.approved.json +11 -0
  50. data/spec/fixtures/approvals/facebookads_adaccount/find_by/finds_a_specific_account.approved.json +9 -0
  51. data/spec/fixtures/approvals/facebookads_adaccount/reach_estimate/estimates_the_reach_of_a_targeting_spec.approved.json +358 -0
  52. data/spec/fixtures/cassettes/FacebookAds_AdAccount/_ad_campaigns/lists_campaigns.yml +56 -0
  53. data/spec/fixtures/cassettes/FacebookAds_AdAccount/_ad_creatives/lists_creatives.yml +91 -0
  54. data/spec/fixtures/cassettes/FacebookAds_AdAccount/_ad_images/lists_images.yml +56 -0
  55. data/spec/fixtures/cassettes/FacebookAds_AdAccount/_ad_sets/lists_ad_sets.yml +56 -0
  56. data/spec/fixtures/cassettes/FacebookAds_AdAccount/_ads/lists_ads.yml +56 -0
  57. data/spec/fixtures/cassettes/FacebookAds_AdAccount/_all/lists_all_accounts.yml +58 -0
  58. data/spec/fixtures/cassettes/FacebookAds_AdAccount/_create_ad_campaign/creates_a_new_ad_campaign.yml +115 -0
  59. data/spec/fixtures/cassettes/FacebookAds_AdAccount/_create_ad_images/creates_an_image.yml +2865 -0
  60. data/spec/fixtures/cassettes/FacebookAds_AdAccount/_find_by/finds_a_specific_account.yml +58 -0
  61. data/spec/fixtures/cassettes/FacebookAds_AdAccount/_reach_estimate/estimates_the_reach_of_a_targeting_spec.yml +56 -0
  62. data/spec/fixtures/cassettes/FacebookAds_AdCampaign/_destroy/creates_a_new_ad_campaign.yml +164 -0
  63. data/spec/spec_helper.rb +7 -0
  64. data/spec/support/approvals.rb +10 -0
  65. data/spec/support/facebook_ads.rb +4 -0
  66. data/spec/support/rest_client.rb +13 -0
  67. data/spec/support/vcr.rb +16 -0
  68. metadata +47 -29
  69. data/test/ad_account_test.rb +0 -27
  70. data/test/ad_campaign_test.rb +0 -32
  71. data/test/ad_creative_test.rb +0 -7
  72. data/test/ad_image_test.rb +0 -27
  73. data/test/ad_insight_test.rb +0 -7
  74. data/test/ad_product_catalog_test.rb +0 -28
  75. data/test/ad_product_feed_test.rb +0 -7
  76. data/test/ad_product_set_test.rb +0 -7
  77. data/test/ad_product_test.rb +0 -22
  78. data/test/ad_set_test.rb +0 -48
  79. data/test/ad_targeting_test.rb +0 -7
  80. data/test/ad_test.rb +0 -7
  81. data/test/facebook_ads_test.rb +0 -8
  82. data/test/test_helper.rb +0 -64
  83. data/test/vcr_cassettes/AdAccountTest-test_all.yml +0 -70
  84. data/test/vcr_cassettes/AdAccountTest-test_applications.yml +0 -130
  85. data/test/vcr_cassettes/AdAccountTest-test_find_by.yml +0 -71
  86. data/test/vcr_cassettes/AdCampaignTest-test_create.yml +0 -295
  87. data/test/vcr_cassettes/AdCampaignTest-test_list.yml +0 -133
  88. data/test/vcr_cassettes/AdImageTest-test_create.yml +0 -2963
  89. data/test/vcr_cassettes/AdImageTest-test_list.yml +0 -137
  90. data/test/vcr_cassettes/AdProductCatalogTest-test_all.yml +0 -60
  91. data/test/vcr_cassettes/AdProductCatalogTest-test_create.yml +0 -256
  92. data/test/vcr_cassettes/AdProductTest-test_list.yml +0 -130
  93. data/test/vcr_cassettes/AdSetTest-test_create.yml +0 -189
  94. data/test/vcr_cassettes/AdSetTest-test_destroy.yml +0 -124
  95. data/test/vcr_cassettes/AdSetTest-test_update.yml +0 -134
@@ -1,71 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: https://graph.facebook.com/v2.8/me/adaccounts?access_token=TEST_ACCESS_TOKEN&fields=id,account_id,account_status,age,created_time,currency,name
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- Accept:
11
- - "*/*; q=0.5, application/xml"
12
- Accept-Encoding:
13
- - gzip, deflate
14
- User-Agent:
15
- - Ruby
16
- response:
17
- status:
18
- code: 200
19
- message: OK
20
- headers:
21
- Access-Control-Allow-Origin:
22
- - "*"
23
- Etag:
24
- - '"72a2d9ac20e474dcc15a8b1ee88f9e5ef45cef32"'
25
- Pragma:
26
- - no-cache
27
- Cache-Control:
28
- - private, no-cache, no-store, must-revalidate
29
- Facebook-Api-Version:
30
- - v2.8
31
- Expires:
32
- - Sat, 01 Jan 2000 00:00:00 GMT
33
- Content-Type:
34
- - application/json; charset=UTF-8
35
- X-Fb-Trace-Id:
36
- - BW0S3jj+uXV
37
- X-Fb-Rev:
38
- - '2761076'
39
- Vary:
40
- - Accept-Encoding
41
- Content-Encoding:
42
- - gzip
43
- X-Fb-Debug:
44
- - WxWslPB+7QOpYoP/VV/G1cLBn0Bs7JIrctdsXlndwnYN5G5CqlQuktAgwLI/1A5Qvyk60PN3MwDUToL04kSUkw==
45
- Date:
46
- - Sun, 01 Jan 2017 02:33:34 GMT
47
- Connection:
48
- - keep-alive
49
- Content-Length:
50
- - '631'
51
- body:
52
- encoding: ASCII-8BIT
53
- string: !binary |-
54
- H4sIAAAAAAAAA4WUQWvbQBCF/0rQ2RIzuzu7s3sLdQs+2KGJQiGlBEVWHLmt
55
- XWSZ1AT/9450aiRvJHQQO6Ph4+2b95asi7ZIwve3pF4nISnK9hGV0qQ8aQSl
56
- rTXJTI7L/XHXPvY9H9QPbdEeD0lAOdpUSVA2U4rIsQPtwMySsqmKtlo/tvVv
57
- KScK0KaoUlA5QiB5XQoMICPLY9NUu/IkXfd3cznYFf0v89d689JeLRbJefY/
58
- NHrWQIpBoXJkR9Dx+hDamEwZR4yATOgj0Jgi5Kh7aDMFfVu1RbOp2nq3GWKz
59
- Fj3RoBM5HYyxo/UhtjWZ9+yJdf9EsCFVrteaAvlUJk5rPSTWyrHXZJ012vgx
60
- cbQ+JEZ0mWdj5Ea8jQADpxpzpIAmKD0FfFt9OVa/zJAYSSmBkevU3tGYOFof
61
- ERvMUFnw4v6onwW5s4YLygUzqfHt8en0nldmy86ACCnakBrixssjI2vM2KA2
62
- iry8l2ipd4TNwYu6oYP/mDavDhdMDLImmsWryLJgbiRwvD4KDGMzby17RsNI
63
- EYFNqrgTWKsAbgr5W/U0xJX71pqctV6CCfSYN94wBNaEmev9Hg0L02tscnGw
64
- 5qBxCvjTS1Mfrj4f2qaqy5f37GxFQidRxhYMj5YvXh6lheIMWPe5rN1la4jO
65
- 4HO0EnCBeAr7erdu9kLxjlf2iZncCPTC+cgKTJyhJgmSLh8uIIIsl0QCdfEA
66
- ps+zj2O4vrlLzj9myZ9i05k4vHWdh31z6D6fqud903Utt0uzmi9wuf35dzW/
67
- V6v8+rTMy4duUPHcVo30rLbXr8vtAm7my9Mq39Dq68NcGs7n8z9F8/U9UgcA
68
- AA==
69
- http_version:
70
- recorded_at: Sun, 01 Jan 2017 02:33:35 GMT
71
- recorded_with: VCR 3.0.3
@@ -1,295 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: https://graph.facebook.com/v2.8/me/adaccounts?access_token=TEST_ACCESS_TOKEN&fields=id,account_id,account_status,age,created_time,currency,name
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- Accept:
11
- - "*/*; q=0.5, application/xml"
12
- Accept-Encoding:
13
- - gzip, deflate
14
- User-Agent:
15
- - Ruby
16
- response:
17
- status:
18
- code: 200
19
- message: OK
20
- headers:
21
- Access-Control-Allow-Origin:
22
- - "*"
23
- Etag:
24
- - '"034cb181a38e528e325ae8388b98d9cdbfe576f2"'
25
- Pragma:
26
- - no-cache
27
- Cache-Control:
28
- - private, no-cache, no-store, must-revalidate
29
- Facebook-Api-Version:
30
- - v2.8
31
- Expires:
32
- - Sat, 01 Jan 2000 00:00:00 GMT
33
- Content-Type:
34
- - application/json; charset=UTF-8
35
- X-Fb-Trace-Id:
36
- - Gs2V5SrhzbL
37
- X-Fb-Rev:
38
- - '2761076'
39
- Vary:
40
- - Accept-Encoding
41
- Content-Encoding:
42
- - gzip
43
- X-Fb-Debug:
44
- - u0eQ4LWQ2aMeFKjuZAbX1BawQiCTo4hOfd7DnYR7BY6+kcHGNTrAS5JfDyerMSZhQYgGgW4qCgQTa3KzP20+1w==
45
- Date:
46
- - Sun, 01 Jan 2017 02:33:31 GMT
47
- Connection:
48
- - keep-alive
49
- Content-Length:
50
- - '632'
51
- body:
52
- encoding: ASCII-8BIT
53
- string: !binary |-
54
- H4sIAAAAAAAAA4WUQWvbQBCF/0rQORIzs7O7s3sLdQs+2KGJQiGlBMVWHLut
55
- XWSZ1AT/9450aiTLEjqImdHy8fbNe0+WRV0k8ft7sl4mMSkW9RMSGUvBGgQy
56
- znFyreXF7rCtn9qZC/19XdSHfRJRS6syieQyImvZBEEWrS6qsqjL5VO9/q3t
57
- hABdipQC5QjR6utTEAA9cnGoqnK7OOrUw/1EC9ui/WXytl691lfTaXK6/h8a
58
- gxiwJEBI3roe9HC/C82cEXvLjkLzDkBjipCjaaF5DPqurItqVdbr7aqLLUb1
59
- REavcnroYw/2u9iOsxAk6JVg8wxgQ0q+1dpGG1I9cVzrLrEhL8FY5x0bDn3i
60
- wX6XGNFnQdiIs57BnycGSQ3maCNyJDNGfFd+OZS/uIuMlkhpUKwJ3vaRB/s9
61
- ZMYMyYHjC4ZW5MYbPpKPPCry3eH5+JFXV0uXBlRJYbbUxR1u95xsMBNGA148
62
- mLMC29YSLoeg6sYG/jJtXu7PuBgsBiNqVhTdMN8TeLjfSwx2WXBOnGGywQwI
63
- zClJI7ChCH4M+Vv53MXV+zbGeueCCgOmzzs80AU2FjOvhgfgobTgVmPO1cFG
64
- osEx4E+v1Xp/9XlfV+V68fqRXZxK6DXLxAFLb/uG2724IMlANL+lzebz3lCh
65
- IeToNOKilTHum+2y2inGB2BdKBHre6Rn6j0viJUMjVW/azzwGUTQ7dJMsE0+
66
- ALeJdjmI17f3yenHdfKnWDUuju/N5H5X7ZvP5/JlVzVTs82M55MpzjY//84n
67
- DzTPb46zfPHYHFS81GWlM/PNzdtsM4Xbyew4z1d2/vVxogOn0+kf5bWo3lQH
68
- AAA=
69
- http_version:
70
- recorded_at: Sun, 01 Jan 2017 02:33:31 GMT
71
- - request:
72
- method: post
73
- uri: https://graph.facebook.com/v2.8/act_1132789356764349/campaigns
74
- body:
75
- encoding: UTF-8
76
- string: name=Test&objective=MOBILE_APP_INSTALLS&status=ACTIVE&access_token=TEST_ACCESS_TOKEN&fields=id%2Caccount_id%2Cbuying_type%2Ccan_use_spend_cap%2Cconfigured_status%2Ccreated_time%2Ceffective_status%2Cname%2Cobjective%2Cstart_time%2Cstop_time%2Cupdated_time%2Cspend_cap
77
- headers:
78
- Accept:
79
- - "*/*; q=0.5, application/xml"
80
- Accept-Encoding:
81
- - gzip, deflate
82
- Content-Length:
83
- - '421'
84
- Content-Type:
85
- - application/x-www-form-urlencoded
86
- User-Agent:
87
- - Ruby
88
- response:
89
- status:
90
- code: 200
91
- message: OK
92
- headers:
93
- P3p:
94
- - 'CP="Facebook does not have a P3P policy. Learn why here: http://fb.me/p3p"'
95
- Access-Control-Allow-Origin:
96
- - "*"
97
- Pragma:
98
- - no-cache
99
- Cache-Control:
100
- - private, no-cache, no-store, must-revalidate
101
- Facebook-Api-Version:
102
- - v2.8
103
- Expires:
104
- - Sat, 01 Jan 2000 00:00:00 GMT
105
- Content-Type:
106
- - application/json; charset=UTF-8
107
- X-Fb-Trace-Id:
108
- - GgC3offIDtO
109
- X-Fb-Rev:
110
- - '2761076'
111
- Set-Cookie:
112
- - sW=1483238011%3AAaBDz1J5OmVy6bRg; path=/; domain=.graph.facebook.com; secure
113
- X-Fb-Debug:
114
- - GsKERJSKTf++St2fmqUqYLwFvtcSMPRnyzlWbBv+HQW7uNcEqrM6BloiVkHcoN17nPrXtSC6PES5XSbzgJOLZQ==
115
- Date:
116
- - Sun, 01 Jan 2017 02:33:31 GMT
117
- Connection:
118
- - keep-alive
119
- Content-Length:
120
- - '26'
121
- body:
122
- encoding: UTF-8
123
- string: '{"id":"23842539859960698"}'
124
- http_version:
125
- recorded_at: Sun, 01 Jan 2017 02:33:31 GMT
126
- - request:
127
- method: get
128
- uri: https://graph.facebook.com/v2.8/23842539859960698?access_token=TEST_ACCESS_TOKEN&fields=id,account_id,buying_type,can_use_spend_cap,configured_status,created_time,effective_status,name,objective,start_time,stop_time,updated_time,spend_cap
129
- body:
130
- encoding: US-ASCII
131
- string: ''
132
- headers:
133
- Accept:
134
- - "*/*; q=0.5, application/xml"
135
- Accept-Encoding:
136
- - gzip, deflate
137
- User-Agent:
138
- - Ruby
139
- response:
140
- status:
141
- code: 200
142
- message: OK
143
- headers:
144
- Access-Control-Allow-Origin:
145
- - "*"
146
- Etag:
147
- - '"fb509a2cae241f110fd828021c48387ae22148e0"'
148
- Pragma:
149
- - no-cache
150
- Cache-Control:
151
- - private, no-cache, no-store, must-revalidate
152
- Facebook-Api-Version:
153
- - v2.8
154
- Expires:
155
- - Sat, 01 Jan 2000 00:00:00 GMT
156
- Content-Type:
157
- - application/json; charset=UTF-8
158
- X-Fb-Trace-Id:
159
- - CbAtgRf3ZEJ
160
- X-Fb-Rev:
161
- - '2761076'
162
- Vary:
163
- - Accept-Encoding
164
- Content-Encoding:
165
- - gzip
166
- X-Fb-Debug:
167
- - 0J3G5erJjjReg+EgyTKDb2fUZah6IjDOR5wIouiPKxp9phVQPmf2XvlIpZfP1ZdsKwmePfbOs002YdweyH8e7g==
168
- Date:
169
- - Sun, 01 Jan 2017 02:33:31 GMT
170
- Connection:
171
- - keep-alive
172
- Content-Length:
173
- - '237'
174
- body:
175
- encoding: ASCII-8BIT
176
- string: !binary |-
177
- H4sIAAAAAAAAA42OzWrDMBCE30XnGvRjKZJuTsnB4CaBuL0KRZaDCpWNJRVC
178
- 6bt3neJbD4W97M43M/uFwoA0okzWlDMluVICCyXRE7LOTSVm8wAIYXQnFeNi
179
- J2pWK9Cv5R7izeT77AFoXp/79nSEu7PRlORNmn0cjLMz0nkpHoQpjuFWFj+Y
180
- lG0uabWB6+2wuhZvMyg5fKxxFBNREVox0hOpGdOMVFhiDKQfR+9y+PR/pET7
181
- cPc+Zdim6/svCaeX077tDqY5n017vPRN112AgIQlb51ECbV1cs0VzNZZ5uFf
182
- 333/AH7z4JNQAQAA
183
- http_version:
184
- recorded_at: Sun, 01 Jan 2017 02:33:31 GMT
185
- - request:
186
- method: delete
187
- uri: https://graph.facebook.com/v2.8/23842539859960698?access_token=TEST_ACCESS_TOKEN
188
- body:
189
- encoding: US-ASCII
190
- string: ''
191
- headers:
192
- Accept:
193
- - "*/*; q=0.5, application/xml"
194
- Accept-Encoding:
195
- - gzip, deflate
196
- User-Agent:
197
- - Ruby
198
- response:
199
- status:
200
- code: 200
201
- message: OK
202
- headers:
203
- P3p:
204
- - 'CP="Facebook does not have a P3P policy. Learn why here: http://fb.me/p3p"'
205
- Access-Control-Allow-Origin:
206
- - "*"
207
- Pragma:
208
- - no-cache
209
- Cache-Control:
210
- - private, no-cache, no-store, must-revalidate
211
- Facebook-Api-Version:
212
- - v2.8
213
- Expires:
214
- - Sat, 01 Jan 2000 00:00:00 GMT
215
- Content-Type:
216
- - application/json; charset=UTF-8
217
- X-Fb-Trace-Id:
218
- - HChG+oq9hDn
219
- X-Fb-Rev:
220
- - '2761076'
221
- Set-Cookie:
222
- - sW=1483238011%3AAaBDz1J5OmVy6bRg; path=/; domain=.graph.facebook.com; secure
223
- X-Fb-Debug:
224
- - a09LtYaZ7ohov7tJTykOwMHv+3Nf5HOaN3le+QZDPIgWm1hkNmS1KvDTcpaWStfM727fv7x4mCGMFV1sWXHoPw==
225
- Date:
226
- - Sun, 01 Jan 2017 02:33:32 GMT
227
- Connection:
228
- - keep-alive
229
- Content-Length:
230
- - '16'
231
- body:
232
- encoding: UTF-8
233
- string: '{"success":true}'
234
- http_version:
235
- recorded_at: Sun, 01 Jan 2017 02:33:32 GMT
236
- - request:
237
- method: get
238
- uri: https://graph.facebook.com/v2.8/23842539859960698?access_token=TEST_ACCESS_TOKEN&fields=id,account_id,buying_type,can_use_spend_cap,configured_status,created_time,effective_status,name,objective,start_time,stop_time,updated_time,spend_cap
239
- body:
240
- encoding: US-ASCII
241
- string: ''
242
- headers:
243
- Accept:
244
- - "*/*; q=0.5, application/xml"
245
- Accept-Encoding:
246
- - gzip, deflate
247
- User-Agent:
248
- - Ruby
249
- response:
250
- status:
251
- code: 200
252
- message: OK
253
- headers:
254
- Access-Control-Allow-Origin:
255
- - "*"
256
- Etag:
257
- - '"21fca479371c4769b1aea86093452fe94811ec5d"'
258
- Pragma:
259
- - no-cache
260
- Cache-Control:
261
- - private, no-cache, no-store, must-revalidate
262
- Facebook-Api-Version:
263
- - v2.8
264
- Expires:
265
- - Sat, 01 Jan 2000 00:00:00 GMT
266
- Content-Type:
267
- - application/json; charset=UTF-8
268
- X-Fb-Trace-Id:
269
- - CDdH68QN7Ea
270
- X-Fb-Rev:
271
- - '2761076'
272
- Vary:
273
- - Accept-Encoding
274
- Content-Encoding:
275
- - gzip
276
- X-Fb-Debug:
277
- - 28g8ogrVCpujroQYmnbQqphZxgu4nJdlwDFMHhKQZmoiqhEiWMPN/RnhBaAU9Cpdxq88nnll09yDLusOgbVwVA==
278
- Date:
279
- - Sun, 01 Jan 2017 02:33:32 GMT
280
- Connection:
281
- - keep-alive
282
- Content-Length:
283
- - '239'
284
- body:
285
- encoding: ASCII-8BIT
286
- string: !binary |-
287
- H4sIAAAAAAAAA42OzWrDMBCE30XnGvRjKZJvbuODwU0CUc9CkeWgQmVjSYVQ
288
- +u7dpPjWQ2Evu/PNzH6hMKIGUSZrypmSXCmBhZLoCVnn5hKzeQCEMLqTinGx
289
- EzWrFeiXcgvxavJt8QC0by+6Px7g7mw0JXmTFh9H4+yCmrwWD8Icp3Atqx9N
290
- yjaXBLZ9N3S6299tq7cZpBw+7nkUE1ERWjGiiWwYaxipsMQYSD9N3uXw6f+K
291
- ifZh1z5l2ObL+y8Kp9fjcz90pj2dTH8463YYzkBAxJq3UqKE2kp5wxXMVlqW
292
- 8V/vff8AQZgEN1IBAAA=
293
- http_version:
294
- recorded_at: Sun, 01 Jan 2017 02:33:32 GMT
295
- recorded_with: VCR 3.0.3
@@ -1,133 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: https://graph.facebook.com/v2.8/me/adaccounts?access_token=TEST_ACCESS_TOKEN&fields=id,account_id,account_status,age,created_time,currency,name
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- Accept:
11
- - "*/*; q=0.5, application/xml"
12
- Accept-Encoding:
13
- - gzip, deflate
14
- User-Agent:
15
- - Ruby
16
- response:
17
- status:
18
- code: 200
19
- message: OK
20
- headers:
21
- Access-Control-Allow-Origin:
22
- - "*"
23
- Etag:
24
- - '"6af3ba913993610c426047d6764f513bd24bc436"'
25
- Pragma:
26
- - no-cache
27
- Cache-Control:
28
- - private, no-cache, no-store, must-revalidate
29
- Facebook-Api-Version:
30
- - v2.8
31
- Expires:
32
- - Sat, 01 Jan 2000 00:00:00 GMT
33
- Content-Type:
34
- - application/json; charset=UTF-8
35
- X-Fb-Trace-Id:
36
- - GqT6IB66Vd7
37
- X-Fb-Rev:
38
- - '2761076'
39
- Vary:
40
- - Accept-Encoding
41
- Content-Encoding:
42
- - gzip
43
- X-Fb-Debug:
44
- - Br8grdtv6WR1r8fcEvq/+iRCJy9p8+wlFW4ZDi9r3AnHVcfxGzH1/tvjEDEG0janp9lrcwcAbLkh7kELh69L3g==
45
- Date:
46
- - Sun, 01 Jan 2017 02:33:32 GMT
47
- Connection:
48
- - keep-alive
49
- Content-Length:
50
- - '626'
51
- body:
52
- encoding: ASCII-8BIT
53
- string: !binary |-
54
- H4sIAAAAAAAAA4WU3WrbQBCFXyXo2hIzs3+zexfqFnxhhyYqhZQSFFlx5LZ2
55
- kWVSE/zuHQkKjeSNhC7MnvH64/jMeU3WRVsk4dtrUq+TkBRl+4BEypA3CoGU
56
- tTqZyXG5P+7ah37mHf3QFu3xkASUo02VBLIZkfn32FlSNlXRVuuHtv4lckKA
57
- NkVKgXKEYOR1KTCAXFkem6balSeZ+nI3l4Nd0X9l/lJvnturxSI5z/6HRs8K
58
- DDEQkjN2BB3Xh9BaZ6SdMY4dKBdhxhQhR9Uz6ynm26otmk3V1rvNkJqV2Ika
59
- nbjpYEwd1YfUVmfes1cGuXsj2JCS6602wfhUbpy2ekisyHU/Y53VSvsxcVQf
60
- EiO6zLNWnlEzRoiBU4U5moA6kJoivq0+HaufeoiMhkhoxBblnRkjR/URssYM
61
- yYKzipl9FLnLhgvkgp40+fb4eHrLK5slOwPiJGttaIgbl0dBVpixRoVed88l
62
- WtNHwubgxd3Qwb9Pm1eHCykGg16xhBVZFsyNDI7ro8LQNvPWsovFQafEnbeK
63
- Argp2q/V45BU/mqljLPWy3aDGqPGB4assmqZk6wjSU3ARXt1b6/OJbyKg8Ip
64
- 4A/PTX24+nhom6oun9+ysxX3nLQYW9A8Wry4PGoK4gxYWYZoKZvOaPA5Wmm3
65
- YHiK+3q3bvaC8QZYdonZuBHphfNRDNhwhsqYvh0uZQFksaQOTFcNoPsye7+D
66
- 65u75Px9lvwuNl2Aw2s3edg3h+7jY/W0b7qp5XapV/MFLrc//qzmX2iVX5+W
67
- eXnfXVQ8tVUjM6vt9ctyu4Cb+fK0yjdm9fl+LgPn8/kvNjVoG04HAAA=
68
- http_version:
69
- recorded_at: Sun, 01 Jan 2017 02:33:32 GMT
70
- - request:
71
- method: get
72
- uri: https://graph.facebook.com/v2.8/act_1115226431853975/campaigns?access_token=TEST_ACCESS_TOKEN&effective_status=%5B%22ACTIVE%22%5D&fields=id,account_id,buying_type,can_use_spend_cap,configured_status,created_time,effective_status,name,objective,start_time,stop_time,updated_time,spend_cap&limit=100
73
- body:
74
- encoding: US-ASCII
75
- string: ''
76
- headers:
77
- Accept:
78
- - "*/*; q=0.5, application/xml"
79
- Accept-Encoding:
80
- - gzip, deflate
81
- User-Agent:
82
- - Ruby
83
- response:
84
- status:
85
- code: 200
86
- message: OK
87
- headers:
88
- Access-Control-Allow-Origin:
89
- - "*"
90
- Etag:
91
- - '"5f6f836ea1008105a6ec05674c398474d450d45f"'
92
- Pragma:
93
- - no-cache
94
- Cache-Control:
95
- - private, no-cache, no-store, must-revalidate
96
- Facebook-Api-Version:
97
- - v2.8
98
- Expires:
99
- - Sat, 01 Jan 2000 00:00:00 GMT
100
- Content-Type:
101
- - application/json; charset=UTF-8
102
- X-Fb-Trace-Id:
103
- - DvGQx2oRf6W
104
- X-Fb-Rev:
105
- - '2761076'
106
- Vary:
107
- - Accept-Encoding
108
- Content-Encoding:
109
- - gzip
110
- X-Fb-Debug:
111
- - xpcj8mCXi6qi7OG20Op8W/iJa3czjmXPlo7bokO9lNpTWmqKQ/a/kSRTO3BNzsm00/vSSEiDJigXrIrMAViIHQ==
112
- Date:
113
- - Sun, 01 Jan 2017 02:33:32 GMT
114
- Connection:
115
- - keep-alive
116
- Content-Length:
117
- - '407'
118
- body:
119
- encoding: ASCII-8BIT
120
- string: !binary |-
121
- H4sIAAAAAAAAA82SQWvbMBiG/0rQOQbpk+Q4unlJDobYLovbwsYwii0HhU42
122
- klwoIf99ckqh3XJI2aU34/d59X160Am10kskfp6QbpFAQBMGnGFGFskS8xjQ
123
- HMmm6Ufj6wtACOEAMaMk4XS54CHfjy/aHGr/MqgApPerKiuL8L+Rph6dqt2g
124
- TFs3ckDC21GFoDedPoxWtbXz0o9uqoXWw2ZqWSV9SLz+PR0HmMQRwREsK0IF
125
- 44LFEV5gHEjVdarx+lldOcXIS1uXu1k6DDNtAvL05ELS74+vrRDn5bdsu6nT
126
- u7s6K3ZVut3uAhFQ62+YPw7tv5uSCKACKvhSMIhwEsjz/INcAjxOAL6MXJxE
127
- EFckFsAEY5+Q+6j2Tns1W/XmWVmne/O331VZPGy+78LG171+GM1v9kqvesWU
128
- cRp/Ka8EpstRErb+hNfpwWb/92Cvz75Z7K85GuQh+EHihJrRut666XOvut5e
129
- 9jjmrFhnpFinOK8aVlYpKY7Zj/VkvvPKvmPydY6LKof8+Macz+c/H+hUq3gE
130
- AAA=
131
- http_version:
132
- recorded_at: Sun, 01 Jan 2017 02:33:32 GMT
133
- recorded_with: VCR 3.0.3