Home | Sign in | English UK
  • Properties specific to the description of gglAdWAdSchedule variables
  • Deleting the scheduling
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WindowsLinuxPHPWEBDEV - Browser code
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Stored procedures
gglAdWAdSchedule (Type of variable)
In french: gglAdWPlanificationAnnonce (Type de variable)
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.
Remark: See Declaring a variable for more details on the declaration of this type of variable and the use of WLanguage properties.
// 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)

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.
Remark: 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 version required
  • Version 14
This page is also available for…
Click [Add] to post a comment