zuck 2.1.0 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. checksums.yaml +8 -8
  2. data/.ruby-version +1 -0
  3. data/CHANGELOG.markdown +7 -0
  4. data/VERSION +1 -1
  5. data/lib/zuck.rb +4 -4
  6. data/lib/zuck/facebook/ad_account.rb +0 -1
  7. data/lib/zuck/facebook/ad_creative.rb +0 -2
  8. data/lib/zuck/facebook/ad_group.rb +5 -8
  9. data/lib/zuck/facebook/ad_set.rb +1 -1
  10. data/spec/fixtures/a_single_account.yml +28 -28
  11. data/spec/fixtures/a_single_campaign.yml +14 -12
  12. data/spec/fixtures/a_single_group.yml +13 -11
  13. data/spec/fixtures/ad_interest_search_disney.yml +61 -35
  14. data/spec/fixtures/ad_interest_search_moviepilot.yml +59 -31
  15. data/spec/fixtures/ad_interest_search_nonexistant.yml +10 -8
  16. data/spec/fixtures/create_a_creative.yml +11 -9
  17. data/spec/fixtures/create_ad_campaign.yml +48 -40
  18. data/spec/fixtures/create_ad_group.yml +17 -13
  19. data/spec/fixtures/create_ad_set.yml +14 -12
  20. data/spec/fixtures/delete_ad_group.yml +11 -9
  21. data/spec/fixtures/delete_ad_set.yml +11 -9
  22. data/spec/fixtures/delete_campaign.yml +22 -18
  23. data/spec/fixtures/delete_creative.yml +11 -9
  24. data/spec/fixtures/find_a_single_group_and_update_it.yml +98 -64
  25. data/spec/fixtures/list_of_ad_accounts.yml +13 -11
  26. data/spec/fixtures/list_of_ad_campaigns.yml +13 -11
  27. data/spec/fixtures/list_of_ad_creatives.yml +10 -8
  28. data/spec/fixtures/list_of_ad_groups.yml +13 -11
  29. data/spec/fixtures/list_of_all_ad_creatives_of_account.yml +13 -11
  30. data/spec/fixtures/reach_for_invalid_interest.yml +29 -23
  31. data/spec/fixtures/reach_for_valid_keywords.yml +13 -11
  32. data/spec/fixtures/reach_for_valid_keywords_male_young.yml +13 -11
  33. data/spec/lib/zuck/facebook/ad_interest_spec.rb +1 -1
  34. data/spec/lib/zuck/facebook/targeting_spec_spec.rb +29 -25
  35. data/spec/lib/zuck_spec.rb +11 -6
  36. data/spec/spec_helper.rb +7 -1
  37. data/test_access_token +1 -1
  38. data/zuck.gemspec +4 -4
  39. metadata +3 -3
  40. data/.rvmrc +0 -1
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MDMyMWE1YTM4YTQzODYyMWQ3NDFlYzc5MGI3MDE5Y2ZhZTBlODUwZA==
4
+ YTQ0ZDUzNjUzYTdlNzM4MDZlYTlhNDMzMjIyYmM3MTI0YjMzOTU4NA==
5
5
  data.tar.gz: !binary |-
6
- MjRlOTA3ZjY0NDFmODY0MDA1NGUzMjljMWQzMGUxYmRjNjJmNWE1ZA==
6
+ NjllYjNjMjY2YmI5ZDdkY2ZmMGEzYzdmNGNjMGIyNmVjODljZWM0NA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YWQyYTkzMDhmNmU4ZjQ0MzU2Yzk4YzNlMGY2ZWEyMGE1MmU1YTNiOGU1OGEx
10
- ZjBiZGFhNWYyMzNhZjA3NDE5NGY4NTIxYWEwZTE1NjA0YTI2ZGE1MmM3ODM3
11
- OTViMmM0OTJmNDFjNjRiMDNmYWU4MmRmMzZhZmM2MGVhODNmZTg=
9
+ NTBkMDU5MGZlOGIyMTMxOWFlMDBmYTE3ZTQ3OTFiZDYwOWRmNzU0MTU5OWYz
10
+ MzQwYzU3Mzc1MTExMjI0ZjNmZDA0NWY2MWIyMmFhODBmYzkzM2E0MDM5NGQx
11
+ MmY1NTMyYTVmNTkzOGU2Y2UxNzcyMjQzYjFjNTg4YzcxODkwZWE=
12
12
  data.tar.gz: !binary |-
13
- YWEzYzg0MDJhYjA5YWY5MTM3ZjhmNGE0YThhZTE0YWNmNjY1Mjk4Y2IxYjg4
14
- ZTc1N2M3NWYyYTU3M2YwNGUzZjZiZTU5NzFiMzIxOTlhMDcxZDJiZGFiNWFk
15
- OTZkMDBlZGY3YmMzZTdmZjdiMDA0NzZiY2YzMjNjNjBjODhhODg=
13
+ ZDIzMzcwMGVkNzYzNzY1NDNlOTVjM2I2NGQxMWI1MjgyMmVkMWVhMDQ3MzRj
14
+ OGMxOTUyY2FmZWNjODY1YWNkMzRmMDM5YjIzODA2MzhjYWMxNGNmMDUzMTI2
15
+ ZmI1YjFiMjJhNWMwNDJjMWMyZjIzYjE2ZTQ0YjA2ZDZhNWU2YTU=
@@ -0,0 +1 @@
1
+ 1.9.3
@@ -1,3 +1,10 @@
1
+ 2.2.0
2
+ =====
3
+
4
+ - fixed support for API version 2.4 (2.2 is no longer officially supported)
5
+ - removed deprecated api attributes and added new ones
6
+ - fixed tests to work with one single account and access token
7
+
1
8
  2.1.0
2
9
  =====
3
10
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.1.0
1
+ 3.0.0
@@ -5,10 +5,10 @@ require 'zuck/fb_object'
5
5
  require 'zuck/helpers'
6
6
  Dir[File.expand_path("../zuck/facebook/**/*.rb", __FILE__)].each{ |f| require f}
7
7
 
8
- Koala.config.api_version = "v2.2" if Koala.config.api_version == nil
9
- if Koala.config.api_version != "v2.2"
10
- warn("!!! Zuck was written for Facebook API version v2.2 and may not work!")
11
- warn(" The current Koala.config.api_version='#{Koala.config.api_version}' does not match 'v2.2'!")
8
+ Koala.config.api_version = "v2.4" if Koala.config.api_version == nil
9
+ if Koala.config.api_version != "v2.4"
10
+ warn("!!! Zuck was written for Facebook API version v2.4 and may not work!")
11
+ warn(" The current Koala.config.api_version='#{Koala.config.api_version}' does not match 'v2.4'!")
12
12
  end
13
13
 
14
14
  module Zuck
@@ -21,7 +21,6 @@ module Zuck
21
21
  :capabilities,
22
22
  :created_time,
23
23
  :currency,
24
- :daily_spend_limit,
25
24
  :end_advertiser,
26
25
  :funding_source,
27
26
  :funding_source_details,
@@ -6,9 +6,7 @@ module Zuck
6
6
  known_keys :actor_id,
7
7
  :body,
8
8
  :call_to_action_type,
9
- :follow_redirect,
10
9
  :image_crops,
11
- :image_file,
12
10
  :image_hash,
13
11
  :image_url,
14
12
  :link_url,
@@ -7,21 +7,18 @@ module Zuck
7
7
  # [fb docs](https://developers.facebook.com/docs/reference/ads-api/adgroup/v2.2)
8
8
  known_keys :id,
9
9
  :account_id,
10
- # not available anymore to send, but still there in a response
11
- # :adgroup_status,
12
- # :bid_type,
13
- # :bid_info,
14
- :conversion_specs,
10
+ :adgroup_review_feedback,
11
+ :adgroup_status,
12
+ :bid_amount,
15
13
  :campaign_id,
16
14
  :campaign_group_id,
17
15
  :created_time,
18
- :creative_ids,
16
+ :creative,
19
17
  :failed_delivery_checks,
20
18
  :name,
19
+ :targeting,
21
20
  :tracking_specs,
22
21
  :updated_time
23
- # app must be whitelisted to use view_tags
24
- # :view_tags
25
22
 
