# REST Resource: platforms.accounts.events

- [Resource: Event](https://developers.google.com/adsense/platforms/reference/rest/v1alpha/platforms.accounts.events#Event)
  - [JSON representation](https://developers.google.com/adsense/platforms/reference/rest/v1alpha/platforms.accounts.events#Event.SCHEMA_REPRESENTATION)
- [EventType](https://developers.google.com/adsense/platforms/reference/rest/v1alpha/platforms.accounts.events#EventType)
- [EventInfo](https://developers.google.com/adsense/platforms/reference/rest/v1alpha/platforms.accounts.events#EventInfo)
  - [JSON representation](https://developers.google.com/adsense/platforms/reference/rest/v1alpha/platforms.accounts.events#EventInfo.SCHEMA_REPRESENTATION)
- [Address](https://developers.google.com/adsense/platforms/reference/rest/v1alpha/platforms.accounts.events#Address)
  - [JSON representation](https://developers.google.com/adsense/platforms/reference/rest/v1alpha/platforms.accounts.events#Address.SCHEMA_REPRESENTATION)
- [Methods](https://developers.google.com/adsense/platforms/reference/rest/v1alpha/platforms.accounts.events#METHODS_SUMMARY)

## Resource: Event

A platform sub-account event to record spam signals.

| JSON representation |
|---|
| ``` { "eventType": enum (`https://developers.google.com/adsense/platforms/reference/rest/v1alpha/platforms.accounts.events#EventType`), "eventInfo": { object (`https://developers.google.com/adsense/platforms/reference/rest/v1alpha/platforms.accounts.events#EventInfo`) }, "eventTime": string } ``` |

| Fields ||
|---|---|
| `eventType` | ``enum (`https://developers.google.com/adsense/platforms/reference/rest/v1alpha/platforms.accounts.events#EventType`)`` Required. Event type. |
| `eventInfo` | ``object (`https://developers.google.com/adsense/platforms/reference/rest/v1alpha/platforms.accounts.events#EventInfo`)`` Required. Information associated with the event. |
| `eventTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Required. Event timestamp. Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |

## EventType

Platform recorder event type.

| Enums ||
|---|---|
| `EVENT_TYPE_UNSPECIFIED` | Do not use. You must set an event type explicitly. |
| `LOG_IN_VIA_PLATFORM` | Log in via platform. |
| `SIGN_UP_VIA_PLATFORM` | Sign up via platform. |

## EventInfo

Private information for partner recorded events (PII).

| JSON representation |
|---|
| ``` { "email": string, "billingAddress": { object (`https://developers.google.com/adsense/platforms/reference/rest/v1alpha/platforms.accounts.events#Address`) } } ``` |

| Fields ||
|---|---|
| `email` | `string` Required. The email address that is associated with the publisher when performing the event. |
| `billingAddress` | ``object (`https://developers.google.com/adsense/platforms/reference/rest/v1alpha/platforms.accounts.events#Address`)`` The billing address of the publisher associated with this event, if available. |

## Address

Address data.

| JSON representation |
|---|
| ``` { "address1": string, "address2": string, "city": string, "state": string, "zip": string, "company": string, "contact": string, "phone": string, "fax": string, "regionCode": string } ``` |

| Fields ||
|---|---|
| `address1` | `string` First line of address. Max length 64 bytes or 30 characters. |
| `address2` | `string` Second line of address. Max length 64 bytes or 30 characters. |
| `city` | `string` City. Max length 60 bytes or 30 characters. |
| `state` | `string` State. Max length 60 bytes or 30 characters. |
| `zip` | `string` Zip/post code. Max length 10 bytes or 10 characters. |
| `company` | `string` Name of the company. Max length 255 bytes or 34 characters. |
| `contact` | `string` Contact name of the company. Max length 128 bytes or 34 characters. |
| `phone` | `string` Phone number with international code (i.e. +441234567890). |
| `fax` | `string` Fax number with international code (i.e. +441234567890). |
| `regionCode` | `string` Country/Region code. The region is specified as a CLDR region code (e.g. "US", "FR"). |

| ## Methods ||
|---|---|
| ### `https://developers.google.com/adsense/platforms/reference/rest/v1alpha/platforms.accounts.events/create` | Creates an account event. |