How to set different bidding adjustments in different time periods?

21 views
Skip to first unread message

Kieran Eddy

unread,
Mar 21, 2022, 12:32:11 AM3/21/22
to Google Ads API and AdWords API Forum
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_name2022-03-21 12-30-44屏幕截图.png

Google Ads API Forum Advisor

unread,
Mar 21, 2022, 9:25:10 AM3/21/22
to 05292...@gmail.com, adwor...@googlegroups.com

Hi there,

Thanks for reaching out to the Google Ads API Forum.

Could you please provide us with the complete request and response logs with the request-id generated while setting different bidding adjustments using CampaignBidModifierOperation, so our team can better check?

For the client library, logging can be enabled by navigating to the Client libraries > Your client library (ex Python) > Logging documentation, which you can access from this link. You may then send the requested information via the Reply privately to author option. If this option is not available, you may send the details directly to our googleadsa...@google.com alias instead.

Regards,

Google Logo
Yasar
Google Ads API Team
 


ref:_00D1U1174p._5004Q2YplPz:ref
Reply all
Reply to author
Forward
0 new messages