Hi all, When I'm trying to add a new AdGroupCriterion, I get this error AdGroupCriterionError.CONCRETE_TYPE_REQUIRED. You can find attached to request and response log. And bellow the code source.
Thanks, Zied using (AdGroupCriterionService adGroupCriterionService = > (AdGroupCriterionService)user.GetService(AdWordsService.v201809.AdGroupCriterionService)) > { > Gender Male = new Gender() > { > id = 11, > genderType = GenderGenderType.GENDER_FEMALE, > type = CriterionType.GENDER > }; > AgeRange ageRange = new AgeRange() { > id = 503004, > ageRangeType = AgeRangeAgeRangeType.AGE_RANGE_45_54, > type = CriterionType.AGE_RANGE > }; > List<Criterion> criteria = new List<Criterion>() > { > Male, > ageRange > }; > List<AdGroupCriterionOperation> operations = new > List<AdGroupCriterionOperation>(); > foreach (Criterion criterion in criteria) > { > AdGroupCriterionOperation operation = new > AdGroupCriterionOperation() > { > operand = new AdGroupCriterion() > { > adGroupId = 57651502050, > criterion = criterion > }, > @operator = Operator.ADD > }; > operations.Add(operation); > } > try > { > AdGroupCriterionReturnValue retVal = > adGroupCriterionService.mutate(operations.ToArray()); > } > catch (Exception e) > { > throw; > } > } -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@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 and Google Ads API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@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/965fa2b1-3eab-4328-9864-334fb51fa71c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
request.xml
Description: XML document
response.xml
Description: XML document