Google Ads

Note:

• Google Ads data isn't available in the real-time API.

• For the data to be available, set up the Google Ads integration in Menu > Analytics > Settings > Integrations.

Metrics

Here’s a list of metrics that are available in Piwik PRO when you use Google Ads integration.

google_ads_average_cpc

NameAverage CPC (Google Ads)
ScopesGoogle Ads
AvailabilityQuery API
Typefloat

google_ads_clicks

NameClicks (Google Ads)
ScopesGoogle Ads
AvailabilityQuery API
Typeint

google_ads_cost

NameCost (Google Ads)
ScopesGoogle Ads
AvailabilityQuery API
Typefloat

google_ads_ctr

NameCTR (Google Ads)
ScopesGoogle Ads
AvailabilityQuery API
Typefloat

google_ads_impressions

NameImpressions (Google Ads)
ScopesGoogle Ads
AvailabilityQuery API
Typeint

google_ads_roas

NameROAS (Google Ads)
Scopesevent, session
AvailabilityQuery API
Typefloat

Dimensions

Here’s a list of dimensions that are available in Piwik PRO when you use Google Ads integration.

device_type

NameDevice type
Scopesevent, product, session
AvailabilityReal-time, Query API, Raw data API
Type[int, str]
Database typeuint8
Nullabletrue
Notesdevice_type.json

google_ads_ad_group_ad_id

NameAd group ad ID (Google Ads)
Scopesevent, product, session
AvailabilityQuery API, Raw data API
Typestr_id
Database typestring
Nullabletrue

google_ads_ad_group_id

NameAd group ID (Google Ads)
Scopesevent, product, session
AvailabilityQuery API, Raw data API
Typeint_id
Database typeint64
Nullabletrue

google_ads_ad_group_name

NameAd group name (Google Ads)
Scopesevent, product, session
AvailabilityQuery API, Raw data API
Type[int, str]
Database typeint64
Nullablefalse

google_ads_ad_network_type

NameAd network type (Google Ads)
Scopesevent, product, session
AvailabilityQuery API, Raw data API
Type[str, str]
Database typestring
Nullablefalse
Notesgoogle_ads_ad_network_type.json

google_ads_campaign_id

NameCampaign ID (Google Ads)
Scopesevent, product, session
AvailabilityQuery API, Raw data API
Typeint_id
Database typeint64
Nullablefalse

google_ads_campaign_name

NameCampaign name (Google Ads)
Scopesevent, product, session
AvailabilityQuery API, Raw data API
Type[int, str]
Database typeint64
Nullablefalse

google_ads_customer_id

NameAccount ID (Google Ads)
Scopesevent, product, session
AvailabilityQuery API, Raw data API
Typestr_id
Database typestring
Nullablefalse

google_ads_customer_name

NameAccount (Google Ads)
Scopesevent, product, session
AvailabilityQuery API, Raw data API
Type[str, str]
Database typestring
Nullablefalse

google_ads_keyword_match_type

NameKeyword match type (Google Ads)
ScopesGoogle Ads
AvailabilityQuery API
Type[str, str]
Database typestring
Nullablefalse
Notesgoogle_ads_keyword_match_type.json

keyword

NameKeyword
Scopesevent, product, session
AvailabilityReal-time, Query API, Raw data API
Typestr
Database typestring
Nullablefalse

medium

NameMedium
Scopesevent, product, session
AvailabilityReal-time, Query API, Raw data API
Typestr_nocase
Database typestring
Nullablefalse

session_entry_url

NameSession entry URL
Scopesevent, product, session
AvailabilityQuery API, Raw data API
Typestr
Database typestring
Nullablefalse

source

NameSource
Scopesevent, product, session
AvailabilityReal-time, Query API, Raw data API
Typestr_nocase
Database typestring
Nullablefalse

source_medium

NameSource / medium
Scopesevent, product, session
AvailabilityReal-time, Query API, Raw data API
Typestr_nocase
Database typestring
Nullablefalse

timestamp

NameDate
Scopesevent, product, session
AvailabilityReal-time, Query API
Typedate
Database typenot applicable
Nullablefalse
Notesserver time in the website’s time zone

website_name

NameSite or app name
Scopesevent, product, session
AvailabilityReal-time, Query API, Raw data API
Type[str, str]
Database typenot applicable
Nullablefalse
Noteswebsite UUID

Note:

The Database type column displays the source type associated with each dimension. For the enum dimensions, it displays the ID type. For the not applicable source type, this column represents a dynamic dimension.

Mixed queries

You can request both internal analytics and Google Ads metrics in a single query, for example Sessions and Clicks (Google Ads). However, only the common dimensions listed below can be used in these queries.

Here’s a list of the dimensions that you can use.

device_type

NameDevice type
Scopesevent, product, session
AvailabilityReal-time, Query API, Raw data API
Type[int, str]
Database typeuint8
Nullabletrue
Notesdevice_type.json

google_ads_ad_group_ad_id

NameAd group ad ID (Google Ads)
Scopesevent, product, session
AvailabilityQuery API, Raw data API
Typestr_id
Database typestring
Nullabletrue

google_ads_ad_group_id

NameAd group ID (Google Ads)
Scopesevent, product, session
AvailabilityQuery API, Raw data API
Typeint_id
Database typeint64
Nullabletrue

google_ads_ad_group_name

NameAd group name (Google Ads)
Scopesevent, product, session
AvailabilityQuery API, Raw data API
Type[int, str]
Database typeint64
Nullablefalse

google_ads_ad_network_type

NameAd network type (Google Ads)
Scopesevent, product, session
AvailabilityQuery API, Raw data API
Type[str, str]
Database typestring
Nullablefalse
Notesgoogle_ads_ad_network_type.json

google_ads_campaign_id

NameCampaign ID (Google Ads)
Scopesevent, product, session
AvailabilityQuery API, Raw data API
Typeint_id
Database typeint64
Nullablefalse

google_ads_campaign_name

NameCampaign name (Google Ads)
Scopesevent, product, session
AvailabilityQuery API, Raw data API
Type[int, str]
Database typeint64
Nullablefalse

google_ads_customer_id

NameAccount ID (Google Ads)
Scopesevent, product, session
AvailabilityQuery API, Raw data API
Typestr_id
Database typestring
Nullablefalse

google_ads_customer_name

NameAccount (Google Ads)
Scopesevent, product, session
AvailabilityQuery API, Raw data API
Type[str, str]
Database typestring
Nullablefalse

keyword

NameKeyword
Scopesevent, product, session
AvailabilityReal-time, Query API, Raw data API
Typestr
Database typestring
Nullablefalse

medium

NameMedium
Scopesevent, product, session
AvailabilityReal-time, Query API, Raw data API
Typestr_nocase
Database typestring
Nullablefalse

session_entry_url

NameSession entry URL
Scopesevent, product, session
AvailabilityQuery API, Raw data API
Typestr
Database typestring
Nullablefalse

source

NameSource
Scopesevent, product, session
AvailabilityReal-time, Query API, Raw data API
Typestr_nocase
Database typestring
Nullablefalse

source_medium

NameSource / medium
Scopesevent, product, session
AvailabilityReal-time, Query API, Raw data API
Typestr_nocase
Database typestring
Nullablefalse

timestamp

NameDate
Scopesevent, product, session
AvailabilityReal-time, Query API
Typedate
Database typenot applicable
Nullablefalse
Notesserver time in the website’s time zone

website_name

NameSite or app name
Scopesevent, product, session
AvailabilityReal-time, Query API, Raw data API
Type[str, str]
Database typenot applicable
Nullablefalse
Noteswebsite UUID

Note:

• The Database type column displays the source type associated with each dimension. For the enum dimensions, it displays the ID type. For the not applicable source type, this column represents a dynamic dimension.

• Using dimensions not listed in the table above as query columns or filters will result in a Bad Request response.