get impressions,CTR ,max CPC in GetKeywords API

127 views
Skip to first unread message

Bhairavi

unread,
Feb 1, 2018, 7:39:48 AM2/1/18
to AdWords API Forum
I am using GetKeywords API in php.I get id match type,keyword text from api ,but how to get  impressions,CTR ,max CPC from GetKeywords API.Below is the sample code : 
 if ($page->getEntries() !== null) {
                $totalNumEntries = $page->getTotalNumEntries();
                foreach ($page->getEntries() as $adGroupCriterion) {
                     printf(
                      "Keyword with text '%s', match type '%s', criteria type '%s', "
                      . "and ID %d was found.\n",
                      $adGroupCriterion->getCriterion()->getText(),
                      $adGroupCriterion->getCriterion()->getMatchType(),
                      $adGroupCriterion->getCriterion()->getType(),
                      $adGroupCriterion->getCriterion()->getId()

                      ); 

                  
                }
            }

Luis Xander Talag (AdWords API Team)

unread,
Feb 1, 2018, 9:52:38 AM2/1/18
to AdWords API Forum
Hi Bhairavi,

Regarding statistics data, this can only be retrieved through reports. Based on your need, you may use the Keywords Performance Report to retrieve the values ImpressionsCtr and CpcBid for maxCPC. You may also check this reporting guides and sample report in php for reference.

Thanks and regards,
Luis
AdWords API Team

newbie

unread,
Sep 14, 2018, 6:00:12 PM9/14/18
to AdWords API and Google Ads API Forum
I have the same requirement, is this still true with the latest June release of the API?
If we can get EstimateKeywordTraffic data, surely we can get clicks, impressions, etc. from the keywords related to each ad, no?

Luis Xander Talag (AdWords API Team)

unread,
Sep 17, 2018, 3:58:46 AM9/17/18
to AdWords API and Google Ads API Forum
Hi,

Statistics data for your keywords like impressions, CTR, CPC, etc. are only available in reports even in the latest release v201806. The TrafficEstimatorService, on the other hand, could be used only to simply retrieve estimates for a list of your proposed keywords but not your actual statistics data. You may check this guide to know more on Estimating Traffic.

Thanks and regards,
Luis
AdWords API Team

Reply all
Reply to author
Forward
0 new messages