googleads / google-api-ads-ruby

Ad Manager SOAP API Client Libraries for Ruby
297 stars 227 forks source link

Can not update youtubeVideoMedias for UniversalAppCampaignSetting with CampaignService #167

Closed qw4n7y closed 9 months ago

qw4n7y commented 5 years ago

I have a problem with updating youtube video medias for universal app campaign settings.

Following code:

srv = adwords.service(:CampaignService, :v201809)

srv.mutate([
  { 
    operator: 'SET',
    operand: {
      id: campaign_id,
      settings: [
        {
          xsi_type: 'UniversalAppCampaignSetting',

          # This works! :)
          description1: 'lalala',

          # But this doesn't :(
          # youtubeVideoMediaIds: [7808878997],
          # youtubeVideoMediaIdsOps: ['REMOVE']
        }
      ]
    }
  }
])

produces error:

/usr/local/bundle/gems/google-ads-common-1.0.2/lib/ads_common/parameters_validator.rb:156:in `check_extra_fields': AdsCommon::Errors::UnexpectedParametersError: [:youtubeVideoMediaIds, :youtubeVideoMediaIdsOps] (AdsCommon::Errors::UnexpectedParametersError)

I had related discussion on forum: https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!msg/adwords-api/3HvkWZ9xVcE/Z6vJGJqKBwAJ which gives me understanding that i am doing right. Is that because of ruby library does not support those parameters?

christopherseeley commented 9 months ago

The AdWords API has been turned down and was replaced by the Google Ads API. Closing as stale.