As with other campaign types, you can use
to retrieve attributes and performance metrics for Smart campaigns.
Smart campaign metrics are available from the
resource, and search-term specific metrics are available from the
resource. In the
field contains any matching queries that generated results.
Impressions and clicks of Smart campaigns in last 30 days
The query below retrieves impressions and clicks for each search term from the last 30 days for all Smart campaigns, segmented by date.
WHERE segments.date DURING LAST_30_DAYS
Top 10 search terms by impressions
The query below retrieves the top 10 search terms that have generated the most impressions over the past 30 days, along with their cost.
ORDER BY metrics.impressions DESC
Retrieve attributes of a
KeywordThemeConstants are retrieved from a large dataset that is not
customer-specific, it's not possible to scan the entire
resource all at once. To retrieve individual
KeywordThemeConstants, you must
campaign_criterion resource to find
the resource names of the keyword themes associated with your campaigns, then
use those resource names to filter the
WHERE campaign_criterion.type = KEYWORD_THEME
Now use the resource name in the
campaign_criterion.keyword_theme.keyword_theme_constant field in the following
WHERE keyword_theme_constant.resource_name = 'keywordThemeConstants/40804~0'
Reporting functionality requirements
In order to implement Smart campaigns, your application must satisfy a set of required minimum functionality (RMF).
For reporting specifically, a number of reporting fields must be made available to the end user. Here's how to retrieve the required fields from item number R.20 Campaign Performance in the RMF:
And, here's how to retrieve the required fields from item number R.70 Smart Campaign Search Term View:
Here's a query that includes all of the available per-store metrics. These fields can also be combined with other fields in a single query:
Phone calls segmented by hour
Here's how to retrieve all phone call metrics between 12 PM and 5 PM:
WHERE segments.hour BETWEEN 12 and 17