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)
DescriptionAverage cost-per-click (CPC) is the amount you’ve paid for your ad divided by its total clicks. Average CPC = (Cost / Click) * 100%.
ScopesGoogle Ads
AvailabilityQuery API
Typefloat

google_ads_clicks

NameClicks (Google Ads)
DescriptionThe number of times people click on your ad.
ScopesGoogle Ads
AvailabilityQuery API
Typeint

google_ads_cost

NameCost (Google Ads)
DescriptionThe amount you’ve paid for your ads in Google Ads.
ScopesGoogle Ads
AvailabilityQuery API
Typefloat

google_ads_ctr

NameCTR (Google Ads)
DescriptionClick-through rate (CTR) measures how often people click your ad in Google Ads after it’s shown to them. (CTR = (Clicks / Impressions) * 100%).
ScopesGoogle Ads
AvailabilityQuery API
Typefloat

google_ads_impressions

NameImpressions (Google Ads)
DescriptionThe number of times your ad was served on Google or Google Network.
ScopesGoogle Ads
AvailabilityQuery API
Typeint

google_ads_roas

NameROAS (Google Ads)
DescriptionROAS (return on ad spend) is a web analytics metric that shows how much revenue is generated for every dollar spent on Google Ads. ROAS is a ratio of revenue from conversions to ad spend. A ROAS of $3.20 means that each $1 spent on ads generated $3.20 in revenue. Formula: ROAS = (Sum of revenue + Sum of goal revenue) / Cost (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.

app_currency

NameCurrency (site or app)
DescriptionThe currency set in the site or app settings at the time the event was tracked, used during data processing.
Scopesevent, product
AvailabilityReal-time, Query API, Raw data API
Type[str, str]
Database typestring(3)
Nullablefalse
Notesapp_currency.json

device_type

NameDevice type
DescriptionThe type of the visitor’s device.
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)
DescriptionThe combination of a unique number that’s assigned to each group and each ad in Google Ads. Ad group ad ID = Ad group + Ad ID.
Scopesevent, product, session
AvailabilityQuery API, Raw data API
Typestr_id
Database typestring
Nullabletrue

google_ads_ad_group_id

NameAd group ID (Google Ads)
DescriptionThe unique number that’s assigned to each ad group in 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)
DescriptionThe name of your ad group in 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)
DescriptionThe network where your ad was displayed. The networks are: content, mixed, search, search partners, unknown, unspecified, YouTube search, and YouTube watch.
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)
DescriptionThe unique number that’s assigned to each campaign in Google Ads.
Scopesevent, product, session
AvailabilityQuery API, Raw data API
Typeint_id
Database typeint64
Nullablefalse

google_ads_campaign_name

NameCampaign name (Google Ads)
DescriptionThe name of your campaign in Google Ads.
Scopesevent, product, session
AvailabilityQuery API, Raw data API
Type[int, str]
Database typeint64
Nullablefalse

google_ads_currency

NameCurrency (Google Ads)
DescriptionThe currency set in your Google Ads account settings. It's imported with other Google Ads data.
Scopesevent, product
AvailabilityQuery API, Raw data API
Type[str, str]
Database typestring(3)
Nullablefalse
Notesgoogle_ads_currency.json

google_ads_customer_id

NameAccount ID (Google Ads)
DescriptionThe unique number that’s assigned to each Google Ads account.
Scopesevent, product, session
AvailabilityQuery API, Raw data API
Typestr_id
Database typestring
Nullablefalse

google_ads_customer_name

NameAccount (Google Ads)
DescriptionThe name of your Google Ads account.
Scopesevent, product, session
AvailabilityQuery API, Raw data API
Type[str, str]
Database typestring
Nullablefalse

google_ads_keyword_match_type

NameKeyword match type (Google Ads)
DescriptionThe keyword matching option that you’ve used for keywords in Google Ads. The match types are: broad, exact, and phrase.
ScopesGoogle Ads
AvailabilityQuery API
Type[str, str]
Database typestring
Nullablefalse
Notesgoogle_ads_keyword_match_type.json

keyword

NameKeyword
DescriptionThe keyword that a visitor used in a search engine or a keyword added as a campaign parameter.
Scopesevent, product, session
AvailabilityReal-time, Query API, Raw data API
Typestr
Database typestring
Nullablefalse

medium

NameMedium
DescriptionThe category of the source such as organic (unpaid search in the search engine), cpc (paid search in the search engine), referral (web referral), email (email campaign), and the like.
Scopesevent, product, session
AvailabilityReal-time, Query API, Raw data API
Typestr_nocase
Database typestring
Nullablefalse

session_entry_url

NameSession entry URL
DescriptionThe URL of the first visited page during the session.
Scopesevent, product, session
AvailabilityQuery API, Raw data API
Typestr
Database typestring
Nullablefalse

source

NameSource
DescriptionThe origin of the incoming traffic such as direct, a search engine (for example, google) or a domain (example.com).
Scopesevent, product, session
AvailabilityReal-time, Query API, Raw data API
Typestr_nocase
Database typestring
Nullablefalse

source_medium

NameSource / medium
DescriptionA dimension that combines two dimensions: source and medium. Source is the origin of the incoming traffic. Medium is the category of the source.
Scopesevent, product, session
AvailabilityReal-time, Query API, Raw data API
Typestr_nocase
Database typestring
Nullablefalse

timestamp

NameDate
DescriptionDay and time of the event in the site’s time zone.
Scopesevent, product, session
AvailabilityReal-time, Query API
Typedate
Database typenot applicable
Nullablefalse
Notesserver time in the website’s time zone

tracked_currency

NameCurrency (event)
DescriptionThe local currency tracked with an event.
Scopesevent, product
AvailabilityReal-time, Query API, Raw data API
Type[str, str]
Database typestring(3)
Nullablefalse
Notestracked_currency.json

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.

app_currency

NameCurrency (site or app)
DescriptionThe currency set in the site or app settings at the time the event was tracked, used during data processing.
Scopesevent, product
AvailabilityReal-time, Query API, Raw data API
Type[str, str]
Database typestring(3)
Nullablefalse
Notesapp_currency.json

device_type

NameDevice type
DescriptionThe type of the visitor’s device.
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)
DescriptionThe combination of a unique number that’s assigned to each group and each ad in Google Ads. Ad group ad ID = Ad group + Ad ID.
Scopesevent, product, session
AvailabilityQuery API, Raw data API
Typestr_id
Database typestring
Nullabletrue

google_ads_ad_group_id

NameAd group ID (Google Ads)
DescriptionThe unique number that’s assigned to each ad group in 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)
DescriptionThe name of your ad group in 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)
DescriptionThe network where your ad was displayed. The networks are: content, mixed, search, search partners, unknown, unspecified, YouTube search, and YouTube watch.
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)
DescriptionThe unique number that’s assigned to each campaign in Google Ads.
Scopesevent, product, session
AvailabilityQuery API, Raw data API
Typeint_id
Database typeint64
Nullablefalse

google_ads_campaign_name

NameCampaign name (Google Ads)
DescriptionThe name of your campaign in Google Ads.
Scopesevent, product, session
AvailabilityQuery API, Raw data API
Type[int, str]
Database typeint64
Nullablefalse

google_ads_currency

NameCurrency (Google Ads)
DescriptionThe currency set in your Google Ads account settings. It's imported with other Google Ads data.
Scopesevent, product
AvailabilityQuery API, Raw data API
Type[str, str]
Database typestring(3)
Nullablefalse
Notesgoogle_ads_currency.json

google_ads_customer_id

NameAccount ID (Google Ads)
DescriptionThe unique number that’s assigned to each Google Ads account.
Scopesevent, product, session
AvailabilityQuery API, Raw data API
Typestr_id
Database typestring
Nullablefalse

google_ads_customer_name

NameAccount (Google Ads)
DescriptionThe name of your Google Ads account.
Scopesevent, product, session
AvailabilityQuery API, Raw data API
Type[str, str]
Database typestring
Nullablefalse

keyword

NameKeyword
DescriptionThe keyword that a visitor used in a search engine or a keyword added as a campaign parameter.
Scopesevent, product, session
AvailabilityReal-time, Query API, Raw data API
Typestr
Database typestring
Nullablefalse

medium

NameMedium
DescriptionThe category of the source such as organic (unpaid search in the search engine), cpc (paid search in the search engine), referral (web referral), email (email campaign), and the like.
Scopesevent, product, session
AvailabilityReal-time, Query API, Raw data API
Typestr_nocase
Database typestring
Nullablefalse

session_entry_url

NameSession entry URL
DescriptionThe URL of the first visited page during the session.
Scopesevent, product, session
AvailabilityQuery API, Raw data API
Typestr
Database typestring
Nullablefalse

source

NameSource
DescriptionThe origin of the incoming traffic such as direct, a search engine (for example, google) or a domain (example.com).
Scopesevent, product, session
AvailabilityReal-time, Query API, Raw data API
Typestr_nocase
Database typestring
Nullablefalse

source_medium

NameSource / medium
DescriptionA dimension that combines two dimensions: source and medium. Source is the origin of the incoming traffic. Medium is the category of the source.
Scopesevent, product, session
AvailabilityReal-time, Query API, Raw data API
Typestr_nocase
Database typestring
Nullablefalse

timestamp

NameDate
DescriptionDay and time of the event in the site’s time zone.
Scopesevent, product, session
AvailabilityReal-time, Query API
Typedate
Database typenot applicable
Nullablefalse
Notesserver time in the website’s time zone

tracked_currency

NameCurrency (event)
DescriptionThe local currency tracked with an event.
Scopesevent, product
AvailabilityReal-time, Query API, Raw data API
Type[str, str]
Database typestring(3)
Nullablefalse
Notestracked_currency.json

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.