Class PartnerLinkServiceClientImpl
PartnerLinkService client wrapper implementation, for convenient use.
Inherited Members
Namespace: Google.Ads.DataManager.V1
Assembly: Google.Ads.DataManager.V1.dll
Syntax
public sealed class PartnerLinkServiceClientImpl : PartnerLinkServiceClient
Remarks
Service for managing partner links.
Constructors
PartnerLinkServiceClientImpl(PartnerLinkServiceClient, PartnerLinkServiceSettings, ILogger)
Constructs a client wrapper for the PartnerLinkService service, with the specified gRPC client and settings.
Declaration
public PartnerLinkServiceClientImpl(PartnerLinkService.PartnerLinkServiceClient grpcClient, PartnerLinkServiceSettings settings, ILogger logger)
Parameters
| Type | Name | Description |
|---|---|---|
| PartnerLinkService.PartnerLinkServiceClient | grpcClient | The underlying gRPC client. |
| PartnerLinkServiceSettings | settings | The base PartnerLinkServiceSettings used within this client. |
| ILogger | logger | Optional ILogger to use within this client. |
Properties
GrpcClient
The underlying gRPC PartnerLinkService client
Declaration
public override PartnerLinkService.PartnerLinkServiceClient GrpcClient { get; }
Property Value
| Type | Description |
|---|---|
| PartnerLinkService.PartnerLinkServiceClient |
Overrides
Methods
CreatePartnerLink(CreatePartnerLinkRequest, CallSettings)
Creates a partner link for the given account.
Authorization Headers:
This method supports the following optional headers to define how the API authorizes access for the request:
login-account: (Optional) The resource name of the account where the Google Account of the credentials is a user. If not set, defaults to the account of the request. Format:accountTypes/{loginAccountType}/accounts/{loginAccountId}linked-account: (Optional) The resource name of the account with an established product link to thelogin-account. Format:accountTypes/{linkedAccountType}/accounts/{linkedAccountId}
Declaration
public override PartnerLink CreatePartnerLink(CreatePartnerLinkRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| CreatePartnerLinkRequest | request | The request object containing all of the parameters for the API call. |
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| PartnerLink | The RPC response. |
Overrides
CreatePartnerLinkAsync(CreatePartnerLinkRequest, CallSettings)
Creates a partner link for the given account.
Authorization Headers:
This method supports the following optional headers to define how the API authorizes access for the request:
login-account: (Optional) The resource name of the account where the Google Account of the credentials is a user. If not set, defaults to the account of the request. Format:accountTypes/{loginAccountType}/accounts/{loginAccountId}linked-account: (Optional) The resource name of the account with an established product link to thelogin-account. Format:accountTypes/{linkedAccountType}/accounts/{linkedAccountId}
Declaration
public override Task<PartnerLink> CreatePartnerLinkAsync(CreatePartnerLinkRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| CreatePartnerLinkRequest | request | The request object containing all of the parameters for the API call. |
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Task<PartnerLink> | A Task containing the RPC response. |
Overrides
DeletePartnerLink(DeletePartnerLinkRequest, CallSettings)
Deletes a partner link for the given account.
Authorization Headers:
This method supports the following optional headers to define how the API authorizes access for the request:
login-account: (Optional) The resource name of the account where the Google Account of the credentials is a user. If not set, defaults to the account of the request. Format:accountTypes/{loginAccountType}/accounts/{loginAccountId}linked-account: (Optional) The resource name of the account with an established product link to thelogin-account. Format:accountTypes/{linkedAccountType}/accounts/{linkedAccountId}
Declaration
public override void DeletePartnerLink(DeletePartnerLinkRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| DeletePartnerLinkRequest | request | The request object containing all of the parameters for the API call. |
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Overrides
DeletePartnerLinkAsync(DeletePartnerLinkRequest, CallSettings)
Deletes a partner link for the given account.
Authorization Headers:
This method supports the following optional headers to define how the API authorizes access for the request:
login-account: (Optional) The resource name of the account where the Google Account of the credentials is a user. If not set, defaults to the account of the request. Format:accountTypes/{loginAccountType}/accounts/{loginAccountId}linked-account: (Optional) The resource name of the account with an established product link to thelogin-account. Format:accountTypes/{linkedAccountType}/accounts/{linkedAccountId}
Declaration
public override Task DeletePartnerLinkAsync(DeletePartnerLinkRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| DeletePartnerLinkRequest | request | The request object containing all of the parameters for the API call. |
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Task | A Task containing the RPC response. |
Overrides
SearchPartnerLinks(SearchPartnerLinksRequest, CallSettings)
Searches for all partner links to and from a given account.
Authorization Headers:
This method supports the following optional headers to define how the API authorizes access for the request:
login-account: (Optional) The resource name of the account where the Google Account of the credentials is a user. If not set, defaults to the account of the request. Format:accountTypes/{loginAccountType}/accounts/{loginAccountId}linked-account: (Optional) The resource name of the account with an established product link to thelogin-account. Format:accountTypes/{linkedAccountType}/accounts/{linkedAccountId}
Declaration
public override PagedEnumerable<SearchPartnerLinksResponse, PartnerLink> SearchPartnerLinks(SearchPartnerLinksRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| SearchPartnerLinksRequest | request | The request object containing all of the parameters for the API call. |
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| PagedEnumerable<SearchPartnerLinksResponse, PartnerLink> | A pageable sequence of PartnerLink resources. |
Overrides
SearchPartnerLinksAsync(SearchPartnerLinksRequest, CallSettings)
Searches for all partner links to and from a given account.
Authorization Headers:
This method supports the following optional headers to define how the API authorizes access for the request:
login-account: (Optional) The resource name of the account where the Google Account of the credentials is a user. If not set, defaults to the account of the request. Format:accountTypes/{loginAccountType}/accounts/{loginAccountId}linked-account: (Optional) The resource name of the account with an established product link to thelogin-account. Format:accountTypes/{linkedAccountType}/accounts/{linkedAccountId}
Declaration
public override PagedAsyncEnumerable<SearchPartnerLinksResponse, PartnerLink> SearchPartnerLinksAsync(SearchPartnerLinksRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| SearchPartnerLinksRequest | request | The request object containing all of the parameters for the API call. |
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| PagedAsyncEnumerable<SearchPartnerLinksResponse, PartnerLink> | A pageable asynchronous sequence of PartnerLink resources. |