Hi Hiroyuki,
I’m using AW Scripts. I have seen this script along with a couple of others.
The problem with this script and its sister script on https://remkovanderzwaag.nl/blog/updated-adwords-script-auto-add-negative-keywords-dsa is that they add all keywords to lists of -ve kws which are then applied to all campaigns.
Whilst the idea is sound in principle it does not scale. We have over 300k keywords – in lists of 5k that is over 60 lists – google’s limit is 20 lists.
We need a more scalable way of doing this.
--
-- You received this message because you are subscribed to the Google Groups AdWords Scripts Forum group. Please do not reply to this email. To post to this group or unsubscribe please visit https://developers.google.com/adwords/scripts/community.
---
You received this message because you are subscribed to the Google Groups "AdWords Scripts Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adwords-scrip...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-scripts/492f2abd-a92a-4de1-a6c8-b01f096bb9f3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Hiroyuk,
We are using lots of campaigns, set up as clusters of 3 campaigns for given organisations: BMM/Phrase/Exact – a relatively common way of ensuring keyword splits.
1 We need a script that runs daily and loops through all campaigns.
2 Exact kws appearing on BMM/Phrase campaign adgroups should be automatically moved across to the corresponding adgroup on the associated Exact campaign.
3 Phrase kws appearing on BMM campaign adgroups should be automatically moved across to the corresponding adgroup on the associated Phrase campaign.
4 All of the exact keywords from the Exact campaign should be added to BMM/Phrase as exact campaign negatives.
5 All of the phrase keywords from the phrase campaign should be added as phrase campaign negatives to the BMM campaign.
Each campaign name ends with BROAD, PHRASE, EXACT to indicate the kw types.
Thanks in advance.
From: Hiroyuki Miyauchi (AdWords Scripts Team) via AdWords Scripts Forum <adwords-scripts+APn2wQfnD0zes0cm...@googlegroups.com>
Sent: 09 May 2018 05:03
To: AdWords Scripts Forum <adwords...@googlegroups.com>
Subject: Re: Script to manage BMM/Phrase/Exact Campaign splits
Hello Del,
--
-- You received this message because you are subscribed to the Google Groups AdWords Scripts Forum group. Please do not reply to this email. To post to this group or unsubscribe please visit https://developers.google.com/adwords/scripts/community.
---
You received this message because you are subscribed to the Google Groups "AdWords Scripts Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adwords-scrip...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-scripts/8406e5c2-2108-45a9-90e3-04bf549e270c%40googlegroups.com.
// Fetch Exact match Keywords from Broad Campaigns
var exactKWs = AdWordsApp.keywords().withCondition("CampaignName CONTAINS 'BROAD' AND KeywordMatchType = EXACT").get(); Hi Hiroyuki,
I’m struggling to put this script together – could you help sketch out the main structure. I can hopefully pull it together from there…
From: Hiroyuki Miyauchi (AdWords Scripts Team) via AdWords Scripts Forum <adwords-scripts+APn2wQfnD0zes0cm...@googlegroups.com>
Sent: 10 May 2018 06:59
To: AdWords Scripts Forum <adwords...@googlegroups.com>
Subject: Re: Script to manage BMM/Phrase/Exact Campaign splits
Hello Del,
--
-- You received this message because you are subscribed to the Google Groups AdWords Scripts Forum group. Please do not reply to this email. To post to this group or unsubscribe please visit https://developers.google.com/adwords/scripts/community.
---
You received this message because you are subscribed to the Google Groups "AdWords Scripts Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adwords-scrip...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-scripts/6fadc2f0-dbdd-4cb1-b42e-56d7e83f8532%40googlegroups.com.
function main() {
// Fetch Exact Keywords from Broad Campaigns
var exactKWs = AdWordsApp.keywords().withCondition("CampaignName CONTAINS 'BROAD' AND KeywordMatchType = EXACT").get();
// Fetch AdGroup to add the keyword (Exact Campaign)
var adGroupIterator = AdWordsApp.adGroups().withCondition("CampaignName CONTAINS 'EXACT' AND Name = 'INSERT_ADGROUP_NAME_HERE'").get();
if (exactKWs.hasNext() && adGroupIterator.hasNext()) {
var adGroup = adGroupIterator.next();
// Loop the Keywords
while (exactKWs.hasNext()){
var exactKW = exactKWs.next();
// Add the Keyword to adgroup on the associated Exact campaign
var keywordOperation = adGroup.newKeywordBuilder().withText(exactKW.getText()).build();
// Remove the Keyword from Broad campaign
if(keywordOperation.isSuccessful()){
exactKW.remove();
}
}
}
}/****************************campaign.createNegativeKeyword(keyword);campaign.createNegativeKeyword(keyword.getText()); // Get exact keywords from bmm and phrase campaigns var exactKeywords1 = getKeywords(bmmCampaignName, exactIdentifier); var exactKeywords2 = getKeywords(phraseCampaignName, exactIdentifier); exactKeywordNo = (exactKeywords1.totalNumEntities() > 0) ? exactKeywords1.totalNumEntities() : exactKeywords2.totalNumEntities(); Logger.log("No of exact keywords: " + exactKeywordNo);