Reference documentation and code samples for the Google Ads Data Manager V1 Client class IpData.
IP address information for a user.
We recommend including observe_start_time and observe_end_time to help improve Customer Match match rates.
Generated from protobuf message google.ads.datamanager.v1.IpData
Namespace
Google \ Ads \ DataManager \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ ip_address |
string
Required. IP address captured at the time of customer interaction. Accepts standard string formats for both IPv4 and IPv6. |
↳ observe_start_time |
Google\Protobuf\Timestamp
Optional. First recorded interaction time from this IP address in a session. |
↳ observe_end_time |
Google\Protobuf\Timestamp
Optional. Last recorded interaction time from this IP address in a session. |
getIpAddress
Required. IP address captured at the time of customer interaction.
Accepts standard string formats for both IPv4 and IPv6.
| Returns | |
|---|---|
| Type | Description |
string |
|
setIpAddress
Required. IP address captured at the time of customer interaction.
Accepts standard string formats for both IPv4 and IPv6.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getObserveStartTime
Optional. First recorded interaction time from this IP address in a session.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Timestamp|null |
|
hasObserveStartTime
clearObserveStartTime
setObserveStartTime
Optional. First recorded interaction time from this IP address in a session.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Protobuf\Timestamp
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getObserveEndTime
Optional. Last recorded interaction time from this IP address in a session.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Timestamp|null |
|
hasObserveEndTime
clearObserveEndTime
setObserveEndTime
Optional. Last recorded interaction time from this IP address in a session.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Protobuf\Timestamp
|
| Returns | |
|---|---|
| Type | Description |
$this |
|