# Interface AttributionSettingsOrBuilder (1.21.0)

1.21.0 (latest) 1.19.0 1.16.0 1.15.0 1.13.0 1.11.0 1.10.0 1.8.0 1.6.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0 0.29.0 0.27.0 0.26.0 0.23.0 0.22.0 0.21.0 0.19.0 0.18.0 0.17.0 0.16.0 0.15.0 0.14.0 0.13.0 0.12.0 0.11.0 0.10.0 0.8.0 0.7.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.0

    public interface AttributionSettingsOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getAttributionLookbackWindowDays()

    public abstract int getAttributionLookbackWindowDays()

Required. Lookback windows (in days) used for attribution in this source.
Supported values are 7, 30, 40.

`int32 attribution_lookback_window_days = 1 [(.google.api.field_behavior) = REQUIRED];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The attributionLookbackWindowDays. |

### getAttributionModel()

    public abstract AttributionSettings.AttributionModel getAttributionModel()

Required. Attribution model.

`
.google.shopping.merchant.conversions.v1beta.AttributionSettings.AttributionModel attribution_model = 2 [(.google.api.field_behavior) = REQUIRED];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-conversions/latest/com.google.shopping.merchant.conversions.v1beta.AttributionSettings.AttributionModel` | The attributionModel. |

### getAttributionModelValue()

    public abstract int getAttributionModelValue()

Required. Attribution model.

`
.google.shopping.merchant.conversions.v1beta.AttributionSettings.AttributionModel attribution_model = 2 [(.google.api.field_behavior) = REQUIRED];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for attributionModel. |

### getConversionType(int index)

    public abstract AttributionSettings.ConversionType getConversionType(int index)

Immutable. Unordered list. List of different conversion types a conversion
event can be classified as. A standard "purchase" type will be
automatically created if this list is empty at creation time.

`
repeated .google.shopping.merchant.conversions.v1beta.AttributionSettings.ConversionType conversion_type = 3 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = IMMUTABLE];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-conversions/latest/com.google.shopping.merchant.conversions.v1beta.AttributionSettings.ConversionType` |   |

### getConversionTypeCount()

    public abstract int getConversionTypeCount()

Immutable. Unordered list. List of different conversion types a conversion
event can be classified as. A standard "purchase" type will be
automatically created if this list is empty at creation time.

`
repeated .google.shopping.merchant.conversions.v1beta.AttributionSettings.ConversionType conversion_type = 3 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = IMMUTABLE];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getConversionTypeList()

    public abstract List<AttributionSettings.ConversionType> getConversionTypeList()

Immutable. Unordered list. List of different conversion types a conversion
event can be classified as. A standard "purchase" type will be
automatically created if this list is empty at creation time.

`
repeated .google.shopping.merchant.conversions.v1beta.AttributionSettings.ConversionType conversion_type = 3 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = IMMUTABLE];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-conversions/latest/com.google.shopping.merchant.conversions.v1beta.AttributionSettings.ConversionType>` |   |

### getConversionTypeOrBuilder(int index)

    public abstract AttributionSettings.ConversionTypeOrBuilder getConversionTypeOrBuilder(int index)

Immutable. Unordered list. List of different conversion types a conversion
event can be classified as. A standard "purchase" type will be
automatically created if this list is empty at creation time.

`
repeated .google.shopping.merchant.conversions.v1beta.AttributionSettings.ConversionType conversion_type = 3 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = IMMUTABLE];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-conversions/latest/com.google.shopping.merchant.conversions.v1beta.AttributionSettings.ConversionTypeOrBuilder` |   |

### getConversionTypeOrBuilderList()

    public abstract List<? extends AttributionSettings.ConversionTypeOrBuilder> getConversionTypeOrBuilderList()

Immutable. Unordered list. List of different conversion types a conversion
event can be classified as. A standard "purchase" type will be
automatically created if this list is empty at creation time.

`
repeated .google.shopping.merchant.conversions.v1beta.AttributionSettings.ConversionType conversion_type = 3 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = IMMUTABLE];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<? extends com.google.shopping.merchant.conversions.v1beta.AttributionSettings.ConversionTypeOrBuilder>` |   |