CampaignConversionGoal cannot update biddable.

52 views
Skip to first unread message

Tohihiro Ogata

unread,
Nov 30, 2021, 12:32:12 AM11/30/21
to AdWords API and Google Ads API Forum
operation.campaign_conversion_goal.biddable cannot change to false.

How to change campaign_conversion_goal.biddable?

Why FieldMask's biddable do not effective, but FieldMask's campaign effective.

sample source. -------------------------------
      res = @service.resource.campaign_conversion_goal do |dat|
        dat.resource_name = campaign_conversion_goal.resource_name
        dat.campaign = campaign.resource_name
      end

      operation_data = @service.operation.update_resource.campaign_conversion_goal(res) do |dat|
        dat.biddable = false
      end
sample source end. -------------------------------
operation_data's dump.(ids masked)
<Google::Ads::GoogleAds::V9::Services::CampaignConversionGoalOperation: update_mask: <Google::Protobuf::FieldMask: paths: []>, update: <Google::Ads::GoogleAds::V9::Resources::CampaignConversionGoal: resource_name: "customers/xxxxxxxx/campaignConversionGoals/xxxxxxxxxxx~DEFAULT~WEBSITE", campaign: "customers/xxxxxxxx/campaigns/xxxxxxxxx", category: :UNSPECIFIED, origin: :UNSPECIFIED, biddable: false>>

update_mask is wrong.  Why?


Tohihiro Ogata

unread,
Nov 30, 2021, 1:53:56 AM11/30/21
to AdWords API and Google Ads API Forum
Resolved!
changed sample source. -------------------------------
      res = @service.resource.campaign_conversion_goal do |dat|
        dat.resource_name = campaign_conversion_goal.resource_name
        dat.campaign = campaign.resource_name
      end

      operation_data = @service.operation.update_resource.campaign_conversion_goal(res) do |dat|
        dat.biddable = true
      end
res.biddable = false
sample source end. -------------------------------

FieldMask is OK.biddable is included.

2021年11月30日火曜日 14:32:12 UTC+9 Tohihiro Ogata:

Google Ads API Forum Advisor

unread,
Dec 1, 2021, 8:49:50 AM12/1/21
to og...@atara.co.jp, adwor...@googlegroups.com

Hi Tohihiro,

It appears that you solved your issue, do you need any assistance with Google Ads API? If so, could you privately send us a request and response log of API communication that demonstrates the issue?  The request and response appears similar to the JSON Mappings in our REST documentation. Our client libraries have loggers with logging instructions, to see these instructions you can click on the client library you use in the sidebar of our client library guide and click on "Logging". Setting the logger to 'DEBUG' will get the desired log. 

You may 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.

Reminder: Share your feedback about the Google Ads (AdWords) API! Take the 2021 Google Ads API and AdWords API Annual Survey
 
Regards,

Google Logo
Aryeh Baker
Google Ads API Team
 


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