Update Bidding Strategy to TargetCPA

42 views
Skip to first unread message

Gagandeep Singh

unread,
Aug 9, 2022, 7:22:04 AM8/9/22
to Google Ads API and AdWords API Forum
Hi,

I try to update campaign bidding strategy to target_cpa but I got error "OPERATION_NOT_PERMITTED_FOR_CAMPAIGN_TYPE".

Request:
campaign_service = client.get_service("CampaignService")
campaign_operation = client.get_type("CampaignOperation")
campaign = campaign_operation.update
campaign.resource_name = campaign_service.campaign_path(customer_id, campaign_id)
target_cpa = campaign.target_cpa
target_cpa.target_cpa_micros = 50000000

Response:
operation_access_denied_error: OPERATION_NOT_PERMITTED_FOR_CAMPAIGN_TYPE

Google Ads API Forum Advisor

unread,
Aug 9, 2022, 9:25:35 AM8/9/22
to gagand...@gmail.com, adwor...@googlegroups.com

Hi Gagandeep,

Thanks for reaching out to the Google Ads API Forum.

Since you mentioned that while updating the bidding strategy, you encountered an ​​OPERATION_NOT_PERMITTED_FOR_CAMPAIGN_TYPE error, then for us to investigate further, could you please provide us with the complete request and response logs with the request-id generated in text format? You may enable logging so you’ll get complete request and response logs along with request-id by navigating to the Client libraries > Your client library (ex Java) > Logging documentation, which you can access from this link

Please provide the complete logs via reply privately to author option.

Regards,

Google Logo
Yasar
Google Ads API Team
 


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