Get Ad Code

Get ad code for the specified ad unit

2 variables
4 variables

Get ad code for the specified ad unit

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

  = Parameter name
  = Format

adClientId STRING Required

Ad client with contains the ad unit

adUnitId STRING Required

Ad unit to get the code for

Output

This building block provides 4 output parameters

  = 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