Hi Anash, The request id is dbeabd4452f8e217d86f67d307497c9f
Cheers, Hans On Feb 11, 5:29 pm, AdWords API Advisor <[email protected]> wrote: > Hi Hans, > > Can you provide the request id from your library's logs? I can lookup > the request and find out what went wrong with the request. > Seehttp://code.google.com/p/google-api-adwords-ruby/source/browse/trunk/... > for details on how turn on logging in the library. > > Cheers, > Anash P. Oommen, > AdWords API Advisor. > > On Feb 10, 6:01 am, Hans <[email protected]> wrote: > > > Hello, > > > when I try to set PolygonTargets i get the following error: > > > Failure/Error: response = campaign_target_srv.mutate([geo_operation]) > > AdWords::Error::GoogleInternalError > > > Any hint is appreciated! > > > Code: > > ------ snip ------ > > coordinates = [ > > [52.254709, 11.447754], > > [52.281602, 11.832275], > > [52.099757, 11.898193] > > ] > > campaign_id = 19969 > > > adwords = Connection.establish > > # adwords = > > AdWords::API.new(AdWords::AdWordsCredentials.new(credentials)) > > latest_version = AdWords::Service.get_latest_version > > campaign_target_srv = adwords.get_service('CampaignTarget', > > latest_version) > > > polygon_target_list = > > campaign_target_srv.module::GeoTargetList.new > > polygon_target_list.campaignId = campaign_id > > polygon_target_test = > > campaign_target_srv.module::PolygonTarget.new > > polygon_target_test.vertices = coordinates.map{|element| > > campaign_target_srv.module::GeoPoint.new(element[0], > > element[1]) > > } > > polygon_target_list.targets = [polygon_target_test] > > geo_operation = { > > :operand => polygon_target_list, > > :operator => 'SET' > > } > > > response = campaign_target_srv.mutate([geo_operation]) > > targets = response.rval.value > > targets.each do |target| > > puts "Campaign target of type #{target.targetList_Type} for > > campaign id " + > > "#{target.campaignId} was set." > > end > > ----- snap ------ > > > Cheers, > > Hans -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
