add_alert
Important: Content API for Shopping was sunset on August 18, 2026.
warning
Starting
September 1, 2026, Content API for Shopping requests will
experience progressive errors. Review the
Content
API Sunset guide.
Method: accounts.programs.loyaltyPrograms.create
Stay organized with collections
Save and categorize content based on your preferences.
Creates a new LoyaltyProgram.
HTTP request
POST https://merchantapi.googleapis.com/accounts/v1alpha/{parent=accounts/*/programs/*}/loyaltyPrograms
The URL uses gRPC Transcoding syntax.
Path parameters
| Parameters |
parent |
string
Required. The account and program which owns the LoyaltyProgram. Format: accounts/{account}/programs/{program}.
|
Request body
The request body contains data with the following structure:
| JSON representation |
{
"programLabel": string,
"loyaltyProgram": {
object (LoyaltyProgram)
}
} |
| Fields |
programLabel |
string
Required. A unique identifier for the LoyaltyProgram. This programLabel will not be displayed to users. The programLabel must not contain spaces. This identifier can have a max length of 25 characters. The programLabel cannot be changed once set. This programLabel will be used to generate loyaltyProgram.name, which will have the format: accounts/{account}/programs/{program}/loyaltyPrograms/{programLabel}.
|
loyaltyProgram |
object (LoyaltyProgram)
Required. The LoyaltyProgram to create.
|
Response body
If successful, the response body contains a newly created instance of LoyaltyProgram.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/content
For more information, see the OAuth 2.0 Overview.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-11-18 UTC.
[null,null,["Last updated 2026-11-18 UTC."],[],[]]