-
Notifications
You must be signed in to change notification settings - Fork 0
/
service.go
69 lines (60 loc) · 2.61 KB
/
service.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
package awql
const (
namespace = "https://adwords.google.com/api/adwords/cm/" + version
// Service types.
AdGroupAdService = "AdGroupAdService"
AdGroupBidModifierService = "AdGroupBidModifierService"
AdGroupCriterionService = "AdGroupCriterionService"
AdGroupExtensionSettingService = "AdGroupExtensionSettingService"
AdGroupFeedService = "AdGroupFeedService"
AdGroupService = "AdGroupService"
AdwordsUserListService = "AdwordsUserListService"
BatchJobService = "BatchJobService"
BiddingStrategyService = "BiddingStrategyService"
BudgetService = "BudgetService"
CampaignCriterionService = "CampaignCriterionService"
CampaignExtensionSettingService = "CampaignExtensionSettingService"
CampaignFeedService = "CampaignFeedService"
CampaignService = "CampaignService"
CampaignSharedSetService = "CampaignSharedSetService"
ConversionTrackerService = "ConversionTrackerService"
CustomerExtensionSettingService = "CustomerExtensionSettingService"
CustomerFeedService = "CustomerFeedService"
DataService = "DataService"
DraftAsyncErrorService = "DraftAsyncErrorService"
DraftService = "DraftService"
FeedItemService = "FeedItemService"
FeedMappingService = "FeedMappingService"
FeedService = "FeedService"
LabelService = "LabelService"
LocationCriterionService = "LocationCriterionService"
MediaService = "MediaService"
SharedCriterionService = "SharedCriterionService"
SharedSetService = "SharedSetService"
TrialAsyncErrorService = "TrialAsyncErrorService"
TrialService = "TrialService"
)
type serviceQuery struct{}
var _ Rows = &serviceQuery{}
// Create service query request (SOAP call).
func newServiceQuery(q, s string) (*serviceQuery, error) {
// req, err := http.NewRequest(
// "POST", serviceURL+"/"+queryType, bytes.NewReader(reqBody))
// if err != nil {
// return nil, err
// }
// req.Header.Add("Content-Type", "text/xml;charset=UTF-8")
// req.Header.Add("Accept", "text/xml")
// req.Header.Add("Accept", "multipart/*")
// contentLength := fmt.Sprintf("%d", len(reqBody))
// req.Header.Add("Content-length", contentLength)
// req.Header.Add("SOAPAction", action)
return nil, nil
}
func (s *serviceQuery) Next() bool {
return false
}
func (s *serviceQuery) Scan() (map[string]interface{}, error) {
return nil, nil
}
func (s *serviceQuery) Close() {}