Google Ads Script – Youtube Channel Excluder – MCC ACCOUNT VERSION
Introduction
Introducing the MCC version of the “Bad YouTube Channels Excluder Script,” developed by Joel Björnfors at NordicBranch. This enhanced version is specifically designed for marketing professionals managing multiple Google Ads accounts, streamlining ad placements across all managed accounts by automatically excluding YouTube channels with non-English characters.
What the Script Does
The MCC version of the “Bad YouTube Channels Excluder Script” allows you to apply a consistent exclusion rule across multiple client accounts efficiently. It automatically identifies and excludes YouTube channels featuring non-English characters in their channel names, ensuring that all client campaigns maintain ad placement relevance and language consistency.
Key Features
- Broad Coverage: Applies exclusions across all accounts within an MCC, ensuring uniform ad placement standards.
- Automated Exclusion Process: Enhances campaign management by automating the exclusion of irrelevant channels, reducing manual workload.
- Multi-Account Efficiency: Perfect for agencies or professionals managing multiple accounts, providing a centralized script solution.
Benefits of Using the Script
- Scalability: Easily scales with your agency’s client base, managing ad placements across numerous accounts without the need for individual account adjustments.
- Enhanced Client Satisfaction: Improves client campaign effectiveness by maintaining ad relevance, which can lead to better engagement and ROI.
- Reduced Management Overhead: Minimizes the time and effort spent on manual campaign adjustments across client portfolios.
- Consistency Across Accounts: Ensures consistent ad placement standards are applied across all managed accounts, which is crucial for agencies handling diverse client needs.
- Language Relevance: Avoids the risk of ads appearing on channels that do not align with the target audience’s language preferences, crucial for maintaining campaign quality at scale.
- Resource Management: Reduces the strain on resources by automating routine tasks, allowing teams to focus on strategic activities and client relations.
Implementing the Script
To integrate the MCC version of the “Bad YouTube Channels Excluder Script” into your MCC account:
- Access Google Ads Scripts: In your MCC dashboard, go to ‘Tools & Settings’ > ‘Bulk Actions’ > ‘Scripts’.
- Deploy the Script: Copy the script code and paste it into the new script editor in your MCC account.
- Label Accounts: create account label with the label ‘scripting’ and apply to the accounts where you want the script to run
- Set Scheduling: Authorize and schedule the script to run at regular intervals to ensure ongoing exclusion across all accounts.
Conclusion
Elevate your agency’s digital advertising efficiency with the MCC version of the “Bad YouTube Channels Excluder Script.” By implementing this script, you can ensure that all client ads are displayed in the most appropriate and effective environments. Start leveraging this advanced solution to optimize your campaign management and enhance client outcomes.
The script
/**
* ------------------------------------------------------------------------------------------
* Bad YouTube Channels Excluder Script MCC 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() {
var labelName = 'scripting'
var accountSelector = AdsManagerApp.accounts()
.withLimit(50)
.withCondition('LabelNames CONTAINS "' + labelName + '"')
// .withCondition("Impressions > 100")
//.forDateRange("LAST_7_DAYS")
// .orderBy("Clicks DESC");
accountSelector.executeInParallel("accountOperation");
}
// -------------------------------------------------------
function accountOperation(){
<!-------- 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();
}
}
// Logger.log(videoCampaignIterator.totalNumEntities())
}