26
23
  parent_object :ad_campaign
27
24
  list_path :adgroups
@@ -8,7 +8,7 @@ module Zuck
8
8
  known_keys :id,
9
9
  :name,
10
10
  :account_id,
11
- :bid_type,
11
+ :bid_amount,
12
12
  :bid_info,
13
13
  :campaign_group_id,
14
14
  :campaign_status,
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://graph.facebook.com/v2.2/act_367106653?access_token=FAKEACCESSTOKEN&fields=account_groups,account_id,account_status,age,agency_client_declaration,amount_spent,balance,business_city,business_country_code,business_name,business_state,business_street2,business_street,business_zip,capabilities,created_time,currency,daily_spend_limit,end_advertiser,funding_source,funding_source_details,id,is_personal,media_agency,name,offsite_pixels_tos_accepted,partner,spend_cap,timezone_id,timezone_name,timezone_offset_hours_utc,tos_accepted,users,tax_id_status
5
+ uri: https://graph.facebook.com/v2.4/act_367106653?access_token=DUMMY_TOKEN&fields=account_groups,account_id,account_status,age,agency_client_declaration,amount_spent,balance,business_city,business_country_code,business_name,business_state,business_street2,business_street,business_zip,capabilities,created_time,currency,end_advertiser,funding_source,funding_source_details,id,is_personal,media_agency,name,offsite_pixels_tos_accepted,partner,spend_cap,timezone_id,timezone_name,timezone_offset_hours_utc,tos_accepted,users,tax_id_status
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -19,18 +19,21 @@ http_interactions:
19
19
  message: !binary |-
20
20
  T0s=
21
21
  headers:
22
+ !binary "QWNjZXNzLUNvbnRyb2wtQWxsb3ctT3JpZ2lu":
23
+ - !binary |-
24
+ Kg==
22
25
  !binary "Q29udGVudC1UeXBl":
23
26
  - !binary |-
24
27
  YXBwbGljYXRpb24vanNvbjsgY2hhcnNldD1VVEYtOA==
25
- !binary "QWNjZXNzLUNvbnRyb2wtQWxsb3ctT3JpZ2lu":
28
+ !binary "WC1GYi1UcmFjZS1JZA==":
26
29
  - !binary |-
27
- Kg==
30
+ QkZzUlY0TWNLcXU=
28
31
  !binary "WC1GYi1SZXY=":
29
32
  - !binary |-
30
- MTY5MDEzMQ==
33
+ MTkyODE1NA==
31
34
  !binary "RXRhZw==":
32
35
  - !binary |-
33
- ImE2MDdkNDIyNTU3MGQxOTNkMTI1YThhZTA0NTJiYjAwNDZlZjM5ZDci
36
+ ImYzM2ZiYWZlMDVjYWEyMDE2MjMzNGVkYzYzYzU1MzVlOGJiZTA1M2Yi
34
37
  !binary "UHJhZ21h":
35
38
  - !binary |-
36
39
  bm8tY2FjaGU=
@@ -39,7 +42,7 @@ http_interactions:
39
42
  cHJpdmF0ZSwgbm8tY2FjaGUsIG5vLXN0b3JlLCBtdXN0LXJldmFsaWRhdGU=
40
43
  !binary "RmFjZWJvb2stQXBpLVZlcnNpb24=":
41
44
  - !binary |-
42
- djIuMg==
45
+ djIuNA==
43
46
  !binary "RXhwaXJlcw==":
44
47
  - !binary |-
45
48
  U2F0LCAwMSBKYW4gMjAwMCAwMDowMDowMCBHTVQ=
@@ -51,37 +54,34 @@ http_interactions:
51
54
  Z3ppcA==
52
55
  !binary "WC1GYi1EZWJ1Zw==":
53
56
  - !binary |-
54
- Mit1bml5VGxBZDQrUi9rNEl5WlkxYk1LZTNZWXcybjhFYXloTDZIZ0tEM2t1
55
- aVdxS1VaMER1ZFg4VC9zVWdoTTZZZWFNK3h6Y0JjMktjYjRROTRHd2c9PQ==
57
+ Q21iTkdpaks4b3Z6U21HMFBaVGRNYTZJSk8vT3c3YVZRNHdYSHFHbmh6a3lw
58
+ UzlPR3FTb0N0b2FKcHB3RTJsNUVWL1JleDRWZ05DQUxpK0NZOEtwTmc9PQ==
56
59
  !binary "RGF0ZQ==":
