Class: Google::Apis::AdsenseV1_4::AdUnit
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::AdsenseV1_4::AdUnit
 
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/adsense_v1_4/classes.rb,
 generated/google/apis/adsense_v1_4/representations.rb,
 generated/google/apis/adsense_v1_4/representations.rb
Defined Under Namespace
Classes: ContentAdsSettings, FeedAdsSettings, MobileContentAdsSettings
Instance Attribute Summary collapse
- 
  
    
      #code  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Identity code of this ad unit, not necessarily unique across ad clients. 
- 
  
    
      #content_ads_settings  ⇒ Google::Apis::AdsenseV1_4::AdUnit::ContentAdsSettings 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Settings specific to content ads (AFC) and highend mobile content ads (AFMC - deprecated). 
- 
  
    
      #custom_style  ⇒ Google::Apis::AdsenseV1_4::AdStyle 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Custom style information specific to this ad unit. 
- 
  
    
      #feed_ads_settings  ⇒ Google::Apis::AdsenseV1_4::AdUnit::FeedAdsSettings 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Settings specific to feed ads (AFF) - deprecated. 
- 
  
    
      #id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Unique identifier of this ad unit. 
- 
  
    
      #kind  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Kind of resource this is, in this case adsense#adUnit. 
- 
  
    
      #mobile_content_ads_settings  ⇒ Google::Apis::AdsenseV1_4::AdUnit::MobileContentAdsSettings 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Settings specific to WAP mobile content ads (AFMC) - deprecated. 
- 
  
    
      #name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Name of this ad unit. 
- 
  
    
      #saved_style_id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    ID of the saved ad style which holds this ad unit's style information. 
- 
  
    
      #status  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Status of this ad unit. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ AdUnit 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of AdUnit. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ AdUnit
Returns a new instance of AdUnit
| 399 400 401 | # File 'generated/google/apis/adsense_v1_4/classes.rb', line 399 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#code ⇒ String
Identity code of this ad unit, not necessarily unique across ad clients.
Corresponds to the JSON property code
| 344 345 346 | # File 'generated/google/apis/adsense_v1_4/classes.rb', line 344 def code @code end | 
#content_ads_settings ⇒ Google::Apis::AdsenseV1_4::AdUnit::ContentAdsSettings
Settings specific to content ads (AFC) and highend mobile content ads (AFMC -
deprecated).
Corresponds to the JSON property contentAdsSettings
| 350 351 352 | # File 'generated/google/apis/adsense_v1_4/classes.rb', line 350 def content_ads_settings @content_ads_settings end | 
#custom_style ⇒ Google::Apis::AdsenseV1_4::AdStyle
Custom style information specific to this ad unit.
Corresponds to the JSON property customStyle
| 355 356 357 | # File 'generated/google/apis/adsense_v1_4/classes.rb', line 355 def custom_style @custom_style end | 
#feed_ads_settings ⇒ Google::Apis::AdsenseV1_4::AdUnit::FeedAdsSettings
Settings specific to feed ads (AFF) - deprecated.
Corresponds to the JSON property feedAdsSettings
| 360 361 362 | # File 'generated/google/apis/adsense_v1_4/classes.rb', line 360 def feed_ads_settings @feed_ads_settings end | 
#id ⇒ String
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
| 366 367 368 | # File 'generated/google/apis/adsense_v1_4/classes.rb', line 366 def id @id end | 
#kind ⇒ String
Kind of resource this is, in this case adsense#adUnit.
Corresponds to the JSON property kind
| 371 372 373 | # File 'generated/google/apis/adsense_v1_4/classes.rb', line 371 def kind @kind end | 
#mobile_content_ads_settings ⇒ Google::Apis::AdsenseV1_4::AdUnit::MobileContentAdsSettings
Settings specific to WAP mobile content ads (AFMC) - deprecated.
Corresponds to the JSON property mobileContentAdsSettings
| 376 377 378 | # File 'generated/google/apis/adsense_v1_4/classes.rb', line 376 def mobile_content_ads_settings @mobile_content_ads_settings end | 
#name ⇒ String
Name of this ad unit.
Corresponds to the JSON property name
| 381 382 383 | # File 'generated/google/apis/adsense_v1_4/classes.rb', line 381 def name @name end | 
#saved_style_id ⇒ String
ID of the saved ad style which holds this ad unit's style information.
Corresponds to the JSON property savedStyleId
| 386 387 388 | # File 'generated/google/apis/adsense_v1_4/classes.rb', line 386 def saved_style_id @saved_style_id end | 
#status ⇒ String
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
| 397 398 399 | # File 'generated/google/apis/adsense_v1_4/classes.rb', line 397 def status @status end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 404 405 406 407 408 409 410 411 412 413 414 415 | # 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 |