add regex to adsense settings, and better description for adsense_publisher_code

This commit is contained in:
Neil Lalonde 2016-07-21 11:54:35 -04:00
parent 8e66337b53
commit 65a631e885
2 changed files with 11 additions and 1 deletions

View File

@ -32,7 +32,7 @@ en:
dfp_target_post_bottom_key_code: "Input custom targeting keys - inventory Level"
dfp_target_post_bottom_value_code: "Input custom targeting values - inventory Level"
adsense_publisher_code: "Input your publisher ID"
adsense_publisher_code: "Your publisher ID. Enter only the number, excluding 'pub-'."
adsense_through_trust_level: "Show your ads to users based on trust levels. Users with trust level higher than this value will not see ads."
adsense_topic_list_top_code: "Enter code of the ad unit to display at topic list top location. This is the number assigned to the ad unit, not the JavaScript code."
adsense_mobile_topic_list_top_code: "Enter code of the ad unit to display mobile ads at topic list top location. This is the number assigned to the ad unit, not the JavaScript code."
@ -47,6 +47,7 @@ en:
adsense_mobile_post_bottom_code: "Enter code of the ad unit to display mobile ads at post bottom location. This is the number assigned to the ad unit, not the JavaScript code."
adsense_post_bottom_ad_sizes: "Choose your ad sizes"
adsense_nth_post_code: "Show an ad after every N posts, where N is this value."
amazon_through_trust_level: "Show your ads to users based on trust levels. Users with trust level higher than this value will not see ads."
amazon_topic_list_top_src_code: "Enter src code to display at topic list top location"
amazon_topic_list_top_ad_width_code: "Input your ad width"

View File

@ -2,6 +2,7 @@ adsense_plugin:
adsense_publisher_code:
client: true
default: ''
regex: '^[\d]*$'
adsense_through_trust_level:
client: true
default: 2
@ -10,10 +11,12 @@ adsense_plugin:
client: true
default: ''
max: 50
regex: '^[\d]*$'
adsense_mobile_topic_list_top_code:
client: true
default: ''
max: 50
regex: '^[\d]*$'
adsense_topic_list_top_ad_sizes:
client: true
default: '728*90 - leaderboard'
@ -33,10 +36,12 @@ adsense_plugin:
client: true
default: ''
max: 50
regex: '^[\d]*$'
adsense_mobile_topic_above_post_stream_code:
client: true
default: ''
max: 50
regex: '^[\d]*$'
adsense_topic_above_post_stream_ad_sizes:
client: true
default: '728*90 - leaderboard'
@ -56,10 +61,12 @@ adsense_plugin:
client: true
default: ''
max: 50
regex: '^[\d]*$'
adsense_mobile_topic_above_suggested_code:
client: true
default: ''
max: 50
regex: '^[\d]*$'
adsense_topic_above_suggested_ad_sizes:
client: true
default: '728*90 - leaderboard'
@ -79,10 +86,12 @@ adsense_plugin:
client: true
default: ''
max: 50
regex: '^[\d]*$'
adsense_mobile_post_bottom_code:
client: true
default: ''
max: 50
regex: '^[\d]*$'
adsense_post_bottom_ad_sizes:
client: true
default: '728*90 - leaderboard'