# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/ads/googleads/v10/resources/ad.proto

require 'google/ads/google_ads/v10/common/ad_type_infos_pb'
require 'google/ads/google_ads/v10/common/custom_parameter_pb'
require 'google/ads/google_ads/v10/common/final_app_url_pb'
require 'google/ads/google_ads/v10/common/url_collection_pb'
require 'google/ads/google_ads/v10/enums/ad_type_pb'
require 'google/ads/google_ads/v10/enums/device_pb'
require 'google/ads/google_ads/v10/enums/system_managed_entity_source_pb'
require 'google/api/annotations_pb'
require 'google/api/field_behavior_pb'
require 'google/api/resource_pb'
require 'google/protobuf'

Google::Protobuf::DescriptorPool.generated_pool.build do
  add_file("google/ads/googleads/v10/resources/ad.proto", :syntax => :proto3) do
    add_message "google.ads.googleads.v10.resources.Ad" do
      optional :resource_name, :string, 37
      proto3_optional :id, :int64, 40
      repeated :final_urls, :string, 41
      repeated :final_app_urls, :message, 35, "google.ads.googleads.v10.common.FinalAppUrl"
      repeated :final_mobile_urls, :string, 42
      proto3_optional :tracking_url_template, :string, 43
      proto3_optional :final_url_suffix, :string, 44
      repeated :url_custom_parameters, :message, 10, "google.ads.googleads.v10.common.CustomParameter"
      proto3_optional :display_url, :string, 45
      optional :type, :enum, 5, "google.ads.googleads.v10.enums.AdTypeEnum.AdType"
      proto3_optional :added_by_google_ads, :bool, 46
      optional :device_preference, :enum, 20, "google.ads.googleads.v10.enums.DeviceEnum.Device"
      repeated :url_collections, :message, 26, "google.ads.googleads.v10.common.UrlCollection"
      proto3_optional :name, :string, 47
      optional :system_managed_resource_source, :enum, 27, "google.ads.googleads.v10.enums.SystemManagedResourceSourceEnum.SystemManagedResourceSource"
      oneof :ad_data do
        optional :text_ad, :message, 6, "google.ads.googleads.v10.common.TextAdInfo"
        optional :expanded_text_ad, :message, 7, "google.ads.googleads.v10.common.ExpandedTextAdInfo"
        optional :call_ad, :message, 49, "google.ads.googleads.v10.common.CallAdInfo"
        optional :expanded_dynamic_search_ad, :message, 14, "google.ads.googleads.v10.common.ExpandedDynamicSearchAdInfo"
        optional :hotel_ad, :message, 15, "google.ads.googleads.v10.common.HotelAdInfo"
        optional :shopping_smart_ad, :message, 17, "google.ads.googleads.v10.common.ShoppingSmartAdInfo"
        optional :shopping_product_ad, :message, 18, "google.ads.googleads.v10.common.ShoppingProductAdInfo"
        optional :gmail_ad, :message, 21, "google.ads.googleads.v10.common.GmailAdInfo"
        optional :image_ad, :message, 22, "google.ads.googleads.v10.common.ImageAdInfo"
        optional :video_ad, :message, 24, "google.ads.googleads.v10.common.VideoAdInfo"
        optional :video_responsive_ad, :message, 39, "google.ads.googleads.v10.common.VideoResponsiveAdInfo"
        optional :responsive_search_ad, :message, 25, "google.ads.googleads.v10.common.ResponsiveSearchAdInfo"
        optional :legacy_responsive_display_ad, :message, 28, "google.ads.googleads.v10.common.LegacyResponsiveDisplayAdInfo"
        optional :app_ad, :message, 29, "google.ads.googleads.v10.common.AppAdInfo"
        optional :legacy_app_install_ad, :message, 30, "google.ads.googleads.v10.common.LegacyAppInstallAdInfo"
        optional :responsive_display_ad, :message, 31, "google.ads.googleads.v10.common.ResponsiveDisplayAdInfo"
        optional :local_ad, :message, 32, "google.ads.googleads.v10.common.LocalAdInfo"
        optional :display_upload_ad, :message, 33, "google.ads.googleads.v10.common.DisplayUploadAdInfo"
        optional :app_engagement_ad, :message, 34, "google.ads.googleads.v10.common.AppEngagementAdInfo"
        optional :shopping_comparison_listing_ad, :message, 36, "google.ads.googleads.v10.common.ShoppingComparisonListingAdInfo"
        optional :smart_campaign_ad, :message, 48, "google.ads.googleads.v10.common.SmartCampaignAdInfo"
        optional :app_pre_registration_ad, :message, 50, "google.ads.googleads.v10.common.AppPreRegistrationAdInfo"
      end
    end
  end
end

module Google
  module Ads
    module GoogleAds
      module V10
        module Resources
          Ad = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v10.resources.Ad").msgclass
        end
      end
    end
  end
end
