Negative Parental Status problems.

21 views
Skip to first unread message

Andrew Towe

unread,
Jan 4, 2022, 5:46:20 PM1/4/22
to AdWords API and Google Ads API Forum
Hello I am creating negative Parental status criterion. My Code looks like this:

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.  

Google Ads API Forum Advisor

unread,
Jan 4, 2022, 8:44:33 PM1/4/22
to andre...@retailerwebservices.com, adwor...@googlegroups.com

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,

Google Logo
Mark Kevin Albios
Google Ads API Team
 


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