Required. The grouping rules of channels. Maximum number of rules is 50.
↳ system_defined
bool
Output only. If true, then this channel group is the Default Channel Group predefined by Google Analytics. Display name and grouping rules cannot be updated for this channel group.
↳ primary
bool
Optional. If true, this channel group will be used as the default channel group for reports. Only one channel group can be set as primary at any time. If the primary field gets set on a channel group, it will get unset on the previous primary channel group. The Google Analytics predefined channel group is the primary by default.
getName
Output only. The resource name for this Channel Group resource.
Output only. If true, then this channel group is the Default Channel Group
predefined by Google Analytics. Display name and grouping rules cannot be
updated for this channel group.
Returns
Type
Description
bool
setSystemDefined
Output only. If true, then this channel group is the Default Channel Group
predefined by Google Analytics. Display name and grouping rules cannot be
updated for this channel group.
Parameter
Name
Description
var
bool
Returns
Type
Description
$this
getPrimary
Optional. If true, this channel group will be used as the default channel
group for reports. Only one channel group can be set as primary at any
time. If the primary field gets set on a channel group, it will get unset
on the previous primary channel group.
The Google Analytics predefined channel group is the primary by default.
Returns
Type
Description
bool
setPrimary
Optional. If true, this channel group will be used as the default channel
group for reports. Only one channel group can be set as primary at any
time. If the primary field gets set on a channel group, it will get unset
on the previous primary channel group.
The Google Analytics predefined channel group is the primary by default.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Analytics Admin V1alpha Client - Class ChannelGroup (0.29.1)\n\nVersion latestkeyboard_arrow_down\n\n- [0.29.1 (latest)](/php/docs/reference/analytics-admin/latest/V1alpha.ChannelGroup)\n- [0.29.0](/php/docs/reference/analytics-admin/0.29.0/V1alpha.ChannelGroup)\n- [0.28.1](/php/docs/reference/analytics-admin/0.28.1/V1alpha.ChannelGroup)\n- [0.27.0](/php/docs/reference/analytics-admin/0.27.0/V1alpha.ChannelGroup)\n- [0.26.0](/php/docs/reference/analytics-admin/0.26.0/V1alpha.ChannelGroup)\n- [0.25.2](/php/docs/reference/analytics-admin/0.25.2/V1alpha.ChannelGroup)\n- [0.24.2](/php/docs/reference/analytics-admin/0.24.2/V1alpha.ChannelGroup)\n- [0.23.0](/php/docs/reference/analytics-admin/0.23.0/V1alpha.ChannelGroup)\n- [0.22.5](/php/docs/reference/analytics-admin/0.22.5/V1alpha.ChannelGroup)\n- [0.20.0](/php/docs/reference/analytics-admin/0.20.0/V1alpha.ChannelGroup)\n- [0.19.0](/php/docs/reference/analytics-admin/0.19.0/V1alpha.ChannelGroup)\n- [0.18.1](/php/docs/reference/analytics-admin/0.18.1/V1alpha.ChannelGroup)\n- [0.17.0](/php/docs/reference/analytics-admin/0.17.0/V1alpha.ChannelGroup)\n- [0.16.0](/php/docs/reference/analytics-admin/0.16.0/V1alpha.ChannelGroup)\n- [0.15.1](/php/docs/reference/analytics-admin/0.15.1/V1alpha.ChannelGroup)\n- [0.14.0](/php/docs/reference/analytics-admin/0.14.0/V1alpha.ChannelGroup)\n- [0.13.0](/php/docs/reference/analytics-admin/0.13.0/V1alpha.ChannelGroup)\n- [0.12.0](/php/docs/reference/analytics-admin/0.12.0/V1alpha.ChannelGroup)\n- [0.11.1](/php/docs/reference/analytics-admin/0.11.1/V1alpha.ChannelGroup)\n- [0.10.0](/php/docs/reference/analytics-admin/0.10.0/V1alpha.ChannelGroup)\n- [0.9.0](/php/docs/reference/analytics-admin/0.9.0/V1alpha.ChannelGroup)\n- [0.8.2](/php/docs/reference/analytics-admin/0.8.2/V1alpha.ChannelGroup) \n| **Beta**\n|\n|\n| This library is covered by the [Pre-GA Offerings Terms](/terms/service-terms#1)\n| of the Terms of Service. Pre-GA libraries might have limited support,\n| and changes to pre-GA libraries might not be compatible with other pre-GA versions.\n| For more information, see the\n[launch stage descriptions](/products#product-launch-stages). \nReference documentation and code samples for the Google Analytics Admin V1alpha Client class ChannelGroup.\n\nA resource message representing a Channel Group.\n\nGenerated from protobuf message `google.analytics.admin.v1alpha.ChannelGroup`\n\nNamespace\n---------\n\nGoogle \\\\ Analytics \\\\ Admin \\\\ V1alpha\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nOutput only. The resource name for this Channel Group resource.\n\nFormat: properties/{property}/channelGroups/{channel_group}\n\n### setName\n\nOutput only. The resource name for this Channel Group resource.\n\nFormat: properties/{property}/channelGroups/{channel_group}\n\n### getDisplayName\n\nRequired. The display name of the Channel Group. Max length of 80\ncharacters.\n\n### setDisplayName\n\nRequired. The display name of the Channel Group. Max length of 80\ncharacters.\n\n### getDescription\n\nThe description of the Channel Group. Max length of 256 characters.\n\n### setDescription\n\nThe description of the Channel Group. Max length of 256 characters.\n\n### getGroupingRule\n\nRequired. The grouping rules of channels. Maximum number of rules is 50.\n\n### setGroupingRule\n\nRequired. The grouping rules of channels. Maximum number of rules is 50.\n\n### getSystemDefined\n\nOutput only. If true, then this channel group is the Default Channel Group\npredefined by Google Analytics. Display name and grouping rules cannot be\nupdated for this channel group.\n\n### setSystemDefined\n\nOutput only. If true, then this channel group is the Default Channel Group\npredefined by Google Analytics. Display name and grouping rules cannot be\nupdated for this channel group.\n\n### getPrimary\n\nOptional. If true, this channel group will be used as the default channel\ngroup for reports. Only one channel group can be set as `primary` at any\ntime. If the `primary` field gets set on a channel group, it will get unset\non the previous primary channel group.\n\nThe Google Analytics predefined channel group is the primary by default.\n\n### setPrimary\n\nOptional. If true, this channel group will be used as the default channel\ngroup for reports. Only one channel group can be set as `primary` at any\ntime. If the `primary` field gets set on a channel group, it will get unset\non the previous primary channel group.\n\nThe Google Analytics predefined channel group is the primary by default."]]