Re: dotnet api and sitelinks take 2

2011-11-21 Thread Paigey
Hi Anash, Have managed to fix the problem with passing the campaignid and touch wood no more errors. Using v201101 and the main problem I was having was the example I was using which you posted awhile ago targeted v201003 of the api and I was trying to incorporate code from v201101 so it was getti

Re: dotnet api and sitelinks take 2

2011-11-18 Thread Anash P. Oommen
Hi Paigey, I'd recommend you move to v201109. That would require some changes in your code though. I don't have a handy example for getAllSiteLinks, you could try http://code.google.com/p/google-api-adwords-dotnet/source/browse/trunk/examples/csharp/v201109/GetAllCampaignAdExtensions.cs as a

Re: dotnet api and sitelinks take 2

2011-11-16 Thread Paigey
Looks like the parsing of the campaignid is a bit buggy! Using dotnet 4.0 and the latest version of the api so couldn't use long.Parse. Changed string cid = "12345678"; //not real, just an example id long campaignId = long.Parse(cid); To string cid = "12345678"; //not real, just an example id l

Re: dotnet api and sitelinks take 2

2011-11-14 Thread Paigey
Looks like the value linkid on line 39 is null and the api doesn;t allow nullable values. I added if (linkId == null) { linkId = 0; } to just before RemoveActiveSitelinkExtension(campaignId, long.Parse(linkId.Value.ToString())); Now get the error Exception Details:

dotnet api and sitelinks take 2

2011-11-14 Thread Paigey
Hi all, back in August I posted some requests for help with how adding and removing sitelinks works and would like to say a big thanks to Pete Lavetsky and Anash Oommen for their replies and advice. Since the last post I have built an app for the google heads here to use to keep track of sitelinks