After installing component (for Free version install, click here), component is installed in GAC.

To use Gembox.Ppc component follow this steps:

  • Create a new .NET project (or use existing).

  • Use Add Reference dialog to add a new reference to the DLL with GemBox.Ppc name. It should be under .NET tab.

  • Import namespaces with following code:

    CopyC#
    using GemBox.Ppc;
    using GemBox.Ppc.AdCenter;
    using GemBox.Ppc.AdWords;
    CopyVB.NET
    Imports GemBox.Ppc
    Imports GemBox.Ppc.AdCenter
    Imports GemBox.Ppc.AdWords

Example

Using GemBox.Ppc component is easy and straightforward. The following code is needed to initiate a simple download operation from your application:

CopyC#
PpcInfo.SetLicense("FREE-LIMITED-KEY");

// For Google AdWords
var adWordsUser = new AdWordsUser("xyz@gmail.com", "password", "xyz@gmail.com++USD", "client_1+xyz@gmail.com", true);

var adWordsAccount = Account.FromUser(adWordsUser);
adWordsAccount.Download();

// For Microsoft adCenter
var adCenterUser = new AdCenterUser("xyz@gmail.com", "password", "developer-token", 123, 456, true);

var adCenterAccount = Account.FromUser(adCenterUser);
adCenterAccount.Download();
CopyVB.NET
PpcInfo.SetLicense("FREE-LIMITED-KEY")

'For Google AdWords
Dim adWordsUser = New AdWordsUser("xyz@gmail.com", "password", "xyz@gmail.com++USD", "client_1+xyz@gmail.com", True)

Dim adWordsAccount = Account.FromUser(adWordsUser)
adWordsAccount.Download()

'For Microsoft adCenter
Dim adCenterUser = New AdCenterUser("xyz@gmail.com", "password", "developer-token", 123, 456, True)

Dim adCenterAccount = Account.FromUser(adCenterUser)
adCenterAccount.Download()