blob: 510c31afd3deb2bbe5daa19f5bfa4876fc9ed75b [file] [log] [blame]
Craig Citroe633be12015-03-02 13:40:36 -08001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="analytics_v3.html">Google Analytics API</a> . <a href="analytics_v3.management.html">management</a> . <a href="analytics_v3.management.customDimensions.html">customDimensions</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070078 <code><a href="#close">close()</a></code></p>
79<p class="firstline">Close httplib2 connections.</p>
80<p class="toc_element">
Craig Citroe633be12015-03-02 13:40:36 -080081 <code><a href="#get">get(accountId, webPropertyId, customDimensionId)</a></code></p>
82<p class="firstline">Get a custom dimension to which the user has access.</p>
83<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070084 <code><a href="#insert">insert(accountId, webPropertyId, body=None)</a></code></p>
Craig Citroe633be12015-03-02 13:40:36 -080085<p class="firstline">Create a new custom dimension.</p>
86<p class="toc_element">
Yoshi Automation Botb6971b02020-11-26 17:16:03 -080087 <code><a href="#list">list(accountId, webPropertyId, max_results=None, start_index=None)</a></code></p>
Craig Citroe633be12015-03-02 13:40:36 -080088<p class="firstline">Lists custom dimensions to which the user has access.</p>
89<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070090 <code><a href="#patch">patch(accountId, webPropertyId, customDimensionId, body=None, ignoreCustomDataSourceLinks=None)</a></code></p>
Craig Citroe633be12015-03-02 13:40:36 -080091<p class="firstline">Updates an existing custom dimension. This method supports patch semantics.</p>
92<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070093 <code><a href="#update">update(accountId, webPropertyId, customDimensionId, body=None, ignoreCustomDataSourceLinks=None)</a></code></p>
Craig Citroe633be12015-03-02 13:40:36 -080094<p class="firstline">Updates an existing custom dimension.</p>
95<h3>Method Details</h3>
96<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070097 <code class="details" id="close">close()</code>
98 <pre>Close httplib2 connections.</pre>
99</div>
100
101<div class="method">
Craig Citroe633be12015-03-02 13:40:36 -0800102 <code class="details" id="get">get(accountId, webPropertyId, customDimensionId)</code>
103 <pre>Get a custom dimension to which the user has access.
104
105Args:
106 accountId: string, Account ID for the custom dimension to retrieve. (required)
107 webPropertyId: string, Web property ID for the custom dimension to retrieve. (required)
108 customDimensionId: string, The ID of the custom dimension to retrieve. (required)
109
110Returns:
111 An object of the form:
112
113 { # JSON template for Analytics Custom Dimension.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800114 &quot;scope&quot;: &quot;A String&quot;, # Scope of the custom dimension: HIT, SESSION, USER or PRODUCT.
115 &quot;parentLink&quot;: { # Parent link for the custom dimension. Points to the property to which the custom dimension belongs.
116 &quot;href&quot;: &quot;A String&quot;, # Link to the property to which the custom dimension belongs.
117 &quot;type&quot;: &quot;analytics#webproperty&quot;, # Type of the parent link. Set to &quot;analytics#webproperty&quot;.
118 },
119 &quot;name&quot;: &quot;A String&quot;, # Name of the custom dimension.
120 &quot;webPropertyId&quot;: &quot;A String&quot;, # Property ID.
121 &quot;id&quot;: &quot;A String&quot;, # Custom dimension ID.
122 &quot;accountId&quot;: &quot;A String&quot;, # Account ID.
123 &quot;active&quot;: True or False, # Boolean indicating whether the custom dimension is active.
124 &quot;selfLink&quot;: &quot;A String&quot;, # Link for the custom dimension
125 &quot;index&quot;: 42, # Index of the custom dimension.
126 &quot;created&quot;: &quot;A String&quot;, # Time the custom dimension was created.
127 &quot;updated&quot;: &quot;A String&quot;, # Time the custom dimension was last modified.
128 &quot;kind&quot;: &quot;analytics#customDimension&quot;, # Kind value for a custom dimension. Set to &quot;analytics#customDimension&quot;. It is a read-only field.
129 }</pre>
Craig Citroe633be12015-03-02 13:40:36 -0800130</div>
131
132<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700133 <code class="details" id="insert">insert(accountId, webPropertyId, body=None)</code>
Craig Citroe633be12015-03-02 13:40:36 -0800134 <pre>Create a new custom dimension.
135
136Args:
137 accountId: string, Account ID for the custom dimension to create. (required)
138 webPropertyId: string, Web property ID for the custom dimension to create. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700139 body: object, The request body.
Craig Citroe633be12015-03-02 13:40:36 -0800140 The object takes the form of:
141
142{ # JSON template for Analytics Custom Dimension.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800143 &quot;scope&quot;: &quot;A String&quot;, # Scope of the custom dimension: HIT, SESSION, USER or PRODUCT.
144 &quot;parentLink&quot;: { # Parent link for the custom dimension. Points to the property to which the custom dimension belongs.
145 &quot;href&quot;: &quot;A String&quot;, # Link to the property to which the custom dimension belongs.
146 &quot;type&quot;: &quot;analytics#webproperty&quot;, # Type of the parent link. Set to &quot;analytics#webproperty&quot;.
147 },
148 &quot;name&quot;: &quot;A String&quot;, # Name of the custom dimension.
149 &quot;webPropertyId&quot;: &quot;A String&quot;, # Property ID.
150 &quot;id&quot;: &quot;A String&quot;, # Custom dimension ID.
151 &quot;accountId&quot;: &quot;A String&quot;, # Account ID.
152 &quot;active&quot;: True or False, # Boolean indicating whether the custom dimension is active.
153 &quot;selfLink&quot;: &quot;A String&quot;, # Link for the custom dimension
154 &quot;index&quot;: 42, # Index of the custom dimension.
155 &quot;created&quot;: &quot;A String&quot;, # Time the custom dimension was created.
156 &quot;updated&quot;: &quot;A String&quot;, # Time the custom dimension was last modified.
157 &quot;kind&quot;: &quot;analytics#customDimension&quot;, # Kind value for a custom dimension. Set to &quot;analytics#customDimension&quot;. It is a read-only field.
158}
Craig Citroe633be12015-03-02 13:40:36 -0800159
160
161Returns:
162 An object of the form:
163
164 { # JSON template for Analytics Custom Dimension.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800165 &quot;scope&quot;: &quot;A String&quot;, # Scope of the custom dimension: HIT, SESSION, USER or PRODUCT.
166 &quot;parentLink&quot;: { # Parent link for the custom dimension. Points to the property to which the custom dimension belongs.
167 &quot;href&quot;: &quot;A String&quot;, # Link to the property to which the custom dimension belongs.
168 &quot;type&quot;: &quot;analytics#webproperty&quot;, # Type of the parent link. Set to &quot;analytics#webproperty&quot;.
169 },
170 &quot;name&quot;: &quot;A String&quot;, # Name of the custom dimension.
171 &quot;webPropertyId&quot;: &quot;A String&quot;, # Property ID.
172 &quot;id&quot;: &quot;A String&quot;, # Custom dimension ID.
173 &quot;accountId&quot;: &quot;A String&quot;, # Account ID.
174 &quot;active&quot;: True or False, # Boolean indicating whether the custom dimension is active.
175 &quot;selfLink&quot;: &quot;A String&quot;, # Link for the custom dimension
176 &quot;index&quot;: 42, # Index of the custom dimension.
177 &quot;created&quot;: &quot;A String&quot;, # Time the custom dimension was created.
178 &quot;updated&quot;: &quot;A String&quot;, # Time the custom dimension was last modified.
179 &quot;kind&quot;: &quot;analytics#customDimension&quot;, # Kind value for a custom dimension. Set to &quot;analytics#customDimension&quot;. It is a read-only field.
180 }</pre>
Craig Citroe633be12015-03-02 13:40:36 -0800181</div>
182
183<div class="method">
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800184 <code class="details" id="list">list(accountId, webPropertyId, max_results=None, start_index=None)</code>
Craig Citroe633be12015-03-02 13:40:36 -0800185 <pre>Lists custom dimensions to which the user has access.
186
187Args:
188 accountId: string, Account ID for the custom dimensions to retrieve. (required)
189 webPropertyId: string, Web property ID for the custom dimensions to retrieve. (required)
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700190 max_results: integer, The maximum number of custom dimensions to include in this response.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800191 start_index: integer, An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
Craig Citroe633be12015-03-02 13:40:36 -0800192
193Returns:
194 An object of the form:
195
196 { # A custom dimension collection lists Analytics custom dimensions to which the user has access. Each resource in the collection corresponds to a single Analytics custom dimension.
Bu Sun Kim65020912020-05-20 12:08:20 -0700197 &quot;items&quot;: [ # Collection of custom dimensions.
Craig Citroe633be12015-03-02 13:40:36 -0800198 { # JSON template for Analytics Custom Dimension.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800199 &quot;scope&quot;: &quot;A String&quot;, # Scope of the custom dimension: HIT, SESSION, USER or PRODUCT.
200 &quot;parentLink&quot;: { # Parent link for the custom dimension. Points to the property to which the custom dimension belongs.
201 &quot;href&quot;: &quot;A String&quot;, # Link to the property to which the custom dimension belongs.
202 &quot;type&quot;: &quot;analytics#webproperty&quot;, # Type of the parent link. Set to &quot;analytics#webproperty&quot;.
Craig Citroe633be12015-03-02 13:40:36 -0800203 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800204 &quot;name&quot;: &quot;A String&quot;, # Name of the custom dimension.
205 &quot;webPropertyId&quot;: &quot;A String&quot;, # Property ID.
206 &quot;id&quot;: &quot;A String&quot;, # Custom dimension ID.
207 &quot;accountId&quot;: &quot;A String&quot;, # Account ID.
208 &quot;active&quot;: True or False, # Boolean indicating whether the custom dimension is active.
209 &quot;selfLink&quot;: &quot;A String&quot;, # Link for the custom dimension
210 &quot;index&quot;: 42, # Index of the custom dimension.
211 &quot;created&quot;: &quot;A String&quot;, # Time the custom dimension was created.
212 &quot;updated&quot;: &quot;A String&quot;, # Time the custom dimension was last modified.
213 &quot;kind&quot;: &quot;analytics#customDimension&quot;, # Kind value for a custom dimension. Set to &quot;analytics#customDimension&quot;. It is a read-only field.
214 },
Craig Citroe633be12015-03-02 13:40:36 -0800215 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800216 &quot;totalResults&quot;: 42, # The total number of results for the query, regardless of the number of results in the response.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800217 &quot;startIndex&quot;: 42, # The starting index of the resources, which is 1 by default or otherwise specified by the start-index query parameter.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800218 &quot;previousLink&quot;: &quot;A String&quot;, # Link to previous page for this custom dimension collection.
219 &quot;itemsPerPage&quot;: 42, # The maximum number of resources the response can contain, regardless of the actual number of resources returned. Its value ranges from 1 to 1000 with a value of 1000 by default, or otherwise specified by the max-results query parameter.
220 &quot;username&quot;: &quot;A String&quot;, # Email ID of the authenticated user
221 &quot;nextLink&quot;: &quot;A String&quot;, # Link to next page for this custom dimension collection.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800222 &quot;kind&quot;: &quot;analytics#customDimensions&quot;, # Collection type.
Craig Citroe633be12015-03-02 13:40:36 -0800223 }</pre>
224</div>
225
226<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700227 <code class="details" id="patch">patch(accountId, webPropertyId, customDimensionId, body=None, ignoreCustomDataSourceLinks=None)</code>
Craig Citroe633be12015-03-02 13:40:36 -0800228 <pre>Updates an existing custom dimension. This method supports patch semantics.
229
230Args:
231 accountId: string, Account ID for the custom dimension to update. (required)
232 webPropertyId: string, Web property ID for the custom dimension to update. (required)
233 customDimensionId: string, Custom dimension ID for the custom dimension to update. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700234 body: object, The request body.
Craig Citroe633be12015-03-02 13:40:36 -0800235 The object takes the form of:
236
237{ # JSON template for Analytics Custom Dimension.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800238 &quot;scope&quot;: &quot;A String&quot;, # Scope of the custom dimension: HIT, SESSION, USER or PRODUCT.
239 &quot;parentLink&quot;: { # Parent link for the custom dimension. Points to the property to which the custom dimension belongs.
240 &quot;href&quot;: &quot;A String&quot;, # Link to the property to which the custom dimension belongs.
241 &quot;type&quot;: &quot;analytics#webproperty&quot;, # Type of the parent link. Set to &quot;analytics#webproperty&quot;.
242 },
243 &quot;name&quot;: &quot;A String&quot;, # Name of the custom dimension.
244 &quot;webPropertyId&quot;: &quot;A String&quot;, # Property ID.
245 &quot;id&quot;: &quot;A String&quot;, # Custom dimension ID.
246 &quot;accountId&quot;: &quot;A String&quot;, # Account ID.
247 &quot;active&quot;: True or False, # Boolean indicating whether the custom dimension is active.
248 &quot;selfLink&quot;: &quot;A String&quot;, # Link for the custom dimension
249 &quot;index&quot;: 42, # Index of the custom dimension.
250 &quot;created&quot;: &quot;A String&quot;, # Time the custom dimension was created.
251 &quot;updated&quot;: &quot;A String&quot;, # Time the custom dimension was last modified.
252 &quot;kind&quot;: &quot;analytics#customDimension&quot;, # Kind value for a custom dimension. Set to &quot;analytics#customDimension&quot;. It is a read-only field.
253}
Craig Citroe633be12015-03-02 13:40:36 -0800254
255 ignoreCustomDataSourceLinks: boolean, Force the update and ignore any warnings related to the custom dimension being linked to a custom data source / data set.
256
257Returns:
258 An object of the form:
259
260 { # JSON template for Analytics Custom Dimension.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800261 &quot;scope&quot;: &quot;A String&quot;, # Scope of the custom dimension: HIT, SESSION, USER or PRODUCT.
262 &quot;parentLink&quot;: { # Parent link for the custom dimension. Points to the property to which the custom dimension belongs.
263 &quot;href&quot;: &quot;A String&quot;, # Link to the property to which the custom dimension belongs.
264 &quot;type&quot;: &quot;analytics#webproperty&quot;, # Type of the parent link. Set to &quot;analytics#webproperty&quot;.
265 },
266 &quot;name&quot;: &quot;A String&quot;, # Name of the custom dimension.
267 &quot;webPropertyId&quot;: &quot;A String&quot;, # Property ID.
268 &quot;id&quot;: &quot;A String&quot;, # Custom dimension ID.
269 &quot;accountId&quot;: &quot;A String&quot;, # Account ID.
270 &quot;active&quot;: True or False, # Boolean indicating whether the custom dimension is active.
271 &quot;selfLink&quot;: &quot;A String&quot;, # Link for the custom dimension
272 &quot;index&quot;: 42, # Index of the custom dimension.
273 &quot;created&quot;: &quot;A String&quot;, # Time the custom dimension was created.
274 &quot;updated&quot;: &quot;A String&quot;, # Time the custom dimension was last modified.
275 &quot;kind&quot;: &quot;analytics#customDimension&quot;, # Kind value for a custom dimension. Set to &quot;analytics#customDimension&quot;. It is a read-only field.
276 }</pre>
Craig Citroe633be12015-03-02 13:40:36 -0800277</div>
278
279<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700280 <code class="details" id="update">update(accountId, webPropertyId, customDimensionId, body=None, ignoreCustomDataSourceLinks=None)</code>
Craig Citroe633be12015-03-02 13:40:36 -0800281 <pre>Updates an existing custom dimension.
282
283Args:
284 accountId: string, Account ID for the custom dimension to update. (required)
285 webPropertyId: string, Web property ID for the custom dimension to update. (required)
286 customDimensionId: string, Custom dimension ID for the custom dimension to update. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700287 body: object, The request body.
Craig Citroe633be12015-03-02 13:40:36 -0800288 The object takes the form of:
289
290{ # JSON template for Analytics Custom Dimension.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800291 &quot;scope&quot;: &quot;A String&quot;, # Scope of the custom dimension: HIT, SESSION, USER or PRODUCT.
292 &quot;parentLink&quot;: { # Parent link for the custom dimension. Points to the property to which the custom dimension belongs.
293 &quot;href&quot;: &quot;A String&quot;, # Link to the property to which the custom dimension belongs.
294 &quot;type&quot;: &quot;analytics#webproperty&quot;, # Type of the parent link. Set to &quot;analytics#webproperty&quot;.
295 },
296 &quot;name&quot;: &quot;A String&quot;, # Name of the custom dimension.
297 &quot;webPropertyId&quot;: &quot;A String&quot;, # Property ID.
298 &quot;id&quot;: &quot;A String&quot;, # Custom dimension ID.
299 &quot;accountId&quot;: &quot;A String&quot;, # Account ID.
300 &quot;active&quot;: True or False, # Boolean indicating whether the custom dimension is active.
301 &quot;selfLink&quot;: &quot;A String&quot;, # Link for the custom dimension
302 &quot;index&quot;: 42, # Index of the custom dimension.
303 &quot;created&quot;: &quot;A String&quot;, # Time the custom dimension was created.
304 &quot;updated&quot;: &quot;A String&quot;, # Time the custom dimension was last modified.
305 &quot;kind&quot;: &quot;analytics#customDimension&quot;, # Kind value for a custom dimension. Set to &quot;analytics#customDimension&quot;. It is a read-only field.
306}
Craig Citroe633be12015-03-02 13:40:36 -0800307
308 ignoreCustomDataSourceLinks: boolean, Force the update and ignore any warnings related to the custom dimension being linked to a custom data source / data set.
309
310Returns:
311 An object of the form:
312
313 { # JSON template for Analytics Custom Dimension.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800314 &quot;scope&quot;: &quot;A String&quot;, # Scope of the custom dimension: HIT, SESSION, USER or PRODUCT.
315 &quot;parentLink&quot;: { # Parent link for the custom dimension. Points to the property to which the custom dimension belongs.
316 &quot;href&quot;: &quot;A String&quot;, # Link to the property to which the custom dimension belongs.
317 &quot;type&quot;: &quot;analytics#webproperty&quot;, # Type of the parent link. Set to &quot;analytics#webproperty&quot;.
318 },
319 &quot;name&quot;: &quot;A String&quot;, # Name of the custom dimension.
320 &quot;webPropertyId&quot;: &quot;A String&quot;, # Property ID.
321 &quot;id&quot;: &quot;A String&quot;, # Custom dimension ID.
322 &quot;accountId&quot;: &quot;A String&quot;, # Account ID.
323 &quot;active&quot;: True or False, # Boolean indicating whether the custom dimension is active.
324 &quot;selfLink&quot;: &quot;A String&quot;, # Link for the custom dimension
325 &quot;index&quot;: 42, # Index of the custom dimension.
326 &quot;created&quot;: &quot;A String&quot;, # Time the custom dimension was created.
327 &quot;updated&quot;: &quot;A String&quot;, # Time the custom dimension was last modified.
328 &quot;kind&quot;: &quot;analytics#customDimension&quot;, # Kind value for a custom dimension. Set to &quot;analytics#customDimension&quot;. It is a read-only field.
329 }</pre>
Craig Citroe633be12015-03-02 13:40:36 -0800330</div>
331
332</body></html>