Re: estimateKeywordList returns 0 for everything

2010-05-28 Thread Riaan van der Linde
Hi Guys,
Can anyone please point out what I am doing wrong here.
Here is my code.
Our developer token has been approved and we did complete the billing
section of adwords so there are no holds on the account.

try
{
// Get the service.
TrafficEstimatorService service =
 
(TrafficEstimatorService)user.GetService(AdWordsService.v13.TrafficEstimatorService);

// Set the attributes of the keywords to be estimated.
KeywordRequest myKeyword = new KeywordRequest();
myKeyword.text = strKeyword;
myKeyword.maxCpc = 5;
myKeyword.maxCpcSpecified = true;
myKeyword.type = thisKeywordType;
myKeyword.typeSpecified = true;

// To estimate more keywords, create more KeywordRequest
objects
// and add them to the list of keyword to estimate.
KeywordRequest[] keyReqs = new KeywordRequest[]
{ myKeyword };

// Estimate traffic for given keywords.
KeywordEstimate[] estimates =
service.estimateKeywordList(keyReqs);

if (estimates != null)
{
for (int i = 0; i  estimates.Length; i++)
{
KeywordEstimate estimate = estimates[i];

lowerClicksPerDay = estimate.lowerClicksPerDay;
upperClicksPerDay = estimate.upperClicksPerDay;
lowerCPC = estimate.lowerCpc;
upperCPC = estimate.upperCpc;
lowerAVGPos = estimate.lowerAvgPosition;
upperAVGPos = estimate.upperAvgPosition;
}
}
else
return;
}

On May 27, 2:19 pm, Riaan van der Linde riaan...@gmail.com wrote:
 Hi,

 We have used your sandbox feature to develop an application and
 received some mock data from your sandbox server.
 However since we created a new account and got the developer token
 approved that same code is not working anymore. I have even used your
 own code sample to make sure that I am doing everything right. I tried
 this class (http://code.google.com/p/google-api-adwords-dotnet/source/
 browse/trunk/Examples/v13/KeywordEstimateDemo.cs)

 The problem is that I get 1 estimate back from the api but all the
 following values are set to 0:

 estimate.lowerClicksPerDay;
 estimate.upperClicksPerDay;
 estimate.lowerCpc;
 estimate.upperCpc;
 estimate.lowerAvgPosition;
 estimate.upperAvgPosition;

 id and idField is also set to -1
 Can you please help

 The developer token is working because we also use the
 AdWordsService.v200909.TargetingIdeaService and that seems to be
 returning proper keyword variations.

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 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


estimateKeywordList returns 0 for everything

2010-05-27 Thread Riaan van der Linde
Hi,

We have used your sandbox feature to develop an application and
received some mock data from your sandbox server.
However since we created a new account and got the developer token
approved that same code is not working anymore. I have even used your
own code sample to make sure that I am doing everything right. I tried
this class (http://code.google.com/p/google-api-adwords-dotnet/source/
browse/trunk/Examples/v13/KeywordEstimateDemo.cs)

The problem is that I get 1 estimate back from the api but all the
following values are set to 0:

estimate.lowerClicksPerDay;
estimate.upperClicksPerDay;
estimate.lowerCpc;
estimate.upperCpc;
estimate.lowerAvgPosition;
estimate.upperAvgPosition;

id and idField is also set to -1
Can you please help

The developer token is working because we also use the
AdWordsService.v200909.TargetingIdeaService and that seems to be
returning proper keyword variations.

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 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