# Google Shopping Merchant Accounts V1beta 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

> [!WARNING]
> **Beta**
>
>
> This library is covered by the [Pre-GA Offerings Terms](https://docs.cloud.google.com/terms/service-terms#1)
> of the Terms of Service. Pre-GA libraries might have limited support,
> and changes to pre-GA libraries might not be compatible with other pre-GA versions.
> For more information, see the
> [launch stage descriptions](https://docs.cloud.google.com/products#product-launch-stages).

Reference documentation and code samples for the Google Shopping Merchant Accounts V1beta Client class OptInState.

Opt in state of the email preference.

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

## Namespace

Google \\ Shopping \\ Merchant \\ Accounts \\ V1beta \\ 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;`