AdsApp.VideoMobileApplicationBuilder
Stay organized with collections
Save and categorize content based on your preferences.
Builder for
VideoMobileApplication objects.
Example usage:
var videoMobileApplicationBuilder = videoAdGroup
.videoTargeting()
.newMobileApplicationBuilder();
var videoMobileApplicationOperation = videoMobileApplicationBuilder
.withAppId('1-936971630') // required
.build(); // create the mobile application
Methods:
build()
Builds the video mobile application. Returns a
VideoMobileApplicationOperation that corresponds to the creation of the
VideoMobileApplication.
Return values:
exclude()
Builds the excluded video mobile application. Returns an
ExcludedVideoMobileApplicationOperation that corresponds to the creation of the
ExcludedVideoMobileApplication.
Return values:
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:
Name | Type | Description |
appId |
String |
The ID of the mobile application. |
Return values:
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-25 UTC.
[null,null,["Last updated 2025-08-25 UTC."],[[["\u003cp\u003eThe VideoMobileApplicationBuilder is used to create or exclude video mobile applications for targeting in video ad groups.\u003c/p\u003e\n"],["\u003cp\u003eIt provides methods to set the mobile application ID, which is required and follows a specific format.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003ebuild()\u003c/code\u003e creates a VideoMobileApplicationOperation for inclusion, while \u003ccode\u003eexclude()\u003c/code\u003e creates an ExcludedVideoMobileApplicationOperation for exclusion.\u003c/p\u003e\n"],["\u003cp\u003eThe application ID format is "{platform}-{platform_native_id}", where platform is "1" for iOS and "2" for Android, followed by the app's native identifier.\u003c/p\u003e\n"]]],[],null,["# AdsApp.VideoMobileApplicationBuilder\n\nBuilder for [VideoMobileApplication](/google-ads/scripts/docs/reference/adsapp/adsapp_videomobileapplication) objects.\n\nExample usage:\n\n```gdscript\nvar videoMobileApplicationBuilder = videoAdGroup\n .videoTargeting()\n .newMobileApplicationBuilder();\nvar videoMobileApplicationOperation = videoMobileApplicationBuilder\n .withAppId('1-936971630') // required\n .build(); // create the mobile application\n```\n\n### Methods:\n\n| Member | Type | Description |\n|--------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------|\n| [build()](#build) | [AdsApp.VideoMobileApplicationOperation](/google-ads/scripts/docs/reference/adsapp/adsapp_videomobileapplicationoperation) | Builds the video mobile application. |\n| [exclude()](#exclude) | [AdsApp.ExcludedVideoMobileApplicationOperation](/google-ads/scripts/docs/reference/adsapp/adsapp_excludedvideomobileapplicationoperation) | Builds the excluded video mobile application. |\n| [withAppId(appId)](#withAppId_appId) | [AdsApp.VideoMobileApplicationBuilder](/google-ads/scripts/docs/reference/adsapp/adsapp_videomobileapplicationbuilder) | Sets the ID of the mobile application. |\n\n`build()`\n---------\n\nBuilds the video mobile application. Returns a [VideoMobileApplicationOperation](/google-ads/scripts/docs/reference/adsapp/adsapp_videomobileapplicationoperation) that corresponds to the creation of the [VideoMobileApplication](/google-ads/scripts/docs/reference/adsapp/adsapp_videomobileapplication).\n\n### Return values:\n\n| Type | Description |\n|----------------------------------------------------------------------------------------------------------------------------|--------------------------------------|\n| [AdsApp.VideoMobileApplicationOperation](/google-ads/scripts/docs/reference/adsapp/adsapp_videomobileapplicationoperation) | The VideoMobileApplicationOperation. |\n\n`exclude()`\n-----------\n\nBuilds the excluded video mobile application. Returns an [ExcludedVideoMobileApplicationOperation](/google-ads/scripts/docs/reference/adsapp/adsapp_excludedvideomobileapplicationoperation) that corresponds to the creation of the [ExcludedVideoMobileApplication](/google-ads/scripts/docs/reference/adsapp/adsapp_excludedvideomobileapplication).\n\n### Return values:\n\n| Type | Description |\n|--------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------|\n| [AdsApp.ExcludedVideoMobileApplicationOperation](/google-ads/scripts/docs/reference/adsapp/adsapp_excludedvideomobileapplicationoperation) | The ExcludedVideoMobileApplicationOperation. |\n\n`withAppId(appId)`\n------------------\n\nSets 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.\n\n### Arguments:\n\n| Name | Type | Description |\n|-------|----------|-----------------------------------|\n| appId | `String` | The ID of the mobile application. |\n\n### Return values:\n\n| Type | Description |\n|------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------|\n| [AdsApp.VideoMobileApplicationBuilder](/google-ads/scripts/docs/reference/adsapp/adsapp_videomobileapplicationbuilder) | An mobile application builder with the specified application ID. |"]]