just in case someone else runs into this issue. I was able to get it 
working by using 'segments.date' instead of 'segments.month' in the WHERE 
clause.

--

WHERE segments.*date* DURING LAST_MONTH
--
On Monday, June 5, 2023 at 7:54:41 PM UTC-7 Bryan Yen wrote:

> Hi,
>
> I want to get data for a certain month only, but I seem to be stuck in 
> getting it to work right. I'm grabbing data from the search_term_view 
> table. Here's my query below. Any idea would be appreciated!
>
> SELECT search_term_view.search_term, segments.search_term_match_type, 
> customer.currency_code, metrics.clicks, metrics.ctr, metrics.average_cpc, 
> metrics.average_cost, metrics.absolute_top_impression_percentage, 
> metrics.top_impression_percentage, metrics.conversions, 
> metrics.view_through_conversions, metrics.cost_per_conversion, 
> metrics.all_conversions_from_interactions_rate 
>
> FROM search_term_view
> WHERE segments.month = '2023-05-01'
>
> With this query, I'm getting this error* "Dates used in filtering 
> conditions on 'segments.month' must occur on the first day of a month"*
>
> I tried  WHERE segments.month DURING LAST_MONTH, but I also get an error 
> with that too
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/afe6d958-8cc2-40b2-8a6c-7f5d5e339c15n%40googlegroups.com.

Reply via email to