Open brunogh opened 12 years ago
If you request Garb::Management::Account.all, the entities will have the full url at path param, like "https://www.googleapis.com/analytics/v2.4/management/accounts/123" when it is just to be "/accounts/123"
Seems that this is beeing caused by Management API v2.3 Forwarding http://groups.google.com/group/google-analytics-api-notify/browse_thread/thread/656aa688a733d5ff
What you could do as workaround is:
accounts = Garb::Management::Account.all(session)
accounts.each do |a|
account = OpenStruct.new(:name => a.name, :profiles => [])
a.path.gsub!("https://www.googleapis.com/analytics/v2.4/management", '')
a.profiles.each do |p|
account.profiles << OpenStruct.new(:title => p.title, :ua_id => p.web_property_id)
end
ga_profiles << account
end
It seems that the following code stopped working on account.profiles call. Not sure if it is a temporary Google issue, but noticed today.