fb_graph 2.5.4 → 2.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/lib/fb_graph/ad_group.rb +2 -2
- data/spec/fb_graph/ad_group_spec.rb +4 -1
- data/spec/mock_json/ad_groups/test_ad_group.json +2 -1
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.5.
|
1
|
+
2.5.5
|
data/lib/fb_graph/ad_group.rb
CHANGED
@@ -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
|