This method can be called only by a restricted set of projects, which are usually owned by AdSense for Platforms publishers. Contact your account manager if you need to use this method.
Note that ad units can only be created for ad clients with an "AFC" product code. For more info see the AdClient resource.
[[["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 2024-08-21 UTC."],[[["Creates an ad unit for AdSense for Platforms publishers with ad clients having an \"AFC\" product code."],["Ad units can only be of `DISPLAY` type and are created under a specified ad client using the provided `AdUnit` details in the request body."],["This method requires authorization with the `https://www.googleapis.com/auth/adsense` scope and is restricted to specific projects."],["A successful request returns the newly created `AdUnit` instance in the response."]]],[]]