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 sub-account within a specified platform using an HTTP POST request.\u003c/p\u003e\n"],["\u003cp\u003eRequires providing the parent platform's ID in the URL and an Account object in the request body.\u003c/p\u003e\n"],["\u003cp\u003eReturns the newly created Account object in the response 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"]]],["This document details how to create a sub-account using a `POST` request to the specified URL. The required path parameter `parent` defines the platform. The request body must include an `Account` instance, and a successful response returns a newly created `Account` instance. The process necessitates the `https://www.googleapis.com/auth/adsense` OAuth scope for authorization. The URL uses gRPC Transcoding syntax.\n"],null,["# Method: platforms.accounts.create\n\n- [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\n### HTTP request\n\n`POST https://adsenseplatform.googleapis.com/v1/{parent=platforms/*}/accounts`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|----------|------------------------------------------------------------------------------------|\n| `parent` | `string` Required. Platform to create an account for. Format: platforms/{platform} |\n\n### Request body\n\nThe request body contains an instance of [Account](/adsense/platforms/reference/rest/v1/platforms.accounts#Account).\n\n### Response body\n\nIf successful, the response body contains a newly created instance of [Account](/adsense/platforms/reference/rest/v1/platforms.accounts#Account).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/adsense`"]]