Method: platforms.accounts.events.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\u003eThis documentation outlines how to create an account event using an HTTP POST request to a specified URL.\u003c/p\u003e\n"],["\u003cp\u003eThe request requires path parameters to identify the target account and a request body containing event details as defined in the \u003ccode\u003eEvent\u003c/code\u003e object.\u003c/p\u003e\n"],["\u003cp\u003eSuccessful requests will return a response body containing the newly created \u003ccode\u003eEvent\u003c/code\u003e object.\u003c/p\u003e\n"],["\u003cp\u003eTo utilize this functionality, proper authorization with the \u003ccode\u003ehttps://www.googleapis.com/auth/adsense\u003c/code\u003e scope is necessary.\u003c/p\u003e\n"]]],["The core content describes the process of creating an account event using a POST request to a specific URL. The URL includes a required `parent` path parameter representing the account. The request body must contain an `Event` instance, and a successful response will include a newly created `Event` instance. Authorization requires the `https://www.googleapis.com/auth/adsense` OAuth scope. This utilizes gRPC Transcoding syntax.\n"],null,["# Method: platforms.accounts.events.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 an account event.\n\n### HTTP request\n\n`POST https://adsenseplatform.googleapis.com/v1/{parent=platforms/*/accounts/*}/events`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|----------|-------------------------------------------------------------------------------------------------|\n| `parent` | `string` Required. Account to log events about. Format: platforms/{platform}/accounts/{account} |\n\n### Request body\n\nThe request body contains an instance of [Event](/adsense/platforms/reference/rest/v1/platforms.accounts.events#Event).\n\n### Response body\n\nIf successful, the response body contains a newly created instance of [Event](/adsense/platforms/reference/rest/v1/platforms.accounts.events#Event).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/adsense`"]]