1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

google adwords exampls

Discussion in 'Google API' started by ggalan, Jun 12, 2011.

  1. #1
    i am trying to understand the examples that came with googles adwords api in folder
    google-api-adwords-php\examples\v201101
    i opend a file and got a error message
    Failed to get authToken. Reason: BadAuthentication
    Code (markup):
    how do i fix this?
     
    ggalan, Jun 12, 2011 IP
  2. ggalan

    ggalan Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    nm, made changes to these 2 files

    src\Google\Api\Ads\AdWords\auth.ini
    src\Google\Api\Ads\AdWords\settings.ini
     
    ggalan, Jun 12, 2011 IP
  3. ggalan

    ggalan Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    look here
    src\Google\Api\Ads\AdWords\auth.ini
    
    email = "myAccount@gmail.com"
    password = "******"
    userAgent = "myTitle"
    applicationToken = "ignored"
    developerToken = "myAccount@gmail.com++USD"
    
    ; Uncomment to make requests against a client account.
    clientId = "client_1+myAccount@gmail.com"
    
    ; Uncomment the following to use an existing AuthToken.
    ; authToken = "INSERT_AUTH_TOKEN_HERE"
    
    ; Uncomment the following to use existing OAuth information.
    ; [OAUTH]
    ; oauth_consumer_key = "INSERT_OAUTH_CONSUMER_KEY_HERE"
    ; oauth_consumer_secret = "INSERT_OAUTH_CONSUMER_SECRET_HERE"
    ; oauth_token = "INSERT_OAUTH_TOKEN_HERE"
    ; oauth_token_secret = "INSERT_OAUTH_TOKEN_SECRET_HERE"
    
    
    Code (markup):
    src\Google\Api\Ads\AdWords\settings.ini
    look for this line
    
    DEFAULT_SERVER = "https://adwords-sandbox.google.com"
    
    Code (markup):
     
    ggalan, Jun 15, 2011 IP
  4. alanpedersen

    alanpedersen Peon

    Messages:
    100
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Thanks for this such a great information .I love to know about it.
     
    alanpedersen, Jun 17, 2011 IP
  5. andre01

    andre01 Member

    Messages:
    151
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    26
    #5
    thanks for this information
     
    andre01, Jun 18, 2011 IP
  6. franklinjoy

    franklinjoy Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Thanks for sharing your incredible thoughts on Google ad words. it is valuable.
     
    franklinjoy, Sep 14, 2011 IP