Page Summary
-
The
VideoKeywordBuilderis used to createVideoKeywordobjects. -
You can set the keyword text using
withText(), which is a required field. -
You can optionally set the maximum CPV bid using
withCpv(). -
The
build()method creates a standard video keyword, whileexclude()creates an excluded video keyword.
Example usage:
var videoKeywordBuilder = videoAdGroup.videoTargeting().newKeywordBuilder(); var videoKeywordOperation = videoKeywordBuilder .withText('keyword') // required .withCpv(0.11) // optional .build(); // create the keyword
Methods:
build()
Builds the video keyword. Returns a
VideoKeywordOperation that corresponds to the creation of the VideoKeyword. Return values:
| Type | Description |
|---|---|
AdsApp.VideoKeywordOperation |
The VideoKeywordOperation. |
exclude()
Builds the excluded video keyword. Returns an
ExcludedVideoKeywordOperation that corresponds to the creation of the ExcludedVideoKeyword. Return values:
| Type | Description |
|---|---|
AdsApp.ExcludedVideoKeywordOperation |
The ExcludedVideoKeywordOperation. |
withCpv(cpv)
Sets the max CPV bid of the new video keyword to the specified value. Arguments:
| Name | Type | Description |
|---|---|---|
| cpv | double |
The max CPV bid of the video keyword. |
Return values:
| Type | Description |
|---|---|
AdsApp.VideoKeywordBuilder |
The video keyword builder with the specified max CPV. |
withText(text)
Sets the text of the video keyword. This field is required. Arguments:
| Name | Type | Description |
|---|---|---|
| text | String |
The video keyword text. |
