K .... after days of banging my head against the wall I finally got
it.

I needed to create a gmail account associated with my Google Sites
account.

I am receiving all my e-mail through Google (changed MX records) and
am using sites to manage my e-mail.

I figured the sites account should be fine for Google Base API as I
could access dashboard and merchant center through the sites account.

Guess their is some conflict w/ authenticating API for a non-gmail
account?

Anyways,. thanks for the help guys ...



On Oct 20, 5:32 pm, qaz216 <[email protected]> wrote:
> Still nothing ...
>
> I do have an old account I was able to authenticate with, but my new
> account still does not appear to be able to authenticate.
>
> com.google.gdata.util.ServiceForbiddenException: Forbidden
> <errors>
> <error type="request" reason="Could not find authenticated customer"/>
> </errors>
> at com.google.gdata.client.http.HttpGDataRequest.handleErrorResponse
> (HttpGDataRequest.java:561)
>
> Here is the code I am using ...
>
> // Authenicates fine
> this.service = new GoogleBaseService(serviceName, devKey);
> this.service.setUserCredentials(this.userName, this.password);
>
> // Problem accessing items feed, however ...
> this.itemFeed = this.service.query(new GoogleBaseQuery
> (FeedURLFactory.getDefault().getItemsFeedURL()));
>
> I can use the demo page fine to insert an item to my account.
>
> I even tried changing the account to a different user ... but still
> nothing.
>
> Any ideas?
>
> On Oct 19, 2:56 pm, Alex <[email protected]> wrote:
>
> > Depending on the type of data you provide, you should access the right
> > application. The Terms & Conditions screen will appear the first time you
> > connect.* for products :http://www.google.com/merchants/basicsettings
> > * for non-products (vehicles, jobs, you name 
> > it):http://www.google.com/base/basicsettings
>
> > After a while, you should check if you can access your data through the
> > API.
> > Go to the demo page, authenticate and then try accessing the /items feed.
>
> > Alex
>
> > On Mon, Oct 19, 2009 at 5:38 PM, qaz216 <[email protected]> wrote:
>
> > > Any word on this, I am getting the same error?
>
> > > On Oct 6, 10:07 am, "Pete Lavetsky (AdWords API Guru)"
> > > <[email protected]> wrote:
> > > > I am getting this error as well ...
>
> > > > 2009-10-06 09:48:24,613 ERROR Exporter  -
> > > > 777bd26b7f00000100c7f38c3d19080c : global error: Service forbidden:
> > > > Terms of Service acceptance required.
>
> > > > I logged into Google with my application username / password and
> > > > accepted the TOS but still receive the error.
>
> > > > Anyone from Google able to help?
>
> > > > Pete
>
> > > > On Oct 5, 7:01 pm, css0904 <[email protected]> wrote:
>
> > > > > I have a Java program that updates my product feed on a daily basis.
> > > > > It worked fine for several months but recently, a
> > > > >ServiceForbiddenExceptionbegan occurring.
>
> > > > > The code is as follows:
>
> > > > > GoogleBaseService service = new GoogleBaseService( "google-product-
> > > > > update", "" );
> > > > > service.setUserCredentials( feedUsername, feedPassword );
> > > > > String baseUrl = 
> > > > > FeedURLFactory.getDefault().getItemsFeedURL().toString
> > > > > ();
> > > > > java.net.URL finalUrl = new java.net.URL( baseUrl + "?start-
> > > > > index=1&max-results=250" );
> > > > > GoogleBaseFeed feed = service.query( new GoogleBaseQuery
> > > > > ( finalUrl ) );
>
> > > > > The feed's username and password are the same credentials I use to
> > > > > login to the merchant center and there are active products within the
> > > > > merchant center.
>
> > > > > The response from Google and the exception trace are as follows:
>
> > > > > <errors>
> > > > > com.google.gdata.util.ServiceForbiddenException: Forbidden
> > > > > <error type="request" reason="Service forbidden: Terms of Service
> > > > > acceptance required."/>
> > > > > <errors>
> > > > > </errors>
>
> > > > > <error type="request" reason="Service forbidden: Terms of Service
> > > > > acceptance required."/>
> > > > > </errors>
>
> > > > >         at
> > > > > com.google.gdata.client.http.HttpGDataRequest.handleErrorResponse
> > > > > (HttpGDataRequest.java:505)
> > > > >         at
> > > > > com.google.gdata.client.http.GoogleGDataRequest.handleErrorResponse
> > > > > (GoogleGDataRequest.java:555)
> > > > >         at com.google.gdata.client.http.HttpGDataRequest.checkResponse
> > > > > (HttpGDataRequest.java:480)
> > > > >         at com.google.gdata.client.http.HttpGDataRequest.execute
> > > > > (HttpGDataRequest.java:459)
> > > > >         at com.google.gdata.client.http.GoogleGDataRequest.execute
> > > > > (GoogleGDataRequest.java:527)
> > > > >         at com.google.gdata.client.Service.getFeed(Service.java:962)
> > > > >         at com.google.gdata.client.Service.getFeed(Service.java:898)
> > > > >         at com.google.gdata.client.GoogleService.getFeed
> > > > > (GoogleService.java:623)
> > > > >         at com.google.gdata.client.Service.query(Service.java:1202)
> > > > >         at com.google.gdata.client.Service.query(Service.java:1145)
> > > > >         at com.google.api.gbase.client.GoogleBaseService.query
> > > > > (GoogleBaseService.java:395)
> > > > >         at GoogleProductsUpdate.initializeFeed
> > > > > (GoogleProductsUpdate.java:137)
> > > > >         at GoogleProductsUpdate.setup(GoogleProductsUpdate.java:96)
> > > > >         at GoogleProductsUpdate.execute(GoogleProductsUpdate.java:332)
> > > > >         at GoogleProductsUpdate.main(GoogleProductsUpdate.java:365)
>
> > > > > According to the Java Recipe example,
> > >http://code.google.com/apis/base/samples/java/java-sample-recipes.html,
> > > > > this exception occurs due to:
> > > > > "The authenticated user is forbidden to use the service because of not
> > > > > agreeing with the Google Base's Terms of Services or not setting up
> > > > > the account for Google Base. When the application receives such an
> > > > > error, it should direct the user to the Google Base site to fix the
> > > > > problem."
>
> > > > > However, I do not see any terms of service that require acceptance
> > > > > within the merchant center or Google base.  I have the same Google
> > > > > account for both base and the merchant center.
>
> > > > > Any help would be greatly appreciated.  Please let me know if you
> > > > > require more information.  Thanks.
>
> > --
> > Alex Dovlecel, Google Switzerland GmbH
> > Company Identifikationsnummer: CH-020.4.028.116-1
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Base Data API" 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/google-base-data-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to