Hello,
I noticed after migrating from v6 to v8 that we cannot run a simple GAQL query where we ask campaign for Cost and filter on labels.
This query used to work before migrating to v8:
SELECT campaign.resource_name,
metrics.cost_micros FROM campaign WHERE
campaign.labels CONTAINS ALL ('customers/5238202189/labels/21157228181')
After the migration it fails with this error:
{ "errorCode": { "requestError": "UNKNOWN" }, "message": "The error code is not in this version.", "trigger": { "stringValue": "A_campaign__CampaignAssociation.entity_id" } }
- Interesting is that it says that the error code is not in this version but it runs on v8 and latest .NET lib.
If I remove metrics.cost_micros OR the where predicate for labels, then the query works. But it doesn't work with both:
No metrics.cost_micros - works
SELECT campaign.resource_name
FROM campaign WHERE
campaign.labels CONTAINS ALL ('customers/5238202189/labels/21157228181')
No labels predicate - works
SELECT campaign.resource_name, metrics.cost_micros FROM campaign
We use the C# library for Google Ads API.
Any idea what the issue is? Thank you in advance.
Best,