Adjusting Targeting Country Bid Modifier at the Campaign Level

44 views
Skip to first unread message

Ben Johnson

unread,
May 22, 2019, 3:51:54 AM5/22/19
to AdWords API and Google Ads API Forum
Hello,

I was wondering if it is possible to add a bid modifier to a campaign for a specific geo target?

With device I can adjust a bid modifier on a specific device criteriaId, is this possible with locations as well?

Similar to what is done here:
https://developers.google.com/google-ads/api/docs/samples/add-campaign-bid-modifier

But use setResourceName for a specific Campaign Modifer resource with a locationId.

Google Ads API Forum Advisor Prod

unread,
May 22, 2019, 6:14:09 AM5/22/19
to adwor...@googlegroups.com

Hi Ben,

Thank you for reaching out. Yes, this is possible in the API. To achieve this, you need to create a campaign criterion using the CampaignCriterionService.MutateCampaignCriteria() method and set type equal to LOCATION. After successfully creating this campaign criterion, you may then associate your campaign bid modifier to this campaign criterion.

Let me know if this helps. Feel free to write back if you have further clarifications.

Regards,
Dave
Google Ads API Team



ref:_00D1U1174p._5001UAqK1L:ref

Ben Johnson

unread,
May 22, 2019, 1:02:40 PM5/22/19
to AdWords API and Google Ads API Forum
Thanks! The following worked for me:

String criteriaResourceName = CampaignCriterionServiceClient.formatCampaignCriteriaName(String.valueOf(customerId), campaignId + "~" + criteria);

CampaignCriterion.Builder criterionBuilder =
            CampaignCriterion.newBuilder()
                .setResourceName(criteriaResourceName)
                .setBidModifier(FloatValue.of(modifier));

CampaignCriterion criterion = criterionBuilder.build();


return CampaignCriterionOperation.newBuilder()
            .setUpdate(criterion)
            .setUpdateMask(FieldMasks.allSetFieldsOf(criterion))
            .build();
Reply all
Reply to author
Forward
0 new messages