The sample code for .NET includes the following in C#:
// Provide AdWords login information.
private static String email = "INSERT_LOGIN_EMAIL_HERE";
private static String password = "INSERT_PASSWORD_HERE";
private static String clientEmail =
"INSERT_CLIENT_LOGIN_EMAIL_HERE";
private static String useragent =
"INSERT_COMPANY_NAME: AdWords API DotNet Sample Code";
private static String developerToken =
"INSERT_DEVELOPER_TOKEN_HERE";
private static String applicationToken =
"INSERT_APPLICATION_TOKEN_HERE";
protected void btnGetKeywords_Click(object sender, EventArgs
e) // MY BUTTON EVENT HERE
{
try
{
// Set up service connection.
KeywordToolService service = new KeywordToolService();
// Define SOAP headers.
service.emailValue = new email();
service.emailValue.Text = new String[] { email };
service.passwordValue = new password();
It cannot find the service ( KeywordToolService service = new
KeywordToolService(); .)
I have tried to use Web Reference in Visual Studio 2008 but I cannot
find how to integrate it with
this code? How can I connect "KeywordToolService service " to this
example code? ( I need the
connection to be direct and Not through another Sample class such
as:
using SampleCode.com.google.sandbox.v13.KeywordToolService .)
---- Kenneth
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---