We used the *Query Migration Tool *to migrate one of our AWQL queries to
the below GAQL. However, when running this query we get an
*ENUM_VALUE_NOT_PERMITTED
*error.
*SELECT ad_group.id, *
*ad_group_ad.ad.id,*
*metrics.clicks,*
*metrics.impressions *
*FROM ad_group_ad *
*WHERE campaign.id IN (968861968) *
*AND ad_group_ad.status IN (ENABLED) *
*AND ad_group.status IN (ENABLED) *
*AND ad_group_ad.ad.type IN (EXPANDED_TEXT_AD) *
*AND ad_group_ad.policy_summary.approval_status IN (APPROVED) *
*AND segments.date DURING LAST_30_DAYS*
The error we get is this:
*Request ID 4ek3bYb5BvN-OhB3C0yNpQ failed due to GoogleAdsException.
Underlying errors:*
* Error 0: error_code {*
* enum_error: ENUM_VALUE_NOT_PERMITTED*
*}*
*message: "The enum value is not permitted."*
The query works if we run it without the below line:
*AND ad_group_ad.policy_summary.approval_status IN (APPROVED) *
Any idea why this condition is causing an issue?
Oliver
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/31969b60-32e0-43b7-ad18-2b6fe7f22545n%40googlegroups.com.