I want to set googleplus +1 button to address different URL than code locates on.
It is not clear from documentation, whether to write
<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
<g:plusone href="myurl"></g:plusone>
or
<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
<g:plusone data-href="myurl"></g:plusone>
i.e. is tag name is href or data-href.
I have old code with href, size and count which is apparently not working. Are these tags obsolete?
UPDATE
Tag changing didn't help.
UPDATE 2
No, documentation is not clear. In the point #1 in section "Setting the +1 target URL" it is written that

I.e. href attribute is referred. Unfortunately, there is no href attribute described in the table below.
As a custom tag:
As an HTML5 tag:
If you only have one +1 button on your page, you can also set the canonical url for it, and it will get used for your +1 button. It goes in the
<head>of you document: