Re: Problem to using Google Adwords API

2010-07-31 Thread Mukut
 Sir,

After looking your suggestion I want to use Sandbox environment. You
give a video link in you tube. But the instruction is not clear to me.
Because I have to implement the service TargetingIdeaService for get
keyword suggestion on a giving website url using Sandbox environment.
But there are no code on TargetingIdeaService Service class for
Login authentication details are provided to the sandbox google api.
Sir please an instruction or example to implement it with example on
Sandbox how to authenticate through sandbox and get result into my web
application.

Advance Thanks for helping.

Thanks  Regards,

Mukut Kandar


On Jul 30, 8:26 pm, AdWords API Advisor adwordsapiadvi...@google.com
wrote:
 Hi Mukut,

 To use the API you need a developer token, which is obtained by
 registering your MCC account for API access.  Information on how to
 register is available here:

  https://adwords.google.com/support/aw/adwordsapi/bin/answer.py?answer...

 Please be aware that this process may take up to two weeks.  In the
 meantime you can use the sandbox environment, which doesn't require an
 approved developer token:

  http://www.youtube.com/watch?v=cqVtUdB975M

 Best,
 - Eric

 On Jul 30, 10:45 am, Mukut muk143kan...@gmail.com wrote:



  Dear Sir,

  I am implement this Code but no result are given. What will be the
  setting. Can you provide me an user interface to proper
  implementation. I can not set the developer token. Is it important
  then how can I create it. Please send me instruction.
  Thanks  Regards,
  Mukut Kandar.

  On Jul 30, 7:24 pm, AdWords API Advisor adwordsapiadvi...@google.com
  wrote:

   Hi Mukut,

   My apologies, I had misunderstood your question.  The generate keyword
   ideas you can use the TargetingIdeaService:

    http://code.google.com/apis/adwords/v2009/docs/reference-v200909/Targ...

   An example of how to use this service with the .NET client library is
   available here:

    http://code.google.com/p/google-api-adwords-dotnet/source/browse/trun...

   Best,
   - Eric

   On Jul 29, 10:44 am, Mukut muk143kan...@gmail.com wrote:

Sir,

 after see the example I understand that this AdGroupCriterion Service
is provide keyword for advertise purpose. But I need generate Keywords
list for SEO using Google api in asp.net 2008 and c#.  Clearly my
client will be give his website in a textbox and clicking on generate
keyword button a list of keywords are fill next drop down control.
This keyword will be relevant with the client's website. And Google
API is provide these keywords. I want this application of google api
to integrateusing Asp.net 2008 and c#. Please sir provide me such type
of application's service and proper guideline to implement. Waiting
for your reply sir.

Thanks  Regards
Mukut Kandar

On Jul 29, 7:09 pm, AdWords API Advisor adwordsapiadvi...@google.com
wrote:

 Hi Mukut,

 To create keywords in the API you need to use the
 AdGroupCriterionService:

  http://code.google.com/apis/adwords/v2009/docs/reference/AdGroupCrite...

 An example of how to use this service with the .NET client library to
 create keywords is available here:

  http://code.google.com/p/google-api-adwords-dotnet/source/browse/trun...

 Best,
 - Eric Koleda, AdWords API Team

 On Jul 29, 9:33 am, Mukut muk143kan...@gmail.com wrote:

  Sir I have no response on this discussion please give me a 
  suggestion.
  I am waiting for your reply.

  On Jul 29, 5:05 pm, Mukut muk143kan...@gmail.com wrote:

   Dear Sir,
   I am trying to create in a new website application of
   Asp.net 2008 using c# for generate keyword through Google Adword 
   API
   with my user interface. I can not get any example on it. There 
   are I
   am get example on campaigning but not in keyword generate. Sir 
   please
   provide me an example or full instruction on it. Is it chargeable 
   then
   confirm me. I have to do it anyway.

   On Jul 29, 4:35 pm, AdWords API Advisor 
   adwordsapiadvi...@google.com
   wrote:

