Hi Paul,

The problem is that your requests aren't including a referer, though you
have added a referer restriction to your key in the APIs Console.  If you
are calling the API from a server-side app, you should create a new "Server
key" and restrict it to your IP address (optional).  In any case, since
you've mentioned your key in the Google Group, you should probably get a
new one regardless.

Thanks,
Adam

On Tue, Jan 10, 2012 at 1:27 AM, Paul Templeman <[email protected]> wrote:

> Hi Adam****
>
> ** **
>
> Hopefully these are the details that you need:****
>
> ** **
>
>
>
> https://www.googleapis.com/language/translate/v2?key=AIzaSyDdFZjnVEXv-bpbVi0-lbsCaCS8FLo4KX8&source=en&target=zh-CN&q=hello
>
> {
>  "error": {
>  "errors": [
>   {
>    "domain": "usageLimits",
>    "reason": "accessNotConfigured",
>    "message": "Access Not Configured"
>   }
>  ],
>  "code": 403,
>  "message": "Access Not Configured"
>  }
> }
>
>
>
> ****
>
> ** **
>
> Regards, Paul****
>
> ** **
>
> ** **
>
> ** **
>
> *From:* [email protected] [mailto:
> [email protected]] *On Behalf Of *Adam Feldman
> *Sent:* 09 January 2012 13:46
>
> *To:* [email protected]
> *Subject:* Re: Translation API****
>
> ** **
>
> Hi Paul,****
>
> ** **
>
> Can you try making the request with a different browser (like Chrome or
> Firefox, or even a command line tool like curl) so we can see the exact
> response from the API?  This looks like an Internet Explorer page, so
> you're not seeing exactly what the API is returning.  Or, if you can send a
> link to a website that is using the API, that would also work.****
>
> ** **
>
> Also, can you send the exact API request you make to trigger this?****
>
> ** **
>
> Please respond to me directly rather than the Group to keep that
> information (including your key) private.  Instead of clicking reply or
> reply all, click forward, then type in my email address (
> [email protected]).****
>
> ** **
>
> Thanks,****
>
> Adam****
>
> On Mon, Jan 9, 2012 at 5:33 AM, Paul Templeman <[email protected]>
> wrote:****
>
> Hi Adam****
>
>  ****
>
> This is the error we get:****
>
>  ****
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "
> http://www.w3.org/TR/html4/loose.dtd";>****
>
>  ****
>
> <html>****
>
>  ****
>
>     <head>****
>
>         <link rel="stylesheet" type="text/css"
> href="ErrorPageTemplate.css" />****
>
>  ****
>
>         <meta http-equiv="Content-Type" content="text/html;
> charset=UTF-8"/>****
>
>  ****
>
>         <title>HTTP 403 Forbidden</title>****
>
>  ****
>
>         <script src="errorPageStrings.js" language="javascript"
> type="text/javascript">****
>
>         </script>****
>
>         <script src="httpErrorPagesScripts.js" language="javascript"
> type="text/javascript">****
>
>         </script>****
>
>     </head>****
>
>  ****
>
>     <body onLoad="javascript:expandCollapse('infoBlockID', true);
> initGoBack(); initMoreInfo('infoBlockID');">****
>
>  ****
>
>         <table width="730" cellpadding="0" cellspacing="0" border="0">****
>
>  ****
>
>         <!-- Error title -->****
>
>             <tr>****
>
>                 <td id="infoIconAlign" width="60" align="left"
> valign="top" rowspan="2">****
>
>                     <img src="info_48.png" id="infoIcon" alt="Info icon">*
> ***
>
>                 </td>****
>
>                 <td id="mainTitleAlign" valign="middle" align="left"
> width="*">****
>
>                     <h1 id="mainTitle">The website declined to show this
> webpage</h1>****
>
>                 </td>****
>
>             </tr>****
>
>  ****
>
>             <tr>****
>
>                 <!-- This row is for HTTP status code, as well as the
> divider-->****
>
>                 <td id="http403Align" class="errorCodeAndDivider"
> align="right"><ID id="http403">&nbsp;HTTP 403</ID>****
>
>                     <div class="divider"></div>****
>
>                 </td>****
>
>             </tr>****
>
>  ****
>
>  ****
>
>         <!-- Error Body -->****
>
>             <tr>****
>
>                 <td>****
>
>                     &nbsp;****
>
>                 </td>****
>
>                 <td id="likelyCausesAlign" valign="top" align="left">****
>
>                     <h3 id="likelyCauses">Most likely causes:</h3>****
>
>                     <ul>****
>
>                         <li id="causeNeedAuth">This website requires you
> to log in.</li>****
>
>                     </ul>****
>
>                 </td>****
>
>             </tr>****
>
>  ****
>
>         <!-- What you can do -->****
>
>             <tr>****
>
>                 <td>****
>
>                     &nbsp;****
>
>                 </td>****
>
>                 <td id="whatToTryAlign" valign="top" align="left">****
>
>                     <h2 id="whatToTry">What you can try:</h2>****
>
>                 </td>****
>
>             </tr>****
>
>  ****
>
>         <!-- back to previous page -->****
>
>             <tr>****
>
>                 <td >****
>
>                     &nbsp;****
>
>                 </td>****
>
>                 <td id="goBackAlign" align="left" valign="middle">****
>
>                     <h4>****
>
>                         <table>****
>
>                           <tr>****
>
>                               <td valign="top">****
>
>                                   <img src="bullet.png" border="0" alt=""
> class="actionIcon">****
>
>                               </td>****
>
>                               <td valign="top">****
>
>                                   <span
> id="goBackContainer"></span><noscript id="goBack">Go back to the previous
> page.</noscript>****
>
>                               </td>****
>
>                           </tr>****
>
>                         </table>****
>
>                     </h4>****
>
>                 </td>****
>
>             </tr>****
>
>  ****
>
>         <!-- InfoBlock -->****
>
>             <tr>****
>
>                 <td id="infoBlockAlign" align="right" valign="top">****
>
>                     &nbsp;****
>
>                 </td>****
>
>                 <td id="moreInfoAlign" align="left" valign="middle">****
>
>                     <h4>****
>
>                         <table>****
>
>                             <tr>****
>
>                                 <td valign="top">****
>
>                                     <a href="#"
> onclick="javascript:expandCollapse('infoBlockID', true); return
> false;"><img src="down.png" id="infoBlockIDImage" border="0"
> class="actionIcon" alt="More information"></a>****
>
>                                 </td>****
>
>                                 <td valign="top">****
>
>                                     <span id="moreInfoContainer"></span>**
> **
>
>                                     <noscript><ID
> id="moreInformation">More information</ID></noscript>****
>
>                                 </td>****
>
>                             </tr>****
>
>                         </table>****
>
>                     </h4>****
>
>                     <div id="infoBlockID" class="infoBlock">****
>
>                         <p id="errorExplanation">This error (HTTP 403
> Forbidden) means that Internet Explorer was able to connect to the website,
> but it does not have permission to view the webpage.</p>****
>
>                         <p id="moreInfoSeeHelp">For more information about
> HTTP errors, see Help.</p>****
>
>                     </div>****
>
>  ****
>
>                 </td>****
>
>             </tr>****
>
>  ****
>
>         </table>****
>
>  ****
>
>     </body>****
>
> </html>****
>
>  ****
>
> *From:* [email protected] [mailto:
> [email protected]] *On Behalf Of *Adam Feldman
> *Sent:* 09 January 2012 12:45
> *To:* [email protected]
> *Subject:* Re: Translation API****
>
>  ****
>
> Hi Paul,****
>
>  ****
>
> I'm not sure where you reported this before; apologies for the lack of
> response.  Can you email me directly (send to my email address, rather than
> replying to the list) with a sample request that you're making and the
> exact error you're getting back?****
>
>  ****
>
> Thanks,****
>
> Adam****
>
> On Mon, Jan 9, 2012 at 12:07 AM, Paul <[email protected]> wrote:****
>
> I have exacly the same problem. I repoted it by by emal but received
> no response. Please can somebody look at this ASAP - it is impacting
> our development. Our project is 698848003318.
>
> Thanks
>
> Paul
>
> --
> You received this message because you are subscribed to the Google
> Groups "Google AJAX APIs" group.
> To post to this group, send email to
> [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> To view this message on the web, visit
> http://groups.google.com/group/google-ajax-search-api?hl=en_US
> For more options, visit this group at
> http://groups.google.com/group/google-ajax-search-api?hl=en?hl=en****
>
>  ****
>
> --
> You received this message because you are subscribed to the Google
> Groups "Google AJAX APIs" group.
> To post to this group, send email to
> [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> To view this message on the web, visit
> http://groups.google.com/group/google-ajax-search-api?hl=en_US
> For more options, visit this group at
> http://groups.google.com/group/google-ajax-search-api?hl=en?hl=en****
>
> --
> You received this message because you are subscribed to the Google
> Groups "Google AJAX APIs" group.
> To post to this group, send email to
> [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> To view this message on the web, visit
> http://groups.google.com/group/google-ajax-search-api?hl=en_US
> For more options, visit this group at
> http://groups.google.com/group/google-ajax-search-api?hl=en?hl=en****
>
> ** **
>
> --
> You received this message because you are subscribed to the Google
> Groups "Google AJAX APIs" group.
> To post to this group, send email to
> [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> To view this message on the web, visit
> http://groups.google.com/group/google-ajax-search-api?hl=en_US
> For more options, visit this group at
> http://groups.google.com/group/google-ajax-search-api?hl=en?hl=en****
>
> --
> You received this message because you are subscribed to the Google
> Groups "Google AJAX APIs" group.
> To post to this group, send email to
> [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> To view this message on the web, visit
> http://groups.google.com/group/google-ajax-search-api?hl=en_US
> For more options, visit this group at
> http://groups.google.com/group/google-ajax-search-api?hl=en?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Google AJAX APIs" group.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to
[email protected]
To view this message on the web, visit
http://groups.google.com/group/google-ajax-search-api?hl=en_US
For more options, visit this group at
http://groups.google.com/group/google-ajax-search-api?hl=en?hl=en

Reply via email to