Hi Tiana,
Can you try to filter by label ID (not by name), and see if you'd still encounter any issues? You may check this link for reference. Let me know how it goes. Please provide the complete request and response logs with request ID if you still encountered an error. You may send these to me via Reply privately to author option.
On the other hand, I've deleted your post as it contains generated logs on your end. However, pasting below the body of your concern:
"Hi there,
I'm trying to filter the Campaigns resource by label. The query I'm using looks as follows:
SELECT campaign.labels, metrics.impressions FROM campaign WHERE metrics.impressions > 0 AND segments.date >= '2021-08-29' AND segments.date <= '2021-09-27' AND campaign.labels CONTAINS ANY ('customers/xxxxxxxxxx/labels/xxxxxxxxxx')
I confirmed this is a valid query using the query validator, but when using it I'm getting the following error:
..redacted generated logs here..
Thanks in advance,
Tiana"
Regards,
|
||||||
Hello Tiana,
Thanks for sharing us the logs privately.
I've checked on your query and this should be valid as per the Query Validator. As per further checking, when you remove this filter (metrics.impressions > 0) on your 2nd query, it should now run successfully. That said, allow me to raise this with the team if this is an expected behavior or if there are any underlying issues related to this. We'll be updating this thread for any available information.
Regards,
|
||||||
SELECT campaign.labels FROM campaign WHERE campaign.labels CONTAINS ANY ("customers/5637846722/labels/21453140713") AND segments.date >= '2021-09-07' AND segments.date <= '2021-10-06'
I'll send the error with request ID privately!
Best,
Tiana
|
||||||