PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Case of the Google Picasa albums and their photos
  • 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
Creates and/or updates data on the Google server (addition or modification of data). The created or updated data is contained in a variable corresponding to the service used:
  • gglCalendar variable to create/update the calendar.
  • gglContact variable to create/update the contacts (see the Examples).
  • gglContactGroup variable to create/update the groups of contacts (see the Examples).
  • gglAlbum variable to create/update a Picasa album.
  • gglPhoto variable to create/update a photo in a Picasa album.
Note: In case of multiple additions, VariableReset is used to reinitialize these variables between the calls to GglWrite.
Warning
From version 17, the following features are not available anymore:

You also have the ability to create or update the data on the Google AdWords server. The created or updated data is contained in a variable corresponding to the service used:
Note: For a modification, the data must be retrieved before it can be modified.
// Connection
Cnt is gglConnection
...


// Retrieve the calendar named "Work"
Calendar is gglCalendar = GglGetCalendar(Cnt, "Work")
// Modify the first event of the calendar
Calendar[1]..Title = "Apt with boss"
Calendar[1]..EndDate = "20081013153"
// Delete the second event from the calendar
Delete(Calendar..Event, 2)
// Actually update the changes on the server
GglWrite(Cnt, Calendar)
Syntax

Creating and/or updating a Google element Hide the details

<Result> = GglWrite(<Google Connection> , <Google Element>)
<Result>: Boolean
  • True if the update was performed,
  • False if an error occurred. To find out the error details, use ErrorInfo.
<Google Connection>: gglConnection variable
Name of gglConnection variable to use. This connection was validated by GglConnect.
Versions 20 and later
Caution: the properties of the gglConnection variable must be revised for the OAuth 2.0 authentication.
New in version 20
Caution: the properties of the gglConnection variable must be revised for the OAuth 2.0 authentication.
Caution: the properties of the gglConnection variable must be revised for the OAuth 2.0 authentication.
<Google Element>: Variable corresponding to the type to update
Element to update. This parameter can correspond to:
  • Name of the gglCalendar variable corresponding to the calendar to create/modify.
  • Name of the gglContact variable corresponding to the contact to create/modify.
  • Name of the gglContactGroup variable corresponding to the group of contacts to create/modify.
  • Name of gglAlbum variable corresponding to the Picasa album to create/modify.
  • Name of the gglPhoto variable corresponding to the photo of the Picasa album to create/modify.
Warning
From version 17, the following syntax is not available anymore.

Creating and/or updating a Google AdWords element Hide the details

<Result> = GglWrite(<AdWords Connection> , <Google AdWords Element>)
<Result>: Boolean
  • True if the update was performed,
  • False if an error occurred. To find out the error details, use ErrorInfo.
<AdWords Connection>: gglAdWConnection variable
Name of gglAdWConnection variable to use.
<Google AdWords Element>: Variable corresponding to the type to update
Google AdWords element to update. This parameter can correspond to:
  • Name of the gglAdWCampaign variable corresponding to the AdWords campaign to create/update.
  • Array of gglAdWCampaign corresponding to the AdWords campaigns to create/update.
  • Name of the gglAdWAccountInfo variable corresponding to the Google AdWords account to create/update.
  • Name of the gglAdWAdGroup variable corresponding to the group of Google AdWords ads to update. This syntax can only be used to update an existing ad group.
  • Array of variants containing the ads to create/update.
  • Array of variants containing the criteria to create/update. These criteria can have the following type: gglAdWKeyword or gglAdWWebSite.
Warning
From version 17, the following syntax is not available anymore.

Creating a group of Google AdWords ads Hide the details

<Result> = GglWrite(<AdWords Connection> , <Campaign Identifier> , <Group of Google AdWords Ads>)
<Result>: Boolean
  • True if the creation was performed,
  • False if an error occurred. To find out the error details, use ErrorInfo.
<AdWords Connection>: gglAdWConnection variable
Name of the gglAdWConnection variable to use.
<Campaign Identifier>: Unicode character string (with quotes)
Identifier of the AdWords campaign to which the ad groups to create must be linked.
<Group of Google AdWords Ads>: Variable corresponding to the type to create
Group of Google AdWords ads to create. This parameter can correspond to:
  • Name of the gglAdWAdGroup variable corresponding to the group of ads to create.
  • Name of the array of gglAdWAdGroup variables corresponding to all the groups of ads to create.
Remarks
WINDEVWEBDEV - Server codeReports and QueriesWindows MobileUser code (UMC)

Case of the Google Picasa albums and their photos

To add a photo into the album:
  • describe the photo via a gglPhoto variable.
  • add the photo to the album (each photo is an element of the PhotoData array found in the gglAlbum variable).
  • use GglWrite on the gglAlbum variable to update the album on the Google server.
To modify a photo in the album:
  • modify the characteristics of the photo in the album (via a gglPhoto variable if necessary).
  • use GglWrite on the gglPhoto variable corresponding to the photo to modify to update the album on the Google server.
If GglWrite is directly used with a gglPhoto variable (not linked to an album), the photo will be created/transferred into a generic album named "Transferred files".

Possible error cases:

  • The Internet connection is not valid.
  • The authentication was not performed properly.
  • The XML response of the server cannot be read.
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