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

Cannot use object of type CallFeedItem as array #192

Closed
cacapan opened this issue Dec 19, 2016 · 5 comments
Closed

Cannot use object of type CallFeedItem as array #192

cacapan opened this issue Dec 19, 2016 · 5 comments
Assignees

Comments

@cacapan
Copy link

cacapan commented Dec 19, 2016

Hi,
I am using BatchJobUtils to create ad group extension setting.
The add operations works fine and got response correctly.
<mutateResponse xmlns="https://adwords.google.com/api/adwords/cm/v201609"> ... ... <rval> <result> <AdGroupExtensionSetting> <extensionType>CALL</extensionType> <extensionSetting> <extensions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="CallFeedItem"> ... ... </extensions> <platformRestrictions>NONE</platformRestrictions> </extensionSetting> </AdGroupExtensionSetting> </result> <index>55</index> </rval> ... ... </mutateResponse>
But I got this error converting xml to object

Cannot use object of type CallFeedItem as array
in PATH/TO/UTIL/XmlDeserializer.php on line 105

Thanks in advance.
Cheers.

@fiboknacky fiboknacky self-assigned this Dec 19, 2016
@fiboknacky
Copy link
Member

Hello @cacapan,

Could you please provide your the library version you're using and your batch job ID as well?
Thanks in advance!

Best,
Knack

@cacapan
Copy link
Author

cacapan commented Dec 19, 2016

Hi @fiboknacky

lib version is v14.0.0 and batch job Id is 422840004
Thanks for your help.

Cheers.

@fiboknacky
Copy link
Member

Hello @cacapan

Thanks for your information. :)
I'll have a look at this.

Best,
Knack

@fiboknacky
Copy link
Member

Hello @cacapan

We're working on the fix and will push the fix later.
If you wish to fix this by yourself first, please go to BatchJobClasses and add $AdGroupExtensionSetting as a member variable of the class Operand like this:

    /**
     * @var AdGroupExtensionSetting
     */
    public $AdGroupExtensionSetting;

Hope this help.

Best,
Knack

@vtsao
Copy link
Contributor

vtsao commented Feb 14, 2017

Fixed in 16.0.0.

@vtsao vtsao closed this as completed Feb 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants