Class PartnerLinkService.PartnerLinkServiceBase
Base class for server-side implementations of PartnerLinkService
Namespace: Google.Ads.DataManager.V1
Assembly: Google.Ads.DataManager.V1.dll
Syntax
[BindServiceMethod(typeof(PartnerLinkService), "BindService")]
public abstract class PartnerLinkService.PartnerLinkServiceBase
Methods
CreatePartnerLink(CreatePartnerLinkRequest, ServerCallContext)
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 virtual Task<PartnerLink> CreatePartnerLink(CreatePartnerLinkRequest request, ServerCallContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| CreatePartnerLinkRequest | request | The request received from the client. |
| ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
| Type | Description |
|---|---|
| Task<PartnerLink> | The response to send back to the client (wrapped by a task). |
DeletePartnerLink(DeletePartnerLinkRequest, ServerCallContext)
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 virtual Task<Empty> DeletePartnerLink(DeletePartnerLinkRequest request, ServerCallContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| DeletePartnerLinkRequest | request | The request received from the client. |
| ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
| Type | Description |
|---|---|
| Task<Empty> | The response to send back to the client (wrapped by a task). |
SearchPartnerLinks(SearchPartnerLinksRequest, ServerCallContext)
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 virtual Task<SearchPartnerLinksResponse> SearchPartnerLinks(SearchPartnerLinksRequest request, ServerCallContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| SearchPartnerLinksRequest | request | The request received from the client. |
| ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
| Type | Description |
|---|---|
| Task<SearchPartnerLinksResponse> | The response to send back to the client (wrapped by a task). |