This is the code you need to put in your PHP file. Be sure, to change your publication id mention as pub-xxxxxxxx inside the code. Also, the width and height of ad as per rules of Google adsense ads type.
//assign adsense code to a variable
$googleadsensecode = '
';
Now, just add the below code wherever you want to show your ad
echo $googleadsensecode;
Simple.
No comments:
Post a Comment