TargetingIdeaService Criterion in Selector

74 views
Skip to first unread message

Vaibhav Jajoo

unread,
Jul 27, 2016, 8:45:40 PM7/27/16
to AdWords API Forum
Hi, 

I am trying to use the Criterion as documented in the latest version of API here https://developers.google.com/adwords/api/docs/reference/v201605/TargetingIdeaService.Criterion

I am not able to figure out how to build the selector for it. Has anybody tried that and had sucess with it??

My sample selector is:

selector = {
     'searchParameters': [
         {
             'xsi_type': 'RelatedToQuerySearchParameter',
             'queries': ['mars travel']
         },
         { 'xsi_type': 'NetworkSearchParameter',
            'networkSetting': [{'targetGoogleSearch' : 'true','targetPartnerSearchNetwork' : 'false',   
                                'targetSearchNetwork' : 'false', 'targetContentNetwork' : 'false'}]
         } ,
    ], 
    # 'Attribute': [ {'Criterion': [{'id': '30001', 'xsi_type': 'Platform'}]}] ,
    #'predicates': [ {   'field': 'CriterionId','operator': 'EQUALS','values': [30001]}],  
    # 'Criterion': [{'id': '30001', 'xsi_type': 'Platform'}] ,
    # 'Criterion' : [{ 'criteria': [          {          'xsi_type': 'Location',  'id': '2840'  },  { 'xsi_type': 'Language','id': '1000' }      ]                            }], 
    # 'platformEstimateRequested': True,
     'ideaType': 'KEYWORD',
     'requestType': 'STATS', ## set = 'STATS' to get statistics on this keyword or 'IDEAS' to get ideas on other kw
     'requestedAttributeTypes': ['KEYWORD_TEXT', 'SEARCH_VOLUME', 'AVERAGE_CPC',
                                 'TARGETED_MONTHLY_SEARCHES',
      'CATEGORY_PRODUCTS_AND_SERVICES','COMPETITION',
                              'CRITERION',## only valid for placements
                               'EXTRACTED_FROM_WEBPAGE', 'IDEA_TYPE'],
     'paging': {
         'startIndex': str(offset),
         'numberResults': str(PAGE_SIZE)
     }
 }

Thanks in advance!!
VJ

Joyce Lava

unread,
Jul 28, 2016, 3:23:47 AM7/28/16
to AdWords API Forum
Hi VJ,

Based on your codes, you are setting CRITERION in the AttributeType[] collection. However, the list of available attributeType can be found here with IdeaType = KEYWORD. Additionally, could you please reply privately to author the SOAP request and response?

Thanks and Regards,
Joyce, AdWords API Team

sergio...@afternoonify.com

unread,
Feb 22, 2017, 9:32:30 AM2/22/17
to AdWords API Forum
Hi Joyce,

I'm looking for information on this as well. I would like to set a Platform criterion to filter monthly search volume by and I was told that this was possible because but I am having trouble defining the selector.

Any help would be much appreciated.
Thank you,
Sergio

Peter Oliquino

unread,
Feb 22, 2017, 11:04:13 PM2/22/17
to AdWords API Forum
Hi Sergio,

Since this is already an old thread, I suggest that you open a new one with your questions and from there, we can continue with our investigation.

Best regards,
Peter
AdWords API Team
Reply all
Reply to author
Forward
0 new messages