Uploading offline conversions

257 views
Skip to first unread message

zigit....@gmail.com

unread,
Mar 19, 2014, 4:28:40 AM3/19/14
to adwor...@googlegroups.com
Hi,

I'm new to AdWords API and i would like to create an uploading offline converssion to my web application.

I'm having a problem and would love to get some directions.

my steps where:
1. I've downloaded the php files ("googleads-php-lib") of the adwords api
2. created project in Google Cloud Console
3. created new client id for the project, for web application
4. got an client_id & client_secret, and putted them in auth.ini ( which located in "googleads-php-lib-master/src/Google/Api/Ads/AdWords/")
5. went to my profile in Adwords Api in "Google Api Center" and got my developerToken, and also putted it in the auth.ini
6. theni opened "GetRefreshToken.php" from the "examples" directory in cmd --> which sent me to get an "authorization code" from a link
7. after pasting this code back in the cmd, i guess i should have got a "refresh_token" to put in the aut.ini

I had a problem with getting the "refresh_token" and my cmd screamed that i need to install curl in my server , and i am going to do that , BUT-

AM I IN THE RIGHT DIRECTION AT ALL?

all i want is to import the needed files so i could use the right functions that will make the "Uploading offline conversions"
(e.g.OfflineConversionFeed feed = new OfflineConversionFeed()).

if i am in the right direction' than WHAT SHOULD I DO after I'll get my refresh_token?

thanks,

Yarin Slivka

Josh Radcliff (AdWords API Team)

unread,
Mar 19, 2014, 2:19:04 PM3/19/14
to adwor...@googlegroups.com
Hi Yarin,

If you are having trouble generating a refresh token, please refer to the PHP library's Using OAuth 2.0 page.  If you are using GetRefreshToken.php then you must create an Installed application in the console, not a Web Application.

Once you have the refresh token and are ready to submit API requests, you can use the many examples available within the library to get started. In particular, I would recommend:
Note that all examples should be run from the command line.

Cheers,
Josh, AdWords API Team

zigit....@gmail.com

unread,
Apr 3, 2014, 12:39:45 PM4/3/14
to adwor...@googlegroups.com
Hi Josh,

I have finally succeeded to upload an offline conversion in the command line with the "UploadOfflineConversions.php" file,

Now i wont to make this upload offline conversion automatically in my php code (not in the command line), 

what should i do?

how can i make a loggin to my adwords client center, and make the upload work alone?

thanks.








בתאריך יום רביעי, 19 במרץ 2014 20:19:04 UTC+2, מאת Josh Radcliff (AdWords API Team):

Josh Radcliff (AdWords API Team)

unread,
Apr 3, 2014, 2:12:40 PM4/3/14
to adwor...@googlegroups.com
Hi,

The Getting Started section of the PHP client library README contains instructions on configuring your auth.ini file and installing the library.

I'm not a PHP expert, but once you've installed the library I would think you would have a PHP page on your site that has some way of entering conversion data (either into a form or from a file the user chooses) and when they click a button you pass on the user's data to the offline conversions API service.

Thanks,
Josh, AdWords API Team
Reply all
Reply to author
Forward
0 new messages