AdsApp.​VideoCampaignTargeting

  • Access and manage targeting criteria for video campaigns programmatically.

  • Utilize methods like adSchedules, excludedContentLabels, and languages to refine targeting.

  • Selectors like AdsApp.AdScheduleSelector allow you to retrieve specific criteria for your campaigns.

  • Control various aspects of your video campaign targeting, such as location, language, and platform.

  • Leverage Google Ads scripts to efficiently iterate through and modify targeting settings for all your video campaigns.

Access to the targeting criteria for video campaigns.

For example, to select the ad schedules for all video campaigns:

var adSchedules = AdsApp.videoCampaignTargeting().adSchedules().get();
while (adSchedules.hasNext()) {
  var adSchedule = adSchedules.next();
}

Methods:

MemberTypeDescription
adSchedules() AdsApp.AdScheduleSelector Specializes this selector to return AdSchedule criteria.
excludedContentLabels() AdsApp.ExcludedContentLabelSelector Specializes this selector to return ExcludedContentLabel criteria.
excludedLocations() AdsApp.ExcludedLocationSelector Specializes this selector to return ExcludedLocation criteria.
languages() AdsApp.LanguageSelector Specializes this selector to return Language criteria.
platforms() AdsApp.PlatformSelector Specializes this selector to return Platform criteria.
targetedLocations() AdsApp.TargetedLocationSelector Specializes this selector to return TargetedLocation criteria.
targetedProximities() AdsApp.TargetedProximitySelector Specializes this selector to return TargetedProximity criteria.

adSchedules()

Specializes this selector to return AdSchedule criteria.

Return values:

TypeDescription
AdsApp.AdScheduleSelector A selector for AdSchedule criteria.

excludedContentLabels()

Specializes this selector to return ExcludedContentLabel criteria.

Return values:

TypeDescription
AdsApp.ExcludedContentLabelSelector A selector for ExcludedContentLabel criteria.

excludedLocations()

Specializes this selector to return ExcludedLocation criteria.

Return values:

TypeDescription
AdsApp.ExcludedLocationSelector A selector for ExcludedLocation criteria.

languages()

Specializes this selector to return Language criteria.

Return values:

TypeDescription
AdsApp.LanguageSelector A selector for Language criteria.

platforms()

Specializes this selector to return Platform criteria.

Return values:

TypeDescription
AdsApp.PlatformSelector A selector for Platform criteria.

targetedLocations()

Specializes this selector to return TargetedLocation criteria.

Return values:

TypeDescription
AdsApp.TargetedLocationSelector A selector for TargetedLocation criteria.

targetedProximities()

Specializes this selector to return TargetedProximity criteria.

Return values:

TypeDescription
AdsApp.TargetedProximitySelector A selector for TargetedProximity criteria.