PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Correspondence between the WLanguage functions, the services and the methods
  • Possible error cases:
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
GglAdWGetMethodCost (Function)
In French: GglAdWRécupèreCoûtMéthode
Warning
From version 17, this feature is not available anymore. To use Google AdWords, see the corresponding Google API: https://developers.google.com/adwords/api/docs/guides/start
Retrieves the execution cost of an API method of Google AdWords. Indeed, the Google AdWords APIs are required to handle the Google AdWords service by programming. These APIs have a cost associated to them.
Each WLanguage function used to handle Google AdWords corresponds to an API.
Example
// Connection to Google
Cnt is gglAdWConnection
Cnt..Email = "vince@gmail.com"
Cnt..Password = "azerty"
Cnt..UserAgent = "MyApp-01"
Cnt..SandboxMode = True
Cost is int
Cost = GglAdWGetMethodCost(Cnt, "CampaignService", "updateCampaign", "20090101")
Syntax
<Result> = GglAdWGetMethodCost(<AdWords Connection> , <Service Name> , <Method Name> , <Evaluation Date>)
<Result>: Integer
Cost of the method, expressed in API unit per operation.
<AdWords Connection>: gglAdWConnection variable
Name of gglAdWConnection variable to use.
<Service Name>: Character string (with quotes)
Name of the affected Google AdWords service.
<Method Name>: Character string (with quotes)
Name of the affected method.
<Evaluation Date>: DateTime
Date at which the cost of the method must be evaluated. An error is returned if the date corresponds to a future date.
Remarks

Correspondence between the WLanguage functions, the services and the methods

Name of the functionServiceMethodComment
GglAdWGetOptimizedAdServingCampaignServicegetOptimizeAdServing
GglAdWEstimateCampaignTrafficEstimatorServiceestimateCampaignList
GglAdWEstimateAdGroupTrafficEstimatorServiceestimateAdGroupList
GglAdWEstimateKeywordTrafficEstimatorServiceestimateKeywordList
GglAdWListMCCAlertAccountServicegetMccAlerts
GglAdWListAdAdServicegetAllAds
GglAdWListActiveAdAdServicegetActiveAds
GglAdWListCampaignCampaignServicegetAllAd WordsCampaignsSyntax 1 used to retrieve all the campaigns.
GglAdWListCampaignCampaignServicegetCampaignListSyntax 2 used to retrieve several campaigns.
GglAdWListClientAccountAccountServicegetClientAccounts
GglAdWListCriterionCriterionServicegetAllCriteriaSyntax 1 used to retrieve all the criteria.
GglAdWListCriterionCriterionServicegetCriteriaSyntax 2 used to retrieve some criteria.
GglAdWListExcludedCriterionCriterionServicegetCampaignNegativeCriteria
GglAdWGetConversionOptimizerEligibilityCampaignServicegetConversionOptimizerEligibility
GglAdWListBusinessAdServicefindBusiness
GglAdWListBusinessAdServicegetMybusinesses
GglAdWGetActiveGroupAdGroupServicegetActiveAdGroups
GglAdWListAdGroupAdGroupServicegetAdGroupListSyntax 2 used to retrieve the data of an ad group.
GglAdWListAdGroupAdGroupServicegetAllAdGroupsSyntax 1 used to retrieve the data found in several ad groups
GglAdWListClientAccountInfoAccountServicegetClientAccountInfos
GglAdWListReportJobsReportServicegetAllJobs
GglAdWListSiteByCategorySiteSuggestionServicegetSitesbyCategoryName
GglAdWListSiteByDemographicsSiteSuggestionServicegetSitesByDemographics
GglAdWListSiteByTopicSiteSuggestionServicegetSitesByTopics
GglAdWListSiteByURLSiteSuggestionServicegetSitesByUrls
GglAdWListAdStatsAdServicegetAdStats
GglAdWListCampaignStatsCampaignServicegetCampaignStats
GglAdWListCriterionStatsCriterionServicegetCriterionStats
GglAdWListGroupStatsAdGroupServiceGetAdGroupStats
GglAdWListVideoAdServicegetMyVideos
GglAdWSetOptimizedAdServingCampaignServicesetOptimizeAdServing
GglAdWScheduleReportJobReportServicescheduleReportJob
GglAdWGetAdAdServicegetAd
GglAdWGetCampaignCampaignServicegetCampaign
GglAdWGetMethodCostServiceInfogetMethodCost
GglAdWGetAdGroupAdGroupServicegetAdGroup
GglAdWGetAccountInfoAccountServicegetAccountInfo
GglAdWGetKeywordsFromSiteKeywordToolServicegetKeywordsFromSite
GglAdWGetOperationCountServiceInfogetOperationCount
GglAdWGetUnitCountServiceInfogetUnitCount
GglAdWGetUsageQuotaThisMonthServiceInfogetUsageQuotaThisMonth
GglAdWGetFreeUsageQuotaThisMonthServiceInfogetFreeUsageQuotaThisMonth
GglAdWGetUnitCountForClientServiceInfogetUnitCountForClients
GglAdWGetUnitCountForMethodServiceInfogetUnitCountForMethod
GglAdWGetReportJobStatusReportServicegetReportJobStatus
GglAdWGetURLReportReportServiceGetReportDownloadUrl
GglAdWGetURLReportGZipReportServicegetGzipReportDownloadUrl
GglAdWGetKeywordVariationKeywordToolServicegetKeywordVariations
GglAdWReplaceExcludedCriterionCriterionServicesetCampaignNegativeCriteria
GglAdWDeleteReportReportServicedeleteReport
GglAdWValidateReportJobReportServicevalidateReportJob
GglAdWCheckAdAdServicecheckAds
GglAdWCheckCriterionCriterionServicecheckCriteria
GglAdWCheckKeywordTrafficTrafficEstimatorServicecheckKeywordTraffic
GglWriteAccountServiceupdateAccountInfoSyntax for updating the account.
GglWriteAdGroupServiceaddAdGroupSyntax for creating an ad group.
GglWriteAdGroupServiceAddAdGroupList
GglWriteAdGroupServiceupdateAdGroupSyntax for updating an ad group.
GglWriteAdGroupServiceupdateAdGroupList
GglWriteAdServiceAddAdsSyntax for adding an ad.
GglWriteAdServiceupdateAdsSyntax for updating an ad.
GglWriteCampaignServiceaddCampaignSyntax for adding a campaign.
GglWriteCampaignServiceaddCampaignList
GglWriteCampaignServiceupdateCampaignSyntax for updating a campaign.
GglWriteCampaignServiceupdateCampaignList
GglWriteCriterionServiceaddCriteriaSyntax for adding a criterion
GglWriteCriterionServiceupdateCriteriaSyntax for updating a criterion.
GglDeleteCriterionServiceremoveCriteria

Possible error cases:

  • The Internet connection is not valid.
  • The authentication was not performed properly.
  • The XML response of the server cannot be read.
To find out whether an error occurred, use the ErrorOccurred variable.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230ggl.dll
Windows Mobile wp230ggl.dll
Minimum required version
  • Version 14
This page is also available for…
Comments
Click [Add] to post a comment