ReferralService enables publishers to add a referral button to their website that directs users to products like AdSense and Firefox with Google Toolbar. When a user clicks through, Google credits a payment.
To generate the code snippet and button link, use the
getReferralData operation,
passing in the synServiceId, locale and referralType (such as Adsense
or Firefox). The response is a
ReferralService_Data
object that contains the image tag and snippet.
The version 2 WSDL for this service is at https://www.google.com/api/adsense/v2/ReferralService?wsdl.
The version 3 WSDL for this service is at https://www.google.com/api/adsense/v3/ReferralService?wsdl.
Requests
Returns pairs of referral snippet and impression tag.
| Parameter name | Parameter type | Parameter description |
|---|---|---|
| synServiceId | string |
the syndication service ID |
| locale | string |
the language for the referral button. Must be a
Google supported locale. |
| referralType | ReferralService_Type |
Referral type.
Values are:
|
| Response type | Response description |
|---|---|
ReferralService_Data[] |
an array of ReferralService_Data objects, each of which is a pair of referral snippet and HTML impression tag. |
| Error number | Error description |
|---|---|
| 201 | if synServiceId is not valid |
| 701 | if referralType is not supported or is invalid |
| 702 | if locale is an invalid locale |
Returns an array of the supported ReferralService_Type values.
| Response type | Response description |
|---|---|
ReferralService_Type[] |
Values are:
|