Hello Amap,
Thanks for reaching out to the Google Ads API support. With regards to your query, you can use ad_group_criterion or campaign_criterion report to retrieve all the information in account by using attribute field mobile_application.app_id or mobile_application.name.
Please let us know if you have any more questions.
Best regards,
![]() |
|
||||
|
||||||
Hi,
Thanks for coming back to this thread.
Kindly see below the way to get App ID and App Name:
1. Ad_group_criterion.mobile_application.app_id
A string that uniquely identifies a mobile application to Google Ads API. The format of this string is "{platform}-{platform_native_id}", where platform is "1" for iOS apps and "2" for Android apps, and where platform_native_id is the mobile application identifier native to the corresponding platform.
For iOS, this native identifier is the 9 digit string that appears at the end of an App Store URL (for example, "476943146" for "Flood-It! 2" whose App Store link is "http://itunes.apple.com/us/app/flood-it!-2/id476943146").
For Android, this native identifier is the application's package name (for example, "com.labpixies.colordrips" for "Color Drips" given Google Play link "https://play.google.com/store/apps/details?id=com.labpixies.colordrips").
That being said, a well formed app id for Google Ads API would thus be "1-476943146" for iOS and "2-com.labpixies.colordrips" for Android.
2.Ad_group_criterion.mobile_application.name
This will pull the Name of your mobile application.
You may use below GAQL:
SELECT
ad_group_criterion.mobile_application.app_id,
ad_group_criterion.mobile_application.name
FROM ad_group_criterion
WHERE
ad_group_criterion.type IN ('MOBILE_APPLICATION')
A sample response should look like below:
{
"adGroupCriterion": {
"resourceName": "customers/{customer_id}/adGroupCriteria/{ad_group_id}~{criterion_id}",
"mobileApplication": {
"name": "Mobile App: <APP NAME> (iTunes App Store), by <APP developer>",
"appId": "1-909351158"
}
}
},
{
"adGroupCriterion": {
"resourceName": "customers/{customer_id}/adGroupCriteria/{ad_group_id}~{criterion_id}",
"mobileApplication": {
"name": "Mobile App: <APP NAME> (Google Play), by <APP developer>",
"appId": "2-com.myapp.talkingcat"
}
}
},
You may also verify your app by using iOS app id using below URL:
https://apps.apple.com/app/id{platform_native_id} which would become https://apps.apple.com/app/id476943146.
Regards,
|
||||||
Hi,
This is Marjorie from the Google Ads API team as well. Thank you for getting back to us.
With regard to your concern, my colleague didn't provide how to get APP Extensions but provided how to get the App ID using the Ad_group_criterion report.
If you are looking to pull how to get the list of IOS APP Ids and Android APP ID from Playstore and App store directly then it is not available in the Ads API. However, you should be able to pull that APP ID's which you already added in Google Ads.
I hope this clarifies. Have a great day.
Regards,
|
||||||