Hello people, I'm just struggling to retrieve Keywords which belongs to an AdGroup inside a campaign.
Here we can see the hierarchy of the objects. https://support.google.com/adwords/answer/2475865 What I am doing to retrieve is something like this: Selector selectorKeyword = new Selector(); selectorKeyword.fields = new string[] { "Id", "AdGroupId", "KeywordText" }; // Select only keywords. predicate = new Predicate(); predicate.field = "CriteriaType"; predicate.@operator = PredicateOperator.EQUALS; predicate.values = new string[] { "KEYWORD" }; Predicate predicateAdGroup = new Predicate(); predicate.field = "AdGroupId"; predicate.@operator = PredicateOperator.IN; predicate.values = new string[] { adGroup.id.ToString() }; selectorKeyword.predicates = new Predicate[] { predicate, predicateAdGroup }; // Set the selector paging. selectorKeyword.paging = new Paging(); AdGroupCriterionPage page = new AdGroupCriterionPage(); selectorKeyword.paging.startIndex = 0; selectorKeyword.paging.numberResults = 500; // Get the keywords. page = adGroupCriterionService.get(selectorKeyword); But this throws an exception at the last line of the code which is: {"[SelectorError.INVALID_PREDICATE_FIELD_NAME @ serviceSelector, RequiredError.REQUIRED @ serviceSelector.predicates[1].operator, RequiredError.REQUIRED @ serviceSelector.predicates[1].field]"} But we can see in the Google Api documentation that AdGroupId is a filterable selective field of the Selector. Any ideas, please? -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 [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 Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. Visit this group at http://groups.google.com/group/adwords-api. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/cad1daca-ca15-43ee-8e9c-83f2aa386823%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
