I am writing a tool to help manage Google Adwords campaigns.
I would like to be able to deep-link to the page for an adgroup in the Adwords web UI from my tool.
For example, the following is the URL of the Overview page for an Adgroup in the Adwords web UI:
(I have replaced all IDs with "123" above, for privacy)
From a little experimentation, I have determined the meaning of the query string parameters as follows:
campaignIdthe Adwords Campaign ID. I have this to hand
adGroupIdthe Adwords Adgroup ID. I have this to hand
__uthe page works fine without these params, so I can omit them from my links. (If I do not omit these params, then links for other users are HTTP 401 for me.)
ocid-- This appears to control the selected Account in the web UI. If I remove this param, then the page loads but does not show the correct context, so it isn't useable.
ocid param is the sticking point for me. It appears to relate to the selected Account or selected Campaign in the UI, but it does not match the Account ID or Campaign Id that I have, so I can't generate it.
Does anyone know how to deep-link to an AdGroup in the admin UI, either by generating valid
ocid values from an Account Id or a Campaign Id, or by some other means?