class Google::Apis::AdsenseV1_4::AdUnit

Attributes

code[RW]

Identity code of this ad unit, not necessarily unique across ad clients. Corresponds to the JSON property `code` @return [String]

content_ads_settings[RW]

Settings specific to content ads (AFC) and highend mobile content ads (AFMC - deprecated). Corresponds to the JSON property `contentAdsSettings` @return [Google::Apis::AdsenseV1_4::AdUnit::ContentAdsSettings]

custom_style[RW]

Custom style information specific to this ad unit. Corresponds to the JSON property `customStyle` @return [Google::Apis::AdsenseV1_4::AdStyle]

feed_ads_settings[RW]

Settings specific to feed ads (AFF) - deprecated. Corresponds to the JSON property `feedAdsSettings` @return [Google::Apis::AdsenseV1_4::AdUnit::FeedAdsSettings]

id[RW]

Unique identifier of this ad unit. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format. Corresponds to the JSON property `id` @return [String]

kind[RW]

Kind of resource this is, in this case adsense#adUnit. Corresponds to the JSON property `kind` @return [String]

mobile_content_ads_settings[RW]

Settings specific to WAP mobile content ads (AFMC) - deprecated. Corresponds to the JSON property `mobileContentAdsSettings` @return [Google::Apis::AdsenseV1_4::AdUnit::MobileContentAdsSettings]

name[RW]

Name of this ad unit. Corresponds to the JSON property `name` @return [String]

saved_style_id[RW]

ID of the saved ad style which holds this ad unit's style information. Corresponds to the JSON property `savedStyleId` @return [String]

status[RW]

Status of this ad unit. Possible values are: NEW: Indicates that the ad unit was created within the last seven days and does not yet have any activity associated with it. ACTIVE: Indicates that there has been activity on this ad unit in the last seven days. INACTIVE: Indicates that there has been no activity on this ad unit in the last seven days. Corresponds to the JSON property `status` @return [String]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/adsense_v1_4/classes.rb, line 399
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/adsense_v1_4/classes.rb, line 404
def update!(**args)
  @code = args[:code] if args.key?(:code)
  @content_ads_settings = args[:content_ads_settings] if args.key?(:content_ads_settings)
  @custom_style = args[:custom_style] if args.key?(:custom_style)
  @feed_ads_settings = args[:feed_ads_settings] if args.key?(:feed_ads_settings)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @mobile_content_ads_settings = args[:mobile_content_ads_settings] if args.key?(:mobile_content_ads_settings)
  @name = args[:name] if args.key?(:name)
  @saved_style_id = args[:saved_style_id] if args.key?(:saved_style_id)
  @status = args[:status] if args.key?(:status)
end