Hi,
Thank you for your reply.

>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...

In short, the situation is as follows?
・In the Adwords API, when a request was made including 
KeywordTextMatchingQuery, the value of this field was set to "--" but the 
DSA data was returned.
・On the other hand, in the Ads API, if a request includes 
segments.keyword.info.text, the DSA data is missing because there is no 
corresponding Segment.
・This change exists as a specification in the Ads API, and this point is 
mentioned in the ’ Selectability between segments and metrics 
<https://developers.google.com/google-ads/api/docs/reporting/segmentation#selectability_between_segments_and_metrics>
'.

In that case, am I correct in interpreting that only the following three 
fields are subject to missing DSA?

>segments.keyword.info.text
>segments.keyword.info.match_type
>segments.keyword.ad_group_criterion 

I think you are probably correct, but let me check just to be sure.


Sorry to bother you again.

Thanks,


2022年3月26日土曜日 0:04:48 UTC+9 adsapi:

> 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 
> <https://developers.google.com/google-ads/api/docs/reporting/segmentation#selectability_between_segments_and_metrics>
>  
> (*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,
> [image: Google Logo] 
> Yasar 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2Yqxw6:ref
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/2b0f75a2-536c-4020-93a1-662953dd7741n%40googlegroups.com.

Reply via email to