-
Notifications
You must be signed in to change notification settings - Fork 769
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
Unable to download batchob results when sending verticals #331
Comments
Hello, I'll have a look deeply soon but it looks like this shouldn't be caused by Is it possible for you to dump the Cheers, |
Thanks for the fast reply
Best, |
Hi @fiboknacky , I have exactly the same issue, also unable to deserialise batch job result.
So it is failing to deserialise/denormalise FinalMobileUrls of ExpandedTextAd. According to what @Babis86 wrote, I suppose that the problem is exactly with deserialisation of arrays which have "string[]" in PHPDoc (since PHPDoc is used to determine the object type). Maybe it will fail for other scalar types used with [] in PHPDoc as well. Update: if it helps, here is the whole Interesting that FinalUrls has same Best, |
Do not try to denormalize scalar types enclosed into arrays
@fiboknacky I've solved this issue and proposed a pull request: #334 |
Hello @sjoorm Thanks for your pull request. As for Best, |
This is fixed since v28.1.0. |
@fiboknacky Best, |
I'm unable to download the results of my batchjob when it contains (AdGroup) Verticals.
I get an Error from the serializer. I tried sending only the verticalId like mentioned here:
https://groups.google.com/forum/#!msg/adwords-api/OtraLyAfyC8/-hHtKR2PAwAJ
and also with the Path. Both was not working.
Operation-Array extract
Error
Google\AdsApi\AdWords\AdWordsNormalizer.php L188 when calling
an Exception is thrown
In my case $typeHint is "string[]". Symfony\Component\Serializer\Serializer.php is looking then for a normalizer in function "denormalizeObject()" and finds the Symfony\Component\Serializer\Normalizer\ArrayDenormalizer.php which itself cannot find a serializer for the $type = 'string' when calling $this->serializer->supportsDenormalization($data, substr($type, 0, -2), $format); in Symfony\Component\Serializer\Normalizer\ArrayDenormalizer.php L63, is this Serializer missing?
This happens only when sending Verticals (see above Operations-Array) on version v28.0.0 (Serializer v3.0.3 & v3.3.5 tested)
[Symfony\Component\Serializer\Exception\UnexpectedValueException]
Could not denormalize object of type string[], no supporting normalizer found.
Stacktrace
Download url
The text was updated successfully, but these errors were encountered: