If successful, the response body contains data with the following structure:
JSON representation
{"tag": string,"errorProtectionCode": string}
Fields
tag
string
The ad blocking recovery tag. Note that the message generated by the tag can be blocked by an ad blocking extension. If this is not your desired outcome, then you'll need to use it in conjunction with the error protection code.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-28 UTC."],[[["Retrieves the ad blocking recovery tag for a specified AdSense account."],["The request requires the account name as a path parameter and an empty request body."],["The response provides the ad blocking recovery tag and an optional error protection code."],["The tag can be used to display a message to users whose ad blockers are interfering with website access."],["Authorization requires specific OAuth scopes related to AdSense account access."]]],["This content describes retrieving an ad blocking recovery tag for an account using a `GET` request to the specified URL (`https://adsense.googleapis.com/v2/{name=accounts/*}/adBlockingRecoveryTag`). The account `name` is a required path parameter. The request body must be empty. The response includes a JSON representation containing the `tag` and `errorProtectionCode`, both of type string. Access requires either the `adsense` or `adsense.readonly` OAuth scope. The `tag` is used for recovery and the `errorProtectionCode` to show a message if an ad-blocker is present.\n"]]