Class: Google::Apis::AdmobV1beta::App

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

Describes an AdMob app for a specific platform (For example: Android or iOS).

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ App

Returns a new instance of App.



332
333
334
# File 'lib/google/apis/admob_v1beta/classes.rb', line 332

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

Instance Attribute Details

#app_approval_stateString

Output only. The approval state for the app. The field is read-only. Corresponds to the JSON property appApprovalState

Returns:

  • (String)


301
302
303
# File 'lib/google/apis/admob_v1beta/classes.rb', line 301

def app_approval_state
  @app_approval_state
end

#app_idString

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

Returns:

  • (String)


308
309
310
# File 'lib/google/apis/admob_v1beta/classes.rb', line 308

def app_id
  @app_id
end

#linked_app_infoGoogle::Apis::AdmobV1beta::AppLinkedAppInfo

Information from the app store if the app is linked to an app store. Corresponds to the JSON property linkedAppInfo



313
314
315
# File 'lib/google/apis/admob_v1beta/classes.rb', line 313

def linked_app_info
  @linked_app_info
end

#manual_app_infoGoogle::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



319
320
321
# File 'lib/google/apis/admob_v1beta/classes.rb', line 319

def manual_app_info
  @manual_app_info
end

#nameString

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

Returns:

  • (String)


325
326
327
# File 'lib/google/apis/admob_v1beta/classes.rb', line 325

def name
  @name
end

#platformString

Describes the platform of the app. Limited to "IOS" and "ANDROID". Corresponds to the JSON property platform

Returns:

  • (String)


330
331
332
# File 'lib/google/apis/admob_v1beta/classes.rb', line 330

def platform
  @platform
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



337
338
339
340
341
342
343
344
# File 'lib/google/apis/admob_v1beta/classes.rb', line 337

def update!(**args)
  @app_approval_state = args[:app_approval_state] if args.key?(:app_approval_state)
  @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