Sorry for some reason the reply I posted a few days ago doesn't seem to 
have come through. I've re-run the java examples (both awql and not) with 
the same results. Although this time I had problems getting it to pull back 
a disapproved ad, so search all adgroups not just restricting it as in the 
example, however when I did this some ads were coming back with reasons.

Anyway request IDs:

0004d5a29e3410280ae5ba4f000015d5 - this comes back with no disapproval 
reasons.
0004d5a2a60494f80ae55c4c000053e9 - this comes back with a reason.

Is there any reason the first fails? 

I'll attach the redacted soap log to the next message

Thanks

John


On Monday, 4 February 2013 21:37:46 UTC, David Torres (AdWords API Team) 
wrote:
>
> Hi John,
>
> Can we have a requestId?, this can be found in the raw SOAP XML logs. I 
> need to be able to see the full SOAP request at low level to figure out if 
> it an API or a library issue.
>
> Thanks,
>
> - David Torres - AdWords API Team
>
> On Tuesday, October 19, 2010 8:52:00 AM UTC-4, Valentin Kulichenko 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

--- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to