def bid(client, customer_id, campaign_resource_name, bidData):
campaign_bm_service= client.get_service("CampaignBidModifierService")
campaign_bid_modifier_operation =
client.get_type("CampaignBidModifierOperation" )
campaign_bid_modifier = campaign_bid_modifier_operation.update
campaign_bid_modifier.campaign = campaign_resource_name
campaign_bid_modifier.bid_modifier =float(bidData)
client.copy_from(
campaign_bid_modifier_operation.update_mask,
protobuf_helpers.field_mask(None, campaign_bid_modifier._pb),
)
print(1111111111111111111111111111111)
response =campaign_bm_service.mutate_campaign_bid_modifiers(
customer_id=customer_id, operations=[campaign_bid_modifier_operation]
)
print(222222222222222222222222222222222222222222222)
resource_name = response.results[0].resource_name
return resource_name[image: 2022-03-21 12-30-44屏幕截图.png]
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/f079f353-55cf-47c7-84e2-aadd4a38bbeen%40googlegroups.com.