Thursday, 21 July 2016

Re: how to integrated adwords api?

Hi Richest,

If you are using googleads-php-lib, please follow below steps to integrate this API at xampp server:

1. Create a MCC(AdWords manager account) account using below URL:
https://www.google.com/adwords/manager-accounts/
2. After login into MCC account, visit https://console.developers.google.com/ and create new project(App) and make sure you select the 'installed application option'.
3. Note down app's Client ID and Client secret in auth.ini file.
4. Click on gearIcon > Account settings > AdWords API Centre and note down Developer token and userAgent and put this info in auth.ini file.
5. Now create a test Manager account with a email address. Note that this email address should not already be associated with an adwords account. Please use below URL to create a test Manager account:
https://adwords.google.com/um/Welcome/Home?sf=mt#ta
6. Copy Customer ID from top right corner of test Manager account and use it as 'clientCustomerId' in auth.ini file.
7. Now login into MCC account and run GetRefreshToken.php file in another tab of same browser. It will display a URL. Copy this URL and login into test Manager account in different browser and run copied URL. It will ask to allow some permissions. Click 'Allow' button and it will display a code. This code is not your refresh token.Its is only an access token. Copy this code and paste it into GetRefreshToken.php file for the value of '$code' variable.
8. Now refresh the page where we run GetRefreshToken.php. This time it will give us refresh token. Copy this refresh token and use it inot auth.ini file.
9. Run examples/AdWords/v201509/CampaignManagement/GetCampaignsByLabel.php, it will list campaigns.


--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
 
You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
---
You received this message because you are subscribed to the Google Groups "AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/563e7003-9e02-4583-b3c4-433d6ffed399%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment