Hi there,
We're noticing some odd behavior from the API and are wondering if this is
intended.
Basically, the data returned in the SummaryRow is different depending on
whether or not `segments.date` is requested.
Body of request with segments.date:
body: { query: "SELECT
segments.date,metrics.average_time_on_site,metrics.clicks FROM campaign
WHERE metrics.impressions > 0 AND segments.date >= '2021-11-01' AND
segments.date <= '2021-11-30'", summary_row_setting: 'SUMMARY_ROW_ONLY' },
Result for that request:
{ "fieldMask": "segments.date,metrics.averageTimeOnSite,metrics.clicks",
"summaryRow": { "metrics": { "clicks": "1184", "averageTimeOnSite":
169.47696038803556 } } }
Body of request without segments.date:
body: { query: "SELECT metrics.average_time_on_site,metrics.clicks FROM
campaign WHERE metrics.impressions > 0 AND segments.date >= '2021-01-01'
AND segments.date <= '2021-11-30'", summary_row_setting: 'SUMMARY_ROW_ONLY'
},
Result for that request:
{ "fieldMask": "metrics.averageTimeOnSite,metrics.clicks", "summaryRow": {
"metrics": { "clicks": "18518", "averageTimeOnSite": 171.40262230514097 } }
}
The queries are exactly the same, only with and without the field
`segments.date` in the SELECT. Is this behavior expected?
Thanks,
Tiana
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/90f0de64-5496-480f-9fa9-33c1f7183234n%40googlegroups.com.