Hello there,
There is no need to associate a developer account with an AdSense
account. You need the developer account for your application to be
able to use the API, then you can request to the API the data for
users that authorize your application.
So in your case, you need to be logged in as user Y when you authorize
your application, so that you will be able to request data for that
same user.
Check the documentation for OAuth 2.0, you will find very useful
sequence diagrams describing the different OAuth 2.0 authorization
flows:
https://developers.google.com/accounts/docs/OAuth2
Cheers,
Silvano
--
Silvano Luciani | Developer Programs Engineer
Google UK Limited
Registered Office: Belgrave House, 76 Buckingham Palace Road, London
SW1W 9TQ
Registered in England Number: 3977902