Re: support for oAuth2?
On Dec 6, 1:34 pm, chris h wrote: > Interesting. If the API supports OAuth, that should be documented in > the API. But I can't even find a page on authentication in the docs. > Anyone have a link? Oauth support was added to the PHP client library in version 2.3.0 released Sep 15, 2010 (according to the CHANGELOG). It's documented in the PHP client library README: http://code.google.com/p/google-api-adwords-php/source/browse/trunk/README And you can read the source for an example: http://code.google.com/p/google-api-adwords-php/source/browse/trunk/examples/Other/UseOAuth.php All fine for PHP users. I'd like to use OAuth2 for a Ruby implementation of access to the AdWords API. I'm happy to make my code available as open source. Just would like to know if OAuth2 will work (good support in the Rails community) or is this only OAuth v1 (in which case there's less support). -- Daniel -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
support for oAuth2?
I see that the PHP client library now has support for authentication using OAuth (as an alternative to Google Client Login). Is this OAuth or OAuth2? Is there support for OAuth2? I ask because I'm developing in Ruby and we have some nice libraries (rubygems) to easily implement OAuth2 (but not OAuth v1). I'd like to use OAuth2 instead of the Google Client Login to avoid the need to cache and refresh the AdWords API access authorization token. -- Daniel -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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: Unmarshalling Error for my XML for TargetingIdeaService
Finally got it. Just had to ask :-) Seems using correct namespaces are critical. Here's what works: http://schemas.xmlsoap.org/soap/ envelope/" xmlns:ns1="https://adwords.google.com/api/adwords/o/ v201008" xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201008"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";> #{credential.auth_token} #{credential.developer_token} #{credential.user_agent} https://adwords.google.com/api/adwords/o/ v201003"> https://adwords.google.com/api/adwords/o/ v201003"> https://adwords.google.com/api/ adwords/cm/v201003" xsi:type="ns2:Keyword"> adwords api example EXACT adwords api example BROAD https://adwords.google.com/api/ adwords/cm/v201003" xsi:type="ns2:CountryTarget"> false US KEYWORD IDEAS KEYWORD https://adwords.google.com/api/adwords/cm/ v201003"> 0 10 Hope that helps someone! -- Daniel -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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: Unmarshalling Error for my XML for TargetingIdeaService
I've moved some inches forward by examining recent examples posted to the forum and I no longer get the "Unmarshalling Error" with the XML request I've assembled (below). Now I get the error: RequiredError.REQUIRED @ selector What am I missing? http://schemas.xmlsoap.org/soap/ envelope/" xmlns:o="https://adwords.google.com/api/adwords/o/v201008"; xmlns:cm="https://adwords.google.com/api/adwords/cm/v201008"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";> x x x https://adwords.google.com/api/adwords/o/ v201003"> https://adwords.google.com/api/adwords/o/v201003";> https://adwords.google.com/api/adwords/ cm/v201003" xsi:type="cm:Keyword"> adwords api example EXACT adwords api example BROAD https://adwords.google.com/api/ adwords/cm/v201003" xsi:type="cm:CountryTarget"> false US KEYWORD IDEAS KEYWORD https://adwords.google.com/api/adwords/cm/ v201003"> 0 10 I really wish I could use the ruby client library but it's not an option (due to soap4r). -- Daniel -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
Unmarshalling Error for my XML for TargetingIdeaService
I'm trying to use TargetingIdeaService. I've assembled XML myself because the adwords4r Ruby client library requires the soap4r gem which doesn't support Ruby 1.9 (and soap4r has a reputation in the Ruby community as slow!). I've found the Ruby Savon gem which performs well and is well-documented. However... I haven't found any up-to-date and clear examples of correctly- formatted SOAP requests. I've used the SoapUI app to examine the wsdl and I'm trying to assemble the correct XML. This is what I've got so far but it is failing with the error: Unmarshalling Error: Unable to create an instance of com.google.ads.api.services.targetingideas.v201008.jaxbgen.SearchParameter Could you please point out what I've done wrong? My namespace use is correct? I've got the correct order of elements? http://www.w3.org/2001/XMLSchema- instance" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; xmlns:v20="https://adwords.google.com/api/adwords/o/v201008"; xmlns:v201="https://adwords.google.com/api/adwords/cm/v201008";> x x x adwords api examples EXACT EXACT US en KEYWORD IDEAS KEYWORD AVERAGE_TARGETED_MONTHLY_SEARCHES TARGETED_MONTHLY_SEARCHES 0 10 Thanks for assistance! -- Daniel -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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