module Puffery
  module Builder
    class ExpandedAd < Base

      # A list of the limits can be found here:
      # https://developers.google.com/adwords/api/docs/guides/expanded-text-ads

      attribute :headline1, max_chars: 30
      attribute :headline2, max_chars: 30

      attribute :description, max_chars: 80

      attribute :path1
      attribute :path2

      attribute :url, max_bytesize: 1024

      def validate
        validate_presence_of(:headline1, :headlin2, :description,
          :path1, :url)
      end

    end
  end
end

module Puffery
  module Builder
    class ExpandedAd < Base

      # A list of the limits can be found here:
      # https://developers.google.com/adwords/api/docs/guides/expanded-text-ads

      attribute :headline1, max_chars: 30
      attribute :headline2, max_chars: 30

      attribute :description, max_chars: 80

      attribute :path1, max_chars: 15
      attribute :path2, max_chars: 15

      attribute :url, max_bytesize: 1024

      def validate
        validate_presence_of(:headline1, :headlin2, :description,
          :path1, :url)
      end

    end
  end
end

Set max_chars 15 for path1 and path2
Set max_chars 15 for path1 and path2
