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.
Here’s a list of metrics that are available in Piwik PRO when you use Google Ads integration.
Name Average CPC (Google Ads) Scopes Google Ads Availability Query API Type float
Name Clicks (Google Ads) Scopes Google Ads Availability Query API Type int
Name Cost (Google Ads) Scopes Google Ads Availability Query API Type float
Name CTR (Google Ads) Scopes Google Ads Availability Query API Type float
Name Impressions (Google Ads) Scopes Google Ads Availability Query API Type int
Name ROAS (Google Ads) Scopes event, session Availability Query API Type float
Here’s a list of dimensions that are available in Piwik PRO when you use Google Ads integration.
Name Device type Scopes event, product, session Availability Real-time, Query API, Raw data API Type [int, str] Database type uint8 Nullable true Notes device_type.json
Name Ad group ad ID (Google Ads) Scopes event, product, session Availability Query API, Raw data API Type str_id Database type string Nullable true
Name Ad group ID (Google Ads) Scopes event, product, session Availability Query API, Raw data API Type int_id Database type int64 Nullable true
Name Ad group name (Google Ads) Scopes event, product, session Availability Query API, Raw data API Type [int, str] Database type int64 Nullable false
Name Ad network type (Google Ads) Scopes event, product, session Availability Query API, Raw data API Type [str, str] Database type string Nullable false Notes google_ads_ad_network_type.json
Name Campaign ID (Google Ads) Scopes event, product, session Availability Query API, Raw data API Type int_id Database type int64 Nullable false
Name Campaign name (Google Ads) Scopes event, product, session Availability Query API, Raw data API Type [int, str] Database type int64 Nullable false
Name Account ID (Google Ads) Scopes event, product, session Availability Query API, Raw data API Type str_id Database type string Nullable false
Name Account (Google Ads) Scopes event, product, session Availability Query API, Raw data API Type [str, str] Database type string Nullable false
Name Keyword Scopes event, product, session Availability Real-time, Query API, Raw data API Type str Database type string Nullable false
Name Medium Scopes event, product, session Availability Real-time, Query API, Raw data API Type str_nocase Database type string Nullable false
Name Session entry URL Scopes event, product, session Availability Query API, Raw data API Type str Database type string Nullable false
Name Source Scopes event, product, session Availability Real-time, Query API, Raw data API Type str_nocase Database type string Nullable false
Name Source / medium Scopes event, product, session Availability Real-time, Query API, Raw data API Type str_nocase Database type string Nullable false
Name Date Scopes event, product, session Availability Real-time, Query API Type date Database type not applicable Nullable false Notes server time in the website’s time zone
Name Site or app name Scopes event, product, session Availability Real-time, Query API, Raw data API Type [str, str] Database type not applicable Nullable false Notes website 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.
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.
Name Device type Scopes event, product, session Availability Real-time, Query API, Raw data API Type [int, str] Database type uint8 Nullable true Notes device_type.json
Name Ad group ad ID (Google Ads) Scopes event, product, session Availability Query API, Raw data API Type str_id Database type string Nullable true
Name Ad group ID (Google Ads) Scopes event, product, session Availability Query API, Raw data API Type int_id Database type int64 Nullable true
Name Ad group name (Google Ads) Scopes event, product, session Availability Query API, Raw data API Type [int, str] Database type int64 Nullable false
Name Ad network type (Google Ads) Scopes event, product, session Availability Query API, Raw data API Type [str, str] Database type string Nullable false Notes google_ads_ad_network_type.json
Name Campaign ID (Google Ads) Scopes event, product, session Availability Query API, Raw data API Type int_id Database type int64 Nullable false
Name Campaign name (Google Ads) Scopes event, product, session Availability Query API, Raw data API Type [int, str] Database type int64 Nullable false
Name Account ID (Google Ads) Scopes event, product, session Availability Query API, Raw data API Type str_id Database type string Nullable false
Name Account (Google Ads) Scopes event, product, session Availability Query API, Raw data API Type [str, str] Database type string Nullable false
Name Keyword Scopes event, product, session Availability Real-time, Query API, Raw data API Type str Database type string Nullable false
Name Medium Scopes event, product, session Availability Real-time, Query API, Raw data API Type str_nocase Database type string Nullable false
Name Session entry URL Scopes event, product, session Availability Query API, Raw data API Type str Database type string Nullable false
Name Source Scopes event, product, session Availability Real-time, Query API, Raw data API Type str_nocase Database type string Nullable false
Name Source / medium Scopes event, product, session Availability Real-time, Query API, Raw data API Type str_nocase Database type string Nullable false
Name Date Scopes event, product, session Availability Real-time, Query API Type date Database type not applicable Nullable false Notes server time in the website’s time zone
Name Site or app name Scopes event, product, session Availability Real-time, Query API, Raw data API Type [str, str] Database type not applicable Nullable false Notes website 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.