Issues modifying targets bids adjustments for Display campaign

48 views
Skip to first unread message

di...@easyleads.com

unread,
Feb 23, 2016, 1:11:55 AM2/23/16
to AdWords API Forum
Hi,

In the AdWords I'm able to set bid adjustments for Placements, Topics, Interests and Demographics - http://oi68.tinypic.com/33z2o12.jpg

But I can't figure out how to modify it via API. I didn't find an example, so I assumed that since all the targets are Criterions just like Mobile I can use the same code as for modifying mobile bid adjustment. But it fails.

For demographics (10 - Gender.Male, 503001 - AgeRange.18to24, 300 - ParentalStatus.Parent) it fails with CANNOT_BID_MODIFY_CRITERION_TYPE. For the rest (Placements, Topics, Interests) it fails with UNEXPECTED_INTERNAL_API_ERROR.

I'm using Java library v201509 (I know you released a new version recently).

Code:
Long adGroupId = XXXXXXXX;
Long criterionId = 10;

AdWordsServices services = new AdWordsServices();
AdGroupBidModifierServiceInterface adGroupBidModifierService = services.get(adwordsSession, AdGroupBidModifierServiceInterface.class);

Criterion criterion = new  Criterion();
criterion.setId(criterionId);

AdGroupBidModifier modifier = new AdGroupBidModifier();
modifier.setAdGroupId(adGroupId);
modifier.setCriterion(criterion);
modifier.setBidModifier(2);

AdGroupBidModifierOperation operation = new AdGroupBidModifierOperation();
operation.setOperand(modifier);
operation.setOperator(Operator.SET);

AdGroupBidModifierReturnValue result = adGroupBidModifierService.mutate(new AdGroupBidModifierOperation[] {operation});


What am I doing wrong and what is the correct way?

Thanks

Anthony Madrigal

unread,
Feb 23, 2016, 10:05:51 AM2/23/16
to AdWords API Forum
Hi,

If you could please reply privately to author your SOAP request and response that caused this error, I will take a look at the issue.

Thanks,
Anthony
AdWords API Team
Reply all
Reply to author
Forward
0 new messages