|
||||||
--
-- 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 a topic in the Google Groups "Google Ads Scripts Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/adwords-scripts/V8wCWgJtoYs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to adwords-scrip...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-scripts/yImg4000000000000000000000000000000000000000000000RDX4DN00g9hShCZpTDqE3regq4tqOA%40sfdc.net.
Martha Landesman
Digital Marketing Manager M: +33 6 70 59 38 18
function main() { var spreadsheet = SpreadsheetApp.openByUrl('https://docs.google.com/spreadsheets/d/1GZ6gyubXMHVb9vuIXku8Tb40OfFuJcuynCbJ8U22jCE/edit#gid=0'); // var sheet = spreadsheet.getSheetByName('Sheet1'); var startRow=2; var rg= sheet.getDataRange(); var vA=rg.getValues(); for(var i=1;i<vA.length;i++) { var searchId = vA[i][0]; console.log("Seaching Adgroupd with " + searchId); var adGroupSelector = AdsApp .adGroups() .withCondition("ad_group.name LIKE'" + searchId + "'") ; var adGroupIterator = adGroupSelector.get(); while (adGroupIterator.hasNext()) { var adGroup = adGroupIterator.next(); Logger.log("Pausing AdGroup: " + adGroup.getName()); adGroup.pause(); } } }
--
-- 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 a topic in the Google Groups "Google Ads Scripts Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/adwords-scripts/V8wCWgJtoYs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to adwords-scrip...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-scripts/We54H000000000000000000000000000000000000000000000RE6DWC0091Rr2UyIROGnrhMl0B9DqQ%40sfdc.net.
Hello Martha,
I’m James, a colleague of Teejay. Allow me to assist you further.
You mentioned that the script doesn’t seem to work when you do a preview. By mentioning the term preview, are you pertaining to the preview mode of the Google Ads scripts? I asked this because if the script has been executed in preview mode, they make no changes to the actual ad group data. Instead, script execution shows the changes that would have been made had the script been executing. However, I misunderstood your concern, then can you please provide more context with the issue you encounter while previewing along with your CID and script so that we can re-assess further?
As per checking with the given script, I believe that this should be implemented at account level because I observed that its code construction is only applicable at account level.
Regarding your last question, I don’t see any typographical errors within the given script. For the given instance, LIKE operator is supported as per our documentation.
Regards,
|
||||||
--
-- 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 a topic in the Google Groups "Google Ads Scripts Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/adwords-scripts/V8wCWgJtoYs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to adwords-scrip...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-scripts/e661c2be-dff1-44ed-b0af-acd990e4878fn%40googlegroups.com.