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 getting confused with some of the calls to the api.
I rewrote the example you posted (http://www.google.com/url?
sa=D&q=http://adwordsapi.blogspot.com/2010/09/discover-v201003-using-
ad-sitelinks.html&usg=AFQjCNFavCUZxtHzd3JnEyoRdmlv068VYA) to work with
v201101. Not much needed to change but let me know if you want a copy
and I'll email you the cs file.

In v201101 as long as the CamapignId's are strings to begin with use
Int64.Parse instead of long.Parse as below:

string campaignid = "123456";
long campaignId = Int64.Parse(campaignid);

In my sql database I was storing the campaignids as integers but due
to the length of the campaignid's being to big for type int, when
parsing them back through the api it was throwing the identity not
found error!
All I did was change the datatype in the database for campaignids to a
string and used Int64.Parse to parse them as long and everything is
working fine now!

I suppose like everything in life it's just a case of trial and error
but got there in the end.

Thanks for your help as always

Paigey


On Nov 18, 5:42 pm, "Anash P. Oommen" <anash.p.oommen
[email protected]> wrote:
> 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
> tryhttp://code.google.com/p/google-api-adwords-dotnet/source/browse/trun...as
> a starting point. As for others, you can refer 
> tohttp://code.google.com/p/google-api-adwords-dotnet/source/browse/trun...
>  andhttp://code.google.com/p/google-api-adwords-dotnet/source/browse/trun....
> Feel free to follow up with questions that you may have.
>
> Finally, about long.Parse: You could try long.TryParse, that won't throw an
> exception. However, NOT getting campaignId is a more serious problem, I
> feel we should work to fix that problem first :)
>
> Cheers,
> Anash P. Oommen,
> AdWords API Advisor.

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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

Reply via email to