Hello Adrian

thank you for your answer.
I am making a request using PHP client Library
this is the requet I am submitting wihp PHP client Library :

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'

I submit it this way :
 $response = self::$googleAdsServiceClient->search($customerId, $query, 
['pageSize' => self::PAGE_SIZE]);

The PHP error occurs while PHP client Library si preparing the request and 
before it submit it to google ads API
I don't see how I can convert anything unless debugging myself PHP client 
library

regards




Le lundi 9 septembre 2019 19:57:14 UTC+2, Adrian Lara a écrit :
>
> The problem is you need convert 1 parameter  in to DoubleValue.
>
>  
>
> [image: adrian]
>
>  
>
> *From:* adwor...@googlegroups.com <javascript:> <adwor...@googlegroups.com 
> <javascript:>> *On Behalf Of *Didier Roy
> *Sent:* Monday, September 9, 2019 2:49 PM
> *To:* AdWords API and Google Ads API Forum <adwor...@googlegroups.com 
> <javascript:>>
> *Subject:* Re: Google Ads PHP client library V2 fail get conversions and 
> conversions_values from hotel_performance_view with
>
>  
>
> Hello Sai
>
>  
>
> the error is a PHP error. It occurs before the API call is done. There is 
> no log of the request into the log.
>
> it seems to be a PHP client library bug. I have tried V2 and V1 and got 
> the same error
>
>  
>
> 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
>
>
> Regards
>
> Didier
>
>
> Le lundi 9 septembre 2019 17:54:09 UTC+2, adsapiforumadvisor a écrit :
>
> Hello Didier,
>
> I am form the Google Ads API team. I was able to make successful API call 
> with the search query you have shared without any errors. Could you please 
> share the exact error message/error log you are facing to help further? 
> Please use *reply privately to the author* option while sharing the 
> information requested.
>
> Regards,
> Sai Teja, Google Ads API Team
>  
>
> ref:_00D1U1174p._5001UHFxXv:ref
>
> -- 
> -- 
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> 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 adwor...@googlegroups.com 
> <javascript:>
> To unsubscribe from this group, send email to
> adwor...@googlegroups.com <javascript:>
> 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 adwor...@googlegroups.com <javascript:>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/adwords-api/7809a5c6-987a-49ad-a85b-387022440fd4%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/adwords-api/7809a5c6-987a-49ad-a85b-387022440fd4%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/9f2a0356-a198-4d66-9501-9119230e00f5%40googlegroups.com.

Reply via email to