AdWordsApp.​VideoAudienceBuilder

Builder for VideoAudience objects. For details about video audiences, please see About targeting for video campaigns.

Example usage:

 var videoAudienceBuilder = videoAdGroup.videoTargeting().newAudienceBuilder();
 var videoAudienceOperation = videoAudienceBuilder
   .withAudienceType('USER_INTEREST')   // required
   .withAudienceId(80432)               // required
   .build();                            // create the audience

Methods:

MemberTypeDescription
build AdWordsApp.VideoAudienceOperation Builds the video audience.
exclude AdWordsApp.ExcludedVideoAudienceOperation Builds the excluded video audience.
withAudienceId AdWordsApp.VideoAudienceBuilder Sets the ID of the excluded audience.
withAudienceType AdWordsApp.VideoAudienceBuilder Sets the type of the audience.

build()

Builds the video audience. Returns a VideoAudienceOperation that corresponds to the creation of the VideoAudience.

Return values:

TypeDescription
AdWordsApp.VideoAudienceOperation The VideoAudienceOperation.

exclude()

Builds the excluded video audience. Returns an VideoAudienceOperation that corresponds to the creation of the ExcludedVideoAudience. Custom affinities cannot be excluded.

Return values:

TypeDescription
AdWordsApp.ExcludedVideoAudienceOperation The ExcludedVideoAudienceOperation.

withAudienceId(audienceId)

Sets the ID of the excluded audience. This field is required. For user interests, affinity categories and corresponding IDs can be found on AdWords API documentation on affinity categories, and in-market categories and corresponding IDs can be found on AdWords API documentation on in-market categories. User List IDs (List IDs) are available on the details page of a User List (found under the Audiences section of the Shared Library).

Arguments:

NameTypeDescription
audienceId Long The ID of the excluded audience.

Return values:

TypeDescription
AdWordsApp.VideoAudienceBuilder An audience builder with the specified audience ID.

withAudienceType(audienceType)

Sets the type of the audience. Possible values: USER_INTEREST, USER_LIST or CUSTOM_AFFINITY. This field is required.

Arguments:

NameTypeDescription
audienceType String The type of the excluded audience.

Return values:

TypeDescription
AdWordsApp.VideoAudienceBuilder An VideoAudienceBuilder with the specified audience type.

发送以下问题的反馈:

此网页
AdWords Scripts
AdWords Scripts
需要帮助?请访问我们的支持页面