I am using Google Adwords APility for doing Traffic Estimate
for generic keyword.
is it possible to get the country Specific Data
for TrafficEstimate using Adword API?
In GUI tool it does But in API it says it is not possible,
Also Can I get the CTR,IMpression and Conversion rate
from the fields returned by the Traffic Estimate?
Or Also Is there any Call Which gives me this Fields for any
generic keyword.
It is possible to do location specific estimates with the API. (Look up "CampaignRequest in the API docs.)
You have access to all the same information that is available as when you're actually using the Traffic Estimator tool from your Adwords account. This does not include ctr or conversion rate.
Tools > Traffic Estimator
But i want to get Estimate for any keyword,
If you say CampaignRequest But than how can I get Estimate fro keyword which are not belong to my account(i.e belong to any
Campaign,Adgroup),
I am still doing this
array("maxCpc"=>"5.0","negative"=>"false","text"=>"google","type"=>"Broad"),"maxCpc"=>null),
array(array("geoTargets"=>array ("countryTargets" => array("countries"=>"US")))),
"id" => '-1',
"languageTargeting"=> "en",
"networkTargeting"=>"GoogleSearch");
$campaignEstimate = getCampaignEstimate($s,true);
but still its gives me Error
"Call to a member function getAllAdGroups() on a non-object in apility/lib/TrafficEstimate.php on line 358"
So I can't pass this value as array <
I need to make it object.
Any Idea how can I do Estimate for generic Keywords Using
Campaign Object
require 'adwords4r'
class GoogleAdwords
def self.fetchEstimates keyword_list
adwords = AdWords::API.new(AdWords::AdWordsCredentials.new(
{ 'applicationToken' => 'REPLACE',
'token' => 'REPLACE',
'useragent' => 'REPLACE',
'password' => 'REPLACE',
'email' => 'REPLACE',
'clientEmail' => 'REPLACE'
}
))
keyword_request_list = []
keyword_list.each do ¦keyword¦
keyword_request = AdWords::KeywordRequest.new(nil, 100000000, false, keyword, 'Exact')
keyword_request_list << keyword_request
end
agr = AdWords::AdGroupRequest.new
agr.keywordRequests = keyword_request_list
agr.maxCpc = 100000000
geoTargeting = AdWords::GeoTarget.new
countryTargets = AdWords::CountryTargets.new(["CA"])
geoTargeting.countryTargets = countryTargets
cr = AdWords::CampaignRequest.new
cr.geoTargeting = geoTargeting
cr.adGroupRequests = agr
res = adwords.estimateCampaignList([cr])
return res[0].adGroupEstimates[0].keywordEstimates
rescue AdWords::Error::UnknownAPICall => e
puts e
rescue AdWords::Error::ApiError => e
puts e.code
puts e.message
end
end
it has Benn done But Without Using Apility,
ow My Prodcution environment is approved Now, as you have said in this thread,
[groups.google.com...]
I am been able to get the Data but whwn I compare it with the GUI Tool at
[adwords.google.com...]
Bu the result coming from API and From GUI Tool is quite different.
U can chk my Tool at [mlep.com...]
When I pass Max CPC = $5 and country is US then Result From API is
Lower Cost Per Click(CPC) : 4500000
Upper Cost Per Click(CPC) : 4500000
Lower Clicks Per Day : 1,878.17
Upper Clicks Per Day : 2,168.01
Lower Avg. Position : 1.0
Upper Avg Position : 3.0
Now When I pass the same query in GUI Tool the result is,
Lower Cost Per Click(CPC) : $1.05
Upper Cost Per Click(CPC) : $1.58
Lower Clicks Per Day : 24,035
Upper Clicks Per Day : 30,053
Lower Avg. Position : 1.0
Upper Avg Position : 3.0
Except position every other thing is quite Different, So ihave list of Questions
1) Which data is Correct from API or From GUI Tool
2) when I change the Country The data isn't Chaging so Is country Specific Data Availble
3)in URL of GUI Tool the name TrafficEstimator Sandbox so is GUI Giving Fake Data
4)I have also same tool Except Country Specific data using Apility at this Location
[mlep.com...]
The data in this Tool and in Country Specifc At [mlep.com...]
is giving same data So country Specific is Possible or Not?
If in API the Data is Wrong How can I get the Correct data?
My Reqest in SOAP is
<estimateCampaignList>
<campaignRequests>
<adGroupRequests>
<keywordRequests>
<text>google</text>
<type>Broad</type>
<maxCpc>5000000</maxCpc>
</keywordRequests>
<maxCpc>5000000</maxCpc>
</adGroupRequests>
<geoTargeting>
<countryTargets>US</countryTargets>
<targetAll>false</targetAll>
</geoTargeting>
<languageTargeting>en</languageTargeting>
<networkTargeting>
<networkTypes>SearchNetwork</networkTypes>
</networkTargeting>
</campaignRequests>
</estimateCampaignList>"
Reply Me ASAP .