Class protos.google.ads.admanager.v1.BandwidthGroupService (0.6.0)

Represents a BandwidthGroupService

Inheritance

$protobuf.rpc.Service > protos.google.ads.admanager.v1.BandwidthGroupService

Package

@google-ads/admanager

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);

Constructs a new BandwidthGroupService service.

Parameters
Name Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Methods

create(rpcImpl, requestDelimited, responseDelimited)

public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): BandwidthGroupService;

Creates new BandwidthGroupService service using the specified rpc implementation.

Parameters
Name Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Returns
Type Description
BandwidthGroupService

RPC service. Useful where requests and/or responses are streamed.

getBandwidthGroup(request, callback)

public getBandwidthGroup(request: google.ads.admanager.v1.IGetBandwidthGroupRequest, callback: google.ads.admanager.v1.BandwidthGroupService.GetBandwidthGroupCallback): void;

Calls GetBandwidthGroup.

Parameters
Name Description
request IGetBandwidthGroupRequest

GetBandwidthGroupRequest message or plain object

callback GetBandwidthGroupCallback

Node-style callback called with the error, if any, and BandwidthGroup

Returns
Type Description
void

getBandwidthGroup(request)

public getBandwidthGroup(request: google.ads.admanager.v1.IGetBandwidthGroupRequest): Promise<google.ads.admanager.v1.BandwidthGroup>;

Calls GetBandwidthGroup.

Parameter
Name Description
request IGetBandwidthGroupRequest

GetBandwidthGroupRequest message or plain object

Returns
Type Description
Promise<google.ads.admanager.v1.BandwidthGroup>

Promise

listBandwidthGroups(request, callback)

public listBandwidthGroups(request: google.ads.admanager.v1.IListBandwidthGroupsRequest, callback: google.ads.admanager.v1.BandwidthGroupService.ListBandwidthGroupsCallback): void;

Calls ListBandwidthGroups.

Parameters
Name Description
request IListBandwidthGroupsRequest

ListBandwidthGroupsRequest message or plain object

callback ListBandwidthGroupsCallback

Node-style callback called with the error, if any, and ListBandwidthGroupsResponse

Returns
Type Description
void

listBandwidthGroups(request)

public listBandwidthGroups(request: google.ads.admanager.v1.IListBandwidthGroupsRequest): Promise<google.ads.admanager.v1.ListBandwidthGroupsResponse>;

Calls ListBandwidthGroups.

Parameter
Name Description
request IListBandwidthGroupsRequest

ListBandwidthGroupsRequest message or plain object

Returns
Type Description
Promise<google.ads.admanager.v1.ListBandwidthGroupsResponse>

Promise