URL Shortener API . url

Instance Methods

get(shortUrl, projection=None)

Expands a short URL or gets creation time and analytics.

insert(body)

Creates a new short URL.

list(start_token=None, projection=None)

Retrieves a list of URLs shortened by a user.

Method Details

get(shortUrl, projection=None)
Expands a short URL or gets creation time and analytics.

Args:
  shortUrl: string, The short URL, including the protocol. (required)
  projection: string, Additional information to return.
    Allowed values
      ANALYTICS_CLICKS - Returns only click counts.
      ANALYTICS_TOP_STRINGS - Returns only top string counts.
      FULL - Returns the creation timestamp and all available analytics.

Returns:
  An object of the form:

    {
      "status": "A String", # Status of the target URL. Possible values: "OK", "MALWARE", "PHISHING", or "REMOVED". A URL might be marked "REMOVED" if it was flagged as spam, for example.
      "kind": "urlshortener#url", # The fixed string "urlshortener#url".
      "created": "A String", # Time the short URL was created; ISO 8601 representation using the yyyy-MM-dd'T'HH:mm:ss.SSSZZ format, e.g. "2010-10-14T19:01:24.944+00:00".
      "analytics": { # A summary of the click analytics for the short and long URL. Might not be present if not requested or currently unavailable.
        "week": { # Click analytics over the last week.
          "shortUrlClicks": "A String", # Number of clicks on this short URL.
          "countries": [ # Top countries (expressed as country codes), e.g. "US" or "DE"; sorted by (descending) click counts. Only present if this data is available.
            {
              "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
              "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
            },
          ],
          "platforms": [ # Top platforms or OSes, e.g. "Windows"; sorted by (descending) click counts. Only present if this data is available.
            {
              "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
              "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
            },
          ],
          "browsers": [ # Top browsers, e.g. "Chrome"; sorted by (descending) click counts. Only present if this data is available.
            {
              "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
              "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
            },
          ],
          "referrers": [ # Top referring hosts, e.g. "www.google.com"; sorted by (descending) click counts. Only present if this data is available.
            {
              "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
              "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
            },
          ],
          "longUrlClicks": "A String", # Number of clicks on all goo.gl short URLs pointing to this long URL.
        },
        "allTime": { # Click analytics over all time.
          "shortUrlClicks": "A String", # Number of clicks on this short URL.
          "countries": [ # Top countries (expressed as country codes), e.g. "US" or "DE"; sorted by (descending) click counts. Only present if this data is available.
            {
              "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
              "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
            },
          ],
          "platforms": [ # Top platforms or OSes, e.g. "Windows"; sorted by (descending) click counts. Only present if this data is available.
            {
              "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
              "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
            },
          ],
          "browsers": [ # Top browsers, e.g. "Chrome"; sorted by (descending) click counts. Only present if this data is available.
            {
              "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
              "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
            },
          ],
          "referrers": [ # Top referring hosts, e.g. "www.google.com"; sorted by (descending) click counts. Only present if this data is available.
            {
              "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
              "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
            },
          ],
          "longUrlClicks": "A String", # Number of clicks on all goo.gl short URLs pointing to this long URL.
        },
        "twoHours": { # Click analytics over the last two hours.
          "shortUrlClicks": "A String", # Number of clicks on this short URL.
          "countries": [ # Top countries (expressed as country codes), e.g. "US" or "DE"; sorted by (descending) click counts. Only present if this data is available.
            {
              "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
              "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
            },
          ],
          "platforms": [ # Top platforms or OSes, e.g. "Windows"; sorted by (descending) click counts. Only present if this data is available.
            {
              "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
              "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
            },
          ],
          "browsers": [ # Top browsers, e.g. "Chrome"; sorted by (descending) click counts. Only present if this data is available.
            {
              "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
              "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
            },
          ],
          "referrers": [ # Top referring hosts, e.g. "www.google.com"; sorted by (descending) click counts. Only present if this data is available.
            {
              "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
              "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
            },
          ],
          "longUrlClicks": "A String", # Number of clicks on all goo.gl short URLs pointing to this long URL.
        },
        "day": { # Click analytics over the last day.
          "shortUrlClicks": "A String", # Number of clicks on this short URL.
          "countries": [ # Top countries (expressed as country codes), e.g. "US" or "DE"; sorted by (descending) click counts. Only present if this data is available.
            {
              "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
              "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
            },
          ],
          "platforms": [ # Top platforms or OSes, e.g. "Windows"; sorted by (descending) click counts. Only present if this data is available.
            {
              "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
              "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
            },
          ],
          "browsers": [ # Top browsers, e.g. "Chrome"; sorted by (descending) click counts. Only present if this data is available.
            {
              "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
              "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
            },
          ],
          "referrers": [ # Top referring hosts, e.g. "www.google.com"; sorted by (descending) click counts. Only present if this data is available.
            {
              "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
              "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
            },
          ],
          "longUrlClicks": "A String", # Number of clicks on all goo.gl short URLs pointing to this long URL.
        },
        "month": { # Click analytics over the last month.
          "shortUrlClicks": "A String", # Number of clicks on this short URL.
          "countries": [ # Top countries (expressed as country codes), e.g. "US" or "DE"; sorted by (descending) click counts. Only present if this data is available.
            {
              "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
              "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
            },
          ],
          "platforms": [ # Top platforms or OSes, e.g. "Windows"; sorted by (descending) click counts. Only present if this data is available.
            {
              "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
              "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
            },
          ],
          "browsers": [ # Top browsers, e.g. "Chrome"; sorted by (descending) click counts. Only present if this data is available.
            {
              "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
              "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
            },
          ],
          "referrers": [ # Top referring hosts, e.g. "www.google.com"; sorted by (descending) click counts. Only present if this data is available.
            {
              "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
              "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
            },
          ],
          "longUrlClicks": "A String", # Number of clicks on all goo.gl short URLs pointing to this long URL.
        },
      },
      "longUrl": "A String", # Long URL, e.g. "http://www.google.com/". Might not be present if the status is "REMOVED".
      "id": "A String", # Short URL, e.g. "http://goo.gl/l6MS".
    }
insert(body)
Creates a new short URL.

Args:
  body: object, The request body. (required)
    The object takes the form of:

{
    "status": "A String", # Status of the target URL. Possible values: "OK", "MALWARE", "PHISHING", or "REMOVED". A URL might be marked "REMOVED" if it was flagged as spam, for example.
    "kind": "urlshortener#url", # The fixed string "urlshortener#url".
    "created": "A String", # Time the short URL was created; ISO 8601 representation using the yyyy-MM-dd'T'HH:mm:ss.SSSZZ format, e.g. "2010-10-14T19:01:24.944+00:00".
    "analytics": { # A summary of the click analytics for the short and long URL. Might not be present if not requested or currently unavailable.
      "week": { # Click analytics over the last week.
        "shortUrlClicks": "A String", # Number of clicks on this short URL.
        "countries": [ # Top countries (expressed as country codes), e.g. "US" or "DE"; sorted by (descending) click counts. Only present if this data is available.
          {
            "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
            "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
          },
        ],
        "platforms": [ # Top platforms or OSes, e.g. "Windows"; sorted by (descending) click counts. Only present if this data is available.
          {
            "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
            "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
          },
        ],
        "browsers": [ # Top browsers, e.g. "Chrome"; sorted by (descending) click counts. Only present if this data is available.
          {
            "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
            "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
          },
        ],
        "referrers": [ # Top referring hosts, e.g. "www.google.com"; sorted by (descending) click counts. Only present if this data is available.
          {
            "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
            "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
          },
        ],
        "longUrlClicks": "A String", # Number of clicks on all goo.gl short URLs pointing to this long URL.
      },
      "allTime": { # Click analytics over all time.
        "shortUrlClicks": "A String", # Number of clicks on this short URL.
        "countries": [ # Top countries (expressed as country codes), e.g. "US" or "DE"; sorted by (descending) click counts. Only present if this data is available.
          {
            "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
            "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
          },
        ],
        "platforms": [ # Top platforms or OSes, e.g. "Windows"; sorted by (descending) click counts. Only present if this data is available.
          {
            "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
            "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
          },
        ],
        "browsers": [ # Top browsers, e.g. "Chrome"; sorted by (descending) click counts. Only present if this data is available.
          {
            "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
            "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
          },
        ],
        "referrers": [ # Top referring hosts, e.g. "www.google.com"; sorted by (descending) click counts. Only present if this data is available.
          {
            "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
            "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
          },
        ],
        "longUrlClicks": "A String", # Number of clicks on all goo.gl short URLs pointing to this long URL.
      },
      "twoHours": { # Click analytics over the last two hours.
        "shortUrlClicks": "A String", # Number of clicks on this short URL.
        "countries": [ # Top countries (expressed as country codes), e.g. "US" or "DE"; sorted by (descending) click counts. Only present if this data is available.
          {
            "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
            "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
          },
        ],
        "platforms": [ # Top platforms or OSes, e.g. "Windows"; sorted by (descending) click counts. Only present if this data is available.
          {
            "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
            "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
          },
        ],
        "browsers": [ # Top browsers, e.g. "Chrome"; sorted by (descending) click counts. Only present if this data is available.
          {
            "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
            "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
          },
        ],
        "referrers": [ # Top referring hosts, e.g. "www.google.com"; sorted by (descending) click counts. Only present if this data is available.
          {
            "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
            "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
          },
        ],
        "longUrlClicks": "A String", # Number of clicks on all goo.gl short URLs pointing to this long URL.
      },
      "day": { # Click analytics over the last day.
        "shortUrlClicks": "A String", # Number of clicks on this short URL.
        "countries": [ # Top countries (expressed as country codes), e.g. "US" or "DE"; sorted by (descending) click counts. Only present if this data is available.
          {
            "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
            "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
          },
        ],
        "platforms": [ # Top platforms or OSes, e.g. "Windows"; sorted by (descending) click counts. Only present if this data is available.
          {
            "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
            "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
          },
        ],
        "browsers": [ # Top browsers, e.g. "Chrome"; sorted by (descending) click counts. Only present if this data is available.
          {
            "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
            "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
          },
        ],
        "referrers": [ # Top referring hosts, e.g. "www.google.com"; sorted by (descending) click counts. Only present if this data is available.
          {
            "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
            "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
          },
        ],
        "longUrlClicks": "A String", # Number of clicks on all goo.gl short URLs pointing to this long URL.
      },
      "month": { # Click analytics over the last month.
        "shortUrlClicks": "A String", # Number of clicks on this short URL.
        "countries": [ # Top countries (expressed as country codes), e.g. "US" or "DE"; sorted by (descending) click counts. Only present if this data is available.
          {
            "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
            "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
          },
        ],
        "platforms": [ # Top platforms or OSes, e.g. "Windows"; sorted by (descending) click counts. Only present if this data is available.
          {
            "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
            "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
          },
        ],
        "browsers": [ # Top browsers, e.g. "Chrome"; sorted by (descending) click counts. Only present if this data is available.
          {
            "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
            "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
          },
        ],
        "referrers": [ # Top referring hosts, e.g. "www.google.com"; sorted by (descending) click counts. Only present if this data is available.
          {
            "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
            "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
          },
        ],
        "longUrlClicks": "A String", # Number of clicks on all goo.gl short URLs pointing to this long URL.
      },
    },
    "longUrl": "A String", # Long URL, e.g. "http://www.google.com/". Might not be present if the status is "REMOVED".
    "id": "A String", # Short URL, e.g. "http://goo.gl/l6MS".
  }


