Hi,

I am getting an error (502) Bad Gateway when trying to use
KeywordToolInterface getKeywordsFromSite function.

The message says "The server encountered a temporary error and could
not complete your request.<p>Please try again in 30 seconds."

Code I'm using:

AdWordsServiceLogger.log();
AdWordsUser user = new AdWordsUser();
KeywordToolInterface keywordToolService =
user.getService(AdWordsService.V13.KEYWORD_TOOL_SERVICE);

String websiteUrl = "http://www.jobmatch.pl/";;

SiteKeywordGroups siteKeywordGroups =
                keywordToolService.getKeywordsFromSite(websiteUrl,
true, null, null);
SiteKeyword[] siteKeywords = siteKeywordGroups.getKeywords();

System.out.println("Site keywords:");
for (SiteKeyword siteKeyword : siteKeywords)
    System.out.println(siteKeyword);

Does anyone of you experience same issues?
What I'm doing wrong? This is example code is from Google API code.

Full error stack:

Exception in thread "main" AxisFault
 faultCode: {http://xml.apache.org/axis/}HTTP
 faultSubcode:
 faultString: (502)Bad Gateway
 faultActor:
 faultNode:
 faultDetail:
        {}:return code:  502

...

        {http://xml.apache.org/axis/}HttpErrorCode:502

(502)Bad Gateway
        at
org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:
744)
        at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:
144)
        at
com.google.api.adwords.lib.AdWordsHttpSender.invoke(AdWordsHttpSender.java:
47)
        at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:
32)


Thanks in advance
Konrad

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Have you migrated to v200909 yet?
The v13 sunset is on April 22, 2010.

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

To unsubscribe, reply using "remove me" as the subject.

Reply via email to