Hi, I'm trying to get disapproval reasons for a text ad using Java API v200909. I use the following code:
if (ad.getApprovalStatus() == AdApprovalStatus.DISAPPROVED) { System.out.println("Ad " + ad.getId() + " disapproved:"); for (String reason : ad.getDisapprovalReasons()) { System.out.println(reason); } } And get NullPointerException because ad.getDisapprovalReasons() is always null, even for disapproved ads. How can I get disapproval reason? Where is my mistake? -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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