Hi Conor, I just ran a quick test where I created an ImageAd <https://developers.google.com/adwords/api/docs/reference/v201409/AdGroupAdService.ImageAd> by specifying the following attributes:
- name - url - displayUrl - image: an Image <https://developers.google.com/adwords/api/docs/reference/v201409/AdGroupAdService.Image> object with: - data (set to the bytes of the image) After the *ADD* operation, I was able to preview the image (no blanks for me). Note that you do not need to upload the image separately (and actually, you cannot do this). Have you tried just specifying the *data* attribute of the *Image*? The API should figure out the dimensions from the data. I'm thinking the issue for you might be that the dimensions don't match the *data* specified on the *Image*, and perhaps that's causing the preview problems. By the way, if you haven't found it already, look for the *Media* or *MediaUtils* in the AdWords API client library you're using -- it has utility methods for constructing the data byte array from a file or URL (e.g., the Java utility is here on github <https://github.com/googleads/googleads-java-lib/blob/master/modules/ads_lib/src/main/java/com/google/api/ads/common/lib/utils/Media.java#L49> ). If you try just specifying the *data* of the *Image* and it's still not working, could you pass along the AdGroup ID and Ad ID so I can investigate further? Thanks, Josh, AdWords API Team On Wednesday, October 8, 2014 9:16:25 AM UTC-4, [email protected] wrote: > > I guess I am additionally asking if I should be able to preview the > relevant ad after uploading it. Could there be a reason other than the > image file being empty (which seems unlikely given that there are > dimensions beneath the image name, and that the mutate method fails if the > images on my local machine aren't of the right size) for the preview not > displaying anything? > > Thanks, > Conor > > On Wednesday, 8 October 2014 12:12:23 UTC+1, [email protected] wrote: >> >> When I upload some image ads to AdWords using the AdWords API, the upload >> is successful, and the API manages to recognise when the images are not of >> the correct size. Beneath the file name in the relevant AdGroup, there is a >> string 'A x B' indicating the dimensions of the image. However, when I >> click on the image for a preview, I only see a small popup, blank but for >> the word 'Preview' and an X to close the window. >> >> Why is this happening? I am uploading the images as part of the ImageAd >> itself, using only AdGroupAdService.mutate method. Do the images have to be >> uploaded separately? If so, how do I link the images to the relevant image >> ads? Or is there something else I am missing? I am happy to give further >> details on request. >> >> Thank you for your help in this matter. >> >> Best wishes, >> Conor >> > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and Google+: https://googleadsdeveloper.blogspot.com/ https://plus.google.com/+GoogleAdsDevelopers/posts =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] 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 Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. Visit this group at http://groups.google.com/group/adwords-api. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/3fd15a99-acec-45c0-876a-a0965acc4087%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
