Class: Google::Apis::AdmobV1beta::App
- Inherits:
-
Object
- Object
- Google::Apis::AdmobV1beta::App
- 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
Describes an AdMob app for a specific platform (For example: Android or iOS).
Instance Attribute Summary collapse
-
#app_id ⇒ String
The externally visible ID of the app which can be used to integrate with the AdMob SDK.
-
#linked_app_info ⇒ Google::Apis::AdmobV1beta::AppLinkedAppInfo
Information from the app store if the app is linked to an app store.
-
#manual_app_info ⇒ Google::Apis::AdmobV1beta::AppManualAppInfo
Information provided for manual apps which are not linked to an application store (Example: Google Play, App Store).
-
#name ⇒ String
Resource name for this app.
-
#platform ⇒ String
Describes the platform of the app.
Instance Method Summary collapse
-
#initialize(**args) ⇒ App
constructor
A new instance of App.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ App
Returns a new instance of App.
152 153 154 |
# File 'lib/google/apis/admob_v1beta/classes.rb', line 152 def initialize(**args) update!(**args) end |
Instance Attribute Details
#app_id ⇒ String
The externally visible ID of the app which can be used to integrate with the
AdMob SDK. This is a read only property. Example: ca-app-pub-9876543210987654~
0123456789
Corresponds to the JSON property appId
128 129 130 |
# File 'lib/google/apis/admob_v1beta/classes.rb', line 128 def app_id @app_id end |
#linked_app_info ⇒ Google::Apis::AdmobV1beta::AppLinkedAppInfo
Information from the app store if the app is linked to an app store.
Corresponds to the JSON property linkedAppInfo
133 134 135 |
# File 'lib/google/apis/admob_v1beta/classes.rb', line 133 def linked_app_info @linked_app_info end |
#manual_app_info ⇒ Google::Apis::AdmobV1beta::AppManualAppInfo
Information provided for manual apps which are not linked to an application
store (Example: Google Play, App Store).
Corresponds to the JSON property manualAppInfo
139 140 141 |
# File 'lib/google/apis/admob_v1beta/classes.rb', line 139 def manual_app_info @manual_app_info end |
#name ⇒ String
Resource name for this app. Format is accounts/publisher_id/apps/
app_id_fragment Example: accounts/pub-9876543210987654/apps/0123456789
Corresponds to the JSON property name
145 146 147 |
# File 'lib/google/apis/admob_v1beta/classes.rb', line 145 def name @name end |
#platform ⇒ String
Describes the platform of the app. Limited to "IOS" and "ANDROID".
Corresponds to the JSON property platform
150 151 152 |
# File 'lib/google/apis/admob_v1beta/classes.rb', line 150 def platform @platform end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
157 158 159 160 161 162 163 |
# File 'lib/google/apis/admob_v1beta/classes.rb', line 157 def update!(**args) @app_id = args[:app_id] if args.key?(:app_id) @linked_app_info = args[:linked_app_info] if args.key?(:linked_app_info) @manual_app_info = args[:manual_app_info] if args.key?(:manual_app_info) @name = args[:name] if args.key?(:name) @platform = args[:platform] if args.key?(:platform) end |