Class MarketingplatformAdminServiceClientImpl
MarketingplatformAdminService client wrapper implementation, for convenient use.
Inherited Members
Namespace: Google.Ads.MarketingPlatform.Admin.V1Alpha
Assembly: Google.Ads.MarketingPlatform.Admin.V1Alpha.dll
Syntax
public sealed class MarketingplatformAdminServiceClientImpl : MarketingplatformAdminServiceClient
Remarks
Service Interface for the Google Marketing Platform Admin API.
Constructors
MarketingplatformAdminServiceClientImpl(MarketingplatformAdminServiceClient, MarketingplatformAdminServiceSettings, ILogger)
Constructs a client wrapper for the MarketingplatformAdminService service, with the specified gRPC client and settings.
Declaration
public MarketingplatformAdminServiceClientImpl(MarketingplatformAdminService.MarketingplatformAdminServiceClient grpcClient, MarketingplatformAdminServiceSettings settings, ILogger logger)
Parameters
| Type | Name | Description |
|---|---|---|
| MarketingplatformAdminService.MarketingplatformAdminServiceClient | grpcClient | The underlying gRPC client. |
| MarketingplatformAdminServiceSettings | settings | The base MarketingplatformAdminServiceSettings used within this client. |
| ILogger | logger | Optional ILogger to use within this client. |
Properties
GrpcClient
The underlying gRPC MarketingplatformAdminService client
Declaration
public override MarketingplatformAdminService.MarketingplatformAdminServiceClient GrpcClient { get; }
Property Value
| Type | Description |
|---|---|
| MarketingplatformAdminService.MarketingplatformAdminServiceClient |
Overrides
Methods
CreateAnalyticsAccountLink(CreateAnalyticsAccountLinkRequest, CallSettings)
Creates the link between the Analytics account and the Google Marketing Platform organization.
User needs to be an org user, and admin on the Analytics account to create the link. If the account is already linked to an organization, user needs to unlink the account from the current organization, then try link again.
Declaration
public override AnalyticsAccountLink CreateAnalyticsAccountLink(CreateAnalyticsAccountLinkRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| CreateAnalyticsAccountLinkRequest | 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 |
|---|---|
| AnalyticsAccountLink | The RPC response. |
Overrides
CreateAnalyticsAccountLinkAsync(CreateAnalyticsAccountLinkRequest, CallSettings)
Creates the link between the Analytics account and the Google Marketing Platform organization.
User needs to be an org user, and admin on the Analytics account to create the link. If the account is already linked to an organization, user needs to unlink the account from the current organization, then try link again.
Declaration
public override Task<AnalyticsAccountLink> CreateAnalyticsAccountLinkAsync(CreateAnalyticsAccountLinkRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| CreateAnalyticsAccountLinkRequest | 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<AnalyticsAccountLink> | A Task containing the RPC response. |
Overrides
DeleteAnalyticsAccountLink(DeleteAnalyticsAccountLinkRequest, CallSettings)
Deletes the AnalyticsAccountLink, which detaches the Analytics account from the Google Marketing Platform organization.
User needs to be an org user, and admin on the Analytics account in order to delete the link.
Declaration
public override void DeleteAnalyticsAccountLink(DeleteAnalyticsAccountLinkRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| DeleteAnalyticsAccountLinkRequest | 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
DeleteAnalyticsAccountLinkAsync(DeleteAnalyticsAccountLinkRequest, CallSettings)
Deletes the AnalyticsAccountLink, which detaches the Analytics account from the Google Marketing Platform organization.
User needs to be an org user, and admin on the Analytics account in order to delete the link.
Declaration
public override Task DeleteAnalyticsAccountLinkAsync(DeleteAnalyticsAccountLinkRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| DeleteAnalyticsAccountLinkRequest | 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
FindSalesPartnerManagedClients(FindSalesPartnerManagedClientsRequest, CallSettings)
Returns a list of clients managed by the sales partner organization.
User needs to be an OrgAdmin/BillingAdmin on the sales partner organization in order to view the end clients.
Declaration
public override FindSalesPartnerManagedClientsResponse FindSalesPartnerManagedClients(FindSalesPartnerManagedClientsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| FindSalesPartnerManagedClientsRequest | 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 |
|---|---|
| FindSalesPartnerManagedClientsResponse | The RPC response. |
Overrides
FindSalesPartnerManagedClientsAsync(FindSalesPartnerManagedClientsRequest, CallSettings)
Returns a list of clients managed by the sales partner organization.
User needs to be an OrgAdmin/BillingAdmin on the sales partner organization in order to view the end clients.
Declaration
public override Task<FindSalesPartnerManagedClientsResponse> FindSalesPartnerManagedClientsAsync(FindSalesPartnerManagedClientsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| FindSalesPartnerManagedClientsRequest | 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<FindSalesPartnerManagedClientsResponse> | A Task containing the RPC response. |
Overrides
GetOrganization(GetOrganizationRequest, CallSettings)
Lookup for a single organization.
Declaration
public override Organization GetOrganization(GetOrganizationRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetOrganizationRequest | 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 |
|---|---|
| Organization | The RPC response. |
Overrides
GetOrganizationAsync(GetOrganizationRequest, CallSettings)
Lookup for a single organization.
Declaration
public override Task<Organization> GetOrganizationAsync(GetOrganizationRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetOrganizationRequest | 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<Organization> | A Task containing the RPC response. |
Overrides
ListAnalyticsAccountLinks(ListAnalyticsAccountLinksRequest, CallSettings)
Lists the Google Analytics accounts link to the specified Google Marketing Platform organization.
Declaration
public override PagedEnumerable<ListAnalyticsAccountLinksResponse, AnalyticsAccountLink> ListAnalyticsAccountLinks(ListAnalyticsAccountLinksRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ListAnalyticsAccountLinksRequest | 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<ListAnalyticsAccountLinksResponse, AnalyticsAccountLink> | A pageable sequence of AnalyticsAccountLink resources. |
Overrides
ListAnalyticsAccountLinksAsync(ListAnalyticsAccountLinksRequest, CallSettings)
Lists the Google Analytics accounts link to the specified Google Marketing Platform organization.
Declaration
public override PagedAsyncEnumerable<ListAnalyticsAccountLinksResponse, AnalyticsAccountLink> ListAnalyticsAccountLinksAsync(ListAnalyticsAccountLinksRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ListAnalyticsAccountLinksRequest | 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<ListAnalyticsAccountLinksResponse, AnalyticsAccountLink> | A pageable asynchronous sequence of AnalyticsAccountLink resources. |
Overrides
ListOrganizations(ListOrganizationsRequest, CallSettings)
Returns a list of organizations that the user has access to.
Declaration
public override PagedEnumerable<ListOrganizationsResponse, Organization> ListOrganizations(ListOrganizationsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ListOrganizationsRequest | 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<ListOrganizationsResponse, Organization> | A pageable sequence of Organization resources. |
Overrides
ListOrganizationsAsync(ListOrganizationsRequest, CallSettings)
Returns a list of organizations that the user has access to.
Declaration
public override PagedAsyncEnumerable<ListOrganizationsResponse, Organization> ListOrganizationsAsync(ListOrganizationsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ListOrganizationsRequest | 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<ListOrganizationsResponse, Organization> | A pageable asynchronous sequence of Organization resources. |
Overrides
ReportPropertyUsage(ReportPropertyUsageRequest, CallSettings)
Get the usage and billing data for properties within the organization for the specified month.
Per direct client org, user needs to be OrgAdmin/BillingAdmin on the organization in order to view the billing and usage data.
Per sales partner client org, user needs to be OrgAdmin/BillingAdmin on the sales partner org in order to view the billing and usage data, or OrgAdmin/BillingAdmin on the sales partner client org in order to view the usage data only.
Declaration
public override ReportPropertyUsageResponse ReportPropertyUsage(ReportPropertyUsageRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ReportPropertyUsageRequest | 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 |
|---|---|
| ReportPropertyUsageResponse | The RPC response. |
Overrides
ReportPropertyUsageAsync(ReportPropertyUsageRequest, CallSettings)
Get the usage and billing data for properties within the organization for the specified month.
Per direct client org, user needs to be OrgAdmin/BillingAdmin on the organization in order to view the billing and usage data.
Per sales partner client org, user needs to be OrgAdmin/BillingAdmin on the sales partner org in order to view the billing and usage data, or OrgAdmin/BillingAdmin on the sales partner client org in order to view the usage data only.
Declaration
public override Task<ReportPropertyUsageResponse> ReportPropertyUsageAsync(ReportPropertyUsageRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ReportPropertyUsageRequest | 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<ReportPropertyUsageResponse> | A Task containing the RPC response. |
Overrides
SetPropertyServiceLevel(SetPropertyServiceLevelRequest, CallSettings)
Updates the service level for an Analytics property.
Declaration
public override SetPropertyServiceLevelResponse SetPropertyServiceLevel(SetPropertyServiceLevelRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| SetPropertyServiceLevelRequest | 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 |
|---|---|
| SetPropertyServiceLevelResponse | The RPC response. |
Overrides
SetPropertyServiceLevelAsync(SetPropertyServiceLevelRequest, CallSettings)
Updates the service level for an Analytics property.
Declaration
public override Task<SetPropertyServiceLevelResponse> SetPropertyServiceLevelAsync(SetPropertyServiceLevelRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| SetPropertyServiceLevelRequest | 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<SetPropertyServiceLevelResponse> | A Task containing the RPC response. |