Represents an AdUnitService
Inheritance
$protobuf.rpc.Service > protos.google.ads.admanager.v1.AdUnitServicePackage
@google-ads/admanagerConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);Constructs a new AdUnitService 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): AdUnitService;Creates new AdUnitService 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 |
AdUnitService |
RPC service. Useful where requests and/or responses are streamed. |
getAdUnit(request, callback)
public getAdUnit(request: google.ads.admanager.v1.IGetAdUnitRequest, callback: google.ads.admanager.v1.AdUnitService.GetAdUnitCallback): void;Calls GetAdUnit.
| Parameters | |
|---|---|
| Name | Description |
request |
IGetAdUnitRequest
GetAdUnitRequest message or plain object |
callback |
GetAdUnitCallback
Node-style callback called with the error, if any, and AdUnit |
| Returns | |
|---|---|
| Type | Description |
void |
|
getAdUnit(request)
public getAdUnit(request: google.ads.admanager.v1.IGetAdUnitRequest): Promise<google.ads.admanager.v1.AdUnit>;Calls GetAdUnit.
| Parameter | |
|---|---|
| Name | Description |
request |
IGetAdUnitRequest
GetAdUnitRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.ads.admanager.v1.AdUnit> |
Promise |
listAdUnits(request, callback)
public listAdUnits(request: google.ads.admanager.v1.IListAdUnitsRequest, callback: google.ads.admanager.v1.AdUnitService.ListAdUnitsCallback): void;Calls ListAdUnits.
| Parameters | |
|---|---|
| Name | Description |
request |
IListAdUnitsRequest
ListAdUnitsRequest message or plain object |
callback |
ListAdUnitsCallback
Node-style callback called with the error, if any, and ListAdUnitsResponse |
| Returns | |
|---|---|
| Type | Description |
void |
|
listAdUnits(request)
public listAdUnits(request: google.ads.admanager.v1.IListAdUnitsRequest): Promise<google.ads.admanager.v1.ListAdUnitsResponse>;Calls ListAdUnits.
| Parameter | |
|---|---|
| Name | Description |
request |
IListAdUnitsRequest
ListAdUnitsRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.ads.admanager.v1.ListAdUnitsResponse> |
Promise |
listAdUnitSizes(request, callback)
public listAdUnitSizes(request: google.ads.admanager.v1.IListAdUnitSizesRequest, callback: google.ads.admanager.v1.AdUnitService.ListAdUnitSizesCallback): void;Calls ListAdUnitSizes.
| Parameters | |
|---|---|
| Name | Description |
request |
IListAdUnitSizesRequest
ListAdUnitSizesRequest message or plain object |
callback |
ListAdUnitSizesCallback
Node-style callback called with the error, if any, and ListAdUnitSizesResponse |
| Returns | |
|---|---|
| Type | Description |
void |
|
listAdUnitSizes(request)
public listAdUnitSizes(request: google.ads.admanager.v1.IListAdUnitSizesRequest): Promise<google.ads.admanager.v1.ListAdUnitSizesResponse>;Calls ListAdUnitSizes.
| Parameter | |
|---|---|
| Name | Description |
request |
IListAdUnitSizesRequest
ListAdUnitSizesRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.ads.admanager.v1.ListAdUnitSizesResponse> |
Promise |