# Google Shopping Merchant Accounts V1 Client - Class OptInState (1.4.1)

1.4.1 (latest) 1.4.0 1.3.1 1.2.2 1.1.0 1.0.0 0.10.0 0.9.1 0.8.0 0.7.0 0.6.0 0.5.0 0.4.0 0.3.3 0.2.0 0.1.0 Reference documentation and code samples for the Google Shopping Merchant Accounts V1 Client class OptInState.

Opt in state of the email preference.

Protobuf type `google.shopping.merchant.accounts.v1.EmailPreferences.OptInState`

## Namespace

Google \\ Shopping \\ Merchant \\ Accounts \\ V1 \\ EmailPreferences

## Methods

### static::name

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `mixed` |

### static::value

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `mixed` |

## Constants

### OPT_IN_STATE_UNSPECIFIED

    Value: 0

Opt-in status is not specified.

Generated from protobuf enum `OPT_IN_STATE_UNSPECIFIED = 0;`

### OPTED_OUT

    Value: 1

User has opted out of receiving this type of email.

Generated from protobuf enum `OPTED_OUT = 1;`

### OPTED_IN

    Value: 2

User has opted in to receiving this type of email.

Generated from protobuf enum `OPTED_IN = 2;`

### UNCONFIRMED

    Value: 3

User has opted in to receiving this type of email and the confirmation
email has been sent, but user has not yet confirmed the opt in (applies
only to certain countries).

Generated from protobuf enum `UNCONFIRMED = 3;`