zuck 1.0.0 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. checksums.yaml +5 -13
  2. data/CHANGELOG.markdown +35 -5
  3. data/Gemfile +3 -2
  4. data/Gemfile.lock +13 -10
  5. data/README.markdown +26 -38
  6. data/VERSION +1 -1
  7. data/console +8 -2
  8. data/lib/zuck/facebook/ad_account.rb +22 -5
  9. data/lib/zuck/facebook/ad_campaign.rb +12 -15
  10. data/lib/zuck/facebook/ad_creative.rb +14 -14
  11. data/lib/zuck/facebook/ad_group.rb +12 -12
  12. data/lib/zuck/facebook/ad_interest.rb +12 -15
  13. data/lib/zuck/facebook/ad_set.rb +30 -0
  14. data/lib/zuck/facebook/targeting_spec.rb +4 -4
  15. data/lib/zuck/fb_object/dsl.rb +15 -7
  16. data/lib/zuck/fb_object/hash_delegator.rb +20 -3
  17. data/lib/zuck/fb_object/write.rb +18 -6
  18. data/lib/zuck/fb_object.rb +1 -1
  19. data/lib/zuck/helpers.rb +20 -1
  20. data/spec/fixtures/a_single_account.yml +146 -29
  21. data/spec/fixtures/a_single_campaign.yml +61 -12
  22. data/spec/fixtures/a_single_group.yml +65 -12
  23. data/spec/fixtures/ad_interest_search_disney.yml +16 -14
  24. data/spec/fixtures/ad_interest_search_moviepilot.yml +15 -98
  25. data/spec/fixtures/ad_interest_search_nonexistant.yml +7 -5
  26. data/spec/fixtures/create_ad_campaign.yml +334 -9
  27. data/spec/fixtures/create_ad_group.yml +154 -9
  28. data/spec/fixtures/create_ad_set.yml +95 -0
  29. data/spec/fixtures/delete_ad_group.yml +55 -8
  30. data/spec/fixtures/find_a_single_group_and_update_it.yml +122 -95
  31. data/spec/fixtures/list_of_ad_accounts.yml +77 -58
  32. data/spec/fixtures/list_of_ad_campaigns.yml +77 -55
  33. data/spec/fixtures/list_of_ad_creatives.yml +61 -13
  34. data/spec/fixtures/list_of_ad_groups.yml +77 -60
  35. data/spec/fixtures/list_of_all_ad_creatives_of_account.yml +77 -73
  36. data/spec/fixtures/reach_for_invalid_interest.yml +29 -111
  37. data/spec/fixtures/reach_for_valid_keywords.yml +11 -54
  38. data/spec/fixtures/reach_for_valid_keywords_male_young.yml +11 -60
  39. data/spec/lib/zuck/facebook/ad_account_spec.rb +1 -1
  40. data/spec/lib/zuck/facebook/ad_interest_spec.rb +2 -2
  41. data/spec/lib/zuck/facebook/targeting_spec_spec.rb +13 -21
  42. data/spec/lib/zuck_spec.rb +34 -23
  43. data/spec/spec_helper.rb +2 -5
  44. data/test_access_token +1 -0
  45. data/zuck.gemspec +15 -9
  46. metadata +63 -46
@@ -1,95 +1,5 @@
1
1
  ---
2
2
  http_interactions:
3
- - request:
4
- method: get
5
- uri: https://graph.facebook.com/search?access_token=CAAEvJ5vzhl8BAPGZCZCPL4FxryEHXGxPCuCGeqe3PEWIjhIvJ00HB8PPpokFmUkemvmEUHirqdNMc7zIDLSTVnX6jTQjAgSlzcYrAYJRQ32fr6RM5ZAnKPdgFEwN5tgvswatXZAI4vu7ZBAQexRl9MU0CpwW7JDDBZAGo5XDrCKrBxkUUWJUvh&q=moviepilotcom&type=adinterest
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- User-Agent:
11
- - Faraday v0.8.7
12
- Accept-Encoding:
13
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
- Accept:
15
- - ! '*/*'
16
- response:
17
- status:
18
- code: 200
19
- message: OK
20
- headers:
21
- Etag:
22
- - ! '"f4708ef59d4457b905f54670ff7a3ab8fb53d758"'
23
- Content-Type:
24
- - application/json; charset=UTF-8
25
- Pragma:
26
- - no-cache
27
- Access-Control-Allow-Origin:
28
- - ! '*'
29
- X-Fb-Rev:
30
- - '1216101'
31
- Cache-Control:
32
- - private, no-cache, no-store, must-revalidate
33
- Expires:
34
- - Sat, 01 Jan 2000 00:00:00 GMT
35
- X-Fb-Debug:
36
- - 9Ihh9aS8WUH+aH6uc7MUk/Kxu6CV8yMAw6N0dClTJaM=
37
- Date:
38
- - Tue, 22 Apr 2014 16:22:30 GMT
39
- Connection:
40
- - keep-alive
41
- Content-Length:
42
- - '107'
43
- body:
44
- encoding: US-ASCII
45
- string: ! '{"data":[{"name":"moviepilotcom","id":6003495809986,"audience_size":4992196,"path":[],"description":null}]}'
46
- http_version:
47
- recorded_at: Tue, 22 Apr 2014 16:22:32 GMT
48
- - request:
49
- method: get
50
- uri: https://graph.facebook.com/search?access_token=CAAEvJ5vzhl8BAPGZCZCPL4FxryEHXGxPCuCGeqe3PEWIjhIvJ00HB8PPpokFmUkemvmEUHirqdNMc7zIDLSTVnX6jTQjAgSlzcYrAYJRQ32fr6RM5ZAnKPdgFEwN5tgvswatXZAI4vu7ZBAQexRl9MU0CpwW7JDDBZAGo5XDrCKrBxkUUWJUvh&q=moviepilotcocomm&type=adinterest
51
- body:
52
- encoding: US-ASCII
53
- string: ''
54
- headers:
55
- User-Agent:
56
- - Faraday v0.8.7
57
- Accept-Encoding:
58
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
59
- Accept:
60
- - ! '*/*'
61
- response:
62
- status:
63
- code: 200
64
- message: OK
65
- headers:
66
- Etag:
67
- - ! '"1050253aec7b29caff644806927dabfa81406eee"'
68
- Content-Type:
69
- - application/json; charset=UTF-8
70
- Pragma:
71
- - no-cache
72
- Access-Control-Allow-Origin:
73
- - ! '*'
74
- X-Fb-Rev:
75
- - '1216101'
76
- Cache-Control:
77
- - private, no-cache, no-store, must-revalidate
78
- Expires:
79
- - Sat, 01 Jan 2000 00:00:00 GMT
80
- X-Fb-Debug:
81
- - bBOfyA7fkYvP457S15CzkxmNavxH4F+Zx+Sys3Ux4v0=
82
- Date:
83
- - Tue, 22 Apr 2014 16:23:50 GMT
84
- Connection:
85
- - keep-alive
86
- Content-Length:
87
- - '11'
88
- body:
89
- encoding: US-ASCII
90
- string: ! '{"data":[]}'
91
- http_version:
92
- recorded_at: Tue, 22 Apr 2014 16:23:52 GMT
93
3
  - request:
94
4
  method: get
95
5
  uri: https://graph.facebook.com/search?access_token=CAAEvJ5vzhl8BAPGZCZCPL4FxryEHXGxPCuCGeqe3PEWIjhIvJ00HB8PPpokFmUkemvmEUHirqdNMc7zIDLSTVnX6jTQjAgSlzcYrAYJRQ32fr6RM5ZAnKPdgFEwN5tgvswatXZAI4vu7ZBAQexRl9MU0CpwW7JDDBZAGo5XDrCKrBxkUUWJUvh&q=moviepilot&type=adinterest
@@ -98,7 +8,7 @@ http_interactions:
98
8
  string: ''
99
9
  headers:
100
10
  User-Agent:
101
- - Faraday v0.8.7
11
+ - Faraday v0.8.9
102
12
  Accept-Encoding:
103
13
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
104
14
  Accept:
@@ -108,8 +18,10 @@ http_interactions:
108
18
  code: 200
109
19
  message: OK
110
20
  headers:
21
+ Facebook-Api-Version:
22
+ - v1.0
111
23
  Etag:
112
- - ! '"60861a1401b05970d9b7f19b2f1a6cbf470fe17b"'
24
+ - ! '"ba0fafe4ed5264db3ef1b4ac787694e839a1e8a6"'
113
25
  Content-Type:
114
26
  - application/json; charset=UTF-8
115
27
  Pragma:
@@ -117,22 +29,27 @@ http_interactions:
117
29
  Access-Control-Allow-Origin:
118
30
  - ! '*'
119
31
  X-Fb-Rev:
120
- - '1216101'
32
+ - '1534884'
121
33
  Cache-Control:
122
34
  - private, no-cache, no-store, must-revalidate
123
35
  Expires:
124
36
  - Sat, 01 Jan 2000 00:00:00 GMT
125
37
  X-Fb-Debug:
126
- - uo6B1d8Kd0luLkuJlq53BjWBVCcZl93SjpuywRl/Aro=
38
+ - PDh3mmxbsNqedDiNcGWtSC5YjmDAdCIV8DlHVOBGy2HkwKHTcgtRhxV/aSil9efUIZamLZayMMTlXYK/8+n2YA==
127
39
  Date:
128
- - Tue, 22 Apr 2014 16:24:12 GMT
40
+ - Wed, 17 Dec 2014 13:24:51 GMT
129
41
  Connection:
130
42
  - keep-alive
131
43
  Content-Length:
132
- - '201'
44
+ - '810'
133
45
  body:
134
46
  encoding: US-ASCII
135
- string: ! '{"data":[{"name":"moviepilotcom","id":6003495809986,"audience_size":4992196,"path":[],"description":null},{"name":"moviepilot","id":6003327847780,"audience_size":2036083,"path":[],"description":null}]}'
47
+ string: ! '{"data":[{"name":"moviepilot horror","id":6016974866325,"audience_size":5155140,"path":[],"description":null},{"name":"moviepilotcom","id":6003495809986,"audience_size":4805530,"path":[],"description":null},{"name":"moviepilot","id":6003327847780,"audience_size":1960530,"path":[],"description":null},{"name":"moviepilot
48
+ superheroes","id":6013950241910,"audience_size":2443280,"path":[],"description":null},{"name":"moviepilot
49
+ tv","id":6014564835078,"audience_size":1427730,"path":[],"description":null},{"name":"moviepilot
50
+ action","id":6014532714533,"audience_size":1372480,"path":[],"description":null},{"name":"moviepilot
51
+ animation","id":6021685075080,"audience_size":1278040,"path":[],"description":null},{"name":"moviepilot
52
+ scifi","id":6014484233967,"audience_size":1115420,"path":[],"description":null}]}'
136
53
  http_version:
137
- recorded_at: Tue, 22 Apr 2014 16:24:13 GMT
54
+ recorded_at: Wed, 17 Dec 2014 13:24:51 GMT
138
55
  recorded_with: VCR 2.3.0
@@ -8,7 +8,7 @@ http_interactions:
8
8
  string: ''
9
9
  headers:
10
10
  User-Agent:
11
- - Faraday v0.8.7
11
+ - Faraday v0.8.9
12
12
  Accept-Encoding:
13
13
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
14
  Accept:
@@ -18,6 +18,8 @@ http_interactions:
18
18
  code: 200
19
19
  message: OK
20
20
  headers:
21
+ Facebook-Api-Version:
22
+ - v1.0
21
23
  Etag:
22
24
  - ! '"1050253aec7b29caff644806927dabfa81406eee"'
23
25
  Content-Type:
@@ -27,15 +29,15 @@ http_interactions:
27
29
  Access-Control-Allow-Origin:
28
30
  - ! '*'
29
31
  X-Fb-Rev:
30
- - '1216101'
32
+ - '1534884'
31
33
  Cache-Control:
32
34
  - private, no-cache, no-store, must-revalidate
33
35
  Expires:
34
36
  - Sat, 01 Jan 2000 00:00:00 GMT
35
37
  X-Fb-Debug:
36
- - QNmfkVe55l+0EhPmSprtl/3hWTHE0fyabyRpktddxtg=
38
+ - EeFRTf5/YcAT53Pj0vja6Ox7Gf/Utwd/C1994u9m/1KNlnwdO7ZUnAyMWLtNfMJIGaKumgmxYKba1r7tg+99sg==
37
39
  Date:
38
- - Tue, 22 Apr 2014 16:22:30 GMT
40
+ - Wed, 17 Dec 2014 13:24:51 GMT
39
41
  Connection:
40
42
  - keep-alive
41
43
  Content-Length:
@@ -44,5 +46,5 @@ http_interactions:
44
46
  encoding: US-ASCII
45
47
  string: ! '{"data":[]}'
46
48
  http_version:
47
- recorded_at: Tue, 22 Apr 2014 16:22:32 GMT
49
+ recorded_at: Wed, 17 Dec 2014 13:24:52 GMT
48
50
  recorded_with: VCR 2.3.0
@@ -2,13 +2,13 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: https://graph.facebook.com/act_10150585630710217/adcampaigns
5
+ uri: https://graph.facebook.com/act_10150585630710217/adcampaign_groups
6
6
  body:
7
7
  encoding: US-ASCII
8
- string: daily_budget=1000&name=bloody&redownload=1&access_token=CAAEvJ5vzhl8BAH8aCPOx0Ft9uNB147TF8weJ8hK0g7YVDRWU4eEih7tEKdJgmfk0vABZClZACJbEzyhSMbiShL6RpsfkZASfX1C9nv1AlFvjJajflqkyYZAlpE2edT0FJHjdh4NFg0ZCt0sBgq0kZABtKsjuU18aMURLE7rjKHR4X8NkXBUafg1T4uZARRNqboZD
8
+ string: objective=NONE&name=bloody&campaign_group_status=PAUSED&redownload=1&access_token=CAAEvJ5vzhl8BANgaZCvjMZCRsIbNZCSPswoDM0MTx8g30ojs53HUp43aVBVdqHnu9kIFytWIR5oRfp1Sy8DZBtJ9p5Rw2kY93ZAu6EwzHqZCrjmeBxXBWWlMCty1Bg4zKc3abdbjgoX4fWP4NWCEyWZCFJBKXWR0WV3ZC63bSqw7ojzYJm4teOarRc1GaesGIlIKlZB6s7EwZA1qUZCCKsdZCSsq%0A
9
9
  headers:
10
10
  User-Agent:
11
- - Faraday v0.8.7
11
+ - Faraday v0.8.9
12
12
  Content-Type:
13
13
  - application/x-www-form-urlencoded
14
14
  Accept:
@@ -18,29 +18,354 @@ http_interactions:
18
18
  code: 200
19
19
  message: OK
20
20
  headers:
