zuck 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.markdown +4 -0
- data/README.markdown +35 -0
- data/VERSION +1 -1
- data/lib/zuck/facebook/ad_account.rb +8 -5
- data/lib/zuck/facebook/ad_campaign.rb +0 -1
- data/lib/zuck/facebook/ad_creative.rb +11 -10
- data/lib/zuck/facebook/ad_group.rb +5 -7
- data/lib/zuck/fb_object/hash_delegator.rb +5 -1
- data/lib/zuck/fb_object/helpers.rb +1 -1
- data/lib/zuck/fb_object/read.rb +0 -35
- data/spec/fixtures/a_single_account.yml +32 -57
- data/spec/fixtures/a_single_campaign.yml +12 -12
- data/spec/fixtures/a_single_group.yml +48 -0
- data/spec/fixtures/ad_keyword_search_disney.yml +12 -12
- data/spec/fixtures/{ad_keyword_search_steve_carell.yml → ad_keyword_search_moviepilot.yml} +8 -9
- data/spec/fixtures/ad_keyword_search_nonexistant.yml +5 -5
- data/spec/fixtures/create_ad_campaign.yml +12 -15
- data/spec/fixtures/create_ad_group.yml +15 -14
- data/spec/fixtures/delete_ad_group.yml +11 -15
- data/spec/fixtures/find_a_single_group_and_update_it.yml +224 -0
- data/spec/fixtures/list_of_ad_accounts.yml +26 -23
- data/spec/fixtures/list_of_ad_campaigns.yml +23 -24
- data/spec/fixtures/list_of_ad_creatives.yml +13 -15
- data/spec/fixtures/list_of_ad_groups.yml +62 -31
- data/spec/fixtures/list_of_all_ad_creatives_of_account.yml +41 -34
- data/spec/fixtures/reach_for_invalid_keyword.yml +9 -56
- data/spec/fixtures/reach_for_valid_keywords.yml +11 -56
- data/spec/fixtures/reach_for_valid_keywords_male_young.yml +11 -56
- data/spec/lib/zuck/facebook/ad_keyword_spec.rb +3 -3
- data/spec/lib/zuck/facebook/targeting_spec_spec.rb +4 -4
- data/spec/lib/zuck/fb_object/helpers_spec.rb +3 -2
- data/spec/lib/zuck_spec.rb +17 -24
- data/spec/spec_helper.rb +3 -0
- data/zuck.gemspec +5 -4
- metadata +6 -5
- data/spec/fixtures/find_a_single_campaign_and_update_it.yml +0 -247
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://graph.facebook.com/search?access_token=
|
5
|
+
uri: https://graph.facebook.com/search?access_token=CAAEvJ5vzhl8BAH8aCPOx0Ft9uNB147TF8weJ8hK0g7YVDRWU4eEih7tEKdJgmfk0vABZClZACJbEzyhSMbiShL6RpsfkZASfX1C9nv1AlFvjJajflqkyYZAlpE2edT0FJHjdh4NFg0ZCt0sBgq0kZABtKsjuU18aMURLE7rjKHR4X8NkXBUafg1T4uZARRNqboZD&q=disney&type=adkeyword
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -25,29 +25,29 @@ http_interactions:
|
|
25
25
|
Content-Type:
|
26
26
|
- application/json; charset=UTF-8
|
27
27
|
Etag:
|
28
|
-
- ! '"
|
28
|
+
- ! '"ddd1522d71e8cbd1a1e68ee5ff6cf1e5dbde04cb"'
|
29
29
|
Expires:
|
30
30
|
- Sat, 01 Jan 2000 00:00:00 GMT
|
31
31
|
Pragma:
|
32
32
|
- no-cache
|
33
33
|
X-Fb-Rev:
|
34
|
-
- '
|
34
|
+
- '934677'
|
35
35
|
X-Fb-Debug:
|
36
|
-
-
|
36
|
+
- EMkma5AVfp17cYzoavOVQXmuVbL15If4/tXmFADlVHw=
|
37
37
|
Date:
|
38
|
-
-
|
38
|
+
- Thu, 12 Sep 2013 13:21:33 GMT
|
39
39
|
Connection:
|
40
40
|
- keep-alive
|
41
41
|
Content-Length:
|
42
|
-
- '
|
42
|
+
- '587'
|
43
43
|
body:
|
44
44
|
encoding: US-ASCII
|
45
45
|
string: ! '{"data":[{"name":"Disney Channel","id":6003711659516},{"name":"Disneyland","id":6003361056187},{"name":"Disney","id":6003663755307},{"name":"#The
|
46
|
-
Walt Disney Company","description":"Audience:
|
47
|
-
|
48
|
-
|
49
|
-
Pictures","description":"Audience:
|
50
|
-
Disney Pictures","description":"Audience:
|
46
|
+
Walt Disney Company","description":"Audience: 78,100,000","id":6003270522085},{"name":"#Disneyland","description":"Audience:
|
47
|
+
26,200,000","id":6003274193708},{"name":"#Disney Channel","description":"Audience:
|
48
|
+
22,600,000","id":6003327130854},{"name":"#The Walt Disney Company#Walt Disney
|
49
|
+
Pictures","description":"Audience: 9,200,000","id":6004710425192},{"name":"#Walt
|
50
|
+
Disney Pictures","description":"Audience: 9,200,000","id":6003050377616}]}'
|
51
51
|
http_version:
|
52
|
-
recorded_at:
|
52
|
+
recorded_at: Thu, 12 Sep 2013 13:21:33 GMT
|
53
53
|
recorded_with: VCR 2.3.0
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://graph.facebook.com/search?access_token=
|
5
|
+
uri: https://graph.facebook.com/search?access_token=CAAEvJ5vzhl8BAH8aCPOx0Ft9uNB147TF8weJ8hK0g7YVDRWU4eEih7tEKdJgmfk0vABZClZACJbEzyhSMbiShL6RpsfkZASfX1C9nv1AlFvjJajflqkyYZAlpE2edT0FJHjdh4NFg0ZCt0sBgq0kZABtKsjuU18aMURLE7rjKHR4X8NkXBUafg1T4uZARRNqboZD&q=moviepilot&type=adkeyword
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -25,25 +25,24 @@ http_interactions:
|
|
25
25
|
Content-Type:
|
26
26
|
- application/json; charset=UTF-8
|
27
27
|
Etag:
|
28
|
-
- ! '"
|
28
|
+
- ! '"5af1c2df3403480db8f57d9e9bfd2ed4a6f925ef"'
|
29
29
|
Expires:
|
30
30
|
- Sat, 01 Jan 2000 00:00:00 GMT
|
31
31
|
Pragma:
|
32
32
|
- no-cache
|
33
33
|
X-Fb-Rev:
|
34
|
-
- '
|
34
|
+
- '934677'
|
35
35
|
X-Fb-Debug:
|
36
|
-
-
|
36
|
+
- 1gdeJKsX7G0woVPQzROCOkunT0R3FhMp/a/w9gdoUpE=
|
37
37
|
Date:
|
38
|
-
-
|
38
|
+
- Thu, 12 Sep 2013 13:21:33 GMT
|
39
39
|
Connection:
|
40
40
|
- keep-alive
|
41
41
|
Content-Length:
|
42
|
-
- '
|
42
|
+
- '95'
|
43
43
|
body:
|
44
44
|
encoding: US-ASCII
|
45
|
-
string: ! '{"data":[{"name":"
|
46
|
-
Steve Carell On Office","id":6003656406820},{"name":"Steve Carell","id":6004016779789}]}'
|
45
|
+
string: ! '{"data":[{"name":"Moviepilot","id":6003327847780},{"name":"Moviepilotcom","id":6003495809986}]}'
|
47
46
|
http_version:
|
48
|
-
recorded_at:
|
47
|
+
recorded_at: Thu, 12 Sep 2013 13:21:33 GMT
|
49
48
|
recorded_with: VCR 2.3.0
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://graph.facebook.com/search?access_token=
|
5
|
+
uri: https://graph.facebook.com/search?access_token=CAAEvJ5vzhl8BAH8aCPOx0Ft9uNB147TF8weJ8hK0g7YVDRWU4eEih7tEKdJgmfk0vABZClZACJbEzyhSMbiShL6RpsfkZASfX1C9nv1AlFvjJajflqkyYZAlpE2edT0FJHjdh4NFg0ZCt0sBgq0kZABtKsjuU18aMURLE7rjKHR4X8NkXBUafg1T4uZARRNqboZD&q=ick%20spickeby&type=adkeyword
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -31,11 +31,11 @@ http_interactions:
|
|
31
31
|
Pragma:
|
32
32
|
- no-cache
|
33
33
|
X-Fb-Rev:
|
34
|
-
- '
|
34
|
+
- '934677'
|
35
35
|
X-Fb-Debug:
|
36
|
-
-
|
36
|
+
- V2xDeIibjgmqPVctLhdC4Iqmf0noftdgSSelAh1HfzM=
|
37
37
|
Date:
|
38
|
-
-
|
38
|
+
- Thu, 12 Sep 2013 13:21:34 GMT
|
39
39
|
Connection:
|
40
40
|
- keep-alive
|
41
41
|
Content-Length:
|
@@ -44,5 +44,5 @@ http_interactions:
|
|
44
44
|
encoding: US-ASCII
|
45
45
|
string: ! '{"data":[]}'
|
46
46
|
http_version:
|
47
|
-
recorded_at:
|
47
|
+
recorded_at: Thu, 12 Sep 2013 13:21:34 GMT
|
48
48
|
recorded_with: VCR 2.3.0
|
@@ -4,19 +4,15 @@ http_interactions:
|
|
4
4
|
method: post
|
5
5
|
uri: https://graph.facebook.com/act_10150585630710217/adcampaigns
|
6
6
|
body:
|
7
|
-
encoding: ASCII
|
8
|
-
string:
|
9
|
-
ZGFpbHlfYnVkZ2V0PTEwMDAmbmFtZT1ibG9vZHkmcmVkb3dubG9hZD0xJmFj
|
10
|
-
Y2Vzc190b2tlbj1BQUFFdko1dnpobDhCQUJoVFNhekpaQjJEMEI0TjBsMjQy
|
11
|
-
VlgyMkhnOUoyV1pBN2ZwdGNBenRmWHhmQVpCOW1oWkI2VzFubDVkejV0WE1s
|
12
|
-
YjlESms5aWJzNlJxdFA3UHRPNmEzWENpSFdWd1pEWkQ=
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: daily_budget=1000&name=bloody&redownload=1&access_token=CAAEvJ5vzhl8BAH8aCPOx0Ft9uNB147TF8weJ8hK0g7YVDRWU4eEih7tEKdJgmfk0vABZClZACJbEzyhSMbiShL6RpsfkZASfX1C9nv1AlFvjJajflqkyYZAlpE2edT0FJHjdh4NFg0ZCt0sBgq0kZABtKsjuU18aMURLE7rjKHR4X8NkXBUafg1T4uZARRNqboZD
|
13
9
|
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.8.7
|
14
12
|
Content-Type:
|
15
13
|
- application/x-www-form-urlencoded
|
16
14
|
Accept:
|
17
15
|
- ! '*/*'
|
18
|
-
User-Agent:
|
19
|
-
- Ruby
|
20
16
|
response:
|
21
17
|
status:
|
22
18
|
code: 200
|
@@ -27,23 +23,24 @@ http_interactions:
|
|
27
23
|
Cache-Control:
|
28
24
|
- private, no-cache, no-store, must-revalidate
|
29
25
|
Content-Type:
|
30
|
-
-
|
26
|
+
- application/json; charset=UTF-8
|
31
27
|
Expires:
|
32
28
|
- Sat, 01 Jan 2000 00:00:00 GMT
|
33
29
|
Pragma:
|
34
30
|
- no-cache
|
35
31
|
X-Fb-Rev:
|
36
|
-
- '
|
32
|
+
- '934677'
|
37
33
|
X-Fb-Debug:
|
38
|
-
-
|
34
|
+
- dBkoLaGUd+HznksLCn3Bm6MynGuWLt1FSoPdKmWJ1fw=
|
39
35
|
Date:
|
40
|
-
-
|
36
|
+
- Thu, 12 Sep 2013 13:21:41 GMT
|
41
37
|
Connection:
|
42
38
|
- keep-alive
|
43
39
|
Content-Length:
|
44
|
-
- '
|
40
|
+
- '341'
|
45
41
|
body:
|
46
42
|
encoding: US-ASCII
|
47
|
-
string: ! '{"id":"
|
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}}}}'
|
48
44
|
http_version:
|
49
|
-
recorded_at:
|
45
|
+
recorded_at: Thu, 12 Sep 2013 13:21:41 GMT
|
46
|
+
recorded_with: VCR 2.3.0
|
@@ -5,14 +5,14 @@ http_interactions:
|
|
5
5
|
uri: https://graph.facebook.com/act_10150585630710217/adgroups
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
|
-
string: bid_type=
|
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
|
9
9
|
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.8.7
|
10
12
|
Content-Type:
|
11
13
|
- application/x-www-form-urlencoded
|
12
14
|
Accept:
|
13
15
|
- ! '*/*'
|
14
|
-
User-Agent:
|
15
|
-
- Ruby
|
16
16
|
response:
|
17
17
|
status:
|
18
18
|
code: 200
|
@@ -23,25 +23,26 @@ http_interactions:
|
|
23
23
|
Cache-Control:
|
24
24
|
- private, no-cache, no-store, must-revalidate
|
25
25
|
Content-Type:
|
26
|
-
-
|
26
|
+
- application/json; charset=UTF-8
|
27
27
|
Expires:
|
28
28
|
- Sat, 01 Jan 2000 00:00:00 GMT
|
29
29
|
Pragma:
|
30
30
|
- no-cache
|
31
31
|
X-Fb-Rev:
|
32
|
-
- '
|
32
|
+
- '934677'
|
33
33
|
X-Fb-Debug:
|
34
|
-
-
|
34
|
+
- 40pq1sYZfSG3uVJTkgqTxLh8ul6oVyjcwRASFefh3mY=
|
35
35
|
Date:
|
36
|
-
-
|
36
|
+
- Thu, 12 Sep 2013 13:21:42 GMT
|
37
|
+
Transfer-Encoding:
|
38
|
+
- chunked
|
37
39
|
Connection:
|
38
40
|
- keep-alive
|
39
|
-
Content-Length:
|
40
|
-
- '1195'
|
41
41
|
body:
|
42
42
|
encoding: US-ASCII
|
43
|
-
string: ! '{"id":"
|
44
|
-
like me","
|
45
|
-
story #
|
46
|
-
http_version:
|
47
|
-
recorded_at:
|
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}}}}'
|
46
|
+
http_version:
|
47
|
+
recorded_at: Thu, 12 Sep 2013 13:21:42 GMT
|
48
|
+
recorded_with: VCR 2.3.0
|
@@ -2,21 +2,17 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://graph.facebook.com/
|
5
|
+
uri: https://graph.facebook.com/6010889169151
|
6
6
|
body:
|
7
|
-
encoding: ASCII
|
8
|
-
string:
|
9
|
-
YWNjZXNzX3Rva2VuPUFBQUV2SjV2emhsOEJBQmhUU2F6SlpCMkQwQjROMGwy
|
10
|
-
NDJWWDIySGc5SjJXWkE3ZnB0Y0F6dGZYeGZBWkI5bWhaQjZXMW5sNWR6NXRY
|
11
|
-
TWxiOURKazlpYnM2UnF0UDdQdE82YTNYQ2lIV1Z3WkRaRCZtZXRob2Q9ZGVs
|
12
|
-
ZXRl
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: access_token=CAAEvJ5vzhl8BAH8aCPOx0Ft9uNB147TF8weJ8hK0g7YVDRWU4eEih7tEKdJgmfk0vABZClZACJbEzyhSMbiShL6RpsfkZASfX1C9nv1AlFvjJajflqkyYZAlpE2edT0FJHjdh4NFg0ZCt0sBgq0kZABtKsjuU18aMURLE7rjKHR4X8NkXBUafg1T4uZARRNqboZD&method=delete
|
13
9
|
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.8.7
|
14
12
|
Content-Type:
|
15
13
|
- application/x-www-form-urlencoded
|
16
14
|
Accept:
|
17
15
|
- ! '*/*'
|
18
|
-
User-Agent:
|
19
|
-
- Ruby
|
20
16
|
response:
|
21
17
|
status:
|
22
18
|
code: 200
|
@@ -27,17 +23,17 @@ http_interactions:
|
|
27
23
|
Cache-Control:
|
28
24
|
- private, no-cache, no-store, must-revalidate
|
29
25
|
Content-Type:
|
30
|
-
-
|
26
|
+
- application/json; charset=UTF-8
|
31
27
|
Expires:
|
32
28
|
- Sat, 01 Jan 2000 00:00:00 GMT
|
33
29
|
Pragma:
|
34
30
|
- no-cache
|
35
31
|
X-Fb-Rev:
|
36
|
-
- '
|
32
|
+
- '934677'
|
37
33
|
X-Fb-Debug:
|
38
|
-
-
|
34
|
+
- 3Wi9ttNPO87lCGaYoK4G5weYE4oNEdHTNxYqAacF+3M=
|
39
35
|
Date:
|
40
|
-
-
|
36
|
+
- Thu, 12 Sep 2013 13:21:43 GMT
|
41
37
|
Connection:
|
42
38
|
- keep-alive
|
43
39
|
Content-Length:
|
@@ -46,5 +42,5 @@ http_interactions:
|
|
46
42
|
encoding: US-ASCII
|
47
43
|
string: 'true'
|
48
44
|
http_version:
|
49
|
-
recorded_at:
|
50
|
-
recorded_with: VCR 2.
|
45
|
+
recorded_at: Thu, 12 Sep 2013 13:21:43 GMT
|
46
|
+
recorded_with: VCR 2.3.0
|
@@ -0,0 +1,224 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://graph.facebook.com/6010889169151?access_token=CAAEvJ5vzhl8BAH8aCPOx0Ft9uNB147TF8weJ8hK0g7YVDRWU4eEih7tEKdJgmfk0vABZClZACJbEzyhSMbiShL6RpsfkZASfX1C9nv1AlFvjJajflqkyYZAlpE2edT0FJHjdh4NFg0ZCt0sBgq0kZABtKsjuU18aMURLE7rjKHR4X8NkXBUafg1T4uZARRNqboZD&fields=account_id,adgroup_status,bid_info,bid_type,campaign_id,conversion_specs,created_time,creative_ids,id,disapprove_reason_descriptions,last_updated_by_app_id,name,targeting,tracking_specs,updated_time,view_tags
|
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
|
+
Access-Control-Allow-Origin:
|
22
|
+
- ! '*'
|
23
|
+
Cache-Control:
|
24
|
+
- private, no-cache, no-store, must-revalidate
|
25
|
+
Content-Type:
|
26
|
+
- application/json; charset=UTF-8
|
27
|
+
Etag:
|
28
|
+
- ! '"0ea0b12563db3c86f01ef40a9da03a2db4a32d72"'
|
29
|
+
Expires:
|
30
|
+
- Sat, 01 Jan 2000 00:00:00 GMT
|
31
|
+
Pragma:
|
32
|
+
- no-cache
|
33
|
+
X-Fb-Rev:
|
34
|
+
- '934677'
|
35
|
+
X-Fb-Debug:
|
36
|
+
- VCyI9aJoRQx5rWFrVnm7mmaJl+GBZZtcd7LYEMGHZBA=
|
37
|
+
Date:
|
38
|
+
- Thu, 12 Sep 2013 13:21:41 GMT
|
39
|
+
Connection:
|
40
|
+
- keep-alive
|
41
|
+
Content-Length:
|
42
|
+
- '386'
|
43
|
+
body:
|
44
|
+
encoding: US-ASCII
|
45
|
+
string: ! '{"account_id":"10150585630710217","adgroup_status":3,"bid_info":{"1":1},"bid_type":1,"campaign_id":6010889111951,"conversion_specs":[],"created_time":"2013-09-12T12:20:54+0200","creative_ids":[6010888561951],"id":"6010889169151","last_updated_by_app_id":333322143368799,"name":"My
|
46
|
+
new name","targeting":{"countries":["US"]},"tracking_specs":[],"updated_time":"2013-09-12T14:10:20+0200"}'
|
47
|
+
http_version:
|
48
|
+
recorded_at: Thu, 12 Sep 2013 13:21:41 GMT
|
49
|
+
- request:
|
50
|
+
method: post
|
51
|
+
uri: https://graph.facebook.com/6010889169151
|
52
|
+
body:
|
53
|
+
encoding: US-ASCII
|
54
|
+
string: ! "-------------RubyMultipartPost\r\nContent-Disposition: form-data;
|
55
|
+
name=\"account_id\"\r\n\r\n10150585630710217\r\n-------------RubyMultipartPost\r\nContent-Disposition:
|
56
|
+
form-data; name=\"adgroup_status\"\r\n\r\n3\r\n-------------RubyMultipartPost\r\nContent-Disposition:
|
57
|
+
form-data; name=\"bid_info%5B1%5D\"\r\n\r\n1\r\n-------------RubyMultipartPost\r\nContent-Disposition:
|
58
|
+
form-data; name=\"bid_type\"\r\n\r\n1\r\n-------------RubyMultipartPost\r\nContent-Disposition:
|
59
|
+
form-data; name=\"campaign_id\"\r\n\r\n6010889111951\r\n-------------RubyMultipartPost\r\nContent-Disposition:
|
60
|
+
form-data; name=\"created_time\"\r\n\r\n2013-09-12T12:20:54+0200\r\n-------------RubyMultipartPost\r\nContent-Disposition:
|
61
|
+
form-data; name=\"creative_ids%5B%5D\"\r\n\r\n6010888561951\r\n-------------RubyMultipartPost\r\nContent-Disposition:
|
62
|
+
form-data; name=\"last_updated_by_app_id\"\r\n\r\n333322143368799\r\n-------------RubyMultipartPost\r\nContent-Disposition:
|
63
|
+
form-data; name=\"name\"\r\n\r\nMy old name\r\n-------------RubyMultipartPost\r\nContent-Disposition:
|
64
|
+
form-data; name=\"targeting%5Bcountries%5D%5B%5D\"\r\n\r\nUS\r\n-------------RubyMultipartPost\r\nContent-Disposition:
|
65
|
+
form-data; name=\"updated_time\"\r\n\r\n2013-09-12T14:10:20+0200\r\n-------------RubyMultipartPost\r\nContent-Disposition:
|
66
|
+
form-data; name=\"redownload\"\r\n\r\n1\r\n-------------RubyMultipartPost\r\nContent-Disposition:
|
67
|
+
form-data; name=\"access_token\"\r\n\r\nCAAEvJ5vzhl8BAH8aCPOx0Ft9uNB147TF8weJ8hK0g7YVDRWU4eEih7tEKdJgmfk0vABZClZACJbEzyhSMbiShL6RpsfkZASfX1C9nv1AlFvjJajflqkyYZAlpE2edT0FJHjdh4NFg0ZCt0sBgq0kZABtKsjuU18aMURLE7rjKHR4X8NkXBUafg1T4uZARRNqboZD\r\n-------------RubyMultipartPost--\r\n\r\n"
|
68
|
+
headers:
|
69
|
+
User-Agent:
|
70
|
+
- Faraday v0.8.7
|
71
|
+
Content-Type:
|
72
|
+
- multipart/form-data;boundary=-----------RubyMultipartPost
|
73
|
+
Content-Length:
|
74
|
+
- '1535'
|
75
|
+
Accept:
|
76
|
+
- ! '*/*'
|
77
|
+
response:
|
78
|
+
status:
|
79
|
+
code: 200
|
80
|
+
message: OK
|
81
|
+
headers:
|
82
|
+
Access-Control-Allow-Origin:
|
83
|
+
- ! '*'
|
84
|
+
Cache-Control:
|
85
|
+
- private, no-cache, no-store, must-revalidate
|
86
|
+
Content-Type:
|
87
|
+
- application/json; charset=UTF-8
|
88
|
+
Expires:
|
89
|
+
- Sat, 01 Jan 2000 00:00:00 GMT
|
90
|
+
Pragma:
|
91
|
+
- no-cache
|
92
|
+
X-Fb-Rev:
|
93
|
+
- '934677'
|
94
|
+
X-Fb-Debug:
|
95
|
+
- axj4l9SLqagkHeGrd1726eOY3vviSQQEl/OqISoYMHQ=
|
96
|
+
Date:
|
97
|
+
- Thu, 12 Sep 2013 13:25:27 GMT
|
98
|
+
Transfer-Encoding:
|
99
|
+
- chunked
|
100
|
+
Connection:
|
101
|
+
- keep-alive
|
102
|
+
body:
|
103
|
+
encoding: US-ASCII
|
104
|
+
string: ! '{"result":true,"data":{"adgroups":{"6010889169151":{"id":"6010889169151","account_id":"10150585630710217","adgroup_status":3,"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":"My
|
105
|
+
old name","targeting":{"countries":["US"]},"tracking_specs":[],"updated_time":1378992327,"created_time":1378981254,"ad_id":6010889169151,"adgroup_id":6010889169151,"max_bid":1,"tracking_pixel_ids":[]}},"creatives":{"6010888561951":{"id":"6010888561951","action_spec":[{"action.type":["like"],"post":["10150420410887685"]}],"image_url":"","name":"Sponsored
|
106
|
+
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}}}}'
|
107
|
+
http_version:
|
108
|
+
recorded_at: Thu, 12 Sep 2013 13:25:27 GMT
|
109
|
+
- request:
|
110
|
+
method: post
|
111
|
+
uri: https://graph.facebook.com/6010889169151
|
112
|
+
body:
|
113
|
+
encoding: US-ASCII
|
114
|
+
string: ! "-------------RubyMultipartPost\r\nContent-Disposition: form-data;
|
115
|
+
name=\"account_id\"\r\n\r\n10150585630710217\r\n-------------RubyMultipartPost\r\nContent-Disposition:
|
116
|
+
form-data; name=\"adgroup_status\"\r\n\r\n3\r\n-------------RubyMultipartPost\r\nContent-Disposition:
|
117
|
+
form-data; name=\"bid_info%5B1%5D\"\r\n\r\n1\r\n-------------RubyMultipartPost\r\nContent-Disposition:
|
118
|
+
form-data; name=\"bid_type\"\r\n\r\n1\r\n-------------RubyMultipartPost\r\nContent-Disposition:
|
119
|
+
form-data; name=\"campaign_id\"\r\n\r\n6010889111951\r\n-------------RubyMultipartPost\r\nContent-Disposition:
|
120
|
+
form-data; name=\"creative_ids%5B%5D\"\r\n\r\n6010888561951\r\n-------------RubyMultipartPost\r\nContent-Disposition:
|
121
|
+
form-data; name=\"impression_control_map%5B%5D%5Blocation%5D\"\r\n\r\n3\r\n-------------RubyMultipartPost\r\nContent-Disposition:
|
122
|
+
form-data; name=\"impression_control_map%5B%5D%5Bcontrol%5D%5Bimpression_control_type%5D\"\r\n\r\n2\r\n-------------RubyMultipartPost\r\nContent-Disposition:
|
123
|
+
form-data; name=\"impression_control_map%5B%5D%5Bcontrol%5D%5Buser_impression_limit%5D\"\r\n\r\n6\r\n-------------RubyMultipartPost\r\nContent-Disposition:
|
124
|
+
form-data; name=\"impression_control_map%5B%5D%5Bcontrol%5D%5Buser_impression_limit_period%5D\"\r\n\r\n24\r\n-------------RubyMultipartPost\r\nContent-Disposition:
|
125
|
+
form-data; name=\"impression_control_map%5B%5D%5Bcontrol%5D%5Buser_impression_limit_period_unit%5D\"\r\n\r\n0\r\n-------------RubyMultipartPost\r\nContent-Disposition:
|
126
|
+
form-data; name=\"last_updated_by_app_id\"\r\n\r\n333322143368799\r\n-------------RubyMultipartPost\r\nContent-Disposition:
|
127
|
+
form-data; name=\"locations%5B%5D\"\r\n\r\n3\r\n-------------RubyMultipartPost\r\nContent-Disposition:
|
128
|
+
form-data; name=\"name\"\r\n\r\nMy new name\r\n-------------RubyMultipartPost\r\nContent-Disposition:
|
129
|
+
form-data; name=\"targeting%5Bcountries%5D%5B%5D\"\r\n\r\nUS\r\n-------------RubyMultipartPost\r\nContent-Disposition:
|
130
|
+
form-data; name=\"updated_time\"\r\n\r\n1378992327\r\n-------------RubyMultipartPost\r\nContent-Disposition:
|
131
|
+
form-data; name=\"created_time\"\r\n\r\n1378981254\r\n-------------RubyMultipartPost\r\nContent-Disposition:
|
132
|
+
form-data; name=\"ad_id\"\r\n\r\n6010889169151\r\n-------------RubyMultipartPost\r\nContent-Disposition:
|
133
|
+
form-data; name=\"adgroup_id\"\r\n\r\n6010889169151\r\n-------------RubyMultipartPost\r\nContent-Disposition:
|
134
|
+
form-data; name=\"max_bid\"\r\n\r\n1\r\n-------------RubyMultipartPost\r\nContent-Disposition:
|
135
|
+
form-data; name=\"redownload\"\r\n\r\n1\r\n-------------RubyMultipartPost\r\nContent-Disposition:
|
136
|
+
form-data; name=\"access_token\"\r\n\r\nCAAEvJ5vzhl8BAH8aCPOx0Ft9uNB147TF8weJ8hK0g7YVDRWU4eEih7tEKdJgmfk0vABZClZACJbEzyhSMbiShL6RpsfkZASfX1C9nv1AlFvjJajflqkyYZAlpE2edT0FJHjdh4NFg0ZCt0sBgq0kZABtKsjuU18aMURLE7rjKHR4X8NkXBUafg1T4uZARRNqboZD\r\n-------------RubyMultipartPost--\r\n\r\n"
|
137
|
+
headers:
|
138
|
+
User-Agent:
|
139
|
+
- Faraday v0.8.7
|
140
|
+
Content-Type:
|
141
|
+
- multipart/form-data;boundary=-----------RubyMultipartPost
|
142
|
+
Content-Length:
|
143
|
+
- '2606'
|
144
|
+
Accept:
|
145
|
+
- ! '*/*'
|
146
|
+
response:
|
147
|
+
status:
|
148
|
+
code: 200
|
149
|
+
message: OK
|
150
|
+
headers:
|
151
|
+
Access-Control-Allow-Origin:
|
152
|
+
- ! '*'
|
153
|
+
Cache-Control:
|
154
|
+
- private, no-cache, no-store, must-revalidate
|
155
|
+
Content-Type:
|
156
|
+
- application/json; charset=UTF-8
|
157
|
+
Expires:
|
158
|
+
- Sat, 01 Jan 2000 00:00:00 GMT
|
159
|
+
Pragma:
|
160
|
+
- no-cache
|
161
|
+
X-Fb-Rev:
|
162
|
+
- '934677'
|
163
|
+
X-Fb-Debug:
|
164
|
+
- v3179FVag9ZBYdJn+mk1OEghnZQ4V/rVusbvbigGqP4=
|
165
|
+
Date:
|
166
|
+
- Thu, 12 Sep 2013 13:25:27 GMT
|
167
|
+
Transfer-Encoding:
|
168
|
+
- chunked
|
169
|
+
Connection:
|
170
|
+
- keep-alive
|
171
|
+
body:
|
172
|
+
encoding: US-ASCII
|
173
|
+
string: ! '{"result":true,"data":{"adgroups":{"6010889169151":{"id":"6010889169151","account_id":"10150585630710217","adgroup_status":3,"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":"My
|
174
|
+
new name","targeting":{"countries":["US"]},"tracking_specs":[],"updated_time":1378992327,"created_time":1378981254,"ad_id":6010889169151,"adgroup_id":6010889169151,"max_bid":1,"tracking_pixel_ids":[]}},"creatives":{"6010888561951":{"id":"6010888561951","action_spec":[{"action.type":["like"],"post":["10150420410887685"]}],"image_url":"","name":"Sponsored
|
175
|
+
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}}}}'
|
176
|
+
http_version:
|
177
|
+
recorded_at: Thu, 12 Sep 2013 13:25:27 GMT
|
178
|
+
- request:
|
179
|
+
method: get
|
180
|
+
uri: https://graph.facebook.com/6010889169151?access_token=CAAEvJ5vzhl8BAH8aCPOx0Ft9uNB147TF8weJ8hK0g7YVDRWU4eEih7tEKdJgmfk0vABZClZACJbEzyhSMbiShL6RpsfkZASfX1C9nv1AlFvjJajflqkyYZAlpE2edT0FJHjdh4NFg0ZCt0sBgq0kZABtKsjuU18aMURLE7rjKHR4X8NkXBUafg1T4uZARRNqboZD&fields=account_id,adgroup_status,bid_info,bid_type,campaign_id,conversion_specs,created_time,creative_ids,id,disapprove_reason_descriptions,last_updated_by_app_id,name,targeting,tracking_specs,updated_time,view_tags
|
181
|
+
body:
|
182
|
+
encoding: US-ASCII
|
183
|
+
string: ''
|
184
|
+
headers:
|
185
|
+
User-Agent:
|
186
|
+
- Faraday v0.8.7
|
187
|
+
Accept-Encoding:
|
188
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
189
|
+
Accept:
|
190
|
+
- ! '*/*'
|
191
|
+
response:
|
192
|
+
status:
|
193
|
+
code: 200
|
194
|
+
message: OK
|
195
|
+
headers:
|
196
|
+
Access-Control-Allow-Origin:
|
197
|
+
- ! '*'
|
198
|
+
Cache-Control:
|
199
|
+
- private, no-cache, no-store, must-revalidate
|
200
|
+
Content-Type:
|
201
|
+
- application/json; charset=UTF-8
|
202
|
+
Etag:
|
203
|
+
- ! '"e966b528ad01aab8f098d620581efe748fec290b"'
|
204
|
+
Expires:
|
205
|
+
- Sat, 01 Jan 2000 00:00:00 GMT
|
206
|
+
Pragma:
|
207
|
+
- no-cache
|
208
|
+
X-Fb-Rev:
|
209
|
+
- '934677'
|
210
|
+
X-Fb-Debug:
|
211
|
+
- 4DyERtTVBt0cmNdrH5WnvTU3KMVM0vf2zqmf8pmW59Q=
|
212
|
+
Date:
|
213
|
+
- Thu, 12 Sep 2013 13:25:27 GMT
|
214
|
+
Connection:
|
215
|
+
- keep-alive
|
216
|
+
Content-Length:
|
217
|
+
- '386'
|
218
|
+
body:
|
219
|
+
encoding: US-ASCII
|
220
|
+
string: ! '{"account_id":"10150585630710217","adgroup_status":3,"bid_info":{"1":1},"bid_type":1,"campaign_id":6010889111951,"conversion_specs":[],"created_time":"2013-09-12T12:20:54+0200","creative_ids":[6010888561951],"id":"6010889169151","last_updated_by_app_id":333322143368799,"name":"My
|
221
|
+
new name","targeting":{"countries":["US"]},"tracking_specs":[],"updated_time":"2013-09-12T15:25:27+0200"}'
|
222
|
+
http_version:
|
223
|
+
recorded_at: Thu, 12 Sep 2013 13:25:28 GMT
|
224
|
+
recorded_with: VCR 2.3.0
|