Hi Mukut,

Seehttp://www.google.com/support/adwordsapi/bin/answer.py?hl=enanswer=1...
for details on what developer tokens are. Also see our FAQ 
pages at

   http://www.google.com/support/adwordsapi/http://www.google.com/suppor...

for other topics related to AdWords API.

Cheers,
Anash

On Jul 29, 4:12 pm, Mukut muk143kan...@gmail.com wrote:

 Sir,

  I did not get any response. Please anybody can help me to 
 generate
 keyword using Google Adword API in Asp.net 3.5 and c#.
 There are a folder SampleWebSite in awapi_dotnet_lib_9.0.0. 
 And I am
 copy all the files and folder in another folder to and run it 
 with
 changing in web.config file. And create a Log folder in it. 
 Changes in

Re: Problem to using Google Adwords API

2010-07-31 Thread Mukut
Dear Sir,

I am sending my total details of my web application and can't found
the problem. Please verify these steps with spending some time to
relief me from this problem.

I am configure in my web.config for getting list on keyword  ideas
using Google sandbox api as below and after running the code write a
request and response in a Log file also

as below. An error is returned in this application. But can't
understand what to do.

My application's is using ASP.NET 2008 and C# and goal to result like
this url but just getting keywords

   
https://adwords.google.com/o/Targeting/Explorer?__u=4468366968__c=2545204608ideaRequestType=KEYWORD_IDEAS#search.none

Web services present in my web application are

   KeywordToolService.wsdl,
   TargettingIdeaService.wsdl and
   AdGroupCriterionService.wsdl.

Service is used as your suggestion TargettingIdeaService and code is
use awapi_dotnet_lib_9.0.0\Examples\v200909\GetRelatedKeywords.cs.

Web.config file as below


 configSections
section name=AdWordsApi
type=com.google.api.adwords.lib.ApplicationConfiguration,google-api-
adwords-dotnet/
 /configSections
 AdWordsApi
!-- Change the appropriate flags to turn on SOAP logging. --
add key=LogPath value=D:\mywebsitename\Log\/
add key=LogToConsole value=false/
add key=LogToFile value=true/
add key=MaskCredentials value=false/
!-- Fill the following values if you plan to use a proxy 
server.--
add key=ProxyServer value=/
add key=ProxyUser value=/
add key=ProxyPassword value=/
add key=ProxyDomain value=/
!-- Uncomment this key if you want to disable gzip compression 
in
SOAP requests.--
!--add key=EnableGzipCompression value=false/--
!-- Fill the header values. --
add key=CompanyName value=Test_Company/
add key=Email value=muk143kan...@gmail.com/
add key=Password value=mypassword/
add key=ClientEmail value=client_1+muk143kan...@gmail.com/
add key=DeveloperToken value=muk143kan...@gmail.com+usd/
!-- Application token is now optional and will be ignored by 
the
server. --
 add key=ApplicationToken value=ignored/
!-- Uncomment this key and comment ClientEmail if you want to
specify customer id instead of customer email. --
!-- add key=ClientCustomerId
value=ENTER_YOUR_CLIENT_CUSTOMER_ID_HERE/ --
!-- Uncomment this if you want to reuse an authToken multiple
times. --
!--add key=AuthToken value=ENTER_YOUR_AUTH_TOKEN_HERE/ 
--
!-- Uncomment this key if you want to use v13 sandbox. --
 add key=LegacyAdWordsApi.Url 
value=https://sandbox.google.com/

!-- Uncomment this key if you want to use AdWords API sandbox. 
--
add key=AdWordsApi.Url 
value=https://adwords-sandbox.google.com/

/AdWordsApi


After running this code

I gave a keyword as website url in a textbox and Click a button to
generate Keyword Ideas list but get nothing after run.
All the code is under OnClick button Event and a request and response
are return into my sop_xml.log file into Log folder in D drive.
The request and response is as below

Request
---

