Re: calling getData() on an image always returns null in PHP library

2017-06-16 Thread Joel Shapiro
Sorry, I mispoke, the Image class includes the getData() function, but you're saying that it cannot be used. Why is getData() included in the class? It seems as though it is inviting confusion to include class functions that appear to do something obvious but serve little purpose. Maybe I'm

Re: calling getData() on an image always returns null in PHP library

2017-06-15 Thread 'Peter Oliquino' via AdWords API Forum
Hi Joel, Could you confirm if this (Data ) is the documentation that you are referring to? Currently, there is no mention that the said field can be selected, otherwise you will see something similar as

Re: calling getData() on an image always returns null in PHP library

2017-06-15 Thread Joel Shapiro
Thank you for the response, but is there a way that I could have known this? The documentation includes getData() but it sounds like you're saying that there's no way to use it. Can you explain how one would successfully use getData() on an image? On Wednesday, June 14, 2017 at 11:07:54 PM

Re: calling getData() on an image always returns null in PHP library

2017-06-15 Thread 'Peter Oliquino' via AdWords API Forum
Hi Joel, I'm afraid you cannot retrieve the raw image data of a Media using MediaService. If you would like to reuse existing Images to create new ResponsiveDisplayAds, you can populate the Image.mediaId

calling getData() on an image always returns null in PHP library

2017-06-14 Thread Joel Shapiro
I'm trying to extract data from an existing ResponsiveDisplayAd and move it to another following the example in AddResponsiveDisplayAd.php and instead of calling: $image->setData(file_get_contents('http://goo.gl/3b9Wfh')); would like to call $image->setData($originalImage->getData()); The