0.15.1 (latest) 0.15.0 0.14.1 0.8.0 0.7.0 0.6.2 0.5.0 0.4.1 0.3.1 0.2.0 0.1.3 Reference documentation and code samples for the Google Ads Ad Manager V1 Client class NonRuleBasedFirstPartyAudienceSegment.

An `AudienceSegment` owned by the publisher network that does not contain
a rule. Cookies are usually added to these segments through cookie upload.

Generated from protobuf message `google.ads.admanager.v1.AudienceSegment.NonRuleBasedFirstPartyAudienceSegment`

## Namespace

Google \\ Ads \\ AdManager \\ V1 \\ AudienceSegment

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ membership_expiration_days` | `int|string` Required. Number of days after which a user's cookie will be removed from the `AudienceSegment` due to inactivity. The field can be between 1 and 540. |

### getMembershipExpirationDays

Required. Number of days after which a user's cookie will be removed from
the `AudienceSegment` due to inactivity. The field can be between 1 and
540.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int|string` |   |

### hasMembershipExpirationDays

### clearMembershipExpirationDays

### setMembershipExpirationDays

Required. Number of days after which a user's cookie will be removed from
the `AudienceSegment` due to inactivity. The field can be between 1 and
540.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int|string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |