Hi all,
I need to generate the java classes of
the https://adwords.google.com/api/adwords/cm/v201302/MutateJobService?wsdl
using the maven wsimport goal:
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jaxws-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>wsimport</goal>
</goals>
</execution>
</executions>
<configuration>
<sourceDestDir>${project.basedir}/generated-sources/</sourceDestDir>
<wsdlUrls>
<!-- Insert your URL's here -->
<wsdlUrl>https://adwords.google.com/api/adwords/cm/v201302/MutateJobService?wsdl</wsdlUrl>
</wsdlUrls>
<xadditionalHeaders>true</xadditionalHeaders>
<!-- The name of your generated source package -->
<packageName>com.google.api.adwords.mj</packageName>
<sei>MutateJobService</sei>
<verbose>true</verbose>
</configuration>
</plugin>
</plugins>
</build>
The process end successful but the class BiddingStrategyConfiguration is
generated without some methods, for example the setBids() that I need.
This is the BiddingStrategyConfiguration.java generated classes:
package https.adwords_google_com.api.adwords.cm.v201302;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
/**
*
* Encapsulates the information about bids and bidding
strategies.
*
* Bidding Strategy can be set only on campaigns. A bidding
strategy can be set
* on the campaign using the bidding schema
* {@linkplain BiddingStrategyConfiguration#biddingScheme}
* or by using the bidding strategy type
* {@linkplain
BiddingStrategyConfiguration#biddingStrategyType}.
* If the bidding strategy type is used, then schemes are
created using default values.
*
* Bids can be set only on ad groups and ad group criteria.
They cannot be set on campaigns.
* Multiple bids can be set at the same time. Only the bids
that apply to the campaign's
* {@linkplain Campaign#biddingStrategyConfiguration bidding
strategy} will be used.
*
*
* <p>Java class for BiddingStrategyConfiguration complex type.
*
* <p>The following schema fragment specifies the expected content
contained within this class.
*
* <pre>
* <complexType name="BiddingStrategyConfiguration">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="biddingStrategyType"
type="{https://adwords.google.com/api/adwords/cm/v201302}BiddingStrategyType"
minOccurs="0"/>
* <element name="biddingScheme"
type="{https://adwords.google.com/api/adwords/cm/v201302}BiddingScheme"
minOccurs="0"/>
* <element name="bids"
type="{https://adwords.google.com/api/adwords/cm/v201302}Bids"
maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "BiddingStrategyConfiguration", propOrder = {
"biddingStrategyType",
"biddingScheme",
"bids"
})
public class BiddingStrategyConfiguration {
protected BiddingStrategyType biddingStrategyType;
protected BiddingScheme biddingScheme;
protected List<Bids> bids;
/**
* Gets the value of the biddingStrategyType property.
*
* @return
* possible object is
* {@link BiddingStrategyType }
*
*/
public BiddingStrategyType getBiddingStrategyType() {
return biddingStrategyType;
}
/**
* Sets the value of the biddingStrategyType property.
*
* @param value
* allowed object is
* {@link BiddingStrategyType }
*
*/
public void setBiddingStrategyType(BiddingStrategyType value) {
this.biddingStrategyType = value;
}
/**
* Gets the value of the biddingScheme property.
*
* @return
* possible object is
* {@link BiddingScheme }
*
*/
public BiddingScheme getBiddingScheme() {
return biddingScheme;
}
/**
* Sets the value of the biddingScheme property.
*
* @param value
* allowed object is
* {@link BiddingScheme }
*
*/
public void setBiddingScheme(BiddingScheme value) {
this.biddingScheme = value;
}
/**
* Gets the value of the bids property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the bids
property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getBids().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Bids }
*
*
*/
public List<Bids> getBids() {
if (bids == null) {
bids = new ArrayList<Bids>();
}
return this.bids;
}
}
Can someone help me please?
If I generate the class without maven it generated the class like
this:
http://code.google.com/p/google-api-adwords-java/source/browse/trunk/src/com/google/api/adwords/v201302/cm/BiddingStrategyConfiguration.java?spec=svn276&r=276
Thanks, Cheers
Marco
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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
---
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.