Class: Google::Apis::AdmobV1beta::AppLinkedAppInfo

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

Information from the app store if the app is linked to an app store.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AppLinkedAppInfo

Returns a new instance of AppLinkedAppInfo.



377
378
379
# File 'lib/google/apis/admob_v1beta/classes.rb', line 377

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

Instance Attribute Details

#android_app_storesArray<String>

Optional. The app store information for published Android apps. This field is only used for apps on the Android platform and will be ignored if the PLATFORM is set to iOS. The default value is the Google Play App store. This field can be updated after app is created. If the app is not published, this field will not be included in the response. Corresponds to the JSON property androidAppStores

Returns:

  • (Array<String>)


358
359
360
# File 'lib/google/apis/admob_v1beta/classes.rb', line 358

def android_app_stores
  @android_app_stores
end

#app_store_idString

The app store ID of the app; present if and only if the app is linked to an app store. If the app is added to the Google Play store, it will be the application ID of the app. For example: "com.example.myapp". See https:// developer.android.com/studio/build/application-id. If the app is added to the Apple App Store, it will be app store ID. For example "105169111". Note that setting the app store id is considered an irreversible action. Once an app is linked, it cannot be unlinked. Corresponds to the JSON property appStoreId

Returns:

  • (String)


369
370
371
# File 'lib/google/apis/admob_v1beta/classes.rb', line 369

def app_store_id
  @app_store_id
end

#display_nameString

Output only. Display name of the app as it appears in the app store. This is an output-only field, and may be empty if the app cannot be found in the store. Corresponds to the JSON property displayName

Returns:

  • (String)


375
376
377
# File 'lib/google/apis/admob_v1beta/classes.rb', line 375

def display_name
  @display_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



382
383
384
385
386
# File 'lib/google/apis/admob_v1beta/classes.rb', line 382

def update!(**args)
  @android_app_stores = args[:android_app_stores] if args.key?(:android_app_stores)
  @app_store_id = args[:app_store_id] if args.key?(:app_store_id)
  @display_name = args[:display_name] if args.key?(:display_name)
end