added retrials concept and skipping curl command for adgroups with no image upload