Shashi99rocky / google-api-adwords-ruby

Automatically exported from code.google.com/p/google-api-adwords-ruby
Other
1 stars 0 forks source link

BulkMutateJobService Operation conflict #20

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
originally posted on the AdWords API mailing-list: http://
groups.google.com/group/adwords-api/browse_thread/thread/5424ff23ef650de6

What steps will reproduce the problem?
Using an Operation which does not inherit from 
AdWords::V200909::BulkMutateJobService::Operation in a bulk mutate job

What is the expected output? What do you see instead?
Expecting a working SOAP request, instead part of the request looks like 
this:
<n2:operations>#&lt;AdWords::V200909::AdGroupService::AdGroupOperation: 
0x66570d8&gt;</n2:operations>

producing: SOAP Error: Unmarshalling Error: cvc-type.2: The type 
definition cannot be abstract for element n2:operations. (code: 0)

What version of the product are you using? On what operating system?
Ruby 1.8.7 with adwords4r-19.0.0.gem on Windows 7

Please provide any additional information below.
Making the operation of a class which inherits from 
AdWords::V200909::BulkMutateJobService::Operation makes it function.

It seems that AdWords::V200909::BulkMutateJobService has a duplicate 
class for just about every operation and object that would be used 
with any other service. This does make it untransparant and in conflict 
with instructions given here: http://code.google.com/apis/adwords/v2009/
docs/bulkjobs.html

originally posted on the AdWords API mailing-list: http://
groups.google.com/group/adwords-api/browse_thread/thread/5424ff23ef650de6

Original issue reported on code.google.com by wil...@gmail.com on 7 May 2010 at 3:07

GoogleCodeExporter commented 8 years ago
Same issue with AdWords::V200909::AdGroupAdService::AdGroupAdOperation.

Original comment by ojakub...@gmail.com on 15 Jun 2010 at 7:56

GoogleCodeExporter commented 8 years ago
This is indeed a problem with the current version of the client library. I'm 
relying on soap4r-generated objects, and they seem to only be usable within a 
single service, even if the objects are essentially the same. This goes against 
the expected duck-typing behaviour in Ruby and thus makes their usage not very 
Ruby-like.

I'm currently working on significant improvements to the client library that 
will hopefully reduce its dependence on soap4r-generated objects and ultimately 
allow for a switch to a different SOAP library.

Original comment by api.sgo...@gmail.com on 21 Jun 2010 at 9:28

GoogleCodeExporter commented 8 years ago
This library is now deprecated and we plan no future releases for it. Please 
consider migrating to the common-based library: 
http://code.google.com/p/google-api-ads-ruby/

Original comment by api.dkli...@gmail.com on 25 May 2011 at 12:30