keyword planner tool result different from TargetingIdeaService result

61 views
Skip to first unread message

Nitin Aggarwal

unread,
Jul 24, 2017, 3:58:17 AM7/24/17
to AdWords API Forum

Hi

This is my code

def main(client):
  # Initialize appropriate service.
  targeting_idea_service = client.GetService(
      'TargetingIdeaService', version='v201702')

  # Construct selector object and retrieve related keywords.
  offset = 0
  selector = {
      'searchParameters': [
          {
              'xsi_type': 'RelatedToUrlSearchParameter'
              'includeSubUrls': False,
          },
          {
              # Language setting (optional).
              # The ID can be found in the documentation:
              'xsi_type': 'LanguageSearchParameter',
              'languages': [{'id': '1000'}]
          },

          {
              'xsi_type': 'LocationSearchParameter',
              'locations': [{'id': '2840'}]
          }
          ,
          {
              # Network search parameter (optional)
              'xsi_type': 'NetworkSearchParameter',
              'networkSetting': {
                  'targetGoogleSearch': True,
                  'targetSearchNetwork': False,
                  'targetContentNetwork': False,
                  'targetPartnerSearchNetwork': False
              }
          }
      ],
      'ideaType': 'KEYWORD',
      'requestType': 'IDEAS',
      'requestedAttributeTypes': ['KEYWORD_TEXT', 'SEARCH_VOLUME',
                                  'CATEGORY_PRODUCTS_AND_SERVICES'],
      'paging': {
          'startIndex': str(offset),
          'numberResults': str(PAGE_SIZE)
      }
  }


But the result given by the api is completely different from the web UI (Please refer to the attached image)
There is not even a single match between  results on the web and what is returned by the api.

Can some one let me know if I am missing to enter some parameter that i need to pass to get the same result as web UI.
I understand that the results by api are for different timeline compared to web UI, but the api is returning completely different and undesirable results instead.
Keyword_Planner_–_Google_AdWords.png

Ivan Bautista

unread,
Jul 24, 2017, 6:08:45 AM7/24/17
to AdWords API Forum
Hi Nitin,

Thank you for providing your Keyword Planner screenshot and your code snippets.

For us to be able to investigate further, would you be able to share to us privately (using reply privately to author option) the SOAP request and response logs when TargetingIdeaService was executed as well as your account Id? These information will give us a better look on your data and the request details sent.

You may refer to this guide to enable SOAP logging in Python.

Regards,
Ivan 
AdWords API Team

Ivan Bautista

unread,
Aug 1, 2017, 6:30:16 AM8/1/17
to AdWords API Forum
Hi Nitin,

Do you still need our assistance on this? If so, then could you provide to us privately (using reply privately to author option) the previously requested information so we could investigate further?
Reply all
Reply to author
Forward
0 new messages