Class: Google::Apis::DisplayvideoV1::Campaign
- Inherits:
-
Object
- Object
- Google::Apis::DisplayvideoV1::Campaign
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/displayvideo_v1/classes.rb,
lib/google/apis/displayvideo_v1/representations.rb,
lib/google/apis/displayvideo_v1/representations.rb
Overview
A single campaign.
Instance Attribute Summary collapse
-
#advertiser_id ⇒ Fixnum
Output only.
-
#campaign_flight ⇒ Google::Apis::DisplayvideoV1::CampaignFlight
Settings that track the planned spend and duration of a campaign.
-
#campaign_goal ⇒ Google::Apis::DisplayvideoV1::CampaignGoal
Settings that control the goal of a campaign.
-
#campaign_id ⇒ Fixnum
Output only.
-
#display_name ⇒ String
Required.
-
#entity_status ⇒ String
Required.
-
#frequency_cap ⇒ Google::Apis::DisplayvideoV1::FrequencyCap
Settings that control the number of times a user may be shown with the same ad during a given time period.
-
#name ⇒ String
Output only.
-
#update_time ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Campaign
constructor
A new instance of Campaign.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Campaign
Returns a new instance of Campaign.
1935 1936 1937 |
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 1935 def initialize(**args) update!(**args) end |
Instance Attribute Details
#advertiser_id ⇒ Fixnum
Output only. The unique ID of the advertiser the campaign belongs to.
Corresponds to the JSON property advertiserId
1887 1888 1889 |
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 1887 def advertiser_id @advertiser_id end |
#campaign_flight ⇒ Google::Apis::DisplayvideoV1::CampaignFlight
Settings that track the planned spend and duration of a campaign.
Corresponds to the JSON property campaignFlight
1892 1893 1894 |
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 1892 def campaign_flight @campaign_flight end |
#campaign_goal ⇒ Google::Apis::DisplayvideoV1::CampaignGoal
Settings that control the goal of a campaign.
Corresponds to the JSON property campaignGoal
1897 1898 1899 |
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 1897 def campaign_goal @campaign_goal end |
#campaign_id ⇒ Fixnum
Output only. The unique ID of the campaign. Assigned by the system.
Corresponds to the JSON property campaignId
1902 1903 1904 |
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 1902 def campaign_id @campaign_id end |
#display_name ⇒ String
Required. The display name of the campaign. Must be UTF-8 encoded with a
maximum size of 240 bytes.
Corresponds to the JSON property displayName
1908 1909 1910 |
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 1908 def display_name @display_name end |
#entity_status ⇒ String
Required. Controls whether or not the insertion orders under this campaign can
spend their budgets and bid on inventory. * Accepted values are
ENTITY_STATUS_ACTIVE, ENTITY_STATUS_ARCHIVED, and ENTITY_STATUS_PAUSED. *
For CreateCampaign method, ENTITY_STATUS_ARCHIVED is not allowed.
Corresponds to the JSON property entityStatus
1916 1917 1918 |
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 1916 def entity_status @entity_status end |
#frequency_cap ⇒ Google::Apis::DisplayvideoV1::FrequencyCap
Settings that control the number of times a user may be shown with the same ad
during a given time period.
Corresponds to the JSON property frequencyCap
1922 1923 1924 |
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 1922 def frequency_cap @frequency_cap end |
#name ⇒ String
Output only. The resource name of the campaign.
Corresponds to the JSON property name
1927 1928 1929 |
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 1927 def name @name end |
#update_time ⇒ String
Output only. The timestamp when the campaign was last updated. Assigned by the
system.
Corresponds to the JSON property updateTime
1933 1934 1935 |
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 1933 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 |
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 1940 def update!(**args) @advertiser_id = args[:advertiser_id] if args.key?(:advertiser_id) @campaign_flight = args[:campaign_flight] if args.key?(:campaign_flight) @campaign_goal = args[:campaign_goal] if args.key?(:campaign_goal) @campaign_id = args[:campaign_id] if args.key?(:campaign_id) @display_name = args[:display_name] if args.key?(:display_name) @entity_status = args[:entity_status] if args.key?(:entity_status) @frequency_cap = args[:frequency_cap] if args.key?(:frequency_cap) @name = args[:name] if args.key?(:name) @update_time = args[:update_time] if args.key?(:update_time) end |