- Resource: Ad
- PlacementAssignment
- AdServingType
- DeliverySchedule
- Priority
- FrequencyCap
- CreativeRotation
- CreativeRotationType
- CreativeRotationWeightStrategy
- CreativeAssignment
- ClickThroughUrl
- CreativeGroupAssignment
- CreativeGroupNumber
- RichMediaExitOverride
- CompanionClickThroughOverride
- Methods
Resource: Ad
Contains properties of a Campaign Manager ad.
JSON representation |
---|
{ "id": string, "campaignId": string, "advertiserId": string, "subaccountId": string, "accountId": string, "name": string, "active": boolean, "archived": boolean, "comments": string, "startTime": string, "endTime": string, "placementAssignments": [ { object ( |
Fields | |
---|---|
id |
ID of this ad. This is a read-only, auto-generated field. |
campaign |
Campaign ID of this ad. This is a required field on insertion. |
advertiser |
Advertiser ID of this ad. This is a required field on insertion. |
subaccount |
Subaccount ID of this ad. This is a read-only field that can be left blank. |
account |
Account ID of this ad. This is a read-only field that can be left blank. |
name |
Name of this ad. This is a required field and must be less than 256 characters long. |
active |
Whether this ad is active. When true,
must be false. |
archived |
Whether this ad is archived. When true,
must be false. |
comments |
Comments for this ad. |
start |
Date and time that this ad should start serving. If creating an ad, this field must be a time in the future. This is a required field on insertion. |
end |
Date and time that this ad should stop serving. Must be later than the start time. This is a required field on insertion. |
placement |
Placement assignments for this ad. |
event |
Event tag overrides for this ad. |
click |
Click-through URL suffix properties for this ad. Applies to the URL in the ad or (if overriding ad properties) the URL in the creative. |
default |
Default click-through event tag properties for this ad. |
create |
Information about the creation of this ad. This is a read-only field. |
last |
Information about the most recent modification of this ad. This is a read-only field. |
ssl |
Whether this ad requires ssl. This is a read-only field that is auto-generated when the ad is inserted or updated. |
ssl |
Whether this ad is ssl compliant. This is a read-only field that is auto-generated when the ad is inserted or updated. |
type |
Type of ad. This is a required field on insertion. Note that default ads (
) cannot be created directly (see Creative resource). |
geo |
Geographical targeting information for this ad. This field must be left blank if the ad is using a targeting template. Applicable when
is
. |
technology |
Technology platform targeting information for this ad. This field must be left blank if the ad is using a targeting template. Applicable when
is
. |
day |
Time and day targeting information for this ad. This field must be left blank if the ad is using a targeting template. Applicable when
is
. |
delivery |
Delivery schedule information for this ad. Applicable when
is
or
. This field along with subfields
and
are required on insertion when
is
. |
creative |
Creative rotation for this ad. Applicable when
is
,
, or
. When
is
, this field should have exactly one
. |
remarketing |
Remarketing list targeting expression for this ad. This field must be left blank if the ad is using a targeting template. Applicable when
is
. |
audience |
Audience segment ID that is being targeted for this ad. Applicable when
is
. |
key |
Key-value targeting information for this ad. This field must be left blank if the ad is using a targeting template. Applicable when
is
. |
click |
Click-through URL for this ad. This is a required field on insertion. Applicable when
is
. |
creative |
Creative group assignments for this ad. Applicable when
is
. Only one assignment per creative group number is allowed for a maximum of two assignments. |
size |
Size of this ad. Applicable when
is
. |
compatibility |
Compatibility of this ad. Applicable when
is
.
and
refer to either rendering on desktop or on mobile devices or in mobile apps for regular or interstitial ads, respectively.
and
are only used for existing default ads. New mobile placements must be assigned
or
and default ads created for those placements will be limited to those compatibility types.
refers to rendering in-stream video ads developed with the VAST standard. |
id |
Dimension value for the ID of this ad. This is a read-only, auto-generated field. |
campaign |
Dimension value for the ID of the campaign. This is a read-only, auto-generated field. |
advertiser |
Dimension value for the ID of the advertiser. This is a read-only, auto-generated field. |
dynamic |
Whether this ad is a dynamic click tracker. Applicable when
is
. This is a required field on insert, and is read-only after insert. |
language |
Language targeting information for this ad. This field must be left blank if the ad is using a targeting template. Applicable when
is
. |
targeting |
Targeting template ID, used to apply preconfigured targeting information to this ad. This cannot be set while any of
,
,
,
,
, or
are set. Applicable when
is
. |
kind |
Identifies what kind of resource this is. Value: the fixed string
. |
PlacementAssignment
Placement Assignment.
JSON representation |
---|
{
"placementId": string,
"active": boolean,
"sslRequired": boolean,
"placementIdDimensionValue": {
object ( |
Fields | |
---|---|
placement |
ID of the placement to be assigned. This is a required field. |
active |
Whether this placement assignment is active. When true, the placement will be included in the ad's rotation. |
ssl |
Whether the placement to be assigned requires SSL. This is a read-only field that is auto-generated when the ad is inserted or updated. |
placement |
Dimension value for the ID of the placement. This is a read-only, auto-generated field. |
AdServingType
Ad type as known to ad server. AdsF1 mapping: CrossNetworkAdSetServingTypePB.Enum LINT.IfChange
Enums | |
---|---|
AD_SERVING_STANDARD_AD |
|
AD_SERVING_DEFAULT_AD |
|
AD_SERVING_CLICK_TRACKER |
|
AD_SERVING_TRACKING |
|
AD_SERVING_BRAND_SAFE_AD |
DeliverySchedule
Delivery Schedule.
JSON representation |
---|
{ "hardCutoff": boolean, "priority": enum ( |
Fields | |
---|---|
hard |
Whether or not hard cutoff is enabled. If true, the ad will not serve after the end date and time. Otherwise the ad will continue to be served until it has reached its delivery goals. |
priority |
Serving priority of an ad, with respect to other ads. The lower the priority number, the greater the priority with which it is served. |
impression |
Impression ratio for this ad. This ratio determines how often each ad is served relative to the others. For example, if ad A has an impression ratio of 1 and ad B has an impression ratio of 3, then Campaign Manager will serve ad B three times as often as ad A. Acceptable values are
to
, inclusive. |
frequency |
Limit on the number of times an individual user can be served the ad within a specified period of time. |
Priority
Enums | |
---|---|
AD_PRIORITY_01 |
|
AD_PRIORITY_02 |
|
AD_PRIORITY_03 |
|
AD_PRIORITY_04 |
|
AD_PRIORITY_05 |
|
AD_PRIORITY_06 |
|
AD_PRIORITY_07 |
|
AD_PRIORITY_08 |
|
AD_PRIORITY_09 |
|
AD_PRIORITY_10 |
|
AD_PRIORITY_11 |
|
AD_PRIORITY_12 |
|
AD_PRIORITY_13 |
|
AD_PRIORITY_14 |
|
AD_PRIORITY_15 |
|
AD_PRIORITY_16 |
FrequencyCap
Frequency Cap.
JSON representation |
---|
{ "impressions": string, "duration": string } |
Fields | |
---|---|
impressions |
Number of times an individual user can be served the ad within the specified duration. Acceptable values are
to
, inclusive. |
duration |
Duration of time, in seconds, for this frequency cap. The maximum duration is 90 days. Acceptable values are
to
, inclusive. |
CreativeRotation
Creative Rotation.
JSON representation |
---|
{ "type": enum ( |
Fields | |
---|---|
type |
Type of creative rotation. Can be used to specify whether to use sequential or random rotation. |
weight |
Strategy for calculating weights. Used with
. |
creative |
Creative optimization configuration that is used by this ad. It should refer to one of the existing optimization configurations in the ad's campaign. If it is unset or set to 0, then the campaign's default optimization configuration will be used for this ad. |
creative |
Creative assignments in this creative rotation. |
CreativeRotationType
Enums | |
---|---|
CREATIVE_ROTATION_TYPE_SEQUENTIAL |
The weights of each creative in the rotation should be sequential starting at 1. The user may adjust the order. |
CREATIVE_ROTATION_TYPE_RANDOM |
The weights are calculated according to the ad's CreativeRoationWeightStrategy. |
CreativeRotationWeightStrategy
Enums | |
---|---|
WEIGHT_STRATEGY_EQUAL |
The creative weights should all be equal to 1. This is the default value for all ads with a rotation type of Random. |
WEIGHT_STRATEGY_CUSTOM |
The creative weights can be any user provided positive integer. |
WEIGHT_STRATEGY_HIGHEST_CTR |
The weights will be automatically calculated giving preference to the creative that has the highest CTR. The CTR for campaigns that are optimized for clicks = clicks/impressions. The CTR for campaigns that are optimized for view-through or click through is sum(activities + floodlight weight)/impressions. |
WEIGHT_STRATEGY_OPTIMIZED |
The creative weights will be automatically calculated using a formula that could not possibly be explained in these comments. The value will be within some predetermined range (probably 0 - 1,000,000). |
CreativeAssignment
Creative Assignment.
JSON representation |
---|
{ "creativeId": string, "active": boolean, "weight": integer, "startTime": string, "endTime": string, "sequence": integer, "clickThroughUrl": { object ( |
Fields | |
---|---|
creative |
ID of the creative to be assigned. This is a required field. |
active |
Whether this creative assignment is active. When true, the creative will be included in the ad's rotation. |
weight |
Weight of the creative assignment, applicable when the rotation type is
. Value must be greater than or equal to
. |
start |
Date and time that the assigned creative should start serving. |
end |
Date and time that the assigned creative should stop serving. Must be later than the start time. |
sequence |
Sequence number of the creative assignment, applicable when the rotation type is
. Acceptable values are
to
, inclusive. |
click |
Click-through URL of the creative assignment. |
creative |
Creative group assignments for this creative assignment. Only one assignment per creative group number is allowed for a maximum of two assignments. |
rich |
Rich media exit overrides for this creative assignment. Applicable when the creative type is any of the following:
|
companion |
Companion creative overrides for this creative assignment. Applicable to video ads. |
apply |
Whether applicable event tags should fire when this creative assignment is rendered. If this value is unset when the ad is inserted or updated, it will default to true for all creative types EXCEPT for
,
, and
. |
ssl |
Whether the creative to be assigned is SSL-compliant. This is a read-only field that is auto-generated when the ad is inserted or updated. |
creative |
Dimension value for the ID of the creative. This is a read-only, auto-generated field. |
ClickThroughUrl
Click-through URL
JSON representation |
---|
{ "defaultLandingPage": boolean, "landingPageId": string, "customClickThroughUrl": string, "computedClickThroughUrl": string } |
Fields | |
---|---|
default |
Whether the campaign default landing page is used. |
landing |
ID of the landing page for the click-through URL. Applicable if the
field is set to false. |
custom |
Custom click-through URL. Applicable if the
field is set to false and the
field is left unset. |
computed |
Read-only convenience field representing the actual URL that will be used for this click-through. The URL is computed as follows:
|
CreativeGroupAssignment
Creative Group Assignment.
JSON representation |
---|
{
"creativeGroupId": string,
"creativeGroupNumber": enum ( |
Fields | |
---|---|
creative |
ID of the creative group to be assigned. |
creative |
Creative group number of the creative group assignment. |
CreativeGroupNumber
Describes the 2 creative groups one can have for creative group assignment
Enums | |
---|---|
CREATIVE_GROUP_ONE |
|
CREATIVE_GROUP_TWO |
RichMediaExitOverride
Rich Media Exit Override.
JSON representation |
---|
{
"exitId": string,
"enabled": boolean,
"clickThroughUrl": {
object ( |
Fields | |
---|---|
exit |
ID for the override to refer to a specific exit in the creative. |
enabled |
Whether to use the
. If false, the creative-level exit will be used. |
click |
Click-through URL of this rich media exit override. Applicable if the
field is set to true. |
CompanionClickThroughOverride
Companion Click-through override.
JSON representation |
---|
{
"creativeId": string,
"clickThroughUrl": {
object ( |
Fields | |
---|---|
creative |
ID of the creative for this companion click-through override. |
click |
Click-through URL of this companion click-through override. |
Methods |
|
---|---|
|
Gets one ad by ID. |
|
Inserts a new ad. |
|
Retrieves a list of ads, possibly filtered. |
|
Updates an existing ad. |
|
Updates an existing ad. |