Based on the background color of my dynamic page, iam changing the bgcolor of adsense advrt block. Is this allowed? All, iam doing is is placing a variable inside the bgcolor parameter value which has the right hexadecimal value for color. I am using this for Link Units. Please advise.
Yes you are allowed to use the same background color of your site on your adsense ads (makes better blending )
To be specific, My page background color changes and so, iam changing the bgcolor of my link unit dynamically. Ex code: google_color_bg = "<?=$strHeaderBarColor1?>"; is this allowed?
Yes it is because you are playing around with the code in your PHP. PHP outputs the Google adsense code. Which should be the same format as before. You can play with the google code in your php and assign the colors as per your wish. But when it outputs the HTML to the user it must be perfect.