Returns:
  An object of the form:

    {
      "status": "A String", # Status of the target URL. Possible values: "OK", "MALWARE", "PHISHING", or "REMOVED". A URL might be marked "REMOVED" if it was flagged as spam, for example.
      "kind": "urlshortener#url", # The fixed string "urlshortener#url".
      "created": "A String", # Time the short URL was created; ISO 8601 representation using the yyyy-MM-dd'T'HH:mm:ss.SSSZZ format, e.g. "2010-10-14T19:01:24.944+00:00".
      "analytics": { # A summary of the click analytics for the short and long URL. Might not be present if not requested or currently unavailable.
        "week": { # Click analytics over the last week.
          "shortUrlClicks": "A String", # Number of clicks on this short URL.
          "countries": [ # Top countries (expressed as country codes), e.g. "US" or "DE"; sorted by (descending) click counts. Only present if this data is available.
            {
              "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
              "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
            },
          ],
          "platforms": [ # Top platforms or OSes, e.g. "Windows"; sorted by (descending) click counts. Only present if this data is available.
            {
              "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
              "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
            },
          ],
          "browsers": [ # Top browsers, e.g. "Chrome"; sorted by (descending) click counts. Only present if this data is available.
            {
              "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
              "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
            },
          ],
          "referrers": [ # Top referring hosts, e.g. "www.google.com"; sorted by (descending) click counts. Only present if this data is available.
            {
              "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
              "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
            },
          ],
          "longUrlClicks": "A String", # Number of clicks on all goo.gl short URLs pointing to this long URL.
        },
        "allTime": { # Click analytics over all time.
          "shortUrlClicks": "A String", # Number of clicks on this short URL.
          "countries": [ # Top countries (expressed as country codes), e.g. "US" or "DE"; sorted by (descending) click counts. Only present if this data is available.
            {
              "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
              "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
            },
          ],
          "platforms": [ # Top platforms or OSes, e.g. "Windows"; sorted by (descending) click counts. Only present if this data is available.
            {
              "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
              "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
            },
          ],
          "browsers": [ # Top browsers, e.g. "Chrome"; sorted by (descending) click counts. Only present if this data is available.
            {
              "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
              "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
            },
          ],
          "referrers": [ # Top referring hosts, e.g. "www.google.com"; sorted by (descending) click counts. Only present if this data is available.
            {
              "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
              "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
            },
          ],
          "longUrlClicks": "A String", # Number of clicks on all goo.gl short URLs pointing to this long URL.
        },
        "twoHours": { # Click analytics over the last two hours.
          "shortUrlClicks": "A String", # Number of clicks on this short URL.
          "countries": [ # Top countries (expressed as country codes), e.g. "US" or "DE"; sorted by (descending) click counts. Only present if this data is available.
            {
              "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
              "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
            },
          ],
          "platforms": [ # Top platforms or OSes, e.g. "Windows"; sorted by (descending) click counts. Only present if this data is available.
            {
              "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
              "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
            },
          ],
          "browsers": [ # Top browsers, e.g. "Chrome"; sorted by (descending) click counts. Only present if this data is available.
            {
              "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
              "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
            },
          ],
          "referrers": [ # Top referring hosts, e.g. "www.google.com"; sorted by (descending) click counts. Only present if this data is available.
            {
              "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
              "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
            },
          ],
          "longUrlClicks": "A String", # Number of clicks on all goo.gl short URLs pointing to this long URL.
        },
        "day": { # Click analytics over the last day.
          "shortUrlClicks": "A String", # Number of clicks on this short URL.
          "countries": [ # Top countries (expressed as country codes), e.g. "US" or "DE"; sorted by (descending) click counts. Only present if this data is available.
            {
              "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
              "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
            },
          ],
          "platforms": [ # Top platforms or OSes, e.g. "Windows"; sorted by (descending) click counts. Only present if this data is available.
            {
              "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
              "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
            },
          ],
          "browsers": [ # Top browsers, e.g. "Chrome"; sorted by (descending) click counts. Only present if this data is available.
            {
              "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
              "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
            },
          ],
          "referrers": [ # Top referring hosts, e.g. "www.google.com"; sorted by (descending) click counts. Only present if this data is available.
            {
              "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
              "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
            },
          ],
          "longUrlClicks": "A String", # Number of clicks on all goo.gl short URLs pointing to this long URL.
        },
        "month": { # Click analytics over the last month.
          "shortUrlClicks": "A String", # Number of clicks on this short URL.
          "countries": [ # Top countries (expressed as country codes), e.g. "US" or "DE"; sorted by (descending) click counts. Only present if this data is available.
            {
              "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
              "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
            },
          ],
          "platforms": [ # Top platforms or OSes, e.g. "Windows"; sorted by (descending) click counts. Only present if this data is available.
            {
              "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
              "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
            },
          ],
          "browsers": [ # Top browsers, e.g. "Chrome"; sorted by (descending) click counts. Only present if this data is available.
            {
              "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
              "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
            },
          ],
          "referrers": [ # Top referring hosts, e.g. "www.google.com"; sorted by (descending) click counts. Only present if this data is available.
            {
              "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
              "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
            },
          ],
          "longUrlClicks": "A String", # Number of clicks on all goo.gl short URLs pointing to this long URL.
        },
      },
      "longUrl": "A String", # Long URL, e.g. "http://www.google.com/". Might not be present if the status is "REMOVED".
      "id": "A String", # Short URL, e.g. "http://goo.gl/l6MS".
    }
