Feed Item Mapping Validation Information via API ?

53 views
Skip to first unread message

peter.r...@smarter-ecommerce.com

unread,
Nov 11, 2014, 9:24:07 AM11/11/14
to adwor...@googlegroups.com
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 "====================="
}

Danial Klimkin

unread,
Nov 12, 2014, 8:57:11 AM11/12/14
to adwor...@googlegroups.com
Hello Peter,


Could you please give us an example of a feed items that are disapproved but errors are not returned? We need account and object IDs.


-Danial, AdWords API Team.

Nikita Nefedov

unread,
Mar 11, 2015, 2:58:42 PM3/11/15
to adwor...@googlegroups.com
Hey Danial,

We are having this same kind of issue.

AccoundID is 784-478-7981, [{feedItemId: 976254991, feedId: 23163799}, {feedItemId: 976254994, feedId: 23163799}]

Danial Klimkin

unread,
Mar 12, 2015, 11:56:23 AM3/12/15
to adwor...@googlegroups.com
Hello Nikita,


This is expected for v201409, please see above.

Note, this field has been added to v201502 and now should be available.


-Danial, AdWords API Team.
Reply all
Reply to author
Forward
0 new messages