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,14 +1,61 @@
1
1
  ---
2
2
  http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://graph.facebook.com/6021525283751?access_token=CAAEvJ5vzhl8BANgaZCvjMZCRsIbNZCSPswoDM0MTx8g30ojs53HUp43aVBVdqHnu9kIFytWIR5oRfp1Sy8DZBtJ9p5Rw2kY93ZAu6EwzHqZCrjmeBxXBWWlMCty1Bg4zKc3abdbjgoX4fWP4NWCEyWZCFJBKXWR0WV3ZC63bSqw7ojzYJm4teOarRc1GaesGIlIKlZB6s7EwZA1qUZCCKsdZCSsq%0A&fields=id,name,account_id,bid_type,bid_info,campaign_group_id,campaign_status,start_time,end_time,updated_time,created_time,daily_budget,lifetime_budget,budget_remaining,targeting,promoted_object
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.8.9
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
+ Facebook-Api-Version:
22
+ - v1.0
23
+ Etag:
24
+ - ! '"6d1f3fb1b8dc7e25bd46f71dd1ec13f3c6ad7d09"'
25
+ Content-Type:
26
+ - application/json; charset=UTF-8
27
+ Pragma:
28
+ - no-cache
29
+ Access-Control-Allow-Origin:
30
+ - ! '*'
31
+ X-Fb-Rev:
32
+ - '1534884'
33
+ Cache-Control:
34
+ - private, no-cache, no-store, must-revalidate
35
+ Expires:
36
+ - Sat, 01 Jan 2000 00:00:00 GMT
37
+ X-Fb-Debug:
38
+ - 9bZNvyB5HQZO7RwDT0Bol5xsP4JoQADI6bblZnxLLpN8R8UmskJOCqa4E0iAJ6ATvKEkHr/zZyLaNhERQe3BDg==
39
+ Date:
40
+ - Wed, 17 Dec 2014 12:36:40 GMT
41
+ Connection:
42
+ - keep-alive
43
+ Content-Length:
44
+ - '324'
45
+ body:
46
+ encoding: US-ASCII
47
+ string: ! '{"id":"6021525283751","name":"test ad set","account_id":"10150585630710217","campaign_group_id":"6021499361751","campaign_status":"ACTIVE","start_time":"2014-12-17T12:53:23+0100","updated_time":"2014-12-17T13:29:58+0100","created_time":"2014-12-17T12:53:23+0100","daily_budget":100,"lifetime_budget":0,"budget_remaining":46}'
48
+ http_version:
49
+ recorded_at: Wed, 17 Dec 2014 12:36:40 GMT
3
50
  - request:
4
51
  method: post
5
52
  uri: https://graph.facebook.com/act_10150585630710217/adgroups
6
53
  body:
7
54
  encoding: US-ASCII
8
- string: bid_type=CPC&max_bid=1&name=Rap+like+me&targeting=%7B%22countries%22%3A%5B%22US%22%5D%7D&creative=%7B%22type%22%3A25%2C%22action_spec%22%3A%7B%22action.type%22%3A%22like%22%2C+%22post%22%3A10150420410887685%7D%7D&campaign_id=6010889111951&redownload=1&access_token=CAAEvJ5vzhl8BAH8aCPOx0Ft9uNB147TF8weJ8hK0g7YVDRWU4eEih7tEKdJgmfk0vABZClZACJbEzyhSMbiShL6RpsfkZASfX1C9nv1AlFvjJajflqkyYZAlpE2edT0FJHjdh4NFg0ZCt0sBgq0kZABtKsjuU18aMURLE7rjKHR4X8NkXBUafg1T4uZARRNqboZD
55
+ string: bid_type=CPC&bid_info=%7B%22CLICKS%22%3A+1%7D&name=Rap+like+me&targeting=%7B%22geo_locations%22%3A+%7B%22countries%22%3A%5B%22US%22%5D%7D%7D&objective=WEBSITE_CLICKS&creative=%7B%22creative_id%22%3A+%226021396606151%22%7D&campaign_id=6021525283751&redownload=1&access_token=CAAEvJ5vzhl8BANgaZCvjMZCRsIbNZCSPswoDM0MTx8g30ojs53HUp43aVBVdqHnu9kIFytWIR5oRfp1Sy8DZBtJ9p5Rw2kY93ZAu6EwzHqZCrjmeBxXBWWlMCty1Bg4zKc3abdbjgoX4fWP4NWCEyWZCFJBKXWR0WV3ZC63bSqw7ojzYJm4teOarRc1GaesGIlIKlZB6s7EwZA1qUZCCKsdZCSsq%0A
9
56
  headers:
