SharedSetService Documentation Lacking

23 views
Skip to first unread message

Adwords Webmarketing

unread,
Aug 8, 2016, 2:41:52 AM8/8/16
to AdWords API Forum
Hi Adwords API Support Team,

In out current project, we need to implement Placements List Management functionality. By reading the documentation, the way to do this would be by using Shared sets as described in the following page:
https://developers.google.com/adwords/api/docs/guides/shared-sets

However, each of these examples use a service (example 1: sharedSetService, example 2: SharedCriterionService, etc.) to call the mutate() method and the documentation doesn't specify at all how to initialize this services. If we try to create a new SharedSetService object, it requires to implement the following code:

SharedSetService sharedSetService = new SharedSetService() {
           
public String getSharedSetServiceInterfacePortAddress() {
               
return null;
           
}

           
public SharedSetServiceInterface getSharedSetServiceInterfacePort() throws ServiceException {
               
return null;
           
}

           
public SharedSetServiceInterface getSharedSetServiceInterfacePort(URL url) throws ServiceException {
               
return null;
           
}

           
public Remote getPort(QName qName, Class aClass) throws ServiceException {
               
return null;
           
}

           
public Remote getPort(Class aClass) throws ServiceException {
               
return null;
           
}

           
public Call[] getCalls(QName qName) throws ServiceException {
               
return new Call[0];
           
}

           
public Call createCall(QName qName) throws ServiceException {
               
return null;
           
}

           
public Call createCall(QName qName, QName qName1) throws ServiceException {
               
return null;
           
}

           
public Call createCall(QName qName, String s) throws ServiceException {
               
return null;
           
}

           
public Call createCall() throws ServiceException {
               
return null;
           
}

           
public QName getServiceName() {
               
return null;
           
}

           
public Iterator getPorts() throws ServiceException {
               
return null;
           
}

           
public URL getWSDLDocumentLocation() {
               
return null;
           
}

           
public TypeMappingRegistry getTypeMappingRegistry() {
               
return null;
           
}

           
public HandlerRegistry getHandlerRegistry() {
               
return null;
           
}
       
};




Is this the only way how to create the required service instance? The documentation refers to an already created Service but it doesn't show how to do it.

Thanks,

Marc.

Joyce Lava

unread,
Aug 8, 2016, 2:51:23 AM8/8/16
to AdWords API Forum
Hi Marc,

You can instantiate the service by using SharedSetServiceInterface instead of SharedSetService. This Java client library example code shows how to use this service. Other client libraries examples are available here.

Best,
Joyce, AdWords API Team
Reply all
Reply to author
Forward
0 new messages