Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added actions as an attribute in both AdGroupStat and AdCampaignStat …

…classes
  • Loading branch information...
commit b6b75e544ebc69cd72cdb14e177f5c58ebf59f9e 1 parent 8b09720
Blake McIntyre authored
View
4 lib/fb_graph/ad_campaign_stat.rb
@@ -1,12 +1,12 @@
module FbGraph
class AdCampaignStat < Node
attr_accessor :start_time, :end_time, :campaign_id, :impressions, :clicks, :spent, :social_impressions, :social_clicks, :social_spent,
- :unique_impressions, :social_unique_impressions, :unique_clicks, :social_unique_clicks, :connections
+ :actions, :unique_impressions, :social_unique_impressions, :unique_clicks, :social_unique_clicks, :connections
def initialize(identifier, attributes = {})
super
- %w(campaign_id impressions clicks spent social_impressions social_clicks social_spent unique_impressions social_unique_impressions unique_clicks social_unique_clicks connections).each do |field|
+ %w(campaign_id impressions clicks spent social_impressions social_clicks social_spent actions unique_impressions social_unique_impressions unique_clicks social_unique_clicks connections).each do |field|
send("#{field}=", attributes[field.to_sym])
end
View
4 lib/fb_graph/ad_group_stat.rb
@@ -1,12 +1,12 @@
module FbGraph
class AdGroupStat < Node
attr_accessor :start_time, :end_time, :adgroup_id, :impressions, :clicks, :spent, :social_impressions, :social_clicks, :social_spent,
- :unique_impressions, :social_unique_impressions, :unique_clicks, :social_unique_clicks, :connections
+ :actions, :unique_impressions, :social_unique_impressions, :unique_clicks, :social_unique_clicks, :connections
def initialize(identifier, attributes = {})
super
- %w(adgroup_id impressions clicks spent social_impressions social_clicks social_spent unique_impressions social_unique_impressions unique_clicks social_unique_clicks connections).each do |field|
+ %w(adgroup_id impressions clicks spent social_impressions social_clicks social_spent actions unique_impressions social_unique_impressions unique_clicks social_unique_clicks connections).each do |field|
send("#{field}=", attributes[field.to_sym])
end
Please sign in to comment.
Something went wrong with that request. Please try again.