10
57
  User-Agent:
11
- - Faraday v0.8.7
58
+ - Faraday v0.8.9
12
59
  Content-Type:
13
60
  - application/x-www-form-urlencoded
14
61
  Accept:
@@ -18,31 +65,129 @@ http_interactions:
18
65
  code: 200
19
66
  message: OK
20
67
  headers:
68
+ Facebook-Api-Version:
69
+ - v1.0
70
+ Content-Type:
71
+ - application/json; charset=UTF-8
72
+ Pragma:
73
+ - no-cache
21
74
  Access-Control-Allow-Origin:
22
75
  - ! '*'
76
+ X-Fb-Rev:
77
+ - '1534884'
23
78
  Cache-Control:
24
79
  - private, no-cache, no-store, must-revalidate
80
+ Expires:
81
+ - Sat, 01 Jan 2000 00:00:00 GMT
82
+ X-Fb-Debug:
83
+ - NTaINAkcgTiUSFH5+UEXMohGCHDwFGHQonsYLcjJ2IWVsC1KLxB7K6eB2ZPqHozhgYRPpL/YxojDPEPfZxCdmw==
84
+ Date:
85
+ - Wed, 17 Dec 2014 12:36:41 GMT
86
+ Transfer-Encoding:
87
+ - chunked
88
+ Connection:
89
+ - keep-alive
90
+ body:
91
+ encoding: US-ASCII
92
+ string: ! '{"id":"6021526003751","data":{"adgroups":{"6021526003751":{"id":"6021526003751","account_id":"10150585630710217","adgroup_status":"PENDING_REVIEW","bid_info":{"CLICKS":1},"bid_type":"CPC","campaign_id":"6021525283751","creative_ids":["6021396606151"],"impression_control_map":[{"location":3,"control":{"impression_control_type":2,"user_impression_limit":6,"user_impression_limit_period":24,"user_impression_limit_period_unit":0}}],"last_updated_by_app_id":333322143368799,"locations":[3],"name":"Rap
93
+ like me","objective":"WEBSITE_CLICKS","targeting":{"age_max":65,"age_min":18,"geo_locations":{"countries":["US"]}},"tracking_specs":[{"action.type":["post_engagement"],"page":[250413944992062],"post":[882760995090684]}],"updated_time":1418819801,"created_time":1418819801}},"creatives":{"6021396606151":{"id":"6021396606151","object_type":"SHARE","object_story_id":"250413944992062_882760995090684","object_story_spec":{"page_id":"250413944992062","link_data":{"link":"http:\/\/moviepilot.com\/","message":"Story
94
+ message","name":"Link Name","caption":"Link Caption","description":"A description","picture":"http:\/\/graph.facebook.com\/moviepilotdotcom\/picture"}},"name":"Link
95
+ Page Post Ad Creative"}}}}'
96
+ http_version:
97
+ recorded_at: Wed, 17 Dec 2014 12:36:41 GMT
98
+ - request:
99
+ method: get
100
+ uri: https://graph.facebook.com/6021525283751?access_token=CAAEvJ5vzhl8BAICOwypV5nYnYWXhBq1eskHA7rKyrz9fXcAvKRXDWVZAaG7FpQ21qTXeCtGZCR7iu1dtZCqZCZBZCQbefKrMOnZAibDZAiQKiX0s22PgtKuCoQK4LDVimREnqkGdoLMyB4zgT3A6ZAU7pn6wc2mTzZBWVbkr71bZBJKjhyeb4V58TkMsUbN9SQer3ZCRRtWTxqNFTUwHuv51RoVsI7LNw0mCr5gZD%0A&fields=id,name,account_id,bid_type,bid_info,campaign_group_id,campaign_status,start_time,end_time,updated_time,created_time,daily_budget,lifetime_budget,budget_remaining,targeting,promoted_object
101
+ body:
102
+ encoding: US-ASCII
103
+ string: ''
104
+ headers:
105
+ User-Agent:
106
+ - Faraday v0.8.9
107
+ Accept-Encoding:
108
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
109
+ Accept:
110
+ - ! '*/*'
111
+ response:
112
+ status:
113
+ code: 200
114
+ message: OK
115
+ headers:
116
+ Facebook-Api-Version:
117
+ - v1.0
118
+ Etag:
119
+ - ! '"6d1f3fb1b8dc7e25bd46f71dd1ec13f3c6ad7d09"'
25
120
  Content-Type:
26
121
  - application/json; charset=UTF-8
122
+ Pragma:
123
+ - no-cache
124
+ Access-Control-Allow-Origin:
125
+ - ! '*'
126
+ X-Fb-Rev:
127
+ - '1534884'
128
+ Cache-Control:
129
+ - private, no-cache, no-store, must-revalidate
27
130
  Expires:
28
131
  - Sat, 01 Jan 2000 00:00:00 GMT
132
+ X-Fb-Debug:
133
+ - 9XcopJVIBLF438Uia/6uZLT4M4qLlKiglNysRbACUHTi2TbtpfjPJUxngDNCHhQYM7Qs2iZilXOqzkCj6yd/yA==
134
+ Date:
135
+ - Wed, 17 Dec 2014 13:22:12 GMT
136
+ Connection:
137
+ - keep-alive
138
+ Content-Length:
139
+ - '324'
140
+ body:
141
+ encoding: US-ASCII
142
+ string: ! '{"id":"6021525283751","name":"test ad set","account_id":"10150585630710217","campaign_group_id":"6021499361751","campaign_status":"ACTIVE","start_time":"2014-12-17T12:53:23+0100","updated_time":"2014-12-17T13:29:58+0100","created_time":"2014-12-17T12:53:23+0100","daily_budget":100,"lifetime_budget":0,"budget_remaining":46}'
143
+ http_version:
144
+ recorded_at: Wed, 17 Dec 2014 13:22:12 GMT
145
+ - request:
146
+ method: post
147
+ uri: https://graph.facebook.com/act_10150585630710217/adgroups
148
+ body:
149
+ encoding: US-ASCII
150
+ string: bid_type=CPC&bid_info=%7B%22CLICKS%22%3A+1%7D&name=Rap+like+me&targeting=%7B%22geo_locations%22%3A+%7B%22countries%22%3A%5B%22US%22%5D%7D%7D&objective=WEBSITE_CLICKS&creative=%7B%22creative_id%22%3A+%226021396606151%22%7D&campaign_id=6021525283751&redownload=1&access_token=CAAEvJ5vzhl8BAICOwypV5nYnYWXhBq1eskHA7rKyrz9fXcAvKRXDWVZAaG7FpQ21qTXeCtGZCR7iu1dtZCqZCZBZCQbefKrMOnZAibDZAiQKiX0s22PgtKuCoQK4LDVimREnqkGdoLMyB4zgT3A6ZAU7pn6wc2mTzZBWVbkr71bZBJKjhyeb4V58TkMsUbN9SQer3ZCRRtWTxqNFTUwHuv51RoVsI7LNw0mCr5gZD%0A
151
+ headers:
152
+ User-Agent:
153
+ - Faraday v0.8.9
154
+ Content-Type:
155
+ - application/x-www-form-urlencoded
156
+ Accept:
157
+ - ! '*/*'
158
+ response:
159
+ status:
160
+ code: 200
161
+ message: OK
162
+ headers:
163
+ Facebook-Api-Version:
164
+ - v1.0
165
+ Content-Type:
166
+ - application/json; charset=UTF-8
29
167
  Pragma:
30
168
  - no-cache
169
+ Access-Control-Allow-Origin:
170
+ - ! '*'
31
171
  X-Fb-Rev:
32
- - '934677'
172
+ - '1534884'
173
+ Cache-Control:
174
+ - private, no-cache, no-store, must-revalidate
175
+ Expires:
176
+ - Sat, 01 Jan 2000 00:00:00 GMT
33
177
  X-Fb-Debug:
34
- - 40pq1sYZfSG3uVJTkgqTxLh8ul6oVyjcwRASFefh3mY=
178
+ - vExd7wU6raTmfRq43ihY78qXWPocxMA155ZybDyAFBdzLDi22iW/qIn4j3cSSQPyiv15aoi0HlX7ilyHL7rk/Q==
35
179
  Date:
36
- - Thu, 12 Sep 2013 13:21:42 GMT
180
+ - Wed, 17 Dec 2014 13:22:13 GMT
37
181
  Transfer-Encoding:
38
182
  - chunked
39
183
  Connection:
40
184
  - keep-alive
41
185
  body:
42
186
  encoding: US-ASCII
