I know this is an old post, but the issue still exists - The disapproval 
reason is always null. Any advice?

Thanks

John

On Friday, 22 October 2010 09:31:23 UTC+1, AdWords API Advisor wrote:
>
> 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 
> <valentin.kuliche...@gmail.com> 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 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



Reply via email to