Hi there,
Thanks for reaching out to the Google Ads API Forum.
I can see that you’re having concerns regarding the output of 'Dynamic Search Ads' in the search_term_view using Google Ads API.
Since you mentioned that you observed missing DSA records using search_term_view via Google Ads API as compared with SEARCH_QUERY_PERFORMANCE_REPORT of Adwords API, then for us to investigate further, could you please provide us with the following details below?
You may then send the requested information via the Reply privately to author option. If this option is not available, you may send the details directly to our googleadsa...@google.com alias by referring to this thread.
Regards,
|
||||||
Hi there,
Thanks for getting back to us with the requested information.
I took a look into your account for the search_term_view report, and I can see that segment fields are added in your query. I’ve replicated your issue of missing Ads API report data for Campaign ID 13660449816. Upon checking your GAQL, I found that segment fields such as Segments.search_term_match_type, segments.keyword.ad_group_criterion and segments.keyword.info.text were added in your select clause causing this behavior. I was able to get the exact metrics count for Google Ads API as compared with your AdWords API report results.
Kindly note that the added segments field returns empty or less data since it tells the query to retrieve only the rows of data that have said segment fields and remove any row that is not associated with those segments. The closest document I can share is from the segmentation guide I mentioned above, and in it, this section (When adding some segments, the metrics in the summary row may decrease) where it says :
"When <segments field> is added to a query with FROM <resource>, that segment is telling the query to only get the rows of data that have <segment field>, and remove any row that is not associated..."
When you remove those segments from your query, then rows come back again. This is how segments work in the Google Ads API. Here’s the GAQL below:
SELECT segments.month, campaign.id, campaign.name, ad_group.id, ad_group.name, search_term_view.search_term, metrics.impressions, metrics.clicks, metrics.cost_micros, metrics.conversions FROM search_term_view WHERE campaign.id = '13660449816' AND segments.date between '20220201' and '20220228'
Google Ads API metrics results:
"metrics": {
"conversions": 247.62276,
"impressions": "78985",
"costMicros": "113091000000",
"clicks": "11949"
}
You may see below metrics retrieved for AdWords API:
"SEARCH_QUERY_PERFORMANCE_REPORT (Feb 1, 2022-Feb 28, 2022)" Month,Campaign ID,Campaign,Ad group ID,Ad group,Search term,Match type,Keyword ID,Keyword,Impressions,Clicks,Cost,Conversions Total, --, --, --, --, --, --, --, --,78985,11949,113091000000,247.62
As you can see, after removing segments from Google Ads API, the records match with the AdWords API.
Hope this clarifies.
Regards,
|
||||||