Google Ads Script – Youtube Channel Excluder – SINGLE ACCOUNT VERSION
Introduction
Introducing the “Bad YouTube Channels Excluder Script,” a straightforward solution designed by Joel Björnfors at NordicBranch. This script enhances the efficiency of your Google Ads by automatically excluding YouTube channels with non-English characters from your video campaigns.
What the Script Does
The “Bad YouTube Channels Excluder Script” targets a specific issue: ensuring that your ads don’t appear on YouTube channels with names containing non-English characters. This focus helps maintain the relevance of your ad placements, aligning them more closely with your intended audience.
Key Features
- Automatic Exclusion: Automatically filters out YouTube channels that may not match the language preferences of your target audience.
- Simple Setup: Easily integrates into your existing Google Ads account, requiring minimal setup to start working.
Benefits of Using the Script
- Improved Relevance: Keeps your ads from appearing on channels that are less likely to convert due to language barriers, enhancing the relevance of your placements.
- Cost Efficiency: Reduces wastage of your ad budget on placements that do not align with your target demographic, potentially improving your campaign’s ROI.
- Language Mismatch: Avoids the common pitfall of ads appearing on channels that do not match the viewer’s language, which can lead to poor engagement and wasted impressions.
- Campaign Management: Simplifies the management of your ad placements by removing the need for manual exclusions, saving you time and effort.
Implementing the Script
To start using the “Bad YouTube Channels Excluder Script” in your Google Ads account:
- Navigate to Scripts: Go to ‘Tools & Settings’ > ‘Bulk Actions’ > ‘Scripts’.
- Add New Script: Copy and paste the provided script into the script editor.
- Authorize and Run: Set the script to run at your preferred intervals to maintain consistent exclusion of unwanted channels
Conclusion
Optimize your video advertising by ensuring your ads only appear where they count. The “Bad YouTube Channels Excluder Script” is your simple, effective solution for maintaining campaign relevance and efficiency. Implement this script today to streamline your video advertising efforts.
The script
/**
* ------------------------------------------------------------------------------------------
* Bad YouTube Channels Excluder Script SINGLE ACCOUNT VERSION by Joel Björnfors - NordicBranch
* ------------------------------------------------------------------------------------------
* Optimize your video advertising efforts with the Bad YouTube Channels Excluder Script,
* innovatively developed by Joel Björnfors at NordicBranch. This tool is crafted to significantly
* enhance the accuracy of your ad placements by automatically excluding YouTube channels
* that feature non-English characters in their names.
*
* This exclusion helps ensure that your ads are only shown in environments that are relevant
* and appropriate for your target audience, thereby improving ad relevance and campaign performance.
* By filtering out unsuitable placements, this script maximizes your advertising efficiency
* and returns on investment.
*
* At NordicBranch, we are dedicated to pushing the boundaries of digital advertising with
* tailored automation solutions that leverage extensive industry insights and technological prowess,
* driving unparalleled ROI for your campaigns. This script is a testament to our commitment to
* excellence and innovation in the realm of video advertising.
*
* Why Choose Joel Björnfors and NordicBranch?
* - Innovation: Pioneering solutions in the dynamic landscape of digital ads.
* - Customization: Solutions crafted to meet your unique marketing needs.
* - Results: Proven track record of boosting campaign effectiveness and efficiency.
* - Support: Continued support and guidance to ensure your advertising success.
*
*
* Have ideas for enhancements or need to get in touch?
*
* Contact info:
* Mail: Joel@nordicbranch.com
* LinkedIn: www.linkedin.com/in/joel-björnfors-06628960
* Website: https://nordicbranch.com
* CSS signup : https://nordicbranch.shop/api/signup
* Connect with us for tailored solutions that drive your advertising forward.
* ------------------------------------------------------------------------------------------
*/
function main(){
<!-------- Use below when google implements it ---------!>
var videoCampaignSelector = AdsApp
.videoCampaigns()
.withCondition("campaign.status = ENABLED")
.withCondition("campaign.serving_status != 'ENDED'")
.forDateRange("LAST_7_DAYS")
.orderBy("Clicks ASC");
var videoCampaignIterator = videoCampaignSelector.get();
while (videoCampaignIterator.hasNext()) {
var videoCampaign = videoCampaignIterator.next();
Logger.log(videoCampaign.getName() )
var theSearch = AdsApp.search("SELECT group_placement_view.display_name, group_placement_view.placement, group_placement_view.placement_type, group_placement_view.resource_name, group_placement_view.target_url FROM group_placement_view WHERE group_placement_view.display_name REGEXP_MATCH '[^a-zA-Z0-9åäöÅÄÖ\.]+'")
while (theSearch.hasNext()) {
var youTubeChannel = theSearch.next();
var badchannelplacement = youTubeChannel.groupPlacementView.placement
var BadChannelResourceName = youTubeChannel.groupPlacementView.resourceName
var BadChanneldisplayName = youTubeChannel.groupPlacementView.displayName
var badChannel = youTubeChannel.groupPlacementView
var youTubeChannelBuilder = videoCampaign.videoTargeting().newYouTubeChannelBuilder()
var youTubeChannelOperation = youTubeChannelBuilder.withChannelId(badchannelplacement).exclude();
}
}
}