@pushwoosh/rpc-v2-http-api-data 0.2.420 → 0.2.422
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/data.js +90 -6
- package/events.d.ts +2 -2
- package/package.json +1 -1
- package/pushwoosh_rpc_external_segments_v3.d.ts +112 -7
package/data.js
CHANGED
|
@@ -17798,7 +17798,11 @@ export const data = {
|
|
|
17798
17798
|
"CREATE_NAME_TOO_LONG",
|
|
17799
17799
|
"CREATE_CONNECTION_FAILED",
|
|
17800
17800
|
"CREATE_PROJECT_ID_EMPTY",
|
|
17801
|
-
"CREATE_SERVICE_ACCOUNT_JSON_EMPTY"
|
|
17801
|
+
"CREATE_SERVICE_ACCOUNT_JSON_EMPTY",
|
|
17802
|
+
"CREATE_GA4_PROPERTY_ID_EMPTY",
|
|
17803
|
+
"CREATE_GA4_AUDIENCE_ID_EMPTY",
|
|
17804
|
+
"CREATE_GA4_PROPERTY_ID_INVALID",
|
|
17805
|
+
"CREATE_GA4_AUDIENCE_ID_INVALID"
|
|
17802
17806
|
]
|
|
17803
17807
|
},
|
|
17804
17808
|
"pushwoosh.rpc.external_segments.v3.ExternalSegmentsService_Update_FieldViolations": {
|
|
@@ -17815,7 +17819,11 @@ export const data = {
|
|
|
17815
17819
|
"UPDATE_NAME_TOO_LONG",
|
|
17816
17820
|
"UPDATE_CONNECTION_FAILED",
|
|
17817
17821
|
"UPDATE_PROJECT_ID_EMPTY",
|
|
17818
|
-
"UPDATE_SERVICE_ACCOUNT_JSON_EMPTY"
|
|
17822
|
+
"UPDATE_SERVICE_ACCOUNT_JSON_EMPTY",
|
|
17823
|
+
"UPDATE_GA4_PROPERTY_ID_EMPTY",
|
|
17824
|
+
"UPDATE_GA4_AUDIENCE_ID_EMPTY",
|
|
17825
|
+
"UPDATE_GA4_PROPERTY_ID_INVALID",
|
|
17826
|
+
"UPDATE_GA4_AUDIENCE_ID_INVALID"
|
|
17819
17827
|
]
|
|
17820
17828
|
},
|
|
17821
17829
|
"pushwoosh.rpc.external_segments.v3.ExternalSegmentsService_Update_FailedPreconditions": {
|
|
@@ -17895,6 +17903,15 @@ export const data = {
|
|
|
17895
17903
|
"commonFailedPreconditions": "pushwoosh.rpc.errors.v3.Common_FailedPreconditions"
|
|
17896
17904
|
}
|
|
17897
17905
|
},
|
|
17906
|
+
"ListGoogleAnalyticsAudiences": {
|
|
17907
|
+
"request": "pushwoosh.rpc.external_segments.v3.ListGoogleAnalyticsAudiencesRequest",
|
|
17908
|
+
"response": "pushwoosh.rpc.external_segments.v3.ListGoogleAnalyticsAudiencesResponse",
|
|
17909
|
+
"method": "post",
|
|
17910
|
+
"path": "/api/external-segments:list-ga4-audiences",
|
|
17911
|
+
"errors": {
|
|
17912
|
+
"commonFailedPreconditions": "pushwoosh.rpc.errors.v3.Common_FailedPreconditions"
|
|
17913
|
+
}
|
|
17914
|
+
},
|
|
17898
17915
|
"TestConnection": {
|
|
17899
17916
|
"request": "pushwoosh.rpc.external_segments.v3.TestConnectionRequest",
|
|
17900
17917
|
"response": "pushwoosh.rpc.external_segments.v3.TestConnectionResponse",
|
|
@@ -18007,6 +18024,20 @@ export const data = {
|
|
|
18007
18024
|
}
|
|
18008
18025
|
}
|
|
18009
18026
|
},
|
|
18027
|
+
"pushwoosh.rpc.external_segments.v3.GoogleAnalyticsAudienceConnection": {
|
|
18028
|
+
"type": "I",
|
|
18029
|
+
"fields": {
|
|
18030
|
+
"propertyId": {
|
|
18031
|
+
"type": "string"
|
|
18032
|
+
},
|
|
18033
|
+
"audienceId": {
|
|
18034
|
+
"type": "string"
|
|
18035
|
+
},
|
|
18036
|
+
"serviceAccountJson": {
|
|
18037
|
+
"type": "string"
|
|
18038
|
+
}
|
|
18039
|
+
}
|
|
18040
|
+
},
|
|
18010
18041
|
"pushwoosh.rpc.external_segments.v3.ExternalSegment": {
|
|
18011
18042
|
"type": "I",
|
|
18012
18043
|
"fields": {
|
|
@@ -18031,6 +18062,9 @@ export const data = {
|
|
|
18031
18062
|
"mssql": {
|
|
18032
18063
|
"type": "pushwoosh.rpc.external_segments.v3.MssqlConnection"
|
|
18033
18064
|
},
|
|
18065
|
+
"ga4Audience": {
|
|
18066
|
+
"type": "pushwoosh.rpc.external_segments.v3.GoogleAnalyticsAudienceConnection"
|
|
18067
|
+
},
|
|
18034
18068
|
"query": {
|
|
18035
18069
|
"type": "string"
|
|
18036
18070
|
},
|
|
@@ -18056,7 +18090,8 @@ export const data = {
|
|
|
18056
18090
|
"postgres",
|
|
18057
18091
|
"mysql",
|
|
18058
18092
|
"bigquery",
|
|
18059
|
-
"mssql"
|
|
18093
|
+
"mssql",
|
|
18094
|
+
"ga4Audience"
|
|
18060
18095
|
]
|
|
18061
18096
|
}
|
|
18062
18097
|
}
|
|
@@ -18118,6 +18153,9 @@ export const data = {
|
|
|
18118
18153
|
"mssql": {
|
|
18119
18154
|
"type": "pushwoosh.rpc.external_segments.v3.MssqlConnection"
|
|
18120
18155
|
},
|
|
18156
|
+
"ga4Audience": {
|
|
18157
|
+
"type": "pushwoosh.rpc.external_segments.v3.GoogleAnalyticsAudienceConnection"
|
|
18158
|
+
},
|
|
18121
18159
|
"query": {
|
|
18122
18160
|
"type": "string"
|
|
18123
18161
|
}
|
|
@@ -18128,7 +18166,8 @@ export const data = {
|
|
|
18128
18166
|
"postgres",
|
|
18129
18167
|
"mysql",
|
|
18130
18168
|
"bigquery",
|
|
18131
|
-
"mssql"
|
|
18169
|
+
"mssql",
|
|
18170
|
+
"ga4Audience"
|
|
18132
18171
|
]
|
|
18133
18172
|
}
|
|
18134
18173
|
}
|
|
@@ -18166,6 +18205,9 @@ export const data = {
|
|
|
18166
18205
|
"mssql": {
|
|
18167
18206
|
"type": "pushwoosh.rpc.external_segments.v3.MssqlConnection"
|
|
18168
18207
|
},
|
|
18208
|
+
"ga4Audience": {
|
|
18209
|
+
"type": "pushwoosh.rpc.external_segments.v3.GoogleAnalyticsAudienceConnection"
|
|
18210
|
+
},
|
|
18169
18211
|
"query": {
|
|
18170
18212
|
"type": "string",
|
|
18171
18213
|
"optional": true
|
|
@@ -18177,7 +18219,8 @@ export const data = {
|
|
|
18177
18219
|
"postgres",
|
|
18178
18220
|
"mysql",
|
|
18179
18221
|
"bigquery",
|
|
18180
|
-
"mssql"
|
|
18222
|
+
"mssql",
|
|
18223
|
+
"ga4Audience"
|
|
18181
18224
|
]
|
|
18182
18225
|
}
|
|
18183
18226
|
}
|
|
@@ -18248,6 +18291,9 @@ export const data = {
|
|
|
18248
18291
|
"mssql": {
|
|
18249
18292
|
"type": "pushwoosh.rpc.external_segments.v3.MssqlConnection"
|
|
18250
18293
|
},
|
|
18294
|
+
"ga4Audience": {
|
|
18295
|
+
"type": "pushwoosh.rpc.external_segments.v3.GoogleAnalyticsAudienceConnection"
|
|
18296
|
+
},
|
|
18251
18297
|
"query": {
|
|
18252
18298
|
"type": "string"
|
|
18253
18299
|
},
|
|
@@ -18261,7 +18307,8 @@ export const data = {
|
|
|
18261
18307
|
"postgres",
|
|
18262
18308
|
"mysql",
|
|
18263
18309
|
"bigquery",
|
|
18264
|
-
"mssql"
|
|
18310
|
+
"mssql",
|
|
18311
|
+
"ga4Audience"
|
|
18265
18312
|
]
|
|
18266
18313
|
}
|
|
18267
18314
|
}
|
|
@@ -18277,6 +18324,43 @@ export const data = {
|
|
|
18277
18324
|
}
|
|
18278
18325
|
}
|
|
18279
18326
|
},
|
|
18327
|
+
"pushwoosh.rpc.external_segments.v3.ListGoogleAnalyticsAudiencesRequest": {
|
|
18328
|
+
"type": "I",
|
|
18329
|
+
"fields": {
|
|
18330
|
+
"application": {
|
|
18331
|
+
"type": "string"
|
|
18332
|
+
},
|
|
18333
|
+
"code": {
|
|
18334
|
+
"type": "string"
|
|
18335
|
+
},
|
|
18336
|
+
"propertyId": {
|
|
18337
|
+
"type": "string"
|
|
18338
|
+
},
|
|
18339
|
+
"serviceAccountJson": {
|
|
18340
|
+
"type": "string"
|
|
18341
|
+
}
|
|
18342
|
+
}
|
|
18343
|
+
},
|
|
18344
|
+
"pushwoosh.rpc.external_segments.v3.ListGoogleAnalyticsAudiencesResponse": {
|
|
18345
|
+
"type": "I",
|
|
18346
|
+
"fields": {
|
|
18347
|
+
"audiences": {
|
|
18348
|
+
"type": "pushwoosh.rpc.external_segments.v3.GoogleAnalyticsAudience",
|
|
18349
|
+
"array": true
|
|
18350
|
+
}
|
|
18351
|
+
}
|
|
18352
|
+
},
|
|
18353
|
+
"pushwoosh.rpc.external_segments.v3.GoogleAnalyticsAudience": {
|
|
18354
|
+
"type": "I",
|
|
18355
|
+
"fields": {
|
|
18356
|
+
"audienceId": {
|
|
18357
|
+
"type": "string"
|
|
18358
|
+
},
|
|
18359
|
+
"displayName": {
|
|
18360
|
+
"type": "string"
|
|
18361
|
+
}
|
|
18362
|
+
}
|
|
18363
|
+
},
|
|
18280
18364
|
"pushwoosh.rpc_v2.feature_flags.FeatureFlagsService_FieldViolations": {
|
|
18281
18365
|
"type": "E",
|
|
18282
18366
|
"values": [
|
package/events.d.ts
CHANGED
|
@@ -40,7 +40,7 @@ export interface EventsService {
|
|
|
40
40
|
DismissRevenueSuggestions: EventsService_DismissRevenueSuggestions;
|
|
41
41
|
/** Returns the events counted as conversions on the Conversions board, PW_Conversion first, each with its revenue attributes when it tracks revenue. */
|
|
42
42
|
GetConversionEvents: EventsService_GetConversionEvents;
|
|
43
|
-
/** Replaces the list of events counted as conversions on the Conversions board. Events left out of the request stop counting; PW_Conversion is always kept.
|
|
43
|
+
/** Replaces the list of events counted as conversions on the Conversions board. Events left out of the request stop counting; PW_Conversion is always kept. Each event's revenue_mapping is saved in the same call: unset leaves its revenue attributes as they are, empty makes it a conversion without revenue. A newly listed event or changed revenue attributes schedule a history recalculation. */
|
|
44
44
|
SaveConversionEvents: EventsService_SaveConversionEvents;
|
|
45
45
|
}
|
|
46
46
|
export type GetEventRequest = {
|
|
@@ -285,7 +285,7 @@ export type GetRevenueStatisticsResponse = {
|
|
|
285
285
|
export type ConversionEvent = {
|
|
286
286
|
/** Name of the application's event that counts as a conversion. */
|
|
287
287
|
name: string;
|
|
288
|
-
/** Where the event keeps its amount and currency; unset for an event counted without revenue. */
|
|
288
|
+
/** Where the event keeps its amount and currency; unset for an event counted without revenue. In SaveConversionEvents unset leaves the stored attributes as they are and empty clears them. */
|
|
289
289
|
revenueMapping: RevenueMapping;
|
|
290
290
|
/** PW_Conversion: always listed, always tracks revenue, cannot be removed. */
|
|
291
291
|
isDefault: boolean;
|
package/package.json
CHANGED
|
@@ -48,6 +48,22 @@ export type ExternalSegmentsService_Create_FieldViolations = {
|
|
|
48
48
|
reason: 'CREATE_SERVICE_ACCOUNT_JSON_EMPTY';
|
|
49
49
|
field: string;
|
|
50
50
|
description: string;
|
|
51
|
+
} | {
|
|
52
|
+
reason: 'CREATE_GA4_PROPERTY_ID_EMPTY';
|
|
53
|
+
field: string;
|
|
54
|
+
description: string;
|
|
55
|
+
} | {
|
|
56
|
+
reason: 'CREATE_GA4_AUDIENCE_ID_EMPTY';
|
|
57
|
+
field: string;
|
|
58
|
+
description: string;
|
|
59
|
+
} | {
|
|
60
|
+
reason: 'CREATE_GA4_PROPERTY_ID_INVALID';
|
|
61
|
+
field: string;
|
|
62
|
+
description: string;
|
|
63
|
+
} | {
|
|
64
|
+
reason: 'CREATE_GA4_AUDIENCE_ID_INVALID';
|
|
65
|
+
field: string;
|
|
66
|
+
description: string;
|
|
51
67
|
};
|
|
52
68
|
export type ExternalSegmentsService_Update_FieldViolations = {
|
|
53
69
|
reason: 'UPDATE_FV_UNSPECIFIED';
|
|
@@ -97,6 +113,22 @@ export type ExternalSegmentsService_Update_FieldViolations = {
|
|
|
97
113
|
reason: 'UPDATE_SERVICE_ACCOUNT_JSON_EMPTY';
|
|
98
114
|
field: string;
|
|
99
115
|
description: string;
|
|
116
|
+
} | {
|
|
117
|
+
reason: 'UPDATE_GA4_PROPERTY_ID_EMPTY';
|
|
118
|
+
field: string;
|
|
119
|
+
description: string;
|
|
120
|
+
} | {
|
|
121
|
+
reason: 'UPDATE_GA4_AUDIENCE_ID_EMPTY';
|
|
122
|
+
field: string;
|
|
123
|
+
description: string;
|
|
124
|
+
} | {
|
|
125
|
+
reason: 'UPDATE_GA4_PROPERTY_ID_INVALID';
|
|
126
|
+
field: string;
|
|
127
|
+
description: string;
|
|
128
|
+
} | {
|
|
129
|
+
reason: 'UPDATE_GA4_AUDIENCE_ID_INVALID';
|
|
130
|
+
field: string;
|
|
131
|
+
description: string;
|
|
100
132
|
};
|
|
101
133
|
export type ExternalSegmentsService_Update_FailedPreconditions = {
|
|
102
134
|
type: 'UPDATE_FP_UNSPECIFIED';
|
|
@@ -161,6 +193,13 @@ export type ExternalSegmentsService_CheckConnection = RpcMethodV3<CheckConnectio
|
|
|
161
193
|
error?: undefined;
|
|
162
194
|
failedPreconditions?: pushwoosh_rpc_errors_v3_Common_FailedPreconditions;
|
|
163
195
|
}>;
|
|
196
|
+
export type ExternalSegmentsService_ListGoogleAnalyticsAudiences = RpcMethodV3<ListGoogleAnalyticsAudiencesRequest, ListGoogleAnalyticsAudiencesResponse, {
|
|
197
|
+
error: unknown;
|
|
198
|
+
failedPreconditions?: undefined;
|
|
199
|
+
} | {
|
|
200
|
+
error?: undefined;
|
|
201
|
+
failedPreconditions?: pushwoosh_rpc_errors_v3_Common_FailedPreconditions;
|
|
202
|
+
}>;
|
|
164
203
|
export type ExternalSegmentsService_TestConnection = RpcMethodV3<TestConnectionRequest, TestConnectionResponse, {
|
|
165
204
|
error: unknown;
|
|
166
205
|
failedPreconditions?: undefined;
|
|
@@ -194,6 +233,8 @@ export interface ExternalSegmentsService {
|
|
|
194
233
|
Delete: ExternalSegmentsService_Delete;
|
|
195
234
|
/** Connects to a stored external segment's database and runs its saved query, then records the outcome in the segment's valid flag. Use to re-check an existing segment; unlike test_external_segment_connection it persists the result. */
|
|
196
235
|
CheckConnection: ExternalSegmentsService_CheckConnection;
|
|
236
|
+
/** Lists the audiences of a Google Analytics 4 property that the given service account can read, for picking the audience of a ga4_audience external segment. Pass code to reuse the stored key of an existing segment instead of re-entering it. */
|
|
237
|
+
ListGoogleAnalyticsAudiences: ExternalSegmentsService_ListGoogleAnalyticsAudiences;
|
|
197
238
|
/** Tests external database connection parameters supplied inline (optionally backfilling secrets from a saved segment by code) without persisting anything. Use from the create/edit form before saving; set check_query to also validate the query, otherwise only connectivity is checked. */
|
|
198
239
|
TestConnection: ExternalSegmentsService_TestConnection;
|
|
199
240
|
}
|
|
@@ -218,6 +259,9 @@ export type ExternalSegmentsService_Errors = {
|
|
|
218
259
|
CheckConnection: {
|
|
219
260
|
failedPreconditions: pushwoosh_rpc_errors_v3_Common_FailedPreconditions;
|
|
220
261
|
};
|
|
262
|
+
ListGoogleAnalyticsAudiences: {
|
|
263
|
+
failedPreconditions: pushwoosh_rpc_errors_v3_Common_FailedPreconditions;
|
|
264
|
+
};
|
|
221
265
|
TestConnection: {
|
|
222
266
|
failedPreconditions: pushwoosh_rpc_errors_v3_Common_FailedPreconditions;
|
|
223
267
|
};
|
|
@@ -336,6 +380,23 @@ export type BigQueryConnection = {
|
|
|
336
380
|
*/
|
|
337
381
|
location: string;
|
|
338
382
|
};
|
|
383
|
+
/**
|
|
384
|
+
* GoogleAnalyticsAudienceConnection points an external segment at a Google
|
|
385
|
+
* Analytics 4 audience. Members are read through the GA4 Audience Export API,
|
|
386
|
+
* so the segment has no query.
|
|
387
|
+
*/
|
|
388
|
+
export type GoogleAnalyticsAudienceConnection = {
|
|
389
|
+
/** GA4 property ID, e.g. "123456789" (a "properties/123456789" resource name is also accepted). */
|
|
390
|
+
propertyId: string;
|
|
391
|
+
/** GA4 audience ID within the property, e.g. "16052885366". */
|
|
392
|
+
audienceId: string;
|
|
393
|
+
/**
|
|
394
|
+
* Service account JSON key. The service account needs the Viewer role on the
|
|
395
|
+
* GA4 property. Write-only: never returned by read methods; on update an empty
|
|
396
|
+
* value keeps the currently stored key.
|
|
397
|
+
*/
|
|
398
|
+
serviceAccountJson: string;
|
|
399
|
+
};
|
|
339
400
|
export type ExternalSegment_connection_postgres = {
|
|
340
401
|
type: 'postgres';
|
|
341
402
|
data: PostgresConnection;
|
|
@@ -352,7 +413,11 @@ export type ExternalSegment_connection_mssql = {
|
|
|
352
413
|
type: 'mssql';
|
|
353
414
|
data: MssqlConnection;
|
|
354
415
|
};
|
|
355
|
-
export type
|
|
416
|
+
export type ExternalSegment_connection_ga4Audience = {
|
|
417
|
+
type: 'ga4Audience';
|
|
418
|
+
data: GoogleAnalyticsAudienceConnection;
|
|
419
|
+
};
|
|
420
|
+
export type ExternalSegment_connection = ExternalSegment_connection_postgres | ExternalSegment_connection_mysql | ExternalSegment_connection_bigquery | ExternalSegment_connection_mssql | ExternalSegment_connection_ga4Audience;
|
|
356
421
|
/**
|
|
357
422
|
* ExternalSegment is the full representation returned by read methods.
|
|
358
423
|
* It exposes neither the raw connection string nor a database "kind" enum:
|
|
@@ -366,7 +431,7 @@ export type ExternalSegment = {
|
|
|
366
431
|
code: string;
|
|
367
432
|
/** Human-readable name. Not unique. Free text, up to 100 characters. */
|
|
368
433
|
name: string;
|
|
369
|
-
/** SQL query that returns a single "user_id" column. */
|
|
434
|
+
/** SQL query that returns a single "user_id" column. Empty for ga4_audience. */
|
|
370
435
|
query: string;
|
|
371
436
|
/** Whether the segment configuration is considered valid and usable. */
|
|
372
437
|
valid: boolean;
|
|
@@ -412,13 +477,20 @@ export type CreateRequest_connection_mssql = {
|
|
|
412
477
|
type: 'mssql';
|
|
413
478
|
data: MssqlConnection;
|
|
414
479
|
};
|
|
415
|
-
export type
|
|
480
|
+
export type CreateRequest_connection_ga4Audience = {
|
|
481
|
+
type: 'ga4Audience';
|
|
482
|
+
data: GoogleAnalyticsAudienceConnection;
|
|
483
|
+
};
|
|
484
|
+
export type CreateRequest_connection = CreateRequest_connection_postgres | CreateRequest_connection_mysql | CreateRequest_connection_bigquery | CreateRequest_connection_mssql | CreateRequest_connection_ga4Audience;
|
|
416
485
|
export type CreateRequest = {
|
|
417
486
|
/** Application code the segment belongs to. */
|
|
418
487
|
application?: string;
|
|
419
488
|
/** Human-readable name. Required, not unique, up to 100 characters. */
|
|
420
489
|
name?: string;
|
|
421
|
-
/**
|
|
490
|
+
/**
|
|
491
|
+
* SQL query that must return a single "user_id" column. Not used (leave empty)
|
|
492
|
+
* for ga4_audience.
|
|
493
|
+
*/
|
|
422
494
|
query?: string;
|
|
423
495
|
connection: CreateRequest_connection;
|
|
424
496
|
};
|
|
@@ -441,7 +513,11 @@ export type UpdateRequest_connection_mssql = {
|
|
|
441
513
|
type: 'mssql';
|
|
442
514
|
data: MssqlConnection;
|
|
443
515
|
};
|
|
444
|
-
export type
|
|
516
|
+
export type UpdateRequest_connection_ga4Audience = {
|
|
517
|
+
type: 'ga4Audience';
|
|
518
|
+
data: GoogleAnalyticsAudienceConnection;
|
|
519
|
+
};
|
|
520
|
+
export type UpdateRequest_connection = UpdateRequest_connection_postgres | UpdateRequest_connection_mysql | UpdateRequest_connection_bigquery | UpdateRequest_connection_mssql | UpdateRequest_connection_ga4Audience;
|
|
445
521
|
export type UpdateRequest = {
|
|
446
522
|
/** Application code the segment belongs to. */
|
|
447
523
|
application?: string;
|
|
@@ -494,7 +570,11 @@ export type TestConnectionRequest_connection_mssql = {
|
|
|
494
570
|
type: 'mssql';
|
|
495
571
|
data: MssqlConnection;
|
|
496
572
|
};
|
|
497
|
-
export type
|
|
573
|
+
export type TestConnectionRequest_connection_ga4Audience = {
|
|
574
|
+
type: 'ga4Audience';
|
|
575
|
+
data: GoogleAnalyticsAudienceConnection;
|
|
576
|
+
};
|
|
577
|
+
export type TestConnectionRequest_connection = TestConnectionRequest_connection_postgres | TestConnectionRequest_connection_mysql | TestConnectionRequest_connection_bigquery | TestConnectionRequest_connection_mssql | TestConnectionRequest_connection_ga4Audience;
|
|
498
578
|
export type TestConnectionRequest = {
|
|
499
579
|
/** Application code the segment belongs to. */
|
|
500
580
|
application?: string;
|
|
@@ -509,7 +589,8 @@ export type TestConnectionRequest = {
|
|
|
509
589
|
query?: string;
|
|
510
590
|
/**
|
|
511
591
|
* When true, the query is executed to validate it (SQL: run it and read the
|
|
512
|
-
* first row; BigQuery: dry-run
|
|
592
|
+
* first row; BigQuery: dry-run; GA4 audience: the audience must exist). When
|
|
593
|
+
* false, only connectivity is checked.
|
|
513
594
|
*/
|
|
514
595
|
checkQuery?: boolean;
|
|
515
596
|
connection: TestConnectionRequest_connection;
|
|
@@ -520,3 +601,27 @@ export type TestConnectionResponse = {
|
|
|
520
601
|
/** Failure message when ok is false; empty otherwise. */
|
|
521
602
|
error: string;
|
|
522
603
|
};
|
|
604
|
+
export type ListGoogleAnalyticsAudiencesRequest = {
|
|
605
|
+
/** Application code the segment belongs to. */
|
|
606
|
+
application?: string;
|
|
607
|
+
/**
|
|
608
|
+
* Optional external segment code. When set and service_account_json is
|
|
609
|
+
* empty, the stored key of that ga4_audience segment is used, provided
|
|
610
|
+
* property_id matches the stored one.
|
|
611
|
+
*/
|
|
612
|
+
code?: string;
|
|
613
|
+
/** GA4 property ID. */
|
|
614
|
+
propertyId?: string;
|
|
615
|
+
/** Service account JSON key with the Viewer role on the property. */
|
|
616
|
+
serviceAccountJson?: string;
|
|
617
|
+
};
|
|
618
|
+
export type ListGoogleAnalyticsAudiencesResponse = {
|
|
619
|
+
audiences: GoogleAnalyticsAudience[];
|
|
620
|
+
};
|
|
621
|
+
/** GoogleAnalyticsAudience is one audience of a GA4 property. */
|
|
622
|
+
export type GoogleAnalyticsAudience = {
|
|
623
|
+
/** Audience ID within the property, as expected in GoogleAnalyticsAudienceConnection.audience_id. */
|
|
624
|
+
audienceId: string;
|
|
625
|
+
/** Audience name shown in Google Analytics. */
|
|
626
|
+
displayName: string;
|
|
627
|
+
};
|