57
60
  - !binary |-
58
- V2VkLCAxNSBBcHIgMjAxNSAwODozMTo1NSBHTVQ=
61
+ VGh1LCAxMCBTZXAgMjAxNSAwOTo0NzoyOCBHTVQ=
59
62
  !binary "Q29ubmVjdGlvbg==":
60
63
  - !binary |-
61
64
  a2VlcC1hbGl2ZQ==
62
65
  !binary "Q29udGVudC1MZW5ndGg=":
63
66
  - !binary |-
64
- NzYx
67
+ NjI0
65
68
  body:
66
69
  encoding: ASCII-8BIT
67
70
  string: !binary |-
68
- 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
- gCwZIgXELfLfu7R9qdC73PlF1s7scne0wx9EVFU3tAZUTRZkMp25dDr1J8R5
70
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- Vxr2stddK5qjd39ZsHt60spI2KsX2WgwnQY8SO5RK7J4Eo2WDjmNjg7EI+zU
82
- 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
- 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
- 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
85
85
  http_version:
86
- recorded_at: Wed, 15 Apr 2015 08:31:57 GMT
86
+ recorded_at: Thu, 10 Sep 2015 09:47:28 GMT
87
87
  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/v2.2/6024300271066?access_token=FAKEACCESSTOKEN&fields=id,account_id,objective,name,adgroups,campaign_group_status,buying_type
5
+ uri: https://graph.facebook.com/v2.4/6029725594066?access_token=DUMMY_TOKEN&fields=id,account_id,objective,name,adgroups,campaign_group_status,buying_type
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -18,34 +18,36 @@ http_interactions:
18
18
  code: 200
19
19
  message: OK
20
20
  headers:
21
- Content-Type:
22
- - application/json; charset=UTF-8
23
21
  Access-Control-Allow-Origin:
24
22
  - ! '*'
23
+ Content-Type:
24
+ - application/json; charset=UTF-8
25
+ X-Fb-Trace-Id:
26
+ - Bv350f3rv9E
25
27
  X-Fb-Rev:
26
- - '1690131'
28
+ - '1928154'
27
29
  Etag:
28
- - ! '"9801ec532ea2dc636715160659a83fef119221fe"'
30
+ - ! '"d3a03aaae55a289df4b18a2c88da73df9fccda22"'
29
31
  Pragma:
30
32
  - no-cache
31
33
  Cache-Control:
32
34
  - private, no-cache, no-store, must-revalidate
33
35
  Facebook-Api-Version:
34
- - v2.2
36
+ - v2.4
35
37
  Expires:
36
38
  - Sat, 01 Jan 2000 00:00:00 GMT
37
39
  X-Fb-Debug:
38
- - 5UCLtJvh95hsVRibQlf68HLk/6Bb20B+ztOQUpnjvi6sdS85JANtgXmMLs4fVU048KjMjkll0juYssyDrg94cw==
40
+ - RROI5T1FNQfWpfCE+fhtHJ9Y1kEXV8Mxy6f0zMOIM/Zv24a/FAmO26mP9YG0JcO23/t5PlhMkKY/ugeNzlWqow==
39
41
  Date:
40
- - Wed, 15 Apr 2015 08:31:54 GMT
42
+ - Thu, 10 Sep 2015 09:47:28 GMT
41
43
  Connection:
42
44
  - keep-alive
43
45
  Content-Length:
44
- - '279'
46
+ - '283'
45
47
  body:
46
48
  encoding: US-ASCII
