Class v1.UserListGlobalLicenseServiceClient (1.0.0)

Service for managing user list global licenses. Delete is not a supported operation for UserListGlobalLicenses. Callers should update the license status to DISABLED to instead to deactivate a license.

This feature is only available to data partners. v1

Package

@google-ads/datamanager

Constructors

(constructor)(opts, gaxInstance)

constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback);

Construct an instance of UserListGlobalLicenseServiceClient.

Parameters
Name Description
opts ClientOptions
gaxInstance typeof gax | typeof fallback

: loaded instance of google-gax. Useful if you need to avoid loading the default gRPC version and want to use the fallback HTTP implementation. Load only fallback version and pass it to the constructor: ``` const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC const client = new UserListGlobalLicenseServiceClient({fallback: true}, gax); ```

Properties

apiEndpoint

get apiEndpoint(): string;

The DNS address for this API service.

apiEndpoint

static get apiEndpoint(): string;

The DNS address for this API service - same as servicePath.

auth

auth: gax.GoogleAuth;

descriptors

descriptors: Descriptors;

innerApiCalls

innerApiCalls: {
        [name: string]: Function;
    };

pathTemplates

pathTemplates: {
        [name: string]: gax.PathTemplate;
    };

port

static get port(): number;

The port for this API service.

scopes

static get scopes(): string[];

The scopes needed to make gRPC calls for every method defined in this service.

servicePath

static get servicePath(): string;

The DNS address for this API service.

universeDomain

get universeDomain(): string;

userListGlobalLicenseServiceStub

userListGlobalLicenseServiceStub?: Promise<{
        [name: string]: Function;
    }>;

warn

warn: (code: string, message: string, warnType?: string) => void;

Methods

accountPath(accountType, account)

accountPath(accountType: string, account: string): string;

Return a fully-qualified account resource name string.

Parameters
Name Description
accountType string
account string
Returns
Type Description
string

{string} Resource name string.

close()

close(): Promise<void>;

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<void>

{Promise} A promise that resolves when the client is closed.

createUserListGlobalLicense(request, options)

createUserListGlobalLicense(request?: protos.google.ads.datamanager.v1.ICreateUserListGlobalLicenseRequest, options?: CallOptions): Promise<[
        protos.google.ads.datamanager.v1.IUserListGlobalLicense,
        (protos.google.ads.datamanager.v1.ICreateUserListGlobalLicenseRequest | undefined),
        {} | undefined
    ]>;

Creates a user list global license.

This feature is only available to data partners.

Parameters
Name Description
request ICreateUserListGlobalLicenseRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
Type Description
Promise<[ protos.google.ads.datamanager.v1.IUserListGlobalLicense, (protos.google.ads.datamanager.v1.ICreateUserListGlobalLicenseRequest | undefined), {} | undefined ]>

{Promise} - The promise which resolves to an array. The first element of the array is an object representing UserListGlobalLicense. Please see the documentation for more details and examples.

Example

  /**
   * This snippet has been automatically generated and should be regarded as a code template only.
   * It will require modifications to work.
   * It may require correct/in-range values for request initialization.
   * TODO(developer): Uncomment these variables before running the sample.
   */
  /**
   *  Required. The account that owns the user list being licensed. Should be in
   *  the format accountTypes/{ACCOUNT_TYPE}/accounts/{ACCOUNT_ID}
   */
  // const parent = 'abc123'
  /**
   *  Required. The user list global license to create.
   */
  // const userListGlobalLicense = {}

  // Imports the Datamanager library
  const {UserListGlobalLicenseServiceClient} = require('@google-ads/datamanager').v1;

  // Instantiates a client
  const datamanagerClient = new UserListGlobalLicenseServiceClient();

  async function callCreateUserListGlobalLicense() {
    // Construct request
    const request = {
      parent,
      userListGlobalLicense,
    };

    // Run request
    const response = await datamanagerClient.createUserListGlobalLicense(request);
    console.log(response);
  }

  callCreateUserListGlobalLicense();

createUserListGlobalLicense(request, options, callback)

