PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • 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
GglAdWGetReportJobStatus (Function)
In French: GglAdWRécupèreStatutRequêteRapport
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 edit status for a Google AdWords report.
Example
// Connection to Google
Cnt is gglAdWConnection
Cnt..Email = "vince@gmail.com"
Cnt..Password = "azerty"
Cnt..UserAgent = "MyApp-01"
Cnt..SandboxMode = True

// Retrieve the status of report #987
ReportStatus is string
ReportStatus = GglAdWGetReportJobStatus(Cnt, "987")

// Wait for the end of report execution
WHILE ReportStatus <> "Completed"

// Pause
Wait(100, waitTimer)

// Wait
ReportStatus = GglAdWGetReportJobStatus(Cnt, "987")

// Checks the report status
SWITCH ReportStatus
CASE "Pending":
Trace("Status of report: (pending)")
CASE "InProgress":
Trace("Status of report: (currently run)")
CASE "Completed":
Trace("Status of report: (completed)")
BREAK
CASE "Failed":
Trace("Status of report: (in error)")
BREAK
END
END

IF ReportStatus = "Completed" THEN

// Retrieves the report URL
ReportURL is string
ReportURL = GglAdWGetURLReport(Cnt, "987")
END
Syntax
<Result> = GglAdWGetReportJobStatus(<AdWords Connection> , <Report Identifier>)
<Result>: Unicode character string
Status of report. The possible values are as follows:
  • "Pending": The report is pending.
  • "InProgress": The report is currently edited.
  • "Completed": The report is completed.
  • "Failed": The report failed.
<AdWords Connection>: gglAdWConnection variable
Name of gglAdWConnection variable to use.
<Report Identifier>: Unicode character string (with quotes)
Identifier of report to use. This identifier was returned by GglAdWScheduleReportJob.
Remarks

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 code wd160ggl.dll
Windows Mobile wp160ggl.dll
Minimum required version
  • Version 14
This page is also available for…
Comments
Click [Add] to post a comment