visit

A visit.

Attributed resources
ad_group
ad_group_criterion
campaign
customer

Fields from the above resources may be selected along with this resource in your SELECT and WHERE clauses. These fields will not segment metrics in your SELECT clause.

Fields/Segments/Metrics

This page shows all metrics and segments that can be put in the same SELECT clause as the fields of visit. However, when you specify visit in the FROM clause, some metrics and segments cannot be used. Use the following filter to show only the fields that can be used when visit is specified in the FROM clause.

Is visit specified in the FROM clause of your query?

 Resource fields
ad_id
asset_field_type
asset_id
click_id
criterion_id
id
merchant_id
product_channel
product_country_code
product_id
product_language_code
product_store_id
resource_name
visit_date_time
 Segments
ad_network_type
date
device
month
quarter
week
year

visit.ad_id

Field descriptionAd ID. A value of 0 indicates that the ad is unattributed.
CategoryATTRIBUTE
Data TypeINT64
Type URLN/A
FilterableTrue
SelectableTrue
SortableTrue
RepeatedFalse

visit.asset_field_type

Field descriptionAsset field type of the visit event.
CategoryATTRIBUTE
Data Type
Type URLgoogle.ads.searchads360.v0.enums.AssetFieldTypeEnum.AssetFieldType
FilterableTrue
SelectableTrue
SortableTrue
RepeatedFalse

visit.asset_id

Field descriptionID of the asset which was interacted with during the visit event.
CategoryATTRIBUTE
Data TypeINT64
Type URLN/A
FilterableTrue
SelectableTrue
SortableTrue
RepeatedFalse

visit.click_id

Field descriptionA unique string for each visit that is passed to the landing page as the click id URL parameter.
CategoryATTRIBUTE
Data TypeSTRING
Type URLN/A
FilterableTrue
SelectableTrue
SortableTrue
RepeatedFalse

visit.criterion_id

Field descriptionSearch Ads 360 keyword ID. A value of 0 indicates that the keyword is unattributed.
CategoryATTRIBUTE
Data TypeINT64
Type URLN/A
FilterableTrue
SelectableTrue
SortableTrue
RepeatedFalse

visit.id

Field descriptionThe ID of the visit.
CategoryATTRIBUTE
Data TypeINT64
Type URLN/A
FilterableTrue
SelectableTrue
SortableTrue
RepeatedFalse

visit.merchant_id

Field descriptionThe Search Ads 360 inventory account ID containing the product that was clicked on. Search Ads 360 generates this ID when you link an inventory account in Search Ads 360.
CategoryATTRIBUTE
Data TypeINT64
Type URLN/A
FilterableTrue
SelectableTrue
SortableTrue
RepeatedFalse

visit.product_channel

Field descriptionThe sales channel of the product that was clicked on: Online or Local.
CategoryATTRIBUTE
Data Type
Type URLgoogle.ads.searchads360.v0.enums.ProductChannelEnum.ProductChannel
FilterableTrue
SelectableTrue
SortableTrue
RepeatedFalse

visit.product_country_code

Field descriptionThe country (ISO-3166 format) registered for the inventory feed that contains the product clicked on.
CategoryATTRIBUTE
Data TypeSTRING
Type URLN/A
FilterableTrue
SelectableTrue
SortableTrue
RepeatedFalse

visit.product_id

Field descriptionThe ID of the product clicked on.
CategoryATTRIBUTE
Data TypeSTRING
Type URLN/A
FilterableTrue
SelectableTrue
SortableTrue
RepeatedFalse

visit.product_language_code

Field descriptionThe language (ISO-639-1) that has been set for the Merchant Center feed containing data about the product.
CategoryATTRIBUTE
Data TypeSTRING
Type URLN/A
FilterableTrue
SelectableTrue
SortableTrue
RepeatedFalse

visit.product_store_id

Field descriptionThe store in the Local Inventory Ad that was clicked on. This should match the store IDs used in your local products feed.
CategoryATTRIBUTE
Data TypeSTRING
Type URLN/A
FilterableTrue
SelectableTrue
SortableTrue
RepeatedFalse

visit.resource_name

Field descriptionThe resource name of the visit. Visit resource names have the form: customers/{customer_id}/visits/{ad_group_id}~{criterion_id}~{ds_visit_id}
CategoryATTRIBUTE
Data TypeRESOURCE_NAME
Type URLN/A
FilterableTrue
SelectableTrue
SortableFalse
RepeatedFalse

visit.visit_date_time

Field descriptionThe timestamp of the visit event. The timestamp is in the customer's time zone and in "yyyy-MM-dd HH:mm:ss" format.
CategoryATTRIBUTE
Data TypeDATE
Type URLN/A
FilterableTrue
SelectableTrue
SortableTrue
RepeatedFalse

segments.ad_network_type

Field descriptionAd network type.
CategorySEGMENT
Data Type
Type URLgoogle.ads.searchads360.v0.enums.AdNetworkTypeEnum.AdNetworkType
FilterableTrue
SelectableTrue
SortableTrue
RepeatedFalse

segments.date

Field descriptionDate to which metrics apply. yyyy-MM-dd format, for example, 2018-04-17.
CategorySEGMENT
Data TypeDATE
Type URLN/A
FilterableTrue
SelectableTrue
SortableTrue
RepeatedFalse

segments.device

Field descriptionDevice to which metrics apply.
CategorySEGMENT
Data Type
Type URLgoogle.ads.searchads360.v0.enums.DeviceEnum.Device
FilterableTrue
SelectableTrue
SortableTrue
RepeatedFalse

segments.month

Field descriptionMonth as represented by the date of the first day of a month. Formatted as yyyy-MM-dd.
CategorySEGMENT
Data TypeDATE
Type URLN/A
FilterableTrue
SelectableTrue
SortableTrue
RepeatedFalse

segments.quarter

Field descriptionQuarter as represented by the date of the first day of a quarter. Uses the calendar year for quarters, for example, the second quarter of 2018 starts on 2018-04-01. Formatted as yyyy-MM-dd.
CategorySEGMENT
Data TypeDATE
Type URLN/A
FilterableTrue
SelectableTrue
SortableTrue
RepeatedFalse

segments.week

Field descriptionWeek as defined as Monday through Sunday, and represented by the date of Monday. Formatted as yyyy-MM-dd.
CategorySEGMENT
Data TypeDATE
Type URLN/A
FilterableTrue
SelectableTrue
SortableTrue
RepeatedFalse

segments.year

Field descriptionYear, formatted as yyyy.
CategorySEGMENT
Data TypeINT32
Type URLN/A
FilterableTrue
SelectableTrue
SortableTrue
RepeatedFalse