*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

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/f32e7d12-5ca2-479d-b457-98990ff16cfcn%40googlegroups.com.

Reply via email to