I'm afraid its not possible to add bid modifiers for Gender and AgeRange criterion at the Campaign level. You can only exclude these criteria at the campaign level by adding a
NegativeCampaignCriterion. This
table shows the targeting and bidding options available for different criterion types both at AdGroup levArl and Campaign level. You will be able to set the campaign level bid adjustments using the
CampaignCriterionService and
CampaignBidModifierService mutate operation for other criteria types. You may refer to this
guide and the
code sample for adding, updating and removing bid adjustments. Let me know if you have any other questions.