47
- string: ! '{"id":"6024300271066","account_id":"367106653","objective":"NONE","name":"bloody
48
- campaign","adgroups":{"data":[{"id":"6024300273866"}],"paging":{"cursors":{"before":"NjAyNDMwMDI3Mzg2Ng==","after":"NjAyNDMwMDI3Mzg2Ng=="}}},"campaign_group_status":"PAUSED","buying_type":"AUCTION"}'
49
+ string: ! '{"id":"6029725594066","account_id":"367106653","objective":"NONE","name":"bloody
50
+ campaign","adgroups":{"data":[{"id":"6029725596866"}],"paging":{"cursors":{"before":"NjAyOTcyNTU5Njg2NgZDZD","after":"NjAyOTcyNTU5Njg2NgZDZD"}}},"campaign_group_status":"PAUSED","buying_type":"AUCTION"}'
49
51
  http_version:
50
- recorded_at: Wed, 15 Apr 2015 08:31:56 GMT
52
+ recorded_at: Thu, 10 Sep 2015 09:47:28 GMT
51
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/v2.2/6024300271066?access_token=FAKEACCESSTOKEN&fields=id,account_id,conversion_specs,campaign_id,campaign_group_id,created_time,creative_ids,failed_delivery_checks,name,tracking_specs,updated_time
5
+ uri: https://graph.facebook.com/v2.4/6029725594066?access_token=DUMMY_TOKEN&fields=id,account_id,adgroup_review_feedback,adgroup_status,bid_amount,campaign_id,campaign_group_id,created_time,creative,failed_delivery_checks,name,targeting,tracking_specs,updated_time
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -18,35 +18,37 @@ http_interactions:
18
18
  code: 400
19
19
  message: Bad Request
20
20
  headers:
21
- Content-Type:
22
- - application/json; charset=UTF-8
23
21
  Www-Authenticate:
24
22
  - OAuth "Facebook Platform" "invalid_request" "(#100) Tried accessing nonexisting
25
- field (conversion_specs) on node type (AdCampaignGroup)"
23
+ field (adgroup_review_feedback) on node type (AdCampaignGroup)"
26
24
  Access-Control-Allow-Origin:
27
25
  - ! '*'
26
+ Content-Type:
27
+ - application/json; charset=UTF-8
28
+ X-Fb-Trace-Id:
29
+ - C7QwGyYZLBo
28
30
  X-Fb-Rev:
29
- - '1690131'
31
+ - '1928154'
30
32
  Pragma:
31
33
  - no-cache
32
34
  Cache-Control:
33
35
  - no-store
34
36
  Facebook-Api-Version:
35
- - v2.2
37
+ - v2.4
36
38
  Expires:
37
39
  - Sat, 01 Jan 2000 00:00:00 GMT
38
40
  X-Fb-Debug:
39
- - uxSjnwxJCE0Dju5khX6qboeaKCGJk6NIOMYECOgZN3IPt6B2/24plTKArWF7j4ucMu/+9zh3P6ia/1tQX0WjnA==
41
+ - Q0yfyOPlJwBu/8G6Fp0FFOXna2+NLccDlafmd3w9XOiKvbk/RHs9wBnimjjOFpYT7sgFbH7U4Hv//rRdoxN3Jg==
40
42
  Date:
41
- - Wed, 15 Apr 2015 08:31:55 GMT
43
+ - Thu, 10 Sep 2015 09:47:28 GMT
42
44
  Connection:
43
45
  - keep-alive
44
46
  Content-Length:
45
- - '149'
47
+ - '156'
46
48
  body:
47
49
  encoding: US-ASCII
48
- string: ! '{"error":{"message":"(#100) Tried accessing nonexisting field (conversion_specs)
50
+ string: ! '{"error":{"message":"(#100) Tried accessing nonexisting field (adgroup_review_feedback)
49
51
  on node type (AdCampaignGroup)","type":"OAuthException","code":100}}'
50
52
  http_version:
51
- recorded_at: Wed, 15 Apr 2015 08:31:57 GMT
53
+ recorded_at: Thu, 10 Sep 2015 09:47:28 GMT
52
54
  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/v2.2/search?access_token=FAKEACCESSTOKEN&q=disney&type=adinterest
5
+ uri: https://graph.facebook.com/v2.4/search?access_token=DUMMY_TOKEN&q=disney&type=adinterest
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -16,41 +16,67 @@ http_interactions:
16
16
  response:
17
17
  status:
18
18
  code: 200
19
- message: OK
19
+ message: !binary |-
20
+ T0s=
20
21
  headers:
