Hello

PHP issue trying  to get conversions and conversions_values from 
hotel_performance_view with Google Ads PHP client library V2

PHP Fatal error:  Uncaught Exception: Expect float. in 
/home/metaio-dev-v5/google-ads-php/V2/vendor/google/protobuf/src/Google/Protobuf/Internal/GPBUtil.php:182
Stack trace:
#0 
/home/metaio-dev-v5/google-ads-php/V2/vendor/google/protobuf/src/Google/Protobuf/DoubleValue.php(61):
 
Google\Protobuf\Internal\GPBUtil::checkDouble(Object(Google\Protobuf\DoubleValue))
#1 
/home/metaio-dev-v5/google-ads-php/V2/vendor/google/protobuf/src/Google/Protobuf/Internal/Message.php(1009):
 
Google\Protobuf\DoubleValue->setValue(Object(Google\Protobuf\DoubleValue))
#2 
/home/metaio-dev-v5/google-ads-php/V2/vendor/google/protobuf/src/Google/Protobuf/Internal/Message.php(79):
 
Google\Protobuf\Internal\Message->mergeFromArray(Array)
#3 
/home/metaio-dev-v5/google-ads-php/V2/vendor/google/protobuf/src/Google/Protobuf/DoubleValue.php(38):
 
Google\Protobuf\Internal\Message->__construct(Array)
#4 
/home/metaio-dev-v5/google-ads-php/V2/src/Google/Ads/GoogleAds/V1/Common/Metrics.php(3960):
 
Google\Protobuf\DoubleValue->__construct(Array)
#5 /home/metaio-dev-v5/goo in 
/home/metaio-dev-v5/google-ads-php/V2/vendor/google/protobuf/src/Google/Protobuf/Internal/GPBUtil.php
 
on line 182

this is the request :
SELECT 
campaign.id,campaign.name,campaign.advertising_channel_type,segments.date,metrics.clicks,metrics.conversions,metrics.conversions_value
 
FROM hotel_performance_view WHERE segments.date >= '2019-08-07' and 
segments.date <= '2019-09-05' and campaign.advertising_channel_type = 
'HOTEL'

Remark : when I remove metrics.conversions and metrics.conversions_value 
from the request it doesn't fail

thanks
Didier

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/d8ccde09-8760-43ea-94fb-65e9c2bdd465%40googlegroups.com.

Reply via email to