Page Summary
-
An Assignment resource binds creatives to lines and has a resource name, optional external ID, and the creative asset it serves.
-
The state field indicates the current status of the assignment, which can be pending review, approved, disapproved, or revoked.
-
Disapproval details can be provided at the assignment level, applying to all ad units, or at the ad unit level for granular information.
-
AdUnitCreativeDisapprovals provides disapproval information on a per ad unit basis using a map where the key is the ad unit name and the value is the disapproval details.
-
Methods available for assignments include approving, disapproving, getting, listing, and patching assignments.
Resource: Assignment
An assignment binding creatives to lines.
| JSON representation |
|---|
{ "name": string, "externalId": string, "creativeAsset": string, "state": enum ( |
| Fields | |
|---|---|
name |
Output only. The resource name of the creative assignment in the format: |
externalId |
Optional. Seller managed ID presumably in their own system. Once set unlikely to change. It should not be used internally and constraints are not enforced. |
creativeAsset |
Output only. The creative asset that will be served for the line. Format = creativeAssets/123 |
state |
Output only. If STATE_DISAPPROVED then disapproval details must be provided. |
Union field disapproval_type. Output only. The assignment's disapproval details. Can be either line level or ad unit level. The assignment's disapproval details specified at either the assignment or ad unit level. This allows providing disapproval details that only apply to a subset of the ad units targeted by this line. disapproval_type can be only one of the following: |
|
disapproval |
Disapproval details for the assignment that apply to all ad units. |
adUnitDisapprovals |
Disapproval info on a per ad unit granularity. |
State
Possible values for assignment state.
| Enums | |
|---|---|
STATE_UNSPECIFIED |
The default value when the assignment state is not specified or is unknown in this version. |
STATE_PENDING_REVIEW |
When the creative details are provided by the buyer and the seller review is pending. |
STATE_APPROVED |
When the creative has been approved by the seller. |
STATE_DISAPPROVED |
When the creative has been disapproved by the seller. Disapproval details must be provided. |
STATE_REVOKED |
When the creative has been revoked by the buyer or by the system. |
AdUnitCreativeDisapprovals
Ad unit specific disapproval reasons.
| JSON representation |
|---|
{
"disapprovals": {
string: {
object ( |
| Fields | |
|---|---|
disapprovals |
Key is the ad unit name (e.g. adUnits/123) and the value is the disapproval info. An object containing a list of |
Methods |
|
|---|---|
|
Approves an existing assignment. |
|
Disapproves an existing assignment. |
|
Retrieves an individual assignment for a line. |
|
Lists assignments for a line. |
|
Updates an existing assignment. |