PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Properties specific to the description of gglAdWAdSchedule variables
  • Deleting the scheduling
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
gglAdWAdSchedule (Type of variable)
In French: gglAdWPlanificationAnnonce (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 gglAdWAdSchedule type is used to define the scheduling of ads for a Google AdWords campaign. The characteristics of this type can be defined and modified by several WLanguage properties.
The gglAdWAdSschedule type is used by the gglAdWCampaign variables.
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"

// Create a scheduling
Sched is gglAdWSchedulingInterval
Sched..DayOfWeek = gglMonday
Sched..StartHour = 8
Sched..StartMinute = 0
Sched..EndHour = 18
Sched..EndMinute = 45
Sched..Multiplier = 2.5

// Retrieve a campaign
MyCampaign is gglAdWCampaign
MyCampaign = GglAdWGetCampaign(Cnt, 123)
// Add the new scheduling to the campaign
Add(MyCampaign..Scheduling..Interval, Sched)
// Activate the scheduling
MyCampaign..Scheduling..State = gglEnabled
// Update on the server
GglWrite(Cnt, MyCampaign)
Remarks

Properties specific to the description of gglAdWAdSchedule variables

The following properties can be used to handle the schedule of the ads for a Google AdWords campaign:
Name Type used Effect
StateCharacter String constantCurrent status of scheduling. This parameter can correspond to the following constants:
  • gglDisabled: The scheduling is disabled.
  • gglEnabled: The scheduling is enabled.
IntervalArray of gglAdWSchedulingIntervalIntervals for scheduling the ads. The ads will be published during thest time intervals.
Note: These properties can be handled by using one of the following syntaxes:
  • <Variable Name>..<Property Name>
  • <Variable Name>.<Property Name>

Deleting the scheduling

No scheduling can be deleted. You can only change the status of the scheduling interval to "disabled".
Minimum required version
  • Version 14
This page is also available for…
Comments
Click [Add] to post a comment