Logic for Amazon Advertising API