Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 36cc2c9

Browse files
committedDec 7, 2023
feat(analyticsdata): update the api
#### analyticsdata:v1beta The following keys were added: - resources.properties.resources.audienceExports.methods.create (Total Keys: 12) - resources.properties.resources.audienceExports.methods.get (Total Keys: 11) - resources.properties.resources.audienceExports.methods.list (Total Keys: 16) - resources.properties.resources.audienceExports.methods.query (Total Keys: 12) - schemas.AudienceExport (Total Keys: 25) - schemas.ListAudienceExportsResponse (Total Keys: 5) - schemas.Operation (Total Keys: 9) - schemas.QueryAudienceExportRequest (Total Keys: 6) - schemas.QueryAudienceExportResponse (Total Keys: 7) - schemas.Status (Total Keys: 8) - schemas.V1betaAudienceDimension (Total Keys: 6) - schemas.V1betaAudienceRow (Total Keys: 4)
1 parent cbad822 commit 36cc2c9

File tree

3 files changed

+656
-1
lines changed

3 files changed

+656
-1
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,293 @@
1+
<html><body>
2+
<style>
3+
4+
body, 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+
15+
body {
16+
font-size: 13px;
17+
padding: 1em;
18+
}
19+
20+
h1 {
21+
font-size: 26px;
22+
margin-bottom: 1em;
23+
}
24+
25+
h2 {
26+
font-size: 24px;
27+
margin-bottom: 1em;
28+
}
29+
30+
h3 {
31+
font-size: 20px;
32+
margin-bottom: 1em;
33+
margin-top: 1em;
34+
}
35+
36+
pre, code {
37+
line-height: 1.5;
38+
font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39+
}
40+
41+
pre {
42+
margin-top: 0.5em;
43+
}
44+
45+
h1, h2, h3, p {
46+
font-family: Arial, sans serif;
47+
}
48+
49+
h1, 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="analyticsdata_v1beta.html">Google Analytics Data API</a> . <a href="analyticsdata_v1beta.properties.html">properties</a> . <a href="analyticsdata_v1beta.properties.audienceExports.html">audienceExports</a></h1>
76+
<h2>Instance Methods</h2>
77+
<p class="toc_element">
78+
<code><a href="#close">close()</a></code></p>
79+
<p class="firstline">Close httplib2 connections.</p>
80+
<p class="toc_element">
81+
<code><a href="#create">create(parent, body=None, x__xgafv=None)</a></code></p>
82+
<p class="firstline">Creates an audience export for later retrieval. This method quickly returns the audience export's resource name and initiates a long running asynchronous request to form an audience export. To export the users in an audience export, first create the audience export through this method and then send the audience resource name to the `QueryAudienceExport` method. See [Creating an Audience Export](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) for an introduction to Audience Exports with examples. An audience export is a snapshot of the users currently in the audience at the time of audience export creation. Creating audience exports for one audience on different days will return different results as users enter and exit the audience. Audiences in Google Analytics 4 allow you to segment your users in the ways that are important to your business. To learn more, see https://support.google.com/analytics/answer/9267572. Audience exports contain the users in each audience. Audience Export APIs have some methods at alpha and other methods at beta stability. The intention is to advance methods to beta stability after some feedback and adoption. To give your feedback on this API, complete the [Google Analytics Audience Export API Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form.</p>
83+
<p class="toc_element">
84+
<code><a href="#get">get(name, x__xgafv=None)</a></code></p>
85+
<p class="firstline">Gets configuration metadata about a specific audience export. This method can be used to understand an audience export after it has been created. See [Creating an Audience Export](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) for an introduction to Audience Exports with examples. Audience Export APIs have some methods at alpha and other methods at beta stability. The intention is to advance methods to beta stability after some feedback and adoption. To give your feedback on this API, complete the [Google Analytics Audience Export API Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form.</p>
86+
<p class="toc_element">
87+
<code><a href="#list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
88+
<p class="firstline">Lists all audience exports for a property. This method can be used for you to find and reuse existing audience exports rather than creating unnecessary new audience exports. The same audience can have multiple audience exports that represent the export of users that were in an audience on different days. See [Creating an Audience Export](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) for an introduction to Audience Exports with examples. Audience Export APIs have some methods at alpha and other methods at beta stability. The intention is to advance methods to beta stability after some feedback and adoption. To give your feedback on this API, complete the [Google Analytics Audience Export API Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form.</p>
89+
<p class="toc_element">
90+
<code><a href="#list_next">list_next()</a></code></p>
91+
<p class="firstline">Retrieves the next page of results.</p>
92+
<p class="toc_element">
93+
<code><a href="#query">query(name, body=None, x__xgafv=None)</a></code></p>
94+
<p class="firstline">Retrieves an audience export of users. After creating an audience, the users are not immediately available for exporting. First, a request to `CreateAudienceExport` is necessary to create an audience export of users, and then second, this method is used to retrieve the users in the audience export. See [Creating an Audience Export](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) for an introduction to Audience Exports with examples. Audiences in Google Analytics 4 allow you to segment your users in the ways that are important to your business. To learn more, see https://support.google.com/analytics/answer/9267572. Audience Export APIs have some methods at alpha and other methods at beta stability. The intention is to advance methods to beta stability after some feedback and adoption. To give your feedback on this API, complete the [Google Analytics Audience Export API Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form.</p>
95+
<h3>Method Details</h3>
96+
<div class="method">
97+
<code class="details" id="close">close()</code>
98+
<pre>Close httplib2 connections.</pre>
99+
</div>
100+
101+
<div class="method">
102+
<code class="details" id="create">create(parent, body=None, x__xgafv=None)</code>
103+
<pre>Creates an audience export for later retrieval. This method quickly returns the audience export&#x27;s resource name and initiates a long running asynchronous request to form an audience export. To export the users in an audience export, first create the audience export through this method and then send the audience resource name to the `QueryAudienceExport` method. See [Creating an Audience Export](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) for an introduction to Audience Exports with examples. An audience export is a snapshot of the users currently in the audience at the time of audience export creation. Creating audience exports for one audience on different days will return different results as users enter and exit the audience. Audiences in Google Analytics 4 allow you to segment your users in the ways that are important to your business. To learn more, see https://support.google.com/analytics/answer/9267572. Audience exports contain the users in each audience. Audience Export APIs have some methods at alpha and other methods at beta stability. The intention is to advance methods to beta stability after some feedback and adoption. To give your feedback on this API, complete the [Google Analytics Audience Export API Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form.
104+
105+
Args:
106+
parent: string, Required. The parent resource where this audience export will be created. Format: `properties/{property}` (required)
107+
body: object, The request body.
108+
The object takes the form of:
109+
110+
{ # An audience export is a list of users in an audience at the time of the list&#x27;s creation. One audience may have multiple audience exports created for different days.
111+
&quot;audience&quot;: &quot;A String&quot;, # Required. The audience resource name. This resource name identifies the audience being listed and is shared between the Analytics Data &amp; Admin APIs. Format: `properties/{property}/audiences/{audience}`
112+
&quot;audienceDisplayName&quot;: &quot;A String&quot;, # Output only. The descriptive display name for this audience. For example, &quot;Purchasers&quot;.
113+
&quot;beginCreatingTime&quot;: &quot;A String&quot;, # Output only. The time when CreateAudienceExport was called and the AudienceExport began the `CREATING` state.
114+
&quot;creationQuotaTokensCharged&quot;: 42, # Output only. The total quota tokens charged during creation of the AudienceExport. Because this token count is based on activity from the `CREATING` state, this tokens charged will be fixed once an AudienceExport enters the `ACTIVE` or `FAILED` states.
115+
&quot;dimensions&quot;: [ # Required. The dimensions requested and displayed in the query response.
116+
{ # An audience dimension is a user attribute. Specific user attributed are requested and then later returned in the `QueryAudienceExportResponse`.
117+
&quot;dimensionName&quot;: &quot;A String&quot;, # Optional. The API name of the dimension. See the [API Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-api-schema#dimensions) for the list of dimension names.
118+
},
119+
],
120+
&quot;errorMessage&quot;: &quot;A String&quot;, # Output only. Error message is populated when an audience export fails during creation. A common reason for such a failure is quota exhaustion.
121+
&quot;name&quot;: &quot;A String&quot;, # Output only. Identifier. The audience export resource name assigned during creation. This resource name identifies this `AudienceExport`. Format: `properties/{property}/audienceExports/{audience_export}`
122+
&quot;percentageCompleted&quot;: 3.14, # Output only. The percentage completed for this audience export ranging between 0 to 100.
123+
&quot;rowCount&quot;: 42, # Output only. The total number of rows in the AudienceExport result.
124+
&quot;state&quot;: &quot;A String&quot;, # Output only. The current state for this AudienceExport.
125+
}
126+
127+
x__xgafv: string, V1 error format.
128+
Allowed values
129+
1 - v1 error format
130+
2 - v2 error format
131+
132+
Returns:
133+
An object of the form:
134+
135+
{ # This resource represents a long-running operation that is the result of a network API call.
136+
&quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
137+
&quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
138+
&quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
139+
&quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
140+
{
141+
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
142+
},
143+
],
144+
&quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
145+
},
146+
&quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
147+
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
148+
},
149+
&quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
150+
&quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
151+
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
152+
},
153+
}</pre>
154+
</div>
155+
156+
<div class="method">
157+
<code class="details" id="get">get(name, x__xgafv=None)</code>
158+
<pre>Gets configuration metadata about a specific audience export. This method can be used to understand an audience export after it has been created. See [Creating an Audience Export](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) for an introduction to Audience Exports with examples. Audience Export APIs have some methods at alpha and other methods at beta stability. The intention is to advance methods to beta stability after some feedback and adoption. To give your feedback on this API, complete the [Google Analytics Audience Export API Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form.
159+
160+
Args:
161+
name: string, Required. The audience export resource name. Format: `properties/{property}/audienceExports/{audience_export}` (required)
162+
x__xgafv: string, V1 error format.
163+
Allowed values
164+
1 - v1 error format
165+
2 - v2 error format
166+
167+
Returns:
168+
An object of the form:
169+
170+
{ # An audience export is a list of users in an audience at the time of the list&#x27;s creation. One audience may have multiple audience exports created for different days.
171+
&quot;audience&quot;: &quot;A String&quot;, # Required. The audience resource name. This resource name identifies the audience being listed and is shared between the Analytics Data &amp; Admin APIs. Format: `properties/{property}/audiences/{audience}`
172+
&quot;audienceDisplayName&quot;: &quot;A String&quot;, # Output only. The descriptive display name for this audience. For example, &quot;Purchasers&quot;.
173+
&quot;beginCreatingTime&quot;: &quot;A String&quot;, # Output only. The time when CreateAudienceExport was called and the AudienceExport began the `CREATING` state.
174+
&quot;creationQuotaTokensCharged&quot;: 42, # Output only. The total quota tokens charged during creation of the AudienceExport. Because this token count is based on activity from the `CREATING` state, this tokens charged will be fixed once an AudienceExport enters the `ACTIVE` or `FAILED` states.
175+
&quot;dimensions&quot;: [ # Required. The dimensions requested and displayed in the query response.
176+
{ # An audience dimension is a user attribute. Specific user attributed are requested and then later returned in the `QueryAudienceExportResponse`.
177+
&quot;dimensionName&quot;: &quot;A String&quot;, # Optional. The API name of the dimension. See the [API Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-api-schema#dimensions) for the list of dimension names.
178+
},
179+
],
180+
&quot;errorMessage&quot;: &quot;A String&quot;, # Output only. Error message is populated when an audience export fails during creation. A common reason for such a failure is quota exhaustion.
181+
&quot;name&quot;: &quot;A String&quot;, # Output only. Identifier. The audience export resource name assigned during creation. This resource name identifies this `AudienceExport`. Format: `properties/{property}/audienceExports/{audience_export}`
182+
&quot;percentageCompleted&quot;: 3.14, # Output only. The percentage completed for this audience export ranging between 0 to 100.
183+
&quot;rowCount&quot;: 42, # Output only. The total number of rows in the AudienceExport result.
184+
&quot;state&quot;: &quot;A String&quot;, # Output only. The current state for this AudienceExport.
185+
}</pre>
186+
</div>
187+
188+
<div class="method">
189+
<code class="details" id="list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</code>
190+
<pre>Lists all audience exports for a property. This method can be used for you to find and reuse existing audience exports rather than creating unnecessary new audience exports. The same audience can have multiple audience exports that represent the export of users that were in an audience on different days. See [Creating an Audience Export](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) for an introduction to Audience Exports with examples. Audience Export APIs have some methods at alpha and other methods at beta stability. The intention is to advance methods to beta stability after some feedback and adoption. To give your feedback on this API, complete the [Google Analytics Audience Export API Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form.
191+
192+
Args:
193+
parent: string, Required. All audience exports for this property will be listed in the response. Format: `properties/{property}` (required)
194+
pageSize: integer, Optional. The maximum number of audience exports to return. The service may return fewer than this value. If unspecified, at most 200 audience exports will be returned. The maximum value is 1000 (higher values will be coerced to the maximum).
195+
pageToken: string, Optional. A page token, received from a previous `ListAudienceExports` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListAudienceExports` must match the call that provided the page token.
196+
x__xgafv: string, V1 error format.
197+
Allowed values
198+
1 - v1 error format
199+
2 - v2 error format
200+
201+
Returns:
202+
An object of the form:
203+
204+
{ # A list of all audience exports for a property.
205+
&quot;audienceExports&quot;: [ # Each audience export for a property.
206+
{ # An audience export is a list of users in an audience at the time of the list&#x27;s creation. One audience may have multiple audience exports created for different days.
207+
&quot;audience&quot;: &quot;A String&quot;, # Required. The audience resource name. This resource name identifies the audience being listed and is shared between the Analytics Data &amp; Admin APIs. Format: `properties/{property}/audiences/{audience}`
208+
&quot;audienceDisplayName&quot;: &quot;A String&quot;, # Output only. The descriptive display name for this audience. For example, &quot;Purchasers&quot;.
209+
&quot;beginCreatingTime&quot;: &quot;A String&quot;, # Output only. The time when CreateAudienceExport was called and the AudienceExport began the `CREATING` state.
210+
&quot;creationQuotaTokensCharged&quot;: 42, # Output only. The total quota tokens charged during creation of the AudienceExport. Because this token count is based on activity from the `CREATING` state, this tokens charged will be fixed once an AudienceExport enters the `ACTIVE` or `FAILED` states.
211+
&quot;dimensions&quot;: [ # Required. The dimensions requested and displayed in the query response.
212+
{ # An audience dimension is a user attribute. Specific user attributed are requested and then later returned in the `QueryAudienceExportResponse`.
213+
&quot;dimensionName&quot;: &quot;A String&quot;, # Optional. The API name of the dimension. See the [API Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-api-schema#dimensions) for the list of dimension names.
214+
},
215+
],
216+
&quot;errorMessage&quot;: &quot;A String&quot;, # Output only. Error message is populated when an audience export fails during creation. A common reason for such a failure is quota exhaustion.
217+
&quot;name&quot;: &quot;A String&quot;, # Output only. Identifier. The audience export resource name assigned during creation. This resource name identifies this `AudienceExport`. Format: `properties/{property}/audienceExports/{audience_export}`
218+
&quot;percentageCompleted&quot;: 3.14, # Output only. The percentage completed for this audience export ranging between 0 to 100.
219+
&quot;rowCount&quot;: 42, # Output only. The total number of rows in the AudienceExport result.
220+
&quot;state&quot;: &quot;A String&quot;, # Output only. The current state for this AudienceExport.
221+
},
222+
],
223+
&quot;nextPageToken&quot;: &quot;A String&quot;, # A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
224+
}</pre>
225+
</div>
226+
227+
<div class="method">
228+
<code class="details" id="list_next">list_next()</code>
229+
<pre>Retrieves the next page of results.
230+
231+
Args:
232+
previous_request: The request for the previous page. (required)
233+
previous_response: The response from the request for the previous page. (required)
234+
235+
Returns:
236+
A request object that you can call &#x27;execute()&#x27; on to request the next
237+
page. Returns None if there are no more items in the collection.
238+
</pre>
239+
</div>
240+
241+
<div class="method">
242+
<code class="details" id="query">query(name, body=None, x__xgafv=None)</code>
243+
<pre>Retrieves an audience export of users. After creating an audience, the users are not immediately available for exporting. First, a request to `CreateAudienceExport` is necessary to create an audience export of users, and then second, this method is used to retrieve the users in the audience export. See [Creating an Audience Export](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) for an introduction to Audience Exports with examples. Audiences in Google Analytics 4 allow you to segment your users in the ways that are important to your business. To learn more, see https://support.google.com/analytics/answer/9267572. Audience Export APIs have some methods at alpha and other methods at beta stability. The intention is to advance methods to beta stability after some feedback and adoption. To give your feedback on this API, complete the [Google Analytics Audience Export API Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form.
244+
245+
Args:
246+
name: string, Required. The name of the audience export to retrieve users from. Format: `properties/{property}/audienceExports/{audience_export}` (required)
247+
body: object, The request body.
248+
The object takes the form of:
249+
250+
{ # A request to list users in an audience export.
251+
&quot;limit&quot;: &quot;A String&quot;, # Optional. The number of rows to return. If unspecified, 10,000 rows are returned. The API returns a maximum of 250,000 rows per request, no matter how many you ask for. `limit` must be positive. The API can also return fewer rows than the requested `limit`, if there aren&#x27;t as many dimension values as the `limit`. To learn more about this pagination parameter, see [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
252+
&quot;offset&quot;: &quot;A String&quot;, # Optional. The row count of the start row. The first row is counted as row 0. When paging, the first request does not specify offset; or equivalently, sets offset to 0; the first request returns the first `limit` of rows. The second request sets offset to the `limit` of the first request; the second request returns the second `limit` of rows. To learn more about this pagination parameter, see [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
253+
}
254+
255+
x__xgafv: string, V1 error format.
256+
Allowed values
257+
1 - v1 error format
258+
2 - v2 error format
259+
260+
Returns:
261+
An object of the form:
262+
263+
{ # A list of users in an audience export.
264+
&quot;audienceExport&quot;: { # An audience export is a list of users in an audience at the time of the list&#x27;s creation. One audience may have multiple audience exports created for different days. # Configuration data about AudienceExport being queried. Returned to help interpret the audience rows in this response. For example, the dimensions in this AudienceExport correspond to the columns in the AudienceRows.
265+
&quot;audience&quot;: &quot;A String&quot;, # Required. The audience resource name. This resource name identifies the audience being listed and is shared between the Analytics Data &amp; Admin APIs. Format: `properties/{property}/audiences/{audience}`
266+
&quot;audienceDisplayName&quot;: &quot;A String&quot;, # Output only. The descriptive display name for this audience. For example, &quot;Purchasers&quot;.
267+
&quot;beginCreatingTime&quot;: &quot;A String&quot;, # Output only. The time when CreateAudienceExport was called and the AudienceExport began the `CREATING` state.
268+
&quot;creationQuotaTokensCharged&quot;: 42, # Output only. The total quota tokens charged during creation of the AudienceExport. Because this token count is based on activity from the `CREATING` state, this tokens charged will be fixed once an AudienceExport enters the `ACTIVE` or `FAILED` states.
269+
&quot;dimensions&quot;: [ # Required. The dimensions requested and displayed in the query response.
270+
{ # An audience dimension is a user attribute. Specific user attributed are requested and then later returned in the `QueryAudienceExportResponse`.
271+
&quot;dimensionName&quot;: &quot;A String&quot;, # Optional. The API name of the dimension. See the [API Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-api-schema#dimensions) for the list of dimension names.
272+
},
273+
],
274+
&quot;errorMessage&quot;: &quot;A String&quot;, # Output only. Error message is populated when an audience export fails during creation. A common reason for such a failure is quota exhaustion.
275+
&quot;name&quot;: &quot;A String&quot;, # Output only. Identifier. The audience export resource name assigned during creation. This resource name identifies this `AudienceExport`. Format: `properties/{property}/audienceExports/{audience_export}`
276+
&quot;percentageCompleted&quot;: 3.14, # Output only. The percentage completed for this audience export ranging between 0 to 100.
277+
&quot;rowCount&quot;: 42, # Output only. The total number of rows in the AudienceExport result.
278+
&quot;state&quot;: &quot;A String&quot;, # Output only. The current state for this AudienceExport.
279+
},
280+
&quot;audienceRows&quot;: [ # Rows for each user in an audience export. The number of rows in this response will be less than or equal to request&#x27;s page size.
281+
{ # Dimension value attributes for the audience user row.
282+
&quot;dimensionValues&quot;: [ # Each dimension value attribute for an audience user. One dimension value will be added for each dimension column requested.
283+
{ # The value of a dimension.
284+
&quot;value&quot;: &quot;A String&quot;, # Value as a string if the dimension type is a string.
285+
},
286+
],
287+
},
288+
],
289+
&quot;rowCount&quot;: 42, # The total number of rows in the AudienceExport result. `rowCount` is independent of the number of rows returned in the response, the `limit` request parameter, and the `offset` request parameter. For example if a query returns 175 rows and includes `limit` of 50 in the API request, the response will contain `rowCount` of 175 but only 50 rows. To learn more about this pagination parameter, see [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
290+
}</pre>
291+
</div>
292+
293+
</body></html>

‎docs/dyn/analyticsdata_v1beta.properties.html

+5
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,11 @@
7474

7575
<h1><a href="analyticsdata_v1beta.html">Google Analytics Data API</a> . <a href="analyticsdata_v1beta.properties.html">properties</a></h1>
7676
<h2>Instance Methods</h2>
77+
<p class="toc_element">
78+
<code><a href="analyticsdata_v1beta.properties.audienceExports.html">audienceExports()</a></code>
79+
</p>
80+
<p class="firstline">Returns the audienceExports Resource.</p>
81+
7782
<p class="toc_element">
7883
<code><a href="#batchRunPivotReports">batchRunPivotReports(property, body=None, x__xgafv=None)</a></code></p>
7984
<p class="firstline">Returns multiple pivot reports in a batch. All reports must be for the same GA4 Property.</p>

‎googleapiclient/discovery_cache/documents/analyticsdata.v1beta.json

+358-1
Original file line numberDiff line numberDiff line change
@@ -310,10 +310,137 @@
310310
"https://www.googleapis.com/auth/analytics.readonly"
311311
]
312312
}
313+
},
314+
"resources": {
315+
"audienceExports": {
316+
"methods": {
317+
"create": {
318+
"description": "Creates an audience export for later retrieval. This method quickly returns the audience export's resource name and initiates a long running asynchronous request to form an audience export. To export the users in an audience export, first create the audience export through this method and then send the audience resource name to the `QueryAudienceExport` method. See [Creating an Audience Export](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) for an introduction to Audience Exports with examples. An audience export is a snapshot of the users currently in the audience at the time of audience export creation. Creating audience exports for one audience on different days will return different results as users enter and exit the audience. Audiences in Google Analytics 4 allow you to segment your users in the ways that are important to your business. To learn more, see https://support.google.com/analytics/answer/9267572. Audience exports contain the users in each audience. Audience Export APIs have some methods at alpha and other methods at beta stability. The intention is to advance methods to beta stability after some feedback and adoption. To give your feedback on this API, complete the [Google Analytics Audience Export API Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form.",
319+
"flatPath": "v1beta/properties/{propertiesId}/audienceExports",
320+
"httpMethod": "POST",
321+
"id": "analyticsdata.properties.audienceExports.create",
322+
"parameterOrder": [
323+
"parent"
324+
],
325+
"parameters": {
326+
"parent": {
327+
"description": "Required. The parent resource where this audience export will be created. Format: `properties/{property}`",
328+
"location": "path",
329+
"pattern": "^properties/[^/]+$",
330+
"required": true,
331+
"type": "string"
332+
}
333+
},
334+
"path": "v1beta/{+parent}/audienceExports",
335+
"request": {
336+
"$ref": "AudienceExport"
337+
},
338+
"response": {
339+
"$ref": "Operation"
340+
},
341+
"scopes": [
342+
"https://www.googleapis.com/auth/analytics",
343+
"https://www.googleapis.com/auth/analytics.readonly"
344+
]
345+
},
346+
"get": {
347+
"description": "Gets configuration metadata about a specific audience export. This method can be used to understand an audience export after it has been created. See [Creating an Audience Export](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) for an introduction to Audience Exports with examples. Audience Export APIs have some methods at alpha and other methods at beta stability. The intention is to advance methods to beta stability after some feedback and adoption. To give your feedback on this API, complete the [Google Analytics Audience Export API Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form.",
348+
"flatPath": "v1beta/properties/{propertiesId}/audienceExports/{audienceExportsId}",
349+
"httpMethod": "GET",
350+
"id": "analyticsdata.properties.audienceExports.get",
351+
"parameterOrder": [
352+
"name"
353+
],
354+
"parameters": {
355+
"name": {
356+
"description": "Required. The audience export resource name. Format: `properties/{property}/audienceExports/{audience_export}`",
357+
"location": "path",
358+
"pattern": "^properties/[^/]+/audienceExports/[^/]+$",
359+
"required": true,
360+
"type": "string"
361+
}
362+
},
363+
"path": "v1beta/{+name}",
364+
"response": {
365+
"$ref": "AudienceExport"
366+
},
367+
"scopes": [
368+
"https://www.googleapis.com/auth/analytics",
369+
"https://www.googleapis.com/auth/analytics.readonly"
370+
]
371+
},
372+
"list": {
373+
"description": "Lists all audience exports for a property. This method can be used for you to find and reuse existing audience exports rather than creating unnecessary new audience exports. The same audience can have multiple audience exports that represent the export of users that were in an audience on different days. See [Creating an Audience Export](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) for an introduction to Audience Exports with examples. Audience Export APIs have some methods at alpha and other methods at beta stability. The intention is to advance methods to beta stability after some feedback and adoption. To give your feedback on this API, complete the [Google Analytics Audience Export API Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form.",
374+
"flatPath": "v1beta/properties/{propertiesId}/audienceExports",
375+
"httpMethod": "GET",
376+
"id": "analyticsdata.properties.audienceExports.list",
377+
"parameterOrder": [
378+
"parent"
379+
],
380+
"parameters": {
381+
"pageSize": {
382+
"description": "Optional. The maximum number of audience exports to return. The service may return fewer than this value. If unspecified, at most 200 audience exports will be returned. The maximum value is 1000 (higher values will be coerced to the maximum).",
383+
"format": "int32",
384+
"location": "query",
385+
"type": "integer"
386+
},
387+
"pageToken": {
388+
"description": "Optional. A page token, received from a previous `ListAudienceExports` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListAudienceExports` must match the call that provided the page token.",
389+
"location": "query",
390+
"type": "string"
391+
},
392+
"parent": {
393+
"description": "Required. All audience exports for this property will be listed in the response. Format: `properties/{property}`",
394+
"location": "path",
395+
"pattern": "^properties/[^/]+$",
396+
"required": true,
397+
"type": "string"
398+
}
399+
},
400+
"path": "v1beta/{+parent}/audienceExports",
401+
"response": {
402+
"$ref": "ListAudienceExportsResponse"
403+
},
404+
"scopes": [
405+
"https://www.googleapis.com/auth/analytics",
406+
"https://www.googleapis.com/auth/analytics.readonly"
407+
]
408+
},
409+
"query": {
410+
"description": "Retrieves an audience export of users. After creating an audience, the users are not immediately available for exporting. First, a request to `CreateAudienceExport` is necessary to create an audience export of users, and then second, this method is used to retrieve the users in the audience export. See [Creating an Audience Export](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) for an introduction to Audience Exports with examples. Audiences in Google Analytics 4 allow you to segment your users in the ways that are important to your business. To learn more, see https://support.google.com/analytics/answer/9267572. Audience Export APIs have some methods at alpha and other methods at beta stability. The intention is to advance methods to beta stability after some feedback and adoption. To give your feedback on this API, complete the [Google Analytics Audience Export API Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form.",
411+
"flatPath": "v1beta/properties/{propertiesId}/audienceExports/{audienceExportsId}:query",
412+
"httpMethod": "POST",
413+
"id": "analyticsdata.properties.audienceExports.query",
414+
"parameterOrder": [
415+
"name"
416+
],
417+
"parameters": {
418+
"name": {
419+
"description": "Required. The name of the audience export to retrieve users from. Format: `properties/{property}/audienceExports/{audience_export}`",
420+
"location": "path",
421+
"pattern": "^properties/[^/]+/audienceExports/[^/]+$",
422+
"required": true,
423+
"type": "string"
424+
}
425+
},
426+
"path": "v1beta/{+name}:query",
427+
"request": {
428+
"$ref": "QueryAudienceExportRequest"
429+
},
430+
"response": {
431+
"$ref": "QueryAudienceExportResponse"
432+
},
433+
"scopes": [
434+
"https://www.googleapis.com/auth/analytics",
435+
"https://www.googleapis.com/auth/analytics.readonly"
436+
]
437+
}
438+
}
439+
}
313440
}
314441
}
315442
},
316-
"revision": "20231127",
443+
"revision": "20231205",
317444
"rootUrl": "https://analyticsdata.googleapis.com/",
318445
"schemas": {
319446
"ActiveMetricRestriction": {
@@ -344,6 +471,80 @@
344471
},
345472
"type": "object"
346473
},
474+
"AudienceExport": {
475+
"description": "An audience export is a list of users in an audience at the time of the list's creation. One audience may have multiple audience exports created for different days.",
476+
"id": "AudienceExport",
477+
"properties": {
478+
"audience": {
479+
"description": "Required. The audience resource name. This resource name identifies the audience being listed and is shared between the Analytics Data & Admin APIs. Format: `properties/{property}/audiences/{audience}`",
480+
"type": "string"
481+
},
482+
"audienceDisplayName": {
483+
"description": "Output only. The descriptive display name for this audience. For example, \"Purchasers\".",
484+
"readOnly": true,
485+
"type": "string"
486+
},
487+
"beginCreatingTime": {
488+
"description": "Output only. The time when CreateAudienceExport was called and the AudienceExport began the `CREATING` state.",
489+
"format": "google-datetime",
490+
"readOnly": true,
491+
"type": "string"
492+
},
493+
"creationQuotaTokensCharged": {
494+
"description": "Output only. The total quota tokens charged during creation of the AudienceExport. Because this token count is based on activity from the `CREATING` state, this tokens charged will be fixed once an AudienceExport enters the `ACTIVE` or `FAILED` states.",
495+
"format": "int32",
496+
"readOnly": true,
497+
"type": "integer"
498+
},
499+
"dimensions": {
500+
"description": "Required. The dimensions requested and displayed in the query response.",
501+
"items": {
502+
"$ref": "V1betaAudienceDimension"
503+
},
504+
"type": "array"
505+
},
506+
"errorMessage": {
507+
"description": "Output only. Error message is populated when an audience export fails during creation. A common reason for such a failure is quota exhaustion.",
508+
"readOnly": true,
509+
"type": "string"
510+
},
511+
"name": {
512+
"description": "Output only. Identifier. The audience export resource name assigned during creation. This resource name identifies this `AudienceExport`. Format: `properties/{property}/audienceExports/{audience_export}`",
513+
"readOnly": true,
514+
"type": "string"
515+
},
516+
"percentageCompleted": {
517+
"description": "Output only. The percentage completed for this audience export ranging between 0 to 100.",
518+
"format": "double",
519+
"readOnly": true,
520+
"type": "number"
521+
},
522+
"rowCount": {
523+
"description": "Output only. The total number of rows in the AudienceExport result.",
524+
"format": "int32",
525+
"readOnly": true,
526+
"type": "integer"
527+
},
528+
"state": {
529+
"description": "Output only. The current state for this AudienceExport.",
530+
"enum": [
531+
"STATE_UNSPECIFIED",
532+
"CREATING",
533+
"ACTIVE",
534+
"FAILED"
535+
],
536+
"enumDescriptions": [
537+
"Unspecified state will never be used.",
538+
"The AudienceExport is currently creating and will be available in the future. Creating occurs immediately after the CreateAudienceExport call.",
539+
"The AudienceExport is fully created and ready for querying. An AudienceExport is updated to active asynchronously from a request; this occurs some time (for example 15 minutes) after the initial create call.",
540+
"The AudienceExport failed to be created. It is possible that re-requesting this audience export will succeed."
541+
],
542+
"readOnly": true,
543+
"type": "string"
544+
}
545+
},
546+
"type": "object"
547+
},
347548
"AudienceListMetadata": {
348549
"description": "This metadata is currently blank.",
349550
"id": "AudienceListMetadata",
@@ -850,6 +1051,24 @@
8501051
},
8511052
"type": "object"
8521053
},
1054+
"ListAudienceExportsResponse": {
1055+
"description": "A list of all audience exports for a property.",
1056+
"id": "ListAudienceExportsResponse",
1057+
"properties": {
1058+
"audienceExports": {
1059+
"description": "Each audience export for a property.",
1060+
"items": {
1061+
"$ref": "AudienceExport"
1062+
},
1063+
"type": "array"
1064+
},
1065+
"nextPageToken": {
1066+
"description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.",
1067+
"type": "string"
1068+
}
1069+
},
1070+
"type": "object"
1071+
},
8531072
"Metadata": {
8541073
"description": "The dimensions, metrics and comparisons currently accepted in reporting methods.",
8551074
"id": "Metadata",
@@ -1144,6 +1363,41 @@
11441363
},
11451364
"type": "object"
11461365
},
1366+
"Operation": {
1367+
"description": "This resource represents a long-running operation that is the result of a network API call.",
1368+
"id": "Operation",
1369+
"properties": {
1370+
"done": {
1371+
"description": "If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.",
1372+
"type": "boolean"
1373+
},
1374+
"error": {
1375+
"$ref": "Status",
1376+
"description": "The error result of the operation in case of failure or cancellation."
1377+
},
1378+
"metadata": {
1379+
"additionalProperties": {
1380+
"description": "Properties of the object. Contains field @type with type URL.",
1381+
"type": "any"
1382+
},
1383+
"description": "Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.",
1384+
"type": "object"
1385+
},
1386+
"name": {
1387+
"description": "The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.",
1388+
"type": "string"
1389+
},
1390+
"response": {
1391+
"additionalProperties": {
1392+
"description": "Properties of the object. Contains field @type with type URL.",
1393+
"type": "any"
1394+
},
1395+
"description": "The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.",
1396+
"type": "object"
1397+
}
1398+
},
1399+
"type": "object"
1400+
},
11471401
"OrderBy": {
11481402
"description": "Order bys define how rows will be sorted in the response. For example, ordering rows by descending event count is one ordering, and ordering rows by the event name string is a different ordering.",
11491403
"id": "OrderBy",
@@ -1316,6 +1570,46 @@
13161570
},
13171571
"type": "object"
13181572
},
1573+
"QueryAudienceExportRequest": {
1574+
"description": "A request to list users in an audience export.",
1575+
"id": "QueryAudienceExportRequest",
1576+
"properties": {
1577+
"limit": {
1578+
"description": "Optional. The number of rows to return. If unspecified, 10,000 rows are returned. The API returns a maximum of 250,000 rows per request, no matter how many you ask for. `limit` must be positive. The API can also return fewer rows than the requested `limit`, if there aren't as many dimension values as the `limit`. To learn more about this pagination parameter, see [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).",
1579+
"format": "int64",
1580+
"type": "string"
1581+
},
1582+
"offset": {
1583+
"description": "Optional. The row count of the start row. The first row is counted as row 0. When paging, the first request does not specify offset; or equivalently, sets offset to 0; the first request returns the first `limit` of rows. The second request sets offset to the `limit` of the first request; the second request returns the second `limit` of rows. To learn more about this pagination parameter, see [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).",
1584+
"format": "int64",
1585+
"type": "string"
1586+
}
1587+
},
1588+
"type": "object"
1589+
},
1590+
"QueryAudienceExportResponse": {
1591+
"description": "A list of users in an audience export.",
1592+
"id": "QueryAudienceExportResponse",
1593+
"properties": {
1594+
"audienceExport": {
1595+
"$ref": "AudienceExport",
1596+
"description": "Configuration data about AudienceExport being queried. Returned to help interpret the audience rows in this response. For example, the dimensions in this AudienceExport correspond to the columns in the AudienceRows."
1597+
},
1598+
"audienceRows": {
1599+
"description": "Rows for each user in an audience export. The number of rows in this response will be less than or equal to request's page size.",
1600+
"items": {
1601+
"$ref": "V1betaAudienceRow"
1602+
},
1603+
"type": "array"
1604+
},
1605+
"rowCount": {
1606+
"description": "The total number of rows in the AudienceExport result. `rowCount` is independent of the number of rows returned in the response, the `limit` request parameter, and the `offset` request parameter. For example if a query returns 175 rows and includes `limit` of 50 in the API request, the response will contain `rowCount` of 175 but only 50 rows. To learn more about this pagination parameter, see [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).",
1607+
"format": "int32",
1608+
"type": "integer"
1609+
}
1610+
},
1611+
"type": "object"
1612+
},
13191613
"QuotaStatus": {
13201614
"description": "Current state for a particular quota group.",
13211615
"id": "QuotaStatus",
@@ -1835,6 +2129,33 @@
18352129
},
18362130
"type": "object"
18372131
},
2132+
"Status": {
2133+
"description": "The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).",
2134+
"id": "Status",
2135+
"properties": {
2136+
"code": {
2137+
"description": "The status code, which should be an enum value of google.rpc.Code.",
2138+
"format": "int32",
2139+
"type": "integer"
2140+
},
2141+
"details": {
2142+
"description": "A list of messages that carry the error details. There is a common set of message types for APIs to use.",
2143+
"items": {
2144+
"additionalProperties": {
2145+
"description": "Properties of the object. Contains field @type with type URL.",
2146+
"type": "any"
2147+
},
2148+
"type": "object"
2149+
},
2150+
"type": "array"
2151+
},
2152+
"message": {
2153+
"description": "A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.",
2154+
"type": "string"
2155+
}
2156+
},
2157+
"type": "object"
2158+
},
18382159
"StringFilter": {
18392160
"description": "The filter for string",
18402161
"id": "StringFilter",
@@ -1871,6 +2192,42 @@
18712192
}
18722193
},
18732194
"type": "object"
2195+
},
2196+
"V1betaAudienceDimension": {
2197+
"description": "An audience dimension is a user attribute. Specific user attributed are requested and then later returned in the `QueryAudienceExportResponse`.",
2198+
"id": "V1betaAudienceDimension",
2199+
"properties": {
2200+
"dimensionName": {
2201+
"description": "Optional. The API name of the dimension. See the [API Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-api-schema#dimensions) for the list of dimension names.",
2202+
"type": "string"
2203+
}
2204+
},
2205+
"type": "object"
2206+
},
2207+
"V1betaAudienceDimensionValue": {
2208+
"description": "The value of a dimension.",
2209+
"id": "V1betaAudienceDimensionValue",
2210+
"properties": {
2211+
"value": {
2212+
"description": "Value as a string if the dimension type is a string.",
2213+
"type": "string"
2214+
}
2215+
},
2216+
"type": "object"
2217+
},
2218+
"V1betaAudienceRow": {
2219+
"description": "Dimension value attributes for the audience user row.",
2220+
"id": "V1betaAudienceRow",
2221+
"properties": {
2222+
"dimensionValues": {
2223+
"description": "Each dimension value attribute for an audience user. One dimension value will be added for each dimension column requested.",
2224+
"items": {
2225+
"$ref": "V1betaAudienceDimensionValue"
2226+
},
2227+
"type": "array"
2228+
}
2229+
},
2230+
"type": "object"
18742231
}
18752232
},
18762233
"servicePath": "",

0 commit comments

Comments
 (0)
Please sign in to comment.