You can set the default affiliate button URL in Catalog Settings > Affiliate Button:
You can set any URL for your affiliate buttons. This way, you can quickly assign the same URL for each product.
As an addition, you can force the default URL even if the URL is cleared for the product with the ‘Use default if empty’ checkbox:
This way, the affiliate button URL will be set to the default value even if you set it to an empty string.