I am new to Google API.
I need to access Adword Offline Conversion API through .NET code.
In theory this is pretty easy since all the .NET code that implements this knowledge is provided here: https://github.com/googleads/googleads-dotnet-lib/blob/master/examples/AdWords/CSharp/v201406/AdvancedOperations/UploadOfflineConversions.cs
In practice we need to get logged to google API (through the protocol OAuth 2.0 I guess?) and I didn't found any good documentation about this. There are these two documentations, but no clear tutorial:
It looks like I need to create a project at https://console.developers.google.com, then Enable an API (which one?).
It looks like I need to set at least all these settings (through code or through App.Config
file) and also manage some tokens expirations:
AdWordsUser adWordsUser = new AdWordsUser();
AdWordsAppConfig adWordsUserConfig = (AdWordsAppConfig) adWordsUser.Config;
adWordsUserConfig.ClientCustomerId = "123-456-7890";
adWordsUserConfig.OAuth2Mode = ? APPLICATION or SERVICE_ACCOUNT ?
adWordsUserConfig.DeveloperToken = "????"; // MUST BE SET
adWordsUserConfig.OAuth2RefreshToken = "????";
adWordsUserConfig.OAuth2ClientId = "????";
adWordsUserConfig.OAuth2ClientSecret = "????";
But I have no idea how to obtain all these IDs?
Thanks
Edit:
After activating the API Ad Exchange Buyer API (no idea if this is the one required) I have been able to obtain some ID for credential.
While this give me what to put for: OAuth2ClientId, OAuth2ClientSecret I am still laking a lot of info to get started.