Reference documentation and code samples for the Google Ads Data Manager V1 Client class DeviceInfo.
Information about the device being used (if any) when the event happened.
Generated from protobuf message google.ads.datamanager.v1.DeviceInfo
Namespace
Google \ Ads \ DataManager \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ user_agent
string
Optional. The user-agent string of the device for the given context.
↳ ip_address
string
Optional. The IP address of the device for the given context. Note:Google Ads does not support IP address matching for end users in the European Economic Area (EEA), United Kingdom (UK), or Switzerland (CH). Add logic to conditionally exclude sharing IP addresses from users from these regions and ensure that you provide users with clear and comprehensive information about the data you collect on your sites, apps, and other properties and get consent where required by law or any applicable Google policies. See the About offline conversion imports page for more details.
getUserAgent
Optional. The user-agent string of the device for the given context.
string
setUserAgent
Optional. The user-agent string of the device for the given context.
var
string
$this
getIpAddress
Optional. The IP address of the device for the given context.
Note:Google Ads does not support IP address matching for end users in the European Economic Area (EEA), United Kingdom (UK), or Switzerland (CH). Add logic to conditionally exclude sharing IP addresses from users from these regions and ensure that you provide users with clear and comprehensive information about the data you collect on your sites, apps, and other properties and get consent where required by law or any applicable Google policies. See the About offline conversion imports page for more details.
string
setIpAddress
Optional. The IP address of the device for the given context.
Note:Google Ads does not support IP address matching for end users in the European Economic Area (EEA), United Kingdom (UK), or Switzerland (CH). Add logic to conditionally exclude sharing IP addresses from users from these regions and ensure that you provide users with clear and comprehensive information about the data you collect on your sites, apps, and other properties and get consent where required by law or any applicable Google policies. See the About offline conversion imports page for more details.
var
string
$this

