I want to create ad that change the date every day. this is the script that I am running every day at 00:00:
var date_format = Utilities.formatDate(new Date(), "GMT", "dd/MM/y") var AD_GROUP_NAME = 'ארונות הזזה'; function main() { var adGroup = getAdGroup(AD_GROUP_NAME); var keywords = adGroup.keywords().get(); while (keywords.hasNext()) { var keyword = keywords.next(); keyword.setAdParam(1, date_format); } } function getAdGroup(name) { var adGroupIterator = AdWordsApp.adGroups() .withCondition('Name = "' + name + '"') .withLimit(1) .get(); if (adGroupIterator.hasNext()) { return adGroupIterator.next(); } } and in the ad I added a text that is including {param1}. This is not working, do you know why? Thank you, Omry. -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and Google+: https://googleadsdeveloper.blogspot.com/ https://plus.google.com/+GoogleAdsDevelopers/posts =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en --- You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/adwords-api. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/6e4c740a-6841-4dbe-806d-f62ed7cffc03%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.