Hi Yang,
Could you confirm if you have applied the same filters on your
TargetingIdeaService and your Keyword Planner? You could refer to this mapping
guide
<https://developers.google.com/adwords/api/docs/guides/targeting-idea-service#mapping_to_keyword_planner>
to
confirm this as this is usually the reason on why the results don't return
the same with the UI. It seems that you did not set the filters for
location and language in your code. Could you apply this and check if it
would already retrieve the same results?
If not, could you provide the complete SOAP request and response logs of
the TargetingIdeaService so I could better investigate this? You may use
the *Reply privately to author* option.
Regards,
Dannison
AdWords API Team
On Friday, December 14, 2018 at 7:07:32 AM UTC+8, Yang Yu wrote:
>
> Hello,
> I'm having some issues matching the output from
> AdwordsAPI TargetingIdeaService to the Keyword planner UI in Adwords.
>
> I played around with Network search parameter and location/language, but
> it doesn't seem to be matching either.
>
> Can you please take a look at my code? I've also attached the output for
> both code and web UI.
> The API output is showing kitchenaid with 673k search volume. However,
> the Web keyword planner is showing 393k impression
>
> Thank you
>
> Code:
> from googleads import adwords
>
> PAGE_SIZE = 100
>
> adwords_client = adwords.AdWordsClient.LoadFromStorage()
>
> targeting_idea_service = client.GetService(
> 'TargetingIdeaService', version='v201806')
>
> selector = {
> 'ideaType': 'KEYWORD',
> 'requestType': 'STATS'
> }
>
> selector['requestedAttributeTypes'] = [
> 'KEYWORD_TEXT', 'SEARCH_VOLUME',]
>
> offset = 0
>
> selector['paging'] = {
> 'startIndex': str(offset),
> 'numberResults': str(PAGE_SIZE)
> }
>
>
> selector['searchParameters'] = [{
> 'xsi_type': 'RelatedToQuerySearchParameter',
> 'queries': ['kitchenaid','beverage-air']
> }]
>
> selector['searchParameters'].append({
> 'xsi_type': 'NetworkSearchParameter',
> 'networkSetting': {
> 'targetGoogleSearch': True,
> 'targetSearchNetwork': False,
> 'targetContentNetwork': False,
> 'targetPartnerSearchNetwork': False
> }
> })
>
> page = targeting_idea_service.get(selector)
>
> for result in page['entries']:
> attributes = {}
> for attribute in result['data']:
> attributes[attribute['key']] = getattr(attribute['value'],
> 'value', '0')
> print(attributes)
>
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
---
You received this message because you are subscribed to the Google Groups
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/8569de2b-b775-4d72-bb9b-756346f2a990%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.