How to modify Target CPM ?

210 views
Skip to first unread message

Klaudia Pietrzyk

unread,
Mar 22, 2021, 5:16:40 AM3/22/21
to AdWords API and Google Ads API Forum
   I tried to modify value for "Video Campaign"  for example in Google Adword UI I set 30 for Target CPm and I'd like to update it from api: 

bid ="100"
 ad_group_operation = client.get_type("AdGroupOperation", version="v6")
    ad_group = ad_group_operation.update
    ad_group.resource_name = ad_group_service.ad_group_path(
        customer_id, ad_group_id
    )
    ad_group.status = client.get_type("AdGroupStatusEnum", version="v6").PAUSED
    # rechabged value here cpc_bid_micros   target_cpm_micros cpm_bid_micros
    ad_group.target_cpm_micros = bid
    fm = protobuf_helpers.field_mask(None, ad_group)
    ad_group_operation.update_mask.CopyFrom(fm)


I don't know what I' m doing wrong I serached documentation but I didn;t find anything useful.

Google Ads API Forum Advisor Prod

unread,
Mar 22, 2021, 1:11:15 PM3/22/21
to klaudi...@gmail.com, adwor...@googlegroups.com
Hi Klaudia,

Video campaigns are not mutable in the API. You can only use reporting to get details on these campaigns. More details can be found here.

Regards,
Anthony

Google Logo
Anthony
Google Ads API Team
 


ref:_00D1U1174p._5004Q2DxeEF:ref

Klaudia Pietrzyk

unread,
Mar 22, 2021, 3:11:42 PM3/22/21
to AdWords API and Google Ads API Forum
Can you give me some advice? Is there any way to achieve this aim? 
For example via some script etc.. ?? 
 Because I understand if I'd try something via  below:
https://googleads.googleapis.com/v6/customers/xxxx/adGroups/ccccccc/adGroups:mutate
for video won't work but for another campaign its okay? 

Google Ads API Forum Advisor Prod

unread,
Mar 23, 2021, 9:14:17 AM3/23/21
to klaudi...@gmail.com, adwor...@googlegroups.com
Hello,

You will need to reach out to the Scripts team to see if this is possible through Google Ads Scripts. If it is not, then you will need to use the Google Ads UI to update these values. You can use the API to mutate other ad groups such as ones found in search or display campaigns.
Reply all
Reply to author
Forward
0 new messages