Can't create ad unit id when using v1beta

56 views
Skip to first unread message

Albus Dumbledore

unread,
Oct 2, 2023, 3:53:22 AM10/2/23
to AdMob API Developer Forum
Hi,

I can't create ad unit id when use admob api v1beta, it always return error code

{ "error": { "code": 401, "message": "Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.", "status": "UNAUTHENTICATED", "details": [ { "@type": "type.googleapis.com/google.rpc.ErrorInfo", "reason": "CREDENTIALS_MISSING", "domain": "googleapis.com", "metadata": { "method": "google.ads.admob.v1beta.AdMobApi.ListAdUnits", "service": "admob.googleapis.com" } } ] } }

Lin Yang

unread,
Oct 2, 2023, 4:56:14 PM10/2/23
to AdMob API Developer Forum
Hi, please make sure the proper credentials are provided when calling the API. Please see https://developers.google.com/admob/api/v1/how-tos/authorizing for details.
Reply all
Reply to author
Forward
0 new messages