Hi Greez,

I need to see your full SOAP request, if you can provide me with a 
sanitized SOAP request pulled out of your logs or just the requestId. I'd 
be glad to take a look.

Best,

- David Torres - AdWords API Team

On Monday, June 17, 2013 7:19:14 AM UTC-4, Shaihulud wrote:
>
> Hi im trying to add product add information via the api: 
>
> [code]
>         // iterate over new productAdMap
>         for(Entry<String, Map<String, String>> plaAdgroup : 
> productAdMap.entrySet()) {
>
>             // is this product cluster new? (not on whitelist)
>             if(!whitelist.contains(plaAdgroup.getKey())) {
>
>                 List<ProductCondition> productConditions = new 
> ArrayList<ProductCondition>();
>                 for(Entry<String, String> condition : 
> plaAdgroup.getValue().entrySet()) {
>
>                     // create product condition
>                     
>                     ProductCondition productCondition = new 
> ProductCondition();
>                     productCondition.setOperand(new 
> ProductConditionOperand());
>                     
> productCondition.getOperand().setOperand(condition.getKey());
>                     productCondition.setArgument(condition.getValue());
>
>                     productConditions.add(productCondition);
>                     
>                     
> System.out.println(productCondition.getOperand().getOperand());
>                     System.out.println(productCondition.getArgument());
>
>                 }
>
>                 // create product
>                 Product product = new Product();
>                 product.setCriterionType(CriterionType.PRODUCT.toString());
>                 product.setConditions(productConditions.toArray(new 
> ProductCondition[productConditions.size()]));
>
>                 // create addgroup criterion
>                 BiddableAdGroupCriterion adGroupCriterion = new 
> BiddableAdGroupCriterion();
>                 
> adGroupCriterion.setAdGroupId(adGroupNames.get(plaAdgroup.getKey()).getId());
>                 
> adGroupCriterion.setAdGroupCriterionType(CriterionType.PRODUCT.toString());
>                 adGroupCriterion.setCriterion(product);
>
>                 // create addgroup criterion operation
>                 AdGroupCriterionOperation operation = new 
> AdGroupCriterionOperation();
>                 operation.setOperand(adGroupCriterion);
>                 operation.setOperator(Operator.ADD);
>
>                 // add adgroup criterion operation
>                 adGroupCriteriaOperations.add(operation);
>                 
>                 break;
>             }
>         }
>
>         // add adgroup criteria
>         if(adGroupCriteriaOperations.size() > 0) {
>             
> adGroupCriterionService.mutate(adGroupCriteriaOperations.toArray(new 
> AdGroupCriterionOperation[adGroupCriteriaOperations.size()]));
>         }
> [/code]
>
> My output on the console is : 
>
> product_type
> Lattenrost > 5 Zonen Lattenrost
>
> and the error is : 
> AxisFault
>  faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server
>  faultSubcode: 
>  faultString: [CriterionError.INVALID_PRODUCT_FILTER @ 
> operations[0].operand.criterion.conditions[0].operand]
>  faultActor: 
>  faultNode: 
>  faultDetail: 
>     
> {https://adwords.google.com/api/adwords/cm/v201302}ApiExceptionFault:<message>[CriterionError.INVALID_PRODUCT_FILTER
>  
> @ 
> operations[0].operand.criterion.conditions[0].operand]</message><ApplicationException.Type>ApiException</ApplicationException.Type><errors
>  
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
> xsi:type="CriterionError"><fieldPath>operations[0].operand.criterion.conditions[0].operand</fieldPath><trigger/><errorString>CriterionError.INVALID_PRODUCT_FILTER</errorString><ApiError.Type>CriterionError</ApiError.Type><reason>INVALID_PRODUCT_FILTER</reason></errors>
>
> [CriterionError.INVALID_PRODUCT_FILTER @ 
> operations[0].operand.criterion.conditions[0].operand]
>
> I dont understand this error. In my opinion everything is fine. I have 
> read that only chars like & or == are not allowed and ive also tried to add 
> operands with only a 5-digit string, still the same result.
>
> Is this a bug of some sort, or do i just misunderstood sth?
>
> greez
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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+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 Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to