Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP Bug when requesting hotel_performance_view.conversions #204

Closed
roydidier opened this issue Sep 10, 2019 · 2 comments
Closed

PHP Bug when requesting hotel_performance_view.conversions #204

roydidier opened this issue Sep 10, 2019 · 2 comments
Assignees

Comments

@roydidier
Copy link

PHP error requesting hotel_performance_view.conversions
(without conversions in the request it is working)
the error occurs before PHP send the request to Google. There is nothing in GoogleAdsApi.log.
Same error with V1 or V2

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

this is the error I get :
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

thanks

@PierrickVoulet
Copy link
Collaborator

Hi - I think it is related to the response decoding, could you provide your Customer ID?

@PierrickVoulet
Copy link
Collaborator

Closing this issue because of inactivity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants