Hi Valentin, Will it be possible to post a requestid for a request you are making? I could use it to troubleshoot your issues.
Cheers, Anash P. Oommen, AdWords API Advisor. On Oct 19, 5:52 pm, Valentin Kulichenko <[email protected]> wrote: > 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en
