Hi Yarin,

If you are having trouble generating a refresh token, please refer to the 
PHP library's Using OAuth 2.0 
page<https://github.com/googleads/googleads-php-lib/wiki/Using-OAuth-2.0>. 
 If you are using 
GetRefreshToken.php<https://github.com/googleads/googleads-php-lib/blob/master/examples/AdWords/Auth/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<https://github.com/googleads/googleads-php-lib/tree/master/examples/AdWords/v201402>
 available 
within the library to get started. In particular, I would recommend:

   - 
GetCampaigns.php<https://github.com/googleads/googleads-php-lib/blob/master/examples/AdWords/v201402/BasicOperations/GetCampaigns.php>
 - 
   This is a basic example you can run to confirm your auth.ini and 
   environment are set up properly.
   - 
UploadOfflineConversions.php<https://github.com/googleads/googleads-php-lib/blob/master/examples/AdWords/v201402/AdvancedOperations/UploadOfflineConversions.php>
 - 
   This example demonstrates exactly what you want to do. That is, it creates 
   a new 
UploadConversion<https://developers.google.com/adwords/api/docs/reference/v201402/ConversionTrackerService.UploadConversion>and
 then adds an 
   
OfflineConversionFeed<https://developers.google.com/adwords/api/docs/reference/v201402/OfflineConversionFeedService.OfflineConversionFeed>
   .
   
Note that all examples should be run from the command line.

Cheers,
Josh, AdWords API Team

On Wednesday, March 19, 2014 4:28:40 AM UTC-4, [email protected] wrote:
>
> 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 
> <https://github.com/googleads/googleads-php-lib>*") of the adwords api
> 2. created project in Google Cloud Console<https://cloud.google.com/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
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to