Wednesday, 27 July 2016

TargetingIdeaService Criterion in Selector

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

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
 
You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscribe@googlegroups.com
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 Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscribe@googlegroups.com.
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/46dc8314-8275-4967-bcb6-867d2332ce3c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment