Hello,

I have a query to download information for Expanded Text Ads, which used to 
work fine until two days ago. Since then, I get the following error, 
telling me that "Enum field only accepts integer or enum value name".
I investigated the issue and found that for some ads I can download the 
information without problem, and for others not - but I couldnt find a 
common pattern.

Could you help me, to see if I need to update the query, or to pre-filter 
some values that might cause the error?

Many thanks in advance!

Christoph


*The error message that I get is the following:*

*Fatal error*: Uncaught Google\Protobuf\Internal\GPBDecodeException: Error 
occurred during parsing: Error occurred during parsing: Enum field only 
accepts integer or enum value name in 
/www/htdocs/w01745db/api.thegoodtraffic.com/V1/vendor/google/protobuf/src/Google/Protobuf/Internal/Message.php:1256
 
Stack trace: #0 
/www/htdocs/w01745db/api.thegoodtraffic.com/V1/vendor/google/protobuf/src/Google/Protobuf/Internal/Message.php(742):
 
Google\Protobuf\Internal\Message->parseFromJsonStream(Object(Google\Protobuf\Internal\RawInputStream))
 
#1 
/www/htdocs/w01745db/api.thegoodtraffic.com/V1/vendor/google/gax/src/Transport/RestTransport.php(118):
 
Google\Protobuf\Internal\Message->mergeFromJsonString('{\n "results": ...') 
#2 
/www/htdocs/w01745db/api.thegoodtraffic.com/V1/vendor/guzzlehttp/promises/src/Promise.php(203):
 
Google\ApiCore\Transport\RestTransport->Google\ApiCore\Transport\{closure}(Object(GuzzleHttp\Psr7\Response))
 
#3 
/www/htdocs/w01745db/api.thegoodtraffic.com/V1/vendor/guzzlehttp/promises/src/Promise.php(156):
 
GuzzleHttp\P in 
*/www/htdocs/w01745db/api.thegoodtraffic.com/V1/vendor/google/protobuf/src/Google/Protobuf/Internal/Message.php*
 
on line *1256*

*The query is this one:*

$query =
"SELECT "
. "customer.id, "
. "customer.descriptive_name, "
. "customer.currency_code, "
. "customer.time_zone, "
. "campaign.id, "
. "campaign.name, "
. "campaign.campaign_budget, "
. "campaign.start_date, "
. "campaign.end_date, "
. "campaign.serving_status, "
. "campaign.status, "
. "campaign.url_custom_parameters, "
. "ad_group.id, "
. "ad_group.name, "
. "ad_group.status, "
. "ad_group.url_custom_parameters, "
. "ad_group_ad.ad.type, "
. "ad_group_ad.ad.id, "
. "ad_group_ad.ad.expanded_text_ad.headline_part1, "
. "ad_group_ad.ad.expanded_text_ad.headline_part2, "
. "ad_group_ad.ad.expanded_text_ad.headline_part3, "
. "ad_group_ad.ad.expanded_text_ad.description, "
. "ad_group_ad.ad.expanded_text_ad.description2, "
. "ad_group_ad.ad.expanded_text_ad.path1, "
. "ad_group_ad.ad.expanded_text_ad.path2, "
. "ad_group_ad.ad.final_urls, "
. "ad_group_ad.ad.url_custom_parameters, "
. "ad_group_ad.policy_summary, "
. "ad_group_ad.status, "
. "metrics.impressions, "
. "metrics.clicks, "
. "metrics.cost_micros, "
. "metrics.all_conversions, "
. "metrics.all_conversions_value, "
. "metrics.average_position, "
. "metrics.absolute_top_impression_percentage, "
. "metrics.top_impression_percentage, "
. "metrics.conversions, "
. "metrics.conversions_value "
. "FROM ad_group_ad "
. "WHERE segments.date DURING LAST_7_DAYS"
. " AND ad_group_ad.status = 'ENABLED'" 
. " AND ad_group_ad.ad.type = 'EXPANDED_TEXT_AD'"
. " AND campaign.status = 'ENABLED'"
;  

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"AdWords API and Google Ads 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/8e74d264-84e3-4dfd-95a6-a0ef8be22872%40googlegroups.com.

Reply via email to