I created an ad and for some reason the machine name has a trailing underscore.
Machine name: 300x250_slot_2_footer_ad_right_

$tag = new stdClass();
$tag->disabled = FALSE; /* Edit this to true to make a default tag disabled initially */
$tag->api_version = 1;
$tag->machinename = '300x250_slot_2_footer_ad_right_';
$tag->slot = '300x250 slot 2 footer ad right';
$tag->adunit = '';
$tag->size = '300x250';
$tag->block = 1;
$tag->settings = array(
  'slug' => '',
  'short_tag' => 0,
  'out_of_page' => 0,
  'adsense_ad_types' => '',
  'adsense_channel_ids' => '',
  'adsense_colors' => array(
    'background' => '',
    'border' => '',
    'link' => '',
    'text' => '',
    'url' => '',
  ),
  'targeting' => array(
    0 => array(
      'target' => 'atf',
      'value' => 'false',
    ),
    1 => array(
      'target' => 'pos',
      'value' => 'middle',
    ),
  ),
);

Comments

bleen’s picture

I suspect you had a trailing space as you were typing your "slot name" and so the generated machine name was given a trialing "_". Thats teh only way I can think of this happening

bleen’s picture

Issue summary: View changes
Status: Active » Closed (works as designed)