How to set up "Bid only" option in a display network campaing

110 views
Skip to first unread message

Kim Pham

unread,
Jan 20, 2014, 9:10:42 AM1/20/14
to adwor...@googlegroups.com
Hello everyone,

We would like to use diffrent targettings for a display network campaign. For exemple, to use keyword display and to add the placements for an adgroup => our ads will be display on the placements automatic thanks to a list of keywords, and ALSO on the placements added for each adgroups.

I am looking for how to set up automatically the option "bid only" in API for a display network campaign.
The questions are :
1) how can we choose the option "bid only"
2) add a long list of placements for each adgroup.

Thank you for your help

Kim


Josh Radcliff (AdWords API Team)

unread,
Jan 23, 2014, 5:26:35 PM1/23/14
to adwor...@googlegroups.com
Hi,

Regarding your two questions:

1) how can we choose the option "bid only"
You can do this via AdGroupService by adding a TargetSettingDetail to your AdGroup's Settings collection.  This would be a mutate call with a SET operation.
  • Set criterionTypeGroup to PLACEMENT
  • Set targetAll to true for "Bid only" or false for "Target and bid"
2) add a long list of placements for each adgroup.
You can use AdGroupCriterionService to add each placement as an AdGroupCriterion with a criterion of type Placement.  This would be a mutate call with multiple ADD operations (one per AdGroupCriterion).

Cheers,
Josh, AdWords API Team

Ashish Pathak

unread,
May 31, 2014, 9:00:14 AM5/31/14
to adwor...@googlegroups.com
Hello,

I wish set targeting setting = 'BID ONLY' for newly created adgroup.

operations = [{
      'operator': 'ADD',
      'operand': {
          'campaignId': campaign_id,
          'name': 'adgroup_name'
          'status': 'ENABLED',
          'biddingStrategyConfiguration': {
              'bids': [
                  {
                      'xsi_type': 'CpcBid',
                      'bid': {
                          'microAmount': '1000000'
                      },
          'TargetingSettingDetail': {

                                      'targetAll':True
                               }         
                   
                  }
              ]
          }
      }
  }]

I was trying above code but its not working . Can you please provide me sample code how to set that?

Thank you!

Cheers,
Ashish Pathak

Ashish Pathak

unread,
Jun 2, 2014, 6:52:54 AM6/2/14
to adwor...@googlegroups.com
I have also tried-

ad_group_criterion_service = client.GetService(
      'AdGroupCriterionService', version='v201402')

  # Create the ad group criteria.
  ad_group_criteria = [
      {
          'xsi_type': 'BiddableAdGroupCriterion',
          'adGroupId': ad_group_id,
          'criterion': {
                            'xsi_type': 'Gender',
                            'id': GENDER_MALE
                         },
          'targetAll' : True 
       }  ]


Regards,
Ashish


  

Josh Radcliff (AdWords API Team)

unread,
Jun 2, 2014, 1:12:11 PM6/2/14
to adwor...@googlegroups.com
Hi Ashish,

You'll need to specify the targeting setting when creating the ad group, e.g.,

  operations = [{
      'operator': 'ADD',
      'operand': {
          'campaignId': campaign_id,
          'name': 'My ad group',
          'status': 'ENABLED',
          'biddingStrategyConfiguration': {
              'bids': [
                  {
                      'xsi_type': 'CpcBid',
                      'bid': {
                          'microAmount': '1000000'
                      }
                  }
              ]
          },
          'settings': [
            {
              'xsi_type': 'TargetingSetting',
              'details': [ {
                  'targetAll': 'true',
                  'criterionTypeGroup': 'GENDER',
                }
              ]
            }
          ]
      }
  }]
  ad_groups = ad_group_service.Mutate(operations)[0]

Cheers,
Josh, AdWords API Team

Ashish Pathak

unread,
Jun 3, 2014, 7:40:02 AM6/3/14
to adwor...@googlegroups.com
Thank you Josh !, Its working.
Reply all
Reply to author
Forward
0 new messages