21
- Content-Type:
22
- - application/json; charset=UTF-8
23
- Access-Control-Allow-Origin:
24
- - ! '*'
25
- X-Fb-Rev:
26
- - '1690131'
27
- Etag:
28
- - ! '"c96808895690b89fe50155bf0d601fe15764b86c"'
29
- Pragma:
30
- - no-cache
31
- Cache-Control:
32
- - private, no-cache, no-store, must-revalidate
33
- Facebook-Api-Version:
34
- - v2.2
35
- Expires:
36
- - Sat, 01 Jan 2000 00:00:00 GMT
37
- X-Fb-Debug:
38
- - Sigzo9NNt4GA+WKHecGWop3xkFbNen/SwLg4G0q5imEVw67BlXjAwgputGXM98evMdn7N+zAKrQe6dJD5GKu1Q==
39
- Date:
40
- - Wed, 15 Apr 2015 08:31:45 GMT
41
- Connection:
42
- - keep-alive
43
- Content-Length:
44
- - '858'
22
+ !binary "QWNjZXNzLUNvbnRyb2wtQWxsb3ctT3JpZ2lu":
23
+ - !binary |-
24
+ Kg==
25
+ !binary "Q29udGVudC1UeXBl":
26
+ - !binary |-
27
+ YXBwbGljYXRpb24vanNvbjsgY2hhcnNldD1VVEYtOA==
28
+ !binary "WC1GYi1UcmFjZS1JZA==":
29
+ - !binary |-
30
+ RDMzcTV0aWFKVTQ=
31
+ !binary "WC1GYi1SZXY=":
32
+ - !binary |-
33
+ MTkyODE1NA==
34
+ !binary "RXRhZw==":
35
+ - !binary |-
36
+ IjNhZDFhYmUwNGRmZGQ4NGJjOGJjMjlhYTg4MjNhODFhNjQzYjFjZmQi
37
+ !binary "UHJhZ21h":
38
+ - !binary |-
39
+ bm8tY2FjaGU=
40
+ !binary "Q2FjaGUtQ29udHJvbA==":
41
+ - !binary |-
42
+ cHJpdmF0ZSwgbm8tY2FjaGUsIG5vLXN0b3JlLCBtdXN0LXJldmFsaWRhdGU=
43
+ !binary "RmFjZWJvb2stQXBpLVZlcnNpb24=":
44
+ - !binary |-
45
+ djIuNA==
46
+ !binary "RXhwaXJlcw==":
47
+ - !binary |-
48
+ U2F0LCAwMSBKYW4gMjAwMCAwMDowMDowMCBHTVQ=
49
+ !binary "VmFyeQ==":
50
+ - !binary |-
51
+ QWNjZXB0LUVuY29kaW5n
52
+ !binary "Q29udGVudC1FbmNvZGluZw==":
53
+ - !binary |-
54
+ Z3ppcA==
55
+ !binary "WC1GYi1EZWJ1Zw==":
56
+ - !binary |-
57
+ dlhlTm01TCtWeGljVFFiblVOaVdHTUpnQ3BFWmsrV0JCbGt5Z1FENUZVOHRo
58
+ ckxuazhoTGV4UU8zeGpTVEp6dkF5WVBCUWtkUkhla1l6WmlNTmpSVFE9PQ==
59
+ !binary "RGF0ZQ==":
60
+ - !binary |-
61
+ VGh1LCAxMCBTZXAgMjAxNSAwOTo0NzoxNCBHTVQ=
62
+ !binary "Q29ubmVjdGlvbg==":
63
+ - !binary |-
64
+ a2VlcC1hbGl2ZQ==
65
+ !binary "Q29udGVudC1MZW5ndGg=":
66
+ - !binary |-
67
+ Mzg0
45
68
  body:
