Constructor
new AnalyticsAdminServiceClient(optionsopt)
Construct an instance of AnalyticsAdminServiceClient.
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object |
<optional> |
The configuration object. The options accepted by the constructor are described in detail in this document. The common options are: Properties
|
Members
apiEndpoint
The DNS address for this API service - same as servicePath(), exists for compatibility reasons.
port
The port for this API service.
scopes
The scopes needed to make gRPC calls for every method defined in this service.
servicePath
The DNS address for this API service.
Methods
accountPath(account) → {string}
Return a fully-qualified account resource name string.
Parameters:
Name | Type | Description |
---|---|---|
account |
string |
Returns:
Type | Description |
---|---|
string |
Resource name string. |
accountSummaryPath(account_summary) → {string}
Return a fully-qualified accountSummary resource name string.
Parameters:
Name | Type | Description |
---|---|---|
account_summary |
string |
Returns:
Type | Description |
---|---|
string |
Resource name string. |
accountUserLinkPath(account, user_link) → {string}
Return a fully-qualified accountUserLink resource name string.
Parameters:
Name | Type | Description |
---|---|---|
account |
string | |
user_link |
string |
Returns:
Type | Description |
---|---|
string |
Resource name string. |
auditUserLinksAsync(request, optionsopt) → {Object}
Equivalent to auditUserLinks
, but returns an iterable object.
for
-await
-of
syntax is used with the iterable to get response elements on-demand.
Parameters:
Name | Type | Attributes | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
Returns:
Type | Description |
---|---|
Object |
An iterable Object that allows async iteration. When you iterate the returned iterable, each element will be an object representing AuditUserLink. The API will be called under the hood as needed, once per the page, so you can stop the iteration when you don't need more results. Please see the documentation for more details and examples. |
Example
/**
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. Example format: accounts/1234
*/
// const parent = 'abc123'
/**
* The maximum number of user links to return.
* The service may return fewer than this value.
* If unspecified, at most 1000 user links will be returned.
* The maximum value is 5000; values above 5000 will be coerced to 5000.
*/
// const pageSize = 1234
/**
* A page token, received from a previous `AuditUserLinks` call.
* Provide this to retrieve the subsequent page.
* When paginating, all other parameters provided to `AuditUserLinks` must
* match the call that provided the page token.
*/
// const pageToken = 'abc123'
// Imports the Admin library
const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha;
// Instantiates a client
const adminClient = new AnalyticsAdminServiceClient();
async function callAuditUserLinks() {
// Construct request
const request = {
parent,
};
// Run request
const iterable = await adminClient.auditUserLinksAsync(request);
for await (const response of iterable) {
console.log(response);
}
}
callAuditUserLinks();
auditUserLinksStream(request, optionsopt) → {Stream}
Equivalent to method.name.toCamelCase()
, but returns a NodeJS Stream object.
Parameters:
Name | Type | Attributes | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
Returns:
Type | Description |
---|---|
Stream |
An object stream which emits an object representing AuditUserLink on 'data' event.
The client library will perform auto-pagination by default: it will call the API as many
times as needed. Note that it can affect your quota.
We recommend using |
close() → {Promise}
Terminate the gRPC channel and close the client.
The client will no longer be usable and all future behavior is undefined.
Returns:
Type | Description |
---|---|
Promise |
A promise that resolves when the client is closed. |
conversionEventPath(property, conversion_event) → {string}
Return a fully-qualified conversionEvent resource name string.
Parameters:
Name | Type | Description |
---|---|---|
property |
string | |
conversion_event |
string |
Returns:
Type | Description |
---|---|
string |
Resource name string. |
customDimensionPath(property, custom_dimension) → {string}
Return a fully-qualified customDimension resource name string.
Parameters:
Name | Type | Description |
---|---|---|
property |
string | |
custom_dimension |
string |
Returns:
Type | Description |
---|---|
string |
Resource name string. |
customMetricPath(property, custom_metric) → {string}
Return a fully-qualified customMetric resource name string.
Parameters:
Name | Type | Description |
---|---|---|
property |
string | |
custom_metric |
string |
Returns:
Type | Description |
---|---|
string |
Resource name string. |
dataRetentionSettingsPath(property) → {string}
Return a fully-qualified dataRetentionSettings resource name string.
Parameters:
Name | Type | Description |
---|---|---|
property |
string |
Returns:
Type | Description |
---|---|
string |
Resource name string. |
dataSharingSettingsPath(account) → {string}
Return a fully-qualified dataSharingSettings resource name string.
Parameters:
Name | Type | Description |
---|---|---|
account |
string |
Returns:
Type | Description |
---|---|
string |
Resource name string. |
dataStreamPath(property, data_stream) → {string}
Return a fully-qualified dataStream resource name string.
Parameters:
Name | Type | Description |
---|---|---|
property |
string | |
data_stream |
string |
Returns:
Type | Description |
---|---|
string |
Resource name string. |
displayVideo360AdvertiserLinkPath(property) → {string}
Return a fully-qualified displayVideo360AdvertiserLink resource name string.
Parameters:
Name | Type | Description |
---|---|---|
property |
string |
Returns:
Type | Description |
---|---|
string |
Resource name string. |
displayVideo360AdvertiserLinkProposalPath(property) → {string}
Return a fully-qualified displayVideo360AdvertiserLinkProposal resource name string.
Parameters:
Name | Type | Description |
---|---|---|
property |
string |
Returns:
Type | Description |
---|---|
string |
Resource name string. |
firebaseLinkPath(property, firebase_link) → {string}
Return a fully-qualified firebaseLink resource name string.
Parameters:
Name | Type | Description |
---|---|---|
property |
string | |
firebase_link |
string |
Returns:
Type | Description |
---|---|
string |
Resource name string. |
getProjectId() → {Promise}
Return the project ID used by this class.
Returns:
Type | Description |
---|---|
Promise |
A promise that resolves to string containing the project ID. |
globalSiteTagPath(property, data_stream) → {string}
Return a fully-qualified globalSiteTag resource name string.
Parameters:
Name | Type | Description |
---|---|---|
property |
string | |
data_stream |
string |
Returns:
Type | Description |
---|---|
string |
Resource name string. |
googleAdsLinkPath(property, google_ads_link) → {string}
Return a fully-qualified googleAdsLink resource name string.
Parameters:
Name | Type | Description |
---|---|---|
property |
string | |
google_ads_link |
string |
Returns:
Type | Description |
---|---|
string |
Resource name string. |
googleSignalsSettingsPath(property) → {string}
Return a fully-qualified googleSignalsSettings resource name string.
Parameters:
Name | Type | Description |
---|---|---|
property |
string |
Returns:
Type | Description |
---|---|
string |
Resource name string. |
initialize() → {Promise}
Initialize the client. Performs asynchronous operations (such as authentication) and prepares the client. This function will be called automatically when any class method is called for the first time, but if you need to initialize it before calling an actual method, feel free to call initialize() directly.
You can await on this method if you want to make sure the client is initialized.
Returns:
Type | Description |
---|---|
Promise |
A promise that resolves to an authenticated service stub. |
listAccountsAsync(request, optionsopt) → {Object}
Equivalent to listAccounts
, but returns an iterable object.
for
-await
-of
syntax is used with the iterable to get response elements on-demand.
Parameters:
Name | Type | Attributes | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
Returns:
Type | Description |
---|---|
Object |
An iterable Object that allows async iteration. When you iterate the returned iterable, each element will be an object representing Account. The API will be called under the hood as needed, once per the page, so you can stop the iteration when you don't need more results. Please see the documentation for more details and examples. |
Example
/**
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* The maximum number of resources to return. The service may return
* fewer than this value, even if there are additional pages.
* If unspecified, at most 50 resources will be returned.
* The maximum value is 200; (higher values will be coerced to the maximum)
*/
// const pageSize = 1234
/**
* A page token, received from a previous `ListAccounts` call.
* Provide this to retrieve the subsequent page.
* When paginating, all other parameters provided to `ListAccounts` must
* match the call that provided the page token.
*/
// const pageToken = 'abc123'
/**
* Whether to include soft-deleted (ie: "trashed") Accounts in the
* results. Accounts can be inspected to determine whether they are deleted or
* not.
*/
// const showDeleted = true
// Imports the Admin library
const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha;
// Instantiates a client
const adminClient = new AnalyticsAdminServiceClient();
async function callListAccounts() {
// Construct request
const request = {
};
// Run request
const iterable = await adminClient.listAccountsAsync(request);
for await (const response of iterable) {
console.log(response);
}
}
callListAccounts();
listAccountsStream(request, optionsopt) → {Stream}
Equivalent to method.name.toCamelCase()
, but returns a NodeJS Stream object.
Parameters:
Name | Type | Attributes | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
Returns:
Type | Description |
---|---|
Stream |
An object stream which emits an object representing Account on 'data' event.
The client library will perform auto-pagination by default: it will call the API as many
times as needed. Note that it can affect your quota.
We recommend using |
listAccountSummariesAsync(request, optionsopt) → {Object}
Equivalent to listAccountSummaries
, but returns an iterable object.
for
-await
-of
syntax is used with the iterable to get response elements on-demand.
Parameters:
Name | Type | Attributes | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
Returns:
Type | Description |
---|---|
Object |
An iterable Object that allows async iteration. When you iterate the returned iterable, each element will be an object representing AccountSummary. The API will be called under the hood as needed, once per the page, so you can stop the iteration when you don't need more results. Please see the documentation for more details and examples. |
Example
/**
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* The maximum number of AccountSummary resources to return. The service may
* return fewer than this value, even if there are additional pages.
* If unspecified, at most 50 resources will be returned.
* The maximum value is 200; (higher values will be coerced to the maximum)
*/
// const pageSize = 1234
/**
* A page token, received from a previous `ListAccountSummaries` call.
* Provide this to retrieve the subsequent page.
* When paginating, all other parameters provided to `ListAccountSummaries`
* must match the call that provided the page token.
*/
// const pageToken = 'abc123'
// Imports the Admin library
const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha;
// Instantiates a client
const adminClient = new AnalyticsAdminServiceClient();
async function callListAccountSummaries() {
// Construct request
const request = {
};
// Run request
const iterable = await adminClient.listAccountSummariesAsync(request);
for await (const response of iterable) {
console.log(response);
}
}
callListAccountSummaries();
listAccountSummariesStream(request, optionsopt) → {Stream}
Equivalent to method.name.toCamelCase()
, but returns a NodeJS Stream object.
Parameters:
Name | Type | Attributes | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
Returns:
Type | Description |
---|---|
Stream |
An object stream which emits an object representing AccountSummary on 'data' event.
The client library will perform auto-pagination by default: it will call the API as many
times as needed. Note that it can affect your quota.
We recommend using |
listConversionEventsAsync(request, optionsopt) → {Object}
Equivalent to listConversionEvents
, but returns an iterable object.
for
-await
-of
syntax is used with the iterable to get response elements on-demand.
Parameters:
Name | Type | Attributes | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
Returns:
Type | Description |
---|---|
Object |
An iterable Object that allows async iteration. When you iterate the returned iterable, each element will be an object representing ConversionEvent. The API will be called under the hood as needed, once per the page, so you can stop the iteration when you don't need more results. Please see the documentation for more details and examples. |
Example
/**
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. The resource name of the parent property.
* Example: 'properties/123'
*/
// const parent = 'abc123'
/**
* The maximum number of resources to return.
* If unspecified, at most 50 resources will be returned.
* The maximum value is 200; (higher values will be coerced to the maximum)
*/
// const pageSize = 1234
/**
* A page token, received from a previous `ListConversionEvents` call.
* Provide this to retrieve the subsequent page.
* When paginating, all other parameters provided to `ListConversionEvents`
* must match the call that provided the page token.
*/
// const pageToken = 'abc123'
// Imports the Admin library
const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha;
// Instantiates a client
const adminClient = new AnalyticsAdminServiceClient();
async function callListConversionEvents() {
// Construct request
const request = {
parent,
};
// Run request
const iterable = await adminClient.listConversionEventsAsync(request);
for await (const response of iterable) {
console.log(response);
}
}
callListConversionEvents();
listConversionEventsStream(request, optionsopt) → {Stream}
Equivalent to method.name.toCamelCase()
, but returns a NodeJS Stream object.
Parameters:
Name | Type | Attributes | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
Returns:
Type | Description |
---|---|
Stream |
An object stream which emits an object representing ConversionEvent on 'data' event.
The client library will perform auto-pagination by default: it will call the API as many
times as needed. Note that it can affect your quota.
We recommend using |
listCustomDimensionsAsync(request, optionsopt) → {Object}
Equivalent to listCustomDimensions
, but returns an iterable object.
for
-await
-of
syntax is used with the iterable to get response elements on-demand.
Parameters:
Name | Type | Attributes | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
Returns:
Type | Description |
---|---|
Object |
An iterable Object that allows async iteration. When you iterate the returned iterable, each element will be an object representing CustomDimension. The API will be called under the hood as needed, once per the page, so you can stop the iteration when you don't need more results. Please see the documentation for more details and examples. |
Example
/**
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. Example format: properties/1234
*/
// const parent = 'abc123'
/**
* The maximum number of resources to return.
* If unspecified, at most 50 resources will be returned.
* The maximum value is 200 (higher values will be coerced to the maximum).
*/
// const pageSize = 1234
/**
* A page token, received from a previous `ListCustomDimensions` call.
* Provide this to retrieve the subsequent page.
* When paginating, all other parameters provided to `ListCustomDimensions`
* must match the call that provided the page token.
*/
// const pageToken = 'abc123'
// Imports the Admin library
const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha;
// Instantiates a client
const adminClient = new AnalyticsAdminServiceClient();
async function callListCustomDimensions() {
// Construct request
const request = {
parent,
};
// Run request
const iterable = await adminClient.listCustomDimensionsAsync(request);
for await (const response of iterable) {
console.log(response);
}
}
callListCustomDimensions();
listCustomDimensionsStream(request, optionsopt) → {Stream}
Equivalent to method.name.toCamelCase()
, but returns a NodeJS Stream object.
Parameters:
Name | Type | Attributes | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
Returns:
Type | Description |
---|---|
Stream |
An object stream which emits an object representing CustomDimension on 'data' event.
The client library will perform auto-pagination by default: it will call the API as many
times as needed. Note that it can affect your quota.
We recommend using |
listCustomMetricsAsync(request, optionsopt) → {Object}
Equivalent to listCustomMetrics
, but returns an iterable object.
for
-await
-of
syntax is used with the iterable to get response elements on-demand.
Parameters:
Name | Type | Attributes | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
Returns:
Type | Description |
---|---|
Object |
An iterable Object that allows async iteration. When you iterate the returned iterable, each element will be an object representing CustomMetric. The API will be called under the hood as needed, once per the page, so you can stop the iteration when you don't need more results. Please see the documentation for more details and examples. |
Example
/**
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. Example format: properties/1234
*/
// const parent = 'abc123'
/**
* The maximum number of resources to return.
* If unspecified, at most 50 resources will be returned.
* The maximum value is 200 (higher values will be coerced to the maximum).
*/
// const pageSize = 1234
/**
* A page token, received from a previous `ListCustomMetrics` call.
* Provide this to retrieve the subsequent page.
* When paginating, all other parameters provided to `ListCustomMetrics` must
* match the call that provided the page token.
*/
// const pageToken = 'abc123'
// Imports the Admin library
const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha;
// Instantiates a client
const adminClient = new AnalyticsAdminServiceClient();
async function callListCustomMetrics() {
// Construct request
const request = {
parent,
};
// Run request
const iterable = await adminClient.listCustomMetricsAsync(request);
for await (const response of iterable) {
console.log(response);
}
}
callListCustomMetrics();
listCustomMetricsStream(request, optionsopt) → {Stream}
Equivalent to method.name.toCamelCase()
, but returns a NodeJS Stream object.
Parameters:
Name | Type | Attributes | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
Returns:
Type | Description |
---|---|
Stream |
An object stream which emits an object representing CustomMetric on 'data' event.
The client library will perform auto-pagination by default: it will call the API as many
times as needed. Note that it can affect your quota.
We recommend using |
listDataStreamsAsync(request, optionsopt) → {Object}
Equivalent to listDataStreams
, but returns an iterable object.
for
-await
-of
syntax is used with the iterable to get response elements on-demand.
Parameters:
Name | Type | Attributes | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
Returns:
Type | Description |
---|---|
Object |
An iterable Object that allows async iteration. When you iterate the returned iterable, each element will be an object representing DataStream. The API will be called under the hood as needed, once per the page, so you can stop the iteration when you don't need more results. Please see the documentation for more details and examples. |
Example
/**
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. Example format: properties/1234
*/
// const parent = 'abc123'
/**
* The maximum number of resources to return.
* If unspecified, at most 50 resources will be returned.
* The maximum value is 200 (higher values will be coerced to the maximum).
*/
// const pageSize = 1234
/**
* A page token, received from a previous `ListDataStreams` call.
* Provide this to retrieve the subsequent page.
* When paginating, all other parameters provided to `ListDataStreams` must
* match the call that provided the page token.
*/
// const pageToken = 'abc123'
// Imports the Admin library
const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha;
// Instantiates a client
const adminClient = new AnalyticsAdminServiceClient();
async function callListDataStreams() {
// Construct request
const request = {
parent,
};
// Run request
const iterable = await adminClient.listDataStreamsAsync(request);
for await (const response of iterable) {
console.log(response);
}
}
callListDataStreams();
listDataStreamsStream(request, optionsopt) → {Stream}
Equivalent to method.name.toCamelCase()
, but returns a NodeJS Stream object.
Parameters:
Name | Type | Attributes | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
Returns:
Type | Description |
---|---|
Stream |
An object stream which emits an object representing DataStream on 'data' event.
The client library will perform auto-pagination by default: it will call the API as many
times as needed. Note that it can affect your quota.
We recommend using |
listDisplayVideo360AdvertiserLinkProposalsAsync(request, optionsopt) → {Object}
Equivalent to listDisplayVideo360AdvertiserLinkProposals
, but returns an iterable object.
for
-await
-of
syntax is used with the iterable to get response elements on-demand.
Parameters:
Name | Type | Attributes | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
Returns:
Type | Description |
---|---|
Object |
An iterable Object that allows async iteration. When you iterate the returned iterable, each element will be an object representing DisplayVideo360AdvertiserLinkProposal. The API will be called under the hood as needed, once per the page, so you can stop the iteration when you don't need more results. Please see the documentation for more details and examples. |
Example
/**
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. Example format: properties/1234
*/
// const parent = 'abc123'
/**
* The maximum number of resources to return.
* If unspecified, at most 50 resources will be returned.
* The maximum value is 200 (higher values will be coerced to the maximum).
*/
// const pageSize = 1234
/**
* A page token, received from a previous
* `ListDisplayVideo360AdvertiserLinkProposals` call. Provide this to retrieve
* the subsequent page.
* When paginating, all other parameters provided to
* `ListDisplayVideo360AdvertiserLinkProposals` must match the call that
* provided the page token.
*/
// const pageToken = 'abc123'
// Imports the Admin library
const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha;
// Instantiates a client
const adminClient = new AnalyticsAdminServiceClient();
async function callListDisplayVideo360AdvertiserLinkProposals() {
// Construct request
const request = {
parent,
};
// Run request
const iterable = await adminClient.listDisplayVideo360AdvertiserLinkProposalsAsync(request);
for await (const response of iterable) {
console.log(response);
}
}
callListDisplayVideo360AdvertiserLinkProposals();
listDisplayVideo360AdvertiserLinkProposalsStream(request, optionsopt) → {Stream}
Equivalent to method.name.toCamelCase()
, but returns a NodeJS Stream object.
Parameters:
Name | Type | Attributes | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
Returns:
Type | Description |
---|---|
Stream |
An object stream which emits an object representing DisplayVideo360AdvertiserLinkProposal on 'data' event.
The client library will perform auto-pagination by default: it will call the API as many
times as needed. Note that it can affect your quota.
We recommend using |
listDisplayVideo360AdvertiserLinksAsync(request, optionsopt) → {Object}
Equivalent to listDisplayVideo360AdvertiserLinks
, but returns an iterable object.
for
-await
-of
syntax is used with the iterable to get response elements on-demand.
Parameters:
Name | Type | Attributes | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
Returns:
Type | Description |
---|---|
Object |
An iterable Object that allows async iteration. When you iterate the returned iterable, each element will be an object representing DisplayVideo360AdvertiserLink. The API will be called under the hood as needed, once per the page, so you can stop the iteration when you don't need more results. Please see the documentation for more details and examples. |
Example
/**
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. Example format: properties/1234
*/
// const parent = 'abc123'
/**
* The maximum number of resources to return.
* If unspecified, at most 50 resources will be returned.
* The maximum value is 200 (higher values will be coerced to the maximum).
*/
// const pageSize = 1234
/**
* A page token, received from a previous `ListDisplayVideo360AdvertiserLinks`
* call. Provide this to retrieve the subsequent page.
* When paginating, all other parameters provided to
* `ListDisplayVideo360AdvertiserLinks` must match the call that provided the
* page token.
*/
// const pageToken = 'abc123'
// Imports the Admin library
const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha;
// Instantiates a client
const adminClient = new AnalyticsAdminServiceClient();
async function callListDisplayVideo360AdvertiserLinks() {
// Construct request
const request = {
parent,
};
// Run request
const iterable = await adminClient.listDisplayVideo360AdvertiserLinksAsync(request);
for await (const response of iterable) {
console.log(response);
}
}
callListDisplayVideo360AdvertiserLinks();
listDisplayVideo360AdvertiserLinksStream(request, optionsopt) → {Stream}
Equivalent to method.name.toCamelCase()
, but returns a NodeJS Stream object.
Parameters:
Name | Type | Attributes | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
Returns:
Type | Description |
---|---|
Stream |
An object stream which emits an object representing DisplayVideo360AdvertiserLink on 'data' event.
The client library will perform auto-pagination by default: it will call the API as many
times as needed. Note that it can affect your quota.
We recommend using |
listFirebaseLinksAsync(request, optionsopt) → {Object}
Equivalent to listFirebaseLinks
, but returns an iterable object.
for
-await
-of
syntax is used with the iterable to get response elements on-demand.
Parameters:
Name | Type | Attributes | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
Returns:
Type | Description |
---|---|
Object |
An iterable Object that allows async iteration. When you iterate the returned iterable, each element will be an object representing FirebaseLink. The API will be called under the hood as needed, once per the page, so you can stop the iteration when you don't need more results. Please see the documentation for more details and examples. |
Example
/**
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. Format: properties/{property_id}
* Example: properties/1234
*/
// const parent = 'abc123'
/**
* The maximum number of resources to return. The service may return
* fewer than this value, even if there are additional pages.
* If unspecified, at most 50 resources will be returned.
* The maximum value is 200; (higher values will be coerced to the maximum)
*/
// const pageSize = 1234
/**
* A page token, received from a previous `ListFirebaseLinks` call.
* Provide this to retrieve the subsequent page.
* When paginating, all other parameters provided to `ListProperties` must
* match the call that provided the page token.
*/
// const pageToken = 'abc123'
// Imports the Admin library
const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha;
// Instantiates a client
const adminClient = new AnalyticsAdminServiceClient();
async function callListFirebaseLinks() {
// Construct request
const request = {
parent,
};
// Run request
const iterable = await adminClient.listFirebaseLinksAsync(request);
for await (const response of iterable) {
console.log(response);
}
}
callListFirebaseLinks();
listFirebaseLinksStream(request, optionsopt) → {Stream}
Equivalent to method.name.toCamelCase()
, but returns a NodeJS Stream object.
Parameters:
Name | Type | Attributes | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
Returns:
Type | Description |
---|---|
Stream |
An object stream which emits an object representing FirebaseLink on 'data' event.
The client library will perform auto-pagination by default: it will call the API as many
times as needed. Note that it can affect your quota.
We recommend using |
listGoogleAdsLinksAsync(request, optionsopt) → {Object}
Equivalent to listGoogleAdsLinks
, but returns an iterable object.
for
-await
-of
syntax is used with the iterable to get response elements on-demand.
Parameters:
Name | Type | Attributes | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
Returns:
Type | Description |
---|---|
Object |
An iterable Object that allows async iteration. When you iterate the returned iterable, each element will be an object representing GoogleAdsLink. The API will be called under the hood as needed, once per the page, so you can stop the iteration when you don't need more results. Please see the documentation for more details and examples. |
Example
/**
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. Example format: properties/1234
*/
// const parent = 'abc123'
/**
* The maximum number of resources to return.
* If unspecified, at most 50 resources will be returned.
* The maximum value is 200 (higher values will be coerced to the maximum).
*/
// const pageSize = 1234
/**
* A page token, received from a previous `ListGoogleAdsLinks` call.
* Provide this to retrieve the subsequent page.
* When paginating, all other parameters provided to `ListGoogleAdsLinks` must
* match the call that provided the page token.
*/
// const pageToken = 'abc123'
// Imports the Admin library
const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha;
// Instantiates a client
const adminClient = new AnalyticsAdminServiceClient();
async function callListGoogleAdsLinks() {
// Construct request
const request = {
parent,
};
// Run request
const iterable = await adminClient.listGoogleAdsLinksAsync(request);
for await (const response of iterable) {
console.log(response);
}
}
callListGoogleAdsLinks();
listGoogleAdsLinksStream(request, optionsopt) → {Stream}
Equivalent to method.name.toCamelCase()
, but returns a NodeJS Stream object.
Parameters:
Name | Type | Attributes | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
Returns:
Type | Description |
---|---|
Stream |
An object stream which emits an object representing GoogleAdsLink on 'data' event.
The client library will perform auto-pagination by default: it will call the API as many
times as needed. Note that it can affect your quota.
We recommend using |
listMeasurementProtocolSecretsAsync(request, optionsopt) → {Object}
Equivalent to listMeasurementProtocolSecrets
, but returns an iterable object.
for
-await
-of
syntax is used with the iterable to get response elements on-demand.
Parameters:
Name | Type | Attributes | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
Returns:
Type | Description |
---|---|
Object |
An iterable Object that allows async iteration. When you iterate the returned iterable, each element will be an object representing MeasurementProtocolSecret. The API will be called under the hood as needed, once per the page, so you can stop the iteration when you don't need more results. Please see the documentation for more details and examples. |
Example
/**
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. The resource name of the parent stream.
* Format:
* properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets
*/
// const parent = 'abc123'
/**
* The maximum number of resources to return.
* If unspecified, at most 10 resources will be returned.
* The maximum value is 10. Higher values will be coerced to the maximum.
*/
// const pageSize = 1234
/**
* A page token, received from a previous `ListMeasurementProtocolSecrets`
* call. Provide this to retrieve the subsequent page. When paginating, all
* other parameters provided to `ListMeasurementProtocolSecrets` must match
* the call that provided the page token.
*/
// const pageToken = 'abc123'
// Imports the Admin library
const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha;
// Instantiates a client
const adminClient = new AnalyticsAdminServiceClient();
async function callListMeasurementProtocolSecrets() {
// Construct request
const request = {
parent,
};
// Run request
const iterable = await adminClient.listMeasurementProtocolSecretsAsync(request);
for await (const response of iterable) {
console.log(response);
}
}
callListMeasurementProtocolSecrets();
listMeasurementProtocolSecretsStream(request, optionsopt) → {Stream}
Equivalent to method.name.toCamelCase()
, but returns a NodeJS Stream object.
Parameters:
Name | Type | Attributes | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
Returns:
Type | Description |
---|---|
Stream |
An object stream which emits an object representing MeasurementProtocolSecret on 'data' event.
The client library will perform auto-pagination by default: it will call the API as many
times as needed. Note that it can affect your quota.
We recommend using |
listPropertiesAsync(request, optionsopt) → {Object}
Equivalent to listProperties
, but returns an iterable object.
for
-await
-of
syntax is used with the iterable to get response elements on-demand.
Parameters:
Name | Type | Attributes | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
||||||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
Returns:
Type | Description |
---|---|
Object |
An iterable Object that allows async iteration. When you iterate the returned iterable, each element will be an object representing Property. The API will be called under the hood as needed, once per the page, so you can stop the iteration when you don't need more results. Please see the documentation for more details and examples. |
Example
/**
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. An expression for filtering the results of the request.
* Fields eligible for filtering are:
* `parent:`(The resource name of the parent account/property) or
* `ancestor:`(The resource name of the parent account) or
* `firebase_project:`(The id or number of the linked firebase project).
* Some examples of filters:
* ```
* | Filter | Description |
* |-----------------------------|-------------------------------------------|
* | parent:accounts/123 | The account with account id: 123. |
* | parent:properties/123 | The property with property id: 123. |
* | ancestor:accounts/123 | The account with account id: 123. |
* | firebase_project:project-id | The firebase project with id: project-id. |
* | firebase_project:123 | The firebase project with number: 123. |
* ```
*/
// const filter = 'abc123'
/**
* The maximum number of resources to return. The service may return
* fewer than this value, even if there are additional pages.
* If unspecified, at most 50 resources will be returned.
* The maximum value is 200; (higher values will be coerced to the maximum)
*/
// const pageSize = 1234
/**
* A page token, received from a previous `ListProperties` call.
* Provide this to retrieve the subsequent page.
* When paginating, all other parameters provided to `ListProperties` must
* match the call that provided the page token.
*/
// const pageToken = 'abc123'
/**
* Whether to include soft-deleted (ie: "trashed") Properties in the
* results. Properties can be inspected to determine whether they are deleted
* or not.
*/
// const showDeleted = true
// Imports the Admin library
const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha;
// Instantiates a client
const adminClient = new AnalyticsAdminServiceClient();
async function callListProperties() {
// Construct request
const request = {
filter,
};
// Run request
const iterable = await adminClient.listPropertiesAsync(request);
for await (const response of iterable) {
console.log(response);
}
}
callListProperties();
listPropertiesStream(request, optionsopt) → {Stream}
Equivalent to method.name.toCamelCase()
, but returns a NodeJS Stream object.
Parameters:
Name | Type | Attributes | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
||||||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
Returns:
Type | Description |
---|---|
Stream |
An object stream which emits an object representing Property on 'data' event.
The client library will perform auto-pagination by default: it will call the API as many
times as needed. Note that it can affect your quota.
We recommend using |
listUserLinksAsync(request, optionsopt) → {Object}
Equivalent to listUserLinks
, but returns an iterable object.
for
-await
-of
syntax is used with the iterable to get response elements on-demand.
Parameters:
Name | Type | Attributes | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
Returns:
Type | Description |
---|---|
Object |
An iterable Object that allows async iteration. When you iterate the returned iterable, each element will be an object representing UserLink. The API will be called under the hood as needed, once per the page, so you can stop the iteration when you don't need more results. Please see the documentation for more details and examples. |
Example
/**
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. Example format: accounts/1234
*/
// const parent = 'abc123'
/**
* The maximum number of user links to return.
* The service may return fewer than this value.
* If unspecified, at most 200 user links will be returned.
* The maximum value is 500; values above 500 will be coerced to 500.
*/
// const pageSize = 1234
/**
* A page token, received from a previous `ListUserLinks` call.
* Provide this to retrieve the subsequent page.
* When paginating, all other parameters provided to `ListUserLinks` must
* match the call that provided the page token.
*/
// const pageToken = 'abc123'
// Imports the Admin library
const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha;
// Instantiates a client
const adminClient = new AnalyticsAdminServiceClient();
async function callListUserLinks() {
// Construct request
const request = {
parent,
};
// Run request
const iterable = await adminClient.listUserLinksAsync(request);
for await (const response of iterable) {
console.log(response);
}
}
callListUserLinks();
listUserLinksStream(request, optionsopt) → {Stream}
Equivalent to method.name.toCamelCase()
, but returns a NodeJS Stream object.
Parameters:
Name | Type | Attributes | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
Returns:
Type | Description |
---|---|
Stream |
An object stream which emits an object representing UserLink on 'data' event.
The client library will perform auto-pagination by default: it will call the API as many
times as needed. Note that it can affect your quota.
We recommend using |
matchAccountFromAccountName(accountName) → {string}
Parse the account from Account resource.
Parameters:
Name | Type | Description |
---|---|---|
accountName |
string |
A fully-qualified path representing Account resource. |
Returns:
Type | Description |
---|---|
string |
A string representing the account. |
matchAccountFromAccountUserLinkName(accountUserLinkName) → {string}
Parse the account from AccountUserLink resource.
Parameters:
Name | Type | Description |
---|---|---|
accountUserLinkName |
string |
A fully-qualified path representing account_user_link resource. |
Returns:
Type | Description |
---|---|
string |
A string representing the account. |
matchAccountFromDataSharingSettingsName(dataSharingSettingsName) → {string}
Parse the account from DataSharingSettings resource.
Parameters:
Name | Type | Description |
---|---|---|
dataSharingSettingsName |
string |
A fully-qualified path representing DataSharingSettings resource. |
Returns:
Type | Description |
---|---|
string |
A string representing the account. |
matchAccountSummaryFromAccountSummaryName(accountSummaryName) → {string}
Parse the account_summary from AccountSummary resource.
Parameters:
Name | Type | Description |
---|---|---|
accountSummaryName |
string |
A fully-qualified path representing AccountSummary resource. |
Returns:
Type | Description |
---|---|
string |
A string representing the account_summary. |
matchConversionEventFromConversionEventName(conversionEventName) → {string}
Parse the conversion_event from ConversionEvent resource.
Parameters:
Name | Type | Description |
---|---|---|
conversionEventName |
string |
A fully-qualified path representing ConversionEvent resource. |
Returns:
Type | Description |
---|---|
string |
A string representing the conversion_event. |
matchCustomDimensionFromCustomDimensionName(customDimensionName) → {string}
Parse the custom_dimension from CustomDimension resource.
Parameters:
Name | Type | Description |
---|---|---|
customDimensionName |
string |
A fully-qualified path representing CustomDimension resource. |
Returns:
Type | Description |
---|---|
string |
A string representing the custom_dimension. |
matchCustomMetricFromCustomMetricName(customMetricName) → {string}
Parse the custom_metric from CustomMetric resource.
Parameters:
Name | Type | Description |
---|---|---|
customMetricName |
string |
A fully-qualified path representing CustomMetric resource. |
Returns:
Type | Description |
---|---|
string |
A string representing the custom_metric. |
matchDataStreamFromDataStreamName(dataStreamName) → {string}
Parse the data_stream from DataStream resource.
Parameters:
Name | Type | Description |
---|---|---|
dataStreamName |
string |
A fully-qualified path representing DataStream resource. |
Returns:
Type | Description |
---|---|
string |
A string representing the data_stream. |
matchDataStreamFromGlobalSiteTagName(globalSiteTagName) → {string}
Parse the data_stream from GlobalSiteTag resource.
Parameters:
Name | Type | Description |
---|---|---|
globalSiteTagName |
string |
A fully-qualified path representing GlobalSiteTag resource. |
Returns:
Type | Description |
---|---|
string |
A string representing the data_stream. |
matchDataStreamFromMeasurementProtocolSecretName(measurementProtocolSecretName) → {string}
Parse the data_stream from MeasurementProtocolSecret resource.
Parameters:
Name | Type | Description |
---|---|---|
measurementProtocolSecretName |
string |
A fully-qualified path representing MeasurementProtocolSecret resource. |
Returns:
Type | Description |
---|---|
string |
A string representing the data_stream. |
matchFirebaseLinkFromFirebaseLinkName(firebaseLinkName) → {string}
Parse the firebase_link from FirebaseLink resource.
Parameters:
Name | Type | Description |
---|---|---|
firebaseLinkName |
string |
A fully-qualified path representing FirebaseLink resource. |
Returns:
Type | Description |
---|---|
string |
A string representing the firebase_link. |
matchGoogleAdsLinkFromGoogleAdsLinkName(googleAdsLinkName) → {string}
Parse the google_ads_link from GoogleAdsLink resource.
Parameters:
Name | Type | Description |
---|---|---|
googleAdsLinkName |
string |
A fully-qualified path representing GoogleAdsLink resource. |
Returns:
Type | Description |
---|---|
string |
A string representing the google_ads_link. |
matchMeasurementProtocolSecretFromMeasurementProtocolSecretName(measurementProtocolSecretName) → {string}
Parse the measurement_protocol_secret from MeasurementProtocolSecret resource.
Parameters:
Name | Type | Description |
---|---|---|
measurementProtocolSecretName |
string |
A fully-qualified path representing MeasurementProtocolSecret resource. |
Returns:
Type | Description |
---|---|
string |
A string representing the measurement_protocol_secret. |
matchPropertyFromConversionEventName(conversionEventName) → {string}
Parse the property from ConversionEvent resource.
Parameters:
Name | Type | Description |
---|---|---|
conversionEventName |
string |
A fully-qualified path representing ConversionEvent resource. |
Returns:
Type | Description |
---|---|
string |
A string representing the property. |
matchPropertyFromCustomDimensionName(customDimensionName) → {string}
Parse the property from CustomDimension resource.
Parameters:
Name | Type | Description |
---|---|---|
customDimensionName |
string |
A fully-qualified path representing CustomDimension resource. |
Returns:
Type | Description |
---|---|
string |
A string representing the property. |
matchPropertyFromCustomMetricName(customMetricName) → {string}
Parse the property from CustomMetric resource.
Parameters:
Name | Type | Description |
---|---|---|
customMetricName |
string |
A fully-qualified path representing CustomMetric resource. |
Returns:
Type | Description |
---|---|
string |
A string representing the property. |
matchPropertyFromDataRetentionSettingsName(dataRetentionSettingsName) → {string}
Parse the property from DataRetentionSettings resource.
Parameters:
Name | Type | Description |
---|---|---|
dataRetentionSettingsName |
string |
A fully-qualified path representing DataRetentionSettings resource. |
Returns:
Type | Description |
---|---|
string |
A string representing the property. |
matchPropertyFromDataStreamName(dataStreamName) → {string}
Parse the property from DataStream resource.
Parameters:
Name | Type | Description |
---|---|---|
dataStreamName |
string |
A fully-qualified path representing DataStream resource. |
Returns:
Type | Description |
---|---|
string |
A string representing the property. |
matchPropertyFromDisplayVideo360AdvertiserLinkName(displayVideo360AdvertiserLinkName) → {string}
Parse the property from DisplayVideo360AdvertiserLink resource.
Parameters:
Name | Type | Description |
---|---|---|
displayVideo360AdvertiserLinkName |
string |
A fully-qualified path representing DisplayVideo360AdvertiserLink resource. |
Returns:
Type | Description |
---|---|
string |
A string representing the property. |
matchPropertyFromDisplayVideo360AdvertiserLinkProposalName(displayVideo360AdvertiserLinkProposalName) → {string}
Parse the property from DisplayVideo360AdvertiserLinkProposal resource.
Parameters:
Name | Type | Description |
---|---|---|
displayVideo360AdvertiserLinkProposalName |
string |
A fully-qualified path representing DisplayVideo360AdvertiserLinkProposal resource. |
Returns:
Type | Description |
---|---|
string |
A string representing the property. |
matchPropertyFromFirebaseLinkName(firebaseLinkName) → {string}
Parse the property from FirebaseLink resource.
Parameters:
Name | Type | Description |
---|---|---|
firebaseLinkName |
string |
A fully-qualified path representing FirebaseLink resource. |
Returns:
Type | Description |
---|---|
string |
A string representing the property. |
matchPropertyFromGlobalSiteTagName(globalSiteTagName) → {string}
Parse the property from GlobalSiteTag resource.
Parameters:
Name | Type | Description |
---|---|---|
globalSiteTagName |
string |
A fully-qualified path representing GlobalSiteTag resource. |
Returns:
Type | Description |
---|---|
string |
A string representing the property. |
matchPropertyFromGoogleAdsLinkName(googleAdsLinkName) → {string}
Parse the property from GoogleAdsLink resource.
Parameters:
Name | Type | Description |
---|---|---|
googleAdsLinkName |
string |
A fully-qualified path representing GoogleAdsLink resource. |
Returns:
Type | Description |
---|---|
string |
A string representing the property. |
matchPropertyFromGoogleSignalsSettingsName(googleSignalsSettingsName) → {string}
Parse the property from GoogleSignalsSettings resource.
Parameters:
Name | Type | Description |
---|---|---|
googleSignalsSettingsName |
string |
A fully-qualified path representing GoogleSignalsSettings resource. |
Returns:
Type | Description |
---|---|
string |
A string representing the property. |
matchPropertyFromMeasurementProtocolSecretName(measurementProtocolSecretName) → {string}
Parse the property from MeasurementProtocolSecret resource.
Parameters:
Name | Type | Description |
---|---|---|
measurementProtocolSecretName |
string |
A fully-qualified path representing MeasurementProtocolSecret resource. |
Returns:
Type | Description |
---|---|
string |
A string representing the property. |
matchPropertyFromPropertyName(propertyName) → {string}
Parse the property from Property resource.
Parameters:
Name | Type | Description |
---|---|---|
propertyName |
string |
A fully-qualified path representing Property resource. |
Returns:
Type | Description |
---|---|
string |
A string representing the property. |
matchPropertyFromPropertyUserLinkName(propertyUserLinkName) → {string}
Parse the property from PropertyUserLink resource.
Parameters:
Name | Type | Description |
---|---|---|
propertyUserLinkName |
string |
A fully-qualified path representing property_user_link resource. |
Returns:
Type | Description |
---|---|
string |
A string representing the property. |
matchUserLinkFromAccountUserLinkName(accountUserLinkName) → {string}
Parse the user_link from AccountUserLink resource.
Parameters:
Name | Type | Description |
---|---|---|
accountUserLinkName |
string |
A fully-qualified path representing account_user_link resource. |
Returns:
Type | Description |
---|---|
string |
A string representing the user_link. |
matchUserLinkFromPropertyUserLinkName(propertyUserLinkName) → {string}
Parse the user_link from PropertyUserLink resource.
Parameters:
Name | Type | Description |
---|---|---|
propertyUserLinkName |
string |
A fully-qualified path representing property_user_link resource. |
Returns:
Type | Description |
---|---|
string |
A string representing the user_link. |
measurementProtocolSecretPath(property, data_stream, measurement_protocol_secret) → {string}
Return a fully-qualified measurementProtocolSecret resource name string.
Parameters:
Name | Type | Description |
---|---|---|
property |
string | |
data_stream |
string | |
measurement_protocol_secret |
string |
Returns:
Type | Description |
---|---|
string |
Resource name string. |
propertyPath(property) → {string}
Return a fully-qualified property resource name string.
Parameters:
Name | Type | Description |
---|---|---|
property |
string |
Returns:
Type | Description |
---|---|
string |
Resource name string. |
propertyUserLinkPath(property, user_link) → {string}
Return a fully-qualified propertyUserLink resource name string.
Parameters:
Name | Type | Description |
---|---|---|
property |
string | |
user_link |
string |
Returns:
Type | Description |
---|---|
string |
Resource name string. |
searchChangeHistoryEventsAsync(request, optionsopt) → {Object}
Equivalent to searchChangeHistoryEvents
, but returns an iterable object.
for
-await
-of
syntax is used with the iterable to get response elements on-demand.
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||||||||||||||||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
Returns:
Type | Description |
---|---|
Object |
An iterable Object that allows async iteration. When you iterate the returned iterable, each element will be an object representing ChangeHistoryEvent. The API will be called under the hood as needed, once per the page, so you can stop the iteration when you don't need more results. Please see the documentation for more details and examples. |
Example
/**
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. The account resource for which to return change history resources.
*/
// const account = 'abc123'
/**
* Optional. Resource name for a child property. If set, only return changes
* made to this property or its child resources.
*/
// const property = 'abc123'
/**
* Optional. If set, only return changes if they are for a resource that matches at
* least one of these types.
*/
// const resourceType = 1234
/**
* Optional. If set, only return changes that match one or more of these types of
* actions.
*/
// const action = 1234
/**
* Optional. If set, only return changes if they are made by a user in this list.
*/
// const actorEmail = 'abc123'
/**
* Optional. If set, only return changes made after this time (inclusive).
*/
// const earliestChangeTime = {}
/**
* Optional. If set, only return changes made before this time (inclusive).
*/
// const latestChangeTime = {}
/**
* Optional. The maximum number of ChangeHistoryEvent items to return.
* The service may return fewer than this value, even if there are additional
* pages. If unspecified, at most 50 items will be returned.
* The maximum value is 200 (higher values will be coerced to the maximum).
*/
// const pageSize = 1234
/**
* Optional. A page token, received from a previous `SearchChangeHistoryEvents` call.
* Provide this to retrieve the subsequent page. When paginating, all other
* parameters provided to `SearchChangeHistoryEvents` must match the call that
* provided the page token.
*/
// const pageToken = 'abc123'
// Imports the Admin library
const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha;
// Instantiates a client
const adminClient = new AnalyticsAdminServiceClient();
async function callSearchChangeHistoryEvents() {
// Construct request
const request = {
account,
};
// Run request
const iterable = await adminClient.searchChangeHistoryEventsAsync(request);
for await (const response of iterable) {
console.log(response);
}
}
callSearchChangeHistoryEvents();
searchChangeHistoryEventsStream(request, optionsopt) → {Stream}
Equivalent to method.name.toCamelCase()
, but returns a NodeJS Stream object.
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||||||||||||||||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
Returns:
Type | Description |
---|---|
Stream |
An object stream which emits an object representing ChangeHistoryEvent on 'data' event.
The client library will perform auto-pagination by default: it will call the API as many
times as needed. Note that it can affect your quota.
We recommend using |