Ad-Sharing Code Question

What will happen if I change this line of code

update_site_option( "advertising_share", "50" );

To this …

update_site_option( "advertising_share", "100" );

and comment out the dropdown “Select” for choosing the split ratio?

  • Kirk Ward
    • Syntax Hero

    I have had a small plugin created that allows me to insert affiliate tracking codes in the advert links. Each blogger can open his or her own affiliate account and then earn commissions on the ads I am running. I can compensate them more liberally or more conservatively based on the product being sold.

    If I am paying them a commission on sales, then I do not want to give up ad display time with the a/b split the plugin uses. So, I was thinking that by putting 100 in the code it would merely skip the function as there is no “100” option. I was commenting them out so I wouldn’t run the risk of causing an override of the skipping.

    Clear as mud?

    Will the theory hold? (Assuming no update to the plugin, which would mean re-edits. LOL)

  • Kirk Ward
    • Syntax Hero

    Okay Aaron, now I’m confused.

    Previously I had some questions because duplicate ads were appearing, so I wound up disabling simple-ads in favor of supporter-ads. I activated ad-sharing because that seemed to be needed for the “Advertsing” link to show up in the site manager menu. It is exactly like the link shown in the simple-ads screenshot on the page you gave a link to.

    At this point I’m not sure which to use. I want the choice to show ads before or after content on each page or post of a non-supporter blog. The supporters can have a choice to display ads or not.

    Right now I have supporter-ads.php and ad-sharing.php both activated. If I deactivate ad-sharing.php, the “Advertising” link disappears from the site admin menu and I’m not sure where to look to set up the ad content.

    Instructions and guidance would be appreciated.

    Kirk

  • Aaron
    • Ex Staff

    I think you want the supporter advertising plugin. You don’t have that installed as the file is supporter-advertising.php. It simply shows ads on non-supporter blogs above or below content.

    The supporter-ads.php file is an optional module of Supporter so that you can allow supporters to disable adds on additional blogs (we use it for teachers to disable ads on student blogs).

  • Kirk Ward
    • Syntax Hero

    Okay, I can’t use supporter-advertising.php as it throws an ad into the excerpt on the home page and this particular ad is wider than the content … so it looks ugly.

    Back to ad-sharing and using it the way I was thinking. I’ll see if it avoids an a/b split. Coding hints will be appreciated.