Hi,
Thank you for reaching out to the Google Ads API support team.
Please find the following answers to your questions:
Does the Google Ads API support the following operations for App Campaigns?
Yes, the Google Ads API supports the below operations.
1) Retrieving the current status of an App Campaign (e.g., enabled, paused)
To fetch the app campaign's current status, try the following GAQL query:
SELECT campaign.id, campaign.name, campaign.resource_name, campaign.status,
campaign.advertising_channel_type, campaign.advertising_channel_sub_type
FROM campaign
WHERE campaign.advertising_channel_sub_type = 'APP_CAMPAIGN'
Additionally, you can utilize the Query Builder and Query Validator to build
and validate your queries. To retrieve Google Ads API entities and reporting
data, you can use one of these Rest Interface methods like
GoogleAdsService.Search or GoogleAdsService.SearchStream.
2) Pausing and resuming an App Campaign
You may check the below sample request body to create a new campaign pause or
enable an app campaign :
{
"operations": [
{
"create": {
"name": "Test_app_campaign",
"advertisingChannelType": "MULTI_CHANNEL",
"advertisingChannelSubType": "APP_CAMPAIGN",
"campaignBudget":
"customers/{customer_id}/campaignBudgets/{campaign_budget_id}",
"status": "ENABLED",
"startDate": "2024-11-09",
"endDate": "2025-02-26",
"targetCpa": {
"targetCpaMicros": 1000000
},
"appCampaignSetting": {
"appId": "com.google.android.apps.adwords",
"appStore": "GOOGLE_APP_STORE",
"biddingStrategyGoalType": "OPTIMIZE_INSTALLS_TARGET_INSTALL_COST"
}
}
}
],
"partialFailure": true
}
The below sample request body is to enable and pause an existing campaign
(update operation):
{
"operations": [
{
"update": {
"resourceName": "customers/{customer_id}/campaigns/{campaign_id}",
"status": "PAUSED"
},
"updateMask": "status"
}
],
"partialFailure": true
}
In the above requests, you may change the campaign status to ENABLED, PAUSED or
REMOVED based on your requirement.
3) Renaming an App Campaign
Refer the below sample request body to rename the existing app campaign :
{
"operations": [
{
"update": {
"resourceName": "customers/{customer_id}/campaigns/{camapign_id}",
"name": "my_app_campaign"
},
"updateMask": "name"
}
],
"partialFailure": true
}
You can perform above create and update operations on campaigns using the
customers.campaigns.mutate rest interface method. Also, you may refer to the
app campaigns document for more details. Also, you may follow this sample code
to create a new app campaign using client libraries like Java, Python, C# etc.
I hope this helps! Let us know if you have any further questions.
This message is in relation to case "ref:!00D1U01174p.!5004Q02vGind:ref"
(ADR-00274807)
Thanks,
Google Ads API Team
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
---
You received this message because you are subscribed to the Google Groups
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/adwords-api/pkG1R000000000000000000000000000000000000000000000SMMVG600edZo6j7FSRSz6-LODC8t2Q%40sfdc.net.