- Resource: Campaign
- AudienceSegmentGroup
- AudienceSegment
- CreativeOptimizationConfiguration
- OptimizationModel
- OptimizationActivity
- AdBlockingConfiguration
- MeasurementPartnerCampaignLink
- Methods
Resource: Campaign
Contains properties of a Campaign Manager campaign.
JSON representation |
---|
{ "id": string, "accountId": string, "subaccountId": string, "advertiserId": string, "advertiserGroupId": string, "name": string, "archived": boolean, "startDate": string, "endDate": string, "comment": string, "billingInvoiceCode": string, "audienceSegmentGroups": [ { object ( |
Fields | |
---|---|
id |
ID of this campaign. This is a read-only auto-generated field. |
account |
Account ID of this campaign. This is a read-only field that can be left blank. |
subaccount |
Subaccount ID of this campaign. This is a read-only field that can be left blank. |
advertiser |
Advertiser ID of this campaign. This is a required field. |
advertiser |
Advertiser group ID of the associated advertiser. |
name |
Name of this campaign. This is a required field and must be less than 512 characters long and unique among campaigns of the same advertiser. |
archived |
Whether this campaign has been archived. |
start |
Date on which the campaign starts running. The start date can be any date. The hours, minutes, and seconds of the start date should not be set, as doing so will result in an error. This is a required field. |
end |
Date on which the campaign will stop running. On insert, the end date must be today or a future date. The end date must be later than or be the same as the start date. If, for example, you set 6/25/2015 as both the start and end dates, the effective campaign run date is just that day only, 6/25/2015. The hours, minutes, and seconds of the end date should not be set, as doing so will result in an error. This is a required field. |
comment |
Arbitrary comments about this campaign. Must be less than 256 characters long. |
billing |
Billing invoice code included in the Campaign Manager client billing invoices associated with the campaign. |
audience |
Audience segment groups assigned to this campaign. Cannot have more than 300 segment groups. |
event |
Overrides that can be used to activate or deactivate advertiser event tags. |
click |
Click-through URL suffix override properties for this campaign. |
default |
Click-through event tag ID override properties for this campaign. |
creative |
campaigns.list of creative group IDs that are assigned to the campaign. |
creative |
Creative optimization configuration for the campaign. |
additional |
Additional creative optimization configurations for the campaign. |
kind |
Identifies what kind of resource this is. Value: the fixed string
. |
create |
Information about the creation of this campaign. This is a read-only field. |
last |
Information about the most recent modification of this campaign. This is a read-only field. |
id |
Dimension value for the ID of this campaign. This is a read-only, auto-generated field. |
advertiser |
Dimension value for the advertiser ID of this campaign. This is a read-only, auto-generated field. |
external |
External ID for this campaign. |
ad |
Ad blocking settings for this campaign. |
default |
The default landing page ID for this campaign. |
measurement |
Measurement partner campaign link for tag wrapping. |
AudienceSegmentGroup
Audience Segment Group.
JSON representation |
---|
{
"id": string,
"name": string,
"audienceSegments": [
{
object ( |
Fields | |
---|---|
id |
ID of this audience segment group. This is a read-only, auto-generated field. |
name |
Name of this audience segment group. This is a required field and must be less than 65 characters long. |
audience |
Audience segments assigned to this group. The number of segments must be between 2 and 100. |
AudienceSegment
Audience Segment.
JSON representation |
---|
{ "id": string, "name": string, "allocation": integer } |
Fields | |
---|---|
id |
ID of this audience segment. This is a read-only, auto-generated field. |
name |
Name of this audience segment. This is a required field and must be less than 65 characters long. |
allocation |
Weight allocated to this segment. The weight assigned will be understood in proportion to the weights assigned to other segments in the same segment group. Acceptable values are
to
, inclusive. |
CreativeOptimizationConfiguration
Creative optimization settings.
JSON representation |
---|
{ "optimizationModel": enum ( |
Fields | |
---|---|
optimization |
Optimization model for this configuration. |
optimization |
campaigns.list of optimization activities associated with this configuration. |
id |
ID of this creative optimization config. This field is auto-generated when the campaign is inserted or updated. It can be null for existing campaigns. |
name |
Name of this creative optimization config. This is a required field and must be less than 129 characters long. |
OptimizationModel
Creative optimization models for CreativeOptimizationConfig in Campaign
Enums | |
---|---|
CLICK |
|
POST_CLICK |
|
POST_IMPRESSION |
|
POST_CLICK_AND_IMPRESSION |
|
VIDEO_COMPLETION |
OptimizationActivity
Creative optimization activity.
JSON representation |
---|
{
"floodlightActivityId": string,
"weight": integer,
"floodlightActivityIdDimensionValue": {
object ( |
Fields | |
---|---|
floodlight |
Floodlight activity ID of this optimization activity. This is a required field. |
weight |
Weight associated with this optimization. The weight assigned will be understood in proportion to the weights assigned to the other optimization activities. Value must be greater than or equal to
. |
floodlight |
Dimension value for the ID of the floodlight activity. This is a read-only, auto-generated field. |
AdBlockingConfiguration
Campaign ad blocking settings.
JSON representation |
---|
{ "enabled": boolean } |
Fields | |
---|---|
enabled |
Whether this campaign has enabled ad blocking. When true, ad blocking is enabled for placements in the campaign, but this may be overridden by site and placement settings. When false, ad blocking is disabled for all placements under the campaign, regardless of site and placement settings. |
MeasurementPartnerCampaignLink
JSON representation |
---|
{ "measurementPartner": enum ( |
Fields | |
---|---|
measurement |
Measurement partner used for tag wrapping. |
link |
. |
partner |
Partner campaign ID needed for establishing linking with Measurement partner. |
Methods |
|
---|---|
|
Gets one campaign by ID. |
|
Inserts a new campaign. |
|
Retrieves a list of campaigns, possibly filtered. |
|
Updates an existing campaign. |
|
Updates an existing campaign. |