Page Summary
-
The Event resource is used to record spam signals for a platform sub-account.
-
The Event resource contains the event type, event information, and event timestamp.
-
The EventType indicates whether the event was a log in or sign up via the platform.
-
The EventInfo includes the email address and optional billing address associated with the event.
-
The Address object provides structured fields for capturing billing address details.
Resource: Event
A platform sub-account event to record spam signals.
| JSON representation |
|---|
{ "eventType" : enum ( |
| Fields | |
|---|---|
eventType
|
Required. Event type. |
eventInfo
|
Required. Information associated with the event. |
eventTime
|
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: |
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 (
|
| Fields | |
|---|---|
email
|
Required. The email address that is associated with the publisher when performing the event. |
billingAddress
|
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
|
First line of address. Max length 64 bytes or 30 characters. |
address2
|
Second line of address. Max length 64 bytes or 30 characters. |
city
|
City. Max length 60 bytes or 30 characters. |
state
|
State. Max length 60 bytes or 30 characters. |
zip
|
Zip/post code. Max length 10 bytes or 10 characters. |
company
|
Name of the company. Max length 255 bytes or 34 characters. |
contact
|
Contact name of the company. Max length 128 bytes or 34 characters. |
phone
|
Phone number with international code (i.e. +441234567890). |
fax
|
Fax number with international code (i.e. +441234567890). |
regionCode
|
Country/Region code. The region is specified as a CLDR region code (e.g. "US", "FR"). |
Methods |
|
|---|---|
|
Creates an account event. |

