Hello Khan,

 I can see a few issues with your code. First of all, you're setting
the SOAP header values on the service object, but you're not doing
anything with the service object after that--your call is being made
on a new object, kts. I can't tell whether you're using one of the
official client libraries or just your own classes generated from the
WSDLs, but I'm fairly sure that either way you'd have to do something
to associated the SOAP header values with the actual kts object
instead of the service object. Also, when you make you're
getKeywordsFromSite() call, you ignore the return value, and instead
initialize a new SiteKeywordGroups object on the next line. You're
going to want to assign the return value of getKeywordsFromSite() to a
variable and parse that variable to get the results you're interested
in.

Cheers,
-Jeff Posnick, AdWords API Team


On Jan 28, 6:10 am, Gulzar <khantanveera...@gmail.com> wrote:
> Hi Friend
> I m using the below code to get the Keyword from a website by passing
> the URL.
> But generate the Error  Message "The request did not contain a header
> named 'email'. "
> Is there any one who can help me.
>
>             service.emailValue = new email();
>             service.emailValue.Text = new String[] { email };
>             service.passwordValue = new password();
>             service.passwordValue.Text = new String[] { password };
>             service.clientEmailValue = new clientEmail();
>             service.clientEmailValue.Text = new String[]
> { clientEmail };
>             service.useragentValue = new useragent();
>             service.useragentValue.Text = new String[] { useragent };
>             service.developerTokenValue = new developerToken();
>             service.developerTokenValue.Text = new String[]
> { developerToken };
>             service.applicationTokenValue = new applicationToken();
>             service.applicationTokenValue.Text = new String[]
> { applicationToken };
>
>             string strURL = "http://msn.foxsports.com/nfl/story/
> 9145048/Police-recover-Giants -stolen-Super-Bowl-rings?MSNHPHMA";
>             string[] strLang = new string[] { "en" };
>             string[] strCountry = new string[] { "US" };
>             KeywordToolService kts = new KeywordToolService();
>             kts.getKeywordsFromSite(strURL, true, strLang,
> strCountry);
>             SiteKeywordGroups skg = new SiteKeywordGroups();
>
> Regards
> Khan Tanveer
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to 
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/adwords-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to