Hi Vitalii,
Thanks for reaching out to the Google Ads API Forum. I hope you are doing well today.
Moving forward to your concern, in general when it comes to date segmentation, I recommend to see the Google Ads API Rules for segments in the WHERE clause and Rules for core date segment fields for segments.date, segments.week, segments.month, segments.quarter, segments.year.
You may also see the Google Ads API Date Ranges, which lets you specify the date range in these ways: Custom date range, Predefined date range, Predefined time period.
The above documentation and guidelines will help you to understand the date segmentation and ranges that are supported in Google Ads API, please use what best suits to your queries to avoid future errors.
You may use “Google Ads Query Validator” to test if the entered query is valid.
I hope it helps. Have a great day.
Regards,
|
||||||