emiddleton / gads

Google Adwords API for Go
Other
50 stars 56 forks source link

expected element type <Envelope> but have <html> #10

Open SergeyParamoshkin opened 8 years ago

SergeyParamoshkin commented 8 years ago

Hi. I use the example from the documentation, and set config.json, but in return get err expected element type <Envelope> but have <html>

campaigns, totalCount, err := campaignService.Get(
        gads.Selector{
            Fields: []string{
                "Id",
                "Name",
                "Status",
            },
        },
    )
    if err != nil {
        fmt.Println(err.Error())
    }
mrsinham commented 8 years ago

I think this is because

    baseUrl = "https://adwords.google.com/api/adwords/cm/v201409"

google is no more supporting this version. So you have the html of an error page