--- title: "Yt::Group" h2: "Groups" ---
Yt::Group
represents a YouTube Analytics group.
Initialize using its YouTube ID:
{% include doc.html instance="Group#initialize" %}{% include example.html object='group = Yt::Group' method='new' params=' id: "ABVSo3DwAAA"' %}
{% include example.html result='#<Yt::Group @id=ABVSo3DwAAA>' %}
{% include doc.html instance="Group#canonical_url" %}{% include example.html object='group' method='title' %}
{% include example.html result='"Video group"' %}
All methods of Yt::Group
act on behalf of YouTube accounts (e.g.: to fetch a group).
To use these methods (marked with below), you need to get an API Client ID/Secret from Google, then obtain a refresh token from the account you want to act as, and finally configure the values:
Yt::Group
data methods
{% include doc.html instance="Group#id" %}{% include example.html object='group' method='id' result='"ABVSo3DwAAA"' %}
{% include doc.html instance="Group#title" %}{% include example.html object='group' method='title' result='"Video Group"' %}
{% include doc.html instance="Group#published_at" %}{% include example.html object='group' method='published_at' result='2014-05-02 20:12:57 UTC' %}
{% include doc.html instance="Group#item_count" %}{% include example.html object='group' method='item_count' result='4' %}
{% include doc.html instance="Group#item_type" %}{% include example.html object='group' method='item_type' result='"youtube#video"' %}