AdRocketCampaignCriterion adrocket_google_campaign_criterion_negative_label = AdRocketCampaignCriterion.builder()//
// .withResourceName(CampaignCriterionName.format(customer_id, campaign_id,
// Long.toString(tempIdGenerator.next())))//
.withCampaign(campaign_name)//
.withCriterionId(tempIdGenerator.next())//
.withIsNegative(true)//
.withParentalStatusInfo(ParentalStatusInfo.newBuilder().setType(parental_status).build())//
.withCriterionType(CriterionType.PARENTAL_STATUS)//
.build();
I am getting the following results:
Error Message for Operation Index: 19, Msg: 'The operation is not allowed for the given context., at mutate_operations[19].campaign_criterion_operation.create.parental_status', Code: INVALID_ARGUMENT
Am I missing something? It looks like all the other negative campaign criterion I am making, and those work.
Hello Andrew,
Thank you for reaching out to us.
So our team can better check on the issue, can you share to us the complete API logs (request and response with request-id)? In the Google Ads API, logging can be enabled by navigating to the Client libraries > Your client library (ex. Java) > Logging documentation, which you can access from this link.
Please send the requested details 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,
|
||||||