is it possible for Ad Group Bid increase and decrease to a specific criteria like gender and age range?

320 views
Skip to first unread message

ken...@blvnp.com

unread,
Dec 4, 2017, 4:14:04 AM12/4/17
to AdWords API Forum
I have already implemented google adwords API. 

I am using Google Adwords API PHP library.

Things that are possible that I have done:
- Get list of Campaigns
- Get list of Ad groups in a campaign
- Remove a Campaign
- Remove a Ad group
- Increase or decrease bid on campaign with platform
- Get list of bid modifiers of campaigns and ad groups
- exclude and include locations in a campaign
- exclude and include gender or age range in a campaign

This that I cannot find:
- Increase or decrease bid on ad group demographic criteria such as gender/age range

If its possible, can you point me on the right direction? or give me a simple example, it would be great help. Thanks in advance!

Matthew Wawrin

unread,
Dec 4, 2017, 10:05:40 AM12/4/17
to AdWords API Forum
Hi,

You can use the bidModifier value in the BiddableAdGroupCriterion service, with the criterion being the demographic you want to target and adjust bids on (gender/age range).   


The example adds a criterion for Male.   You can extend this example by calling setBidModifier with the % modifier of the AdGroups bid value.   As an example, we're bidding +20% on Desktop (Computers) platforms. 


For the API support folks, from the URL above, the link to the 'bidModifer attribute of BiddableAdGroupCriterion' page (https://developers.google.com/adwords/api/docs/guides/%7B%7B%20adgroup_criterion_service%20%7D.BiddableAdGroupCriterion#bidmodifier) is giving a 404.

I hope this helps.  

Matt.

Sreelakshmi Sasidharan (AdWords API Team)

unread,
Dec 4, 2017, 1:43:24 PM12/4/17
to AdWords API Forum
Hi Kendan,

As Matt explained, to apply bid adjustments to the age/gender, you can use AdGroupCriterionService and set the bidModifier attribute with the adjustment. The guide on bid modifiers explains that in detail. Please give that a try and let us know if you face any issues.

Matt, 
Thanks a lot for pointing out the broken link. I'll inform the team to get that fixed. 

Thanks,
Sreelakshmi, AdWords API Team

ken...@blvnp.com

unread,
Dec 6, 2017, 1:55:58 AM12/6/17
to AdWords API Forum
This example is for mobile platforms. I tried it and work perfectly.
Now my problem is I do not know which class is being used to set bid for gender.

Sreelakshmi Sasidharan (AdWords API Team)

unread,
Dec 6, 2017, 11:20:43 AM12/6/17
to AdWords API Forum
Hi, 

As described in the previous response, you will need to use the  AdGroupCriterionService and set the bidModifier attribute as shown in the code snippet below :

    $adGroupCriterionService = $adWordsServices->get($session, AdGroupCriterionService::class);
    $operations
= [];

    $genderTarget
= new Gender();
    $genderTarget
->setId(10);
    $genderBiddableAdGroupCriterion
= new BiddableAdGroupCriterion();
    $genderBiddableAdGroupCriterion
->setAdGroupId($adGroupId);
    $genderBiddableAdGroupCriterion
->setCriterion($genderTarget);
    $genderBiddableAdGroupCriterion
->setBidModifier(1.1);

    $genderBiddableAdGroupCriterionOperation
= new AdGroupCriterionOperation();
    $genderBiddableAdGroupCriterionOperation
->setOperand($genderBiddableAdGroupCriterion);
    $genderBiddableAdGroupCriterionOperation
->setOperator(Operator::SET);
    $operations
[] = $genderBiddableAdGroupCriterionOperation;  
   
    $result
= $adGroupCriterionService->mutate($operations);

Let me know if you face any issues while trying this out. 
Reply all
Reply to author
Forward
0 new messages