Re: API returning UNEXPECTED_INTERNAL_API_ERROR all the time today
I think there's still something wrong with the Sandbox. Could you take a look? Everything worked yesterday, but today the Sandbox is unstable: content-type: text/xml; charset=UTF-8, date: Fri, 23 Nov 2012 09:15:42 GMT, expires: Fri, 23 Nov 2012 09:15:42 GMT, cache-control: private, max-age=0, x-content-type-options: nosniff, x-frame-options: SAMEORIGIN, x-xss-protection: 1; mode=block, server: GSE, transfer-encoding: chunked HTTPI executes HTTP POST using the net_http adapter SOAP request: https://adwords-sandbox.google.com/api/adwords/cm/v201209/CampaignService SOAPAction: get, User-Agent: Ruby MSA (AwApi-Ruby/0.7.1, Common-Ruby/0.8.0, Savon/1.0.0, ruby/1.9.3, HTTPI/1.0.0, net_http), Content-Type: text/xml;charset=UTF-8, Content-Length: ?xml version=1.0 encoding=UTF-8? env:Envelope xmlns:xsd=http://www.w3.org/2001/XMLSchema; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:wsdl=https://adwords.google.com/api/adwords/cm/v201209; xmlns:env=http://schemas.xmlsoap.org/soap/envelope/; env:Header wsdl:RequestHeader xmlns=https://adwords.google.com/api/adwords/cm/v201209; userAgentRuby MSA (AwApi-Ruby/0.7.1, Common-Ruby/0.8.0, Savon/1.0.0, ruby/1.9.3, HTTPI/1.0.0, net_http)/userAgent developerTokenX/developerToken clientCustomerIdX/clientCustomerId authTokenX/authToken /wsdl:RequestHeader /env:Header env:Body get xmlns=https://adwords.google.com/api/adwords/cm/v201209; serviceSelector fieldsName/fields fieldsId/fields fieldsStatus/fields predicates fieldStatus/field operatorIN/operator valuesACTIVE/values valuesPAUSED/values /predicates /serviceSelector /get /env:Body /env:Envelope HTTPI executes HTTP POST using the net_http adapter SOAP response (status 500): ?xml version=1.0? soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/; soap:Header ResponseHeader xmlns=https://adwords.google.com/api/adwords/cm/v201209; requestId0004cf26073627380ada17c41c95/requestId serviceNameCampaignService/serviceName methodNameget/methodName operations0/operations responseTime1520/responseTime units0/units /ResponseHeader /soap:Header soap:Body soap:Fault faultcodesoap:Server/faultcode faultstring[InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @ com.google.ads.api.services.common.error.InternalApiError.lt;initgt;(InternalApiErro]/faultstring detail ApiExceptionFault xmlns=https://adwords.google.com/api/adwords/cm/v201209; message[InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @ com.google.ads.api.services.common.error.InternalApiError.lt;initgt;(InternalApiErro]/message ApplicationException.TypeApiException/ApplicationException.Type errors xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:type=InternalApiError fieldPath/ trigger/ errorStringInternalApiError.UNEXPECTED_INTERNAL_API_ERROR/errorString ApiError.TypeInternalApiError/ApiError.Type reasonUNEXPECTED_INTERNAL_API_ERROR/reason /errors /ApiExceptionFault /detail /soap:Fault /soap:Body /soap:Envelope content-type: text/xml; charset=UTF-8, date: Fri, 23 Nov 2012 09:15:45 GMT, expires: Fri, 23 Nov 2012 09:15:45 GMT, cache-control: private, max-age=0, x-content-type-options: nosniff, x-frame-options: SAMEORIGIN, x-xss-protection: 1; mode=block, server: GSE, transfer-encoding: chunked Thanks a lot! On Tuesday, July 31, 2012 3:11:59 PM UTC+2, Tal Ater wrote: All the queries I am running against the Sandbox return InternalApiError.UNEXPECTED_INTERNAL_API_ERROR... These are queries that all worked great until a couple of hours ago... Is there some kind of error or downtime? -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
Re: API returning UNEXPECTED_INTERNAL_API_ERROR all the time today
Thanks Danial! I have to subscribe your blog to be always up to date:) On Friday, November 23, 2012 10:50:54 AM UTC+1, Danial Klimkin wrote: Hello Marcin, The Sandbox is now deprecated and we do not plan to release any updates or fixes for it. Please use Test Accounts instead, see: http://googleadsdeveloper.blogspot.ru/2012/11/introducing-test-accounts.html -Danial, AdWords API Team. On Friday, November 23, 2012 1:20:58 PM UTC+4, Marcin Urbanski wrote: I think there's still something wrong with the Sandbox. Could you take a look? Everything worked yesterday, but today the Sandbox is unstable: content-type: text/xml; charset=UTF-8, date: Fri, 23 Nov 2012 09:15:42 GMT, expires: Fri, 23 Nov 2012 09:15:42 GMT, cache-control: private, max-age=0, x-content-type-options: nosniff, x-frame-options: SAMEORIGIN, x-xss-protection: 1; mode=block, server: GSE, transfer-encoding: chunked HTTPI executes HTTP POST using the net_http adapter SOAP request: https://adwords-sandbox.google.com/api/adwords/cm/v201209/CampaignService SOAPAction: get, User-Agent: Ruby MSA (AwApi-Ruby/0.7.1, Common-Ruby/0.8.0, Savon/1.0.0, ruby/1.9.3, HTTPI/1.0.0, net_http), Content-Type: text/xml;charset=UTF-8, Content-Length: ?xml version=1.0 encoding=UTF-8? env:Envelope xmlns:xsd=http://www.w3.org/2001/XMLSchema; xmlns:xsi= http://www.w3.org/2001/XMLSchema-instance; xmlns:wsdl= https://adwords.google.com/api/adwords/cm/v201209; xmlns:env= http://schemas.xmlsoap.org/soap/envelope/; env:Header wsdl:RequestHeader xmlns= https://adwords.google.com/api/adwords/cm/v201209; userAgentRuby MSA (AwApi-Ruby/0.7.1, Common-Ruby/0.8.0, Savon/1.0.0, ruby/1.9.3, HTTPI/1.0.0, net_http)/userAgent developerTokenX/developerToken clientCustomerIdX/clientCustomerId authTokenX/authToken /wsdl:RequestHeader /env:Header env:Body get xmlns=https://adwords.google.com/api/adwords/cm/v201209; serviceSelector fieldsName/fields fieldsId/fields fieldsStatus/fields predicates fieldStatus/field operatorIN/operator valuesACTIVE/values valuesPAUSED/values /predicates /serviceSelector /get /env:Body /env:Envelope HTTPI executes HTTP POST using the net_http adapter SOAP response (status 500): ?xml version=1.0? soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/; soap:Header ResponseHeader xmlns= https://adwords.google.com/api/adwords/cm/v201209; requestId0004cf26073627380ada17c41c95/requestId serviceNameCampaignService/serviceName methodNameget/methodName operations0/operations responseTime1520/responseTime units0/units /ResponseHeader /soap:Header soap:Body soap:Fault faultcodesoap:Server/faultcode faultstring[InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @ com.google.ads.api.services.common.error.InternalApiError.lt;initgt;(InternalApiErro]/faultstring detail ApiExceptionFault xmlns= https://adwords.google.com/api/adwords/cm/v201209; message[InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @ com.google.ads.api.services.common.error.InternalApiError.lt;initgt;(InternalApiErro]/message ApplicationException.TypeApiException/ApplicationException.Type errors xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:type=InternalApiError fieldPath/ trigger/ errorStringInternalApiError.UNEXPECTED_INTERNAL_API_ERROR/errorString ApiError.TypeInternalApiError/ApiError.Type reasonUNEXPECTED_INTERNAL_API_ERROR/reason /errors /ApiExceptionFault /detail /soap:Fault /soap:Body /soap:Envelope content-type: text/xml; charset=UTF-8, date: Fri, 23 Nov 2012 09:15:45 GMT, expires: Fri, 23 Nov 2012 09:15:45 GMT, cache-control: private, max-age=0, x-content-type-options: nosniff, x-frame-options: SAMEORIGIN, x-xss-protection: 1; mode=block, server: GSE, transfer-encoding: chunked Thanks a lot! On Tuesday, July 31, 2012 3:11:59 PM UTC+2, Tal Ater wrote: All the queries I am running against the Sandbox return InternalApiError.UNEXPECTED_INTERNAL_API_ERROR... These are queries that all worked great until a couple of hours ago... Is there some kind of error or downtime? -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
Re: OAuth 2.0 for Server to Server Applications problem
Done:) http://code.google.com/p/google-api-ads-ruby/issues/detail?id=84 Thanks David! On Tuesday, October 9, 2012 11:47:24 PM UTC+2, David Torres wrote: Hi Martin, There is no direct support in the Ruby library to generate JWT access tokens (the tokens used by service accounts), please log a feature request in their project issue trackerhttp://code.google.com/p/google-api-ads-ruby/issues/list . For Java, you have to do something along these lines: GoogleCredential credential = new GoogleCredential.Builder().setTransport(new NetHttpTransport()) .setJsonFactory(new GsonFactory()) .setServiceAccountId(SERVICE_ACCOUNT_EMAIL) .setServiceAccountScopes(SCOPE) .setServiceAccountPrivateKeyFromP12File(new File(PATH_TO_YOUR_P12_FILE)) .setServiceAccountUser(SERVICE_ACCOUNT_TARGET_EMAIL) .build(); Best, -David Torres - AdWords API Team On Thursday, October 4, 2012 9:37:55 AM UTC-4, Marcin Urbanski wrote: Hi all. Is there a way to use OAuth 2.0 for Server to Server Applications using Ruby library? I couldn't find anything in the source code. https://developers.google.com/accounts/docs/OAuth2ServiceAccount Can you eventually show me an example of how to use this kind of authentication (without user) in Java maybe? I did a lot of research today but the only examples I could find are broken C# snippets and Java examples that require user activity:( I have to connect to AdWords API through OAuth 2 to avoid AdsCommon::Errors::CaptchaRequiredError exceptions. I need something like this http://stackoverflow.com/questions/11939026/google-oauth2-service-account-access-token-request-gives-invalid-request-respo/11942278#11942278 Thanks! Martin -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
Re: oauth2 service account with google adwords api for ruby
Thanks for your reply! The problem is that all code samples are relying on user activity. What I want to acheive is downloading reports for all managed clients using OAuth Service to Service authentication. This process should be asynchronous and I believe I need something like this to athenticate: GoogleCredential credential = new GoogleCredential.Builder().setTransport(HTTP_TRANSPORT) .setJsonFactory(JSON_FACTORY) .setServiceAccountId(SERVICE_ACCOUNT_EMAIL) .setServiceAccountScopes(STORAGE_SCOPE) .setServiceAccountPrivateKeyFromP12File(new File(key.p12)) .build(); When will this be possible in pure Ruby? (without need to use Java libraries). Here's my unanswered post with more details: https://groups.google.com/forum/?fromgroups=#!searchin/adwords-api/OAuth$202.0$20for$20Server$20to$20Server$20Applications$20problem/adwords-api/JxuwI7yDg94/3QudZw1pKJkJ Could you help me somehow? Martin On Tuesday, October 9, 2012 11:45:41 AM UTC+2, Danial Klimkin wrote: Hello Marcin, Please see my reply to the initial post which should cover the issue. I've also created an article with more details specific to Ruby: http://googleadsdeveloper.blogspot.com/2012/10/using-oauth20-authorization-method-with.html Let me know if you have any questions. -Danial, AdWords API Team. On Monday, October 8, 2012 5:58:10 PM UTC+4, Marcin Urbanski wrote: Any update on this? I have exactly the same problem. If Ruby gems won't support it soon, I can use Java. Are there any examples on how to use Service to Service authentication? On Tuesday, August 14, 2012 5:07:08 PM UTC+2, Antony Vorobiev wrote: Hello all, I was using ClientLogin authorization method in my server application for several months, but now it throws CaptchaRequired error because of too much authorization attempts for about 100 client_customer_id in a batch, so I'm looking for the way to get 100+ client accounts processed (sync campaigns, fetch campaign statuses, report statistics) in reasonable time (several minutes) without any user interaction according to - https://developers.google.com/accounts/docs/OAuth2 - this document, the most suitable method for me is OAuth 2.0 Service Account authorization I've got all the credentials - Client ID, Email address, Application name and private key file, but I still have no idea how can I get this stuff working. Could you please provide me with an example of how can I access to Adwords API via OAuth 2.0 Service Account and fetch, for example, account hierarchy using Ruby Adwords API library? -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
Re: oauth2 service account with google adwords api for ruby
Any update on this? I have exactly the same problem. If Ruby gems won't support it soon, I can use Java. Are there any examples on how to use Service to Service authentication? On Tuesday, August 14, 2012 5:07:08 PM UTC+2, Antony Vorobiev wrote: Hello all, I was using ClientLogin authorization method in my server application for several months, but now it throws CaptchaRequired error because of too much authorization attempts for about 100 client_customer_id in a batch, so I'm looking for the way to get 100+ client accounts processed (sync campaigns, fetch campaign statuses, report statistics) in reasonable time (several minutes) without any user interaction according to - https://developers.google.com/accounts/docs/OAuth2 - this document, the most suitable method for me is OAuth 2.0 Service Account authorization I've got all the credentials - Client ID, Email address, Application name and private key file, but I still have no idea how can I get this stuff working. Could you please provide me with an example of how can I access to Adwords API via OAuth 2.0 Service Account and fetch, for example, account hierarchy using Ruby Adwords API library? -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
OAuth 2.0 for Server to Server Applications problem
Hi all. Is there a way to use OAuth 2.0 for Server to Server Applications using Ruby library? I couldn't find anything in the source code. https://developers.google.com/accounts/docs/OAuth2ServiceAccount Can you eventually show me an example of how to use this kind of authentication (without user) in Java maybe? I did a lot of research today but the only examples I could find are broken C# snippets and Java examples that require user activity:( I have to connect to AdWords API through OAuth 2 to avoid AdsCommon::Errors::CaptchaRequiredError exceptions. I need something like this http://stackoverflow.com/questions/11939026/google-oauth2-service-account-access-token-request-gives-invalid-request-respo/11942278#11942278 Thanks! Martin -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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