PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Properties specific to the description of gglAdWEmailPromotionPreference variables
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
gglAdWEmailPromotionPreference (Type of variable)
In French: gglAdWPréférencesNotificationEmail (Type de variable)
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
The gglAdWEmailPromotionPreference type is used to describe the preferences for email notification linked to an AdWords account. The characteristics of this type can be defined and modified by several WLanguage properties.
This type of variable is used by the gglAdWAccountInfo type.
Note: See Declaring a variable for more details.
Example
// Connection to Google
Cnt is gglAdWConnection
Cnt..Email = "vince@gmail.com"
Cnt..Password = "azerty"
Cnt..UserAgent = "MyApp-01"
Cnt..DeveloperToken = "ABcdeFGH93KL-NOPQ_STUv"
Cnt..ApplicationToken = "ZYXwvu-TSR123_456ABCDE"
Cnt..SandboxMode = True
Cnt..ClientEmail = "Client_1+vince@gmail.com"

// Retrieve the account information
AccountInfo is gglAdWAccountInfo
AccountInfo = GglAdWGetAccountInfo(Cnt)

// Modify the preferences
AccountInfo..EmailPromotionPreferences..Newsletter = True
AccountInfo..EmailPromotionPreferences..MarketResearch = False

// Apply the changes to the server
GglWrite(Cnt, AccountInfo)
Remarks

Properties specific to the description of gglAdWEmailPromotionPreference variables

The following properties can be used to handle the preferences for email notification linked to an AdWords account:
Name Type used Effect
DisapprovedAdsBoolean
  • True to enable the emails on the disapproved ads,
  • False to receive no email in this case.
NewsletterBoolean
  • True to enable the Google newsletter,
  • False to disable it.
AccountPerformanceBoolean
  • True to enable the emails for the account performances,
  • False to receive no email in this case.
PromotionsBoolean
  • True to enable the emails for the Google promotions,
  • False to disable them.
MarketResearchBoolean
  • True to enable the emails on the market researches,
  • False to disable them.
Note: These properties can be handled by using one of the following syntaxes:
  • <Variable Name>..<Property Name>
  • <Variable Name>.<Property Name>
Minimum required version
  • Version 14
This page is also available for…
Comments
Click [Add] to post a comment