I have attempted to set targetCPM bidding on a new campaign as below:
campaign_operation = client.get_type("CampaignOperation")
campaign = campaign_operation.create
campaign.name = 'bidding cpa12'
campaign.advertising_channel_type = (
client.enums.AdvertisingChannelTypeEnum.DISPLAY
)
campaign.status = client.enums.CampaignStatusEnum.PAUSED
empty_cpm = client.get_type('TargetCpm')
client.copy_from(campaign.target_cpm, empty_cpm)
However I am returned:
{
error_code {
operation_access_denied_error: OPERATION_NOT_PERMITTED_FOR_CAMPAIGN_TYPE
}
message: "This operation is not permitted on this campaign type"
trigger {
string_value: "DISPLAY"
}
Could someone please tell me the correct way to set TargetCPM on a Display campaign?
Many thanks