Method: platforms.accounts.events.create

  • This document details how to create an account event using a POST request to the specified Google Adsense Platform API endpoint.

  • The request requires a parent path parameter specifying the account to log events about.

  • The request body should contain an instance of an Event object, and a successful response will return a newly created Event.

  • The creation of an account event requires the https://www.googleapis.com/auth/adsense OAuth scope for authorization.

Creates an account event.

HTTP request

POST https://adsenseplatform.googleapis.com/v1alpha/{parent=platforms/*/accounts/*}/events

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. Account to log events about. Format: platforms/{platform}/accounts/{account}

Request body

The request body contains an instance of Event.

Response body

If successful, the response body contains a newly created instance of Event.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/adsense