POST /api/adwords/o/v200909/TargetingIdeaService
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client
Protocol 2.0.50727.1433)
VsDebuggerCausalityData:
uIDPo0AJeaOQ9etFiqvUazQWfxYAQtj2OFvpi0aOd9vfrYUEdYWzSxiuqFVHv6nKBAIhdR8ACQAA
Content-Type: text/xml; charset=utf-8
SOAPAction: 
Host: adwords-sandbox.google.com
Content-Length: 1630
Accept-Encoding: gzip
Connection: Keep-Alive

?xml version=1.0 encoding=utf-8?soap:Envelope
xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xmlns:xsd=http://www.w3.org/2001/
XMLSchemasoap:HeaderRequestHeader xmlns=https://
adwords.google.com/api/adwords/o/v200909applicationToken
xmlns=https://adwords.google.com/api/adwords/cm/v200909;ignored/
applicationTokenauthToken xmlns=https://adwords.google.com/api/
adwords/cm/v200909DQAAAI8X_T5c03TviHlvy-
wf6YzhW9dKeel7tVoEIa8ZPrbcY9bSqGcOMH0Nx6cHmgGd6tafvZnoBstRAFuqRSwqcbNp_qEM3XBIo5jlQt35d-
my2m4dhViHeaiBOUudXcn_SJmto8P-Ev07VGoNVdi4SoyBS-
enZzGnKLoUZWVNFj8iLAmkFktlxV_B2793W5QrOJE/authTokenclientEmail
xmlns=https://adwords.google.com/api/adwords/cm/
v200909client_1+muk143kan...@gmail.com/clientEmaildeveloperToken
xmlns=https://adwords.google.com/api/adwords/cm/
v200909muk143kan...@gmail.com+usd/developerTokenuserAgent
xmlns=https://adwords.google.com/api/adwords/cm/v200909;AWAPI
DotNetLib 9.0.0 - Test_Company/userAgent/RequestHeader/
soap:Headersoap:Bodyget xmlns=https://adwords.google.com/api/
adwords/o/v200909selectorsearchParameters

Re: Problem to using Google Adwords API

2010-07-31 Thread Mukut
My code is as below

 AdWordsUser user = new AdWordsUser();
 //Get the TargetingIdeaService.
TargetingIdeaService targetingIdeaService =
(TargetingIdeaService)user.GetService(AdWordsService.v200909.TargetingIdeaService);
Keyword keyword = new Keyword();
keyword.text = urlTW;
keyword.matchTypeSpecified = false;
keyword.matchType = KeywordMatchType.EXACT;

RelatedToKeywordSearchParameter searchParameter = new
RelatedToKeywordSearchParameter();
searchParameter.keywords = new Keyword[]
{ keyword };

TargetingIdeaSelector selector = new
TargetingIdeaSelector();
selector.searchParameters = new SearchParameter[]
{ searchParameter };
selector.ideaTypeSpecified = true;
selector.ideaType = IdeaType.KEYWORD;
selector.requestTypeSpecified = true;
selector.requestType = RequestType.IDEAS;

Paging paging = new Paging();
paging.startIndex = 0;
paging.startIndexSpecified = true;
paging.numberResults = 20;
paging.numberResultsSpecified = true;

selector.paging = paging;

try
{
TargetingIdeaPage page =
targetingIdeaService.get(selector);

if (page != null  page.entries != null)
{
Console.WriteLine(There are a total of {0}
keywords related to '{1}'. The first {2} +
   entries are displayed below: \n,
page.totalNumEntries, urlTW,
  page.entries.Length);

foreach (TargetingIdea idea in page.entries)
{
foreach (Type_AttributeMapEntry entry in
idea.data)
{
if (entry.key == AttributeType.KEYWORD)
{
KeywordAttribute kwdAttribute =
entry.value as KeywordAttribute;
Console.WriteLine(Related keyword
with text = '{0}' and match type = '{1}' +
   was found.,
kwdAttribute.value.text, kwdAttribute.value.matchType);
}
}
}
}
else
{
Console.WriteLine(No related keywords were found
for your keyword.);
}
}
catch (Exception ex)
{
Console.WriteLine(Failed to retrieve related
keywords. Exception says \{0}\,
ex.Message);
}