21
+ Facebook-Api-Version:
22
+ - v1.0
23
+ Content-Type:
24
+ - application/json; charset=UTF-8
25
+ Pragma:
26
+ - no-cache
27
+ Access-Control-Allow-Origin:
28
+ - ! '*'
29
+ X-Fb-Rev:
30
+ - '1534884'
31
+ Cache-Control:
32
+ - private, no-cache, no-store, must-revalidate
33
+ Expires:
34
+ - Sat, 01 Jan 2000 00:00:00 GMT
35
+ X-Fb-Debug:
36
+ - HeM4gUMXZnF8tosYPUyflz1+gmIeE8hhPw1Dlja/IF+QoMaQJHnfqMQSK2Ytn8PLh6G2oXzs7dc/D1bhxUpzQg==
37
+ Date:
38
+ - Wed, 17 Dec 2014 12:36:39 GMT
39
+ Connection:
40
+ - keep-alive
41
+ Content-Length:
42
+ - '22'
43
+ body:
44
+ encoding: US-ASCII
45
+ string: ! '{"id":"6021526002351"}'
46
+ http_version:
47
+ recorded_at: Wed, 17 Dec 2014 12:36:39 GMT
48
+ - request:
49
+ method: get
50
+ uri: https://graph.facebook.com/6021526002351?access_token=CAAEvJ5vzhl8BANgaZCvjMZCRsIbNZCSPswoDM0MTx8g30ojs53HUp43aVBVdqHnu9kIFytWIR5oRfp1Sy8DZBtJ9p5Rw2kY93ZAu6EwzHqZCrjmeBxXBWWlMCty1Bg4zKc3abdbjgoX4fWP4NWCEyWZCFJBKXWR0WV3ZC63bSqw7ojzYJm4teOarRc1GaesGIlIKlZB6s7EwZA1qUZCCKsdZCSsq%0A&fields=id,account_id,objective,name,adgroups,campaign_group_status,buying_type
51
+ body:
52
+ encoding: US-ASCII
53
+ string: ''
54
+ headers:
55
+ User-Agent:
56
+ - Faraday v0.8.9
57
+ Accept-Encoding:
58
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
59
+ Accept:
60
+ - ! '*/*'
61
+ response:
62
+ status:
63
+ code: 200
64
+ message: OK
65
+ headers:
66
+ Facebook-Api-Version:
67
+ - v1.0
68
+ Etag:
69
+ - ! '"3736f9a12bc6ae9cc060139d7a7bdf82091b83ed"'
70
+ Content-Type:
71
+ - application/json; charset=UTF-8
72
+ Pragma:
73
+ - no-cache
74
+ Access-Control-Allow-Origin:
75
+ - ! '*'
76
+ X-Fb-Rev:
77
+ - '1534884'
78
+ Cache-Control:
79
+ - private, no-cache, no-store, must-revalidate
80
+ Expires:
81
+ - Sat, 01 Jan 2000 00:00:00 GMT
82
+ X-Fb-Debug:
83
+ - dQRT2uJTXlbkwmXD65KiDpyzA+lKD5AaMTI1Vvtoiph4VHgt6XoCejxvqSIgfOQjlEyHHJmZws6hHJeCOpqBFw==
84
+ Date:
85
+ - Wed, 17 Dec 2014 12:36:39 GMT
86
+ Connection:
87
+ - keep-alive
88
+ Content-Length:
89
+ - '147'
90
+ body:
91
+ encoding: US-ASCII
92
+ string: ! '{"id":"6021526002351","account_id":"10150585630710217","objective":"NONE","name":"bloody","campaign_group_status":"PAUSED","buying_type":"AUCTION"}'
93
+ http_version:
94
+ recorded_at: Wed, 17 Dec 2014 12:36:39 GMT
95
+ - request:
96
+ method: post
97
+ uri: https://graph.facebook.com/act_10150585630710217/adcampaign_groups
98
+ body:
99
+ encoding: US-ASCII
100
+ string: daily_budget=1000&name=bloody&redownload=1&access_token=CAAEvJ5vzhl8BANgaZCvjMZCRsIbNZCSPswoDM0MTx8g30ojs53HUp43aVBVdqHnu9kIFytWIR5oRfp1Sy8DZBtJ9p5Rw2kY93ZAu6EwzHqZCrjmeBxXBWWlMCty1Bg4zKc3abdbjgoX4fWP4NWCEyWZCFJBKXWR0WV3ZC63bSqw7ojzYJm4teOarRc1GaesGIlIKlZB6s7EwZA1qUZCCKsdZCSsq%0A
101
+ headers:
102
+ User-Agent:
103
+ - Faraday v0.8.9
104
+ Content-Type:
105
+ - application/x-www-form-urlencoded
106
+ Accept:
107
+ - ! '*/*'
108
+ response:
109
+ status:
110
+ code: 200
111
+ message: OK
112
+ headers:
113
+ Facebook-Api-Version:
114
+ - v1.0
115
+ Content-Type:
116
+ - application/json; charset=UTF-8
117
+ Pragma:
118
+ - no-cache
119
+ Access-Control-Allow-Origin:
120
+ - ! '*'
121
+ X-Fb-Rev:
122
+ - '1534884'
123
+ Cache-Control:
124
+ - private, no-cache, no-store, must-revalidate
125
+ Expires:
126
+ - Sat, 01 Jan 2000 00:00:00 GMT
127
+ X-Fb-Debug:
128
+ - ytW26Re6zcyJJrzH6p0jzQX//SqKqs31D/Ajq62fEx06RhlA+86UJVZPuSiZgCiVSnK2XqzeYteBGkk6D/zQqA==
129
+ Date:
130
+ - Wed, 17 Dec 2014 12:36:40 GMT
131
+ Connection:
132
+ - keep-alive
133
+ Content-Length:
134
+ - '22'
135
+ body:
136
+ encoding: US-ASCII
137
+ string: ! '{"id":"6021526002751"}'
138
+ http_version:
139
+ recorded_at: Wed, 17 Dec 2014 12:36:40 GMT
140
+ - request:
141
+ method: get
142
+ uri: https://graph.facebook.com/6021526002751?access_token=CAAEvJ5vzhl8BANgaZCvjMZCRsIbNZCSPswoDM0MTx8g30ojs53HUp43aVBVdqHnu9kIFytWIR5oRfp1Sy8DZBtJ9p5Rw2kY93ZAu6EwzHqZCrjmeBxXBWWlMCty1Bg4zKc3abdbjgoX4fWP4NWCEyWZCFJBKXWR0WV3ZC63bSqw7ojzYJm4teOarRc1GaesGIlIKlZB6s7EwZA1qUZCCKsdZCSsq%0A&fields=id,account_id,objective,name,adgroups,campaign_group_status,buying_type
143
+ body:
144
+ encoding: US-ASCII
145
+ string: ''
146
+ headers:
147
+ User-Agent:
148
+ - Faraday v0.8.9
149
+ Accept-Encoding:
150
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
151
+ Accept:
152
+ - ! '*/*'
153
+ response:
154
+ status:
155
+ code: 200
156
+ message: OK
157
+ headers:
158
+ Facebook-Api-Version:
159
+ - v1.0
160
+ Etag:
161
+ - ! '"6353d0cc0af184d726da98c8377b6a40275aa141"'
162
+ Content-Type:
163
+ - application/json; charset=UTF-8
164
+ Pragma:
165
+ - no-cache
166
+ Access-Control-Allow-Origin:
167
+ - ! '*'
168
+ X-Fb-Rev:
169
+ - '1534884'
170
+ Cache-Control:
171
+ - private, no-cache, no-store, must-revalidate
172
+ Expires:
173
+ - Sat, 01 Jan 2000 00:00:00 GMT
174
+ X-Fb-Debug:
175
+ - UKZJPyK56yYC8zcqlDeWGhUyeQMN2CzglEDX3iyH/U9aok2lXIHiMt79Sgk8SrvaWeooPuO12QJ/K4pDEyMMCw==
176
+ Date:
177
+ - Wed, 17 Dec 2014 12:36:40 GMT
178
+ Connection:
179
+ - keep-alive
180
+ Content-Length:
181
+ - '147'
182
+ body:
183
+ encoding: US-ASCII
184
+ string: ! '{"id":"6021526002751","account_id":"10150585630710217","objective":"NONE","name":"bloody","campaign_group_status":"ACTIVE","buying_type":"AUCTION"}'
185
+ http_version:
186
+ recorded_at: Wed, 17 Dec 2014 12:36:40 GMT
187
+ - request:
188
+ method: post
189
+ uri: https://graph.facebook.com/act_10150585630710217/adcampaign_groups
190
+ body:
191
+ encoding: US-ASCII
192
+ string: objective=NONE&name=bloody&campaign_group_status=PAUSED&redownload=1&access_token=CAAEvJ5vzhl8BAICOwypV5nYnYWXhBq1eskHA7rKyrz9fXcAvKRXDWVZAaG7FpQ21qTXeCtGZCR7iu1dtZCqZCZBZCQbefKrMOnZAibDZAiQKiX0s22PgtKuCoQK4LDVimREnqkGdoLMyB4zgT3A6ZAU7pn6wc2mTzZBWVbkr71bZBJKjhyeb4V58TkMsUbN9SQer3ZCRRtWTxqNFTUwHuv51RoVsI7LNw0mCr5gZD%0A
193
+ headers:
194
+ User-Agent:
195
+ - Faraday v0.8.9
196
+ Content-Type:
197
+ - application/x-www-form-urlencoded
198
+ Accept:
199
+ - ! '*/*'
200
+ response:
201
+ status:
202
+ code: 200
203
+ message: OK
204
+ headers:
205
+ Facebook-Api-Version:
206
+ - v1.0
207
+ Content-Type:
208
+ - application/json; charset=UTF-8
209
+ Pragma:
210
+ - no-cache
21
211
  Access-Control-Allow-Origin:
