Mutate ad group mobile bid adjustment in a single request

73 views
Skip to first unread message

di...@easyleads.com

unread,
Jun 15, 2016, 11:36:39 AM6/15/16
to AdWords API Forum
Hi,

I can't find a way to update mobile bid adjustment of ad group in single mutate operation.

First of all I read the current bid adjustment using AdGroupBidModifierServiceInterface. I get a value which is defined on ad group level, and if it's undefined I get a value of campaign level. Don't see a way how to recognize on which level it's defined.

After that I want to update it using AdGroupBidModifierOperation. 

If I use operator SET and the modifier is not defined on the ad group level it will fail.

If I use operator ADD and the modifier is defined on the ad group level it will fail.

Hence, I use ADD operator, and if it fails I send the same request with SET operator.

I see 2 possible ways to solve it, but didn't find a way to do it in the API (java):

1. Somehow to recognize whether the current bid is defined for ad group or campaign (theoretically I can make an extra query to retrieve the relevant campaign's modifier and compare it, but in this way I don't save the extra call).

2. In the mutate operation somehow to force it to update the modifier if it exists or to add in case it doesn't. I.e, a combination of ADD and SET.

We have an automatic algorithm that finds optimal bids and bid adjustment, so we perform these operations a lot.

Any help will be much appreciated.

Thanks

Shwetha Vastrad (AdWords API Team)

unread,
Jun 15, 2016, 4:58:41 PM6/15/16
to AdWords API Forum
Hi,

If you are using AdGroupBidModifierService to get the list of BidModifiers, the source of the modifier will be available in the BidModifierSource. This field can be populated by including "BidModifierSource" in the selector. Once you identify the source of the BidModifier, you can either add a new one at the AdGroup level if there isn't one, or set the BidModifier if it already exists at the AdGroup level.

Regards,
Shwetha, AdWords API Team.

di...@easyleads.com

unread,
Jun 17, 2016, 12:48:53 AM6/17/16
to AdWords API Forum
Thanks!
Reply all
Reply to author
Forward
0 new messages