I am wondering how I can get validation information for feed items via the 
API. 

I am currently using the FeedItemService. Here is what I experience at the 
moment when using the selector "ValidationDetails":

If an item awaits approval, then the validationDetails property is not set 
at all.
If an item is either approved or disapproved, then the validationDetails 
property is set, but no validationErrors are delivered.

In the Adwords UI I can see, disapproval reasons, e.g. "Guns & parts". I 
hoped, that I can access this information via the validationErrors 
property. 

Is there any other way to get the information or am I doing something wrong 
?

Thanks! 
Peter

// --- here is  Groovy code snippet that should conceptually show what I am 
doing ---

adwordsDataService.getFeedItems(account, feedId).eachWithIndex { item, i ->

    println "$item.feedItemId ($i)"
    if(item.validationDetails) {
        item.validationDetails.each {
            println "  $it.approvalStatus / $it.validationStatus"
            if(it.validationErrors) {
                it.validationErrors.each {
                    println "    $it.feedAttributeIds / 
$it.validationErrorCode / $it.errorInformation"
                }
            } else {
                println "    no validation errors"
            }

        }
    } else {
        println "  no validation details"
    }
    println "====================="
}

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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+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.
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/ca34025b-e66c-4a2d-88a3-7b7b2b104653%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to