43
- string: ! '{"id":"6010891176751","data":{"adgroups":{"6010891176751":{"id":"6010891176751","account_id":"10150585630710217","adgroup_status":4,"bid_info":{"1":1},"bid_type":1,"campaign_id":6010889111951,"conversion_specs":[],"creative_ids":[6010888561951],"impression_control_map":[{"location":3,"control":{"impression_control_type":2,"user_impression_limit":6,"user_impression_limit_period":24,"user_impression_limit_period_unit":0}}],"last_updated_by_app_id":333322143368799,"locations":[3],"name":"Rap
44
- like me","targeting":{"countries":["US"]},"tracking_specs":[],"updated_time":1378992102,"created_time":1378992102,"ad_id":6010891176751,"adgroup_id":6010891176751,"max_bid":1,"tracking_pixel_ids":[]}},"creatives":{"6010888561951":{"id":"6010888561951","action_spec":[{"action.type":["like"],"post":["10150420410887685"]}],"image_url":"","name":"Sponsored
45
- story #6,010,888,561,951","preview_url":"https:\/\/www.facebook.com\/ads\/api\/creative_preview.php?cid=6010888561951","related_fan_page":1,"type":25,"creative_id":6010888561951,"run_status":1,"count_current_adgroups":11}}}}'
187
+ string: ! '{"id":"6021528861551","data":{"adgroups":{"6021528861551":{"id":"6021528861551","account_id":"10150585630710217","adgroup_status":"PENDING_REVIEW","bid_info":{"CLICKS":1},"bid_type":"CPC","campaign_id":"6021525283751","creative_ids":["6021396606151"],"impression_control_map":[{"location":3,"control":{"impression_control_type":2,"user_impression_limit":6,"user_impression_limit_period":24,"user_impression_limit_period_unit":0}}],"last_updated_by_app_id":333322143368799,"locations":[3],"name":"Rap
188
+ like me","objective":"WEBSITE_CLICKS","targeting":{"age_max":65,"age_min":18,"geo_locations":{"countries":["US"]}},"tracking_specs":[{"action.type":["post_engagement"],"page":[250413944992062],"post":[882760995090684]}],"updated_time":1418822533,"created_time":1418822533}},"creatives":{"6021396606151":{"id":"6021396606151","object_type":"SHARE","object_story_id":"250413944992062_882760995090684","object_story_spec":{"page_id":"250413944992062","link_data":{"link":"http:\/\/moviepilot.com\/","message":"Story
189
+ message","name":"Link Name","caption":"Link Caption","description":"A description","picture":"http:\/\/graph.facebook.com\/moviepilotdotcom\/picture"}},"name":"Link
190
+ Page Post Ad Creative"}}}}'
46
191
  http_version:
47
- recorded_at: Thu, 12 Sep 2013 13:21:42 GMT
192
+ recorded_at: Wed, 17 Dec 2014 13:22:13 GMT
48
193
  recorded_with: VCR 2.3.0
