PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Properties specific to the description of gglAdWSchedulingInterval 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
gglAdWSchedulingInterval (Type of variable)
In French: gglAdWPlanification (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 gglAdWSchedulingInterval type is used to define the interval for scheduling the ads of a Google AdWords campaign. The characteristics of this type can be defined and modified by several WLanguage properties.
The gglAdWSchedulingInterval type is used by the gglAdWAdSchedule 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 = gglActive
// Update on the server
GglWrite(Cnt, MyCampaign)
Remarks

Properties specific to the description of gglAdWSchedulingInterval variables

The following properties can be used to handle the interval of time during which a Google AdWords ad must be published:
Name Type used Effect
StartHourIntegerStart hour for publishing the ad. This parameter is an integer included between 0 and 23.
EndHourIntegerEnd hour for publishing the ad. This parameter is an integer included between 0 and 23.
DayOfWeekCharacter String constantDay of the week when the ad must be published. This parameter can correspond to one of the following constants:
  • gglMonday
  • gglTuesday
  • gglWednesday
  • gglThursday
  • gglFriday
  • gglSaturday
  • gglSunday
Note: A scheduling interval can be defined for a specific day only. To create a scheduling on several days (Mondays and Tuesdays for example), several scheduling intervals must be defined.
StartMinuteIntegerStart minute for publishing the ad. This parameter must be a multiple of 15 (accepted values: 0, 15, 30, 45).
EndMinuteIntegerEnd minute for publishing the ad. This parameter must be a multiple of 15 (accepted values: 0, 15, 30, 45).
MultiplierRealCoefficient by which each bid must be multiplied.
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