class Google::Apis::UrlshortenerV1::AnalyticsSnapshot

Attributes

browsers[RW]

Top browsers, e.g. “Chrome”; sorted by (descending) click counts. Only present if this data is available. Corresponds to the JSON property `browsers` @return [Array<Google::Apis::UrlshortenerV1::StringCount>]

countries[RW]

Top countries (expressed as country codes), e.g. “US” or “DE”; sorted by ( descending) click counts. Only present if this data is available. Corresponds to the JSON property `countries` @return [Array<Google::Apis::UrlshortenerV1::StringCount>]

long_url_clicks[RW]

Number of clicks on all goo.gl short URLs pointing to this long URL. Corresponds to the JSON property `longUrlClicks` @return [String]

platforms[RW]

Top platforms or OSes, e.g. “Windows”; sorted by (descending) click counts. Only present if this data is available. Corresponds to the JSON property `platforms` @return [Array<Google::Apis::UrlshortenerV1::StringCount>]

referrers[RW]

Top referring hosts, e.g. “www.google.com”; sorted by (descending) click counts. Only present if this data is available. Corresponds to the JSON property `referrers` @return [Array<Google::Apis::UrlshortenerV1::StringCount>]

short_url_clicks[RW]

Number of clicks on this short URL. Corresponds to the JSON property `shortUrlClicks` @return [String]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/urlshortener_v1/classes.rb, line 63
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/urlshortener_v1/classes.rb, line 68
def update!(**args)
  @browsers = args[:browsers] if args.key?(:browsers)
  @countries = args[:countries] if args.key?(:countries)
  @long_url_clicks = args[:long_url_clicks] if args.key?(:long_url_clicks)
  @platforms = args[:platforms] if args.key?(:platforms)
  @referrers = args[:referrers] if args.key?(:referrers)
  @short_url_clicks = args[:short_url_clicks] if args.key?(:short_url_clicks)
end