I am trying to use a keyword called 'seed' in seeding keyword
suggestions with local / global volume info.
How do I achieve this using the v2009 API?

I've been trying to use the TargetingIdeaService but seem to be
running into a fault with no description.

Here is the Java code I've used...

        TargetingIdeaServiceInterface tisi = new
TargetingIdeaServiceLocator().getTargetingIdeaServiceInterfacePort();
        updateHeaders((Stub) tisi);

        Keyword[] kwa = new Keyword[1];
        kwa[0] = new Keyword();
        kwa[0].setText("seed");
        kwa[0].setMatchType(KeywordMatchType.BROAD);

        RelatedToKeywordSearchParameter rtksp = new
RelatedToKeywordSearchParameter();
        rtksp.setKeywords(kwa);

        SearchParameter[] spa = { new
GlobalMonthlySearchesSearchParameter(), rtksp };

        Paging pg = new Paging();
        pg.setNumberResults(100);

        TargetingIdeaSelector tis = new TargetingIdeaSelector();
        tis.setSearchParameters(spa);
        tis.setLocaleCode("en_US");
        tis.setCurrencyCode("USD");
        tis.setIdeaType(IdeaType.KEYWORD);
        tis.setRequestType(RequestType.IDEAS);
        tis.setPaging(pg);

        TargetingIdeaPage tip = tisi.getBulkKeywordIdeas(tis);
        Type_AttributeMapEntry[][] tame2a = tip.getEntries();
        for (Type_AttributeMapEntry[] tamea : tame2a)
        {
            for (Type_AttributeMapEntry tame : tamea)
            {
                System.out.println(tame);
            }
        }

I get a strange fault as below with no details...

Exception in thread "main" AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server
 faultSubcode:
 faultString: Fault occurred while processing.
 faultActor:
 faultNode:
 faultDetail:
        {http://xml.apache.org/axis/}stackTrace:Fault occurred while
processing.
        at org.apache.axis.message.SOAPFaultBuilder.createFault
(SOAPFaultBuilder.java:222)
        at org.apache.axis.message.SOAPFaultBuilder.endElement
(SOAPFaultBuilder.java:129)
        at org.apache.axis.encoding.DeserializationContext.endElement
(DeserializationContext.java:1087)
        at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
Source)
        at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement
(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl
$FragmentContentDispatcher.dispatch(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument
(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)

Are there any code examples for this or can someone at Google review
this and point out the errors / corrections to be made?

Thanks in advance.

--

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