Dear Community I am using a very simple script to refresh my google ads campaign, which works, but the action upload.apply() is not blocking.
This means any dependant data in GoogleCampaignData.csv is not processed before GoogleAdGroups.csv etc etc. Is there a way around this? Many thanks Gregs function main() { var file = DriveApp.getFilesByName("GoogleCampaignData.csv").next(); var upload = AdWordsApp.bulkUploads().newFileUpload(file); Logger.log(file.getName()); upload.forCampaignManagement(); upload.apply(); var file = DriveApp.getFilesByName("GoogleAdGroups.csv").next(); var upload = AdWordsApp.bulkUploads().newFileUpload(file); Logger.log(file.getName()); upload.forCampaignManagement(); upload.apply(); var file = DriveApp.getFilesByName("GoogleAds.csv").next(); var upload = AdWordsApp.bulkUploads().newFileUpload(file); Logger.log(file.getName()); upload.forCampaignManagement(); upload.apply(); var file = DriveApp.getFilesByName("BaseKeyWords.csv").next(); var upload = AdWordsApp.bulkUploads().newFileUpload(file); Logger.log(file.getName()); upload.forCampaignManagement(); upload.apply(); var file = DriveApp.getFilesByName("ModelVariances.csv").next(); var upload = AdWordsApp.bulkUploads().newFileUpload(file); Logger.log(file.getName()); upload.forCampaignManagement(); upload.apply(); var file = DriveApp.getFilesByName("ModelVariancesSuggestions.csv").next(); var upload = AdWordsApp.bulkUploads().newFileUpload(file); Logger.log(file.getName()); upload.forCampaignManagement(); upload.apply(); var file = DriveApp.getFilesByName("SuggestionKeywords.csv").next(); var upload = AdWordsApp.bulkUploads().newFileUpload(file); Logger.log(file.getName()); upload.forCampaignManagement(); upload.apply(); var file = DriveApp.getFilesByName("GooglePriceExtention.csv").next(); var upload = AdWordsApp.bulkUploads().newFileUpload(file); Logger.log(file.getName()); upload.forCampaignManagement(); upload.apply(); } -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog: https://googleadsdeveloper.blogspot.com/ =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads 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 and Google Ads API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/c7efa728-fd0c-463d-b203-1233000d4609%40googlegroups.com.