And request with response is above reply. Please check it and guide
for solve the error.

On Jul 31, 5:11 pm, Mukut muk143kan...@gmail.com wrote:
 Dear Sir,

 I am sending my total details of my web application and can't found
 the problem. Please verify these steps with spending some time to
 relief me from this problem.

 I am configure in my web.config for getting list on keyword  ideas
 using Google sandbox api as below and after running the code write a
 request and response in a Log file also

 as below. An error is returned in this application. But can't
 understand what to do.

 My application's is using ASP.NET 2008 and C# and goal to result like
 this url but just getting keywords

    https://adwords.google.com/o/Targeting/Explorer?__u=4468366968__c=25...

 Web services present in my web application are

    KeywordToolService.wsdl,
    TargettingIdeaService.wsdl and
    AdGroupCriterionService.wsdl.

 Service is used as your suggestion TargettingIdeaService and code is
 use awapi_dotnet_lib_9.0.0\Examples\v200909\GetRelatedKeywords.cs.

 Web.config file as below

      configSections
                 section name=AdWordsApi
 type=com.google.api.adwords.lib.ApplicationConfiguration,google-api-
 adwords-dotnet/
      /configSections
      AdWordsApi
                 !-- Change the appropriate flags to turn on SOAP logging. --
                 add key=LogPath value=D:\mywebsitename\Log\/
                 add key=LogToConsole value=false/
                 add key=LogToFile value=true/
                 add key=MaskCredentials value=false/
                 !-- Fill the following values if you plan to use a proxy 
 server.--
                 add key=ProxyServer value=/
                 add key=ProxyUser value=/
                 add key=ProxyPassword value=/
                 add key=ProxyDomain value=/
                 !-- Uncomment this key if you want to disable gzip 
 compression in
 SOAP requests.--
                 !--add key=EnableGzipCompression value=false/--
                 !-- Fill the header values. --
                 add key=CompanyName value=Test_Company/
                 add key=Email value=muk143kan...@gmail.com/
                 add key=Password value=mypassword/
                 add key=ClientEmail 
 value=client_1+muk143kan...@gmail.com/
                 add 

Re: Problem to using Google Adwords API

2010-07-31 Thread Mukut
Dear Sir,

I am testing with keyword value sony camera and onida tv but
response are same. Is this for using Sandbox or any error. because I
have no result through this in my web page. But in Log folder's
soap_log.txt file have an response as below

soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/;
  soap:Header
ns2:ResponseHeader xmlns:ns2=https://adwords.google.com/api/
adwords/o/v200909 xmlns=https://adwords.google.com/api/adwords/cm/
v200909
  requestIda85f3b31a5b3453853ce2e7d2c5243d1/requestId
  operations20/operations
  responseTime174/responseTime
  units20/units
/ns2:ResponseHeader
  /soap:Header
  soap:Body
ns2:getResponse xmlns=https://adwords.google.com/api/adwords/cm/
v200909 xmlns:ns2=https://adwords.google.com/api/adwords/o/v200909;
  ns2:rval
ns2:totalNumEntries300/ns2:totalNumEntries
ns2:entries
  ns2:data
ns2:keyKEYWORD/ns2:key
ns2:value xmlns:xsi=http://www.w3.org/2001/XMLSchema-
instance xsi:type=ns2:KeywordAttribute
  ns2:Attribute.TypeKeywordAttribute/
ns2:Attribute.Type
  ns2:value
Criterion.TypeKeyword/Criterion.Type
textsample keyword 1102684909 0/text
matchTypeEXACT/matchType
  /ns2:value
/ns2:value
  /ns2:data
  ns2:data
