AdsApp.VideoCampaignTargeting
Stay organized with collections
Save and categorize content based on your preferences.
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:
adSchedules()
Specializes this selector to return
AdSchedule criteria.
Return values:
excludedContentLabels()
Specializes this selector to return
ExcludedContentLabel criteria.
Return values:
excludedLocations()
Specializes this selector to return
ExcludedLocation criteria.
Return values:
languages()
Specializes this selector to return
Language criteria.
Return values:
Specializes this selector to return
Platform criteria.
Return values:
targetedLocations()
Specializes this selector to return
TargetedLocation criteria.
Return values:
targetedProximities()
Specializes this selector to return
TargetedProximity criteria.
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\u003eAccess and manage targeting criteria for video campaigns programmatically.\u003c/p\u003e\n"],["\u003cp\u003eUtilize methods like \u003ccode\u003eadSchedules\u003c/code\u003e, \u003ccode\u003eexcludedContentLabels\u003c/code\u003e, and \u003ccode\u003elanguages\u003c/code\u003e to refine targeting.\u003c/p\u003e\n"],["\u003cp\u003eSelectors like \u003ccode\u003eAdsApp.AdScheduleSelector\u003c/code\u003e allow you to retrieve specific criteria for your campaigns.\u003c/p\u003e\n"],["\u003cp\u003eControl various aspects of your video campaign targeting, such as location, language, and platform.\u003c/p\u003e\n"],["\u003cp\u003eLeverage Google Ads scripts to efficiently iterate through and modify targeting settings for all your video campaigns.\u003c/p\u003e\n"]]],[],null,["# AdsApp.VideoCampaignTargeting\n\nAccess to the targeting criteria for video campaigns.\n\nFor example, to select the ad schedules for all video campaigns:\n\n```gdscript\nvar adSchedules = AdsApp.videoCampaignTargeting().adSchedules().get();\nwhile (adSchedules.hasNext()) {\n var adSchedule = adSchedules.next();\n}\n```\n\n### Methods:\n\n| Member | Type | Description |\n|---------------------------------------------------|----------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------|\n| [adSchedules()](#adSchedules) | [AdsApp.AdScheduleSelector](/google-ads/scripts/docs/reference/adsapp/adsapp_adscheduleselector) | Specializes this selector to return [AdSchedule](/google-ads/scripts/docs/reference/adsapp/adsapp_adschedule) criteria. |\n| [excludedContentLabels()](#excludedContentLabels) | [AdsApp.ExcludedContentLabelSelector](/google-ads/scripts/docs/reference/adsapp/adsapp_excludedcontentlabelselector) | Specializes this selector to return [ExcludedContentLabel](/google-ads/scripts/docs/reference/adsapp/adsapp_excludedcontentlabel) criteria. |\n| [excludedLocations()](#excludedLocations) | [AdsApp.ExcludedLocationSelector](/google-ads/scripts/docs/reference/adsapp/adsapp_excludedlocationselector) | Specializes this selector to return [ExcludedLocation](/google-ads/scripts/docs/reference/adsapp/adsapp_excludedlocation) criteria. |\n| [languages()](#languages) | [AdsApp.LanguageSelector](/google-ads/scripts/docs/reference/adsapp/adsapp_languageselector) | Specializes this selector to return [Language](/google-ads/scripts/docs/reference/adsapp/adsapp_language) criteria. |\n| [platforms()](#platforms) | [AdsApp.PlatformSelector](/google-ads/scripts/docs/reference/adsapp/adsapp_platformselector) | Specializes this selector to return [Platform](/google-ads/scripts/docs/reference/adsapp/adsapp_platform) criteria. |\n| [targetedLocations()](#targetedLocations) | [AdsApp.TargetedLocationSelector](/google-ads/scripts/docs/reference/adsapp/adsapp_targetedlocationselector) | Specializes this selector to return [TargetedLocation](/google-ads/scripts/docs/reference/adsapp/adsapp_targetedlocation) criteria. |\n| [targetedProximities()](#targetedProximities) | [AdsApp.TargetedProximitySelector](/google-ads/scripts/docs/reference/adsapp/adsapp_targetedproximityselector) | Specializes this selector to return [TargetedProximity](/google-ads/scripts/docs/reference/adsapp/adsapp_targetedproximity) criteria. |\n\n`adSchedules()`\n---------------\n\nSpecializes this selector to return [AdSchedule](/google-ads/scripts/docs/reference/adsapp/adsapp_adschedule) criteria.\n\n### Return values:\n\n| Type | Description |\n|--------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------|\n| [AdsApp.AdScheduleSelector](/google-ads/scripts/docs/reference/adsapp/adsapp_adscheduleselector) | A selector for [AdSchedule](/google-ads/scripts/docs/reference/adsapp/adsapp_adschedule) criteria. |\n\n`excludedContentLabels()`\n-------------------------\n\nSpecializes this selector to return [ExcludedContentLabel](/google-ads/scripts/docs/reference/adsapp/adsapp_excludedcontentlabel) criteria.\n\n### Return values:\n\n| Type | Description |\n|----------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------|\n| [AdsApp.ExcludedContentLabelSelector](/google-ads/scripts/docs/reference/adsapp/adsapp_excludedcontentlabelselector) | A selector for [ExcludedContentLabel](/google-ads/scripts/docs/reference/adsapp/adsapp_excludedcontentlabel) criteria. |\n\n`excludedLocations()`\n---------------------\n\nSpecializes this selector to return [ExcludedLocation](/google-ads/scripts/docs/reference/adsapp/adsapp_excludedlocation) criteria.\n\n### Return values:\n\n| Type | Description |\n|--------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------|\n| [AdsApp.ExcludedLocationSelector](/google-ads/scripts/docs/reference/adsapp/adsapp_excludedlocationselector) | A selector for [ExcludedLocation](/google-ads/scripts/docs/reference/adsapp/adsapp_excludedlocation) criteria. |\n\n`languages()`\n-------------\n\nSpecializes this selector to return [Language](/google-ads/scripts/docs/reference/adsapp/adsapp_language) criteria.\n\n### Return values:\n\n| Type | Description |\n|----------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------|\n| [AdsApp.LanguageSelector](/google-ads/scripts/docs/reference/adsapp/adsapp_languageselector) | A selector for [Language](/google-ads/scripts/docs/reference/adsapp/adsapp_language) criteria. |\n\n`platforms()`\n-------------\n\nSpecializes this selector to return [Platform](/google-ads/scripts/docs/reference/adsapp/adsapp_platform) criteria.\n\n### Return values:\n\n| Type | Description |\n|----------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------|\n| [AdsApp.PlatformSelector](/google-ads/scripts/docs/reference/adsapp/adsapp_platformselector) | A selector for [Platform](/google-ads/scripts/docs/reference/adsapp/adsapp_platform) criteria. |\n\n`targetedLocations()`\n---------------------\n\nSpecializes this selector to return [TargetedLocation](/google-ads/scripts/docs/reference/adsapp/adsapp_targetedlocation) criteria.\n\n### Return values:\n\n| Type | Description |\n|--------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------|\n| [AdsApp.TargetedLocationSelector](/google-ads/scripts/docs/reference/adsapp/adsapp_targetedlocationselector) | A selector for [TargetedLocation](/google-ads/scripts/docs/reference/adsapp/adsapp_targetedlocation) criteria. |\n\n`targetedProximities()`\n-----------------------\n\nSpecializes this selector to return [TargetedProximity](/google-ads/scripts/docs/reference/adsapp/adsapp_targetedproximity) criteria.\n\n### Return values:\n\n| Type | Description |\n|----------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------|\n| [AdsApp.TargetedProximitySelector](/google-ads/scripts/docs/reference/adsapp/adsapp_targetedproximityselector) | A selector for [TargetedProximity](/google-ads/scripts/docs/reference/adsapp/adsapp_targetedproximity) criteria. |"]]