Get Ad Code
|
|||||
|
|
Get Auto ad code for a given ad client
Authorization
To use this building block you will have to grant access to at least one of the following scopes:
- View and manage your AdSense data
- View your AdSense data
Input
This building block consumes 2 input parameters
Name | Format | Description |
---|---|---|
accountId Required |
STRING |
Account which contains the ad client |
adClientId Required |
STRING |
Ad client to get the code for |
= Parameter name
= Format
accountId STRING Required Account which contains the ad client |
adClientId STRING Required Ad client to get the code for |
Output
This building block provides 4 output parameters
Name | Format | Description |
---|---|---|
adCode |
STRING |
The Auto ad code snippet. The ad code snippet |
ampBody |
STRING |
The AMP Auto ad code snippet that goes in the body of an AMP page |
ampHead |
STRING |
The AMP Auto ad code snippet that goes in the head of an AMP page |
kind |
STRING |
Kind this is, in this case adsense#adCode |
= Parameter name
= Format
adCode STRING The Auto ad code snippet. The ad code snippet |
ampBody STRING The AMP Auto ad code snippet that goes in the body of an AMP page |
ampHead STRING The AMP Auto ad code snippet that goes in the head of an AMP page |
kind STRING Kind this is, in this case adsense#adCode |