AdsApp.​VideoMobileApplicationBuilder

Builder for VideoMobileApplication objects.

Example usage:

var videoMobileApplicationBuilder = videoAdGroup
  .videoTargeting()
  .newMobileApplicationBuilder();
var videoMobileApplicationOperation = videoMobileApplicationBuilder
  .withAppId('1-936971630')     // required
  .build();                     // create the mobile application

Methods:

MemberTypeDescription
build AdsApp.VideoMobileApplicationOperation Builds the video mobile application.
exclude AdsApp.ExcludedVideoMobileApplicationOperation Builds the excluded video mobile application.
withAppId AdsApp.VideoMobileApplicationBuilder Sets the ID of the mobile application.

build()

Builds the video mobile application. Returns a VideoMobileApplicationOperation that corresponds to the creation of the VideoMobileApplication.

Return values:

TypeDescription
AdsApp.VideoMobileApplicationOperation The VideoMobileApplicationOperation.

exclude()

Builds the excluded video mobile application. Returns an ExcludedVideoMobileApplicationOperation that corresponds to the creation of the ExcludedVideoMobileApplication.

Return values:

TypeDescription
AdsApp.ExcludedVideoMobileApplicationOperation The ExcludedVideoMobileApplicationOperation.

withAppId(appId)

Sets the ID of the mobile application. This field is required. The ID is a string that uniquely identifies a mobile application to Google Ads API. The format of this string is "{platform}-{platform_native_id}", where platform is "1" for iOS apps and "2" for Android apps, and where platform_native_id is the mobile application identifier native to the corresponding platform. For iOS, this native identifier is the 9 digit string that appears at the end of an App Store URL (e.g., "1091700242" for "Gboard" whose App Store link is https://itunes.apple.com/us/app/gboard-new-keyboard-from-google/id1091700242). For Android, this native identifier is the application's package name (e.g., "com.google.android.vr.home" for "Daydream" from the Google Play link https://play.google.com/store/apps/details?id=com.google.android.vr.home). A well formed app ID for Google Ads API would thus be "1-1091700242" for iOS and "2-com.google.android.vr.home" for Android.

Arguments:

NameTypeDescription
appId String The ID of the mobile application.

Return values:

TypeDescription
AdsApp.VideoMobileApplicationBuilder An mobile application builder with the specified application ID.