not able to choose the ExplorerAutoOptimizerSetting in the ui of mobile app install ads' adgroup.

85 views
Skip to first unread message

maxSonic Sun

unread,
Feb 29, 2016, 3:40:22 AM2/29/16
to AdWords API Forum
Hi All,

I use the sample code form the googleads-python-lib to create the moble app install ads, but I am not able to choose the below option after the adgroup is created.



This is the the adgroup created by the api, please notice that the option is not available and the type is not aggressive:


This is the adgroup created with ExplorerAutoOptimizerSetting as true, however, this option could not be check off after setting it to true in the api.  please notice that the option is not available and the type is aggressive



Below is the code.

import uuid

from googleads import adwords
import datetime


CAMPAIGN_ID = 'INSERT_CAMPAIGN_ID_HERE'

def make_campaign(client):
    # Initialize appropriate services.
    campaign_service = client.GetService('CampaignService', version='v201601')
    budget_service = client.GetService('BudgetService', version='v201601')
  
    # Create a budget, which can be shared by multiple campaigns.
    budget = {
        'name': 'Interplanetary budget #%s' % uuid.uuid4(),
        'amount': {
            'microAmount': '50000000'
        },
        'deliveryMethod': 'STANDARD',
        'period': 'DAILY'
    }
  
    budget_operations = [{
        'operator': 'ADD',
        'operand': budget
    }]
  
    # Add the budget.
    budget_id = budget_service.mutate(budget_operations)['value'][0][
        'budgetId']
  
    # Construct operations and add campaigns.
    operations = [{
      'operator': 'ADD',
      'operand': {
          'name': 'Interplanetary Cruise #%s' % uuid.uuid4(),
          'status': 'PAUSED',
          'advertisingChannelType': 'DISPLAY',
          'biddingStrategyConfiguration': {
              'biddingStrategyType': 'MANUAL_CPC',
          },
          'endDate': (datetime.datetime.now() +
                      datetime.timedelta(365)).strftime('%Y%m%d'),
          # Note that only the budgetId is required
          'budget': {
              'budgetId': budget_id
          },
          'advertisingChannelSubType': 'DISPLAY_MOBILE_APP',
          # Optional fields
          'startDate': (datetime.datetime.now() +
                        datetime.timedelta(1)).strftime('%Y%m%d'),
          'adServingOptimizationStatus': 'ROTATE',
          'frequencyCap': {
              'impressions': '5',
              'timeUnit': 'DAY',
              'level': 'ADGROUP'
          },
          'settings': [
              {
                  'xsi_type': 'GeoTargetTypeSetting',
                  'positiveGeoTargetType': 'DONT_CARE',
                  'negativeGeoTargetType': 'DONT_CARE'
              }
          ]}}]
    campaigns = campaign_service.mutate(operations)
    
    # Display results.
    for campaign in campaigns['value']:
      print ('Campaign with name \'%s\' and id \'%s\' was added.'
             % (campaign['name'], campaign['id']))
      return campaign['id']
          

def main(client, campaign_id):
  # Initialize appropriate service.
  ad_group_service = client.GetService('AdGroupService', version='v201601')

  # Construct operations and add ad groups.
  operations = [{
      'operator': 'ADD',
      'operand': {
          'campaignId': campaign_id,
          'name': 'Earth to Mars Cruises #%s' % uuid.uuid4(),
          'status': 'ENABLED',
          'biddingStrategyConfiguration': {
              'bids': [
                  {
                      'xsi_type': 'CpaBid',
                      'bid': {
                          'microAmount': '1000000'
                      },
                  }
              ]
          },
          'settings': [
              {
                  # Targeting restriction settings. Depending on the
                  # criterionTypeGroup value, most TargetingSettingDetail only
                  # affect Display campaigns. However, the
                  # USER_INTEREST_AND_LIST value works for RLSA campaigns -
                  # Search campaigns targeting using a remarketing list.
                  'xsi_type': 'TargetingSetting',
                  'details': [
                      # Restricting to serve ads that match your ad group
                      # placements. This is equivalent to choosing
                      # "Target and bid" in the UI.
                      {
                          'xsi_type': 'TargetingSettingDetail',
                          'criterionTypeGroup': 'PLACEMENT',
                          'targetAll': 'false',
                      },
                      # Using your ad group verticals only for bidding. This is
                      # equivalent to choosing "Bid only" in the UI.
                      {
                          'xsi_type': 'TargetingSettingDetail',
                          'criterionTypeGroup': 'VERTICAL',
                          'targetAll': 'true',
                      },
                  ]
              }
          ]
      }
  }]
  ad_groups = ad_group_service.mutate(operations)

  # Display results.
  for ad_group in ad_groups['value']:
    print ('Ad group with name \'%s\' and id \'%s\' was added.'
           % (ad_group['name'], ad_group['id']))


if __name__ == '__main__':
  # Initialize client object.
    adwords_client = adwords.AdWordsClient.LoadFromStorage()
    CAMPAIGN_ID = make_campaign(adwords_client)
    main(adwords_client, CAMPAIGN_ID)


Best Regards,
Sonic Sun.

Anthony Madrigal

unread,
Feb 29, 2016, 12:18:01 PM2/29/16
to AdWords API Forum
Hello,

Since you are unable to select the ExplorerAutoOptimizerSetting in the UI, I recommend asking your question on the AdWords Community Forum. They should be the best suited to help you. 

Regards,
Anthony
AdWords API Team

maxSonic Sun

unread,
Mar 1, 2016, 3:23:54 AM3/1/16
to AdWords API Forum
Hi,

I think this is a problem between the api and the ui of the adwords, why should I ask this question on the Community Forum? It should not be an api bug?

BRs,
Sonic Sun

Nadine Sundquist (AdWords API Team)

unread,
Mar 1, 2016, 6:20:42 PM3/1/16
to AdWords API Forum
Greetings Sonic Sun!

Are you talking about the Targeting Optimization check box that isn't appearing? The reason that's not appearing is because there's a difference in your bidding strategy for the two ad groups.  At the top of the first screenshot, I can see that your bidding strategy is Target CPA (conversions). In the later screenshots showing the API created ad group, the bidding strategy is Max CPC. By default, a new campaign cannot do Target CPA because there needs to be conversions already in the system for it to take effect. This difference in bidding strategy means that the check box won't be there until there are enough click to allow you to convert that ad group over to CPA rather than CPC. Check out our Bidding guide for a more in-depth explanation of how CPC versus CPA works in the API.

Best,
Nadine, AdWords API Team

maxSonic Sun

unread,
Mar 1, 2016, 10:02:26 PM3/1/16
to AdWords API Forum
Hi Nadine,

I tried CONVERSION_OPTIMIZER according to this article https://developers.google.com/adwords/api/docs/guides/driving-mobile-app-downloads. But fail again with the Targeting Optimization check box disappeared.
I read https://developers.google.com/adwords/api/docs/reference/v201509/CampaignService.BiddingStrategyConfiguration?hl=zh-cn, I think there is no other option could be set for the mobile app install ads.

Best Regards,
Sonic Sun

Nadine Sundquist (AdWords API Team)

unread,
Mar 2, 2016, 9:16:56 AM3/2/16
to AdWords API Forum
Hello,

The Conversion Optimizer functionality is being replaced by Target CPA. I would recommend trying the TARGET_CPA bidding strategy type instead. If that doesn't work for you, please click Reply privately to author in the forum and send me the screenshot of the result.

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