Class: Google::Apis::AdmobV1beta::UpdateCampaignRequest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/admob_v1beta/classes.rb,
lib/google/apis/admob_v1beta/representations.rb,
lib/google/apis/admob_v1beta/representations.rb

Overview

An update request for a singular campaign. Currently only cpi_micros of MAX_CPI and TARGET_CPI campaigns can be updated.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UpdateCampaignRequest

Returns a new instance of UpdateCampaignRequest.



1957
1958
1959
# File 'lib/google/apis/admob_v1beta/classes.rb', line 1957

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#campaignGoogle::Apis::AdmobV1beta::Campaign

Describes an AdMob campaign. Corresponds to the JSON property campaign



1949
1950
1951
# File 'lib/google/apis/admob_v1beta/classes.rb', line 1949

def campaign
  @campaign
end

#update_maskString

List of campaign fields to be updated. Currently this field is not supported as only the cpi_micros field can be updated. Corresponds to the JSON property updateMask

Returns:

  • (String)


1955
1956
1957
# File 'lib/google/apis/admob_v1beta/classes.rb', line 1955

def update_mask
  @update_mask
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1962
1963
1964
1965
# File 'lib/google/apis/admob_v1beta/classes.rb', line 1962

def update!(**args)
  @campaign = args[:campaign] if args.key?(:campaign)
  @update_mask = args[:update_mask] if args.key?(:update_mask)
end