createUserListGlobalLicense(request: protos.google.ads.datamanager.v1.ICreateUserListGlobalLicenseRequest, options: CallOptions, callback: Callback<protos.google.ads.datamanager.v1.IUserListGlobalLicense, protos.google.ads.datamanager.v1.ICreateUserListGlobalLicenseRequest | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request ICreateUserListGlobalLicenseRequest
options CallOptions
callback Callback<protos.google.ads.datamanager.v1.IUserListGlobalLicense, protos.google.ads.datamanager.v1.ICreateUserListGlobalLicenseRequest | null | undefined, {} | null | undefined>
Returns
Type Description
void

createUserListGlobalLicense(request, callback)

createUserListGlobalLicense(request: protos.google.ads.datamanager.v1.ICreateUserListGlobalLicenseRequest, callback: Callback<protos.google.ads.datamanager.v1.IUserListGlobalLicense, protos.google.ads.datamanager.v1.ICreateUserListGlobalLicenseRequest | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request ICreateUserListGlobalLicenseRequest
callback Callback<protos.google.ads.datamanager.v1.IUserListGlobalLicense, protos.google.ads.datamanager.v1.ICreateUserListGlobalLicenseRequest | null | undefined, {} | null | undefined>
Returns
Type Description
void

getProjectId()

getProjectId(): Promise<string>;
Returns
Type Description
Promise<string>

getProjectId(callback)

getProjectId(callback: Callback<string, undefined, undefined>): void;
Parameter
Name Description
callback Callback<string, undefined, undefined>
Returns
Type Description
void

getUserListGlobalLicense(request, options)

getUserListGlobalLicense(request?: protos.google.ads.datamanager.v1.IGetUserListGlobalLicenseRequest, options?: CallOptions): Promise<[
        protos.google.ads.datamanager.v1.IUserListGlobalLicense,
        (protos.google.ads.datamanager.v1.IGetUserListGlobalLicenseRequest | undefined),
        {} | undefined
    ]>;

Retrieves a user list global license.

This feature is only available to data partners.

Parameters
Name Description
request IGetUserListGlobalLicenseRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
Type Description
Promise<[ protos.google.ads.datamanager.v1.IUserListGlobalLicense, (protos.google.ads.datamanager.v1.IGetUserListGlobalLicenseRequest | undefined), {} | undefined ]>

{Promise} - The promise which resolves to an array. The first element of the array is an object representing UserListGlobalLicense. Please see the documentation for more details and examples.

Example

  /**
   * This snippet has been automatically generated and should be regarded as a code template only.
   * It will require modifications to work.
   * It may require correct/in-range values for request initialization.
   * TODO(developer): Uncomment these variables before running the sample.
   */
  /**
   *  Required. The resource name of the user list global license.
   */
  // const name = 'abc123'

  // Imports the Datamanager library
  const {UserListGlobalLicenseServiceClient} = require('@google-ads/datamanager').v1;

  // Instantiates a client
  const datamanagerClient = new UserListGlobalLicenseServiceClient();

  async function callGetUserListGlobalLicense() {
    // Construct request
    const request = {
      name,
    };

    // Run request
    const response = await datamanagerClient.getUserListGlobalLicense(request);
    console.log(response);
  }

  callGetUserListGlobalLicense();

getUserListGlobalLicense(request, options, callback)

getUserListGlobalLicense(request: protos.google.ads.datamanager.v1.IGetUserListGlobalLicenseRequest, options: CallOptions, callback: Callback<protos.google.ads.datamanager.v1.IUserListGlobalLicense, protos.google.ads.datamanager.v1.IGetUserListGlobalLicenseRequest | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request IGetUserListGlobalLicenseRequest
options CallOptions
callback Callback<protos.google.ads.datamanager.v1.IUserListGlobalLicense, protos.google.ads.datamanager.v1.IGetUserListGlobalLicenseRequest | null | undefined, {} | null | undefined>
Returns
Type Description
void

getUserListGlobalLicense(request, callback)

getUserListGlobalLicense(request: protos.google.ads.datamanager.v1.IGetUserListGlobalLicenseRequest, callback: Callback<protos.google.ads.datamanager.v1.IUserListGlobalLicense, protos.google.ads.datamanager.v1.IGetUserListGlobalLicenseRequest | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request IGetUserListGlobalLicenseRequest
callback Callback<protos.google.ads.datamanager.v1.IUserListGlobalLicense, protos.google.ads.datamanager.v1.IGetUserListGlobalLicenseRequest | null | undefined, {} | null | undefined>
Returns
Type Description
void

initialize()

initialize(): Promise<{
        [name: string]: Function;
    }>;

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<{ [name: string]: Function; }>

{Promise} A promise that resolves to an authenticated service stub.

listUserListGlobalLicenseCustomerInfos(request, options)

listUserListGlobalLicenseCustomerInfos(request?: protos.google.ads.datamanager.v1.IListUserListGlobalLicenseCustomerInfosRequest, options?: CallOptions): Promise<[
        protos.google.ads.datamanager.v1.IUserListGlobalLicenseCustomerInfo[],
        protos.google.ads.datamanager.v1.IListUserListGlobalLicenseCustomerInfosRequest | null,
        protos.google.ads.datamanager.v1.IListUserListGlobalLicenseCustomerInfosResponse
    ]>;

Lists all customer info for a user list global license.

This feature is only available to data partners.

Parameters
Name Description
request IListUserListGlobalLicenseCustomerInfosRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
Type Description
Promise<[ protos.google.ads.datamanager.v1.IUserListGlobalLicenseCustomerInfo[], protos.google.ads.datamanager.v1.IListUserListGlobalLicenseCustomerInfosRequest | null, protos.google.ads.datamanager.v1.IListUserListGlobalLicenseCustomerInfosResponse ]>

{Promise} - The promise which resolves to an array. The first element of the array is Array of UserListGlobalLicenseCustomerInfo. The client library will perform auto-pagination by default: it will call the API as many times as needed and will merge results from all the pages into this array. Note that it can affect your quota. We recommend using listUserListGlobalLicenseCustomerInfosAsync() method described below for async iteration which you can stop as needed. Please see the documentation for more details and examples.

listUserListGlobalLicenseCustomerInfos(request, options, callback)

listUserListGlobalLicenseCustomerInfos(request: protos.google.ads.datamanager.v1.IListUserListGlobalLicenseCustomerInfosRequest, options: CallOptions, callback: PaginationCallback<protos.google.ads.datamanager.v1.IListUserListGlobalLicenseCustomerInfosRequest, protos.google.ads.datamanager.v1.IListUserListGlobalLicenseCustomerInfosResponse | null | undefined, protos.google.ads.datamanager.v1.IUserListGlobalLicenseCustomerInfo>): void;
Parameters
Name Description
request IListUserListGlobalLicenseCustomerInfosRequest
options CallOptions
callback PaginationCallback<protos.google.ads.datamanager.v1.IListUserListGlobalLicenseCustomerInfosRequest, protos.google.ads.datamanager.v1.IListUserListGlobalLicenseCustomerInfosResponse | null | undefined, protos.google.ads.datamanager.v1.IUserListGlobalLicenseCustomerInfo>
Returns
Type Description
void

listUserListGlobalLicenseCustomerInfos(request, callback)

listUserListGlobalLicenseCustomerInfos(request: protos.google.ads.datamanager.v1.IListUserListGlobalLicenseCustomerInfosRequest, callback: PaginationCallback<protos.google.ads.datamanager.v1.IListUserListGlobalLicenseCustomerInfosRequest, protos.google.ads.datamanager.v1.IListUserListGlobalLicenseCustomerInfosResponse | null | undefined, protos.google.ads.datamanager.v1.IUserListGlobalLicenseCustomerInfo>): void;
Parameters
Name Description
request IListUserListGlobalLicenseCustomerInfosRequest
callback PaginationCallback<protos.google.ads.datamanager.v1.IListUserListGlobalLicenseCustomerInfosRequest, protos.google.ads.datamanager.v1.IListUserListGlobalLicenseCustomerInfosResponse | null | undefined, protos.google.ads.datamanager.v1.IUserListGlobalLicenseCustomerInfo>
Returns
Type Description
void

listUserListGlobalLicenseCustomerInfosAsync(request, options)

listUserListGlobalLicenseCustomerInfosAsync(request?: protos.google.ads.datamanager.v1.IListUserListGlobalLicenseCustomerInfosRequest, options?: CallOptions): AsyncIterable<protos.google.ads.datamanager.v1.IUserListGlobalLicenseCustomerInfo>;

Equivalent to listUserListGlobalLicenseCustomerInfos, but returns an iterable object.

for-await-of syntax is used with the iterable to get response elements on-demand.

Parameters
Name Description
request IListUserListGlobalLicenseCustomerInfosRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
Type Description
AsyncIterable<protos.google.ads.datamanager.v1.IUserListGlobalLicenseCustomerInfo>

{Object} An iterable Object that allows async iteration. When you iterate the returned iterable, each element will be an object representing UserListGlobalLicenseCustomerInfo. 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

  /**
   * This snippet has been automatically generated and should be regarded as a code template only.
   * It will require modifications to work.
   * It may require correct/in-range values for request initialization.
   * TODO(developer): Uncomment these variables before running the sample.
   */
  /**
   *  Required. The global license whose customer info are being queried. Should
   *  be in the format
   *  `accountTypes/{ACCOUNT_TYPE}/accounts/{ACCOUNT_ID}/userListGlobalLicenses/{USER_LIST_GLOBAL_LICENSE_ID}`.
   *  To list all global license customer info under an account, replace the user
   *  list global license id with a '-' (for example,
   *  `accountTypes/DATA_PARTNER/accounts/123/userListGlobalLicenses/-`)
   */
  // const parent = 'abc123'
  /**
   *  Optional. A filter string (https://google.aip.dev/160) to apply to the
   *  list request. All fields need to be on the left hand side of each condition
   *  (for example: `user_list_id = 123`). Fields must be specified using either
   *  all camel case (https://en.wikipedia.org/wiki/Camel_case) or all snake
   *  case (https://en.wikipedia.org/wiki/Snake_case). Don't use a combination of
   *  camel case and snake case.
   *  **Supported Operations:**
   *  - `AND`
   *  - `=`
   *  - `!=`
   *  - `>`
   *  - `>=`
   *  - `<` *="" -=""><=` *="" **supported="" functions:**="" *="" -="" `in(field,="" value1,="" value2,="" ...)`:="" returns="" true="" if="" the="" field="" matches="" any="" *="" of="" the="" values.="" example:="" `in(user_list_id,="" 123,="" 456)`="" *="" **unsupported="" fields:**="" *="" -="" `name`="" (use="" get="" method="" instead)="" *="" -="" `historical_pricings`="" and="" all="" its="" subfields="" *="" -="" `pricing.start_time`="" *="" -="" `pricing.end_time`="" */="" const="" filter='abc123' *="" *="" optional.="" the="" maximum="" number="" of="" licenses="" to="" return.="" the="" service="" may="" return="" *="" fewer="" than="" this="" value.="" if="" unspecified,="" at="" most="" 50="" licenses="" will="" be="" *="" returned.="" the="" maximum="" value="" is="" 1000;="" values="" above="" 1000="" will="" be="" coerced="" to="" *="" 1000.="" */="" const="" pagesize="1234" *="" *="" optional.="" a="" page="" token,="" received="" from="" a="" previous="" *="" `listuserlistdirectlicense`="" call.="" provide="" this="" to="" retrieve="" the="" subsequent="" *="" page.="" *="" when="" paginating,="" all="" other="" parameters="" provided="" to="" *="" `listuserlistdirectlicense`="" must="" match="" the="" call="" that="" provided="" the="" page="" *="" token.="" */="" const="" pagetoken='abc123' imports="" the="" datamanager="" library="" const="" {userlistgloballicenseserviceclient}="require('@google-ads/datamanager').v1;" instantiates="" a="" client="" const="" datamanagerclient="new" userlistgloballicenseserviceclient();="" async="" function="" calllistuserlistgloballicensecustomerinfos()="" {="" construct="" request="" const="" request="{" parent,="" };="" run="" request="" const="" iterable="datamanagerClient.listUserListGlobalLicenseCustomerInfosAsync(request);" for="" await="" (const="" response="" of="" iterable)="" {="" console.log(response);="" }="" }="" calllistuserlistgloballicensecustomerinfos();="">

listUserListGlobalLicenseCustomerInfosStream(request, options)

listUserListGlobalLicenseCustomerInfosStream(request?: protos.google.ads.datamanager.v1.IListUserListGlobalLicenseCustomerInfosRequest, options?: CallOptions): Transform;

Equivalent to listUserListGlobalLicenseCustomerInfos, but returns a NodeJS Stream object.

Parameters
Name Description
request IListUserListGlobalLicenseCustomerInfosRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
Type Description
Transform

{Stream} An object stream which emits an object representing UserListGlobalLicenseCustomerInfo 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 listUserListGlobalLicenseCustomerInfosAsync() method described below for async iteration which you can stop as needed. Please see the documentation for more details and examples.

listUserListGlobalLicenses(request, options)

listUserListGlobalLicenses(request?: protos.google.ads.datamanager.v1.IListUserListGlobalLicensesRequest, options?: CallOptions): Promise<[
        protos.google.ads.datamanager.v1.IUserListGlobalLicense[],
        protos.google.ads.datamanager.v1.IListUserListGlobalLicensesRequest | null,
        protos.google.ads.datamanager.v1.IListUserListGlobalLicensesResponse
    ]>;

Lists all user list global licenses owned by the parent account.

This feature is only available to data partners.

Parameters
Name Description
request IListUserListGlobalLicensesRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
Type Description
Promise<[ protos.google.ads.datamanager.v1.IUserListGlobalLicense[], protos.google.ads.datamanager.v1.IListUserListGlobalLicensesRequest | null, protos.google.ads.datamanager.v1.IListUserListGlobalLicensesResponse ]>

{Promise} - The promise which resolves to an array. The first element of the array is Array of UserListGlobalLicense. The client library will perform auto-pagination by default: it will call the API as many times as needed and will merge results from all the pages into this array. Note that it can affect your quota. We recommend using listUserListGlobalLicensesAsync() method described below for async iteration which you can stop as needed. Please see the documentation for more details and examples.

listUserListGlobalLicenses(request, options, callback)

listUserListGlobalLicenses(request: protos.google.ads.datamanager.v1.IListUserListGlobalLicensesRequest, options: CallOptions, callback: PaginationCallback<protos.google.ads.datamanager.v1.IListUserListGlobalLicensesRequest, protos.google.ads.datamanager.v1.IListUserListGlobalLicensesResponse | null | undefined, protos.google.ads.datamanager.v1.IUserListGlobalLicense>): void;
Parameters
Name Description
request IListUserListGlobalLicensesRequest
options CallOptions
callback PaginationCallback<protos.google.ads.datamanager.v1.IListUserListGlobalLicensesRequest, protos.google.ads.datamanager.v1.IListUserListGlobalLicensesResponse | null | undefined, protos.google.ads.datamanager.v1.IUserListGlobalLicense>
Returns
Type Description
void

listUserListGlobalLicenses(request, callback)

listUserListGlobalLicenses(request: protos.google.ads.datamanager.v1.IListUserListGlobalLicensesRequest, callback: PaginationCallback<protos.google.ads.datamanager.v1.IListUserListGlobalLicensesRequest, protos.google.ads.datamanager.v1.IListUserListGlobalLicensesResponse | null | undefined, protos.google.ads.datamanager.v1.IUserListGlobalLicense>): void;
Parameters
Name Description
request IListUserListGlobalLicensesRequest
callback PaginationCallback<protos.google.ads.datamanager.v1.IListUserListGlobalLicensesRequest, protos.google.ads.datamanager.v1.IListUserListGlobalLicensesResponse | null | undefined, protos.google.ads.datamanager.v1.IUserListGlobalLicense>
Returns
Type Description
void

listUserListGlobalLicensesAsync(request, options)

listUserListGlobalLicensesAsync(request?: protos.google.ads.datamanager.v1.IListUserListGlobalLicensesRequest, options?: CallOptions): AsyncIterable<protos.google.ads.datamanager.v1.IUserListGlobalLicense>;

Equivalent to listUserListGlobalLicenses, but returns an iterable object.

for-await-of syntax is used with the iterable to get response elements on-demand.

Parameters
Name Description
request IListUserListGlobalLicensesRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
Type Description
AsyncIterable<protos.google.ads.datamanager.v1.IUserListGlobalLicense>

{Object} An iterable Object that allows async iteration. When you iterate the returned iterable, each element will be an object representing UserListGlobalLicense. 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

  /**
   * This snippet has been automatically generated and should be regarded as a code template only.
   * It will require modifications to work.
   * It may require correct/in-range values for request initialization.
   * TODO(developer): Uncomment these variables before running the sample.
   */
  /**
   *  Required. The account whose licenses are being queried. Should be in the
   *  format accountTypes/{ACCOUNT_TYPE}/accounts/{ACCOUNT_ID}
   */
  // const parent = 'abc123'
  /**
   *  Optional. A filter string (https://google.aip.dev/160) to apply to the
   *  list request. All fields need to be on the left hand side of each condition
   *  (for example: `user_list_id = 123`). Fields must be specified using either
   *  all camel case (https://en.wikipedia.org/wiki/Camel_case) or all snake
   *  case (https://en.wikipedia.org/wiki/Snake_case). Don't use a combination of
   *  camel case and snake case.
   *  **Supported Operations:**
   *  - `AND`
   *  - `=`
   *  - `!=`
   *  - `>`
   *  - `>=`
   *  - `<` *="" -=""><=` *="" **supported="" functions:**="" *="" -="" `in(field,="" value1,="" value2,="" ...)`:="" returns="" true="" if="" the="" field="" matches="" any="" *="" of="" the="" values.="" example:="" `in(user_list_id,="" 123,="" 456)`="" *="" **unsupported="" fields:**="" *="" -="" `name`="" (use="" get="" method="" instead)="" *="" -="" `historical_pricings`="" and="" all="" its="" subfields="" *="" -="" `pricing.start_time`="" *="" -="" `pricing.end_time`="" */="" const="" filter='abc123' *="" *="" optional.="" the="" maximum="" number="" of="" licenses="" to="" return.="" the="" service="" may="" return="" *="" fewer="" than="" this="" value.="" if="" unspecified,="" at="" most="" 50="" licenses="" will="" be="" *="" returned.="" the="" maximum="" value="" is="" 1000;="" values="" above="" 1000="" will="" be="" coerced="" to="" *="" 1000.="" */="" const="" pagesize="1234" *="" *="" optional.="" a="" page="" token,="" received="" from="" a="" previous="" *="" `listuserlistgloballicense`="" call.="" provide="" this="" to="" retrieve="" the="" subsequent="" *="" page.="" *="" when="" paginating,="" all="" other="" parameters="" provided="" to="" *="" `listuserlistdirectlicense`="" must="" match="" the="" call="" that="" provided="" the="" page="" *="" token.="" */="" const="" pagetoken='abc123' imports="" the="" datamanager="" library="" const="" {userlistgloballicenseserviceclient}="require('@google-ads/datamanager').v1;" instantiates="" a="" client="" const="" datamanagerclient="new" userlistgloballicenseserviceclient();="" async="" function="" calllistuserlistgloballicenses()="" {="" construct="" request="" const="" request="{" parent,="" };="" run="" request="" const="" iterable="datamanagerClient.listUserListGlobalLicensesAsync(request);" for="" await="" (const="" response="" of="" iterable)="" {="" console.log(response);="" }="" }="" calllistuserlistgloballicenses();="">

listUserListGlobalLicensesStream(request, options)

listUserListGlobalLicensesStream(request?: protos.google.ads.datamanager.v1.IListUserListGlobalLicensesRequest, options?: CallOptions): Transform;

Equivalent to listUserListGlobalLicenses, but returns a NodeJS Stream object.

Parameters
Name Description
request IListUserListGlobalLicensesRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
Type Description
Transform

{Stream} An object stream which emits an object representing UserListGlobalLicense 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 listUserListGlobalLicensesAsync() method described below for async iteration which you can stop as needed. Please see the documentation for more details and examples.

matchAccountFromAccountName(accountName)

matchAccountFromAccountName(accountName: string): string | number;

Parse the account from Account resource.

Parameter
Name Description
accountName string

A fully-qualified path representing Account resource.

Returns
Type Description
string | number

{string} A string representing the account.

matchAccountFromPartnerLinkName(partnerLinkName)

matchAccountFromPartnerLinkName(partnerLinkName: string): string | number;

Parse the account from PartnerLink resource.

Parameter
Name Description
partnerLinkName string

A fully-qualified path representing PartnerLink resource.

Returns
Type Description
string | number

{string} A string representing the account.

matchAccountFromUserListDirectLicenseName(userListDirectLicenseName)

matchAccountFromUserListDirectLicenseName(userListDirectLicenseName: string): string | number;

Parse the account from UserListDirectLicense resource.

Parameter
Name Description
userListDirectLicenseName string

A fully-qualified path representing UserListDirectLicense resource.

Returns
Type Description
string | number

{string} A string representing the account.

matchAccountFromUserListGlobalLicenseCustomerInfoName(userListGlobalLicenseCustomerInfoName)

matchAccountFromUserListGlobalLicenseCustomerInfoName(userListGlobalLicenseCustomerInfoName: string): string | number;

Parse the account from UserListGlobalLicenseCustomerInfo resource.

Parameter
Name Description
userListGlobalLicenseCustomerInfoName string

A fully-qualified path representing UserListGlobalLicenseCustomerInfo resource.

Returns
Type Description
string | number

{string} A string representing the account.

matchAccountFromUserListGlobalLicenseName(userListGlobalLicenseName)

matchAccountFromUserListGlobalLicenseName(userListGlobalLicenseName: string): string | number;

Parse the account from UserListGlobalLicense resource.

Parameter
Name Description
userListGlobalLicenseName string

A fully-qualified path representing UserListGlobalLicense resource.

Returns
Type Description
string | number

{string} A string representing the account.

matchAccountFromUserListName(userListName)

matchAccountFromUserListName(userListName: string): string | number;

Parse the account from UserList resource.

Parameter
Name Description
userListName string

A fully-qualified path representing UserList resource.

Returns
Type Description
string | number

{string} A string representing the account.

matchAccountTypeFromAccountName(accountName)

matchAccountTypeFromAccountName(accountName: string): string | number;

Parse the account_type from Account resource.

Parameter
Name Description
accountName string

A fully-qualified path representing Account resource.

Returns
Type Description
string | number

{string} A string representing the account_type.

matchAccountTypeFromPartnerLinkName(partnerLinkName)

matchAccountTypeFromPartnerLinkName(partnerLinkName: string): string | number;

Parse the account_type from PartnerLink resource.

Parameter
Name Description
partnerLinkName string

A fully-qualified path representing PartnerLink resource.

Returns
Type Description
string | number

{string} A string representing the account_type.

matchAccountTypeFromUserListDirectLicenseName(userListDirectLicenseName)

matchAccountTypeFromUserListDirectLicenseName(userListDirectLicenseName: string): string | number;

Parse the account_type from UserListDirectLicense resource.

Parameter
Name Description
userListDirectLicenseName string

A fully-qualified path representing UserListDirectLicense resource.

Returns
Type Description
string | number

{string} A string representing the account_type.

matchAccountTypeFromUserListGlobalLicenseCustomerInfoName(userListGlobalLicenseCustomerInfoName)

matchAccountTypeFromUserListGlobalLicenseCustomerInfoName(userListGlobalLicenseCustomerInfoName: string): string | number;

Parse the account_type from UserListGlobalLicenseCustomerInfo resource.

Parameter
Name Description
userListGlobalLicenseCustomerInfoName string

A fully-qualified path representing UserListGlobalLicenseCustomerInfo resource.

Returns
Type Description
string | number

{string} A string representing the account_type.

matchAccountTypeFromUserListGlobalLicenseName(userListGlobalLicenseName)

matchAccountTypeFromUserListGlobalLicenseName(userListGlobalLicenseName: string): string | number;

Parse the account_type from UserListGlobalLicense resource.

Parameter
Name Description
userListGlobalLicenseName string

A fully-qualified path representing UserListGlobalLicense resource.

Returns
Type Description
string | number

{string} A string representing the account_type.

matchAccountTypeFromUserListName(userListName)

matchAccountTypeFromUserListName(userListName: string): string | number;

Parse the account_type from UserList resource.

Parameter
Name Description
userListName string

A fully-qualified path representing UserList resource.

Returns
Type Description
string | number

{string} A string representing the account_type.

matchLicenseCustomerInfoFromUserListGlobalLicenseCustomerInfoName(userListGlobalLicenseCustomerInfoName)

matchLicenseCustomerInfoFromUserListGlobalLicenseCustomerInfoName(userListGlobalLicenseCustomerInfoName: string): string | number;

Parse the license_customer_info from UserListGlobalLicenseCustomerInfo resource.

Parameter
Name Description
userListGlobalLicenseCustomerInfoName string

A fully-qualified path representing UserListGlobalLicenseCustomerInfo resource.

Returns
Type Description
string | number

{string} A string representing the license_customer_info.

matchPartnerLinkFromPartnerLinkName(partnerLinkName)

matchPartnerLinkFromPartnerLinkName(partnerLinkName: string): string | number;

Parse the partner_link from PartnerLink resource.

Parameter
Name Description
partnerLinkName string

A fully-qualified path representing PartnerLink resource.

Returns
Type Description
string | number

{string} A string representing the partner_link.

matchUserListDirectLicenseFromUserListDirectLicenseName(userListDirectLicenseName)

matchUserListDirectLicenseFromUserListDirectLicenseName(userListDirectLicenseName: string): string | number;

Parse the user_list_direct_license from UserListDirectLicense resource.

Parameter
Name Description
userListDirectLicenseName string

A fully-qualified path representing UserListDirectLicense resource.

Returns
Type Description
string | number

{string} A string representing the user_list_direct_license.

matchUserListFromUserListName(userListName)

matchUserListFromUserListName(userListName: string): string | number;

Parse the user_list from UserList resource.

Parameter
Name Description
userListName string

A fully-qualified path representing UserList resource.

Returns
Type Description
string | number

{string} A string representing the user_list.

matchUserListGlobalLicenseFromUserListGlobalLicenseCustomerInfoName(userListGlobalLicenseCustomerInfoName)

matchUserListGlobalLicenseFromUserListGlobalLicenseCustomerInfoName(userListGlobalLicenseCustomerInfoName: string): string | number;

Parse the user_list_global_license from UserListGlobalLicenseCustomerInfo resource.

Parameter
Name Description
userListGlobalLicenseCustomerInfoName string

A fully-qualified path representing UserListGlobalLicenseCustomerInfo resource.

Returns
Type Description
string | number

{string} A string representing the user_list_global_license.

matchUserListGlobalLicenseFromUserListGlobalLicenseName(userListGlobalLicenseName)

matchUserListGlobalLicenseFromUserListGlobalLicenseName(userListGlobalLicenseName: string): string | number;

Parse the user_list_global_license from UserListGlobalLicense resource.

Parameter
Name Description
userListGlobalLicenseName string

A fully-qualified path representing UserListGlobalLicense resource.

Returns
Type Description
string | number

{string} A string representing the user_list_global_license.

partnerLinkPath(accountType, account, partnerLink)

partnerLinkPath(accountType: string, account: string, partnerLink: string): string;

Return a fully-qualified partnerLink resource name string.

Parameters
Name Description
accountType string
account string
partnerLink string
Returns
Type Description
string

{string} Resource name string.

updateUserListGlobalLicense(request, options)

updateUserListGlobalLicense(request?: protos.google.ads.datamanager.v1.IUpdateUserListGlobalLicenseRequest, options?: CallOptions): Promise<[
        protos.google.ads.datamanager.v1.IUserListGlobalLicense,
        (protos.google.ads.datamanager.v1.IUpdateUserListGlobalLicenseRequest | undefined),
        {} | undefined
    ]>;

Updates a user list global license.

This feature is only available to data partners.

Parameters
Name Description
request IUpdateUserListGlobalLicenseRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
Type Description
Promise<[ protos.google.ads.datamanager.v1.IUserListGlobalLicense, (protos.google.ads.datamanager.v1.IUpdateUserListGlobalLicenseRequest | undefined), {} | undefined ]>

{Promise} - The promise which resolves to an array. The first element of the array is an object representing UserListGlobalLicense. Please see the documentation for more details and examples.

Example

  /**
   * This snippet has been automatically generated and should be regarded as a code template only.
   * It will require modifications to work.
   * It may require correct/in-range values for request initialization.
   * TODO(developer): Uncomment these variables before running the sample.
   */
  /**
   *  Required. The licenses' `name` field is used to identify the license to
   *  update.
   */
  // const userListGlobalLicense = {}
  /**
   *  Optional. The list of fields to update. The special character `*` is not
   *  supported and an `INVALID_UPDATE_MASK` error will be thrown if used.
   */
  // const updateMask = {}

  // Imports the Datamanager library
  const {UserListGlobalLicenseServiceClient} = require('@google-ads/datamanager').v1;

  // Instantiates a client
  const datamanagerClient = new UserListGlobalLicenseServiceClient();

  async function callUpdateUserListGlobalLicense() {
    // Construct request
    const request = {
      userListGlobalLicense,
    };

    // Run request
    const response = await datamanagerClient.updateUserListGlobalLicense(request);
    console.log(response);
  }

  callUpdateUserListGlobalLicense();

updateUserListGlobalLicense(request, options, callback)

updateUserListGlobalLicense(request: protos.google.ads.datamanager.v1.IUpdateUserListGlobalLicenseRequest, options: CallOptions, callback: Callback<protos.google.ads.datamanager.v1.IUserListGlobalLicense, protos.google.ads.datamanager.v1.IUpdateUserListGlobalLicenseRequest | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request IUpdateUserListGlobalLicenseRequest
options CallOptions
callback Callback<protos.google.ads.datamanager.v1.IUserListGlobalLicense, protos.google.ads.datamanager.v1.IUpdateUserListGlobalLicenseRequest | null | undefined, {} | null | undefined>
Returns
Type Description
void

updateUserListGlobalLicense(request, callback)

updateUserListGlobalLicense(request: protos.google.ads.datamanager.v1.IUpdateUserListGlobalLicenseRequest, callback: Callback<protos.google.ads.datamanager.v1.IUserListGlobalLicense, protos.google.ads.datamanager.v1.IUpdateUserListGlobalLicenseRequest | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request IUpdateUserListGlobalLicenseRequest
callback Callback<protos.google.ads.datamanager.v1.IUserListGlobalLicense, protos.google.ads.datamanager.v1.IUpdateUserListGlobalLicenseRequest | null | undefined, {} | null | undefined>
Returns
Type Description
void

userListDirectLicensePath(accountType, account, userListDirectLicense)

userListDirectLicensePath(accountType: string, account: string, userListDirectLicense: string): string;

Return a fully-qualified userListDirectLicense resource name string.

Parameters
Name Description
accountType string
account string
userListDirectLicense string
Returns
Type Description
string

{string} Resource name string.

userListGlobalLicenseCustomerInfoPath(accountType, account, userListGlobalLicense, licenseCustomerInfo)

userListGlobalLicenseCustomerInfoPath(accountType: string, account: string, userListGlobalLicense: string, licenseCustomerInfo: string): string;

Return a fully-qualified userListGlobalLicenseCustomerInfo resource name string.

Parameters
Name Description
accountType string
account string
userListGlobalLicense string
licenseCustomerInfo string
Returns
Type Description
string

{string} Resource name string.

userListGlobalLicensePath(accountType, account, userListGlobalLicense)

userListGlobalLicensePath(accountType: string, account: string, userListGlobalLicense: string): string;

Return a fully-qualified userListGlobalLicense resource name string.

Parameters
Name Description
accountType string
account string
userListGlobalLicense string
Returns
Type Description
string

{string} Resource name string.

userListPath(accountType, account, userList)

userListPath(accountType: string, account: string, userList: string): string;

Return a fully-qualified userList resource name string.

Parameters
Name Description
accountType string
account string
userList string
Returns
Type Description
string

{string} Resource name string.