@@ -0,0 +1,95 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://graph.facebook.com/act_10150585630710217/adcampaigns
6
+ body:
7
+ encoding: US-ASCII
8
+ string: name=test+ad+set&campaign_status=PAUSED&daily_budget=100&targeting=%7B%27geo_locations%27%3A%7B%27countries%27%3A%5B%27US%27%2C%27GB%27%5D%7D%7D&campaign_group_id=6021499361751&redownload=1&access_token=CAAEvJ5vzhl8BANgaZCvjMZCRsIbNZCSPswoDM0MTx8g30ojs53HUp43aVBVdqHnu9kIFytWIR5oRfp1Sy8DZBtJ9p5Rw2kY93ZAu6EwzHqZCrjmeBxXBWWlMCty1Bg4zKc3abdbjgoX4fWP4NWCEyWZCFJBKXWR0WV3ZC63bSqw7ojzYJm4teOarRc1GaesGIlIKlZB6s7EwZA1qUZCCKsdZCSsq%0A
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.8.9
12
+ Content-Type:
13
+ - application/x-www-form-urlencoded
14
+ Accept:
15
+ - ! '*/*'
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
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
+ - P9WaOOXq6uArlw9Am4iG1Bijy01ET0n1pIg8eNxZxY27Xh5c5gDfcSbFanBDwmXZ4oHn1D9JmbOYJ7CRX8jJhw==
37
+ Date:
38
+ - Wed, 17 Dec 2014 12:36:38 GMT
39
+ Connection:
40
+ - keep-alive
41
+ Content-Length:
42
+ - '564'
43
+ body:
44
+ encoding: US-ASCII
45
+ string: ! '{"id":"6021526001951","data":{"campaigns":{"6021526001951":{"id":"6021526001951","account_id":"10150585630710217","name":"test
46
+ ad set","daily_budget":100,"campaign_status":"PAUSED","daily_imps":0,"frequency_cap":0,"frequency_cap_reset_period":0,"start_time":"2014-12-17T13:36:38+0100","updated_time":"2014-12-17T13:36:38+0100","created_time":"2014-12-17T13:36:38+0100","campaign_group_id":6021499361751,"prorated_daily_budget":43,"budget_remaining":43,"targeting":{"age_min":18,"age_max":65,"geo_locations":{"countries":["US","GB"]}},"pacing_type":["standard"]}}}}'
47
+ http_version:
48
+ recorded_at: Wed, 17 Dec 2014 12:36:38 GMT
49
+ - request:
50
+ method: post
51
+ uri: https://graph.facebook.com/act_10150585630710217/adcampaigns
52
+ body:
53
+ encoding: US-ASCII
54
+ string: name=test+ad+set&campaign_status=PAUSED&daily_budget=100&targeting=%7B%27geo_locations%27%3A%7B%27countries%27%3A%5B%27US%27%2C%27GB%27%5D%7D%7D&campaign_group_id=6021499361751&redownload=1&access_token=CAAEvJ5vzhl8BAICOwypV5nYnYWXhBq1eskHA7rKyrz9fXcAvKRXDWVZAaG7FpQ21qTXeCtGZCR7iu1dtZCqZCZBZCQbefKrMOnZAibDZAiQKiX0s22PgtKuCoQK4LDVimREnqkGdoLMyB4zgT3A6ZAU7pn6wc2mTzZBWVbkr71bZBJKjhyeb4V58TkMsUbN9SQer3ZCRRtWTxqNFTUwHuv51RoVsI7LNw0mCr5gZD%0A
55
+ headers:
56
+ User-Agent:
57
+ - Faraday v0.8.9
58
+ Content-Type:
59
+ - application/x-www-form-urlencoded
60
+ Accept:
61
+ - ! '*/*'
62
+ response:
63
+ status:
64
+ code: 200
65
+ message: OK
66
+ headers:
67
+ Facebook-Api-Version:
68
+ - v1.0
69
+ Content-Type:
70
+ - application/json; charset=UTF-8
71
+ Pragma:
72
+ - no-cache
73
+ Access-Control-Allow-Origin:
74
+ - ! '*'
75
+ X-Fb-Rev:
76
+ - '1534884'
77
+ Cache-Control:
78
+ - private, no-cache, no-store, must-revalidate
79
+ Expires:
80
+ - Sat, 01 Jan 2000 00:00:00 GMT
81
+ X-Fb-Debug:
82
+ - 3HxiMk9UHPheBgDJyYpXL6RRbuHsz/Hd8XWQtc7NH0YDnWStKSE3xRABKIcbOyMGLVPwlrY/RjqpJtf3X5AwfQ==
83
+ Date:
84
+ - Wed, 17 Dec 2014 13:22:10 GMT
85
+ Connection:
86
+ - keep-alive
87
+ Content-Length:
88
+ - '564'
89
+ body:
90
+ encoding: US-ASCII
91
+ string: ! '{"id":"6021528858751","data":{"campaigns":{"6021528858751":{"id":"6021528858751","account_id":"10150585630710217","name":"test
92
+ ad set","daily_budget":100,"campaign_status":"PAUSED","daily_imps":0,"frequency_cap":0,"frequency_cap_reset_period":0,"start_time":"2014-12-17T14:22:10+0100","updated_time":"2014-12-17T14:22:10+0100","created_time":"2014-12-17T14:22:10+0100","campaign_group_id":6021499361751,"prorated_daily_budget":40,"budget_remaining":40,"targeting":{"age_min":18,"age_max":65,"geo_locations":{"countries":["US","GB"]}},"pacing_type":["standard"]}}}}'
93
+ http_version:
94
+ recorded_at: Wed, 17 Dec 2014 13:22:10 GMT
95
+ recorded_with: VCR 2.3.0
@@ -5,10 +5,10 @@ http_interactions:
5
5
  uri: https://graph.facebook.com/6010889169151
6
6
  body:
7
7
  encoding: US-ASCII
