fb_graph 2.5.4 → 2.5.5

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.5.4
1
+ 2.5.5
@@ -4,7 +4,7 @@ module FbGraph
4
4
  include Connections::ReachEstimates
5
5
 
6
6
  attr_accessor :ad_id, :campaign_id, :name, :adgroup_status, :bid_type, :max_bid, :targeting, :creative, :creative_ids, :adgroup_id,
7
- :end_time, :start_time, :updated_time, :bid_info, :disapprove_reason_descriptions
7
+ :end_time, :start_time, :updated_time, :bid_info, :disapprove_reason_descriptions, :view_tags
8
8
 
9
9
  def initialize(identifier, attributes = {})
10
10
  super
@@ -31,7 +31,7 @@ module FbGraph
31
31
  protected
32
32
 
33
33
  def set_attrs(attributes)
34
- %w(ad_id campaign_id name adgroup_status bid_type max_bid targeting creative creative_ids adgroup_id bid_info disapprove_reason_descriptions).each do |field|
34
+ %w(ad_id campaign_id name adgroup_status bid_type max_bid targeting creative creative_ids adgroup_id bid_info disapprove_reason_descriptions view_tags).each do |field|
35
35
  send("#{field}=", attributes[field.to_sym])
36
36
  end
37
37
 
@@ -14,7 +14,8 @@ describe FbGraph::AdGroup, '.new' do
14
14
  :adgroup_id => 6003590469668,
15
15
  :end_time => "2011-09-10T00:00:00+00:00",
16
16
  :start_time => "2011-09-01T12:00:00-07:00",
17
- :updated_time => "2011-09-04T16:00:00+00:00"
17
+ :updated_time => "2011-09-04T16:00:00+00:00",
18
+ :view_tags => ["http://example.com"]
18
19
  }
19
20
  ad_group = FbGraph::AdGroup.new(attributes.delete(:id), attributes)
20
21
  ad_group.identifier.should == "6003590469668"
@@ -28,6 +29,7 @@ describe FbGraph::AdGroup, '.new' do
28
29
  ad_group.end_time.should == Time.parse("2011-09-10T00:00:00+00:00")
29
30
  ad_group.start_time.should == Time.parse("2011-09-01T12:00:00-07:00")
30
31
  ad_group.updated_time.should == Time.parse("2011-09-04T16:00:00+00:00")
32
+ ad_group.view_tags.should == ["http://example.com"]
31
33
  end
32
34
  end
33
35
 
@@ -48,6 +50,7 @@ describe FbGraph::AdGroup, '.fetch' do
48
50
  ad_group.end_time.should == Time.parse("2011-09-10T00:00:00+00:00")
49
51
  ad_group.start_time.should == Time.parse("2011-09-01T12:00:00-07:00")
50
52
  ad_group.updated_time.should == Time.parse("2011-09-04T16:00:00+00:00")
53
+ ad_group.view_tags.should == ["http://example.com"]
51
54
  end
52
55
  end
53
56
  end
@@ -9,5 +9,6 @@
9
9
  "adgroup_id": 6003590469668,
10
10
  "end_time": "2011-09-10T00:00:00+00:00",
11
11
  "start_time": "2011-09-01T12:00:00-07:00",
12
- "updated_time": "2011-09-04T16:00:00+00:00"
12
+ "updated_time": "2011-09-04T16:00:00+00:00",
13
+ "view_tags": ["http://example.com"]
13
14
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fb_graph
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.4
4
+ version: 2.5.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: