It actually returns the following, is it the same thing:

<soapenv:Body>
        <getCampaignNegativeCriteriaResponse
                xmlns="https://adwords.google.com/api/adwords/v12"; />
</soapenv:Body>

We are using AXIS 1.4.

Full response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/
envelope/"
        xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:xsi="http://
www.w3.org/2001/XMLSchema-instance">
        <soapenv:Header>
                <responseTime 
soapenv:actor="http://schemas.xmlsoap.org/soap/actor/
next"
                        soapenv:mustUnderstand="0" 
xmlns="https://adwords.google.com/api/
adwords/v12">159</responseTime>
                <operations 
soapenv:actor="http://schemas.xmlsoap.org/soap/actor/
next"
                        soapenv:mustUnderstand="0" 
xmlns="https://adwords.google.com/api/
adwords/v12">1</operations>
                <units 
soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next";
                        soapenv:mustUnderstand="0" 
xmlns="https://adwords.google.com/api/
adwords/v12">1</units>
                <requestId soapenv:actor="http://schemas.xmlsoap.org/soap/actor/
next"
                        soapenv:mustUnderstand="0" 
xmlns="https://adwords.google.com/api/
adwords/v12">13f352587b02f70489d0a61bc9ca679c
                </requestId>
        </soapenv:Header>
        <soapenv:Body>
                <getCampaignNegativeCriteriaResponse
                        xmlns="https://adwords.google.com/api/adwords/v12"; />
        </soapenv:Body>
</soapenv:Envelope>

Thanks



On Dec 10 2008, 9:43 am, AdWords API Advisor
<[email protected]> wrote:
> Hello Hovanes,
>
>  No, the AdWords API won't return back an SOAP body with an element
> explicitly set to nil as a result of one of those calls. A call to
> getCampaignNegativeCritera() for a campaign with no negative criteria
> will result in this SOAP response, for example:
>
>  <soapenv:Body>
>   <getCampaignNegativeCriteriaResponse xmlns=""/>
>  </soapenv:Body>
>
>  Now, it's up to your SOAP library to interpret that SOAP response and
> deserialize it into an object. The SOAP library you're using might
> choose to interpret that as a null value, or it might interpret it as
> an empty array. The best way for you to figure out what's going on is
> to turn on SOAP logging and take a look at what the SOAP responses
> look like when your code interprets the response as null. If it looks
> like it's setting the result of the method call to null for a
> legitimate SOAP response then that's something you'd have to account
> for in your code.
>
> Cheers,
> -Jeff Posnick, AdWords API Team
>
> On Dec 9, 7:37 pm, "[email protected]" <[email protected]> wrote:
>
> > Hi,
>
> > I have a question regarding nulls being returned in 2 of the methods.
>
> > Can these 2 methods return null?
>
> > com.google.adwords.api.adwords.v12
> > CampaignInterface.getAllAdWordsCampaigns
> > CriterionInterface.getCampaignNegativeCriteria
>
> > If yes, under which conditions do they return empty arrays/lists and
> > under which nulls?
>
> > The API documentation or examples, don't say anything about the nulls,
> > but I am seeing nulls returned in our program:
>
> >http://code.google.com/apis/adwords/docs/developer/CampaignService.ht......
>
> > Thanks,
>
> > Hovanes Gambaryan
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to