8
- string: access_token=CAAEvJ5vzhl8BAH8aCPOx0Ft9uNB147TF8weJ8hK0g7YVDRWU4eEih7tEKdJgmfk0vABZClZACJbEzyhSMbiShL6RpsfkZASfX1C9nv1AlFvjJajflqkyYZAlpE2edT0FJHjdh4NFg0ZCt0sBgq0kZABtKsjuU18aMURLE7rjKHR4X8NkXBUafg1T4uZARRNqboZD&method=delete
8
+ string: access_token=CAAEvJ5vzhl8BANgaZCvjMZCRsIbNZCSPswoDM0MTx8g30ojs53HUp43aVBVdqHnu9kIFytWIR5oRfp1Sy8DZBtJ9p5Rw2kY93ZAu6EwzHqZCrjmeBxXBWWlMCty1Bg4zKc3abdbjgoX4fWP4NWCEyWZCFJBKXWR0WV3ZC63bSqw7ojzYJm4teOarRc1GaesGIlIKlZB6s7EwZA1qUZCCKsdZCSsq%0A&method=delete
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,22 +18,69 @@ 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
21
27
  Access-Control-Allow-Origin:
22
28
  - ! '*'
29
+ X-Fb-Rev:
30
+ - '1534884'
23
31
  Cache-Control:
24
32
  - private, no-cache, no-store, must-revalidate
25
- Content-Type:
26
- - application/json; charset=UTF-8
27
33
  Expires:
28
34
  - Sat, 01 Jan 2000 00:00:00 GMT
35
+ X-Fb-Debug:
36
+ - qGpX6qFKpWvgRHaBZoVnJPdM2FZO9ve2k7WmSjxTtJuRcdlvmHcBf2zJ1oEDRhvCp0EpwJOdwn3rPoqog9NV0Q==
37
+ Date:
38
+ - Wed, 17 Dec 2014 12:36:42 GMT
39
+ Connection:
40
+ - keep-alive
41
+ Content-Length:
42
+ - '4'
43
+ body:
44
+ encoding: US-ASCII
45
+ string: 'true'
46
+ http_version:
47
+ recorded_at: Wed, 17 Dec 2014 12:36:42 GMT
48
+ - request:
49
+ method: post
50
+ uri: https://graph.facebook.com/6010889169151
51
+ body:
52
+ encoding: US-ASCII
53
+ string: access_token=CAAEvJ5vzhl8BAICOwypV5nYnYWXhBq1eskHA7rKyrz9fXcAvKRXDWVZAaG7FpQ21qTXeCtGZCR7iu1dtZCqZCZBZCQbefKrMOnZAibDZAiQKiX0s22PgtKuCoQK4LDVimREnqkGdoLMyB4zgT3A6ZAU7pn6wc2mTzZBWVbkr71bZBJKjhyeb4V58TkMsUbN9SQer3ZCRRtWTxqNFTUwHuv51RoVsI7LNw0mCr5gZD%0A&method=delete
54
+ headers:
55
+ User-Agent:
56
+ - Faraday v0.8.9
57
+ Content-Type:
58
+ - application/x-www-form-urlencoded
59
+ Accept:
60
+ - ! '*/*'
61
+ response:
62
+ status:
63
+ code: 200
64
+ message: OK
65
+ headers:
66
+ Facebook-Api-Version:
67
+ - v1.0
68
+ Content-Type:
69
+ - application/json; charset=UTF-8
29
70
  Pragma:
30
71
  - no-cache
72
+ Access-Control-Allow-Origin:
73
+ - ! '*'
31
74
  X-Fb-Rev:
32
- - '934677'
75
+ - '1534884'
76
+ Cache-Control:
77
+ - private, no-cache, no-store, must-revalidate
78
+ Expires:
79
+ - Sat, 01 Jan 2000 00:00:00 GMT
33
80
  X-Fb-Debug:
34
- - 3Wi9ttNPO87lCGaYoK4G5weYE4oNEdHTNxYqAacF+3M=
81
+ - wC6lizxjFhgB2g26Kc+/L+wP9IOB91RlXIEukjSNsKvWLfZYrW7fYqrzPCNEiXTYg0X9UceE4GxjHUnIcWQu+w==
35
82
  Date:
36
- - Thu, 12 Sep 2013 13:21:43 GMT
83
+ - Wed, 17 Dec 2014 13:22:14 GMT
37
84
  Connection:
38
85
  - keep-alive
39
86
  Content-Length:
@@ -42,5 +89,5 @@ http_interactions:
42
89
  encoding: US-ASCII
43
90
  string: 'true'
44
91
  http_version:
45
- recorded_at: Thu, 12 Sep 2013 13:21:43 GMT
92
+ recorded_at: Wed, 17 Dec 2014 13:22:14 GMT
46
93
  recorded_with: VCR 2.3.0