46
- encoding: US-ASCII
47
- string: ! '{"data":[{"id":"6003270522085","name":"The Walt Disney Company","audience_size":157850860,"path":[],"description":null},{"id":"6003284678611","name":"Walt
48
- Disney","audience_size":71107060,"path":[],"description":null},{"id":"6003050377616","name":"Walt
49
- Disney Pictures","audience_size":73976190,"path":[],"description":null},{"id":"6003212182247","name":"Disney
50
- Channel (Latin America)","audience_size":51049290,"path":[],"description":null},{"id":"6003663755307","name":"disney","audience_size":42628330,"path":[],"description":null},{"id":"6003327130854","name":"Disney
51
- Channel","audience_size":59441180,"path":[],"description":null},{"id":"6003235403611","name":"Disney
52
- on Ice","audience_size":43601380,"path":[],"description":null},{"id":"6007022518262","name":"The
53
- Walt Disney Studios (division)","audience_size":53979150,"path":[],"description":null}]}'
69
+ encoding: ASCII-8BIT
70
+ string: !binary |-
71
+ H4sIAAAAAAAAA62Ty07DMBBFf8XyCqQs/LbpjseSRwVILFCFrMTQEYkTxU5R
72
+ qfrvuKpKWzUtWbCzrJm5Z+bOLHBho8Wj1wWGAo+wIoQzTSRjxEicYW8rl76f
73
+ pw692DKiGwjezdF1XTXWz1OA7QpwPndvAb5TJFVSGWYYyXBj4zQVnmS4cCFv
74
+ oYlQezzyXVlmONYN5KnwVRfAuxCQ9QUCX3QhtnO8zHZxjFDaKEq3ODsohwgq
75
+ JSmihxKMXd2Ubl+SSMK1VlT1SqIx5LFrXejR5heMST5Ue0D3yQ3Kkxdii7Lx
76
+ YGq9d2UPBFFcEDEU4t59rQGcj66NFnyVXnsUmqSuqGGKHV+Jp5go6oDOCphB
77
+ SDrnh2SSaJ4WZCjZkPFQowll1Bxxyraf6/RHF+o29lgm07IQ9p+WrW7HcCUu
78
+ tky3ECKq33/PZ20demjhA7wt0V09g759EsJQSuVpuP2BaClEOhjdP5BLD5Vd
79
+ pW786tUkWpnTmn8OZLL8AZ7kr85bBAAA
54
80
  http_version:
55
- recorded_at: Wed, 15 Apr 2015 08:31:46 GMT
81
+ recorded_at: Thu, 10 Sep 2015 09:47:14 GMT
56
82
  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/v2.2/search?access_token=FAKEACCESSTOKEN&q=moviepilot&type=adinterest
5
+ uri: https://graph.facebook.com/v2.4/search?access_token=DUMMY_TOKEN&q=moviepilot&type=adinterest
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -16,37 +16,65 @@ http_interactions:
16
16
  response:
17
17
  status:
18
18
  code: 200
19
- message: OK
19
+ message: !binary |-
20
+ T0s=
20
21
  headers:
21
- Content-Type:
22
- - application/json; charset=UTF-8
23
- Access-Control-Allow-Origin:
24
- - ! '*'
25
- X-Fb-Rev:
26
- - '1690131'
27
- Etag:
28
- - ! '"00c8d060548219c13e6e1e57928c422237f1b484"'
29
- Pragma:
30
- - no-cache
31
- Cache-Control:
32
- - private, no-cache, no-store, must-revalidate
33
- Facebook-Api-Version:
34
- - v2.2
35
- Expires:
36
- - Sat, 01 Jan 2000 00:00:00 GMT
37
- X-Fb-Debug:
38
- - MvznFodJDu9SsYDJhQuiq0dgbprzOpN/4lu1rkgDvOAEEM4Lp2gqhw4pNZwLveZUD/iwv1mE7O4HPdAQWzEwTg==
39
- Date:
40
- - Wed, 15 Apr 2015 08:31:45 GMT
41
- Connection:
42
- - keep-alive
43
- Content-Length:
44
- - '411'
22
+ !binary "QWNjZXNzLUNvbnRyb2wtQWxsb3ctT3JpZ2lu":
23
+ - !binary |-
24
+ Kg==
25
+ !binary "Q29udGVudC1UeXBl":
26
+ - !binary |-
27
+ YXBwbGljYXRpb24vanNvbjsgY2hhcnNldD1VVEYtOA==
28
+ !binary "WC1GYi1UcmFjZS1JZA==":
29
+ - !binary |-
30
+ RUo0d09yb3Voc2M=
31
+ !binary "WC1GYi1SZXY=":
32
+ - !binary |-
33
+ MTkyODE1NA==
34
+ !binary "RXRhZw==":
35
+ - !binary |-
36
+ ImU2NjQwOTMzZWY4MTIxN2MxNzc2MzkzYTk1MDUwZGNmMzZkYTg1Yjci
37
+ !binary "UHJhZ21h":
38
+ - !binary |-
39
+ bm8tY2FjaGU=
40
+ !binary "Q2FjaGUtQ29udHJvbA==":
41
+ - !binary |-
42
+ cHJpdmF0ZSwgbm8tY2FjaGUsIG5vLXN0b3JlLCBtdXN0LXJldmFsaWRhdGU=
43
+ !binary "RmFjZWJvb2stQXBpLVZlcnNpb24=":
44
+ - !binary |-
45
+ djIuNA==
46
+ !binary "RXhwaXJlcw==":
47
+ - !binary |-
48
+ U2F0LCAwMSBKYW4gMjAwMCAwMDowMDowMCBHTVQ=
49
+ !binary "VmFyeQ==":
50
+ - !binary |-
51
+ QWNjZXB0LUVuY29kaW5n
52
+ !binary "Q29udGVudC1FbmNvZGluZw==":
53
+ - !binary |-
54
+ Z3ppcA==
55
+ !binary "WC1GYi1EZWJ1Zw==":
56
+ - !binary |-
57
+ bDBqSm5YektLMlBvaC94eTNHalF4bmVXeHZEdlFFTzlvK00zZm8zbldBeStm
58
+ MTQxU05NbDdjb1F4b01VLzZEM01jZm83RmlYTlhNcDlHTnI0SFZhUXc9PQ==
59
+ !binary "RGF0ZQ==":
60
+ - !binary |-
61
+ VGh1LCAxMCBTZXAgMjAxNSAwOTo0NzoxNSBHTVQ=
62
+ !binary "Q29ubmVjdGlvbg==":
63
+ - !binary |-
64
+ a2VlcC1hbGl2ZQ==
65
+ !binary "Q29udGVudC1MZW5ndGg=":
66
+ - !binary |-
67
+ Mjk4
45
68
  body:
46
- encoding: US-ASCII
47
- string: ! '{"data":[{"id":"6003495809986","name":"moviepilotcom","audience_size":4982640,"path":[],"description":null},{"id":"6003327847780","name":"moviepilot","audience_size":1948110,"path":[],"description":null},{"id":"6016974866325","name":"moviepilot
48
- horror","audience_size":5058700,"path":[],"description":null},{"id":"6014532714533","name":"moviepilot
49
- action","audience_size":1387320,"path":[],"description":null}]}'
69
+ encoding: ASCII-8BIT
70
+ string: !binary |-
71
+ H4sIAAAAAAAAA63SXWrEIBAH8KsEn/OgM37mDt0LlKVIIkRINBizhS5795pS
72
+ 2kJsX5oXEQfn/8PxTgabLeme78QPpCNMgKJScaSGUuRAWhLs7ErlKd68W/wU
73
+ czmz2+Bd6N3L6t9KEdAYXi62ZLF5LN2uLRnc2ie/ZB8D6cI2TY/2M0PunY3Q
74
+ 1BgtvwPmr4A+zscMIahW+HdES3JcfF+aXdzr2tgwNC5kl7L1YS478sPApFFc
75
+ S4kgaoZmjCnFVHFQpQFOdKARFDgzjFYd67a4NLoU3XrEgDBCsvMwFBGU5krp
76
+ KqYCoAolPw/AuCiCfcUaoLH9R9+Dg3FeBnmqQ3KN+7CrjnyrGVCCOc8ATOoC
77
+ KP++Ooxy2c/2l+cADerfY7k+3gHI8YjMHwQAAA==
50
78
  http_version:
51
- recorded_at: Wed, 15 Apr 2015 08:31:47 GMT
79
+ recorded_at: Thu, 10 Sep 2015 09:47:15 GMT
52
80
  recorded_with: VCR 2.3.0