Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question about uploading creatives #106

Open
justin-lau-1 opened this issue Jun 12, 2024 · 0 comments
Open

Question about uploading creatives #106

justin-lau-1 opened this issue Jun 12, 2024 · 0 comments

Comments

@justin-lau-1
Copy link

Hi,

I have several questions regarding inserting a creative via the GCM API. I am using the Java client library to facilitate this operation.

The first question is regarding the API key:
When trying to create a creative using the client library and authenticating with a service account, we are getting this response:

Response:
com.google.api.client.googleapis.json.GoogleJsonResponseException: 403 Forbidden
{
"code": 403,
"errors": [
{
"domain": "global",
"message": "Method doesn't allow unregistered callers (callers without established identity). Please use API Key or other form of API consumer identity to call this API.",
"reason": "forbidden"
}
],

"message": "Method doesn't allow unregistered callers (callers without established identity). Please use API Key or other form of API consumer identity to call this API.",

"status": "PERMISSION_DENIED"

}

It seems like we can’t use a service account to perform this action. What are the other methods that are acceptable, and what method do you recommend in terms of scaling via API? Can you provide examples of how to do this in the Java client library? For our use case, the user of our API should be able to create a creative without explicitly logging in, which is why a service account is beneficial.

The second question I have is regarding the “PATH_TO_IMAGE_ASSET_FILE” string value required to create a creative. Is this supposed to be a directory path, like "/Users/justin.lau/Desktop/adtech-automation/google_wrapper/src/main/java/adtech_api/google_wrapper/test_image2.png", or should it point to an online url that hosts the image?

I am having trouble thinking of a way to implement this in the API as the hosted API theoretically won’t have access to local image files, and if it did, it would be very difficult to maintain. Any advice regarding this would be greatly appreciated!

Thanks,
Justin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant