Image Ad Upload

2014-09-25 Thread testadwords
Hi All, I am trying to use the following code, in C#, to upload some ImageAds to AdWords; however, it appears that I am using the wrong service. However, using a MediaService forces me to change method from mutate to upload, the argument from List to Media[], and then I have to change the type

Re: Image Ad Upload

2014-09-25 Thread Anash P. Oommen (AdWords API Team)
Hi, To create an imageAd, you'd need to upload the image first using MediaService (see https://github.com/googleads/googleads-dotnet-lib/blob/master/examples/AdWords/CSharp/v201406/Miscellaneous/UploadImage.cs), then use that media id to create an image Ad. Cheers, Anash P. Oommen, AdWords AP

Re: Image Ad Upload

2014-09-25 Thread testadwords
HI Anash, Thanks for your help. I am slightly lost though as to how to create an ImageAd, from start to finish. So I upload the Image to AdWords, and get the media id of that image. Then what do I do with it? I'm looking at the API here https://developers.google.com/adwords/api/docs/reference/

Re: Image Ad Upload

2014-09-26 Thread Anash P. Oommen (AdWords API Team)
Hi Conor, This is a code example from an old version of the client library. Let me know if it works for you. // Create your image ad. ImageAd imageAd = new ImageAd(); imageAd.name = "My Image Ad"; imageAd.displayUrl = "www.example.com"; imageAd.url = "http://www.examp

Re: Image Ad Upload

2014-09-29 Thread testadwords
Hi Anash, Thank you for your reply. I made a couple of changes to my code, so it now looks like this: var operations = new List(); foreach (var generatedAd in generatedAds) { // create a new image to put in the imageAd var image = new Image

Re: Image Ad Upload

2014-09-29 Thread Anash P. Oommen (AdWords API Team)
Hi Conor, See if you can replicate this one - connection getting closed is sometimes related to a bad ISP connection, sometimes it happens due to your calls happening when a server update is happening. Cheers, Anash P. Oommen, AdWords API Advisor. On Monday, September 29, 2014 5:53:10 AM UTC-4

Re: Image Ad Upload

2014-09-29 Thread testadwords
Hi Anash, I have managed to replicate this error several times now. Same exception and inner exception each time. What should I do? Thanks, Conor On Monday, 29 September 2014 14:20:47 UTC+1, Anash P. Oommen (AdWords API Team) wrote: > > Hi Conor, > > See if you can replicate this one - connec

Re: Image Ad Upload

2014-09-29 Thread Anash P. Oommen (AdWords API Team)
Hi Conor, I'd need some additional details, please share them by using the "*Reply to Author*" option. DO NOT post any of these details online. 1. Your customer ids (client and API MCC accounts). 2. When was this call made? (timestamp) 3. Outgoing and incoming http request body. You can capture

Re: Image Ad Upload

2014-10-02 Thread testadwords
Hi Anash, Has there been any progress? Thanks again for your help. Best wishes, Conor On Monday, 29 September 2014 20:37:00 UTC+1, Anash P. Oommen (AdWords API Team) wrote: > > Hi Conor, > > I'd need some additional details, please share them by using the "*Reply > to Author*" option. DO NOT

Re: Image Ad Upload

2014-10-02 Thread testadwords
Just as a note, on some occasions, the inner exception changes to 'Unable to write data to the transport connection: An established connection was aborted by the software in your host machine.' rather than 'Unable to write data to the transport connection: An existing connection was forcibly cl

Re: Image Ad Upload

2014-10-07 Thread testadwords
For posterity, this was resolved by a combination of adding the following code to the web.config, as well as trying to upload fewer as in one go. Thanks, Conor On Thursday, 2 October 2014 17:20:40 UTC+1, testa...@geeks.ltd.uk wrote: > > Just as a note, on some occasions,

Re: Image Ad Upload

2014-10-08 Thread Anash P. Oommen (AdWords API Team)
Hi Conor, That's odd, are you sure you don't have a proxy in between that doesn't know how to handle Expect 100 continue headers? Not that it matters for the API server, just curious. Cheers, Anash On Tuesday, October 7, 2014 7:04:09 AM UTC-4, testa...@geeks.ltd.uk wrote: > > For posterity, th

Image Ad Upload Gives a Blank Image

2014-10-08 Thread testadwords
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

Re: Image Ad Upload Gives a Blank Image

2014-10-08 Thread testadwords
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 lo

Re: Image Ad Upload Gives a Blank Image

2014-10-18 Thread Josh Radcliff (AdWords API Team)
Hi Conor, I just ran a quick test where I created an ImageAd by specifying the following attributes: - name - url - displayUrl - image: an Image