ns2:keyIDEA_TYPE/ns2:key
ns2:value xmlns:xsi=http://www.w3.org/2001/XMLSchema-
instance xsi:type=ns2:IdeaTypeAttribute
  ns2:Attribute.TypeIdeaTypeAttribute/
ns2:Attribute.Type
  ns2:valueKEYWORD/ns2:value
/ns2:value
  /ns2:data
/ns2:entries
ns2:entries
this loop 20 times repeated 
   ...
   /ns2:entries
  /ns2:rval
/ns2:getResponse
  /soap:Body
/soap:Envelope

Sir how can I get the original result. Please provide instruction.

Thanks  Regards,
Mukut Kandar
On Jul 31, 6:15 pm, Mukut muk143kan...@gmail.com wrote:
 My code is as below

  AdWordsUser user = new AdWordsUser();
              //Get the TargetingIdeaService.
             TargetingIdeaService targetingIdeaService =
 (TargetingIdeaService)user.GetService(AdWordsService.v200909.TargetingIdeaS 
 ervice);
             Keyword keyword = new Keyword();
             keyword.text = urlTW;
             keyword.matchTypeSpecified = false;
             keyword.matchType = KeywordMatchType.EXACT;

             RelatedToKeywordSearchParameter searchParameter = new
 RelatedToKeywordSearchParameter();
             searchParameter.keywords = new Keyword[]
 { keyword };

             TargetingIdeaSelector selector = new
 TargetingIdeaSelector();
             selector.searchParameters = new SearchParameter[]
 { searchParameter };
             selector.ideaTypeSpecified = true;
             selector.ideaType = IdeaType.KEYWORD;
             selector.requestTypeSpecified = true;
             selector.requestType = RequestType.IDEAS;

             Paging paging = new Paging();
             paging.startIndex = 0;
             paging.startIndexSpecified = true;
             paging.numberResults = 20;
             paging.numberResultsSpecified = true;

             selector.paging = paging;

             try
             {
                 TargetingIdeaPage page =
 targetingIdeaService.get(selector);

                 if (page != null  page.entries != null)
                 {
                     Console.WriteLine(There are a total of {0}
 keywords related to '{1}'. The first {2} +
                        entries are displayed below: \n,
 page.totalNumEntries, urlTW,
                       page.entries.Length);

                     foreach (TargetingIdea idea in page.entries)
                     {
                         foreach (Type_AttributeMapEntry entry in
 idea.data)
                         {
                             if (entry.key == AttributeType.KEYWORD)
                             {
                                 KeywordAttribute kwdAttribute =
 entry.value as KeywordAttribute;
                                 Console.WriteLine(Related keyword
 with text = '{0}' and match type = '{1}' +
                                    was found.,
 kwdAttribute.value.text, kwdAttribute.value.matchType);
                             }
                         }
                     }
                 }
                 else
                 {
                     Console.WriteLine(No related keywords were found
 for your keyword.);
                 }
             }
             catch (Exception ex)
             {
                 Console.WriteLine(Failed to retrieve related
 keywords. Exception says \{0}\,
                     ex.Message);
             }

 And request with response is above reply. Please check it and guide
 for solve the error.

 On Jul 31, 5:11 pm,Mukutmuk143kan...@gmail.com wrote:



  Dear Sir,

  I am sending my total details of my web application and can't found
  the problem. 

Re: problems encountered during development with Adwords API python lib

2010-07-31 Thread xero
Hi Eric,

  It's exciting to know that gzip HTTP feature will be available in
the near future! I'm looking forward to it.

  About Python lib, I didn't realize that I can submit feature request
myself. It's good to know and I will.

  Thank you for opening a request for returning valid category ids
from sandbox. I fully understand that it's not high priority. It
would be nice to have this feature since it makes behavior of sandbox
more consistent with production environment, but the absence of it
also won't be an action blocker.

  There're still something around.

1. Besides invalid character restrictions, does the keyword has other
restrctions, such as length limit?

