Hi,

Please see your existing thread for more information:

  
http://groups.google.com/group/adwords-api/browse_thread/thread/8951605fbbb1a089/

Best,
- Eric Koleda, AdWords API Team

On Mar 31, 1:58 pm, NS <[email protected]> wrote:
> Hello Everyone,
>
> I am very new to the adwords API and we are using ruby client library
> (adwords4r 18.0.0).
>
> I updated the gem adword4r to 18.0.0 version yesterday and tried to
> update the geotargetting countries in the campaign and I am getting
> following SOAP error.
>
> SOAP Error: Unmarshalling Error: Unable to create an instance of
> com.google.ads.api.services.campaignmgmt.campaigntarget.v200909.jaxbgen.Geo ­
> Target
> (code: 0)
>
> Here is the code
>
>     �...@campaign_target_srv = @adwords.get_service('CampaignTarget',
> latest)
>
>      geo_target_list = @campaign_target_srv.module::GeoTargetList.new
>      geo_target_list.campaignId = @campaign.api_identifier
>      geo_target_list.targets = []
>
>      geo_countries = []
>      if @params['geotarget_countries']
>         @params['geotarget_countries'].each do |country|
>            geo_target_country =
> @campaign_target_srv.module::CountryTarget.new
>            geo_target_country.excluded = false
>            geo_target_country.countryCode = country
>            geo_countries << geo_target_country
>         end
>      end
>
>      geo_target_list.targets << geo_countries if geo_countries.length
>
> > 0
>
>      geo_operation =
> @campaign_target_srv.module::CampaignTargetOperation.new
>      geo_operation.operand = geo_target_list
>      geo_operation.operator = operator
>
>      response = @campaign_target_srv.mutate(geo_operation)
>
> Any help would be highly appreciated.
>
> Thanks,
> NS

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Have you migrated to v200909 yet?
The v13 sunset is on April 22, 2010.

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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en

To unsubscribe, reply using "remove me" as the subject.

Reply via email to