Tagged: 

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1211785

    Unfortunately, I couldn’t find a solution to my problem in the search: how do I place the AdSense code on pages?
    I have tried Code-Block; it does not work. I tried “Insert Html Snippet” and Text-Block; it doesn’t work.
    What do I have to do to insert AdSense ads on my page with Avia Builder?
    What are the specific procedures?

    Thank you very much for your help, Andreas

    #1212075

    Hello Kriesi, no answer, no help?

    #1212156

    Hi Werbecheck,

    Here is an article for you:
    https://www.wpbeginner.com/beginners-guide/how-to-add-google-adsense-to-your-wordpress-site/

    You can create widgets with ads and add those to the pages with the widget area.

    Best regards,
    Victoria

    #1212181

    Unfortunately, this does not solve the problem. The integration of AdSense with the help of widgets is in my opinion not a perfect solution and leads to unsightly designs.

    OK, then I will inform myself in other sources.

    As a customer with five licenses it is not satisfying to get only a link to a banal text as an answer instead of seriously addressing the question in terms of content.

    • This reply was modified 4 years, 7 months ago by Werbecheck.
    #1212309

    Hi Werbecheck,

    What code are you trying to add?

    Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?

    Best regards,
    Victoria

    #1212312

    Seriously? You’re asking me what code I want to put in?
    So you’re answering a question you haven’t read?
    It’s very clear: AdSense code.
    Would you find such a support great for you, where your time comes with unnecessary questions and answers that are not very helpful?
    You may find me rude now. No, I am not. Just disappointed with the way they are handling my request.

    Here, once again:
    “Unfortunately, I couldn’t find a solution to my problem in the search: how do I place the AdSense code on pages?
    I have tried Code-Block; it does not work. I tried “Insert Html Snippet” and Text-Block; it doesn’t work.
    What do I have to do to insert AdSense ads on my page with Avia Builder?
    What are the specific procedures?”

    #1212970

    Now what? Is there nothing more to come?

    Pity.

    Kriesi used to be great.

    But “success” has made you arrogant.

    #1213999

    Hi,

    Sorry for the confusion and for the delay. If the script doesn’t work directly in the builder, we can create a custom shortcode that contains the adsense snipet. In the functions.php file, add this code.

    function ava_insert_adsense_snippet() {
    	$ad = <<<EOT
    		<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
    		<ins class="adsbygoogle"
    			style="display: block;"
    			data-ad-client="ca-pub-xxxxxxxxxxxxxxx"
    			data-ad-slot="xxxxxxxxxxx"
    			data-ad-format="auto"
    			data-full-width-responsive="false"></ins>
    		<script>
    		(adsbygoogle = window.adsbygoogle || []).push({});
    		</script>
    	EOT;
    	return $ad;
    }
    add_shortcode('avs_adsense_snippet', 'ava_insert_adsense_snippet');
    

    Replace the data-add attributes with your actual credentials.

    Go back to the page and add a code block element, then the custom shortcode that we’ve just created.

    [avs_adsense_snippet]
    

    You can also use plugins like Sitekit or AdvancedAds if you prefer more options.

    // https://sitekit.withgoogle.com/
    // https://wpadvancedads.com/adsense-ads/

    Best regards,
    Ismael

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.