list(start_token=None, projection=None)
Retrieves a list of URLs shortened by a user.

Args:
  start_token: string, Token for requesting successive pages of results.
  projection: string, Additional information to return.
    Allowed values
      ANALYTICS_CLICKS - Returns short URL click counts.
      FULL - Returns short URL click counts.

Returns:
  An object of the form:

    {
    "nextPageToken": "A String", # A token to provide to get the next page of results.
    "items": [ # A list of URL resources.
      {
          "status": "A String", # Status of the target URL. Possible values: "OK", "MALWARE", "PHISHING", or "REMOVED". A URL might be marked "REMOVED" if it was flagged as spam, for example.
          "kind": "urlshortener#url", # The fixed string "urlshortener#url".
          "created": "A String", # Time the short URL was created; ISO 8601 representation using the yyyy-MM-dd'T'HH:mm:ss.SSSZZ format, e.g. "2010-10-14T19:01:24.944+00:00".
          "analytics": { # A summary of the click analytics for the short and long URL. Might not be present if not requested or currently unavailable.
            "week": { # Click analytics over the last week.
              "shortUrlClicks": "A String", # Number of clicks on this short URL.
              "countries": [ # Top countries (expressed as country codes), e.g. "US" or "DE"; sorted by (descending) click counts. Only present if this data is available.
                {
                  "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
                  "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
                },
              ],
              "platforms": [ # Top platforms or OSes, e.g. "Windows"; sorted by (descending) click counts. Only present if this data is available.
                {
                  "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
                  "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
                },
              ],
              "browsers": [ # Top browsers, e.g. "Chrome"; sorted by (descending) click counts. Only present if this data is available.
                {
                  "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
                  "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
                },
              ],
              "referrers": [ # Top referring hosts, e.g. "www.google.com"; sorted by (descending) click counts. Only present if this data is available.
                {
                  "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
                  "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
                },
              ],
              "longUrlClicks": "A String", # Number of clicks on all goo.gl short URLs pointing to this long URL.
            },
            "allTime": { # Click analytics over all time.
              "shortUrlClicks": "A String", # Number of clicks on this short URL.
              "countries": [ # Top countries (expressed as country codes), e.g. "US" or "DE"; sorted by (descending) click counts. Only present if this data is available.
                {
                  "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
                  "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
                },
              ],
              "platforms": [ # Top platforms or OSes, e.g. "Windows"; sorted by (descending) click counts. Only present if this data is available.
                {
                  "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
                  "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
                },
              ],
              "browsers": [ # Top browsers, e.g. "Chrome"; sorted by (descending) click counts. Only present if this data is available.
                {
                  "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
                  "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
                },
              ],
              "referrers": [ # Top referring hosts, e.g. "www.google.com"; sorted by (descending) click counts. Only present if this data is available.
                {
                  "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
                  "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
                },
              ],
              "longUrlClicks": "A String", # Number of clicks on all goo.gl short URLs pointing to this long URL.
            },
            "twoHours": { # Click analytics over the last two hours.
              "shortUrlClicks": "A String", # Number of clicks on this short URL.
              "countries": [ # Top countries (expressed as country codes), e.g. "US" or "DE"; sorted by (descending) click counts. Only present if this data is available.
                {
                  "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
                  "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
                },
              ],
              "platforms": [ # Top platforms or OSes, e.g. "Windows"; sorted by (descending) click counts. Only present if this data is available.
                {
                  "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
                  "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
                },
              ],
              "browsers": [ # Top browsers, e.g. "Chrome"; sorted by (descending) click counts. Only present if this data is available.
                {
                  "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
                  "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
                },
              ],
              "referrers": [ # Top referring hosts, e.g. "www.google.com"; sorted by (descending) click counts. Only present if this data is available.
                {
                  "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
                  "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
                },
              ],
              "longUrlClicks": "A String", # Number of clicks on all goo.gl short URLs pointing to this long URL.
            },
            "day": { # Click analytics over the last day.
              "shortUrlClicks": "A String", # Number of clicks on this short URL.
              "countries": [ # Top countries (expressed as country codes), e.g. "US" or "DE"; sorted by (descending) click counts. Only present if this data is available.
                {
                  "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
                  "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
                },
              ],
              "platforms": [ # Top platforms or OSes, e.g. "Windows"; sorted by (descending) click counts. Only present if this data is available.
                {
                  "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
                  "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
                },
              ],
              "browsers": [ # Top browsers, e.g. "Chrome"; sorted by (descending) click counts. Only present if this data is available.
                {
                  "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
                  "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
                },
              ],
              "referrers": [ # Top referring hosts, e.g. "www.google.com"; sorted by (descending) click counts. Only present if this data is available.
                {
                  "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
                  "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
                },
              ],
              "longUrlClicks": "A String", # Number of clicks on all goo.gl short URLs pointing to this long URL.
            },
            "month": { # Click analytics over the last month.
              "shortUrlClicks": "A String", # Number of clicks on this short URL.
              "countries": [ # Top countries (expressed as country codes), e.g. "US" or "DE"; sorted by (descending) click counts. Only present if this data is available.
                {
                  "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
                  "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
                },
              ],
              "platforms": [ # Top platforms or OSes, e.g. "Windows"; sorted by (descending) click counts. Only present if this data is available.
                {
                  "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
                  "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
                },
              ],
              "browsers": [ # Top browsers, e.g. "Chrome"; sorted by (descending) click counts. Only present if this data is available.
                {
                  "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
                  "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
                },
              ],
              "referrers": [ # Top referring hosts, e.g. "www.google.com"; sorted by (descending) click counts. Only present if this data is available.
                {
                  "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
                  "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
                },
              ],
              "longUrlClicks": "A String", # Number of clicks on all goo.gl short URLs pointing to this long URL.
            },
          },
          "longUrl": "A String", # Long URL, e.g. "http://www.google.com/". Might not be present if the status is "REMOVED".
          "id": "A String", # Short URL, e.g. "http://goo.gl/l6MS".
        },
    ],
    "kind": "urlshortener#urlHistory", # The fixed string "urlshortener#urlHistory".
    "itemsPerPage": 42, # Number of items returned with each full "page" of results. Note that the last page could have fewer items than the "itemsPerPage" value.
    "totalItems": 42, # Total number of short URLs associated with this user (may be approximate).
  }