2. With all due respect, I doubt that this behavior(fail the entire
call instead of returning N/A or NULL values) of estimateKeywordList()
in TrafficEstimatorService is consistent with the rest of Adwords API.

  I did some test in sandbox, sending mal-formatted keywords to both
TrafficEstimatorService and TargetingIdeaService (requestType=STATS).
TrafficEstimatorService throws an exception, while
TargetingIdeaService still returns results.

  IMHO, this is a major difference between v13 and v200909, and
definitely a great improvement. Aside from the fact that such pattern
suits web service environment well, actually it benefits both parties.
Users will get most of what they want in one shot, while Google's able
to charge customer without occupying too much resources (because the
user is destined to send the failed call again).

  I'm not sure if in the future TrafficEstimatorService will have a
new version or not. If yes, I do wish it could follow the idea and
behavior of TargetingIdeaService now.


On Jul 30, 11:18 pm, AdWords API Advisor
adwordsapiadvi...@google.com wrote:
 Hi,

 To address your questions:

 1) I believe they are trying to launch that feature within the next
 couple of weeks, but I can't say for certain.

 2) I can put in a request for this feature, but I don't think it is
 very high priority.

 3) You can file Python client library feature requests 
 here:http://code.google.com/p/google-api-adwords-python-lib/issues/list

 4) This behavior is consistent with the rest of the AdWords API and
 not likely to change.

 Best,
 - Eric

 On Jul 29, 11:50 pm, xero zcl...@gmail.com wrote:

  Hi Eric,
Thanks for helping out!

I've a few further ones:

  1. It's a pity that TargetingIdeaService can't return 800 entries for
  keywords only. But it's definitely great news that gzipped HTTP
  transport support is under way. When will it be ready? Is there any
  timetable for that?

  2. Is it possible for DEV team to add support for returning valid
  category ids?
It doesn't need to be real by all means, but some dummy random
  number falling into the range of valid/possible keyword category ids.
  In this way, users can still see some dummy results of keyword
  category names from the sandbox data. Basically it's generating a
  random number in one range instead of another.

  3. It would be useful to add keyword category utility functions just
  like what GetCategories() did for placement categories. And It's nice
  to know keyword supports multiple categories.

  4. Thanks for clarifying on keyword format. Besides invalid
  characters, are there any other restrictions, e.g, keyword lengths?
Actually I'm thinking that returning all-0s or N/A results for those
  keywords may be a better way for Adwords API implementation. It's
  customer's fault to submit malformed keywords, and the customer can
  prevent or remedy such mistake in many ways. Google doesn't need to be
  responsible for that. Throwing an exception/failing the entire call is
  too heavy.

  On Jul 29, 5:45 am, AdWords API Advisor adwordsapiadvi...@google.com
  wrote:

   Hi,

   To address your questions:

   1) Yes, TargetingIdeaService.get() has an upper limit of 800 entries.
   We'll work to make this more clear in the documentation.

   2) Unfortunately not.

   3) I believe only the following attributes can be requested:
   AD_SHARE, EXTRACTED_FROM_WEBPAGE, IDEA_TYPE, KEYWORD, SEARCH_SHARE.

   4) The URL is used to generate keyword ideas, the same as the get()
   method.

   5) The current Python client library doesn't support gzipped HTTP
   transport, but this feature is in the works already.

   6) The sandbox will always return dummy data, including the category
   ids.

   7) This method returns the available placement categories, now called
   Verticals in the API.  There are not compatible with the keyword
   categories.

   8) Yes, keywords can have multiple categories.

   9) Information about invalid characters in keywords is available 
   here:http://adwords.google.com/support/aw/bin/answer.py?hl=enanswer=53539

   Best,
   - Eric Koleda, AdWords API Team

   On Jul 27, 11:32 am, xero zcl...@gmail.com wrote:

Hi,

  I'm currently using Adwords API python lib. The following are
problems encountered in development. Can anyone