Module: GSGraph::Connections::AdGroupStats
- Included in:
- AdAccount
- Defined in:
- lib/gs_graph/connections/ad_group_stats.rb
Instance Method Summary collapse
-
#ad_group_stats(options = {}) ⇒ Object
When retrieving stats at the AdAccount level we use the ‘adgroupstats’ connection This returns an Array of statistics.
Instance Method Details
#ad_group_stats(options = {}) ⇒ Object
When retrieving stats at the AdAccount level we use the ‘adgroupstats’ connection This returns an Array of statistics
6 7 8 9 10 11 12 13 |
# File 'lib/gs_graph/connections/ad_group_stats.rb', line 6 def ad_group_stats( = {}) ad_group_stats = self.connection :adgroupstats, ad_group_stats.map! do |ad_group_stat| AdGroupStat.new ad_group_stat[:id], ad_group_stat.merge( :access_token => [:access_token] || self.access_token ) end end |