adwords-793034_640

First, let’s take a look at how Adwords work -

AdWords:

Adwords

You might seen the yellow ‘Ad’ text with the top row results in the Google search. What are they, Why they differ from the other results?

Those are AdWords ads that a company paid for so that people will notice their business whenever they’re searching Google. And, the company only have to pay whenever someone clicks on the ad. This is known as cost-per-click advertising (CPC).

> How to show your Ads in Google

Go to  http://tinyurl.com/pevnb3j and create your own AdWords account. Then you can create your Ads with your preferred locations, keywords, etc. For help on creating managing your AdWords account go to http://tinyurl.com/qy6kuq7

> AdWords API

The AdWords API allows applications to interact directly with the AdWords platform. You can build applications to more efficiently manage large or complex AdWords accounts. If you want to use AdWords API in your applications, first you will have to create an MCC account.

What is an MCC account?

> MCC (My Client Center ) Account:

An MCC account -manager account- is an AdWords account that lets you easily view and manage multiple AdWords accounts –including other manager accounts– from a single location.

MCCYou can create a new MCC account here - http://tinyurl.com/q9n7gsh

Learn more about MCC accounts here - http://tinyurl.com/q9f8tv8

The following information should be submitted for making AdWords API calls,

  1. Developer Token,
  2. Client Customer ID,
  3. oAuth2 Client ID,
  4. oAuth2 Client Secret,
  5. oAuth2 Refresh Token.

Where do you find all these?

  •  Developer Token

After creating your MCC account successfully, you can see your Developer Token here http://tinyurl.com/pov4xwa

  • Client Customer ID

Client Customer Id is your AdWords account ID. You can see this on the right-top position in the MCC or Adwords website. anver1

  • oAuth2 Client ID & oAuth2 Client Secret

Do you already have an account in Google developer console ? If yes you can see this information here – http://tinyurl.com/qcunww3

New to Google developer console, learn creating and managing it here - http://tinyurl.com/kl2vqxo

  • oAuth2 Refresh Token

You can download the Adwords API libraries with examples in this link – http://tinyurl.com/nntrpyu.

After downloading go to the following path ? “..\utilities\OAuthTokenGenerator\bin\Debug\”. There you can see a file named ‘OauthTokenGenerator.exe’. Run the file and you will get the following screen:

anver2

Submit Client ID and Client Secret you have handy then click OK, and it will show you the Refresh Token for your account.

Like to know more about Refresh Token ? Go to - http://tinyurl.com/noqeloa

> Sample Code

Following is a sample code for creating a new AdWords account in our MCC account,

anver 3

Download “Google.Adwords.dll” and “Google.Ads.Common.dll” from – http://tinyurl.com/nntrpyu

Find the .dll files inside – ..\examples\AdWords\CSharp\bin\Debug\”.

Please note :-You can use the Developer Token only after your MCC account is verified by Google Team. This process is done by humans and it needs long time so. (sometimes it takes more than two months..!!)

Want to start coding right away..? MCC test Accounts comes for help.

> MCC Test Account:

MCC test accounts allow developers to execute AdWords API requests against the production environment for development and testing purposes. The MCC Test Account will not server the Ads on real Google search.

You can see a “This is a test account!” label on the right-top side of your MCC website.

 anver4You must use a production (non-test) MCC account’s developer token to make AdWords API calls against a test account. You can use the production developer token against a test account even when the production developer token is pending approval.

anver5You can create a new MCC Test Account here - http://tinyurl.com/nqlaymn

Download AdWords API libraries and sample codes from here - http://tinyurl.com/nntrpyu

Anver Ali