AI-generated Key Takeaways
-
The VideoMobileApplicationBuilder is used to create VideoMobileApplication objects.
-
The build() method creates a video mobile application and returns a VideoMobileApplicationOperation.
-
The exclude() method creates an excluded video mobile application and returns an ExcludedVideoMobileApplicationOperation.
-
The withAppId(appId) method sets the required ID of the mobile application using a specific format depending on whether it is an iOS or Android app.
Example usage:
var videoMobileApplicationBuilder = videoAdGroup .videoTargeting() .newMobileApplicationBuilder(); var videoMobileApplicationOperation = videoMobileApplicationBuilder .withAppId('1-936971630') // required .build(); // create the mobile application
Methods:
Member | Type | Description |
---|---|---|
build() | AdsApp.VideoMobileApplicationOperation |
Builds the video mobile application. |
exclude() | AdsApp.ExcludedVideoMobileApplicationOperation |
Builds the excluded video mobile application. |
withAppId(appId) | 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:
Type | Description |
---|---|
AdsApp.VideoMobileApplicationOperation |
The VideoMobileApplicationOperation. |
exclude()
Builds the excluded video mobile application. Returns an
ExcludedVideoMobileApplicationOperation that corresponds to the creation of the ExcludedVideoMobileApplication. Return values:
Type | Description |
---|---|
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:
Name | Type | Description |
---|---|---|
appId | String |
The ID of the mobile application. |
Return values:
Type | Description |
---|---|
AdsApp.VideoMobileApplicationBuilder |
An mobile application builder with the specified application ID. |