Assign Selective Optimisation Conversion Actions to Google App Campaign

98 views
Skip to first unread message

Campbell Bartlett

unread,
Jun 2, 2022, 2:03:18 AM6/2/22
to Google Ads API and AdWords API Forum

Hi,

We are trying to assign conversion actions to a GAC campaign via selective optimisation but we are getting the following response:

 Caused by: com.google.ads.googleads.v10.errors.GoogleAdsException: errors {
  error_code {
    request_error: UNKNOWN
  }
  message: "The error code is not in this version."
  trigger {
    string_value: "ConversionTypeId: 926725127"
  }
  location {
    field_path_elements {
      field_name: "operations"
      index: 0
    }
    field_path_elements {
      field_name: "create"
    }
    field_path_elements {
      field_name: "selective_optimization"
    }
    field_path_elements {
      field_name: "conversion_actions"
    }
  }
}
request_id: "cFHZa6N_j4r-DEzeXMPpEw"

Here is how we are making the request (using the Java v10 SDK):

Campaign.newBuilder()
  .setName("test")
  .setCampaignBudget("customers/REDACTED/campaignBudgets/REDACTED")
  .setStatus(CampaignStatusEnum.CampaignStatus.PAUSED)
  .setAdvertisingChannelType(AdvertisingChannelType.MULTI_CHANNEL)
  .setAdvertisingChannelSubType(AdvertisingChannelSubType.APP_CAMPAIGN)
  .setSelectiveOptimization(
      SelectiveOptimization.newBuilder()
    .addAllConversionActions(List.of("customers/REDACTED/conversionActions/REDACTED")).build());

var appCampaign = appCampaignBuilder.build();
var createOp = CampaignOperation.newBuilder().setCreate(appCampaign).build();
googleAdsSdkClient.mutateCampaigns("REDACTED", List.of(createOp));


Are you able to advise what we are doing wrong or what the real error might be?

Cheers,
Campbell

Google Ads API and AdWords API Forum

unread,
Jun 9, 2022, 11:44:03 AM6/9/22
to Google Ads API and AdWords API Forum
Hello Campbell,

Apologies for the late reply. We had a glitch where this one was missed. Maybe the forum needed a coffee to wake it up! :-)

Thank you for providing the request ID and logging with important info redacted in a question like this. It makes it much easier to look up. I see that our back-end is saying: CampaignError.SELECTIVE_OPTIMIZATION_CONVERSION_TYPE_OWNER_ACCOUNT_INVALID As you already see, it's referring to field_path: "operations[0].create.selective_optimization.conversion_actions" 

I took a look into the account where I think this request was made. I don't see that conversion action ID in that account. Please double-check the conversion action ID to make sure it's in that account and retry the request. Perhaps, you meant to use another conversion action or a different account with that request. If the request doesn't work after trying again, please reply to this thread or reply privately to author.

Thanks,
Nadine Wang, Google Ads API Team
Reply all
Reply to author
Forward
0 new messages