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.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[[["\u003cp\u003eThis document provides details on the \u003ccode\u003eMarketingplatformAdminServiceFutureStub\u003c/code\u003e, which enables \u003ccode\u003eListenableFuture\u003c/code\u003e-style RPC calls to the \u003ccode\u003eMarketingplatformAdminService\u003c/code\u003e for the Google Marketing Platform Admin API.\u003c/p\u003e\n"],["\u003cp\u003eThe stub is part of the \u003ccode\u003ecom.google.ads.marketingplatform.admin.v1alpha\u003c/code\u003e package, and it extends \u003ccode\u003eAbstractFutureStub\u003c/code\u003e, inheriting several methods related to call options, channels, and credentials.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of this API is 0.9.0, with versions ranging back to 0.1.0, and it includes methods for managing Analytics account links, such as creating, deleting, and listing them, along with retrieving organization details.\u003c/p\u003e\n"],["\u003cp\u003eUsers with appropriate permissions can manage Analytics account links via the listed methods, in which they are able to link or unlink the account from the Google Marketing Platform.\u003c/p\u003e\n"],["\u003cp\u003eThe service allows updating the service level for an analytics property via the method \u003ccode\u003esetPropertyServiceLevel\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Class MarketingplatformAdminServiceGrpc.MarketingplatformAdminServiceFutureStub (0.21.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.21.0 (latest)](/java/docs/reference/admin/latest/com.google.ads.marketingplatform.admin.v1alpha.MarketingplatformAdminServiceGrpc.MarketingplatformAdminServiceFutureStub)\n- [0.19.0](/java/docs/reference/admin/0.19.0/com.google.ads.marketingplatform.admin.v1alpha.MarketingplatformAdminServiceGrpc.MarketingplatformAdminServiceFutureStub)\n- [0.17.0](/java/docs/reference/admin/0.17.0/com.google.ads.marketingplatform.admin.v1alpha.MarketingplatformAdminServiceGrpc.MarketingplatformAdminServiceFutureStub)\n- [0.16.0](/java/docs/reference/admin/0.16.0/com.google.ads.marketingplatform.admin.v1alpha.MarketingplatformAdminServiceGrpc.MarketingplatformAdminServiceFutureStub)\n- [0.13.0](/java/docs/reference/admin/0.13.0/com.google.ads.marketingplatform.admin.v1alpha.MarketingplatformAdminServiceGrpc.MarketingplatformAdminServiceFutureStub)\n- [0.12.0](/java/docs/reference/admin/0.12.0/com.google.ads.marketingplatform.admin.v1alpha.MarketingplatformAdminServiceGrpc.MarketingplatformAdminServiceFutureStub)\n- [0.11.0](/java/docs/reference/admin/0.11.0/com.google.ads.marketingplatform.admin.v1alpha.MarketingplatformAdminServiceGrpc.MarketingplatformAdminServiceFutureStub)\n- [0.9.0](/java/docs/reference/admin/0.9.0/com.google.ads.marketingplatform.admin.v1alpha.MarketingplatformAdminServiceGrpc.MarketingplatformAdminServiceFutureStub)\n- [0.8.0](/java/docs/reference/admin/0.8.0/com.google.ads.marketingplatform.admin.v1alpha.MarketingplatformAdminServiceGrpc.MarketingplatformAdminServiceFutureStub)\n- [0.7.0](/java/docs/reference/admin/0.7.0/com.google.ads.marketingplatform.admin.v1alpha.MarketingplatformAdminServiceGrpc.MarketingplatformAdminServiceFutureStub)\n- [0.6.0](/java/docs/reference/admin/0.6.0/com.google.ads.marketingplatform.admin.v1alpha.MarketingplatformAdminServiceGrpc.MarketingplatformAdminServiceFutureStub)\n- [0.5.0](/java/docs/reference/admin/0.5.0/com.google.ads.marketingplatform.admin.v1alpha.MarketingplatformAdminServiceGrpc.MarketingplatformAdminServiceFutureStub)\n- [0.4.0](/java/docs/reference/admin/0.4.0/com.google.ads.marketingplatform.admin.v1alpha.MarketingplatformAdminServiceGrpc.MarketingplatformAdminServiceFutureStub)\n- [0.3.0](/java/docs/reference/admin/0.3.0/com.google.ads.marketingplatform.admin.v1alpha.MarketingplatformAdminServiceGrpc.MarketingplatformAdminServiceFutureStub)\n- [0.2.0](/java/docs/reference/admin/0.2.0/com.google.ads.marketingplatform.admin.v1alpha.MarketingplatformAdminServiceGrpc.MarketingplatformAdminServiceFutureStub)\n- [0.1.0](/java/docs/reference/admin/0.1.0/com.google.ads.marketingplatform.admin.v1alpha.MarketingplatformAdminServiceGrpc.MarketingplatformAdminServiceFutureStub) \n\n public static final class MarketingplatformAdminServiceGrpc.MarketingplatformAdminServiceFutureStub extends AbstractFutureStub\u003cMarketingplatformAdminServiceGrpc.MarketingplatformAdminServiceFutureStub\u003e\n\nA stub to allow clients to do ListenableFuture-style rpc calls to service\nMarketingplatformAdminService.\n\nService Interface for the Google Marketing Platform Admin API. \n\nInheritance\n-----------\n\n[java.lang.Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \\\u003e io.grpc.stub.AbstractStub \\\u003e io.grpc.stub.AbstractFutureStub \\\u003e MarketingplatformAdminServiceGrpc.MarketingplatformAdminServiceFutureStub \n\nInherited Members\n-----------------\n\nio.grpc.stub.AbstractFutureStub.\\\u003cT\\\u003enewStub(io.grpc.stub.AbstractStub.StubFactory\\\u003cT\\\u003e,io.grpc.Channel) \nio.grpc.stub.AbstractFutureStub.\\\u003cT\\\u003enewStub(io.grpc.stub.AbstractStub.StubFactory\\\u003cT\\\u003e,io.grpc.Channel,io.grpc.CallOptions) \nio.grpc.stub.AbstractStub.\\\u003cT\\\u003ewithOption(io.grpc.CallOptions.Key\\\u003cT\\\u003e,T) \nio.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions) \nio.grpc.stub.AbstractStub.getCallOptions() \nio.grpc.stub.AbstractStub.getChannel() \nio.grpc.stub.AbstractStub.withCallCredentials(io.grpc.CallCredentials) \nio.grpc.stub.AbstractStub.withChannel(io.grpc.Channel) \nio.grpc.stub.AbstractStub.withCompression(java.lang.String) \nio.grpc.stub.AbstractStub.withDeadline(io.grpc.Deadline) \nio.grpc.stub.AbstractStub.withDeadlineAfter(java.time.Duration) \nio.grpc.stub.AbstractStub.withDeadlineAfter(long,java.util.concurrent.TimeUnit) \nio.grpc.stub.AbstractStub.withExecutor(java.util.concurrent.Executor) \nio.grpc.stub.AbstractStub.withInterceptors(io.grpc.ClientInterceptor...) \nio.grpc.stub.AbstractStub.withMaxInboundMessageSize(int) \nio.grpc.stub.AbstractStub.withMaxOutboundMessageSize(int) \nio.grpc.stub.AbstractStub.withOnReadyThreshold(int) \nio.grpc.stub.AbstractStub.withWaitForReady() \n[Object.clone()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--) \n[Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-) \n[Object.finalize()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--) \n[Object.getClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--) \n[Object.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--) \n[Object.notify()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--) \n[Object.notifyAll()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--) \n[Object.toString()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--) \n[Object.wait()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--) \n[Object.wait(long)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-) \n[Object.wait(long,int)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-)\n\nMethods\n-------\n\n### build(Channel channel, CallOptions callOptions)\n\n protected MarketingplatformAdminServiceGrpc.MarketingplatformAdminServiceFutureStub build(Channel channel, CallOptions callOptions)\n\n**Overrides** \nio.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)\n\n### createAnalyticsAccountLink(CreateAnalyticsAccountLinkRequest request)\n\n public ListenableFuture\u003cAnalyticsAccountLink\u003e createAnalyticsAccountLink(CreateAnalyticsAccountLinkRequest request)\n\nCreates the link between the Analytics account and the Google Marketing\nPlatform organization.\nUser needs to be an org user, and admin on the Analytics account to create\nthe link. If the account is already linked to an organization, user needs\nto unlink the account from the current organization, then try link again.\n\n### deleteAnalyticsAccountLink(DeleteAnalyticsAccountLinkRequest request)\n\n public ListenableFuture\u003cEmpty\u003e deleteAnalyticsAccountLink(DeleteAnalyticsAccountLinkRequest request)\n\nDeletes the AnalyticsAccountLink, which detaches the Analytics account from\nthe Google Marketing Platform organization.\nUser needs to be an org user, and admin on the Analytics account in order\nto delete the link.\n\n### getOrganization(GetOrganizationRequest request)\n\n public ListenableFuture\u003cOrganization\u003e getOrganization(GetOrganizationRequest request)\n\nLookup for a single organization.\n\n### listAnalyticsAccountLinks(ListAnalyticsAccountLinksRequest request)\n\n public ListenableFuture\u003cListAnalyticsAccountLinksResponse\u003e listAnalyticsAccountLinks(ListAnalyticsAccountLinksRequest request)\n\nLists the Google Analytics accounts link to the specified Google Marketing\nPlatform organization.\n\n### setPropertyServiceLevel(SetPropertyServiceLevelRequest request)\n\n public ListenableFuture\u003cSetPropertyServiceLevelResponse\u003e setPropertyServiceLevel(SetPropertyServiceLevelRequest request)\n\nUpdates the service level for an Analytics property."]]