22
212
  - ! '*'
213
+ X-Fb-Rev:
214
+ - '1534884'
23
215
  Cache-Control:
24
216
  - private, no-cache, no-store, must-revalidate
217
+ Expires:
218
+ - Sat, 01 Jan 2000 00:00:00 GMT
219
+ X-Fb-Debug:
220
+ - BSslwdPKoCUDbK/Se4RofSPSR+iTZpq/1ITa6q9QPOsR6jvnPg9b1Bjl5egU6DhOkve8TlD9oGcEj6Cv9HSsOg==
221
+ Date:
222
+ - Wed, 17 Dec 2014 13:22:11 GMT
223
+ Connection:
224
+ - keep-alive
225
+ Content-Length:
226
+ - '22'
227
+ body:
228
+ encoding: US-ASCII
229
+ string: ! '{"id":"6021528859351"}'
230
+ http_version:
231
+ recorded_at: Wed, 17 Dec 2014 13:22:11 GMT
232
+ - request:
233
+ method: get
234
+ uri: https://graph.facebook.com/6021528859351?access_token=CAAEvJ5vzhl8BAICOwypV5nYnYWXhBq1eskHA7rKyrz9fXcAvKRXDWVZAaG7FpQ21qTXeCtGZCR7iu1dtZCqZCZBZCQbefKrMOnZAibDZAiQKiX0s22PgtKuCoQK4LDVimREnqkGdoLMyB4zgT3A6ZAU7pn6wc2mTzZBWVbkr71bZBJKjhyeb4V58TkMsUbN9SQer3ZCRRtWTxqNFTUwHuv51RoVsI7LNw0mCr5gZD%0A&fields=id,account_id,objective,name,adgroups,campaign_group_status,buying_type
235
+ body:
236
+ encoding: US-ASCII
237
+ string: ''
238
+ headers:
239
+ User-Agent:
240
+ - Faraday v0.8.9
241
+ Accept-Encoding:
242
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
243
+ Accept:
244
+ - ! '*/*'
245
+ response:
246
+ status:
247
+ code: 200
248
+ message: OK
249
+ headers:
250
+ Facebook-Api-Version:
251
+ - v1.0
252
+ Etag:
253
+ - ! '"752a6a8f80f647b40b853df0bdabd436f39f1be2"'
25
254
  Content-Type:
26
255
  - application/json; charset=UTF-8
256
+ Pragma:
257
+ - no-cache
258
+ Access-Control-Allow-Origin:
259
+ - ! '*'
260
+ X-Fb-Rev:
261
+ - '1534884'
262
+ Cache-Control:
263
+ - private, no-cache, no-store, must-revalidate
27
264
  Expires:
28
265
  - Sat, 01 Jan 2000 00:00:00 GMT
266
+ X-Fb-Debug:
267
+ - 6h465SC5/bFpaXvhJjiOTNLPb1Cslv5ZT8KP7lyeYOd8vOZtv/Y2ZiGZVitmiBlFXrh0f82PPTHp6/SVQK2XOw==
268
+ Date:
269
+ - Wed, 17 Dec 2014 13:22:11 GMT
270
+ Connection:
271
+ - keep-alive
272
+ Content-Length:
273
+ - '147'
274
+ body:
275
+ encoding: US-ASCII
276
+ string: ! '{"id":"6021528859351","account_id":"10150585630710217","objective":"NONE","name":"bloody","campaign_group_status":"PAUSED","buying_type":"AUCTION"}'
277
+ http_version:
278
+ recorded_at: Wed, 17 Dec 2014 13:22:11 GMT
279
+ - request:
280
+ method: post
281
+ uri: https://graph.facebook.com/act_10150585630710217/adcampaign_groups
282
+ body:
283
+ encoding: US-ASCII
284
+ string: daily_budget=1000&name=bloody&redownload=1&access_token=CAAEvJ5vzhl8BAICOwypV5nYnYWXhBq1eskHA7rKyrz9fXcAvKRXDWVZAaG7FpQ21qTXeCtGZCR7iu1dtZCqZCZBZCQbefKrMOnZAibDZAiQKiX0s22PgtKuCoQK4LDVimREnqkGdoLMyB4zgT3A6ZAU7pn6wc2mTzZBWVbkr71bZBJKjhyeb4V58TkMsUbN9SQer3ZCRRtWTxqNFTUwHuv51RoVsI7LNw0mCr5gZD%0A
285
+ headers:
286
+ User-Agent:
287
+ - Faraday v0.8.9
288
+ Content-Type:
289
+ - application/x-www-form-urlencoded
290
+ Accept:
291
+ - ! '*/*'
292
+ response:
293
+ status:
294
+ code: 200
295
+ message: OK
296
+ headers:
297
+ Facebook-Api-Version:
298
+ - v1.0
299
+ Content-Type:
300
+ - application/json; charset=UTF-8
301
+ Pragma:
302
+ - no-cache
303
+ Access-Control-Allow-Origin:
304
+ - ! '*'
305
+ X-Fb-Rev:
306
+ - '1534884'
307
+ Cache-Control:
308
+ - private, no-cache, no-store, must-revalidate
309
+ Expires:
310
+ - Sat, 01 Jan 2000 00:00:00 GMT
311
+ X-Fb-Debug:
312
+ - SPlBiUXbWh21CrryVHMCnq+8SmtcNwvxHBDFx3QjCzBesHCX4T+4hmoCHHb1KzkvUG/W15CyC4GcqRUUs8uJGQ==
313
+ Date:
314
+ - Wed, 17 Dec 2014 13:22:11 GMT
315
+ Connection:
316
+ - keep-alive
317
+ Content-Length:
318
+ - '22'
319
+ body:
320
+ encoding: US-ASCII
321
+ string: ! '{"id":"6021528860151"}'
322
+ http_version:
323
+ recorded_at: Wed, 17 Dec 2014 13:22:12 GMT
324
+ - request:
325
+ method: get
326
+ uri: https://graph.facebook.com/6021528860151?access_token=CAAEvJ5vzhl8BAICOwypV5nYnYWXhBq1eskHA7rKyrz9fXcAvKRXDWVZAaG7FpQ21qTXeCtGZCR7iu1dtZCqZCZBZCQbefKrMOnZAibDZAiQKiX0s22PgtKuCoQK4LDVimREnqkGdoLMyB4zgT3A6ZAU7pn6wc2mTzZBWVbkr71bZBJKjhyeb4V58TkMsUbN9SQer3ZCRRtWTxqNFTUwHuv51RoVsI7LNw0mCr5gZD%0A&fields=id,account_id,objective,name,adgroups,campaign_group_status,buying_type
327
+ body:
328
+ encoding: US-ASCII
329
+ string: ''
330
+ headers:
331
+ User-Agent:
332
+ - Faraday v0.8.9
333
+ Accept-Encoding:
334
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
335
+ Accept:
336
+ - ! '*/*'
337
+ response:
338
+ status:
339
+ code: 200
340
+ message: OK
341
+ headers:
342
+ Facebook-Api-Version:
343
+ - v1.0
344
+ Etag:
345
+ - ! '"0f8e4d1524b28f1e8115bc77daa6af3d21468ff7"'
346
+ Content-Type:
347
+ - application/json; charset=UTF-8
29
348
  Pragma:
30
349
  - no-cache
350
+ Access-Control-Allow-Origin:
351
+ - ! '*'
31
352
  X-Fb-Rev:
32
- - '934677'
353
+ - '1534884'
354
+ Cache-Control:
355
+ - private, no-cache, no-store, must-revalidate
356
+ Expires:
357
+ - Sat, 01 Jan 2000 00:00:00 GMT
33
358
  X-Fb-Debug:
34
- - dBkoLaGUd+HznksLCn3Bm6MynGuWLt1FSoPdKmWJ1fw=
359
+ - KAGRLC9NZdrfAwAqHuaKCZMq8gtr4xUagFtbNqXDSzc0K/0NJyP3+53Nv70857mXOdyd2vvSuHJYVhC6gjT7Fg==
35
360
  Date:
36
- - Thu, 12 Sep 2013 13:21:41 GMT
361
+ - Wed, 17 Dec 2014 13:22:12 GMT
37
362
  Connection:
38
363
  - keep-alive
39
364
  Content-Length:
40
- - '341'
365
+ - '147'
41
366
  body:
42
367
  encoding: US-ASCII
43
- string: ! '{"id":"6010891175951","data":{"campaigns":{"6010891175951":{"id":"6010891175951","account_id":"10150585630710217","name":"bloody","daily_budget":1000,"campaign_status":1,"daily_imps":0,"frequency_cap":0,"frequency_cap_reset_period":0,"start_time":1378992101,"updated_time":1378992101,"created_time":1378992101,"campaign_id":6010891175951}}}}'
368
+ string: ! '{"id":"6021528860151","account_id":"10150585630710217","objective":"NONE","name":"bloody","campaign_group_status":"ACTIVE","buying_type":"AUCTION"}'
44
369
  http_version:
45
- recorded_at: Thu, 12 Sep 2013 13:21:41 GMT
370
+ recorded_at: Wed, 17 Dec 2014 13:22:12 GMT
46
371
  recorded_with: VCR 2.3.0