Method: platforms.accounts.create
Stay organized with collections
Save and categorize content based on your preferences.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-08-21 UTC.
[null,null,["Last updated 2024-08-21 UTC."],[[["\u003cp\u003eCreates a new sub-account under a specified platform using an HTTP POST request.\u003c/p\u003e\n"],["\u003cp\u003eRequires providing the parent platform's ID in the request URL and an Account object in the request body.\u003c/p\u003e\n"],["\u003cp\u003eReturns the newly created Account object in the response body if successful.\u003c/p\u003e\n"],["\u003cp\u003eNeeds authorization with the \u003ccode\u003ehttps://www.googleapis.com/auth/adsense\u003c/code\u003e scope.\u003c/p\u003e\n"]]],["The core content describes how to create a sub-account via an HTTP POST request to `https://adsenseplatform.googleapis.com/v1alpha/{parent=platforms/*}/accounts`. The `parent` path parameter is required, specifying the platform. The request body must include an `Account` instance, and a successful response returns a new `Account` instance. This action requires the `https://www.googleapis.com/auth/adsense` OAuth scope for authorization.\n"],null,["- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nCreates a sub-account.\n\nHTTP request\n\n`POST https://adsenseplatform.googleapis.com/v1alpha/{parent=platforms/*}/accounts`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\nPath parameters\n\n| Parameters ||\n|----------|------------------------------------------------------------------------------------|\n| `parent` | `string` Required. Platform to create an account for. Format: platforms/{platform} |\n\nRequest body\n\nThe request body contains an instance of [Account](/adsense/platforms/reference/rest/v1alpha/platforms.accounts#Account).\n\nResponse body\n\nIf successful, the response body contains a newly created instance of [Account](/adsense/platforms/reference/rest/v1alpha/platforms.accounts#Account).\n\nAuthorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/adsense`"]]